/* ══════════════════════════════════════════════════════════════
   ZAVNEX INVESTOR PORTAL — Premium Corporate Design System v3
═══════════════════════════════════════════════════════════════ */

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

/* ── Tokens ── */
:root {
  /* Navy spectrum */
  --navy-950: #05101C;
  --navy-900: #0A1828;
  --navy-850: #0E1F33;
  --navy-800: #12273E;
  --navy-700: #1A3552;
  --navy-600: #234669;
  --navy-500: #2C5680;
  --navy-400: #40709E;
  --navy-200: #A9C4DC;

  /* Gold */
  --gold-700: #8A671B;
  --gold-600: #A57E22;
  --gold-500: #C49A2C;
  --gold-400: #D6B052;
  --gold-300: #E7CD85;
  --gold-100: #FAF3DD;

  /* Status */
  --green-800: #14532D; --green-700: #15803D; --green-600: #16A34A;
  --green-100: #DCFCE7; --green-50: #F0FDF4;
  --red-800: #7F1D1D; --red-700: #991B1B; --red-600: #DC2626;
  --red-100: #FEE2E2; --red-50: #FFF5F5;
  --amber-800: #78350F; --amber-700: #92400E; --amber-600: #B45309;
  --amber-100: #FEF3C7; --amber-50: #FFFBEB;

  /* Ink */
  --ink-900: #0E1826;
  --ink-700: #1F2E42;
  --ink-600: #33475F;
  --ink-500: #48607C;
  --ink-400: #64798F;
  --ink-300: #8C9DAF;
  --ink-200: #B7C4D1;
  --ink-150: #D2DCE5;
  --ink-100: #E3EAF1;
  --ink-50:  #F1F5F9;
  --surface: #FFFFFF;
  --bg:      #EDF1F6;

  /* Shape */
  --sidebar-w: 264px;
  --r-xs: 4px; --r-sm: 6px; --r: 9px; --r-lg: 13px; --r-xl: 18px;

  /* Shadow */
  --shadow-xs: 0 1px 2px rgba(10,24,40,.05);
  --shadow-sm: 0 1px 4px rgba(10,24,40,.07), 0 1px 2px rgba(10,24,40,.04);
  --shadow-md: 0 6px 18px rgba(10,24,40,.08), 0 2px 5px rgba(10,24,40,.05);
  --shadow-lg: 0 18px 48px rgba(10,24,40,.14), 0 6px 14px rgba(10,24,40,.07);
  --shadow-gold: 0 4px 14px rgba(196,154,44,.35);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

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

html { font-size: 15px; }
body {
  font-family: var(--font);
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--navy-600); text-decoration: none; transition: color .15s; }
a:hover { color: var(--navy-900); }
p { color: var(--ink-500); line-height: 1.65; }

h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: 25px; font-weight: 700; margin-bottom: 24px; letter-spacing: -.025em; }
h2 { font-size: 16px; margin-bottom: 16px; }
h3 { font-size: 14px; margin-bottom: 10px; }

/* ══════════════════════════════════════════
   APP SHELL
══════════════════════════════════════════ */
.shell { display: flex; min-height: 100vh; }

.workspace {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.workspace main {
  flex: 1;
  padding: 36px 48px 48px;
  max-width: 1200px;
  width: 100%;
}

/* ── Topbar ── */
.topbar {
  height: 52px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--green-700);
}
.topbar-left svg { color: var(--green-600); }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-400);
  letter-spacing: .2px;
}

/* ── Avatar ── */
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .3px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 1px 3px rgba(10,24,40,.15);
}
.avatar-sm { width: 30px; height: 30px; font-size: 11px; }

/* ══════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}

.brand { padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.brand-logo-img {
  display: block;
  height: 58px;
  width: auto;
  align-self: flex-start;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.brand-portal-label {
  font-size: 9px; font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-top: 8px;
}

/* Nav */
.sidebar nav {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 16px;
  flex: 1;
  gap: 1px;
}
.nav-group-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.24);
  padding: 16px 12px 6px;
}
.sidebar nav a {
  color: rgba(255,255,255,.52);
  padding: 8px 12px 8px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 11px;
  transition: background .15s, color .15s;
  position: relative;
  letter-spacing: .01em;
}
.nav-ico { flex-shrink: 0; opacity: .75; }
.sidebar nav a:hover {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.88);
}
.sidebar nav a.active {
  background: linear-gradient(90deg, rgba(196,154,44,.14), rgba(196,154,44,.03));
  color: #fff;
  font-weight: 600;
}
.sidebar nav a.active .nav-ico { color: var(--gold-400); opacity: 1; }
.sidebar nav a.active::before {
  content: '';
  position: absolute;
  left: 0; top: 5px; bottom: 5px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(to bottom, var(--gold-300), var(--gold-500));
}

/* Sidebar footer */
.sidefoot {
  padding: 16px 16px 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.15);
}
.sidefoot-user {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}
.sidefoot-id { min-width: 0; }
.sidefoot-name {
  font-size: 12.5px; font-weight: 600;
  color: rgba(255,255,255,.85);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidefoot-role {
  font-size: 10.5px; font-weight: 500;
  letter-spacing: .5px;
  text-transform: capitalize;
  color: rgba(255,255,255,.32);
}

/* ══════════════════════════════════════════
   AUTH SPLIT-SCREEN
══════════════════════════════════════════ */
body.auth { background: var(--bg); }
.auth-split { display: flex; min-height: 100vh; }

.auth-panel {
  width: 46%;
  max-width: 620px;
  min-width: 420px;
  background:
    /* gold shimmer */
    radial-gradient(ellipse 90% 60% at 85% -10%, rgba(196,154,44,.20), transparent 55%),
    /* blue depth */
    radial-gradient(ellipse 70% 50% at -10% 110%, rgba(44,86,128,.40), transparent 60%),
    /* darkening veil so text stays readable */
    linear-gradient(160deg, rgba(14,31,51,.72) 0%, rgba(5,16,28,.82) 100%),
    /* hero photograph */
    url('/portal/auth-hero.jpg') center / cover no-repeat;
  display: flex;
  position: relative;
  overflow: hidden;
}
.auth-panel::after {
  /* fine grid texture — lighter over the photo */
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.auth-panel-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 52px 56px;
  width: 100%;
}
.auth-panel-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }

.auth-headline {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.18;
  color: #fff;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}
.auth-lede {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
  max-width: 42ch;
  margin-bottom: 36px;
}
.auth-points { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
}
.auth-point-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(196,154,44,.18);
  margin-top: 6px;
  flex-shrink: 0;
}
.auth-panel-foot {
  font-size: 11px;
  line-height: 1.7;
  color: rgba(255,255,255,.28);
  letter-spacing: .3px;
}
.auth-investee {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.auth-investee-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  margin-bottom: 12px;
}
.enexergy-logo-img {
  height: 52px;
  width: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}
.auth-form-wrap { width: 100%; max-width: 420px; }
.auth-form-wrap h1 { font-size: 22px; margin-bottom: 20px; }

/* ── Access gate (root splash page) ── */
.gate-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-400);
  background: var(--ink-50);
  border: 1px solid var(--ink-150);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 20px;
}
.gate-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.4px;
  color: var(--navy-900);
  line-height: 1.2;
  margin-bottom: 12px;
}
.gate-desc {
  font-size: 14.5px;
  color: var(--ink-500);
  line-height: 1.65;
  margin-bottom: 24px;
}
.gate-restriction {
  border-left: 3px solid var(--ink-200);
  padding-left: 16px;
  margin-bottom: 28px;
}
.gate-restriction p {
  font-size: 12.5px;
  color: var(--ink-400);
  line-height: 1.75;
  margin: 0;
}
.gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gate-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ══════════════════════════════════════════
   BARE / CENTERED
══════════════════════════════════════════ */
main.centered {
  margin: auto;
  max-width: 560px;
  padding: 56px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ══════════════════════════════════════════
   CARDS
══════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 26px 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.card h2 {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--ink-100);
  color: var(--navy-900);
}
.auth-form-wrap .card, main.centered .card {
  border-radius: var(--r-xl);
  padding: 34px 36px 30px;
  box-shadow: var(--shadow-lg);
}

/* ── Register form ── */
.reg-head {
  margin-bottom: 28px;
}
.reg-head-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.4px;
  color: var(--navy-900);
  margin-bottom: 10px;
}
.reg-head-desc {
  font-size: 13px;
  color: var(--ink-400);
  line-height: 1.65;
  margin: 0;
}
.reg-form {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  padding: 28px 30px 24px;
  box-shadow: 0 4px 24px rgba(10,24,40,.07), 0 1px 4px rgba(10,24,40,.04);
}
.reg-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-300);
  margin-bottom: 14px;
}
.reg-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.reg-row2 label { margin-top: 0; }
.reg-divider {
  height: 1px;
  background: var(--ink-100);
  margin: 22px 0 20px;
}
.reg-hint {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-300);
}
.reg-eligibility {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(35,70,105,.05);
  border: 1.5px solid rgba(35,70,105,.15);
  border-radius: var(--r);
  padding: 12px 14px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.6;
}
.reg-eli-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--navy-600);
}
.reg-signin {
  font-size: 13.5px;
  text-align: center;
  margin-top: 20px;
  color: var(--ink-500);
}
.reg-signin a { font-weight: 600; color: var(--navy-700); }

/* ── Password show/hide toggle ───────────────────────────────────── */
.pw-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.pw-wrap .pw-input {
  flex: 1;
  padding-right: 46px; /* room for the button */
}
.pw-toggle {
  position: absolute;
  right: 0;
  top: 0; bottom: 0;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-300);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  transition: color .15s;
  padding: 0;
}
.pw-toggle:hover { color: var(--navy-700); }
.pw-toggle:focus-visible {
  outline: 2px solid var(--navy-500);
  outline-offset: -2px;
}

/* ── Phone number field — unified grouped input ──────────────────── */
.ph-wrap {
  display: flex;
  gap: 0;
  align-items: stretch;
  border: 1.5px solid var(--ink-150);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
}
.ph-wrap:focus-within {
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(35,70,105,.14);
}
.ph-wrap:hover:not(:focus-within) { border-color: var(--ink-250, #c6d0da); }
/* Remove individual borders/shadows from controls inside the group */
.ph-wrap input,
.ph-wrap select {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.ph-wrap input:focus,
.ph-wrap select:focus { box-shadow: none !important; }
.ph-code {
  flex: 0 0 200px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-700);
  background: var(--ink-50) !important;
  border-right: 1.5px solid var(--ink-150) !important;
  padding: 11px 34px 11px 14px;
  cursor: pointer;
  /* keep the chevron from the base select rule */
}
.ph-divider {
  width: 1px;
  background: var(--ink-150);
  flex-shrink: 0;
  align-self: stretch;
}
.ph-num {
  flex: 1;
  min-width: 0;
  padding: 11px 15px;
  font-size: 14px;
  font-weight: 500;
}

/* ══════════════════════════════════════════
   TABLES
══════════════════════════════════════════ */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead tr { background: var(--ink-50); }
.tbl thead th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: var(--ink-400);
  padding: 10px 16px;
  border-bottom: 1px solid var(--ink-150);
}
.tbl thead th:first-child { border-radius: var(--r-sm) 0 0 0; }
.tbl thead th:last-child  { border-radius: 0 var(--r-sm) 0 0; }
.tbl td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink-100);
  vertical-align: middle;
  color: var(--ink-700);
  transition: background .1s;
}
.tbl tbody tr:hover td { background: var(--ink-50); }
.tbl tbody tr:last-child td { border-bottom: none; }

/* ══════════════════════════════════════════
   CHIPS
══════════════════════════════════════════ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1px;
  white-space: nowrap;
}
.chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.chip-grey  { background: var(--ink-50);   color: var(--ink-500);   border: 1px solid var(--ink-150); }
.chip-grey::before  { background: var(--ink-300); }
.chip-amber { background: var(--amber-50); color: var(--amber-700); border: 1px solid #FDE68A; }
.chip-amber::before { background: var(--amber-600); }
.chip-green { background: var(--green-50); color: var(--green-800); border: 1px solid #86EFAC; }
.chip-green::before { background: var(--green-600); }
.chip-red   { background: var(--red-50);   color: var(--red-800);   border: 1px solid #FCA5A5; }
.chip-red::before   { background: var(--red-600); }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: var(--r);
  padding: 10px 22px;
  font: 600 13px var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: background .16s, box-shadow .16s, transform .1s, border-color .16s;
  letter-spacing: .1px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-850));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 1px 3px rgba(10,24,40,.35);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--navy-600), var(--navy-800));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 4px 12px rgba(10,24,40,.3);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--navy-700);
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background: var(--ink-50);
  border-color: var(--ink-300);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.btn-success {
  background: linear-gradient(180deg, var(--green-600), var(--green-700));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 3px rgba(0,0,0,.15);
}
.btn-success:hover { background: var(--green-700); }

.btn-danger {
  background: linear-gradient(180deg, var(--red-600), var(--red-700));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 3px rgba(0,0,0,.15);
}
.btn-danger:hover { background: var(--red-700); }

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.13);
  font-size: 12px;
  padding: 7px 14px;
  width: 100%;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.75);
  border-color: rgba(255,255,255,.25);
}
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ══════════════════════════════════════════
   FORMS
══════════════════════════════════════════ */
label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .55px;
  text-transform: uppercase;
  color: var(--ink-400);
  margin: 22px 0 7px;
}
label:first-child, h2 + label { margin-top: 0; }

/* ── Base form controls ── */
input, select, textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--ink-150);
  border-radius: var(--r-sm);
  font: 500 14px/1.5 var(--font);
  color: var(--ink-700);
  background: #fff;
  transition: border-color .15s, box-shadow .15s, background .15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
input:hover, textarea:hover { border-color: var(--ink-250, #c6d0da); }
select:hover:not(:disabled) { border-color: var(--ink-250, #c6d0da); cursor: pointer; }
/* Refined chevron — brand navy, slightly thicker stroke */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231A3552' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
}
input::placeholder, textarea::placeholder { color: var(--ink-250, #c6d0da); font-weight: 400; }
input:focus, select:focus, textarea:focus {
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(35,70,105,.14);
  background: #fff;
}
input[type="file"] {
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink-500);
  background: var(--ink-50);
  border-style: dashed;
}
input[type="checkbox"], input[type="radio"] {
  width: auto;
  -webkit-appearance: auto;
  appearance: auto;
  accent-color: var(--navy-700);
  transform: scale(1.1);
  margin-right: 6px;
}
.form-hint { font-size: 12px; color: var(--ink-300); margin-top: 5px; }

/* ══════════════════════════════════════════
   FLASH / CALLOUTS
══════════════════════════════════════════ */
.flash {
  background: var(--green-50);
  border: 1px solid #86EFAC;
  border-left: 3px solid var(--green-600);
  color: var(--green-800);
  border-radius: var(--r);
  padding: 12px 16px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}

.info-callout {
  background: rgba(35,70,105,.05);
  border: 1px solid rgba(35,70,105,.18);
  border-left: 3px solid var(--navy-600);
  border-radius: var(--r);
  padding: 14px 18px;
  font-size: 13px;
  margin: 16px 0;
  color: var(--navy-800);
  line-height: 1.6;
}
.info-callout strong { color: var(--navy-700); }

.warn-callout {
  background: var(--amber-50);
  border: 1px solid #FDE68A;
  border-left: 3px solid var(--amber-600);
  border-radius: var(--r);
  padding: 14px 18px;
  font-size: 13px;
  margin: 16px 0;
  color: var(--amber-800);
  line-height: 1.6;
}
.warn-callout strong { color: var(--amber-700); }

.danger-callout {
  background: var(--red-50);
  border: 1px solid #FCA5A5;
  border-left: 3px solid var(--red-600);
  border-radius: var(--r);
  padding: 14px 18px;
  font-size: 13px;
  margin: 16px 0;
  color: var(--red-700);
}

.legal-callout {
  background:
    radial-gradient(ellipse 80% 90% at 100% 0%, rgba(196,154,44,.12), transparent 50%),
    linear-gradient(135deg, var(--navy-850) 0%, var(--navy-950) 100%);
  border-radius: var(--r-lg);
  padding: 26px 30px;
  margin: 20px 0;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: var(--shadow-md);
}
.legal-callout h2 {
  color: var(--gold-400);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.legal-callout p, .legal-callout li { color: rgba(255,255,255,.66); font-size: 13.5px; }
.legal-callout strong { color: rgba(255,255,255,.92); }
.legal-callout a { color: var(--gold-300); }

/* ══════════════════════════════════════════
   STEPPER
══════════════════════════════════════════ */
/* ── Journey progress tracker ── */
.stepper {
  margin: 0 0 32px;
  /* deliberately no card/border/shadow — not a navigation element */
}
.stepper-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-300);
  margin-bottom: 14px;
}
.stepper-track {
  display: flex;
  align-items: flex-start;
}
/* individual step — not clickable */
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  cursor: default;
  pointer-events: none;
  user-select: none;
}
.step-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--ink-200);
  color: var(--ink-300);
  background: var(--surface);
  transition: none;
}
.step.done .step-node {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
}
.step.now .step-node {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(10,24,40,.08);
}
.step-name {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-300);
  white-space: nowrap;
  text-align: center;
}
.step.done .step-name { color: var(--green-700); }
.step.now  .step-name { color: var(--navy-800); }
/* horizontal line connecting steps */
.step-connector {
  flex: 1;
  height: 2px;
  background: var(--ink-150);
  margin-top: 15px; /* vertically centred with the 32px node */
  min-width: 8px;
}
.step-connector.done { background: var(--green-600); }

/* ══════════════════════════════════════════
   KPI TILES
══════════════════════════════════════════ */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.kpi {
  font-size: 27px;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -.6px;
  line-height: 1.1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.kpi-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 1.1px;
}

/* ══════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════ */
.empty { text-align: center; padding: 56px 24px; color: var(--ink-300); }
.empty p { font-size: 13.5px; color: var(--ink-300); margin-bottom: 14px; }
.muted { color: var(--ink-400); font-size: 13px; }

.payref {
  font: 700 17px/1.4 ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  background: linear-gradient(180deg, var(--ink-50), #E9EFF5);
  border: 1px solid var(--ink-150);
  padding: 12px 20px;
  border-radius: var(--r);
  display: inline-block;
  margin: 8px 0;
  letter-spacing: 2.5px;
  color: var(--navy-900);
  box-shadow: inset 0 1px 2px rgba(10,24,40,.04);
}

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  padding: 10px 0 10px 22px;
  border-left: 2px solid var(--ink-100);
  position: relative;
  font-size: 13px;
  color: var(--ink-600);
}
.timeline li::before {
  content: '';
  position: absolute; left: -5px; top: 16px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--navy-500);
  border: 2px solid var(--surface);
  outline: 1px solid var(--navy-400);
}

.divider { border: none; border-top: 1px solid var(--ink-100); margin: 20px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-header h2 { margin-bottom: 0; }
.text-right { text-align: right; }
.gap-8 { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.legal-footer {
  font-size: 10.5px;
  color: var(--ink-300);
  margin-top: 44px;
  border-top: 1px solid var(--ink-100);
  padding-top: 16px;
  line-height: 1.7;
  letter-spacing: .1px;
}
.auth-form-wrap .legal-footer { margin-top: 28px; border-top-color: var(--ink-150); }
.legal-footer-link { color: var(--ink-400); text-decoration: underline; white-space: nowrap; }
.legal-footer-link:hover { color: var(--navy-700); }

/* ── Key parties page ── */
.kp-page-header { margin-bottom: 28px; }
.kp-page-header h1 { margin-bottom: 8px; }
.kp-intro { font-size: 14px; color: var(--ink-400); margin: 0; line-height: 1.6; }

.kp-list { display: flex; flex-direction: column; gap: 0; }
.kp-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 22px 20px;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-left: 3px solid var(--navy-700);
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.kp-row:last-child { margin-bottom: 0; }
.kp-role {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy-700);
  opacity: .8;
}
.kp-name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-800);
  line-height: 1.3;
}
.kp-reg {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-400);
  margin-left: 4px;
}
.kp-desc {
  font-size: 13.5px;
  color: var(--ink-500);
  line-height: 1.7;
  margin: 2px 0 0;
}

/* Regulatory page notice box */
.regulatory-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--ink-50);
  border: 1px solid var(--ink-150);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-top: 28px;
  color: var(--ink-500);
}
.regulatory-notice p {
  font-size: 12.5px;
  line-height: 1.7;
  margin: 0;
}
.regulatory-notice svg { color: var(--ink-400); }

/* Staff-only placeholder highlight (amber) */
.ph-mark {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 3px;
  padding: 1px 5px;
  font-style: italic;
  font-size: 12px;
  font-weight: 500;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1080px) {
  .auth-panel { min-width: 360px; }
  .auth-headline { font-size: 32px; }
}
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .sidebar nav { padding-bottom: 8px; }
  .workspace main { padding: 24px 20px 40px; }
  .topbar { padding: 0 20px; }
  .grid2 { grid-template-columns: 1fr; }

  .auth-split { flex-direction: column; }
  .auth-panel { width: 100%; max-width: none; min-width: 0; }
  .auth-panel-inner { padding: 28px 32px; }
  /* Tablet: keep headline, hide long copy to save vertical space */
  .auth-lede  { display: none; }
  .auth-points { display: none; }
  .auth-panel-body { padding: 12px 0 0; }
  .auth-panel-foot { display: none; }
  .auth-headline { font-size: 26px; line-height: 1.2; }
  .auth-main { padding: 32px 20px 48px; }
}

/* Mobile: collapse panel to brand-mark strip only */
@media (max-width: 560px) {
  .auth-panel-inner { padding: 18px 20px; }
  .auth-panel-body { display: none; }

  /* Stack phone-code above phone-number */
  .ph-wrap { flex-direction: column; }
  .ph-code {
    flex: 0 0 auto !important;
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1.5px solid var(--ink-150) !important;
    border-radius: var(--r-sm) var(--r-sm) 0 0 !important;
    background: var(--ink-50) !important;
  }
  .ph-num {
    border-radius: 0 0 var(--r-sm) var(--r-sm) !important;
  }

  /* Stack side-by-side address row */
  .reg-row2 { grid-template-columns: 1fr !important; gap: 0 !important; }
  .reg-row2 > div { margin-top: 0; }
  .reg-row2 label { margin-top: 22px; }

  .auth-main { padding: 24px 16px 40px; }
}

/* ══════════════════════════════════════════
   INVESTMENT CALCULATOR / ILLUSTRATION
══════════════════════════════════════════ */

.illus-lead {
  color: var(--ink-400);
  font-size: 14px;
  margin: -12px 0 28px;
  line-height: 1.5;
}
.illus-disclaimer {
  font-size: 12px;
  color: var(--ink-400);
  margin: 14px 0 28px;
  line-height: 1.6;
}

/* ── Amount picker ── */
.amount-picker {
  margin-bottom: 24px;
}
.picker-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.amount-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 18px;
}
.amount-prefix {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink-700);
  line-height: 1;
  padding-bottom: 2px;
}
.amount-num {
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  color: var(--ink-900) !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid var(--gold-500) !important;
  border-radius: 0 !important;
  padding: 2px 4px 2px !important;
  width: 240px !important;
  outline: none;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.amount-num::-webkit-inner-spin-button,
.amount-num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.amt-range {
  width: 100%;
  accent-color: var(--gold-500);
  cursor: pointer;
  height: 6px;
}
.range-hints {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-400);
  margin-top: 8px;
}

/* ── Metrics grid ── */
.illus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.illus-metric {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.illus-metric:hover { box-shadow: var(--shadow-md); }
.illus-metric.accent {
  background: linear-gradient(135deg,
    rgba(196,154,44,.07) 0%,
    rgba(196,154,44,.02) 100%);
  border-color: rgba(196,154,44,.28);
}
.illus-metric-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 10px;
}
.illus-metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -.02em;
}
.illus-metric.accent .illus-metric-value {
  background: linear-gradient(120deg, var(--gold-600) 0%, var(--gold-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.illus-metric-sub {
  font-size: 12.5px;
  color: var(--ink-400);
  line-height: 1.4;
}

/* ── Timeline ── */
.illus-timeline {
  margin-bottom: 24px;
}
.illus-tl-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 20px;
}
.illus-tl-track {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.illus-tl-node { text-align: center; }
.illus-tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--navy-600);
  margin: 0 auto 10px;
  box-shadow: 0 0 0 3px rgba(35,70,105,.18);
}
.illus-tl-dot.gold {
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-400) 100%);
  box-shadow: 0 0 10px rgba(196,154,44,.45), 0 0 0 3px rgba(196,154,44,.18);
}
.illus-tl-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 4px;
  white-space: nowrap;
}
.illus-tl-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-800, var(--ink-700));
  white-space: nowrap;
}
.illus-tl-middle { display: flex; flex-direction: column; gap: 8px; }
.illus-tl-line {
  height: 2px;
  background: linear-gradient(90deg, var(--navy-400) 0%, var(--gold-400) 100%);
  border-radius: 2px;
}
.illus-tl-coupons {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
}
.illus-tl-coupons span {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-300);
  letter-spacing: .03em;
  position: relative;
}
.illus-tl-coupons span::before {
  content: '';
  display: block;
  width: 1px;
  height: 6px;
  background: var(--ink-200);
  margin: 0 auto 3px;
}
.illus-tl-coupon-label {
  font-size: 11px;
  color: var(--ink-400);
  text-align: center;
  letter-spacing: .01em;
}
.illus-tl-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-100);
}
.illus-tl-sum-item { display: flex; flex-direction: column; gap: 4px; }
.illus-tl-sum-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-300);
}
.illus-tl-sum-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}

/* ── Investor / agreement details ── */
.illus-investor { margin-bottom: 28px; }
.illus-investor-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 12px;
}
.illus-investor-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -.015em;
  line-height: 1.2;
}

/* ── CTA ── */
.illus-cta {
  display: inline-block;
  font-size: 15px;
  padding: 14px 32px;
  margin-bottom: 32px;
}

/* ── Subscribe page — applicant banner ── */
.sub-who {
  padding: 4px 0 4px;
}
.sub-who-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 6px;
}
.sub-who-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -.015em;
  margin-bottom: 4px;
}
.sub-who-detail {
  font-size: 13.5px;
  color: var(--ink-500);
}

/* ── Responsive: illustration grid stacks on narrow ── */
@media (max-width: 680px) {
  .illus-grid { grid-template-columns: 1fr; }
  .illus-tl-summary { grid-template-columns: 1fr 1fr; }
  .illus-tl-track { grid-template-columns: 1fr; gap: 14px; }
  .illus-tl-middle { display: none; }
  .amount-num { width: 160px !important; font-size: 1.7rem !important; }
  .amount-prefix { font-size: 1.7rem; }
}

/* ══ SLA ageing ══ */
.sla-badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.sla-ok { color: #22c55e; font-size: 12px; font-weight: 500; }
.sla-warn { background: #fef3c7; color: #92400e; }
.sla-over { background: #fee2e2; color: #b91c1c; }

/* ══ Filter bar ══ */
.filter-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }

/* ══ Maturity tracker ══ */
.maturity-row { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.07); display: flex; align-items: flex-start; gap: 16px; }
.maturity-row:last-child { border-bottom: none; padding-bottom: 0; }
.maturity-label { font-weight: 600; font-size: 14px; }
.maturity-date { font-size: 13px; opacity: .55; margin: 2px 0; }
.maturity-countdown { font-size: 12px; font-weight: 700; color: #22c55e; }
.maturity-countdown.near { color: #b91c1c; }
.maturity-countdown.matured { color: #9ca3af; font-weight: 400; }

/* ══ Month group header (admin tables) ══ */
.month-group-header td { background: rgba(0,0,0,.03); font-weight: 700; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }

/* ══ Coupon forward calendar ══ */
.coupon-qtr-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 6px; margin-top: 14px; border-top: 1px solid rgba(0,0,0,.07); font-weight: 700; font-size: 13px; }
.coupon-qtr-head:first-child { border-top: none; margin-top: 0; }
.coupon-qtr-total { font-size: 12px; font-weight: 700; color: #b8972d; }

/* ══ Email log status chips ══ */
.email-log-sent      { color: #2563eb; font-weight: 600; font-size: 12px; }
.email-log-delivered { color: #15803d; font-weight: 600; font-size: 12px; }
.email-log-failed    { color: #b91c1c; font-weight: 600; font-size: 12px; }
.email-log-bounced   { color: #b91c1c; font-weight: 700; font-size: 12px; }
.email-log-queued    { color: #6b7280; font-size: 12px; }
.email-log-meta      { color: var(--ink-400); font-size: 11px; font-weight: 400; }

/* Bounce alert banner */
.bounce-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--red-50, #fef2f2);
  border: 1px solid #fca5a5;
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: #7f1d1d;
  line-height: 1.6;
}
.bounce-alert svg { color: #dc2626; margin-top: 2px; }
.bounce-alert a   { color: #dc2626; }

/* Bounced filter button highlight */
.btn-bounce-alert {
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
  background: var(--red-50, #fef2f2) !important;
}

/* ══ Identity Verification page ══ */
.verif-header { margin-bottom: 28px; }
.verif-header h1 { margin-bottom: 6px; }
.verif-header-desc { color: var(--ink-500); font-size: 13.5px; max-width: 600px; line-height: 1.65; margin: 0; }

/* Step tracker */
.verif-steps { display: flex; align-items: center; margin-bottom: 28px; }
.verif-step { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.verif-step-num { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; border: 2px solid; transition: all .2s; }
.verif-step.done   .verif-step-num { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.verif-step.active .verif-step-num { background: var(--gold-500);  border-color: var(--gold-500);  color: #1a1209; }
.verif-step.upcoming .verif-step-num { background: transparent; border-color: var(--ink-200); color: var(--ink-400); }
.verif-step-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-400); white-space: nowrap; }
.verif-step.active .verif-step-label, .verif-step.done .verif-step-label { color: var(--ink-700); }
.verif-step-line { flex: 1; height: 2px; background: var(--ink-150); margin: 0 8px; position: relative; top: -10px; }
.verif-step-line.done { background: var(--green-600); }

/* Banners */
.verif-review-banner, .verif-rejected-banner {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 20px; border-radius: var(--r-lg); margin-bottom: 24px;
}
.verif-review-banner   { background: var(--ink-50);  border: 1px solid var(--ink-150); }
.verif-rejected-banner { background: var(--red-50);  border: 1px solid var(--red-100); }
.verif-review-icon { flex-shrink: 0; color: var(--ink-400); margin-top: 1px; }
.verif-rejected-banner .verif-review-icon { color: var(--red-600); }
.verif-review-title { font-weight: 700; font-size: 13.5px; margin-bottom: 3px; }

/* Review timeline */
.verif-timeline { padding: 4px 0 20px 16px; }
.verif-tl-item { display: flex; align-items: flex-start; gap: 14px; padding: 9px 0; position: relative; }
.verif-tl-item:not(:last-child)::before {
  content: ''; position: absolute; left: 7px; top: 28px; bottom: -9px;
  width: 2px; background: var(--ink-150);
}
.verif-tl-item.done::before { background: var(--green-600); }
.verif-tl-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--ink-200); background: var(--surface);
  flex-shrink: 0; margin-top: 2px;
}
.verif-tl-item.done   .verif-tl-dot { background: var(--green-600); border-color: var(--green-600); }
.verif-tl-item.active .verif-tl-dot { background: var(--gold-400); border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(196,154,44,.18); }
.verif-tl-body { font-size: 13.5px; line-height: 1.5; }

/* Document cards */
.doc-upload-grid { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.doc-card { background: var(--surface); border: 1.5px solid var(--ink-150); border-radius: var(--r-lg); overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.doc-card.uploaded   { border-color: #86efac; }
.doc-card:not(.uploaded):hover { border-color: var(--ink-300); box-shadow: var(--shadow-xs); }

.doc-card-head { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px 14px; }
.doc-card-icon-wrap {
  width: 42px; height: 42px; border-radius: var(--r); flex-shrink: 0;
  background: var(--ink-50); display: flex; align-items: center; justify-content: center; color: var(--navy-600);
}
.doc-card.uploaded .doc-card-icon-wrap { background: var(--green-50); color: var(--green-700); }
.doc-card-meta { flex: 1; min-width: 0; }
.doc-card-title { font-weight: 700; font-size: 14px; margin-bottom: 3px; color: var(--ink-900); }
.doc-card-desc  { font-size: 12.5px; color: var(--ink-500); line-height: 1.55; }
.doc-card-badge { flex-shrink: 0; align-self: flex-start; }
.doc-badge-ok  { display:inline-flex; align-items:center; gap:4px; background:var(--green-50); color:var(--green-700); font-size:11.5px; font-weight:700; padding:3px 10px; border-radius:99px; border:1px solid #bbf7d0; }
.doc-badge-req { display:inline-flex; align-items:center; background:var(--ink-50); color:var(--ink-500); font-size:11.5px; font-weight:600; padding:3px 10px; border-radius:99px; border:1px solid var(--ink-200); }

/* Upload zone */
.doc-upload-form { padding: 0 20px 18px; }
.doc-upload-zone {
  border: 2px dashed var(--ink-200); border-radius: var(--r);
  padding: 22px 16px 18px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s; position: relative;
  background: var(--ink-50); user-select: none;
}
.doc-upload-zone:hover, .doc-upload-zone.drag-over { border-color: var(--gold-400); background: rgba(196,154,44,.04); }
.doc-upload-zone.has-file  { border-color: #86efac; background: var(--green-50); }
.doc-upload-zone.uploaded-readonly { cursor: default; background: var(--green-50); border-color: #86efac; }
.doc-file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop-icon { margin: 0 auto 10px; color: var(--ink-300); }
.doc-upload-zone.has-file .drop-icon,
.doc-upload-zone.uploaded-readonly .drop-icon { color: var(--green-600); }
.drop-primary  { font-size: 13.5px; font-weight: 600; color: var(--ink-700); margin-bottom: 4px; }
.drop-or       { font-size: 13px; color: var(--ink-400); margin-bottom: 10px; }
.drop-browse   { color: var(--gold-600); text-decoration: underline; cursor: pointer; }
.drop-filename { font-size: 13.5px; font-weight: 600; color: var(--ink-800); margin-bottom: 4px; word-break: break-all; }
.drop-replace  { font-size: 12px; color: var(--ink-400); margin-bottom: 8px; }
.drop-formats  { font-size: 11px; color: var(--ink-400); margin-top: 6px; letter-spacing: .01em; }

/* Liveness card */
.liveness-prompt { display: flex; gap: 16px; align-items: flex-start; padding: 0 20px 16px; }
.liveness-icon-large {
  width: 66px; height: 66px; border-radius: var(--r-lg); flex-shrink: 0;
  background: var(--ink-50); display: flex; align-items: center; justify-content: center;
  color: var(--navy-600);
}
.liveness-text p { font-size: 13px; color: var(--ink-600); margin: 0 0 8px; line-height: 1.65; }
.liveness-text p:last-child { margin: 0; }
.liveness-btn { margin: 0 20px 20px; }

/* Submit section */
.verif-submit-section { background: var(--ink-50); border: 1.5px solid var(--ink-150); border-radius: var(--r-lg); padding: 24px; margin-top: 8px; }
.verif-checklist { display: flex; flex-direction: column; gap: 11px; margin-bottom: 22px; }
.verif-check-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-400); }
.verif-check-item.done { color: var(--ink-800); font-weight: 500; }
.verif-check-item.done .verif-check-icon { color: var(--green-600); }
.verif-check-icon { flex-shrink: 0; color: var(--ink-300); }
.verif-submit-btn { width: 100%; padding: 13px; font-size: 14.5px; font-weight: 700; }
.verif-submit-note { font-size: 12px; color: var(--ink-400); margin-top: 10px; text-align: center; }
.verif-files-detail { margin-top: 18px; }
.verif-files-detail summary { font-size: 13px; color: var(--ink-500); cursor: pointer; margin-bottom: 10px; list-style-position: inside; }

@media (max-width: 640px) {
  .verif-steps { gap: 0; }
  .verif-step-label { display: none; }
  .doc-card-head { flex-wrap: wrap; gap: 10px; }
}
