/* =========================================================
   NRAI — توانبخشی شناختی | Neuroscience × AI
   Layout concept: "Synaptic grid" — content floats over an EEG-paper
   dot grid; teal = neuro signal, violet = AI, amber = premium.
   Dark-first theme with a full light theme + toggle.
   ========================================================= */
:root {
  --bg: #090D18;
  --bg-2: #0E1322;
  --surface: #121A2C;
  --surface-2: #18223A;
  --line: rgba(148, 168, 220, .14);
  --line-strong: rgba(148, 168, 220, .28);
  --ink: #ECF0FA;
  --ink-2: #A9B3CB;
  --ink-3: #6F7B98;
  --synapse: #4FE3C1;
  --on-synapse: #04211B;
  --ai: #9389FF;
  --gold: #FFB85C;
  --on-gold: #2A1700;
  --danger: #FF6F82;
  --glow-1: rgba(79, 227, 193, .16);
  --glow-2: rgba(147, 137, 255, .18);
  --dot: rgba(148, 168, 220, .09);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .75);
  --header-bg: rgba(9, 13, 24, .74);
  --logo-ink: #07101F;
  --c-red: #FF6B6B;
  --c-green: #4ADE80;
  --c-blue: #60A5FA;
  --c-yellow: #FACC15;

  --f-body: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --f-brand: "Unbounded", "Vazirmatn", "Segoe UI", sans-serif;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 26px;
  --wrap: 1200px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F2F4F9; --bg-2: #E8ECF5; --surface: #FFFFFF; --surface-2: #F5F7FC;
    --line: rgba(16, 28, 64, .10); --line-strong: rgba(16, 28, 64, .20);
    --ink: #0C1328; --ink-2: #465170; --ink-3: #7B859D;
    --synapse: #078A71; --on-synapse: #FFFFFF; --ai: #5A4BE0; --gold: #B35F06; --on-gold: #FFFFFF; --danger: #D23A52;
    --glow-1: rgba(7, 149, 121, .12); --glow-2: rgba(90, 75, 224, .12); --dot: rgba(16, 28, 64, .07);
    --shadow: 0 24px 50px -30px rgba(16, 28, 64, .45); --header-bg: rgba(242, 244, 249, .82);
    --c-red: #DC2626; --c-green: #15803D; --c-blue: #1D4ED8; --c-yellow: #A16207;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F2F4F9; --bg-2: #E8ECF5; --surface: #FFFFFF; --surface-2: #F5F7FC;
  --line: rgba(16, 28, 64, .10); --line-strong: rgba(16, 28, 64, .20);
  --ink: #0C1328; --ink-2: #465170; --ink-3: #7B859D;
  --synapse: #078A71; --on-synapse: #FFFFFF; --ai: #5A4BE0; --gold: #B35F06; --on-gold: #FFFFFF; --danger: #D23A52;
  --glow-1: rgba(7, 149, 121, .12); --glow-2: rgba(90, 75, 224, .12); --dot: rgba(16, 28, 64, .07);
  --shadow: 0 24px 50px -30px rgba(16, 28, 64, .45); --header-bg: rgba(242, 244, 249, .82);
  --c-red: #DC2626; --c-green: #15803D; --c-blue: #1D4ED8; --c-yellow: #A16207;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, var(--glow-1), transparent 60%),
    radial-gradient(800px 500px at 0% 20%, var(--glow-2), transparent 60%),
    radial-gradient(var(--dot) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--bg);
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.45; text-wrap: balance; font-weight: 800; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--synapse); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .98rem; line-height: 1.4; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--synapse); color: var(--on-synapse); box-shadow: 0 10px 30px -10px var(--synapse); }
.btn-primary:hover { box-shadow: 0 14px 36px -10px var(--synapse); }
.btn-gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 10px 28px -12px var(--gold); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--synapse); color: var(--synapse); }
.btn-sm { padding: .5em 1em; font-size: .9rem; }
.btn-lg { padding: 1em 1.8em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--synapse); color: var(--synapse); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.logo { width: 42px; height: 42px; flex: none; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text b { font-family: var(--f-brand); font-weight: 800; font-size: 1.35rem; letter-spacing: .04em; }
.brand-text small { font-size: .72rem; color: var(--ink-3); font-weight: 500; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.main-nav a {
  padding: .45em .9em; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: .95rem;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--ink); background: var(--surface); }
.main-nav a[aria-current="page"] { color: var(--synapse); background: var(--surface); }
.main-nav .nav-mobile-only { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; }

@media (max-width: 1080px) {
  .main-nav {
    position: absolute; inset-inline: 12px; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
    box-shadow: var(--shadow); display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .75em 1em; border-radius: 10px; }
  .main-nav .nav-mobile-only { display: block; }
  .burger { display: inline-grid; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  .hide-sm { display: none !important; }
  .brand-text small { display: none; }
  .header-actions .btn-gold span { display: none; }
  .header-actions .btn-gold { padding: .55em .7em; }
}

/* ---------- sections ---------- */
section { padding-block: 84px; }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; width: fit-content;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--synapse);
  padding: .35em .9em; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
}
.eyebrow .latin { font-family: var(--f-brand); font-weight: 500; letter-spacing: .14em; font-size: .72rem; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--synapse); box-shadow: 0 0 0 0 var(--synapse); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--glow-1); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
h2.title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 900; }
.lead { color: var(--ink-2); font-size: 1.08rem; max-width: 62ch; }
.grad {
  background: linear-gradient(100deg, var(--synapse), var(--ai));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- hero (home) ---------- */
.hero { position: relative; padding-block: 72px 90px; overflow: hidden; }
.neural { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); font-weight: 900; line-height: 1.3; letter-spacing: -.01em; }
.hero h1 .stroke { display: block; font-size: .5em; font-weight: 700; color: var(--ink-2); margin-top: .4em; letter-spacing: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: .9rem; }
.trust span { display: inline-flex; align-items: center; gap: .45em; }
.trust .i { color: var(--synapse); }
.load-in > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.load-in > *:nth-child(2) { animation-delay: .08s; }
.load-in > *:nth-child(3) { animation-delay: .16s; }
.load-in > *:nth-child(4) { animation-delay: .24s; }
.load-in > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { transform: translateY(18px); opacity: .001; } to { transform: none; opacity: 1; } }

/* profile card */
.profile-card {
  position: relative; background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line-strong); border-radius: var(--r-l); padding: 26px; box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); min-width: 0;
}
.profile-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, var(--synapse), transparent 40%, transparent 60%, var(--ai));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.pc-head h3 { font-size: 1.05rem; }
.chip { display: inline-flex; align-items: center; gap: .35em; font-size: .75rem; font-weight: 700; padding: .25em .75em; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chip.free { color: var(--synapse); border-color: color-mix(in srgb, var(--synapse) 40%, transparent); }
.chip.pro { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.chip.ai { color: var(--ai); border-color: color-mix(in srgb, var(--ai) 45%, transparent); }
.radar { display: block; width: 100%; max-width: 330px; margin: 4px auto 0; }
.radar .ring { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.radar .axis { stroke: var(--line); stroke-width: 1; }
.radar .before { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 4 4; }
.radar .after { fill: color-mix(in srgb, var(--synapse) 22%, transparent); stroke: var(--synapse); stroke-width: 2; transform-origin: 120px 120px; animation: grow 1.4s .3s cubic-bezier(.2, .7, .2, 1) both; }
.radar .pt { fill: var(--synapse); }
.radar text { fill: var(--ink-2); font-family: var(--f-body); font-size: 11px; font-weight: 600; }
@keyframes grow { from { transform: scale(.55); } to { transform: none; } }
.legend { display: flex; justify-content: center; gap: 18px; font-size: .8rem; color: var(--ink-2); margin-block: 6px 16px; }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2px dashed var(--ink-3); vertical-align: middle; margin-inline-end: 6px; }
.legend i.after { border-top: 3px solid var(--synapse); }
.metrics { display: grid; gap: 8px; }
.metric { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface-2); border-radius: 12px; font-size: .9rem; }
.metric b { font-variant-numeric: tabular-nums; font-weight: 800; }
.metric .delta { color: var(--synapse); font-size: .8rem; font-weight: 700; margin-inline-start: 6px; }
.metric .was { color: var(--ink-3); text-decoration: line-through; font-weight: 500; margin-inline-end: 6px; font-size: .82rem; }

/* ---------- portals (3 main sections) ---------- */
.portals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.portal {
  position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0;
  padding: 28px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s;
}
.portal::after {
  content: ""; position: absolute; inset: auto -30% -50% -30%; height: 70%; z-index: -1;
  background: radial-gradient(closest-side, var(--accent-glow, var(--glow-1)), transparent); opacity: .0; transition: opacity .4s;
}
.portal:hover { transform: translateY(-6px); border-color: var(--accent, var(--synapse)); box-shadow: var(--shadow); }
.portal:hover::after { opacity: 1; }
.portal.p-tests { --accent: var(--synapse); --accent-glow: var(--glow-1); }
.portal.p-ex { --accent: var(--ai); --accent-glow: var(--glow-2); }
.portal.p-study { --accent: var(--gold); --accent-glow: color-mix(in srgb, var(--gold) 20%, transparent); }
.portal-visual { height: 150px; border-radius: var(--r-m); background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; position: relative; }
.portal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.portal-kicker { font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.portal-path { font-family: var(--f-brand); font-size: .68rem; color: var(--ink-3); letter-spacing: .05em; direction: ltr; }
.portal h3 { font-size: 1.55rem; font-weight: 900; }
.portal p { color: var(--ink-2); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .75rem; padding: .2em .7em; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.portal-go { margin-top: auto; display: inline-flex; align-items: center; gap: .5em; font-weight: 800; color: var(--accent); }
.portal-go .i { transition: transform .3s; }
.portal:hover .portal-go .i { transform: translateX(-6px); }

/* portal visuals */
.eeg { width: 100%; height: 100%; }
.eeg path { fill: none; stroke: var(--synapse); stroke-width: 2; stroke-dasharray: 600; animation: draw 3.2s linear infinite; }
.eeg path.ghost { stroke: var(--line-strong); stroke-dasharray: none; animation: none; }
@keyframes draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.mini-schulte { display: grid; grid-template-columns: repeat(5, 22px); gap: 5px; direction: ltr; }
.mini-schulte span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); font-size: .7rem; font-weight: 700; color: var(--ink-2); }
.mini-schulte span.hit { background: var(--ai); color: var(--bg); border-color: transparent; }
.leitner-mini { display: flex; align-items: flex-end; gap: 8px; direction: ltr; }
.leitner-mini div { width: 30px; border-radius: 6px 6px 3px 3px; background: linear-gradient(to top, color-mix(in srgb, var(--gold) 70%, transparent), color-mix(in srgb, var(--gold) 15%, transparent)); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; position: relative; }
.step { position: relative; padding: 24px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.step-n { font-family: var(--f-brand); font-weight: 800; font-size: .85rem; color: var(--synapse); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--synapse) 12%, transparent); border: 1px solid color-mix(in srgb, var(--synapse) 35%, transparent); }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--ink-2); font-size: .92rem; }
.step small { color: var(--ink-3); font-size: .8rem; }

/* ---------- audience / features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 22px; border-radius: var(--r-m); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.feature > div { min-width: 0; }
.feature .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--synapse); border: 1px solid var(--line); }
.feature .ic .i { width: 22px; height: 22px; }
.feature h3 { font-size: 1.02rem; margin-bottom: 4px; }
.feature p { color: var(--ink-2); font-size: .9rem; }

/* ---------- premium banner ---------- */
.premium-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: 54px clamp(24px, 5vw, 64px);
  background:
    radial-gradient(600px 300px at 10% 120%, color-mix(in srgb, var(--gold) 30%, transparent), transparent 70%),
    radial-gradient(500px 300px at 95% -20%, var(--glow-2), transparent 70%),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  display: grid; grid-template-columns: 1.3fr auto; gap: 30px; align-items: center;
}
.premium-band > div { min-width: 0; }
.premium-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 900; margin-block: 12px; }
.premium-band ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: .93rem; }
.premium-band li { display: inline-flex; align-items: center; gap: .45em; }
.premium-band li .i { color: var(--gold); }
.price-note { text-align: center; display: grid; gap: 12px; justify-items: center; }
.price-note .from { color: var(--ink-3); font-size: .85rem; }
.price-note .big { font-size: 2.4rem; font-weight: 900; line-height: 1.2; }
.price-note .big small { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.crown-badge { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 4px 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding-block: 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--synapse); transition: transform .25s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 18px; }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; padding-block: 56px 40px; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; display: grid; gap: 18px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 900; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-3); flex-wrap: wrap; }
.crumbs a:hover { color: var(--synapse); }
.crumbs span[aria-current] { color: var(--ink-2); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-stat { display: grid; padding: 12px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 130px; }
.hero-stat b { font-size: 1.4rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: .8rem; color: var(--ink-3); }

/* ---------- filters + catalog ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter-btn { padding: .45em 1.1em; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); cursor: pointer; font-weight: 600; font-size: .9rem; transition: all .2s; }
.filter-btn:hover { color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--synapse); color: var(--on-synapse); border-color: transparent; }
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.item {
  display: flex; flex-direction: column; gap: 12px; padding: 22px; min-width: 0;
  border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s, border-color .25s; scroll-margin-top: 100px;
}
.item:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.item:target { border-color: var(--synapse); box-shadow: 0 0 0 3px var(--glow-1); }
.item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.item .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.item .ic .i { width: 22px; height: 22px; }
.d-attention { color: var(--synapse); }
.d-memory { color: var(--ai); }
.d-speed { color: var(--gold); }
.d-exec { color: var(--c-blue); }
.item h3 { font-size: 1.1rem; }
.item .en { font-size: .78rem; color: var(--ink-3); direction: ltr; text-align: right; display: block; font-weight: 500; }
.item p { color: var(--ink-2); font-size: .9rem; }
.item-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--ink-3); margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.item-meta span { display: inline-flex; align-items: center; gap: .35em; }
.item-meta .i { width: 1em; height: 1em; }
.item .btn { align-self: flex-start; }
.item[hidden] { display: none !important; }

/* ---------- demo panels ---------- */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.demo { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-l); padding: 24px; display: grid; gap: 16px; align-content: start; min-width: 0; box-shadow: var(--shadow); }
.demo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.demo-head h3 { font-size: 1.15rem; display: flex; align-items: center; gap: .5em; }
.demo p.hint { color: var(--ink-2); font-size: .9rem; }
.rt-pad {
  height: 220px; border-radius: var(--r-m); border: 1px solid var(--line-strong); cursor: pointer;
  display: grid; place-items: center; text-align: center; font-size: 1.25rem; font-weight: 800; padding: 16px;
  background: var(--bg-2); color: var(--ink); user-select: none; -webkit-user-select: none; transition: background .12s;
  width: 100%;
}
.rt-pad small { display: block; font-size: .85rem; font-weight: 500; color: var(--ink-2); margin-top: 6px; }
.rt-pad.wait { background: color-mix(in srgb, var(--danger) 18%, var(--bg-2)); }
.rt-pad.go { background: var(--synapse); color: var(--on-synapse); }
.rt-pad.go small { color: var(--on-synapse); }
.result-row { display: flex; flex-wrap: wrap; gap: 8px; }
.result-row .r { padding: 6px 12px; border-radius: 10px; background: var(--surface-2); font-size: .85rem; font-variant-numeric: tabular-nums; border: 1px solid var(--line); }
.score-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.score { padding: 12px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 2px; text-align: center; }
.score b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.score span { font-size: .75rem; color: var(--ink-3); }

.stroop-stage { height: 150px; border-radius: var(--r-m); background: var(--bg-2); border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 3rem; font-weight: 900; text-align: center; }
.stroop-stage small { font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.stroop-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stroop-btns button { padding: .7em .4em; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); cursor: pointer; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: .4em; }
.stroop-btns button:hover { border-color: var(--synapse); }
.stroop-btns button:disabled { opacity: .5; cursor: not-allowed; }
.sw { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--synapse), var(--ai)); transition: width .3s; }

/* schulte */
.schulte-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.schulte { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 460px; width: 100%; margin-inline: auto; direction: ltr; }
.schulte button {
  aspect-ratio: 1; max-width: 100%; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface-2);
  font-size: clamp(1.1rem, 3.6vw, 1.7rem); font-weight: 800; cursor: pointer; font-family: var(--f-body);
  transition: transform .1s, background .2s, color .2s;
}
.schulte button:hover { border-color: var(--ai); }
.schulte button:active { transform: scale(.95); }
.schulte button.found { background: color-mix(in srgb, var(--ai) 22%, transparent); color: var(--ai); border-color: transparent; }
.schulte button.miss { animation: shake .3s; border-color: var(--danger); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.side-panel { display: grid; gap: 12px; }
.big-readout { padding: 18px; border-radius: var(--r-m); background: var(--bg-2); border: 1px solid var(--line); text-align: center; }
.big-readout span { font-size: .8rem; color: var(--ink-3); display: block; }
.big-readout b { font-size: 2.4rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.3; }
.norms { display: grid; gap: 6px; font-size: .85rem; }
.norms div { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
.norms div.on { outline: 2px solid var(--ai); }

/* staircase chart & generic charts */
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; display: grid; gap: 14px; min-width: 0; }
.chart-scroll { overflow-x: auto; }
.chart { width: 100%; min-width: 480px; height: auto; display: block; direction: ltr; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { stroke: var(--line-strong); stroke-width: 1; }
.chart text { fill: var(--ink-3); font-family: var(--f-body); font-size: 11px; }
.chart .l-main { fill: none; stroke: var(--synapse); stroke-width: 2.5; stroke-linejoin: round; }
.chart .l-ai { fill: none; stroke: var(--ai); stroke-width: 2.5; stroke-linejoin: round; }
.chart .l-muted { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 5 5; }
.chart .a-main { fill: color-mix(in srgb, var(--synapse) 14%, transparent); }
.chart .p-main { fill: var(--synapse); }
.chart .p-ai { fill: var(--ai); }
.chart .band { fill: color-mix(in srgb, var(--synapse) 7%, transparent); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.split > * { min-width: 0; }
.rule-list { display: grid; gap: 10px; }
.rule { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.rule b.k { font-size: .85rem; padding: .3em .8em; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.k-up { background: color-mix(in srgb, var(--synapse) 16%, transparent); color: var(--synapse); }
.k-eq { background: var(--surface-2); color: var(--ink-2); }
.k-down { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.rule p { font-size: .92rem; color: var(--ink-2); }

/* timeline plan */
.plan-bar { display: flex; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); height: 64px; }
.plan-bar div { display: grid; place-items: center; font-size: .82rem; font-weight: 700; text-align: center; padding: 4px; line-height: 1.4; min-width: 0; }
.pb-1 { background: color-mix(in srgb, var(--synapse) 20%, var(--surface)); }
.pb-2 { background: color-mix(in srgb, var(--ai) 22%, var(--surface)); }
.pb-3 { background: color-mix(in srgb, var(--gold) 20%, var(--surface)); }

/* pomodoro */
.pomo { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.pomo-ring { position: relative; width: 260px; height: 260px; max-width: 100%; margin-inline: auto; }
.pomo-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pomo-ring .track { fill: none; stroke: var(--surface-2); stroke-width: 12; }
.pomo-ring .bar { fill: none; stroke: var(--gold); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .5s linear, stroke .3s; }
.pomo-ring.break .bar { stroke: var(--synapse); }
.pomo-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.pomo-center b { font-size: 3.2rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.2; }
.pomo-center span { color: var(--ink-2); font-size: .9rem; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: .45em 1em; border-radius: 999px; cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px -3px rgba(0, 0, 0, .3); }
.pomo-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.tomatoes { display: flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--ink-2); flex-wrap: wrap; }
.tomatoes i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold); display: inline-block; }
.tomatoes i.done { background: var(--gold); }

/* leitner */
.leitner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.lbox { border-radius: var(--r-m); padding: 16px 12px; text-align: center; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; position: relative; }
.lbox b { font-size: 1.6rem; font-weight: 900; color: var(--gold); }
.lbox span { font-size: .8rem; color: var(--ink-2); }
.lbox .cards { height: 54px; margin-top: 6px; display: flex; align-items: flex-end; justify-content: center; }
.lbox .cards i { width: 70%; border-radius: 6px 6px 2px 2px; background: repeating-linear-gradient(to top, color-mix(in srgb, var(--gold) 40%, transparent) 0 3px, transparent 3px 6px); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }

/* ---------- pricing ---------- */
.billing { display: flex; justify-content: center; margin-bottom: 36px; }
.save-pill { font-size: .72rem; background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--gold); padding: .1em .6em; border-radius: 99px; margin-inline-start: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 30px 26px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.plan.featured { border: 1.5px solid var(--gold); box-shadow: 0 30px 70px -35px color-mix(in srgb, var(--gold) 60%, transparent); background: radial-gradient(400px 220px at 50% -10%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%), var(--surface); }
.plan .ribbon { position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%); background: var(--gold); color: var(--on-gold); font-size: .78rem; font-weight: 800; padding: .3em 1em; border-radius: 99px; white-space: nowrap; }
.plan h3 { font-size: 1.3rem; display: flex; align-items: center; gap: .5em; }
.plan .desc { color: var(--ink-2); font-size: .9rem; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: 2.3rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.2; }
.price span { color: var(--ink-3); font-size: .9rem; }
.price-sub { font-size: .82rem; color: var(--ink-3); min-height: 1.6em; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .92rem; }
.plan li { display: flex; gap: .6em; align-items: flex-start; }
.plan li .i { color: var(--synapse); margin-top: .3em; width: 1.05em; height: 1.05em; }
.plan li.off { color: var(--ink-3); }
.plan li.off .i { color: var(--ink-3); }
.plan .btn { margin-top: auto; }
.table-wrap { overflow-x: auto; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .92rem; }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: right; }
.compare thead th { font-size: .95rem; background: var(--surface-2); }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--synapse); font-weight: 800; }
.compare .no { color: var(--ink-3); }
.compare .col-pro { background: color-mix(in srgb, var(--gold) 6%, transparent); }
.assure { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; color: var(--ink-2); font-size: .9rem; margin-top: 30px; }
.assure span { display: inline-flex; align-items: center; gap: .5em; }
.assure .i { color: var(--synapse); }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 75px); }
.auth-art { position: relative; overflow: hidden; background: var(--bg-2); border-inline-end: 1px solid var(--line); display: grid; align-content: center; padding: 48px clamp(20px, 5vw, 64px); }
.auth-art > *:not(canvas) { position: relative; z-index: 1; }
.auth-art h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 900; margin-block: 16px 14px; }
.auth-art ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.auth-art li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.auth-art li .i { color: var(--synapse); margin-top: .35em; }
.auth-main { display: grid; place-items: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 440px; display: grid; gap: 20px; }
.auth-card h1 { font-size: 1.8rem; font-weight: 900; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tabs button { border: 0; background: transparent; padding: .65em; border-radius: 10px; cursor: pointer; font-weight: 700; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35); }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.input {
  width: 100%; padding: .8em 1em; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.input:focus { border-color: var(--synapse); box-shadow: 0 0 0 4px var(--glow-1); }
textarea.input { min-height: 140px; resize: vertical; }
.input-icon { position: relative; }
.input-icon .i { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.input-icon .input { padding-inline-start: 2.8em; }
.otp { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; direction: ltr; }
.otp input { text-align: center; font-size: 1.4rem; font-weight: 800; padding: .5em 0; }
.check { display: flex; gap: .6em; align-items: flex-start; font-size: .88rem; color: var(--ink-2); }
.check input { margin-top: .45em; accent-color: var(--synapse); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .88rem; flex-wrap: wrap; }
.link { color: var(--synapse); font-weight: 600; }
.link:hover { text-decoration: underline; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: .82rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.notice { padding: 12px 16px; border-radius: 12px; font-size: .88rem; background: color-mix(in srgb, var(--gold) 12%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); color: var(--ink); display: flex; gap: .6em; align-items: flex-start; }
.notice .i { color: var(--gold); margin-top: .3em; }
.form-msg { font-size: .88rem; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.form-msg.err { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.form-msg.ok { color: var(--synapse); border-color: color-mix(in srgb, var(--synapse) 40%, transparent); }

/* ---------- about / contact ---------- */
.prose { max-width: 68ch; display: grid; gap: 16px; color: var(--ink-2); font-size: 1.04rem; }
.prose strong { color: var(--ink); }
.formula { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 30px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.formula .term { display: grid; gap: 4px; justify-items: center; text-align: center; }
.formula .term b { font-family: var(--f-brand); font-size: 1.5rem; }
.formula .term span { font-size: .85rem; color: var(--ink-2); }
.formula .op { font-family: var(--f-brand); font-size: 1.6rem; color: var(--ink-3); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-card { padding: 28px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 18px; }
.phone-big { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--r-m); background: var(--bg-2); border: 1px solid var(--line-strong); }
.phone-big b { font-size: 1.6rem; font-weight: 900; letter-spacing: .04em; font-variant-numeric: tabular-nums; user-select: all; }
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row .ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--synapse); border: 1px solid var(--line); }
.info-row h3 { font-size: .98rem; }
.info-row p { color: var(--ink-2); font-size: .9rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 85%, transparent); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-block: 56px 36px; }
.footer-grid > * { min-width: 0; }
.footer-about { display: grid; gap: 16px; align-content: start; }
.footer-about p { color: var(--ink-2); font-size: .9rem; max-width: 40ch; }
.faranab { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); width: fit-content; font-size: .85rem; }
.faranab b { color: var(--ink); }
.faranab .i { color: var(--gold); }
.footer-col h4 { font-size: .95rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--ink-2); font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--synapse); }
.footer-phone { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.footer-phone span { font-size: .78rem; color: var(--ink-3); }
.footer-phone b { font-size: 1.2rem; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 18px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-3); }
.footer-bottom .brandline { font-family: var(--f-brand); letter-spacing: .08em; font-size: .7rem; direction: ltr; }

/* =========================================================
   آزمون‌های نورای — صفحه‌های فهرست، معرفی و نتیجه (با پوستهٔ سایت)
   ========================================================= */
:root {
  --b-high: #4ADE80; --b-ok: #7DD3A8; --b-border: #FACC15; --b-mild: #FB923C; --b-mod: #F97350; --b-sev: #F87171; --b-invalid: #94A3B8;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --b-high: #0F6B47; --b-ok: #23744F; --b-border: #8A6500; --b-mild: #9A5208; --b-mod: #A9401C; --b-sev: #A12C2C; --b-invalid: #46566F; }
}
:root[data-theme="light"] { --b-high: #0F6B47; --b-ok: #23744F; --b-border: #8A6500; --b-mild: #9A5208; --b-mod: #A9401C; --b-sev: #A12C2C; --b-invalid: #46566F; }

.bandpill { --bc: var(--b-ok); display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; padding: .2em .8em; border-radius: 99px; white-space: nowrap; color: var(--bc); background: color-mix(in srgb, var(--bc) 15%, transparent); border: 1px solid color-mix(in srgb, var(--bc) 35%, transparent); }
.bandpill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bandpill.high { --bc: var(--b-high); } .bandpill.ok { --bc: var(--b-ok); } .bandpill.border { --bc: var(--b-border); }
.bandpill.mild { --bc: var(--b-mild); } .bandpill.mod { --bc: var(--b-mod); } .bandpill.sev { --bc: var(--b-sev); } .bandpill.invalid { --bc: var(--b-invalid); }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
button.link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.note-sm { display: block; font-size: .82rem; color: var(--ink-3); }
.note-sm .i { vertical-align: -.2em; margin-inline-end: .35em; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.seg button { display: inline-flex; align-items: center; gap: .4em; }

/* summary on tests.html */
.summary-empty { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.summary-copy { display: grid; gap: 16px; min-width: 0; }
.order-list { list-style: none; margin: 0; padding: 18px; display: grid; gap: 6px; counter-reset: o; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.order-list li { counter-increment: o; }
.order-list a { display: grid; grid-template-columns: auto auto 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; transition: background .2s; }
.order-list a::before { content: counter(o, persian); font-weight: 800; color: var(--ink-3); width: 1.4em; text-align: center; }
.order-list a:hover { background: var(--surface-2); }
.order-list .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); }
.order-list small { color: var(--ink-3); }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.summary-card { display: grid; gap: 14px; align-content: start; padding: 26px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.summary-card.chart-card { align-content: center; }
.radar8 { width: 100%; max-width: 440px; margin-inline: auto; display: block; }
.radar8 .ring { fill: none; stroke: var(--line-strong); }
.radar8 .axis { stroke: var(--line); }
.radar8 .before { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 4 3; }
.radar8 .after { fill: color-mix(in srgb, var(--synapse) 20%, transparent); stroke: var(--synapse); stroke-width: 2.2; stroke-linejoin: round; }
.radar8 .pt { fill: var(--synapse); }
.radar8 text { fill: var(--ink-2); font-family: var(--f-body); font-size: 11px; }
.radar8 text.v { fill: var(--ink); font-weight: 800; }
.scoreline { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bigscore { font-size: 2.8rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bigscore small { font-size: .9rem; font-weight: 600; color: var(--ink-3); }

/* single test page */
.test-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.test-main, .test-side { display: grid; gap: 16px; min-width: 0; }
.test-side { position: sticky; top: calc(90px + env(safe-area-inset-top, 0px)); }
.panel-s { display: grid; gap: 12px; padding: 22px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.panel-s h2 { font-size: 1.1rem; display: flex; align-items: center; gap: .5em; }
.panel-s h3 { font-size: 1.02rem; }
.panel-s p { color: var(--ink-2); }
.how { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.how li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; gap: 12px; color: var(--ink-2); }
.how li::before { content: counter(s, persian); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--synapse); background: color-mix(in srgb, var(--synapse) 14%, transparent); }
.sample-row { display: flex; flex-wrap: wrap; gap: 8px; }
.field-label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.start-row { display: flex; flex-wrap: wrap; gap: 12px; }
.start-row .btn { flex: 1 1 200px; }
.hist { display: grid; gap: 4px; }
.hist-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 0; background: none; cursor: pointer; text-align: start; width: 100%; color: var(--ink-2); }
.hist-row:hover { background: var(--surface-2); }
.hist-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.app-cta { border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.app-cta h2 .i { color: var(--gold); }
.app-cta .btn { justify-self: start; }
.test-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.test-nav-link { display: grid; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); min-width: 180px; transition: border-color .2s; }
.test-nav-link:hover { border-color: var(--synapse); }
.test-nav-link small { color: var(--ink-3); font-size: .78rem; }
.test-nav-link.next { text-align: left; }

/* result */
.result-section { scroll-margin-top: 80px; padding-top: 30px; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.result-hero { display: grid; gap: 16px; padding: 24px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); min-width: 0; }
.result-text { display: grid; gap: 16px; min-width: 0; }
.gauge { position: relative; padding-top: 4px; }
.gauge .segs { display: grid; grid-template-columns: 2fr 1fr .5fr .5fr 2fr 1fr; gap: 3px; height: 12px; }
.gauge .segs i { border-radius: 3px; }
.gauge .segs i:nth-child(1) { background: var(--b-sev); } .gauge .segs i:nth-child(2) { background: var(--b-mod); } .gauge .segs i:nth-child(3) { background: var(--b-mild); }
.gauge .segs i:nth-child(4) { background: var(--b-border); } .gauge .segs i:nth-child(5) { background: var(--b-ok); } .gauge .segs i:nth-child(6) { background: var(--b-high); }
.gauge .mk { position: absolute; top: -3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 4px solid var(--ink); transform: translateX(50%); }
.gauge .lbl { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-3); margin-top: 6px; }
.cmp { font-size: .9rem; color: var(--ink-2); }
.cmp b.pos { color: var(--b-high); } .cmp b.neg { color: var(--b-sev); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tiles div { background: var(--surface-2); border-radius: 14px; padding: 10px 8px; text-align: center; display: grid; gap: 4px; align-content: space-between; font-size: .78rem; color: var(--ink-2); line-height: 1.5; }
.tiles b { font-size: 1.05rem; color: var(--ink); font-weight: 900; font-variant-numeric: tabular-nums; }
.bul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.notice.danger { background: color-mix(in srgb, var(--b-sev) 12%, transparent); border-color: color-mix(in srgb, var(--b-sev) 40%, transparent); }
.notice.danger .i { color: var(--b-sev); }
.recs-panel { margin-top: 20px; }
.recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.rec { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: 14px; padding: 12px; }
.rec i { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; font-style: normal; font-weight: 900; color: var(--gold); background: color-mix(in srgb, var(--gold) 15%, transparent); }
.rec b { display: block; font-size: .95rem; }
.rec span { font-size: .85rem; color: var(--ink-2); }
details.pro { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
details.pro summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; gap: 10px; font-weight: 800; }
details.pro summary::-webkit-details-marker { display: none; }
details.pro summary .i { color: var(--synapse); }
details.pro summary::after { content: "+"; margin-inline-start: auto; color: var(--synapse); font-size: 1.3rem; transition: transform .25s; }
details.pro[open] summary::after { transform: rotate(45deg); }
.pro-body { padding: 0 20px 20px; display: grid; gap: 12px; color: var(--ink-2); }
.pro-body .table-wrap { background: transparent; }
table.mtable { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 420px; }
.mtable td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mtable td:last-child { text-align: left; font-weight: 700; color: var(--ink); white-space: nowrap; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 24px 12px; }
.small { font-size: .82rem; }

/* =========================================================
   صفحهٔ اجرای آزمون — رنگ‌های ثابت روشن نورای در هر دو پوسته،
   تا کنتراست محرک‌ها در همهٔ اجراها یکسان بماند.
   ========================================================= */
html.test-running, html.test-running body { overflow: hidden; }
.test-run {
  --ink: #0B1E3F; --ink-2: #46566F; --ink-3: #61718A; --line: #E0E7EF; --surface: #FFFFFF; --surface-2: #EEF3F8;
  --accent: #0A7E9D; --accent-ink: #FFFFFF; --synapse: #0A7E9D; --good: #17845A; --good-soft: #E1F5EC; --bad: #C03A3A; --bad-soft: #FCE6E5;
  --glow: #F6BF55; --gold: #95620A; --gold-soft: #FDF3DC; --shadow: 0 1px 2px rgba(11, 30, 63, .05), 0 6px 20px rgba(11, 30, 63, .06);
  color-scheme: light;
  position: fixed; inset: 0; z-index: 300; background: #FFFFFF; color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.7;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px calc(14px + env(safe-area-inset-bottom, 0px)); display: flex;
}
.test-run .tr-inner { position: relative; width: min(1100px, 100%); margin-inline: auto; height: 100%; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.test-run button { font-family: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.test-run button:disabled { cursor: default; }
.test-run .runhead { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.test-run .tr-x { width: 38px; height: 38px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.test-run .runhead .t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.test-run .runhead .t b { font-size: 14px; }
.test-run .runhead .t small { font-size: 11px; color: var(--ink-3); }
.test-run .timer { font-weight: 800; font-size: 13px; background: var(--surface-2); border-radius: 10px; padding: 3px 10px; min-width: 62px; text-align: center; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.test-run .pbar { height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; flex-shrink: 0; }
.test-run .pbar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .3s; }
.test-run .practicechip { align-self: center; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--gold-soft); color: var(--gold); }
.test-run .runinst { font-size: 15px; font-weight: 700; text-align: center; min-height: 24px; line-height: 1.5; flex-shrink: 0; margin: 0; }
.test-run .runinst .nextnum { display: inline-block; background: var(--glow); color: #1E1403; border-radius: 9px; padding: 0 10px; margin-inline-start: 4px; }
.test-run .runstage { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; container-type: size; }
.test-run .runfb { text-align: center; font-weight: 800; min-height: 20px; font-size: 14px; flex-shrink: 0; }
.test-run .runfb.good { color: var(--good); } .test-run .runfb.bad { color: var(--bad); }
.test-run .runact { display: flex; gap: 8px; width: min(100%, 640px); align-self: center; flex-shrink: 0; }
.test-run .runact:empty { display: none; }
.test-run .runact button { flex: 1; min-height: 50px; border-radius: 15px; font-weight: 800; font-size: 16px; background: var(--surface-2); }
.test-run .runact button.pri { background: var(--accent); color: var(--accent-ink); }
.test-run .runact button.ghost { background: var(--surface); border: 1.5px solid var(--line); }
.test-run .countdown { position: absolute; inset: 0; display: grid; place-items: center; background: #FFFFFF; z-index: 4; font-size: 96px; font-weight: 900; color: var(--accent); }
.test-run .tr-confirm { position: absolute; inset: 0; z-index: 10; background: rgba(11, 30, 63, .35); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.test-run .tr-sheet { width: min(440px, 100%); background: #FFFFFF; border-radius: 22px; padding: 20px; display: grid; gap: 12px; box-shadow: 0 20px 50px rgba(11, 30, 63, .25); }
.test-run .tr-sheet h3 { font-size: 1.2rem; }
.test-run .tr-sheet p { color: var(--ink-2); }
.test-run .tr-btns { display: flex; gap: 10px; }
.test-run .tr-btn { flex: 1; min-height: 48px; border-radius: 14px; font-weight: 800; }
.test-run .tr-btn.ghost { background: var(--surface-2); }
.test-run .tr-btn.danger { background: var(--bad); color: #FFFFFF; }

/* محرک‌های آزمون (برگرفته از اپ نورای) */
.test-run .ring { position: relative; flex-shrink: 0; margin: 0 auto; width: min(100%, 340px); aspect-ratio: 1; width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); }
.test-run .rdot { position: absolute; width: max(44px, 12.5%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #FFFFFF; border: 3px solid #C9D5E3; transition: background .12s, box-shadow .12s; }
.test-run .rdot.flash { background: var(--glow); border-color: #E9B04A; box-shadow: 0 0 0 10px rgba(246, 191, 85, .25); }
.test-run .rdot.sel { background: var(--accent); border-color: var(--accent); }
.test-run .rdot.wrong { background: var(--bad); border-color: var(--bad); }
.test-run .tapzone { flex: 1; min-height: 240px; border-radius: 24px; background: #FFFFFF; border: 1px solid var(--line); display: grid; place-items: center; position: relative; touch-action: manipulation; user-select: none; -webkit-user-select: none; cursor: pointer; container-type: size; }
.test-run .tzhint { position: absolute; bottom: 10px; inset-inline: 0; text-align: center; font-size: 12px; color: var(--ink-3); }
.test-run .gostim { font-size: 150px; font-size: min(52cqh, 60cqw); font-weight: 900; line-height: 1; color: var(--ink); }
.test-run .vstim { width: 120px; height: 120px; width: min(40cqw, 40cqh); height: min(40cqw, 40cqh); }
.test-run .vstim.target { border-radius: 50%; background: radial-gradient(circle, #17283c 0 11%, transparent 12%), linear-gradient(135deg, #ffe36d, #f4a21f); border: 9px solid #8d4b00; }
.test-run .vstim[class*="c-"] { border-radius: 50%; }
.test-run .vstim[class*="s-"] { border-radius: 18%; }
.test-run .vstim.c-blue, .test-run .vstim.s-blue { background: #3ea3d4; border: 9px solid #176084; }
.test-run .vstim.c-green, .test-run .vstim.s-green { background: #49b97f; border: 9px solid #187247; }
.test-run .vstim.c-purple, .test-run .vstim.s-purple { background: #9c7ad8; border: 9px solid #5b3b92; }
.test-run .vstim.tri { background: #4b9fd0; clip-path: polygon(50% 4%, 97% 94%, 3% 94%); }
.test-run .fix { font-size: 52px; font-size: clamp(52px, 14cqh, 110px); text-align: center; color: var(--ink-3); font-weight: 300; }
.test-run .wordpair { display: flex; gap: 12px; justify-content: center; width: min(100%, 780px); margin: 0 auto; }
.test-run .wordpair span, .test-run .word1 { background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 26px 12px; font-size: 26px; font-weight: 800; text-align: center; flex: 1; box-shadow: var(--shadow); }
.test-run .wordpair span { font-size: clamp(24px, 5.5cqw, 48px); padding: clamp(20px, 7cqh, 64px) 12px; }
.test-run .word1 { flex: none; width: min(100%, 640px); margin: 0 auto; font-size: clamp(38px, 9cqw, 84px); padding: clamp(34px, 10cqh, 96px) 12px; }
.test-run .interlude { text-align: center; font-size: 22px; font-weight: 900; line-height: 1.6; }
.test-run .interlude small { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.test-run .seqrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: min(100%, 720px); margin: 0 auto; }
.test-run .sym { background: #FFFFFF; border: 1px solid #D3DDEA; border-radius: 14px; aspect-ratio: 1; display: grid; place-items: center; padding: 4px; }
.test-run .sym svg { width: 100%; height: 100%; }
.test-run .sym.q { font-size: clamp(26px, 5cqw, 48px); font-weight: 900; color: #0A7E9D; border: 2px dashed #0A7E9D; }
.test-run .optgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px auto 0; width: min(100%, 340px); width: min(100%, 58cqh, 520px); }
.test-run .sym.opt { border: 2px solid #D3DDEA; background: #FFFFFF; transition: transform .1s; }
.test-run .sym.opt:active { transform: scale(.96); }
.test-run .sym.opt.picked { border-color: #0A7E9D; box-shadow: 0 0 0 4px rgba(10, 126, 157, .22); }
.test-run .numboard { position: relative; flex: 1; min-height: 360px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; }
.test-run .numboard .num { position: absolute; transform: translate(-50%, -50%); width: var(--ns, 44px); height: var(--ns, 44px); border-radius: 50%; background: var(--surface-2); font-weight: 800; font-size: calc(var(--ns, 44px) * .38); border: 2px solid #D3DDEA; }
.test-run .numboard .num.done { background: var(--good-soft); color: var(--good); border-color: transparent; opacity: .55; }
.test-run .numboard .num.wrong { animation: nr-shake .35s; background: var(--bad-soft); color: var(--bad); }
@keyframes nr-shake { 25% { transform: translate(-44%, -50%); } 75% { transform: translate(-56%, -50%); } }
.test-run .ufov { position: relative; flex-shrink: 0; margin: 0 auto; background: #FFFFFF; border-radius: 24px; border: 1px solid #D3DDEA; width: min(100%, 330px); aspect-ratio: 1; width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); container-type: size; }
.test-run .ufc { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 15cqw; height: 15cqw; font-size: 11cqw; display: grid; place-items: center; color: #0B1E3F; font-weight: 300; }
.test-run .ufc.show.circle { background: #0B1E3F; border-radius: 50%; }
.test-run .ufc.show.square { background: #0B1E3F; border-radius: 8%; }
.test-run .ufp { position: absolute; width: max(44px, 13cqw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; line-height: 1; color: transparent; }
.test-run .ufp::after { font-size: 9cqw; }
.test-run .ufp.star::after { content: "★"; color: #D98A00; }
.test-run .ufp.dis::after { content: "△"; color: #6F7F9A; }
.test-run .ufp.pick { border: 2px dashed #9FB2C9; background: #F3F7FC; }
.test-run .ufp.pick:active { background: #D6F0F6; }
.test-run .ufmask { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 24px; display: none; }
.test-run .passage { font-size: 18px; line-height: 2.15; text-align: justify; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin: 0 auto; max-width: 68ch; align-self: stretch; }
.test-run .runstage:has(.passage) { justify-content: flex-start; }
.test-run .passage h3 { font-size: 20px; font-weight: 900; margin: 0 0 10px; }
.test-run .passage p { margin: 0; }
.test-run .passage p + p { margin-top: .8em; }
.test-run .passage.child { font-size: 20px; line-height: 2.25; }
.test-run .qopts { display: flex; flex-direction: column; gap: 10px; width: min(100%, 640px); margin: 0 auto; }
.test-run .qopt { background: #FFFFFF; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; text-align: start; font-size: 16px; font-weight: 600; }
.test-run .qopt:active { border-color: var(--accent); }

@media (max-width: 1000px) {
  .test-layout, .result-grid, .summary-grid, .summary-empty { grid-template-columns: 1fr; }
  .test-side { position: static; }
}
@media (max-width: 680px) {
  .tiles { grid-template-columns: 1fr 1fr 1fr; }
  .test-nav-link { min-width: 0; flex: 1 1 140px; }
  .bigscore { font-size: 2.2rem; }
}

/* ---------- premium lock + course frame ---------- */
.lock-card {
  display: grid; gap: 14px; justify-items: start; padding: 28px; border-radius: var(--r-l); min-width: 0;
  background: radial-gradient(420px 200px at 100% 0%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%), var(--surface);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}
.lock-card h2 { font-size: 1.35rem; font-weight: 900; }
.lock-card p { color: var(--ink-2); }
.lock-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--gold); background: color-mix(in srgb, var(--gold) 15%, transparent); }
.lock-ic .i { width: 26px; height: 26px; }
.preview-note { display: flex; gap: .5em; align-items: flex-start; font-size: .82rem; color: var(--ink-2); padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line-strong); background: var(--surface-2); }
.preview-note .i { margin-top: .3em; flex: none; color: var(--gold); }
#course-app { display: grid; gap: 14px; }
.course-frame { display: block; width: 100%; height: 88vh; min-height: 640px; border: 1px solid var(--line); border-radius: var(--r-l); background: #F7F8F4; }

/* =========================================================
   پنل کاربری (dashboard.html)
   ========================================================= */
.i.flip { transform: scaleX(-1); }
.dash-section { padding-block: 34px 60px; }
#dash { display: grid; gap: 20px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.dash-who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.dash-who small { color: var(--ink-3); }
.dash-who h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; line-height: 1.3; }
.dash-who p { display: flex; align-items: center; gap: .4em; font-size: .88rem; }
.dash-who p .i { color: var(--gold); }
.avatar { width: 58px; height: 58px; border-radius: 18px; flex: none; display: grid; place-items: center; font-size: 1.5rem; font-weight: 900; color: var(--on-synapse); background: linear-gradient(135deg, var(--synapse), var(--ai)); }
.dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-tabs { display: flex; gap: 6px; padding: 6px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; position: sticky; top: calc(82px + env(safe-area-inset-top, 0px)); z-index: 5; }
.dash-tabs a { display: inline-flex; align-items: center; gap: .5em; padding: .6em 1.1em; border-radius: 13px; color: var(--ink-2); font-weight: 700; font-size: .92rem; white-space: nowrap; transition: background .2s, color .2s; }
.dash-tabs a:hover { color: var(--ink); background: var(--surface-2); }
.dash-tabs a[aria-selected="true"] { background: var(--synapse); color: var(--on-synapse); }
.dash-body { display: grid; gap: 20px; min-width: 0; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dstat { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.dstat > span { font-size: .82rem; color: var(--ink-3); }
.dstat b { font-size: 1.9rem; font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dstat b small { font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.dstat b.dstat-sm { font-size: 1.05rem; line-height: 1.6; }
.dstat .bandpill { justify-self: start; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.next-list { display: grid; gap: 8px; }
.next-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid transparent; transition: border-color .2s; }
a.next-row:hover { border-color: var(--synapse); }
.next-row .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--synapse); }
.next-row b { display: block; font-size: .95rem; }
.next-row small { color: var(--ink-3); font-size: .8rem; }
.score-bars { display: grid; gap: 4px; }
.score-bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 6px; border-radius: 10px; }
.score-bar:hover { background: var(--surface-2); }
.score-bar small { display: block; color: var(--ink-3); font-size: .75rem; }
.score-bar b { font-variant-numeric: tabular-nums; }
.score-bar i { grid-column: 1 / -1; height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.score-bar s { display: block; height: 100%; border-radius: 99px; text-decoration: none; }
.domain-list { display: grid; }
.domain-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.domain-row:last-child { border-bottom: 0; }
.domain-row:hover b { color: var(--synapse); }
.domain-row small { display: block; color: var(--ink-3); font-size: .78rem; }
.hist-table { min-width: 560px; }
.hist-table thead td { color: var(--ink-3); font-size: .8rem; font-weight: 700; }
.hist-table td:last-child { text-align: right; }
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cal-head h2 { justify-content: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-grid .wd { font-size: .78rem; color: var(--ink-3); padding-bottom: 4px; }
.cal-grid button { aspect-ratio: 1; max-width: 100%; border: 1px solid transparent; border-radius: 12px; background: none; cursor: pointer; font: inherit; font-weight: 600; color: var(--ink); display: grid; place-items: center; align-content: center; gap: 2px; font-variant-numeric: tabular-nums; }
.cal-grid button:hover { background: var(--surface-2); }
.cal-grid button.fri { color: var(--b-sev); }
.cal-grid button.today { border-color: var(--synapse); color: var(--synapse); }
.cal-grid button.sel { background: var(--synapse); color: var(--on-synapse); }
.cal-grid .dots { display: flex; gap: 3px; justify-content: center; min-height: 6px; }
.cal-grid .dots i, .cal-legend i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; border: 0; }
.ev-test { background: var(--synapse); }
.ev-practice { background: var(--gold); }
.ev-consult { background: var(--ai); }
.cal-grid button.sel .dots i { background: var(--on-synapse); }
.cal-legend { justify-content: center; flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: .75rem; color: var(--ink-3); }
.week-strip span { display: grid; justify-items: center; gap: 4px; }
.week-strip i { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); }
.week-strip .on i { background: var(--gold); border-color: transparent; }
.week-strip .today i { outline: 2px dashed var(--synapse); outline-offset: 2px; }
.lv { display: flex; gap: 3px; margin-top: 6px; }
.lv i { flex: 1; height: 6px; border-radius: 3px; background: var(--surface); }
.lv i.on { background: var(--gold); }
.slot-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; flex-wrap: wrap; }
.slot { display: grid; justify-items: center; gap: 2px; padding: .5em .9em; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.slot small { font-size: .72rem; font-weight: 500; color: var(--ink-3); }
.slot.hour { font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--synapse); }
.slot.on { background: var(--synapse); color: var(--on-synapse); border-color: transparent; }
.slot.on small { color: var(--on-synapse); }
.consult-item { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); border-inline-start: 4px solid var(--line-strong); }
.consult-item + .consult-item { margin-top: 10px; }
.consult-item.st-confirmed { border-inline-start-color: var(--b-ok); }
.consult-item.st-pending { border-inline-start-color: var(--b-border); }
.consult-item.st-cancelled { opacity: .7; }
.ci-when b { display: block; }
.ci-when span { font-size: .85rem; color: var(--ink-2); }
.ci-body { display: grid; gap: 8px; }
.ci-reply { display: flex; gap: .5em; font-size: .88rem; color: var(--ink-2); }
.ci-reply .i { color: var(--ai); margin-top: .3em; flex: none; }
.ci-act { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ci-act:empty { display: none; }
.cancel-ask { font-size: .88rem; }
@media (max-width: 1000px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .dash-stats { grid-template-columns: 1fr; }
  .dash-tabs { top: calc(76px + env(safe-area-inset-top, 0px)); }
  .dash-tabs a span { font-size: .85rem; }
}

/* toast */
.toast { position: fixed; inset-inline: 16px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); margin-inline: auto; max-width: 440px; z-index: 100; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: .92rem; transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.toast.show { transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .split, .schulte-wrap, .contact-grid, .pomo { grid-template-columns: 1fr; }
  .portals, .catalog, .plans { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .premium-band { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { order: 2; border-inline-end: 0; border-top: 1px solid var(--line); }
  .plan.featured { order: -1; }
}
@media (max-width: 680px) {
  section { padding-block: 60px; }
  .portals, .catalog, .plans, .feature-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .leitner { grid-template-columns: repeat(3, 1fr); }
  .score-line { grid-template-columns: 1fr 1fr 1fr; }
  .stroop-btns { grid-template-columns: 1fr 1fr; }
  .hero { padding-block: 40px 60px; }
  .plan-bar { height: auto; flex-direction: column; }
  .plan-bar div { padding: 10px; flex: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   WordPress (NRAI Site plugin + NRAI theme)
   ========================================================= */
.admin-bar .site-header { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { .admin-bar .site-header { top: calc(46px + env(safe-area-inset-top, 0px)); } }
.feature-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid[data-cols="1"] { grid-template-columns: 1fr; }
.course-frame { height: var(--course-h, 88vh); }
.hero-media img { width: 100%; border-radius: var(--r-l); display: block; box-shadow: var(--shadow); }
.nrai-login form { display: grid; gap: 14px; }
.nrai-login p { margin: 0; display: grid; gap: 6px; }
.nrai-login label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.nrai-login input[type="text"], .nrai-login input[type="password"], .nrai-login input[type="email"] { width: 100%; padding: .8em 1em; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; }
.nrai-login input:focus { outline: none; border-color: var(--synapse); box-shadow: 0 0 0 4px var(--glow-1); }
.nrai-login .login-remember label { display: flex; gap: .5em; align-items: center; }
.nrai-login input[type="submit"] { width: 100%; padding: .9em 1.4em; border-radius: 999px; border: 0; background: var(--synapse); color: var(--on-synapse); font: inherit; font-weight: 800; cursor: pointer; }
.nrai-wp .elementor-widget-wrap > .elementor-element { width: 100%; }
.nrai-wp .entry-plain { padding-block: 48px 72px; }
.nrai-wp .entry-plain .prose-page { max-width: 760px; color: var(--ink-2); line-height: 2; }
.nrai-wp .entry-plain .prose-page h1 { color: var(--ink); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.nrai-wp .entry-plain .prose-page a { color: var(--synapse); }
.nav-fallback-note { font-size: .8rem; color: var(--ink-3); }