/* ══════════════════════════════════════════════════════════════════════ */
/* NOCRAI BASE CSS — v5.7 / Platform V3                                 */
/* Loaded on every Nocrai page.                                         */
/* Do not modify at the diagnostic level.                               */
/* Changes here propagate to all 18 diagnostics.                        */
/* Version increment: any change to this file triggers template bump.  */
/* ══════════════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ───────────────────────────────────────────────────── */

:root {
  --navy:      #0f172a;
  --navy-mid:  #1e293b;
  --cream:     #f8fafc;
  --accent:    #2563eb;
  --grey:      #e2e8f0;
  --beige:     #e2e8f0;
  --white:     #FFFFFF;
  --sub:       #44505f;
  --black:     #0f172a;
  --c-green:   #22c55e;
  --c-yellow:  #eab308;
  --c-orange:  #f97316;
  --c-red:     #ef4444;
}

/* ── RESET ───────────────────────────────────────────────────────────── */

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

/* ── BASE ────────────────────────────────────────────────────────────── */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--black);
  font-size: 15px;
  line-height: 1.6;
}

/* ── HEADER ──────────────────────────────────────────────────────────── */

.site-header {
  background: var(--navy);
  padding: 0 24px;
  height: 56px;
  display: grid;
  grid-template-columns: 1fr auto minmax(260px, 1fr);
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.header-logo:hover { opacity: 0.85; }

.header-tool-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  justify-self: center;
}

.header-tool-tier {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  line-height: 1.2;
}

.header-tool-label {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  line-height: 1.3;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.header-back-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-back-sep {
  color: rgba(255,255,255,0.25);
  font-size: 13px;
}

.header-back {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.header-back:hover { color: #fff; }

.header-back-pro { color: rgba(255,255,255,0.9); }

.header-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.header-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,0.75);
  border-radius: 2px;
  transition: background 0.2s;
}

.header-hamburger:hover span { background: #fff; }

/* ── MOBILE NAV PANEL ────────────────────────────────────────────────── */

.tool-mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,23,42,0.97);
  z-index: 200;
  flex-direction: column;
}

.tool-mobile-nav.open { display: flex; }

.tool-mobile-nav-inner {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  margin-bottom: 16px;
}

.tool-mobile-nav-close:hover { color: #fff; }

.tool-mobile-nav-link {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}

.tool-mobile-nav-link:hover { color: #fff; text-decoration: none; }
.tool-mobile-nav-pro { color: #fff; }

/* ── FOOTER ──────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--beige);
  margin-top: 8px;
  padding: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 8px;
}

.footer-legal {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.6;
}

/* ── LAYOUT ──────────────────────────────────────────────────────────── */

.page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ── HERO ────────────────────────────────────────────────────────────── */

.hero { padding: 36px 0 8px; }

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: #333;
  max-width: 620px;
  line-height: 1.7;
}

/* ── DOMAIN CONTEXT ──────────────────────────────────────────────────── */

.domain-context {
  background: var(--white);
  border-left: 4px solid var(--navy);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 24px 0 32px;
}

.domain-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.domain-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 6px;
}

.domain-desc {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.6;
}

/* ── PROGRESS DOTS ───────────────────────────────────────────────────── */

.progress-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 0 4px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; transition: background 0.25s; }
.dot-on  { background: var(--navy); }
.dot-off { background: var(--grey); }
.dot-line { width: 24px; height: 2px; background: var(--grey); border-radius: 1px; }

/* ── CARD & STEP HEADER ──────────────────────────────────────────────── */

.card {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 28px;
  margin-bottom: 20px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--beige);
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title { font-size: 16px; font-weight: 700; color: var(--navy); }
.step-sub { font-size: 13px; color: var(--sub); margin-top: 1px; }

/* ── INPUTS ──────────────────────────────────────────────────────────── */

.input-group { margin-bottom: 18px; }
.input-group label { display: block; font-size: 13px; font-weight: 500; color: var(--black); margin-bottom: 4px; }
.hint { font-size: 13px; color: var(--sub); margin-bottom: 6px; line-height: 1.5; }

input[type=number], input[type=text] {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 5px;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
  -moz-appearance: textfield;
}

input[type=number]:focus, input[type=text]:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.10);
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }

input:disabled { background: var(--cream); color: var(--sub); cursor: not-allowed; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.n-wrap { position: relative; display: flex; align-items: center; }
.n-wrap .sym-pct { position: absolute; right: 11px; color: var(--sub); font-size: 14px; pointer-events: none; }
.n-wrap.pct input[type=number] { padding-right: 28px; }

/* ── PROFILE PRE-POPULATION INDICATOR (V3) ───────────────────────────── */

.profile-prefill-bar {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-left: 3px solid var(--c-green);
  border-radius: 5px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #166534;
  line-height: 1.5;
  display: none;
}

.profile-prefill-bar.visible { display: block; }
.profile-prefill-bar strong { color: #14532d; }

/* ── RESULTS ─────────────────────────────────────────────────────────── */

.results-intro {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--beige);
}

.result-badge {
  border: 1px solid;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.badge-num {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.badge-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 6px 0 12px;
}

.badge-interp {
  font-size: 14px;
  color: var(--black);
  line-height: 1.65;
}

/* ── STAT GRID ───────────────────────────────────────────────────────── */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-box {
  background: var(--cream);
  border: 1px solid var(--beige);
  border-radius: 7px;
  padding: 20px 16px;
  text-align: center;
}

.stat-label { font-size: 13px; font-weight: 700; color: var(--sub); margin-bottom: 10px; letter-spacing: 0.01em; }
.stat-val { font-size: 28px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
.stat-val.green { color: var(--c-green); }
.stat-val.red { color: var(--c-red); }
.stat-note { font-size: 13px; color: var(--sub); margin-top: 4px; font-style: italic; }

/* ── ASSUMPTION BAR ──────────────────────────────────────────────────── */

.assumption-bar {
  background: rgba(37,99,235,0.05);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.6;
}

.assumption-bar strong { color: var(--navy); }

/* ── LEARNING PATH ───────────────────────────────────────────────────── */

.learning-path {
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.learning-path .path-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 16px;
}

.learning-path .path-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--beige);
}

.learning-path .path-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.learning-path .path-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.learning-path .path-num.accent { background: rgba(37,99,235,0.15); color: var(--accent); }
.learning-path .path-content { flex: 1; }
.learning-path .path-label { font-size: 13px; font-weight: 700; color: var(--navy); }
.learning-path .path-desc { font-size: 13px; color: var(--sub); }
.learning-path .path-status { font-size: 13px; font-weight: 700; color: var(--c-green); text-transform: uppercase; letter-spacing: 0.05em; }
.learning-path .tier2-recs { margin-left: 40px; }

.learning-path .rec-box {
  background: rgba(34,197,94,0.08);
  border-left: 3px solid #22c55e;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 8px;
}

.learning-path .rec-box.yellow { background: rgba(234,179,8,0.08); border-left-color: #eab308; }
.learning-path .rec-box.orange { background: rgba(249,115,22,0.08); border-left-color: #f97316; }
.learning-path .rec-box.red    { background: rgba(239,68,68,0.08);  border-left-color: #ef4444; }

.learning-path .rec-head { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: #22c55e; }
.learning-path .rec-head.yellow { color: #eab308; }
.learning-path .rec-head.orange { color: #f97316; }
.learning-path .rec-head.red    { color: #ef4444; }
.learning-path .rec-list { font-size: 13px; color: #333; line-height: 1.5; }
.learning-path .warning { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(239,68,68,0.2); font-size: 13px; color: #ef4444; font-weight: 500; }

/* ── ALERT BOX ───────────────────────────────────────────────────────── */

.alert-box {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  border-left: 4px solid var(--c-red);
  border-radius: 7px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: none;
}

.alert-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: 7px;
}

.alert-text { font-size: 13px; color: #7f1d1d; line-height: 1.65; }

/* ── CHART ───────────────────────────────────────────────────────────── */

.chart-wrap { margin-bottom: 24px; }
.chart-title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sub); margin-bottom: 10px; }
.chart-output svg { width: 100%; display: block; overflow: visible; }

/* ── LEVERS ──────────────────────────────────────────────────────────── */

.levers-wrap { margin-bottom: 24px; }
.levers-title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sub); margin-bottom: 4px; }
.levers-sub { font-size: 13px; color: var(--sub); margin-bottom: 16px; font-weight: 300; }

.lever-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--beige);
}

.lever-row:last-child { border-bottom: none; }
.lever-row.disabled { opacity: 0.4; pointer-events: none; }

.lever-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.lever-body { flex: 1; }
.lever-q { font-size: 13px; font-weight: 500; color: var(--black); margin-bottom: 10px; }
.lever-hint { font-size: 13px; color: var(--sub); margin-bottom: 10px; line-height: 1.5; font-style: italic; }
.lever-slider-wrap { margin-bottom: 8px; }

.lever-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--c-red) 0%, var(--grey) 50%, var(--c-green) 100%);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.lever-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.lever-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.lever-val-row { display: flex; align-items: center; gap: 8px; }

.lever-val-box {
  width: 72px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid var(--grey);
  border-radius: 4px;
  text-align: right;
  background: var(--white);
  appearance: none;
  -moz-appearance: textfield;
}

.lever-val-box::-webkit-outer-spin-button,
.lever-val-box::-webkit-inner-spin-button { -webkit-appearance: none; }
.lever-val-box:focus { border-color: var(--navy); outline: none; }
.lever-val-label { font-size: 13px; color: var(--sub); }

/* ── INPUT ASSISTANCE PANEL ──────────────────────────────────────────── */

.input-assist-panel {
  background: var(--cream);
  border: 1px solid var(--beige);
  border-radius: 6px;
  padding: 14px 16px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.65;
  display: none;
}

.input-assist-panel.open { display: block; }
.input-assist-toggle { font-size: 13px; color: var(--accent); cursor: pointer; background: none; border: none; font-family: inherit; padding: 0; margin-top: 4px; }
.input-assist-toggle:hover { text-decoration: underline; }
.input-assist-panel strong { color: var(--navy); }
.input-assist-panel a { color: var(--accent); }

/* ── SCENARIO CARD ───────────────────────────────────────────────────── */

.scenario-card {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(12,36,98,0.10);
  padding: 28px;
  margin-bottom: 20px;
}

.scenario-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--beige);
}

.scenario-header-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
}

.reset-btn {
  background: none;
  border: 1px solid var(--grey);
  color: var(--sub);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 4px;
}

.reset-btn:hover { border-color: var(--navy); color: var(--navy); }

.sc-badge {
  border: 1px solid;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sc-badge-left { flex: 1; }
.sc-badge-num { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.sc-badge-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }

.scenario-delta {
  font-size: 16px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.scenario-delta.positive { color: var(--c-green); background: rgba(34,197,94,0.10); }
.scenario-delta.negative { color: var(--c-red);   background: rgba(239,68,68,0.10); }
.scenario-delta.neutral  { color: var(--sub);     background: rgba(68,80,95,0.08); }

.scenario-summary {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--cream);
  border-radius: 6px;
  border: 1px solid var(--beige);
}

/* ── CLARITY LINK ────────────────────────────────────────────────────── */

.clarity-link {
  font-size: 13px;
  color: var(--sub);
  text-align: center;
  margin: 16px 0 0;
  line-height: 1.6;
}

.clarity-link a { color: var(--navy); text-decoration: underline; }
.clarity-link a:hover { opacity: 0.85; }

/* ── DISCLAIMER ──────────────────────────────────────────────────────── */

.disclaimer {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.65;
  padding: 16px 0;
  border-top: 1px solid var(--beige);
  margin-top: 8px;
}

/* ── OTP GATE OVERLAY (V3) ───────────────────────────────────────────── */

.otp-gate-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,23,42,0.92);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.otp-gate-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.otp-gate-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.otp-gate-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 10px;
}

.otp-gate-sub {
  font-size: 14px;
  color: var(--sub);
  line-height: 1.65;
  margin-bottom: 24px;
}

.otp-gate-input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--grey);
  border-radius: 6px;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}

.otp-gate-input:focus { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(37,99,235,0.10); }

.otp-gate-code-input {
  letter-spacing: 0.3em;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.otp-gate-btn {
  width: 100%;
  padding: 14px;
  background: var(--navy);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 12px;
}

.otp-gate-btn:hover { background: var(--navy-mid); }
.otp-gate-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.otp-gate-error {
  font-size: 13px;
  color: var(--c-red);
  margin-bottom: 12px;
  display: none;
}

.otp-gate-error.visible { display: block; }

.otp-gate-note {
  font-size: 13px;
  color: var(--sub);
  text-align: center;
  line-height: 1.6;
}

.otp-gate-back {
  background: none;
  border: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
  display: block;
  width: 100%;
  text-align: center;
}

.otp-gate-back:hover { text-decoration: underline; }

/* ── PROFILE AGE PROMPT (V3) ─────────────────────────────────────────── */

.profile-age-prompt {
  background: rgba(234,179,8,0.08);
  border: 1px solid rgba(234,179,8,0.25);
  border-left: 3px solid var(--c-yellow);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #78350f;
  line-height: 1.6;
  display: none;
}

.profile-age-prompt.visible { display: block; }
.profile-age-prompt a { color: #92400e; font-weight: 600; }

/* ── UPGRADE BAND (V3) ───────────────────────────────────────────────── */

.upgrade-band {
  background: var(--navy);
  border-radius: 10px;
  padding: 24px 28px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.upgrade-band-text { flex: 1; }
.upgrade-band-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.upgrade-band-sub { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.5; }

.upgrade-band-btn {
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition: background 0.2s;
}

.upgrade-band-btn:hover { background: #1d4ed8; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */

@media (max-width: 520px) {
  .header-back-group { display: none; }
  .header-hamburger  { display: flex; }
  .two-col           { grid-template-columns: 1fr; }
  .stat-grid         { grid-template-columns: 1fr; }
  .hero h1           { font-size: 22px; }
  .badge-num         { font-size: 38px; }
  .learning-path .tier2-recs { margin-left: 0; margin-top: 8px; }
  .learning-path .path-item  { flex-wrap: wrap; }
  .sc-badge          { flex-direction: column; align-items: flex-start; }
  .sc-badge-num      { font-size: 32px; }
  .otp-gate-card     { padding: 28px 20px; }
  .upgrade-band      { flex-direction: column; }
}

/* ══ DIAGNOSTIC-SPECIFIC STYLES — add in the diagnostic file, never here ══ */
