@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=DM+Sans:wght@300;400;500&display=swap');

/* ── RESET & ROOT ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:    #0A1628; --navy2:   #122040;
  --gold:    #C9962A; --gold2:   #E8B84B;
  --cream:   #F7F4EE; --cream2:  #EDE8DF;
  --teal:    #1A6B5A; --teal2:   #28A385;
  --red:     #A32D2D; --amber:   #BA7517;
  --white:   #ffffff;
}
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--navy); line-height: 1.5; }
a    { color: var(--teal); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
input, select, textarea, button { font-family: inherit; }

/* ── NAV ──────────────────────────────────────────────────── */
.nav { background: var(--navy); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-wrap { width: 30px; height: 30px; background: var(--gold); border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.nav-logo-wrap svg { width: 16px; height: 16px; fill: var(--navy); }
.nav-name { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 1.2rem; }
.nav-links a { color: rgba(255,255,255,0.6); font-size: 13px; transition: color 0.2s; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-btn { background: var(--gold); color: var(--navy) !important; padding: 7px 16px; border-radius: 4px; font-weight: 500; font-size: 13px; }
.nav-btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff !important; padding: 6px 16px; border-radius: 4px; font-size: 13px; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero { background: var(--navy); padding: 4rem 2rem 0; text-align: center; }
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero-badge { display: inline-block; background: rgba(201,150,42,0.18); border: 1px solid rgba(201,150,42,0.4); color: var(--gold2); font-size: 11px; font-weight: 500; padding: 5px 14px; border-radius: 20px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero h1 { font-family: 'Cormorant Garamond', serif; font-size: 50px; font-weight: 600; color: #fff; line-height: 1.15; margin-bottom: 1rem; }
.hero h1 .gold { color: var(--gold2); }
.hero > .hero-inner > p { font-size: 15px; color: rgba(255,255,255,0.6); max-width: 480px; margin: 0 auto 2rem; }
.hero-wave { margin-top: 2.5rem; }
.hero-wave svg { display: block; height: 50px; width: 100%; }

/* VERIFY BOX */
.verify-box { background: rgba(255,255,255,0.06); border: 1px solid rgba(201,150,42,0.3); border-radius: 12px; padding: 1.8rem; max-width: 560px; margin: 0 auto; }
.verify-box h3 { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--gold2); margin-bottom: 0.4rem; }
.verify-box p { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 1.2rem; }
.verify-input-row { display: flex; gap: 8px; }
.verify-input { flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; padding: 11px 14px; font-size: 14px; color: #fff; outline: none; }
.verify-input:focus { border-color: var(--gold); }
.verify-input::placeholder { color: rgba(255,255,255,0.3); }
.verify-btn { background: var(--gold); color: var(--navy); border: none; border-radius: 6px; padding: 11px 20px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.verify-success { background: rgba(26,107,90,0.25); border: 1px solid rgba(40,163,133,0.4); border-radius: 8px; padding: 1rem; display: flex; gap: 12px; text-align: left; }
.verify-success .vt { color: #fff; font-size: 13px; font-weight: 500; }
.verify-success .vs { color: rgba(255,255,255,0.55); font-size: 12px; margin-top: 3px; }
.verify-error { background: rgba(163,45,45,0.2); border: 1px solid rgba(163,45,45,0.4); border-radius: 8px; padding: 10px 14px; color: #ffaaaa; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.verify-loading { color: rgba(255,255,255,0.6); font-size: 13px; display: flex; align-items: center; gap: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── STATS BAR ────────────────────────────────────────────── */
.stats-bar { background: var(--navy2); border-bottom: 1px solid rgba(201,150,42,0.2); display: grid; grid-template-columns: repeat(4,1fr); max-width: 1100px; margin: 0 auto; }
.stat-item { padding: 1.5rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,0.07); }
.stat-item:last-child { border-right: none; }
.stat-n { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; color: var(--gold2); }
.stat-l { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── SECTIONS ─────────────────────────────────────────────── */
.section { padding: 4rem 2rem; }
.section-inner { max-width: 1000px; margin: 0 auto; }
.sec-label { font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); margin-bottom: 0.5rem; }
.sec-title { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.sec-sub { font-size: 14px; color: #666; max-width: 480px; line-height: 1.7; margin-bottom: 2rem; }

/* HOW IT WORKS */
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.step { background: #fff; border-radius: 10px; padding: 1.5rem; border: 1px solid var(--cream2); }
.step-num { width: 32px; height: 32px; background: var(--navy); color: var(--gold2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 600; margin-bottom: 1rem; }
.step h4 { font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.step p { font-size: 12px; color: #888; line-height: 1.6; }

/* AGENCIES */
.agencies-section { background: var(--navy); padding: 4rem 2rem; }
.agencies-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1.5rem; }
.agency-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(201,150,42,0.2); border-radius: 10px; padding: 1.5rem; transition: border-color 0.2s; }
.agency-card:hover { background: rgba(201,150,42,0.07); border-color: rgba(201,150,42,0.45); }
.agency-icon { width: 40px; height: 40px; background: rgba(201,150,42,0.15); border: 1px solid rgba(201,150,42,0.3); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--gold2); font-size: 18px; }
.agency-name { font-size: 13px; font-weight: 500; color: #fff; margin-bottom: 4px; }
.agency-desc { font-size: 11px; color: rgba(255,255,255,0.4); line-height: 1.5; margin-bottom: 8px; }
.agency-badge { display: inline-block; background: rgba(26,107,90,0.25); border: 1px solid rgba(40,163,133,0.35); color: var(--teal2); font-size: 10px; padding: 3px 9px; border-radius: 10px; }

/* DOC TYPES */
.doc-types-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.doc-card { background: #fff; border-radius: 10px; padding: 1.5rem; border: 1px solid var(--cream2); }
.doc-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.8rem; }
.doc-icon { font-size: 22px; color: var(--navy); }
.doc-card h4 { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.doc-card p { font-size: 11px; color: #999; line-height: 1.5; margin-bottom: 8px; }
.doc-fee { font-size: 11px; color: var(--teal); font-weight: 500; }
.sev-badge { font-size: 10px; font-weight: 500; padding: 3px 9px; border-radius: 10px; white-space: nowrap; }
.sev-high { background: rgba(163,45,45,0.1); color: #A32D2D; }
.sev-med  { background: rgba(186,117,23,0.1); color: #BA7517; }
.sev-std  { background: rgba(26,107,90,0.1);  color: var(--teal); }

/* CTA */
.cta-strip { background: linear-gradient(135deg, var(--teal) 0%, var(--navy2) 100%); padding: 3rem 2rem; text-align: center; }
.cta-strip h2 { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.cta-strip p { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-primary { background: var(--gold); color: var(--navy); padding: 12px 28px; border-radius: 6px; font-size: 14px; font-weight: 500; text-decoration: none; }
.cta-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); padding: 12px 28px; border-radius: 6px; font-size: 14px; text-decoration: none; }

/* FOOTER */
.footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.35); }

/* ── AUTH PAGES ───────────────────────────────────────────── */
.auth-body { background: var(--navy); min-height: 100vh; }
.auth-shell { max-width: 900px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.auth-logo-bar { padding: 1.2rem 2rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.auth-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.auth-logo-icon { width: 28px; height: 28px; background: var(--gold); border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.auth-logo-icon svg { width: 14px; height: 14px; fill: var(--navy); }
.auth-brand span { font-family: 'Cormorant Garamond', serif; font-size: 16px; color: #fff; font-weight: 600; }
.auth-screen { display: flex; flex: 1; flex-direction: column; }
.auth-screen.active { display: flex; flex-direction: column; }
.auth-split { display: flex; flex: 1; }
.auth-left { background: var(--navy2); flex: 0 0 300px; padding: 3rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.auth-left-badge { background: rgba(201,150,42,0.18); border: 1px solid rgba(201,150,42,0.35); color: var(--gold2); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; display: inline-block; margin-bottom: 1.5rem; }
.auth-left h2 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: #fff; line-height: 1.3; margin-bottom: 1rem; }
.auth-left h2 span { color: var(--gold2); }
.auth-left p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 2rem; }
.auth-feats { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.auth-feats li { display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(255,255,255,0.6); }
.auth-feats li i { color: var(--teal2); font-size: 16px; }
.auth-right { flex: 1; background: #fff; padding: 3rem 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.auth-right h3 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; color: var(--navy); margin-bottom: 0.25rem; }
.auth-sub { font-size: 13px; color: #999; margin-bottom: 1.8rem; }
.auth-alert { border-radius: 6px; padding: 10px 14px; font-size: 13px; margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; }
.auth-alert-error   { background: rgba(163,45,45,0.07); border: 1px solid rgba(163,45,45,0.3); color: var(--red); }
.auth-alert-success { background: rgba(26,107,90,0.08); border: 1px solid rgba(40,163,133,0.3); color: var(--teal); }

/* FORM FIELDS */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 11px; font-weight: 500; color: #555; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.3px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--cream2); border-radius: 6px; padding: 9px 11px; font-size: 13px; color: var(--navy); outline: none; background: #fff; transition: border-color 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 70px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 38px; }
.pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #aaa; font-size: 16px; }
.strength-bar { display: flex; gap: 3px; margin-top: 6px; }
.sb { flex: 1; height: 3px; border-radius: 2px; background: #eee; transition: background 0.3s; }
.sb-weak { background: #e24b4a; } .sb-fair { background: #EF9F27; } .sb-strong { background: var(--teal2); }
.strength-label { font-size: 11px; color: #aaa; margin-top: 3px; }
.terms-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 1rem; }
.terms-row input { margin-top: 2px; accent-color: var(--navy); }
.terms-row label { font-size: 12px; color: #888; line-height: 1.5; }
.auth-switch { text-align: center; margin-top: 1.2rem; font-size: 13px; color: #999; }
.link-sm { font-size: 12px; color: var(--teal); }

/* AUTH BUTTONS */
.auth-btn-primary { width: 100%; background: var(--navy); color: #fff; border: none; border-radius: 6px; padding: 12px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.auth-btn-primary:hover { background: var(--navy2); }
.auth-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-btn-gold { width: 100%; background: var(--gold); color: var(--navy); border: none; border-radius: 6px; padding: 12px; font-size: 14px; font-weight: 500; cursor: pointer; }
.auth-btn-gold:disabled { opacity: 0.6; cursor: not-allowed; }

/* OTP CARD */
.otp-card { background: #fff; border-radius: 14px; max-width: 400px; width: 100%; margin: 3rem auto; padding: 2.5rem 2rem; text-align: center; }
.otp-icon-wrap { width: 60px; height: 60px; border-radius: 50%; background: rgba(40,163,133,0.1); border: 2px solid rgba(40,163,133,0.3); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem; color: var(--teal2); font-size: 26px; }
.otp-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.otp-card > p { font-size: 13px; color: #999; margin-bottom: 1.5rem; line-height: 1.6; }
.otp-progress { display: flex; align-items: center; margin-bottom: 1.5rem; }
.op-step { display: flex; flex-direction: column; align-items: center; flex: 1; }
.op-dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; border: 2px solid var(--cream2); color: #ccc; background: #fff; }
.op-dot.done { background: var(--teal2); border-color: var(--teal2); color: #fff; }
.op-dot.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.op-lbl { font-size: 10px; color: #aaa; margin-top: 4px; }
.op-line { flex: 1; height: 1px; background: var(--cream2); margin-top: -14px; }
.op-line.done { background: var(--teal2); }
.otp-boxes { display: flex; gap: 8px; justify-content: center; margin-bottom: 1.2rem; }
.otp-box { width: 44px; height: 50px; border: 1px solid var(--cream2); border-radius: 8px; text-align: center; font-size: 22px; font-weight: 500; font-family: 'Cormorant Garamond', serif; color: var(--navy); outline: none; transition: border-color 0.2s; }
.otp-box:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,150,42,0.15); }
.otp-resend { font-size: 12px; color: #aaa; margin-top: 0.8rem; }

/* ── DASHBOARD SIDEBAR LAYOUT ─────────────────────────────── */
.db-shell { display: flex; min-height: 100vh; background: var(--cream); }
.sidebar { width: 210px; flex-shrink: 0; background: var(--navy); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh; z-index: 50; }
.sb-brand { padding: 1rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; gap: 8px; text-decoration: none; }
.sb-brand svg { width: 14px; height: 14px; fill: var(--navy); }
.sb-logo { width: 26px; height: 26px; border-radius: 4px; background: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.sb-name { font-family: 'Cormorant Garamond', serif; font-size: 15px; font-weight: 600; color: #fff; }
.sb-user { padding: 0.8rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.sb-avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(201,150,42,0.25); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; color: var(--gold2); margin-bottom: 5px; overflow: hidden; }
.sb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sb-uname { font-size: 12px; font-weight: 500; color: #fff; }
.sb-uemail { font-size: 10px; color: rgba(255,255,255,0.4); }
.sb-badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(40,163,133,0.2); border: 1px solid rgba(40,163,133,0.3); color: var(--teal2); font-size: 9px; padding: 2px 6px; border-radius: 10px; margin-top: 4px; }
.sb-nav { flex: 1; padding: 0.8rem 0; overflow-y: auto; }
.sb-nav a { display: flex; align-items: center; gap: 9px; padding: 8px 1.2rem; font-size: 12px; color: rgba(255,255,255,0.5); text-decoration: none; cursor: pointer; transition: all 0.15s; border-left: 2px solid transparent; }
.sb-nav a:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.04); }
.sb-nav a.active { color: #fff; background: rgba(201,150,42,0.1); border-left-color: var(--gold2); }
.sb-nav a i { font-size: 15px; }
.sb-nav .ns { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.22); padding: 0.8rem 1.2rem 0.3rem; }
.notif-count { background: var(--red); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 8px; margin-left: auto; }
.sb-footer { padding: 0.8rem 1.2rem; border-top: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; gap: 8px; cursor: pointer; }
.sb-footer:hover { background: rgba(255,255,255,0.04); }
.sb-pf-info { flex: 1; min-width: 0; }
.sb-pf-name { font-size: 11px; color: #fff; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-pf-role { font-size: 10px; color: rgba(255,255,255,0.4); }
.sb-logout { background: none; border: none; color: rgba(255,255,255,0.3); cursor: pointer; font-size: 15px; padding: 2px; }
.sb-logout:hover { color: var(--red); }
.db-main { flex: 1; margin-left: 210px; display: flex; flex-direction: column; }
.topbar { background: #fff; border-bottom: 1px solid var(--cream2); padding: 0 1.5rem; height: 52px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40; }
.topbar-title { font-size: 14px; font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.db-content { flex: 1; padding: 1.5rem; }
.page { display: none; } .page.active { display: block; }

/* STATS CARDS */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 1.5rem; }
.stat-card { background: #fff; border-radius: 8px; border: 1px solid var(--cream2); padding: 1rem; }
.stat-label { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.stat-val { font-size: 22px; font-weight: 500; font-family: 'Cormorant Garamond', serif; }
.stat-sub { font-size: 11px; color: #bbb; margin-top: 2px; }

/* TABLE */
.tbl-wrap { background: #fff; border-radius: 10px; border: 1px solid var(--cream2); overflow: hidden; margin-bottom: 1.5rem; }
.tbl-wrap table { width: 100%; border-collapse: collapse; }
.tbl-wrap th { font-size: 10px; font-weight: 500; color: #aaa; text-transform: uppercase; letter-spacing: 0.5px; padding: 9px 14px; border-bottom: 1px solid var(--cream2); text-align: left; }
.tbl-wrap td { font-size: 12px; color: var(--navy); padding: 10px 14px; border-bottom: 1px solid var(--cream2); vertical-align: middle; }
.tbl-wrap tr:last-child td { border-bottom: none; }
.tbl-wrap tr:hover td { background: #FAFAF8; }

/* BUTTONS */
.btn { border-radius: 5px; padding: 5px 10px; font-size: 11px; cursor: pointer; font-family: 'DM Sans', sans-serif; border: 1px solid var(--cream2); background: #fff; color: var(--navy); display: inline-flex; align-items: center; gap: 4px; transition: all 0.15s; }
.btn:hover { background: var(--cream); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy2); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-teal { background: var(--teal2); color: #fff; border-color: var(--teal2); }
.btn-red  { background: var(--red);   color: #fff; border-color: var(--red); }
.btn-lg   { padding: 9px 18px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* SECTION HEADER */
.sh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem; }
.sh h3 { font-size: 14px; font-weight: 500; }

/* CARDS */
.white-card { background: #fff; border-radius: 10px; border: 1px solid var(--cream2); padding: 1.5rem; margin-bottom: 1rem; }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,22,40,0.6); z-index: 200; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.show { display: flex; }
.modal { background: #fff; border-radius: 12px; max-width: 480px; width: 100%; overflow: hidden; }
.modal-hdr { background: var(--navy); padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.modal-hdr h4 { font-size: 14px; font-weight: 500; color: #fff; }
.modal-close { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 20px; cursor: pointer; line-height: 1; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 0.8rem 1.5rem; border-top: 1px solid var(--cream2); display: flex; gap: 8px; justify-content: flex-end; }

/* DROP ZONE */
.drop-zone { border: 2px dashed var(--cream2); border-radius: 8px; padding: 2rem; text-align: center; cursor: pointer; transition: border-color 0.2s; background: #FAFAF8; }
.drop-zone:hover { border-color: var(--gold); }
.drop-zone.has-file { border-color: var(--teal2); }

/* TOGGLE */
.toggle { position: relative; width: 36px; height: 20px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: #ddd; border-radius: 20px; transition: 0.2s; }
.toggle-slider::before { content: ''; position: absolute; width: 14px; height: 14px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.2s; }
.toggle input:checked + .toggle-slider { background: var(--teal2); }
.toggle input:checked + .toggle-slider::before { transform: translateX(16px); }

/* DOC TYPE CARDS */
.dtype-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.dtype-card { background: #fff; border-radius: 8px; border: 1px solid var(--cream2); padding: 1rem; }
.dtype-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.dtype-icon { width: 32px; height: 32px; background: var(--cream); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.dtype-name { font-size: 12px; font-weight: 500; margin-bottom: 3px; }
.dtype-desc { font-size: 11px; color: #aaa; margin-bottom: 8px; }
.dp-row { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 3px; }
.dp-row span:first-child { color: #aaa; }

/* LOGOUT BAR */
.logout-bar { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--cream2); border-radius: 8px; padding: 0.8rem 1rem; margin-top: 1rem; }
.logout-bar p { font-size: 12px; color: #aaa; }

/* NOTIFICATIONS */
.notif-item { display: flex; gap: 12px; padding: 1rem; background: #fff; border-radius: 8px; border: 1px solid var(--cream2); margin-bottom: 8px; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }

/* VERIFIED CARD */
.verified-card { background: #fff; border-radius: 10px; border: 1px solid var(--cream2); padding: 1.5rem; margin-bottom: 1rem; display: flex; gap: 1.2rem; }
.vs-seal { width: 48px; height: 48px; border-radius: 50%; background: rgba(26,107,90,0.1); display: flex; align-items: center; justify-content: center; color: var(--teal2); font-size: 22px; flex-shrink: 0; border: 2px solid rgba(40,163,133,0.3); }
.vc-code { font-family: monospace; font-size: 12px; background: var(--navy); color: var(--gold2); padding: 5px 12px; border-radius: 5px; letter-spacing: 1px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links a:not(.nav-btn) { display: none; }
  .steps-grid, .agencies-grid, .doc-types-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .auth-left { display: none; }
  .db-main { margin-left: 0; }
  .sidebar { transform: translateX(-100%); }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .dtype-grid { grid-template-columns: 1fr 1fr; }
}

/* ── PURE PHP EXTRA CLASSES ─────────────────────────────────── */
.admin-badge{display:inline-block;background:rgba(201,150,42,0.2);border:1px solid rgba(201,150,42,0.35);color:var(--gold2);font-size:10px;padding:3px 10px;border-radius:10px;letter-spacing:0.5px;margin:0.4rem 1.2rem;}
.alert{border-radius:6px;padding:10px 14px;font-size:13px;margin-bottom:1rem;display:flex;align-items:center;gap:8px;}
.alert-error{background:rgba(163,45,45,0.07);border:1px solid rgba(163,45,45,0.3);color:var(--red);}
.alert-success{background:rgba(26,107,90,0.08);border:1px solid rgba(40,163,133,0.3);color:var(--teal);}
.tab-btn{display:inline-block;background:none;border:none;border-bottom:2px solid transparent;padding:8px 14px;font-size:12px;color:#aaa;cursor:pointer;font-family:'DM Sans',sans-serif;margin-bottom:-1px;text-decoration:none;}
.tab-btn.active,.tab-btn:hover{color:var(--navy);border-bottom-color:var(--navy);font-weight:500;text-decoration:none;}
.tab-row{display:flex;border-bottom:1px solid var(--cream2);margin-bottom:1rem;}
.sb-footer-row{display:flex;align-items:center;gap:8px;padding:0.8rem 1.2rem;border-top:1px solid rgba(255,255,255,0.07);}
.sb-footer-profile{display:flex;align-items:center;gap:8px;flex:1;text-decoration:none;min-width:0;}
.sb-avatar-sm{width:26px;height:26px;border-radius:50%;background:rgba(201,150,42,0.25);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:500;color:var(--gold2);flex-shrink:0;overflow:hidden;}
.u-avatar{width:28px;height:28px;border-radius:50%;background:rgba(26,107,90,0.15);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:500;color:var(--teal);flex-shrink:0;}
.tracker{display:flex;align-items:center;margin:1rem 0;}
.tr-step{display:flex;flex-direction:column;align-items:center;flex:1;}
.tr-dot{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:500;border:2px solid var(--cream2);color:#ccc;background:#fff;}
.tr-dot.done{background:var(--teal2);border-color:var(--teal2);color:#fff;}
.tr-dot.active{background:var(--navy);border-color:var(--navy);color:#fff;}
.tr-label{font-size:10px;color:#aaa;margin-top:3px;text-align:center;}
.tr-line{flex:1;height:2px;background:var(--cream2);margin-top:-13px;}
.tr-line.done{background:var(--teal2);}
.doc-name{display:flex;align-items:center;gap:8px;}
.doc-icon{width:28px;height:28px;background:var(--cream);border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0;}
.dn-title{font-size:12px;font-weight:500;}.dn-sub{font-size:10px;color:#aaa;}
.fee-row{display:flex;justify-content:space-between;font-size:12px;color:#888;margin-bottom:4px;}
.fee-total{display:flex;justify-content:space-between;font-size:13px;font-weight:500;border-top:1px solid var(--cream2);padding-top:6px;margin-top:4px;}
.fee-preview{background:var(--cream);border-radius:6px;padding:0.8rem;margin-top:0.8rem;}
.verified-card{background:#fff;border-radius:10px;border:1px solid var(--cream2);padding:1.5rem;margin-bottom:1rem;display:flex;gap:1.2rem;align-items:flex-start;}
.verified-seal{width:46px;height:46px;border-radius:50%;background:rgba(26,107,90,0.1);display:flex;align-items:center;justify-content:center;color:var(--teal2);font-size:22px;flex-shrink:0;border:2px solid rgba(40,163,133,0.3);}
.vc-code{font-family:monospace;font-size:12px;background:var(--navy);color:var(--gold2);padding:5px 12px;border-radius:5px;letter-spacing:1px;display:inline-block;}
.copy-btn{background:none;border:1px solid var(--cream2);border-radius:5px;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:#aaa;font-size:13px;vertical-align:middle;}
.notif-item{display:flex;gap:12px;padding:1rem;background:#fff;border-radius:8px;border:1px solid var(--cream2);margin-bottom:8px;}
.notif-dot{width:8px;height:8px;border-radius:50%;margin-top:5px;flex-shrink:0;}
.dtype-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:1rem;}
.dtype-card{background:#fff;border-radius:8px;border:1px solid var(--cream2);padding:1rem;}
.dtype-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:0.5rem;}
.dtype-icon{width:32px;height:32px;background:var(--cream);border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:16px;}
.dtype-name{font-size:12px;font-weight:500;margin-bottom:3px;}.dtype-desc{font-size:11px;color:#aaa;margin-bottom:8px;}
.dp-row{display:flex;justify-content:space-between;font-size:11px;margin-bottom:3px;}
.profile-avatar-big{width:70px;height:70px;border-radius:50%;background:rgba(201,150,42,0.2);display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:500;color:var(--gold);margin:0 auto 1rem;border:3px solid rgba(201,150,42,0.3);overflow:hidden;}
@keyframes spin{to{transform:rotate(360deg);}}
details>summary{list-style:none;} details>summary::-webkit-details-marker{display:none;}
@media(max-width:768px){.dtype-grid{grid-template-columns:1fr;}}
