/* =====================================================================
   Lagos Exam Prep — "Lagoon & Brass" design system
   Lagoon ink for structure, brass for the one accent, cool mist ground.
   Signature element: an engraved guilloché band (certificate/banknote
   security linework) at the top of every page.
   ===================================================================== */

@font-face {
  font-family: 'Manrope';
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('../vendor/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('../vendor/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-024F, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../vendor/fonts/fraunces-latin-opsz-normal.woff2') format('woff2-variations');
}

:root {
  --ink:        #0B2B3C;   /* lagoon ink */
  --ink-2:      #123F55;   /* deep lagoon */
  --tide:       #1E6A86;   /* tide */
  --tide-50:    #E6F0F4;
  --tide-100:   #CFE1E9;
  --brass:      #C9A04A;
  --brass-600:  #A9822F;
  --brass-50:   #FAF3E2;
  --brass-100:  #F1E2BB;
  --mist:       #EDF2F4;   /* page ground */
  --card:       #FFFFFF;
  --text:       #0E2230;
  --text-2:     #3E5562;
  --text-3:     #6E8390;
  --line:       #DCE5EA;
  --line-2:     #C7D4DB;
  --ok:         #1F8A5B;
  --ok-50:      #E5F3EC;
  --red:        #C2412D;
  --red-50:     #FBEAE6;
  --amber:      #A86A12;
  --amber-50:   #FBF1DF;

  --r-lg: 20px; --r: 14px; --r-sm: 10px;
  --shadow-1: 0 1px 2px rgba(11, 43, 60, .06), 0 1px 1px rgba(11, 43, 60, .04);
  --shadow-2: 0 2px 4px rgba(11, 43, 60, .04), 0 10px 30px -8px rgba(11, 43, 60, .16);
  --shadow-3: 0 24px 60px -18px rgba(11, 43, 60, .45);
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --tabbar-h: 66px;
  --font-scale: 1;
  --band-h: 236px;

  --bs-body-font-family: var(--sans);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--mist);
  --bs-border-color: var(--line);
  --bs-link-color: var(--tide);
  --bs-link-color-rgb: 30, 106, 134;
  --bs-link-hover-color: var(--ink);
  --bs-primary: #0B2B3C;
  --bs-primary-rgb: 11, 43, 60;
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--mist);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'tnum' 0;
  position: relative;
}
.main { flex: 1 0 auto; padding-bottom: 40px; position: relative; }
body.layout-app .main, body.layout-admin .main { padding-bottom: calc(var(--tabbar-h) + 40px); }
@media (min-width: 992px) { body.layout-app .main, body.layout-admin .main { padding-bottom: 56px; } }

h1, h2, h3, h4, h5 { color: var(--text); letter-spacing: -.015em; }
h1, .h1, .display { font-family: var(--serif); font-weight: 600; font-variation-settings: 'opsz' 96; letter-spacing: -.02em; line-height: 1.12; }
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 700; }
h3, h4, h5 { font-weight: 700; }
a { text-decoration: none; }
.mono, .num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.text-muted { color: var(--text-3) !important; }
.small-caps { font-size: .8rem; font-weight: 700; color: var(--text-3); letter-spacing: .01em; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 2000; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid rgba(201, 160, 74, .7); outline-offset: 2px; }

/* --------------------------------------------------------------------- */
/* Signature band                                                         */
/* --------------------------------------------------------------------- */
.band {
  position: absolute; left: 0; right: 0; top: 0; height: var(--band-h); z-index: 0; overflow: hidden;
  background:
    radial-gradient(900px 260px at 85% -40px, rgba(201, 160, 74, .20), transparent 70%),
    radial-gradient(700px 300px at 0% 120%, rgba(30, 106, 134, .55), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
.band::before {
  content: ''; position: absolute; inset: 0;
  background: url('../img/guilloche.svg') center / 1600px 100% repeat-x;
  opacity: .9;
}
.band::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 160, 74, .55), transparent);
}
/* Text that sits on the band */
.on-band, .on-band h1, .on-band h2, .on-band p { color: #fff; }
.on-band p, .on-band .lead-muted { color: rgba(255, 255, 255, .72); }
.on-band a:not(.btn) { color: var(--brass-100); }
.on-band a:not(.btn):hover { color: #fff; }

/* --------------------------------------------------------------------- */
/* Buttons                                                                */
/* --------------------------------------------------------------------- */
.btn { font-weight: 700; border-radius: 12px; padding: .66rem 1.15rem; letter-spacing: -.005em; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .42rem .8rem; border-radius: 9px; font-size: .875rem; }
.btn-lg { padding: .9rem 1.45rem; font-size: 1.05rem; border-radius: 14px; }
.btn-primary {
  background: linear-gradient(180deg, var(--ink-2), var(--ink)); border: 1px solid var(--ink); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 16px -8px rgba(11, 43, 60, .6);
}
.btn-primary:hover, .btn-primary:focus { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:disabled { background: var(--ink-2); border-color: var(--ink-2); opacity: .7; }
.btn-gold {
  background: linear-gradient(180deg, #D9B462, var(--brass)); border: 1px solid var(--brass-600); color: #23190A;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 20px -10px rgba(169, 130, 47, .9);
}
.btn-gold:hover { background: var(--brass); color: #1B1306; border-color: var(--brass-600); }
.btn-outline-primary { color: var(--ink); border-color: var(--ink); }
.btn-outline-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost { background: #fff; border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--tide-50); border-color: var(--tide-100); color: var(--ink); }
.on-band .btn-ghost, .btn-ghost-light { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.on-band .btn-ghost:hover, .btn-ghost-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-light-soft { background: var(--tide-50); color: var(--ink); border: 1px solid var(--tide-100); }
.btn-light-soft:hover { background: var(--tide-100); color: var(--ink); }
.btn-link { color: var(--tide); font-weight: 700; }

/* --------------------------------------------------------------------- */
/* Top bar (sits on the band)                                             */
/* --------------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 1030; background: transparent; transition: background .2s, box-shadow .2s; }
.topbar.scrolled { background: rgba(11, 43, 60, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .5); }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, #DDBB6C, var(--brass-600)); color: var(--ink); font-size: .95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 12px -4px rgba(0, 0, 0, .5);
}
.brand-text { font-size: 1.06rem; }
.brand-text small { display: block; font-size: .68rem; font-weight: 600; color: rgba(255, 255, 255, .6); letter-spacing: .01em; margin-top: -3px; }
.brand-sm .brand-mark { width: 30px; height: 30px; font-size: .82rem; }
.topnav { gap: 2px; margin-left: 16px; }
.topnav a { color: rgba(255, 255, 255, .72); font-weight: 700; font-size: .92rem; padding: 8px 13px; border-radius: 10px; }
.topnav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.topnav a.active { color: var(--ink); background: var(--brass-100); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: rgba(255, 255, 255, .85); font-size: 1.12rem; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.badge-dot {
  position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--brass); color: var(--ink); font-size: .68rem; font-weight: 800; display: grid; place-items: center; line-height: 1;
  box-shadow: 0 0 0 2px var(--ink);
}
.avatar-btn { border: 0; background: none; padding: 0 0 0 4px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: .85rem;
  background: var(--brass-50); color: var(--ink); border: 2px solid var(--brass);
}
.topbar .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.topbar .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.topbar .btn-primary { background: linear-gradient(180deg, #D9B462, var(--brass)); color: var(--ink); border-color: var(--brass-600); box-shadow: none; }
.dropdown-menu { border-radius: 14px; border-color: var(--line); padding: 6px; min-width: 240px; box-shadow: var(--shadow-3); }
.dropdown-item { border-radius: 9px; padding: 9px 10px; font-size: .92rem; font-weight: 600; color: var(--text); }
.dropdown-item:hover { background: var(--tide-50); }
.dropdown-header { white-space: normal; color: var(--text); }

.announce { position: relative; z-index: 2; background: var(--brass-50); color: #5B4313; font-size: .9rem; font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--brass-100); }

/* --------------------------------------------------------------------- */
/* Mobile tab bar                                                         */
/* --------------------------------------------------------------------- */
.tabbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 1030;
  height: var(--tabbar-h); border-radius: 20px;
  background: rgba(11, 43, 60, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: grid; grid-template-columns: repeat(5, 1fr);
  box-shadow: 0 18px 40px -14px rgba(11, 43, 60, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: rgba(255, 255, 255, .58); font-size: .68rem; font-weight: 700; min-height: 44px; }
.tabbar a i { font-size: 1.12rem; }
.tabbar a.active { color: var(--brass); }
.tabbar a.active::before { content: ''; position: absolute; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); transform: translateY(-4px); }
.tab-badge { position: absolute; top: 8px; left: calc(50% + 6px); font-style: normal; background: var(--brass); color: var(--ink); font-size: .6rem; font-weight: 800; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; }

.back-to-top {
  position: fixed; right: 16px; bottom: 20px; z-index: 1020; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
body.layout-app .back-to-top, body.layout-admin .back-to-top { bottom: calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom)); }
body.layout-exam .back-to-top { bottom: 100px; }
@media (min-width: 992px) { body.layout-app .back-to-top, body.layout-admin .back-to-top { bottom: 24px; } }

/* --------------------------------------------------------------------- */
/* Page head on the band, cards and surfaces                              */
/* --------------------------------------------------------------------- */
.page-head { padding: 22px 0 26px; color: #fff; }
.page-head h1, .page-head h2 { color: #fff; }
.page-head p { color: rgba(255, 255, 255, .74); margin: 6px 0 0; max-width: 640px; }
.page-head a:not(.btn):not(.chip) { color: var(--brass-100); }
.page-head .text-muted { color: rgba(255, 255, 255, .62) !important; }
.page-head .chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }
.page-head .chip.green { background: rgba(201, 160, 74, .16); border-color: rgba(201, 160, 74, .45); color: var(--brass-100); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; letter-spacing: .01em;
  color: var(--brass-100); background: rgba(201, 160, 74, .14); border: 1px solid rgba(201, 160, 74, .38);
  padding: 3px 11px; border-radius: 999px;
}
.card-x { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.card-x.pad { padding: 20px; }
@media (min-width: 768px) { .card-x.pad { padding: 26px; } }
.card-title-x { font-size: 1.02rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.list-x { list-style: none; margin: 0; padding: 0; }
.list-x > li { border-top: 1px solid var(--line); }
.list-x > li:first-child { border-top: 0; }
.row-link { display: flex; align-items: center; gap: 14px; padding: 14px 6px; color: var(--text); border-radius: 12px; }
.row-link:hover { color: var(--text); background: var(--tide-50); }
.row-link .grow { flex: 1; min-width: 0; }
.row-link .chev { color: var(--text-3); }
.empty { text-align: center; padding: 38px 16px; color: var(--text-3); }
.empty i { font-size: 1.9rem; color: var(--tide-100); margin-bottom: 10px; display: block; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; left: 16px; right: 16px; top: 0; height: 2px; background: linear-gradient(90deg, var(--brass), transparent); opacity: .7; }
.stat .label { font-size: .8rem; color: var(--text-3); font-weight: 700; }
.stat .value { font-family: var(--serif); font-variation-settings: 'opsz' 72; font-size: 1.85rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.stat .sub { font-size: .78rem; color: var(--text-3); }

/* Readiness seal */
.ready-card {
  background:
    radial-gradient(500px 220px at 100% 0%, rgba(201, 160, 74, .22), transparent 70%),
    linear-gradient(150deg, #0F364A, var(--ink));
  color: #fff; border-radius: var(--r-lg); padding: 24px; position: relative; overflow: hidden;
  border: 1px solid rgba(201, 160, 74, .35);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.ready-card::before {
  content: ''; position: absolute; inset: 0; background: url('../img/guilloche.svg') center / 1600px 100% repeat-x; opacity: .55; pointer-events: none;
}
.ready-card > * { position: relative; }
.ready-card h2, .ready-card h3 { color: #fff; font-family: var(--serif); font-weight: 600; }
.ready-card .muted { color: rgba(255, 255, 255, .74); }
.ready-ring {
  --p: 0; width: 128px; height: 128px; border-radius: 50%; flex: none; position: relative; display: grid; place-items: center;
  background: conic-gradient(var(--brass) calc(var(--p) * 1%), rgba(255, 255, 255, .1) 0);
}
.ready-ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #0D3245 url('../img/seal.svg') center / 100% 100% no-repeat; box-shadow: inset 0 0 0 1px rgba(201, 160, 74, .35); }
.ready-ring > div { position: relative; text-align: center; }
.ready-ring span { font-family: var(--serif); font-variation-settings: 'opsz' 144; font-size: 2.35rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: #fff; }
.ready-ring small { display: block; font-size: .68rem; color: rgba(255, 255, 255, .62); margin-top: 3px; font-weight: 700; }
.band-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: .78rem; }
.band-success { background: var(--ok-50); color: var(--ok); }
.band-warning { background: var(--amber-50); color: var(--amber); }
.band-danger  { background: var(--red-50); color: var(--red); }
.ready-card .band-pill { background: rgba(201, 160, 74, .18); color: var(--brass-100); border: 1px solid rgba(201, 160, 74, .4); }

/* Mastery bars */
.mastery-row { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.mastery-row:first-child { border-top: 0; }
.mastery-row .name { font-weight: 700; font-size: .93rem; }
.mastery-row .val { font-weight: 800; font-size: .88rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.bar { grid-column: 1 / -1; height: 7px; border-radius: 4px; background: var(--tide-50); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 4px; background: var(--line-2); }
.bar.good > span { background: linear-gradient(90deg, var(--tide), var(--ok)); }
.bar.mid > span  { background: linear-gradient(90deg, var(--brass-600), var(--brass)); }
.bar.low > span  { background: var(--red); }
.mastery-row .meta { grid-column: 1 / -1; font-size: .77rem; color: var(--text-3); }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #F2F6F8; color: var(--text-2); border: 1px solid var(--line); }
.chip.green { background: var(--tide-50); color: var(--ink-2); border-color: var(--tide-100); }
.chip.gold { background: var(--brass-50); color: #7A5916; border-color: var(--brass-100); }
.chip.red { background: var(--red-50); color: var(--red); border-color: #F2C9C1; }
.chip.blue { background: var(--tide-50); color: var(--tide); border-color: var(--tide-100); }
.chip.ok { background: var(--ok-50); color: var(--ok); border-color: #BFE2CF; }
.chip.mono { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------- */
/* Landing                                                                */
/* --------------------------------------------------------------------- */
body.home .band { display: none; }
body.home .main { margin-top: -64px; }
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 96px 0 104px;
  background:
    radial-gradient(900px 340px at 85% 0, rgba(201, 160, 74, .22), transparent 70%),
    radial-gradient(800px 400px at 0% 100%, rgba(30, 106, 134, .55), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
.hero::before { content: ''; position: absolute; inset: 0; background: url('../img/guilloche.svg') center 30% / 1600px 360px repeat; opacity: .9; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 160, 74, .6), transparent); }
.hero > .container-xl { position: relative; }
@media (min-width: 992px) { .hero { padding: 128px 0 140px; } }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 7vw, 4rem); line-height: 1.03; letter-spacing: -.035em; font-variation-settings: 'opsz' 144; font-weight: 600; max-width: 13ch; }
.hero .lead { color: rgba(255, 255, 255, .78); font-size: 1.1rem; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: rgba(255, 255, 255, .72); font-size: .88rem; font-weight: 600; }
.trust strong { color: #fff; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-right: 6px; }

.mock-phone {
  max-width: 330px; margin: 0 auto; background: #fff; border-radius: 34px; padding: 10px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(201, 160, 74, .4), 0 0 0 9px rgba(255, 255, 255, .06);
  position: relative;
}
.mock-phone .mp-screen { border-radius: 26px; overflow: hidden; background: var(--mist); }
.mock-phone .mp-bar { background: var(--ink); color: #fff; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; font-size: .72rem; font-weight: 700; }
.mock-phone .mp-timer { background: rgba(201, 160, 74, .2); color: var(--brass-100); padding: 3px 9px; border-radius: 7px; font-variant-numeric: tabular-nums; }
.mock-phone .mp-body { padding: 14px; }
.mock-phone .mp-q { font-weight: 700; font-size: .95rem; margin: 2px 0 12px; color: var(--text); line-height: 1.45; }
.mock-phone .mp-opt { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 10px; font-size: .84rem; margin-bottom: 7px; display: flex; gap: 9px; align-items: center; color: var(--text); }
.mock-phone .mp-opt b { width: 22px; height: 22px; border-radius: 7px; background: var(--tide-50); display: grid; place-items: center; font-size: .7rem; flex: none; color: var(--ink); }
.mock-phone .mp-opt.sel { border-color: var(--ink); background: var(--tide-50); }
.mock-phone .mp-opt.sel b { background: var(--ink); color: #fff; }
.mock-phone .mp-pal { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 12px; }
.mock-phone .mp-pal span { aspect-ratio: 1; border-radius: 4px; background: #DDE6EB; }
.mock-phone .mp-pal span.a { background: var(--ink); }
.mock-phone .mp-pal span.f { background: var(--brass); }

.section { padding: 56px 0; }
.section-title { max-width: 640px; margin: 0 0 28px; }
.section-title h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -.02em; line-height: 1.15; }
.section-title p { color: var(--text-2); }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature { padding: 22px; height: 100%; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--brass); display: grid; place-items: center; font-size: 1.1rem; margin-bottom: 14px; }
.feature h3 { font-size: 1.04rem; margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: .93rem; margin: 0; }
.home-cats { margin-top: -56px; position: relative; z-index: 2; }

.cat-tile { display: flex; gap: 14px; align-items: flex-start; padding: 18px; color: var(--text); height: 100%; transition: border-color .15s, box-shadow .15s; }
.cat-tile:hover { color: var(--text); border-color: var(--brass); box-shadow: var(--shadow-3); }
.cat-badge {
  font-family: var(--serif); font-weight: 600; font-size: .95rem; min-width: 56px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: var(--brass-100); padding: 0 8px; flex: none; font-variant-numeric: lining-nums;
  box-shadow: inset 0 -2px 0 rgba(201, 160, 74, .6);
}
.cat-badge.promo { background: var(--brass); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(11, 43, 60, .3); }
.cat-tile h3 { font-size: 1rem; margin: 0 0 3px; }
.cat-tile p { margin: 0; font-size: .86rem; color: var(--text-2); }

.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 22px; position: relative; }
.step .n { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--brass); line-height: 1; margin-bottom: 8px; display: block; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .93rem; }
.compare th, .compare td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.compare thead th { border-top: 0; font-size: .8rem; color: var(--text-3); font-weight: 800; }
.compare td.us { background: var(--tide-50); font-weight: 700; color: var(--ink); }
.compare .yes { color: var(--ok); }
.compare .no { color: var(--text-3); }

.cta-band {
  position: relative; overflow: hidden; color: #fff; border-radius: 26px; padding: 40px 24px; text-align: center;
  background: radial-gradient(600px 200px at 50% 0%, rgba(201, 160, 74, .25), transparent 70%), linear-gradient(160deg, var(--ink-2), var(--ink));
  border: 1px solid rgba(201, 160, 74, .35);
}
.cta-band::before { content: ''; position: absolute; inset: 0; background: url('../img/guilloche.svg') center / 1600px 100% repeat-x; opacity: .7; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.cta-band p { color: rgba(255, 255, 255, .78); }

/* --------------------------------------------------------------------- */
/* Auth                                                                   */
/* --------------------------------------------------------------------- */
.auth-wrap { max-width: 470px; margin: 8px auto 28px; padding: 0 16px; }
.auth-intro { color: #fff; text-align: center; margin-bottom: 18px; }
.auth-intro h1 { color: #fff; font-size: clamp(1.7rem, 5vw, 2.2rem); margin: 0 0 6px; }
.auth-intro p { color: rgba(255, 255, 255, .72); margin: 0; }
.auth-card { padding: 24px; }
@media (min-width: 576px) { .auth-card { padding: 32px; } }
.form-label { font-weight: 700; font-size: .88rem; margin-bottom: 6px; color: var(--text); }
.form-control, .form-select { border-radius: 12px; border-color: var(--line-2); padding: .72rem .9rem; font-size: 1rem; background-color: #fff; color: var(--text); }
.form-control:focus, .form-select:focus { border-color: var(--tide); box-shadow: 0 0 0 .22rem rgba(30, 106, 134, .16); }
.form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(30, 106, 134, .2); border-color: var(--tide); }
.form-text { color: var(--text-3); }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--text-3); width: 40px; height: 40px; }
.input-wrap { position: relative; }

/* Option cards (category, mode pick) */
.pick { display: block; position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick .pick-body { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-1); transition: border-color .15s, background .15s, box-shadow .15s; }
.pick:hover .pick-body { border-color: var(--line-2); }
.pick input:checked + .pick-body { border-color: var(--brass); box-shadow: 0 0 0 4px rgba(201, 160, 74, .18), var(--shadow-2); }
.pick input:focus-visible + .pick-body { outline: 3px solid rgba(201, 160, 74, .6); outline-offset: 2px; }
.pick .tick { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; color: transparent; font-size: .7rem; }
.pick input:checked + .pick-body .tick { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.pick h3 { font-size: 1.02rem; margin: 0 0 2px; }
.pick p { margin: 0; font-size: .87rem; color: var(--text-2); }
.subj-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.group-label { color: var(--text-3); font-size: .85rem; font-weight: 800; margin: 26px 0 10px; }

.mode-card { display: flex; gap: 15px; align-items: flex-start; padding: 18px; color: var(--text); width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-1); transition: border-color .15s, box-shadow .15s; }
.mode-card:hover { border-color: var(--brass); box-shadow: var(--shadow-2); color: var(--text); }
.mode-card:disabled { opacity: .55; }
.mode-card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.15rem; flex: none; }
.mode-card .ic.g { background: var(--ink); color: var(--brass); }
.mode-card .ic.o { background: var(--brass-50); color: var(--brass-600); border: 1px solid var(--brass-100); }
.mode-card .ic.b { background: var(--tide-50); color: var(--tide); border: 1px solid var(--tide-100); }
.mode-card .ic.r { background: var(--red-50); color: var(--red); border: 1px solid #F2C9C1; }
.mode-card h3, .mode-card .mc-title { display: block; font-size: 1.04rem; font-weight: 800; margin: 0 0 3px; letter-spacing: -.01em; }
.mode-card p, .mode-card .mc-desc { display: block; margin: 0; font-size: .88rem; color: var(--text-2); }
.mode-card .meta { display: block; font-size: .78rem; color: var(--text-3); margin-top: 7px; font-weight: 600; }
.subject-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tide-50); color: var(--ink); flex: none; border: 1px solid var(--tide-100); }

/* --------------------------------------------------------------------- */
/* Exam screen                                                            */
/* --------------------------------------------------------------------- */
body.layout-exam { background: #F4F7F8; }
.exam-top { position: sticky; top: 0; z-index: 1030; background: linear-gradient(180deg, var(--ink-2), var(--ink)); color: #fff; box-shadow: 0 6px 20px -12px rgba(0, 0, 0, .6); }
.exam-top-inner { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 12px; max-width: 1200px; margin: 0 auto; }
.exam-top .btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #fff; }
.exam-progress { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.exam-progress span { display: block; height: 100%; background: var(--brass); width: 0; transition: width .25s; }
.exam-count { font-size: .82rem; color: rgba(255, 255, 255, .7); white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.exam-sub .exam-count { color: var(--text-3); }
.timer {
  font-weight: 800; font-size: 1rem; padding: 6px 11px; border-radius: 10px; white-space: nowrap; min-width: 92px; text-align: center;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-variant-numeric: tabular-nums;
}
.timer.warn { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.timer.danger { background: var(--red); border-color: var(--red); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .7; } }
.exam-sub { background: #fff; border-bottom: 1px solid var(--line); }
.exam-sub-inner { display: flex; align-items: center; gap: 8px; padding: 8px 12px; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; }
.exam-sub .spacer { flex: 1; }
.font-ctrl { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.font-ctrl button { border: 0; background: none; padding: 4px 10px; font-weight: 800; color: var(--text-2); min-height: 34px; }
.font-ctrl button + button { border-left: 1px solid var(--line); }

.exam-body { max-width: 1200px; margin: 0 auto; padding: 16px 12px 120px; display: grid; gap: 20px; }
@media (min-width: 992px) { .exam-body { grid-template-columns: minmax(0, 1fr) 312px; padding: 26px 16px 40px; } }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 20px; position: relative; overflow: hidden; }
.q-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--ink), var(--tide) 70%, var(--brass)); }
@media (min-width: 768px) { .q-card { padding: 28px; } }
.q-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.q-num { font-size: .82rem; font-weight: 800; color: var(--tide); }
.q-stem { font-size: calc(1.12rem * var(--font-scale)); font-weight: 700; line-height: 1.55; margin: 0; white-space: pre-line; color: var(--text); }
.options { margin-top: 18px; display: grid; gap: 10px; }
.opt {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 14px; min-height: 54px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--text);
  font-size: calc(1rem * var(--font-scale)); transition: border-color .12s, background .12s, box-shadow .12s;
}
.opt:hover { border-color: var(--tide-100); background: #FAFCFD; }
.opt .key { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--tide-50); display: grid; place-items: center; font-weight: 800; font-size: .82rem; color: var(--ink); border: 1px solid var(--tide-100); }
.opt .txt { padding-top: 3px; }
.opt.selected { border-color: var(--ink); background: var(--tide-50); box-shadow: 0 0 0 3px rgba(11, 43, 60, .08); }
.opt.selected .key { background: var(--ink); color: var(--brass-100); border-color: var(--ink); }
.opt.correct { border-color: var(--ok); background: var(--ok-50); }
.opt.correct .key { background: var(--ok); color: #fff; border-color: var(--ok); }
.opt.wrong { border-color: var(--red); background: var(--red-50); }
.opt.wrong .key { background: var(--red); color: #fff; border-color: var(--red); }
.opt:disabled { opacity: 1; cursor: default; }
.explain { margin-top: 16px; border-radius: 14px; padding: 15px 17px; background: #F5F8FA; border: 1px solid var(--line); font-size: calc(.95rem * var(--font-scale)); }
.explain.ok { background: var(--ok-50); border-color: #BFE2CF; }
.explain.bad { background: var(--red-50); border-color: #F2C9C1; }
.explain .src { font-size: .8rem; color: var(--text-3); margin-top: 8px; }
.draft-note { font-size: .76rem; font-weight: 700; color: var(--amber); }

.exam-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1025; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -12px rgba(11, 43, 60, .25); }
.exam-nav-inner { display: grid; grid-template-columns: 1fr auto auto 1fr; gap: 8px; max-width: 1200px; margin: 0 auto; align-items: center; }
.exam-nav .btn { min-height: 50px; }
.btn-flag.on { background: var(--brass-50); border-color: var(--brass); color: #7A5916; }
@media (min-width: 992px) {
  .exam-nav { position: static; box-shadow: var(--shadow-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; margin-top: 16px; background: #fff; }
}
.palette-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 18px; align-self: start; position: sticky; top: 132px; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.palette button { position: relative; aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-size: .8rem; font-weight: 800; color: var(--text-2); min-height: 40px; font-variant-numeric: tabular-nums; }
.palette button:hover { border-color: var(--tide); }
.palette button.answered { background: var(--ink); border-color: var(--ink); color: #fff; }
.palette button.flagged::after { content: ''; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 1.5px #fff; }
.palette button.current { outline: 2.5px solid var(--brass); outline-offset: 1px; }
.palette button.right { background: var(--ok); border-color: var(--ok); color: #fff; }
.palette button.wrongp { background: var(--red); border-color: var(--red); color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .76rem; color: var(--text-3); margin-top: 12px; font-weight: 600; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; border: 1px solid var(--line-2); }
.legend .l-ans { background: var(--ink); border-color: var(--ink); }
.legend .l-flag { background: var(--brass); border-color: var(--brass); border-radius: 50%; }
.legend .l-cur { outline: 2px solid var(--brass); }
@media (max-width: 991.98px) { .palette-panel { display: none; } }
.offcanvas-bottom.palette-sheet { height: auto; max-height: 78vh; border-radius: 22px 22px 0 0; }
.saving { font-size: .76rem; color: var(--text-3); white-space: nowrap; font-weight: 600; }
.saving.err { color: var(--red); }
@media (max-width: 575.98px) {
  .exam-sub-inner { flex-wrap: nowrap; gap: 6px; }
  .exam-sub .save-txt { display: none; }
  .exam-sub .chip { padding: 4px 8px; }
  .font-ctrl button { padding: 4px 8px; }
}
.modal-content { border-radius: 20px; border: 0; box-shadow: var(--shadow-3); }

/* --------------------------------------------------------------------- */
/* Results / review                                                       */
/* --------------------------------------------------------------------- */
.score-hero { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.score-big { font-family: var(--serif); font-variation-settings: 'opsz' 144; font-size: clamp(3rem, 11vw, 4.3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.review-item { padding: 20px; }
.review-item + .review-item { margin-top: 12px; }
.review-opts { display: grid; gap: 7px; margin-top: 12px; }
.review-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 13px; border-radius: 12px; border: 1px solid var(--line); font-size: .95rem; }
.review-opt .key { font-weight: 800; font-size: .82rem; width: 22px; flex: none; color: var(--text-3); padding-top: 1px; }
.review-opt.correct { border-color: #BFE2CF; background: var(--ok-50); }
.review-opt.correct .key { color: var(--ok); }
.review-opt.wrong { border-color: #F2C9C1; background: var(--red-50); }
.review-opt.wrong .key { color: var(--red); }
.filter-pills { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.filter-pills a { white-space: nowrap; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: .86rem; font-weight: 700; background: #fff; }
.filter-pills a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-head + .filter-pills, .on-band .filter-pills a:not(.active) { background: #fff; }

/* --------------------------------------------------------------------- */
/* Inbox / notifications                                                  */
/* --------------------------------------------------------------------- */
.thread-row { display: flex; gap: 12px; padding: 15px 16px; color: var(--text); align-items: flex-start; }
.thread-row:hover { background: #F7FAFB; color: var(--text); }
.thread-row.unread { background: var(--brass-50); }
.thread-row .t-title { font-weight: 600; }
.thread-row.unread .t-title { font-weight: 800; }
.thread-row .t-snip { font-size: .87rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-row .t-time { font-size: .76rem; color: var(--text-3); white-space: nowrap; }
.avatar-sm { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 800; flex: none; background: var(--tide-50); color: var(--ink); border: 1px solid var(--tide-100); }
.avatar-sm.support { background: var(--ink); color: var(--brass); border-color: var(--ink); }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #F7FAFB; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.bubble { max-width: 85%; padding: 11px 15px; border-radius: 18px; font-size: .95rem; white-space: pre-line; word-wrap: break-word; }
.bubble .b-meta { font-size: .7rem; margin-top: 5px; opacity: .7; font-weight: 600; }
.bubble.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.bubble.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.composer textarea { resize: none; min-height: 48px; }
.notif { display: flex; gap: 12px; padding: 15px 16px; color: var(--text); }
.notif:hover { background: #F7FAFB; color: var(--text); }
.notif.unread { background: var(--brass-50); }
.notif .n-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.n-result { background: var(--ink); color: var(--brass); }
.n-message { background: var(--tide-50); color: var(--tide); }
.n-broadcast { background: var(--brass-50); color: var(--brass-600); }
.n-report { background: var(--red-50); color: var(--red); }
.n-system { background: #EEF2F4; color: var(--text-2); }
.n-payment { background: var(--ok-50); color: var(--ok); }
.notif .n-title { font-weight: 600; }
.notif.unread .n-title { font-weight: 800; }
.notif .n-body { font-size: .89rem; color: var(--text-2); }
.notif .n-time { font-size: .76rem; color: var(--text-3); }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brass); flex: none; margin-top: 6px; }

/* --------------------------------------------------------------------- */
/* Tables (admin)                                                         */
/* --------------------------------------------------------------------- */
.table-x { width: 100%; font-size: .9rem; }
.table-x th { font-size: .78rem; color: var(--text-3); font-weight: 800; padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-x td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-x tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-sub { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 14px; margin: 0 -2px; }
.admin-sub a { white-space: nowrap; padding: 8px 13px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: .85rem; box-shadow: var(--shadow-1); }
.admin-sub a.active { background: var(--brass); border-color: var(--brass); color: var(--ink); }
@media (max-width: 767.98px) {
  .table-stack thead { display: none; }
  .table-stack tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .table-stack td { display: flex; gap: 10px; border: 0; padding: 4px 12px; }
  .table-stack td::before { content: attr(data-label); flex: 0 0 96px; font-size: .76rem; color: var(--text-3); font-weight: 800; padding-top: 2px; }
}
.pagination .page-link { color: var(--ink); border-color: var(--line); min-width: 40px; text-align: center; }
.pagination .active .page-link { background: var(--ink); border-color: var(--ink); color: #fff; }

/* --------------------------------------------------------------------- */
/* Plans / pricing                                                        */
/* --------------------------------------------------------------------- */
.plan { padding: 24px; height: 100%; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--brass); box-shadow: var(--shadow-3); }
.plan .ribbon { position: absolute; top: -12px; left: 24px; background: var(--brass); color: var(--ink); font-size: .74rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.plan .price { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.plan .price small { font-family: var(--sans); font-size: .9rem; color: var(--text-3); font-weight: 700; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: .93rem; color: var(--text-2); }
.plan li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 7px; color: var(--ok); font-size: .82rem; }
.founder { display: inline-flex; align-items: center; gap: 6px; background: var(--brass-50); color: #7A5916; border: 1px solid var(--brass-100); font-size: .76rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.page-head .founder { background: rgba(201, 160, 74, .16); color: var(--brass-100); border-color: rgba(201, 160, 74, .45); }
.launch-note { background: linear-gradient(90deg, var(--brass-50), #fff); border: 1px solid var(--brass-100); border-radius: var(--r); padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.launch-note i { color: var(--brass-600); font-size: 1.2rem; }

/* --------------------------------------------------------------------- */
/* Footer                                                                 */
/* --------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 34px 0 28px; font-size: .88rem; position: relative; z-index: 1; }
.site-footer .brand { color: #fff; }
body.layout-app .site-footer, body.layout-admin .site-footer { padding-bottom: calc(var(--tabbar-h) + 34px); }
@media (min-width: 992px) { body.layout-app .site-footer, body.layout-admin .site-footer { padding-bottom: 28px; } }
.footer-grid { display: grid; gap: 18px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: #fff; font-weight: 700; }
.footer-links a:hover { color: var(--brass); }
.footer-note { color: rgba(255, 255, 255, .6); margin: 0; }
.disclaimer { margin: 20px 0 6px; color: rgba(255, 255, 255, .55); font-size: .8rem; max-width: 820px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.copyright { color: rgba(255, 255, 255, .45); font-size: .8rem; margin: 0; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.2rem; margin-top: 28px; font-family: var(--serif); font-weight: 600; }
.prose p, .prose li { color: var(--text-2); }

.alert { border-radius: 14px; font-size: .94rem; font-weight: 600; border: 1px solid transparent; box-shadow: var(--shadow-1); }
.alert-success { background: var(--ok-50); color: #145C3D; border-color: #BFE2CF; }
.alert-info { background: #fff; color: var(--ink); border-color: var(--tide-100); }
.alert-warning { background: var(--brass-50); color: #6A4D12; border-color: var(--brass-100); }
.alert-danger { background: var(--red-50); color: #8E2E1F; border-color: #F2C9C1; }
.flash-wrap { padding-top: 6px; position: relative; z-index: 2; }

.gap-12 { gap: 12px; }
.min-w-0 { min-width: 0; }
.fw-800 { font-weight: 800; }
.stack-sm > * + * { margin-top: 10px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Tick list (pricing, free launch) */
.ticks { list-style: none; padding: 0; margin: 12px 0 0; }
.ticks li { padding: 6px 0 6px 26px; position: relative; font-size: .95rem; color: var(--text-2); }
.ticks li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 7px; color: var(--ok); font-size: .82rem; }

/* Admin payment switch */
.pay-switch { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: var(--r-lg, 16px); border: 1px solid var(--line); background: #fff; }
.pay-switch.is-on { border-color: var(--ok); background: var(--ok-50); }
.pay-switch .state { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.copy-field { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; }

.topbar .btn-sm { white-space: nowrap; }
@media (max-width: 420px) {
  .brand-text small { display: none; }
  .topbar .btn-sm { padding: 6px 11px; font-size: .84rem; }
}
.plan .was { display: block; min-height: 1.3em; font-size: .86rem; font-weight: 700; color: var(--text-3); text-decoration: line-through; margin-top: 2px; }
.pay-switch .btn { white-space: nowrap; }

/* Admin nav badge and temporary password hand-off */
.nav-badge { display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 4px; border-radius: 999px; background: var(--brass); color: var(--ink); font-size: .72rem; font-weight: 800; line-height: 16px; text-align: center; }
.temp-pw { border: 2px solid var(--ok); background: var(--ok-50); }
.temp-pw .ic-ok { width: 44px; height: 44px; border-radius: 12px; background: var(--ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }

.topnav a { white-space: nowrap; }
.brand-text { white-space: nowrap; }
.topbar-admin .topnav a { padding: 8px 10px; font-size: .88rem; }
@media (min-width: 1200px) { .topbar-admin .brand-text small { display: none; } }

/* ---------------------------------------------------------------- Study notes (v2.4) */
.card-x.pad-sm { padding: 16px; }
.pack-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .pack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .pack-grid { grid-template-columns: repeat(3, 1fr); } }
.pack-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 20px; border-top: 4px solid var(--brass); }
.pack-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.pack-ic { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--brass); font-size: 1.1rem; }
.pack-title { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.pack-title a { color: var(--ink); text-decoration: none; }
.pack-title a:hover { color: var(--tide); }
.pack-meta { margin: 4px 0 0; font-size: .82rem; color: var(--text-3); }
.pack-sum { color: var(--text-2); font-size: .93rem; margin-bottom: 12px; }
.pack-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.review-line { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; font-weight: 600; margin: 0 0 14px; padding: 8px 10px; border-radius: var(--r-sm); line-height: 1.4; }
.review-line i { margin-top: 2px; }
.review-line.ok { background: var(--ok-50); color: var(--ok); }
.review-line.gold { background: var(--brass-50); color: #7A5916; }
.review-line.on-dark { display: inline-flex; margin: 10px 0 0; max-width: 720px; }
.review-line.on-dark.ok { background: rgba(31, 138, 91, .22); color: #CDEBDC; }
.review-line.on-dark.gold { background: rgba(201, 160, 74, .18); color: var(--brass-100); }
.mini-progress { height: 6px; border-radius: 6px; background: var(--tide-50); overflow: hidden; margin-bottom: 6px; }
.mini-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--tide), var(--brass)); border-radius: 6px; }

.note-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .note-layout { grid-template-columns: 290px minmax(0, 1fr); gap: 28px; } }
.note-aside .card-x { position: sticky; top: 86px; }
.toc-head { font-weight: 800; font-size: .86rem; color: var(--text-3); margin: 0 0 8px; }
.toc-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.toc-list a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r-sm); color: var(--text-2); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.toc-list a i { margin-top: 3px; color: var(--tide-100); }
.toc-list a .fa-circle-check { color: var(--ok); }
.toc-list a:hover { background: var(--mist); color: var(--ink); }
.toc-list a.active { background: var(--ink); color: #fff; }
.toc-list a.active i { color: var(--brass); }
.toc-list a.locked { color: var(--text-3); }
.toc-list a.locked i { color: var(--text-3); }
.note-toc-mobile { padding: 0; overflow: hidden; }
.note-toc-mobile summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; }
.note-toc-mobile summary::-webkit-details-marker { display: none; }
.note-toc-mobile[open] summary i { transform: rotate(180deg); }
.note-toc-mobile .toc-list { padding: 0 8px 10px; }
.note-card { padding: 22px 18px; }
@media (min-width: 768px) { .note-card { padding: 36px 44px; } }
.note-kicker { font-size: .8rem; font-weight: 700; color: var(--brass-600); margin: 0 0 6px; }
.note-h { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.015em; color: var(--ink); margin: 0 0 18px; line-height: 1.15; }
.note-body { max-width: 72ch; font-size: 1rem; line-height: 1.7; color: var(--text); }
.note-body h3 { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; color: var(--ink); margin: 26px 0 10px; letter-spacing: -.01em; }
.note-body h4 { font-size: 1rem; font-weight: 800; color: var(--tide); margin: 18px 0 8px; }
.note-body > :first-child { margin-top: 0; }
.note-body ul, .note-body ol { padding-left: 1.3rem; margin-bottom: 14px; }
.note-body li { margin-bottom: 5px; }
.note-body li::marker { color: var(--brass-600); }
.note-body strong { color: var(--ink); }
.md-table { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.md-table table { margin: 0; font-size: .9rem; min-width: 420px; }
.md-table th { background: var(--mist); color: var(--ink); font-weight: 800; white-space: nowrap; }
.md-table th, .md-table td { padding: 8px 12px; border-color: var(--line); vertical-align: top; }
.md-callout { margin: 10px 0 18px; padding: 12px 16px; border-left: 4px solid var(--brass); background: var(--brass-50); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .95rem; }
.note-updated { margin: 24px 0 0; font-size: .8rem; color: var(--text-3); }
.lock-panel { text-align: center; }
.lock-panel > i { font-size: 1.8rem; color: var(--brass); margin-bottom: 10px; }
.unlock-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.unlock-bar .small { color: rgba(255, 255, 255, .72); }
.note-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.pager-link { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); text-decoration: none; min-width: 0; }
.pager-link small { display: block; color: var(--text-3); font-weight: 700; font-size: .76rem; }
.pager-link span { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager-link.next { text-align: right; }
.pager-link:hover { border-color: var(--brass); color: var(--ink); }

/* ---------------------------------------------------------------- Interview practice (v2.4) */
.iv-hero { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 24px; border-radius: var(--r-lg); color: #fff;
  background: radial-gradient(420px 200px at 0% 100%, rgba(201, 160, 74, .2), transparent 70%), linear-gradient(150deg, #0F364A, var(--ink)); border: 1px solid rgba(201, 160, 74, .35); }
.iv-hero-text { flex: 1 1 340px; max-width: 640px; color: rgba(255, 255, 255, .85); }
.iv-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.iv-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0 0 10px; }
.iv-facts strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: #fff; margin-right: 4px; }
.iv-note a { color: var(--brass-100); }
.iv-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.iv-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.iv-filters .form-select { width: auto; min-width: 140px; }
@media (max-width: 575.98px) { .iv-filters { width: 100%; } .iv-filters .form-select { flex: 1 1 100%; } }
.iv-card { padding: 18px; }
@media (min-width: 768px) { .iv-card { padding: 24px 28px; } }
.iv-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.iv-q { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; line-height: 1.3; color: var(--ink); margin: 0 0 14px; letter-spacing: -.01em; }
.iv-model { margin: 12px 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--mist); }
.iv-model > summary { cursor: pointer; padding: 11px 14px; font-weight: 700; color: var(--tide); list-style: none; display: flex; gap: 10px; align-items: center; }
.iv-model > summary::-webkit-details-marker { display: none; }
.iv-model > summary i { transition: transform .15s; font-size: .8rem; }
.iv-model[open] > summary i { transform: rotate(90deg); }
.iv-model > .note-body { padding: 0 16px 6px; font-size: .96rem; }
.iv-tip { display: flex; gap: 10px; margin: 0 14px 14px; padding: 10px 12px; background: #fff; border-radius: var(--r-sm); border: 1px dashed var(--brass-100); font-size: .9rem; color: var(--text-2); }
.iv-tip i { color: var(--brass-600); margin-top: 3px; }
.iv-rate { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.iv-rate .btn { border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--text-2); }
.iv-rate .rate-1.on { background: var(--red-50); border-color: #F2C9C1; color: var(--red); }
.iv-rate .rate-2.on { background: var(--brass-50); border-color: var(--brass-100); color: #7A5916; }
.iv-rate .rate-3.on { background: var(--ok-50); border-color: #BFE2CF; color: var(--ok); }
.iv-saved { color: var(--ok); font-weight: 700; }
.iv-locked { margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--brass-50); color: #7A5916; font-weight: 600; font-size: .92rem; }
.iv-locked i { margin-right: 8px; }

.panel-stage { padding: 28px 20px; min-height: 360px; }
@media (min-width: 768px) { .panel-stage { padding: 44px 52px; } }
.panel-intro { text-align: center; padding: 20px 0; }
.panel-ic { width: 72px; height: 72px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ink); color: var(--brass); font-size: 1.7rem; margin-bottom: 14px; }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.panel-clock { font-family: var(--serif); font-variant-numeric: tabular-nums lining-nums; font-size: 2rem; font-weight: 600; color: var(--ink); line-height: 1; }
.panel-q.low .panel-clock { color: var(--red); }
.panel-bar { height: 6px; border-radius: 6px; background: var(--tide-50); overflow: hidden; margin-bottom: 28px; }
.panel-bar span { display: block; height: 100%; background: var(--tide); transition: width 1s linear; }
.panel-q.low .panel-bar span { background: var(--red); }
.panel-question { font-family: var(--serif); font-weight: 600; font-size: clamp(1.45rem, 3.2vw, 2.1rem); line-height: 1.25; color: var(--ink); margin: 0 0 22px; max-width: 34ch; outline: none; }
.panel-hint { color: var(--red); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .panel-bar span { transition: none; } }

/* ---------------------------------------------------------------- Admin analytics (v2.4) */
.an-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .an-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.funnel { list-style: none; margin: 0; padding: 0; }
.funnel li { display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr) 92px; gap: 12px; align-items: center; padding: 7px 0; font-size: .9rem; }
.funnel .fbar { height: 22px; border-radius: 6px; background: var(--tide-50); overflow: hidden; }
.funnel .fbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--ink-2), var(--tide)); border-radius: 6px; min-width: 2px; }
.funnel .fnum { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.funnel .fnum small { display: block; font-weight: 600; color: var(--text-3); }
@media (max-width: 575.98px) { .funnel li { grid-template-columns: 1fr 76px; } .funnel .fbar { grid-column: 1 / -1; grid-row: 2; } }
.key-flag { display: inline-flex; gap: 5px; align-items: center; font-size: .74rem; font-weight: 800; color: var(--red); background: var(--red-50); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.dist { display: flex; gap: 3px; min-width: 160px; }
.dist span { flex: 1; text-align: center; font-size: .72rem; font-weight: 700; padding: 3px 0; border-radius: 4px; background: var(--mist); color: var(--text-2); font-variant-numeric: tabular-nums; }
.dist span.is-key { background: var(--ok-50); color: var(--ok); }
.dist span.is-top { background: var(--red-50); color: var(--red); }
.an-table td, .an-table th { vertical-align: middle; font-size: .88rem; }
.an-table .stem { max-width: 420px; min-width: 220px; }
.range-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.card-head > div, .card-head > nav, .page-head > nav { min-width: 0; max-width: 100%; }
.page-head .filter-pills a:not(.active) { color: var(--text-2); }

/* ---------------------------------------------------------------- Bank transfer (v2.5) */
.checkout-amount { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.pay-options { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .pay-options { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.pay-option { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 22px; }
.pay-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--brass); font-size: 1.1rem; margin-bottom: 12px; }
.transfer-steps { list-style: none; padding: 0; margin: 0 0 12px; counter-reset: step; display: grid; gap: 16px; }
.transfer-steps > li.card-x { position: relative; padding-left: 64px; }
.transfer-steps > li::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 22px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--brass); display: grid; place-items: center; font-weight: 800; }
@media (max-width: 575.98px) { .transfer-steps > li.card-x { padding-left: 20px; padding-top: 60px; } .transfer-steps > li::before { top: 20px; } }
.bank-box { margin: 0 0 14px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.bank-box > div { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.bank-box > div:first-child { border-top: 0; }
.bank-box > div.ref { background: var(--brass-50); }
.bank-box dt { font-size: .82rem; font-weight: 700; color: var(--text-3); margin: 0; }
.bank-box dd { margin: 0; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; text-align: right; }
.bank-box dd.big { font-size: 1.15rem; letter-spacing: .02em; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.copy-btn { padding: 2px 8px; font-size: .78rem; }
.transfer-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .transfer-grid { grid-template-columns: minmax(0, 1fr) 200px; } }
.transfer-amt { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); }
.transfer-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 8px; font-size: .9rem; }
.transfer-facts dt { font-size: .76rem; font-weight: 700; color: var(--text-3); }
.transfer-facts dd { margin: 0; }
.transfer-proof img { width: 100%; max-height: 220px; object-fit: cover; object-position: top; border-radius: var(--r-sm); border: 1px solid var(--line); }
.proof-pdf, .proof-none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 120px; border-radius: var(--r-sm); border: 1px dashed var(--line-2); color: var(--text-3); font-weight: 700; font-size: .86rem; }
.proof-pdf i { font-size: 1.8rem; color: var(--red); }
.transfer-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.reject-box > summary { list-style: none; }
.reject-box > summary::-webkit-details-marker { display: none; }
.reject-box[open] { flex: 1 1 260px; max-width: 420px; }
