/* ═══════════════════════════════════════════════════════════════════════════
   BS Finanz Zürich GmbH — Professional Finance Platform
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --navy:       #0a1628;
  --navy-mid:   #112240;
  --navy-light: #1a3a5c;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-pale:  #fdf6e3;
  --white:      #ffffff;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-300:   #cbd5e1;
  --gray-400:   #94a3b8;
  --gray-500:   #64748b;
  --gray-600:   #475569;
  --gray-700:   #334155;
  --gray-800:   #1e293b;
  --green:      #16a34a;
  --green-light:#dcfce7;
  --red:        #dc2626;
  --red-light:  #fee2e2;
  --blue:       #2563eb;
  --blue-light: #dbeafe;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl:  0 20px 25px rgba(0,0,0,.1), 0 10px 10px rgba(0,0,0,.04);
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --transition: all .2s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p  { color: var(--gray-600); }
a  { color: var(--navy-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.container-xs { max-width: 520px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Navigation ─────────────────────────────────────────────────────────── */
.navbar {
  background: var(--navy);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.navbar-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; color: var(--navy);
}
.navbar-name { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.navbar-sub  { font-size: .7rem; color: var(--gray-400); font-weight: 400; }
.navbar-nav  { display: flex; align-items: center; gap: .5rem; }
.nav-link    { color: var(--gray-300); padding: .5rem .9rem; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500; transition: var(--transition); }
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav-link.active { color: var(--gold); }
.nav-user    { display: flex; align-items: center; gap: .5rem; color: var(--gray-300); font-size: .875rem; }
.nav-avatar  { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-light)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; color: var(--navy); }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .625rem 1.25rem; border-radius: var(--radius-md);
  font-size: .875rem; font-weight: 600; cursor: pointer;
  border: none; transition: var(--transition); text-decoration: none;
  white-space: nowrap; line-height: 1;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary  { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy); box-shadow: 0 2px 8px rgba(201,168,76,.35); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,168,76,.45); color: var(--navy); }
.btn-navy     { background: var(--navy); color: var(--white); }
.btn-navy:hover:not(:disabled) { background: var(--navy-light); color: var(--white); transform: translateY(-1px); }
.btn-outline  { background: transparent; border: 1.5px solid var(--gray-300); color: var(--gray-700); }
.btn-outline:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); background: var(--gray-50); }
.btn-danger   { background: var(--red); color: var(--white); }
.btn-danger:hover:not(:disabled) { background: #b91c1c; color: var(--white); }
.btn-success  { background: var(--green); color: var(--white); }
.btn-success:hover:not(:disabled) { background: #15803d; color: var(--white); }
.btn-sm  { padding: .4rem .9rem; font-size: .8rem; }
.btn-lg  { padding: .875rem 1.75rem; font-size: 1rem; }
.btn-xl  { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius-sm); }

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title  { font-size: 1rem; font-weight: 700; color: var(--navy); }
.card-body   { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-100); background: var(--gray-50); }
.card-hover  { transition: var(--transition); cursor: pointer; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); border-color: var(--gold); }
.card-selected { border-color: var(--gold) !important; box-shadow: 0 0 0 3px rgba(201,168,76,.2) !important; }

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.form-group  { margin-bottom: 1.25rem; }
.form-label  { display: block; font-size: .875rem; font-weight: 600; color: var(--gray-700); margin-bottom: .4rem; }
.form-label .required { color: var(--red); margin-left: 2px; }
.form-control {
  width: 100%; padding: .625rem .875rem;
  border: 1.5px solid var(--gray-300); border-radius: var(--radius-md);
  font-size: .875rem; color: var(--gray-800); background: var(--white);
  transition: var(--transition); outline: none; font-family: inherit;
}
.form-control:focus  { border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(26,58,92,.12); }
.form-control.error  { border-color: var(--red); }
.form-control.success{ border-color: var(--green); }
.form-control:disabled { background: var(--gray-100); cursor: not-allowed; color: var(--gray-500); }
.form-hint   { font-size: .78rem; color: var(--gray-500); margin-top: .3rem; }
.form-error  { font-size: .78rem; color: var(--red); margin-top: .3rem; display: flex; align-items: center; gap: .25rem; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-check  { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .6rem; }
.form-check input[type="checkbox"],
.form-check input[type="radio"] { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--navy); cursor: pointer; flex-shrink: 0; }
.form-check-label { font-size: .875rem; color: var(--gray-700); cursor: pointer; line-height: 1.5; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
@media(max-width:640px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }

/* ─── Alerts ─────────────────────────────────────────────────────────────── */
.alert { padding: .875rem 1rem; border-radius: var(--radius-md); font-size: .875rem; display: flex; align-items: flex-start; gap: .6rem; margin-bottom: 1rem; }
.alert-success { background: var(--green-light); color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: var(--red-light); color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: var(--blue-light); color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a; }
.alert-gold    { background: var(--gold-pale); color: var(--navy); border: 1px solid var(--gold-light); }

/* ─── Badges ─────────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-draft      { background: var(--gray-100); color: var(--gray-600); }
.badge-pending    { background: #fef9c3; color: #854d0e; }
.badge-progress   { background: var(--blue-light); color: #1e40af; }
.badge-completed  { background: var(--green-light); color: #166534; }
.badge-rejected   { background: var(--red-light); color: #991b1b; }
.badge-gold       { background: var(--gold-pale); color: var(--navy); border: 1px solid var(--gold); }

/* ─── Progress Steps ─────────────────────────────────────────────────────── */
.steps-bar { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 2rem; overflow-x: auto; padding: .5rem 0; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: .3rem; flex: 1; min-width: 80px; position: relative; }
.step-item:not(:last-child)::after {
  content: ''; position: absolute; top: 16px; left: calc(50% + 16px);
  right: calc(-50% + 16px); height: 2px; background: var(--gray-200); z-index: 0;
}
.step-item.done::after  { background: var(--gold); }
.step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; position: relative; z-index: 1;
  border: 2px solid var(--gray-300); background: var(--white); color: var(--gray-400);
  transition: var(--transition);
}
.step-item.done   .step-circle { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.step-item.active .step-circle { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: 0 0 0 4px rgba(10,22,40,.15); }
.step-label { font-size: .7rem; font-weight: 500; color: var(--gray-400); text-align: center; white-space: nowrap; }
.step-item.done   .step-label  { color: var(--gold); }
.step-item.active .step-label  { color: var(--navy); font-weight: 700; }

/* ─── Tables ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }
table { width: 100%; border-collapse: collapse; }
thead th { background: var(--navy); color: var(--white); padding: .875rem 1rem; font-size: .8rem; font-weight: 600; text-align: left; white-space: nowrap; }
thead th:first-child { border-radius: var(--radius-md) 0 0 0; }
thead th:last-child  { border-radius: 0 var(--radius-md) 0 0; }
tbody td { padding: .875rem 1rem; font-size: .875rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--gray-50); }

/* ─── Sidebar Layout ─────────────────────────────────────────────────────── */
.app-layout { display: flex; min-height: calc(100vh - 68px); }
.sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--navy);
  padding: 1.5rem 0;
  position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto;
}
.sidebar-section { padding: .5rem 1rem; margin-bottom: .25rem; }
.sidebar-label { font-size: .7rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .08em; padding: .5rem 1rem .25rem; }
.sidebar-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .625rem 1rem; border-radius: var(--radius-md); margin: .1rem .75rem;
  color: var(--gray-400); font-size: .875rem; font-weight: 500;
  text-decoration: none; transition: var(--transition);
}
.sidebar-link:hover  { background: rgba(255,255,255,.07); color: var(--white); }
.sidebar-link.active { background: rgba(201,168,76,.15); color: var(--gold); }
.sidebar-link svg    { width: 18px; height: 18px; flex-shrink: 0; }
.main-content { flex: 1; padding: 2rem; min-width: 0; }

/* ─── Hero Section ───────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  padding: 5rem 1.5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(201,168,76,.15); border: 1px solid rgba(201,168,76,.3); color: var(--gold-light); padding: .4rem .9rem; border-radius: 20px; font-size: .8rem; font-weight: 600; margin-bottom: 1.5rem; }
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero h1 span { color: var(--gold); }
.hero p  { color: var(--gray-300); font-size: 1.1rem; max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 2rem; margin-top: 3rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: .5rem; color: var(--gray-400); font-size: .85rem; }
.trust-item svg { color: var(--gold); width: 18px; height: 18px; }

/* ─── Product Cards ──────────────────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.product-card { cursor: pointer; transition: var(--transition); border: 2px solid var(--gray-200); border-radius: var(--radius-lg); background: var(--white); padding: 1.5rem; }
.product-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.product-card.selected { border-color: var(--gold); background: var(--gold-pale); box-shadow: 0 0 0 3px rgba(201,168,76,.2); }
.product-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--navy), var(--navy-light)); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.product-icon svg { width: 24px; height: 24px; color: var(--gold); }
.product-name { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.product-desc { font-size: .85rem; color: var(--gray-500); line-height: 1.5; margin-bottom: 1rem; }
.product-features { list-style: none; }
.product-features li { font-size: .8rem; color: var(--gray-600); padding: .2rem 0; display: flex; align-items: center; gap: .4rem; }
.product-features li::before { content: '✓'; color: var(--gold); font-weight: 700; }

/* ─── Bank Cards ─────────────────────────────────────────────────────────── */
.bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.bank-card { cursor: pointer; transition: var(--transition); border: 2px solid var(--gray-200); border-radius: var(--radius-lg); background: var(--white); padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.bank-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.bank-card.selected { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.2); }
.bank-logo-placeholder { width: 56px; height: 56px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--navy), var(--navy-light)); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 900; color: var(--gold); }
.bank-name { font-size: 1rem; font-weight: 700; color: var(--navy); }
.bank-desc { font-size: .82rem; color: var(--gray-500); line-height: 1.5; }
.bank-min  { font-size: .8rem; color: var(--gray-600); display: flex; align-items: center; gap: .3rem; }

/* ─── KYC Upload ─────────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--gray-300); border-radius: var(--radius-lg);
  padding: 2rem; text-align: center; cursor: pointer;
  transition: var(--transition); background: var(--gray-50);
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--gold); background: var(--gold-pale); }
.upload-zone.uploaded { border-color: var(--green); background: var(--green-light); }
.upload-icon { width: 48px; height: 48px; margin: 0 auto .75rem; color: var(--gray-400); }
.upload-text { font-size: .875rem; color: var(--gray-600); }
.upload-hint { font-size: .78rem; color: var(--gray-400); margin-top: .3rem; }

/* ─── Camera ─────────────────────────────────────────────────────────────── */
.camera-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #000; aspect-ratio: 4/3; }
.camera-wrap video { width: 100%; height: 100%; object-fit: cover; }
.camera-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.camera-frame { width: 70%; height: 70%; border: 3px solid var(--gold); border-radius: var(--radius-lg); box-shadow: 0 0 0 9999px rgba(0,0,0,.5); }

/* ─── Section Headers ────────────────────────────────────────────────────── */
.section-header { margin-bottom: 2rem; }
.section-tag { display: inline-block; background: var(--gold-pale); color: var(--navy); font-size: .75rem; font-weight: 700; padding: .3rem .75rem; border-radius: 20px; border: 1px solid var(--gold-light); margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.section-title { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: .5rem; }
.section-desc  { color: var(--gray-500); font-size: .95rem; }

/* ─── Stats ──────────────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--gray-500); margin-top: .25rem; font-weight: 500; }
.stat-change { font-size: .75rem; margin-top: .5rem; display: flex; align-items: center; gap: .25rem; }
.stat-change.up   { color: var(--green); }
.stat-change.down { color: var(--red); }

/* ─── Misc ───────────────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 1.5rem 0; }
.text-gold  { color: var(--gold); }
.text-navy  { color: var(--navy); }
.text-muted { color: var(--gray-500); }
.text-sm    { font-size: .875rem; }
.text-xs    { font-size: .78rem; }
.font-mono  { font-family: 'Courier New', monospace; }
.font-bold  { font-weight: 700; }
.flex       { display: flex; }
.flex-center{ display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.p-4 { padding: 1rem; } .p-6 { padding: 1.5rem; }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.bg-white { background: var(--white); }
.bg-navy  { background: var(--navy); }
.w-full { width: 100%; }
.hidden { display: none !important; }
.loading { opacity: .6; pointer-events: none; }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.3); border-top-color: var(--white); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
.spinner-dark { border-color: rgba(0,0,0,.15); border-top-color: var(--navy); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer { background: var(--navy); color: var(--gray-400); padding: 2rem 1.5rem; text-align: center; font-size: .85rem; margin-top: auto; }
.footer a { color: var(--gray-400); }
.footer a:hover { color: var(--gold); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { padding: 1rem; }
  .hero { padding: 3rem 1rem; }
  .hero-trust { gap: 1rem; }
  .steps-bar { gap: 0; }
  .step-label { display: none; }
}

/* ─── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(4px); }
.modal { background: var(--white); border-radius: var(--radius-xl); max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl); }
.modal-header { padding: 1.5rem; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.modal-title  { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.modal-close  { width: 32px; height: 32px; border: none; background: var(--gray-100); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--gray-600); transition: var(--transition); }
.modal-close:hover { background: var(--gray-200); }
.modal-body   { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-100); display: flex; gap: .75rem; justify-content: flex-end; }

/* ─── Toast ──────────────────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 300; display: flex; flex-direction: column; gap: .5rem; }
.toast { background: var(--navy); color: var(--white); padding: .875rem 1.25rem; border-radius: var(--radius-md); font-size: .875rem; box-shadow: var(--shadow-xl); display: flex; align-items: center; gap: .75rem; min-width: 280px; animation: slideIn .3s ease; }
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }
.toast.warning { background: #d97706; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
