/* Onterra Tutor design system v2: editorial dark, liquid glass, no slop.
   Rules: no em dashes anywhere; every component themed for dark AND light. */
:root {
  --bg: #05080f;
  --bg-soft: #0a1019;
  --surface: #0d1422;
  --card: rgba(255, 255, 255, .035);
  --card-solid: #0e1626;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f2f5fa;
  --muted: #8b96a8;
  --green: #34d399;
  --green-deep: #10b981;
  --green-glow: rgba(52, 211, 153, .35);
  --gold: #e6b45c;
  --red: #f87171;
  --radius: 20px;
  --radius-sm: 12px;
  --font-head: 'Bricolage Grotesque', 'Sora', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --shadow-card: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -24px rgba(0,0,0,.6);
  --btn-text: #04120b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* ambient glow + film grain: the "expensive" base layer */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(52, 211, 153, .10), transparent 60%),
    radial-gradient(700px 420px at 88% -4%, rgba(230, 180, 92, .06), transparent 60%),
    radial-gradient(1000px 700px at 50% 115%, rgba(16, 185, 129, .05), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
::selection { background: rgba(52, 211, 153, .3); }

/* ---------- eyebrow labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--green); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--green); opacity: .6; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 8, 15, .68);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: var(--font-head); font-size: 19px; font-weight: 500; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.brand b { font-weight: 800; color: var(--green); }
.brand-dot {
  display: inline-block; width: 36px; height: 36px; border-radius: 11px;
  object-fit: cover; box-shadow: 0 4px 16px -4px var(--green-glow);
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: var(--btn-text) !important; padding: 9px 20px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 4px 20px -6px var(--green-glow);
  transition: transform .15s, box-shadow .15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 28px -6px var(--green-glow); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  background: var(--card); border: 1px solid var(--line); border-radius: 50%;
  width: 38px; height: 38px; font-size: 16px; cursor: pointer; color: var(--text);
  transition: transform .2s, border-color .15s;
}
.theme-toggle:hover { transform: rotate(24deg); border-color: var(--line-strong); }
.nav-burger { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }
@media (max-width: 860px) {
  .nav-burger { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(5,8,15,.96); backdrop-filter: blur(20px); flex-direction: column;
    padding: 22px; border-bottom: 1px solid var(--line); gap: 18px; }
  body.nav-open .nav-links { display: flex; }
}

/* ---------- hero ---------- */
.hero { padding: 104px 0 76px; text-align: center; position: relative; overflow: hidden; }
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .7; }
.hero > .container { position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(52, 211, 153, .08); color: var(--green);
  border: 1px solid rgba(52, 211, 153, .25);
  padding: 7px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  margin-bottom: 28px; backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: clamp(40px, 7vw, 78px); font-weight: 800; letter-spacing: -0.035em;
  max-width: 850px; margin: 0 auto;
}
.hero h1 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--green); letter-spacing: -0.01em;
  padding-right: .04em;
}
.hero p.lead {
  max-width: 620px; margin: 26px auto 38px; font-size: 18.5px; line-height: 1.7;
  color: var(--muted);
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap;
  margin-top: 30px; font-size: 13px; color: var(--muted); letter-spacing: .02em;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust span::before { content: "✓"; color: var(--green); font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15.5px; padding: 15px 30px;
  border-radius: 14px; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s, border-color .15s;
  font-family: var(--font-body); letter-spacing: -0.01em;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: var(--btn-text);
  box-shadow: 0 8px 30px -8px var(--green-glow), 0 1px 0 rgba(255,255,255,.25) inset;
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .5s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--green-glow); }
.btn-primary:hover::after { left: 130%; }
.btn-ghost {
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--line-strong); transform: translateY(-2px); background: rgba(255,255,255,.06); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; border-radius: 10px; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #c99a44 100%);
  color: #241a05; box-shadow: 0 8px 24px -10px rgba(230,180,92,.5), 0 1px 0 rgba(255,255,255,.25) inset;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -10px rgba(230,180,92,.6); }

/* ---------- stats ---------- */
.stats { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 64px; }
.stat {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 32px; min-width: 200px; text-align: left;
  box-shadow: var(--shadow-card); backdrop-filter: blur(10px);
}
.stat b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; color: var(--text); }
.stat b { background: linear-gradient(120deg, var(--green), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: 13px; color: var(--muted); line-height: 1.5; display: block; margin-top: 4px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.015) 18%, rgba(255,255,255,.015) 82%, transparent); }
.section h2 { font-size: clamp(30px, 4.4vw, 44px); text-align: center; margin-bottom: 16px; letter-spacing: -0.03em; }
.section .sub { text-align: center; color: var(--muted); max-width: 580px; margin: 0 auto 56px; font-size: 16.5px; line-height: 1.7; }
.section .eyebrow-wrap { text-align: center; }

/* ---------- cards ---------- */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .25s;
  backdrop-filter: blur(10px);
}
a.card:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 211, 153, .35);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(52,211,153,.12), 0 12px 40px -18px var(--green-glow);
}
.card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 15px; font-size: 24px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(52,211,153,.16), rgba(16,185,129,.06));
  border: 1px solid rgba(52,211,153,.22);
}
.card h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--green); font-weight: 600; font-size: 14px; transition: gap .2s; }
a.card:hover .go { gap: 10px; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.step {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 26px 28px;
  box-shadow: var(--shadow-card);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 22px; right: 24px;
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
  color: var(--green); opacity: .85; letter-spacing: .05em;
}
.step h3 { font-size: 18px; margin-bottom: 10px; }

/* ---------- faq ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 24px; margin-bottom: 12px;
  transition: border-color .2s;
}
.faq details[open] { border-color: rgba(52,211,153,.3); }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-head); font-size: 16px; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; color: var(--green); font-size: 20px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ---------- tool pages ---------- */
.tool-head { padding: 72px 0 8px; text-align: center; }
.tool-head h1 { font-size: clamp(30px, 4.8vw, 46px); letter-spacing: -0.03em; }
.tool-head p { max-width: 620px; margin: 18px auto 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.tool-wrap { max-width: 860px; margin: 40px auto 100px; padding: 0 24px; }
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 20px;
  box-shadow: var(--shadow-card); backdrop-filter: blur(10px);
}
.panel label { font-weight: 600; font-size: 13.5px; display: block; margin-bottom: 10px; letter-spacing: .01em; }
select, textarea, input[type=number] {
  width: 100%; background: rgba(0,0,0,.25); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: 15px; font-family: var(--font-body);
  transition: border-color .15s, box-shadow .15s;
}
select:focus, textarea:focus, input:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(52,211,153,.12);
}
textarea { min-height: 260px; resize: vertical; line-height: 1.7; }
.tool-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.q-box {
  background: rgba(52,211,153,.05); border: 1px solid rgba(52,211,153,.18);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm); padding: 18px 20px; white-space: pre-wrap; font-size: 15px; margin-top: 10px; line-height: 1.7;
}
.error-box {
  background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.35); color: var(--red);
  border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 16px; font-size: 14.5px;
}

/* ---------- results ---------- */
.result { display: none; }
.result.show { display: block; animation: rise .5s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.band-hero { text-align: center; padding: 14px 0 26px; }
.band-hero .big {
  font-family: var(--font-head); font-size: 84px; font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--green), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 30px rgba(52,211,153,.25));
}
.band-hero .cap { color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.crit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0; }
.crit {
  background: rgba(0,0,0,.22); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 14px; text-align: center;
}
.crit b { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--gold); letter-spacing: -0.02em; }
.crit span { font-size: 12px; color: var(--muted); }
.fixes li { margin: 0 0 14px 20px; font-size: 15px; line-height: 1.7; }
.upgrade {
  background: rgba(52,211,153,.06); border: 1px solid rgba(52,211,153,.25);
  border-radius: var(--radius-sm); padding: 20px; font-size: 15px; margin-top: 16px; white-space: pre-wrap; line-height: 1.75;
}
.upgrade.locked { position: relative; overflow: hidden; white-space: normal; border-color: rgba(230,180,92,.35); }
.upgrade-blur { filter: blur(7px); user-select: none; pointer-events: none; opacity: .55; line-height: 1.75; }
.upgrade-lock-cta {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 6px; padding: 18px;
  background: linear-gradient(180deg, transparent, rgba(10,18,32,.55) 40%);
}
[data-theme="light"] .upgrade-lock-cta { background: linear-gradient(180deg, transparent, rgba(245,247,251,.72) 40%); }
.upgrade-lock-cta b { font-family: var(--font-head); font-size: 17px; }
.upgrade-lock-cta p { font-size: 13.5px; color: var(--muted); max-width: 360px; margin: 0 0 8px; }
.result h3 { margin: 26px 0 12px; font-size: 17px; }
.transcript { font-size: 13.5px; color: var(--muted); background: rgba(0,0,0,.22); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 16px; line-height: 1.7; }

/* ---------- mic ---------- */
.mic-zone { text-align: center; padding: 22px 0 8px; }
.mic-btn {
  width: 96px; height: 96px; border-radius: 50%; border: none; font-size: 38px; cursor: pointer;
  background: linear-gradient(135deg, var(--green), var(--green-deep)); color: #fff;
  box-shadow: 0 12px 40px -8px var(--green-glow), 0 1px 0 rgba(255,255,255,.3) inset;
  transition: transform .15s, box-shadow .2s;
}
.mic-btn:hover { transform: scale(1.06); box-shadow: 0 16px 50px -8px var(--green-glow); }
.mic-btn.rec { background: linear-gradient(135deg, #ef4444, #b91c1c); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { transform: scale(1.08); box-shadow: 0 0 0 20px rgba(239,68,68,.1); } }
.mic-hint { margin-top: 16px; color: var(--muted); font-size: 14px; max-width: 440px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.timer { font-family: var(--font-head); font-size: 24px; font-weight: 700; margin-top: 10px; color: var(--gold); letter-spacing: .02em; }

/* ---------- progress widget ---------- */
.progress-widget { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0 0 26px; }
.pw-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 20px; font-size: 13.5px; font-weight: 600; backdrop-filter: blur(8px);
}
.pw-item b { color: var(--green); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table.bands { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.bands th, table.bands td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.bands th { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; }
table.bands tr:hover td { background: rgba(255,255,255,.02); }
table.bands td b { color: var(--green); font-family: var(--font-head); font-weight: 700; }

/* ---------- questions pages ---------- */
.q-list { list-style: none; }
.q-list li {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 12px;
  white-space: pre-wrap; font-size: 15px; line-height: 1.7;
}
.q-list li .practice { display: block; margin-top: 12px; color: var(--green); font-weight: 600; font-size: 13.5px; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; align-items: start; }
.price-card {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 30px;
  text-align: center; position: relative; box-shadow: var(--shadow-card);
}
.price-card.featured {
  border-color: rgba(52,211,153,.4);
  box-shadow: 0 0 60px -18px var(--green-glow), var(--shadow-card);
  transform: scale(1.02);
}
.price-card .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--green), var(--green-deep)); color: var(--btn-text);
  font-size: 11px; font-weight: 800; letter-spacing: .1em; padding: 5px 16px; border-radius: 999px;
  box-shadow: 0 4px 16px -4px var(--green-glow);
}
.price-card h3 { font-size: 19px; }
.price-card .price { font-family: var(--font-head); font-size: 46px; font-weight: 800; margin: 16px 0 2px; letter-spacing: -0.03em; }
.price-card .per { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.price-card ul { list-style: none; text-align: left; margin: 0 0 28px; }
.price-card ul li { padding: 8px 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.price-card ul li::before { content: "✓  "; color: var(--green); font-weight: 700; }

/* ---------- share ---------- */
.share-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.012); padding: 64px 0 28px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { font-size: 12px; margin-bottom: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.footer a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color .15s; }
.footer a:hover { color: var(--green); }
.footer p.muted { font-size: 13.5px; line-height: 1.7; margin-top: 10px; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- cta banner ---------- */
.cta-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(52,211,153,.12), rgba(230,180,92,.05));
  border: 1px solid rgba(52,211,153,.28); border-radius: 24px; padding: 60px 36px; text-align: center;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px 200px at 50% 0%, rgba(52,211,153,.12), transparent 70%);
}
.cta-banner h2 { margin-bottom: 12px; position: relative; }
.cta-banner p { color: var(--muted); margin-bottom: 28px; position: relative; }
.cta-banner .btn { position: relative; }

/* ---------- light theme ---------- */
:root[data-theme="light"] {
  --bg: #f7f6f2;
  --bg-soft: #efeee8;
  --surface: #ffffff;
  --card: rgba(255, 255, 255, .8);
  --card-solid: #ffffff;
  --line: rgba(16, 24, 38, .1);
  --line-strong: rgba(16, 24, 38, .2);
  --text: #10182a;
  --muted: #5b6678;
  --green: #0e9f6e;
  --green-deep: #0b8a5f;
  --green-glow: rgba(14, 159, 110, .3);
  --gold: #b07d2a;
  --red: #dc2626;
  --shadow-card: 0 1px 2px rgba(16,24,38,.05), 0 16px 40px -24px rgba(16,24,38,.18);
  --btn-text: #ffffff;
}
:root[data-theme="light"] body::before {
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(14, 159, 110, .07), transparent 60%),
    radial-gradient(700px 420px at 88% -4%, rgba(176, 125, 42, .05), transparent 60%);
}
:root[data-theme="light"] body::after { opacity: .05; }
:root[data-theme="light"] .nav { background: rgba(247, 246, 242, .8); }
:root[data-theme="light"] .nav-links a:hover { color: var(--text); }
:root[data-theme="light"] .card,
:root[data-theme="light"] .panel,
:root[data-theme="light"] .step,
:root[data-theme="light"] .price-card,
:root[data-theme="light"] .stat,
:root[data-theme="light"] .faq details,
:root[data-theme="light"] .q-list li { background: var(--surface); }
:root[data-theme="light"] select,
:root[data-theme="light"] textarea,
:root[data-theme="light"] input[type=number] { background: #fbfaf7; }
:root[data-theme="light"] .crit,
:root[data-theme="light"] .transcript { background: #f2f1ec; }
:root[data-theme="light"] .q-box { background: rgba(14,159,110,.05); }
:root[data-theme="light"] .stat b { background: linear-gradient(120deg, var(--green-deep), var(--gold)); -webkit-background-clip: text; background-clip: text; }
:root[data-theme="light"] .footer { background: #f1f0ea; }
:root[data-theme="light"] .section.alt { background: linear-gradient(180deg, transparent, rgba(16,24,38,.025) 18%, rgba(16,24,38,.025) 82%, transparent); }
:root[data-theme="light"] #hero3d { opacity: .35; }
:root[data-theme="light"] .mic-btn { color: #fff; }
:root[data-theme="light"] table.bands tr:hover td { background: rgba(16,24,38,.02); }

/* ---------- processing spinner ---------- */
.spin-overlay {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(4, 7, 13, .82); backdrop-filter: blur(10px);
}
.spin-overlay.show { display: flex; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; } }
.spin-box { text-align: center; padding: 30px; }
.orbit { position: relative; width: 100px; height: 100px; margin: 0 auto 28px; animation: orbitspin 2.6s linear infinite; }
.orbit span { position: absolute; width: 15px; height: 15px; border-radius: 50%; }
.orbit span:nth-child(1) { top: 0; left: 42px; background: #34d399; box-shadow: 0 0 14px rgba(52,211,153,.8); }
.orbit span:nth-child(2) { bottom: 0; left: 42px; background: #10b981; }
.orbit span:nth-child(3) { left: 0; top: 42px; background: #e6b45c; box-shadow: 0 0 12px rgba(230,180,92,.6); }
.orbit span:nth-child(4) { right: 0; top: 42px; background: #6ee7b7; }
@keyframes orbitspin { to { transform: rotate(360deg); } }
.orbit::after { content: "🎓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 32px; animation: orbitspin 2.6s linear infinite reverse; }
.spin-msg { color: #f2f5fa; font-family: var(--font-head); font-weight: 700; font-size: 19px; transition: opacity .2s; letter-spacing: -0.01em; }
.spin-sub { color: #8b96a8; font-size: 13px; margin-top: 8px; }

/* ---------- track toggle & pills ---------- */
.track-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.track-btn {
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 10px 20px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  font-family: var(--font-body); transition: all .18s;
}
.track-btn:hover { border-color: var(--line-strong); }
.track-btn.active {
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  border-color: transparent; color: var(--btn-text);
  box-shadow: 0 4px 18px -6px var(--green-glow);
}
.track-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.track-pill {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 24px; font-weight: 600; font-size: 14px; transition: all .18s; backdrop-filter: blur(8px);
}
.track-pill:hover { border-color: rgba(52,211,153,.4); color: var(--green); transform: translateY(-2px); }

/* ---------- set lists ---------- */
.set-list { display: flex; flex-direction: column; gap: 10px; }
.set-item {
  text-align: left; background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius-sm); padding: 18px 20px; font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: var(--font-body); transition: all .18s;
}
.set-item:hover { border-color: rgba(52,211,153,.4); transform: translateX(5px); }
.set-item.gen-new { border-style: dashed; border-color: rgba(230,180,92,.4); }
.set-item.gen-new:hover { border-color: var(--gold); }
.set-done {
  float: right; color: var(--green); font-size: 12px; font-weight: 700;
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3);
  border-radius: 999px; padding: 2px 10px;
}

/* ---------- quiz forms ---------- */
.quiz-q { padding: 18px 0; border-bottom: 1px solid var(--line); }
.quiz-q:last-child { border-bottom: none; }
.quiz-label { font-weight: 600; font-size: 15px; margin-bottom: 12px; line-height: 1.6; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-opt {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-size: 14px; cursor: pointer; transition: all .15s;
}
.quiz-opt:hover { border-color: var(--line-strong); }
.quiz-opt:has(input:checked) {
  background: rgba(52,211,153,.14); border-color: var(--green); font-weight: 600;
  box-shadow: 0 0 0 3px rgba(52,211,153,.08);
}
.quiz-opt input { accent-color: var(--green); margin-right: 3px; }
.review-row {
  padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 10px; font-size: 14.5px;
  background: var(--card); border: 1px solid var(--line); line-height: 1.6;
}
.review-row.ok { border-color: rgba(52,211,153,.35); }
.review-row.bad { border-color: rgba(248,113,113,.35); }
.review-row b { margin-right: 6px; }
.review-row.ok b { color: var(--green); }
.review-row.bad b { color: var(--red); }
.review-detail { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.review-detail em { color: var(--text); font-style: normal; font-weight: 600; }

/* ---------- track hub art ---------- */
.track-art {
  height: 260px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(52,211,153,.14), rgba(230,180,92,.06)), var(--card-solid);
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-card);
}

/* ---------- audio ---------- */
.audio-zone { text-align: center; padding: 6px 0 14px; }
audio { border-radius: var(--radius-sm); width: 100%; }
audio { color-scheme: dark; }
:root[data-theme="light"] audio { color-scheme: light; }

/* ---------- mobile ---------- */
@media (max-width: 600px) {
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .stats { gap: 10px; }
  .stat { min-width: 150px; padding: 18px 20px; flex: 1; }
  .stat b { font-size: 24px; }
  .section { padding: 60px 0; }
  .tool-wrap { margin-top: 24px; }
  .panel { padding: 20px; }
  .band-hero .big { font-size: 60px; }
  .btn { width: 100%; justify-content: center; }
  .cta-row .btn, .share-row .btn { width: auto; }
  .track-toggle { justify-content: center; }
  .quiz-opts { flex-direction: column; }
  .quiz-opt { width: 100%; }
  .price-card.featured { transform: none; }
}

/* ---------- accounts ---------- */
.serif-accent, .tool-head h1 em, .auth-title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  background: linear-gradient(120deg, var(--green), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-signin {
  font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  transition: all .18s; white-space: nowrap;
}
.nav-signin:hover { color: var(--text); border-color: var(--line-strong); }
.nav-account {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green), var(--green-deep)); color: var(--btn-text);
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  box-shadow: 0 4px 16px -4px var(--green-glow); transition: transform .18s;
}
.nav-account:hover { transform: translateY(-2px); }
.auth-wrap { max-width: 440px; margin: 72px auto 110px; padding: 0 24px; }
.auth-panel { padding: 38px 34px; }
.auth-title { font-size: clamp(26px, 4vw, 32px); letter-spacing: -0.03em; margin-bottom: 12px; }
.auth-sub { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin-bottom: 24px; }
.auth-form label { font-weight: 600; font-size: 13.5px; display: block; margin: 16px 0 8px; }
.auth-form input[type=text], .auth-form input[type=email], .auth-form input[type=password] {
  width: 100%; background: rgba(0,0,0,.25); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: 15px; font-family: var(--font-body);
  transition: border-color .15s, box-shadow .15s;
}
.auth-btn { width: 100%; justify-content: center; margin-top: 24px; }
.auth-alt { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }
.auth-alt a { color: var(--green); font-weight: 600; }
.plan-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 13.5px;
  letter-spacing: .02em;
}
.plan-premium {
  background: linear-gradient(135deg, rgba(52,211,153,.14), rgba(230,180,92,.1));
  border-color: rgba(230,180,92,.45); color: var(--gold);
}
.account-stats { margin: 20px 0; }
.account-stats .crit b { font-size: 32px; }
:root[data-theme="light"] .auth-form input[type=text],
:root[data-theme="light"] .auth-form input[type=email],
:root[data-theme="light"] .auth-form input[type=password] { background: #fbfaf7; }
@media (max-width: 600px) {
  .nav-signin { padding: 8px 13px; font-size: 13px; }
  .auth-panel { padding: 26px 22px; }
}

/* ---------- install banner ---------- */
.install-banner {
  position: fixed; left: 50%; bottom: 18px; z-index: 150;
  transform: translate(-50%, 140%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
  display: flex; align-items: center; gap: 14px;
  width: min(460px, calc(100% - 24px));
  background: linear-gradient(180deg, rgba(20,30,48,.92), rgba(10,18,32,.94));
  border: 1px solid var(--line-strong); border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.75), 0 0 0 1px rgba(52,211,153,.1);
  backdrop-filter: blur(14px);
}
.install-banner.show { transform: translate(-50%, 0); }
.ib-icon { border-radius: 11px; flex-shrink: 0; }
.ib-text { flex: 1; min-width: 0; }
.ib-text b { display: block; font-family: var(--font-head); font-size: 14.5px; letter-spacing: -0.01em; }
.ib-text > span { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: 2px; }
.ib-steps { display: none !important; }
.ib-steps.show {
  display: block !important; margin-top: 8px !important; padding: 8px 10px;
  background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.25);
  border-radius: 10px; color: var(--text) !important;
}
.ib-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ib-actions .btn { width: auto; white-space: nowrap; }
.ib-close {
  background: none; border: none; color: var(--muted); font-size: 22px; line-height: 1;
  cursor: pointer; padding: 6px 8px; border-radius: 8px; font-family: var(--font-body);
}
.ib-close:hover { color: var(--text); background: rgba(255,255,255,.06); }
:root[data-theme="light"] .install-banner {
  background: rgba(255,255,255,.95);
  box-shadow: 0 24px 60px -18px rgba(16,24,38,.3), 0 0 0 1px rgba(14,159,110,.12);
}

/* ---------- google sign-in ---------- */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  background: #ffffff; color: #1f2937; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 13px 16px; font-size: 14.5px; font-weight: 600;
  font-family: var(--font-body); cursor: pointer; transition: transform .15s, box-shadow .2s;
}
.btn-google:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -10px rgba(0,0,0,.4); }
.btn-google svg { flex-shrink: 0; }
.auth-divider {
  display: flex; align-items: center; gap: 14px; margin: 20px 0 4px;
  color: var(--muted); font-size: 12.5px; letter-spacing: .03em;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 480px) {
  .install-banner { flex-wrap: wrap; }
  .ib-actions { width: 100%; justify-content: flex-end; }
}

/* ---------- currency toggle & crypto pay ---------- */
#price-zone .cur-usd { display: none; }
#price-zone.show-usd .cur-ngn { display: none; }
#price-zone.show-usd a.cur-usd { display: inline-flex; }
#price-zone.show-usd span.cur-usd { display: inline; }
#price-zone.show-usd div.cur-usd, #price-zone.show-usd p.cur-usd { display: block; }
/* regional pricing: the crossed-out standard price beside the local one */
#price-zone .price s.was {
  color: var(--muted); font-size: .6em; font-weight: 600; margin-right: 8px;
  text-decoration-thickness: 1.5px;
}
.crypto-pay-box {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  background: rgba(0,0,0,.22); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 22px; margin: 24px 0 14px;
}
.crypto-qr { background: #ffffff; padding: 10px; border-radius: 12px; line-height: 0; flex-shrink: 0; }
.crypto-qr img, .crypto-qr canvas { border-radius: 4px; }
.crypto-detail { flex: 1; min-width: 220px; }
.crypto-amount {
  font-family: var(--font-head); font-size: 40px; font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--green), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.crypto-address {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; word-break: break-all; line-height: 1.6; margin-top: 6px;
  background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.crypto-txid {
  width: 100%; background: rgba(0,0,0,.25); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  transition: border-color .15s, box-shadow .15s;
}
:root[data-theme="light"] .crypto-pay-box { background: #f2f1ec; }
:root[data-theme="light"] .crypto-address, :root[data-theme="light"] .crypto-txid { background: #fbfaf7; }

/* tap-to-copy address feedback */
.crypto-address { cursor: pointer; position: relative; transition: border-color .15s; }
.crypto-address:hover { border-color: rgba(52,211,153,.45); }
.crypto-address.copied { border-color: var(--green); }
.crypto-address.copied::after {
  content: "Copied"; position: absolute; top: -12px; right: 10px;
  background: linear-gradient(135deg, var(--green), var(--green-deep)); color: var(--btn-text);
  font-family: var(--font-body); font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 12px; border-radius: 999px; box-shadow: 0 6px 18px -6px var(--green-glow);
}

/* ---------- practice gate (sign-in and upgrade walls) ---------- */
.gate-wall {
  position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center;
  background: rgba(4, 7, 13, .82); backdrop-filter: blur(10px); animation: fadein .25s ease;
  padding: 20px;
}
.gate-card {
  width: min(420px, 100%); text-align: center; padding: 38px 30px 30px;
  background: linear-gradient(180deg, rgba(20,30,48,.96), rgba(10,18,32,.97));
  border: 1px solid var(--line-strong); border-radius: 22px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(52,211,153,.12);
}
.gate-emoji { font-size: 40px; margin-bottom: 14px; }
.gate-card h3 { font-family: var(--font-head); font-size: 24px; letter-spacing: -0.02em; margin-bottom: 10px; color: #f2f5fa; }
.gate-card p { color: #8b96a8; font-size: 14.5px; line-height: 1.7; margin-bottom: 22px; }
.gate-cta { width: 100%; justify-content: center; }
.gate-alt {
  display: block; margin: 14px auto 0; background: none; border: none; cursor: pointer;
  color: var(--green); font-weight: 600; font-size: 14px; font-family: var(--font-body);
}
:root[data-theme="light"] .gate-card { background: #ffffff; }
:root[data-theme="light"] .gate-card h3 { color: #101826; }
:root[data-theme="light"] .gate-card p { color: #5a6576; }

/* ---------- password field with show/hide toggle ---------- */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px !important; }
.pw-eye {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 18px; line-height: 1;
  padding: 8px; color: var(--muted); border-radius: 8px;
}
.pw-eye:hover { color: var(--text); }
.pw-hint { font-size: 12.5px; margin-top: 6px; }
.pw-hint.bad { color: #f87171; }
.pw-hint.ok { color: var(--green); }

/* ---------- email verification code ---------- */
.code-input {
  width: 100%; text-align: center; letter-spacing: .55em; font-size: 26px !important;
  font-weight: 700; font-family: var(--font-head) !important;
}
.auth-resend { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-resend button {
  background: none; border: none; cursor: pointer; color: var(--green);
  font-weight: 600; font-size: 14px; font-family: var(--font-body);
}
.auth-resend button[disabled] { color: var(--muted); cursor: default; }

/* ---------- admin dashboard ---------- */
.admin-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .admin-two { grid-template-columns: 1fr; } }
.admin-chart { display: flex; gap: 10px; }
.admin-yaxis {
  display: flex; flex-direction: column; justify-content: space-between;
  height: 140px; padding: 0 0 22px; text-align: right;
  font-size: 10.5px; color: var(--muted); flex-shrink: 0; min-width: 34px;
}
.admin-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 8px;
  flex: 1; position: relative; border-left: 1px solid var(--line);
}
.admin-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; position: relative; }
.admin-bar {
  width: 100%; min-height: 2px; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  box-shadow: 0 4px 14px -6px var(--green-glow);
  position: relative; cursor: default;
}
.admin-bar-col span { font-size: 10.5px; color: var(--muted); }
.admin-bar::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--card-solid); color: var(--text); border: 1px solid var(--line-strong);
  padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; z-index: 5;
}
.admin-bar:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.admin-links { display: flex; flex-wrap: wrap; gap: 10px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(230,180,92,.1); color: var(--gold);
  border: 1px solid rgba(230,180,92,.3);
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
}
.tag-pill form { display: inline-flex; }
.tag-pill button {
  background: none; border: none; color: inherit; cursor: pointer;
  font-size: 13px; line-height: 1; padding: 0; opacity: .7;
}
.tag-pill button:hover { opacity: 1; }
.tag-add-form { display: flex; gap: 8px; }
.tag-add-form input { flex: 1; }
.note-item {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 10px; background: var(--card);
}
.note-item .note-meta { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; gap: 10px; }
.note-item .note-meta button {
  background: none; border: none; color: var(--red); cursor: pointer; font-size: 11.5px; opacity: .7;
}
.note-item .note-meta button:hover { opacity: 1; }
.note-item p { font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.admin-edit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .admin-edit-form { grid-template-columns: 1fr; } }
.admin-edit-form label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 6px; }

/* ---------- admin dashboard v2: premium polish ---------- */

/* clickable links get a real affordance: static bold numbers (table.bands td b)
   stay plain, links get a soft underline that solidifies on hover, so the two
   read as different things at a glance, not just by color. */
table.bands td a {
  color: var(--green); font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(52,211,153,.3);
  text-underline-offset: 3px; transition: text-decoration-color .15s, color .15s;
}
table.bands td a:hover { text-decoration-color: currentColor; color: var(--green-deep); }
:root[data-theme="light"] table.bands td a:hover { color: var(--green); }

/* focus rings on every text-like input, not just select/textarea/number.
   type=search needs appearance:none first: browsers draw native searchfield
   chrome that otherwise ignores custom border-color/box-shadow entirely. */
input[type=search] { appearance: none; -webkit-appearance: none; }
input[type=text], input[type=email], input[type=search], input[type=date], input[type=password] {
  transition: border-color .15s, box-shadow .15s;
}
input[type=text]:focus, input[type=email]:focus, input[type=search]:focus,
input[type=date]:focus, input[type=password]:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(52,211,153,.12);
}

/* status pills: plan/stage/state read as a badge, not a color-coded guess */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .01em; white-space: nowrap;
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status-pill.gold { background: rgba(230,180,92,.12); color: var(--gold); border: 1px solid rgba(230,180,92,.3); }
.status-pill.green { background: rgba(52,211,153,.12); color: var(--green); border: 1px solid rgba(52,211,153,.3); }
.status-pill.red { background: rgba(248,113,113,.12); color: var(--red); border: 1px solid rgba(248,113,113,.3); }
.status-pill.muted { background: rgba(139,150,168,.1); color: var(--muted); border: 1px solid var(--line); }
:root[data-theme="light"] .status-pill.muted { background: rgba(91,102,120,.08); }

/* panel head: an eyebrow tick + title, color-coded by what kind of panel it is */
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head .eyebrow-sm {
  display: flex; align-items: center; gap: 9px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.panel-head .eyebrow-sm::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--green); flex-shrink: 0; }
.panel-head.gold .eyebrow-sm::before { background: var(--gold); }
.panel-head.red .eyebrow-sm::before { background: var(--red); }
.panel-head h3 { margin: 0; font-size: 18px; letter-spacing: -0.015em; }
.panel-head p.hint { color: var(--muted); font-size: 12.5px; margin-top: 5px; max-width: 60ch; line-height: 1.6; }
.panel-head .side { flex-shrink: 0; }

/* alert-style panels: renewals due, claims pending, testimonials to review */
.panel-alert {
  border-color: rgba(230,180,92,.4);
  background: linear-gradient(160deg, rgba(230,180,92,.07), rgba(255,255,255,.015));
}

/* toolbar: filters, saved segments, bulk actions get a recessed surface so
   they read as controls, distinct from the data panels around them */
.admin-toolbar {
  background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px; margin-bottom: 18px;
}
:root[data-theme="light"] .admin-toolbar { background: rgba(16,24,38,.035); }
.admin-toolbar + .admin-toolbar { margin-top: -6px; }

/* empty state: a dashed placeholder instead of a lone line of muted text */
.empty-state {
  text-align: center; padding: 26px 20px; border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm); color: var(--muted); font-size: 13.5px;
}

/* sticky sub-nav: jump between sections instead of scrolling a wall of panels */
.admin-subnav {
  position: sticky; top: 68px; z-index: 40;
  display: flex; gap: 8px; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none;
  padding: 14px 0; margin-bottom: 6px;
  background: rgba(5,8,15,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.admin-subnav::-webkit-scrollbar { display: none; }
:root[data-theme="light"] .admin-subnav { background: rgba(247,246,242,.9); }
.admin-subnav a {
  flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); transition: all .15s;
}
.admin-subnav a:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.03); }

/* section scroll offset so anchored panels don't hide under the sticky subnav */
.admin-section { scroll-margin-top: 128px; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--green);
  font-weight: 600; transition: gap .15s, color .15s;
}
.back-link:hover { gap: 9px; color: var(--green-deep); }
:root[data-theme="light"] .back-link:hover { color: var(--green); }

/* role badge in the page header */
.role-pill {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 10px;
  background: rgba(139,150,168,.12); color: var(--muted); border: 1px solid var(--line);
  padding: 4px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; vertical-align: middle;
}

/* ---------- mock exam report card ---------- */
.report-card {
  text-align: center; padding: 34px 26px; border-radius: var(--radius);
  border: 1px solid rgba(52,211,153,.35);
  background: linear-gradient(160deg, rgba(52,211,153,.08), rgba(230,180,92,.05));
}
.rc-brand { color: var(--green); font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: .18em; }
.rc-name { font-family: var(--font-head); font-weight: 700; font-size: 22px; margin-top: 14px; }
.rc-date { color: var(--muted); font-size: 13px; margin-top: 4px; }
.rc-foot { font-size: 12px; margin-top: 18px; line-height: 1.7; }
@media print {
  .nav, .footer, .mock-hide-print, .share-row, .spin-overlay, .install-banner, .theme-toggle, .progress-widget { display: none !important; }
  body { background: #ffffff; color: #10182a; }
  body::before, body::after { display: none; }
  .report-card { border-color: #0e9f6e; }
  .tool-wrap { margin: 0 auto; }
}

/* ---------- exam countdown banner ---------- */
.exam-banner {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(52,211,153,.1), rgba(230,180,92,.08));
  border-bottom: 1px solid var(--line);
  padding: 9px 16px; font-size: 13.5px; text-align: center;
}
.exam-banner b { font-family: var(--font-head); color: var(--gold); }
.exam-banner a { color: var(--green); font-weight: 600; white-space: nowrap; }

/* ---------- renewal banner ---------- */
.renew-banner {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  background: rgba(230,180,92,.1); border: 1px solid rgba(230,180,92,.4);
  border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 20px; font-size: 14.5px;
}

/* ---------- account analytics chart ---------- */
.chart-panel svg { width: 100%; height: auto; color: var(--text); }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- referral module ---------- */
.ref-link {
  display: flex; gap: 10px; align-items: center; margin-top: 12px;
}
.ref-link input {
  flex: 1; background: rgba(0,0,0,.25); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
:root[data-theme="light"] .ref-link input { background: #fbfaf7; }

/* ---------- testimonials ---------- */
.stories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.story-card {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-card); font-size: 14.5px; line-height: 1.7;
}
.story-card .who { margin-top: 14px; font-weight: 700; font-family: var(--font-head); font-size: 14px; }
.story-card .delta { color: var(--green); font-weight: 700; }
:root[data-theme="light"] .story-card { background: var(--surface); }

/* ---------- tutor chat ---------- */
.chat-panel { display: flex; flex-direction: column; }
.chat-log {
  display: flex; flex-direction: column; gap: 12px;
  max-height: 55vh; min-height: 220px; overflow-y: auto; padding: 4px 2px 14px;
}
.chat-msg {
  max-width: 85%; padding: 12px 16px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.65; white-space: pre-wrap;
}
.chat-msg.tutor {
  align-self: flex-start; background: rgba(52,211,153,.08);
  border: 1px solid rgba(52,211,153,.22); border-bottom-left-radius: 4px;
}
.chat-msg.me {
  align-self: flex-end; background: rgba(255,255,255,.06);
  border: 1px solid var(--line); border-bottom-right-radius: 4px;
}
.chat-msg.typing { color: var(--muted); animation: pulseText 1.2s infinite; }
@keyframes pulseText { 50% { opacity: .4; } }
.chat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.chat-chips .track-btn { font-size: 12.5px; padding: 8px 14px; }
.chat-input { display: flex; gap: 10px; align-items: flex-end; }
.chat-input textarea { min-height: 48px; resize: none; }
.chat-input .btn { flex-shrink: 0; width: auto; padding: 13px 22px; }
:root[data-theme="light"] .chat-msg.me { background: #f2f1ec; }

/* ---------- limit-hit offer code ---------- */
.gate-offer {
  margin: 14px 0 6px; padding: 12px 14px; border-radius: 12px;
  background: rgba(230,180,92,.12); border: 1px dashed rgba(230,180,92,.55);
  font-size: 13.5px; color: #f2f5fa;
}
.gate-offer b { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--gold); font-size: 15px; letter-spacing: .08em; }
:root[data-theme="light"] .gate-offer { color: #10182a; }

/* ---------- naira checkout chooser ---------- */
.pay-option {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; margin-bottom: 14px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--card);
  transition: border-color .18s, transform .18s; color: var(--text);
}
.pay-option:hover { border-color: rgba(52,211,153,.55); transform: translateY(-2px); }
.pay-option b { font-size: 15.5px; }
.pay-option p { font-size: 13px; line-height: 1.6; margin-top: 4px; }
.pay-note { color: var(--green); }
.pay-arrow { font-size: 22px; color: var(--green); flex-shrink: 0; }
