/* ASecurity Academy v2 — light, text-first, purple accent. One file, no build step. */

:root {
    --bg: #ffffff;
    --bg-soft: #f8f6fc;
    --surface: #ffffff;
    --surface-2: #f8f6fc;
    --border: #e7e1f2;
    --border-strong: #d8c7ff;
    --text: #1d1730;
    --muted: #635d73;
    --faint: #9a94ab;
    --brand: #7c3aed;
    --brand-dim: #6d28d9;
    --brand-soft: #f2ecff;
    --ink: #141019;
    --ok: #15a34a; --ok-soft: #eafaf0;
    --warn: #d97706; --warn-soft: #fdf3e6;
    --bad: #dc2626; --bad-soft: #fdecec;
    --diff-easy: #15a34a; --diff-medium: #d97706; --diff-hard: #dc2626; --diff-insane: #7c3aed;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --radius: 12px; --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(20,16,25,.05), 0 8px 24px -16px rgba(124,58,237,.25);
    --container: 1140px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; }
a { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: var(--mono); }
code { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: .88em; }
img { max-width: 100%; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px; z-index: 100; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.page { padding: 28px 20px 56px; min-height: 60vh; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.small { font-size: .88rem; } .fineprint { font-size: .82rem; color: var(--muted); }
.mono { font-family: var(--mono); }
.right { text-align: right; } .center { text-align: center; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 28px } .mt-4 { margin-top: 44px }
.mb-0 { margin-bottom: 0 } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 28px }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---- Buttons, badges, chips ---- */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2; font-family: inherit; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dim); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap; }
.diff-easy   { color: var(--diff-easy);   border-color: #b7e6c8; background: #eafaf0; }
.diff-medium { color: var(--diff-medium); border-color: #f2d5a8; background: #fdf3e6; }
.diff-hard   { color: var(--diff-hard);   border-color: #f3bcbc; background: #fdecec; }
.diff-insane { color: var(--diff-insane); border-color: var(--border-strong); background: var(--brand-soft); }
.tier { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 6px; white-space: nowrap; }
.tier-free { background: var(--ok-soft); color: var(--ok); }
.tier-month { background: #e0f2fe; color: #0369a1; }
.tier-pro { background: var(--brand-soft); color: var(--brand); }
.tier-team { background: var(--warn-soft); color: var(--warn); }
.kind { font-size: .78rem; color: var(--muted); }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--muted); font-size: .8rem; text-decoration: none; }
.chip:hover { color: var(--brand); border-color: var(--border-strong); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .8rem; color: var(--muted); }
.pill-done { color: var(--ok); } .pill-prog { color: var(--brand); font-weight: 600; font-size: .78rem; }
.avatar { border-radius: 50%; object-fit: cover; background: var(--brand-soft); }
.avatar-sm { width: 28px; height: 28px; } .avatar-md { width: 44px; height: 44px; } .avatar-lg { width: 88px; height: 88px; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.05rem; }
.brand-name span { color: var(--brand); }
.site-nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.site-nav > a { color: var(--muted); text-decoration: none; padding: 7px 11px; border-radius: 8px; font-weight: 500; font-size: .94rem; }
.site-nav > a:hover, .site-nav > a.on { color: var(--brand); background: var(--brand-soft); }
.site-nav > a.btn { color: #fff; }
.site-nav > a.btn-ghost { color: var(--text); }
.nav-spacer { flex: 1; }
.nav-login { margin-left: 4px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px; font-size: 1.2rem; color: var(--text); }
.nav-menu { position: relative; }
.nav-user { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px 4px 4px; cursor: pointer; font: inherit; color: var(--text); }
.nav-points { font-size: .82rem; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; color: var(--brand); }
.nav-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; z-index: 60; }
.nav-menu.open .nav-dropdown { display: block; }
.nav-dropdown-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.nav-dropdown-head b { display: block; }
.nav-dropdown-head span { font-size: .8rem; color: var(--muted); }
.nav-dropdown a { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .92rem; }
.nav-dropdown a:hover { background: var(--brand-soft); color: var(--brand); }
.nav-dropdown a.danger { color: var(--bad); }
.nav-sep { height: 1px; background: var(--border); margin: 4px 0; }
@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 62px; background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px; }
    body.nav-open .site-nav { display: flex; }
    .nav-spacer { display: none; }
    .site-nav > a.btn { justify-content: center; margin-top: 6px; }
    .nav-dropdown { position: static; box-shadow: none; margin-top: 6px; }
    .nav-menu { margin-top: 8px; }
}

/* ---- Flash, forms, cards, tables ---- */
.flash { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-soft); margin-bottom: 18px; }
.flash-success { background: var(--ok-soft); border-color: #b7e6c8; color: #14532d; }
.flash-error { background: var(--bad-soft); border-color: #f3bcbc; color: #7f1d1d; }
.flash-info { background: var(--brand-soft); border-color: var(--border-strong); color: var(--brand-dim); }
.form-group { margin-bottom: 14px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
.input, textarea.input, select.input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; color: var(--text); background: #fff; }
.input:focus { outline: 2px solid var(--border-strong); border-color: var(--brand); }
textarea.input { min-height: 120px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.card h3 { margin-top: 0; }
.box { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 18px 20px; }
.auth-card { max-width: 440px; margin: 24px auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-soft); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fcfaff; }
.table .c-name a { font-weight: 600; color: var(--ink); text-decoration: none; }
.table .c-name a:hover { color: var(--brand); }
.table .c-sum { font-size: .85rem; color: var(--muted); margin-top: 2px; max-width: 540px; }
.table .num { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .is-locked .c-name a { color: var(--muted); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }
.progress { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.progress.lg { height: 10px; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 22px 0; flex-wrap: wrap; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); text-decoration: none; background: #fff; }
.pager a.on, .pager a:hover { color: var(--brand); border-color: var(--border-strong); background: var(--brand-soft); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--brand); text-decoration: none; }
.crumbs span { margin: 0 6px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0 0 4px; }
.page-head p { margin: 0; color: var(--muted); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 36px 0 14px; gap: 12px; }
.section-title h2 { margin: 0; }
.section-title a { font-weight: 600; text-decoration: none; font-size: .9rem; }

/* ---- Catalogue ---- */
.filters { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 10px 0; margin-bottom: 18px; display: grid; gap: 6px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filter-label { width: 84px; font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.filter-row a { padding: 4px 12px; border-radius: 999px; font-size: .85rem; color: var(--muted); border: 1px solid transparent; text-decoration: none; }
.filter-row a:hover { color: var(--brand); background: var(--brand-soft); }
.filter-row a.on { color: var(--brand); background: var(--brand-soft); border-color: var(--border-strong); font-weight: 600; }
.search-form .input { width: 260px; max-width: 100%; }
.free-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.free-strip a { display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--surface); }
.free-strip a:hover { border-color: var(--brand); }
.free-strip b { display: block; margin-bottom: 4px; }
.free-strip small { color: var(--muted); }
.diff-icon { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.diff-icon.easy { background: var(--diff-easy) } .diff-icon.medium { background: var(--diff-medium) } .diff-icon.hard { background: var(--diff-hard) } .diff-icon.insane { background: var(--diff-insane) }

/* ---- Exercise page ---- */
.ex-head { padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.ex-head h1 { margin: 0 0 10px; font-size: clamp(1.6rem, 3.5vw, 2.2rem); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ex-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.ex-meta .i { font-size: .85rem; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--border); }
.ex-meta .i a { color: var(--brand); text-decoration: none; font-weight: 600; }
.ex-desc { font-size: 1.05rem; margin: 0 0 12px; }
.ex-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.ex-progress { margin-top: 14px; max-width: 560px; }
.ex-progress span { font-size: .82rem; color: var(--muted); display: block; margin-top: 6px; }
.ex-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 24px; }
.checks { margin: 0; padding: 0; list-style: none; }
.checks li { padding-left: 24px; position: relative; margin: 6px 0; line-height: 1.5; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.prereqs { margin: 0; padding: 0; list-style: none; }
.prereqs li { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.prereqs li i { color: var(--muted); } .prereqs li.done i { color: var(--ok); }
.prereqs a { font-weight: 600; color: var(--ink); text-decoration: none; }
.ex-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; }
.ex-side-inner { position: sticky; top: 80px; }
.side-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 0 0 8px; }
.toc { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.toc li a { display: block; padding: 6px 12px; font-size: .88rem; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; line-height: 1.35; }
.toc li a:hover, .toc li a.on { color: var(--brand); border-left-color: var(--brand); }
.toc li.key a { font-weight: 600; color: var(--ink); }
.ex-main { min-width: 0; max-width: 780px; }
.section { padding: 8px 0 28px; border-bottom: 1px solid var(--border); margin-bottom: 28px; scroll-margin-top: 80px; }
.section:last-of-type { border-bottom: 0; }
.section h2 { font-size: 1.45rem; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.sec-num { font-family: var(--mono); font-size: .78rem; color: var(--brand); background: var(--brand-soft); border: 1px solid var(--border-strong); border-radius: 6px; padding: 2px 8px; }
.lesson { color: #2b2540; }
.lesson p { margin: 0 0 14px; line-height: 1.75; }
.lesson h4 { font-size: 1.12rem; margin: 22px 0 10px; }
.lesson h5 { font-size: 1rem; margin: 18px 0 8px; color: var(--brand-dim); }
.lesson ul, .lesson ol { margin: 0 0 14px; padding-left: 22px; }
.lesson li { margin: 5px 0; line-height: 1.65; }
.lesson pre { position: relative; background: #1b1526; color: #eae6f5; border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; margin: 0 0 16px; font-size: .86rem; line-height: 1.55; }
.lesson pre code { background: none; border: 0; color: inherit; padding: 0; font-size: inherit; }
.lesson pre[data-lang]::before { content: attr(data-lang); position: absolute; top: 6px; right: 10px; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: #9d95b4; }
.lesson a { color: var(--brand); }
.lesson em { font-style: italic; }
.lesson-img { margin: 18px 0 20px; text-align: center; }
.lesson-img img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.lesson-img figcaption { margin-top: 8px; font-size: .82rem; color: var(--faint); font-style: italic; }
.lesson-table { overflow-x: auto; margin: 0 0 16px; }
.lesson-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.lesson-table th, .lesson-table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.lesson-table th { background: var(--bg-soft); font-weight: 600; }
.lesson-hr { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }
.callout { margin: 16px 0; padding: 12px 16px 12px 15px; border-radius: var(--radius-sm); border-left: 4px solid var(--brand); background: var(--brand-soft); line-height: 1.65; font-size: .95rem; }
.callout-label { font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; margin-right: 6px; color: var(--brand-dim); }
.callout-tip { border-left-color: var(--ok); background: var(--ok-soft); } .callout-tip .callout-label { color: #15803d; }
.callout-warning { border-left-color: var(--bad); background: var(--bad-soft); } .callout-warning .callout-label { color: #b91c1c; }
.callout-note { border-left-color: #9a5cf3; background: #f4efff; }
.callout-info { border-left-color: var(--brand); background: var(--brand-soft); }
.keys { scroll-margin-top: 80px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); padding: 20px 22px 8px; margin-bottom: 20px; }
.keys h2 { margin: 0 0 4px; font-size: 1.3rem; display: flex; align-items: center; gap: 8px; }
.keys h2 i { color: var(--brand); }
.key { border-top: 1px solid var(--border); padding: 16px 0; }
.key-prompt { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.key-check { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-size: .8rem; flex-shrink: 0; color: #fff; }
.key.solved .key-check { background: var(--ok); border-color: var(--ok); }
.key-prompt p { margin: 0; flex: 1; font-weight: 500; }
.key-label { display: inline-block; font-family: var(--mono); font-size: .72rem; color: var(--brand); background: var(--brand-soft); border-radius: 5px; padding: 1px 7px; margin-right: 8px; vertical-align: middle; }
.key-points { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.key-form { display: flex; gap: 8px; align-items: center; }
.key-form .input { font-family: var(--mono); }
.key.solved .key-form .input { background: var(--ok-soft); }
.key-feedback { font-size: .88rem; margin: 8px 0 0; min-height: 1.2em; }
.key-feedback.ok { color: var(--ok); } .key-feedback.no { color: var(--bad); }
.key details { margin-top: 8px; }
.key summary { cursor: pointer; color: var(--brand); font-size: .85rem; font-weight: 600; }
.key details.solution summary { color: var(--warn); }
.key details > div, .key details > span { display: block; margin-top: 6px; font-size: .93rem; }
.locked-note { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.locked-note a { color: var(--brand); }
.video { position: relative; padding-top: 56.25%; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.next { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0 8px; padding: 16px 20px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--border-strong); }
.next span { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.next a { font-weight: 700; color: var(--brand); text-decoration: none; font-size: 1.05rem; }
.paywall { text-align: center; padding: 34px 20px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--brand-soft); margin: 10px 0 22px; }
.paywall h3 { margin: 6px 0 8px; }
.paywall p { max-width: 560px; margin: 0 auto 14px; color: var(--muted); }
.box + .box, .keys + .box, .box + .next { margin-top: 16px; }
@media (max-width: 900px) { .ex-grid { grid-template-columns: 1fr; } .ex-side-inner { position: static; } .toc { display: flex; flex-wrap: wrap; gap: 4px; border: 0; } .toc li a { border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; margin: 0; } }

/* ---- Home ---- */
.hero { text-align: center; padding: 52px 0 32px; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: 14px; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero .lead { color: var(--muted); font-size: 1.12rem; max-width: 640px; margin: 0 auto 22px; }
.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin: 8px 0 44px; }
.stats div { padding: 18px; text-align: center; border-right: 1px solid var(--border); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-size: 1.7rem; color: var(--ink); }
.stats span { color: var(--muted); font-size: .85rem; }
.ticker { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 10px 0; margin: 0 0 40px; white-space: nowrap; }
.ticker span { display: inline-block; padding: 0 22px; color: var(--muted); font-size: .9rem; }
.ticker span::before { content: "•"; color: var(--brand); margin-right: 22px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.feature i { font-size: 1.6rem; color: var(--brand); }
.feature h3 { margin: 8px 0 6px; }
.feature p { color: var(--muted); margin: 0; }
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.news a { display: block; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
.news a:hover { border-color: var(--brand); }
.news small { display: block; color: var(--faint); margin-bottom: 4px; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.quote { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.quote p { margin: 0 0 10px; font-style: italic; }
.quote b { font-size: .88rem; }
.pro-band { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--border-strong); margin: 44px 0 10px; }
.pro-band h2 { margin: 0 0 4px; }
.pro-band p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .stats div { border-right: 0; border-bottom: 1px solid var(--border); } }

/* ---- Badges / tracks / profiles ---- */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.badge-card { display: block; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--text); }
.badge-card:hover { border-color: var(--brand); }
.badge-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; margin-bottom: 10px; }
.badge-card h3 { margin: 0 0 4px; }
.badge-card p { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.badge-card.earned { border-color: var(--ok); }
.badge-card .meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.chapter { margin-bottom: 28px; }
.chapter-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.chapter-head .n { font-family: var(--mono); font-size: .78rem; color: var(--brand); }
.chapter-head h3 { margin: 0; }
.chapter p { color: var(--muted); margin: 0 0 10px; }
.chapter .rec { font-size: .82rem; color: var(--faint); }
.cert { max-width: 820px; margin: 20px auto; padding: 40px 36px; border: 2px solid var(--border-strong); border-radius: 16px; background: #fff; text-align: center; }
.cert .ic { font-size: 3rem; color: var(--brand); }
.cert h1 { margin: 6px 0 4px; }
.cert .who { font-size: 1.5rem; font-weight: 700; margin: 18px 0 4px; }
.cert .code { font-family: var(--mono); color: var(--muted); font-size: .85rem; margin-top: 18px; }
.profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.profile-head h1 { margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat b { display: block; font-size: 1.4rem; } .stat span { font-size: .8rem; color: var(--muted); }
.earned-list { display: flex; flex-wrap: wrap; gap: 10px; }
.earned-list a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); font-size: .9rem; }
.earned-list a i { color: var(--brand); }
.rank { font-family: var(--mono); color: var(--muted); }
.rank-1 { color: #d4a017; font-weight: 700; } .rank-2 { color: #8a8a8a; font-weight: 700; } .rank-3 { color: #b87333; font-weight: 700; }

/* ---- Pricing ---- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 20px 0 32px; }
.plan { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--surface); display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow); }
.plan .price { font-size: 2rem; font-weight: 800; margin: 6px 0 2px; }
.plan .price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.plan ul { padding-left: 18px; margin: 12px 0 18px; color: var(--muted); flex: 1; }
.plan .btn { justify-content: center; }
.ribbon { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.compare td:first-child { font-weight: 500; }
.compare .yes { color: var(--ok); } .compare .no { color: var(--faint); }
.faq details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

/* ---- Blog / glossary ---- */
.post-list article { padding: 18px 0; border-bottom: 1px solid var(--border); }
.post-list h3 { margin: 0 0 4px; }
.post-list h3 a { color: var(--ink); text-decoration: none; }
.post-list h3 a:hover { color: var(--brand); }
.post-list .meta { font-size: .82rem; color: var(--faint); margin-bottom: 6px; }
.post-list p { margin: 0; color: var(--muted); }
.post-body { max-width: 760px; }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 20px; }
.az a { padding: 4px 9px; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; color: var(--muted); font-size: .85rem; }
.az a.has { color: var(--brand); }
.glossary dt { font-weight: 700; margin-top: 14px; } .glossary dt a { text-decoration: none; color: var(--ink); }
.glossary dd { margin: 2px 0 0; color: var(--muted); }
.letter { margin-top: 28px; color: var(--brand); }

/* ---- Admin ---- */
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.admin-nav a { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: .88rem; }
.admin-nav a.on, .admin-nav a:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--border-strong); }
.admin-section { margin-top: 24px; }
.row-flex { display: flex; gap: 12px; flex-wrap: wrap; } .row-flex .form-group { flex: 1; min-width: 160px; }
.inline-form { display: inline; }
.toast { position: fixed; right: 18px; bottom: 18px; background: #1b1526; color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); z-index: 90; display: flex; gap: 10px; align-items: center; animation: toast .25s ease-out; }
@keyframes toast { from { transform: translateY(12px); opacity: 0 } to { transform: none; opacity: 1 } }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 32px; padding: 36px 20px 20px; }
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 320px; }
.footer-social { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: .9rem; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.footer-cols h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.footer-cols a { display: block; color: var(--text); text-decoration: none; font-size: .9rem; padding: 3px 0; }
.footer-cols a:hover { color: var(--brand); }
.footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px 22px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--faint); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 760px) { .hide-sm { display: none; } .c-sum { display: none; } .filter-label { width: 100%; } }

/* ---- Compatibility styles for pages carried over from v1 (auth, billing, team, admin) ---- */
.btn-block { width: 100%; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 8px 0 22px; gap: 16px; }
.section-head h2 { margin: 0; }
.section-head .eyebrow, .eyebrow { font-family: var(--mono); color: var(--brand); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.section-sub { color: var(--muted); margin: 6px 0 0; font-size: .96rem; }
.accent { color: var(--brand); }
/* ---- Access badges --------------------------------------- */
.access-badge { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border-strong); white-space: nowrap; }
.access-free { color: var(--faint); }
.access-pro { color: var(--brand); border-color: #d8c7ff; background: var(--brand-soft); }
.access-corporate { color: #d4a017;  border-color: #f2d5a8; background: #fdf3e6; }
/* ---- Auth forms ------------------------------------------ */
.auth-wrap { max-width: 430px; margin: 30px auto; }
.auth-wrap .card { padding: 32px; }
.auth-wrap h1 { font-size: 1.7rem; }
.auth-sub { color: var(--muted); margin: -2px 0 24px; }
.form-hint { font-size: .8rem; color: var(--faint); margin-top: 6px; }
.auth-alt { text-align: center; color: var(--muted); margin-top: 18px; font-size: .9rem; }
.room-stat { display: flex; justify-content: space-between; padding: 7px 0; font-size: .9rem; }
.room-stat span { color: var(--muted); }
.room-stat b { font-family: var(--mono); }
.stat-box .value.accent { color: var(--brand); }
.admin-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.admin-section h3 { margin-top: 0; }
.danger-link { color: var(--bad); font-size: .85rem; }
/* ---- Filter bar ------------------------------------------ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 26px; align-items: center; }
.filter-bar .input { width: auto; }
.plan-features { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan-features li { position: relative; padding: 7px 0 7px 26px; color: var(--text); font-size: .92rem; border-bottom: 1px solid var(--border); }
.plan-features li::before { content: '\2713'; position: absolute; left: 0; top: 7px; color: var(--brand); font-weight: 700; }
.plan-features.tight li { border: 0; padding: 4px 0 4px 24px; font-size: .86rem; }
/* ---- Checkout -------------------------------------------- */
.checkout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; }
.checkout-main h2 { margin: 14px 0 8px; }
.checkout-form h3 { margin: 22px 0 12px; font-size: 1.05rem; }
.checkout-summary { padding: 22px; position: sticky; top: 90px; }
.checkout-summary h3 { margin: 0 0 14px; }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .92rem; }
.summary-row.muted span { color: var(--muted); }
.summary-row b { font-family: var(--mono); }
.checkout-summary hr { border: 0; border-top: 1px solid var(--border); margin: 12px 0; }
.team-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.team-grid .card { padding: 22px; }
.team-grid h3 { margin: 0 0 14px; }
.table.compact th, .table.compact td { padding: 9px 12px; font-size: .88rem; }
.team-invite { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.team-invite h4 { margin: 0 0 10px; font-size: .95rem; }
.invite-form { display: flex; gap: 8px; flex-wrap: wrap; }
.invite-form .input { flex: 1; min-width: 140px; }
.invite-form select.input { flex: 0 0 auto; width: auto; }
.invite-list { list-style: none; padding: 0; margin: 10px 0 0; }
.invite-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.invite-link { display: block; width: 100%; margin-top: 6px; font-family: var(--mono); font-size: .74rem; color: var(--brand); background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; }
.assign-list { list-style: none; padding: 0; margin: 0; }
.assign-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--surface-2); }
.assign-list li.on { border-color: var(--brand); background: var(--brand-soft); }
.plan-line { margin: 0 0 14px; }
.paywall-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.grid-3, .grid-2, .pricing-grid, .checkout, .team-grid { grid-template-columns: 1fr; }
.checkout-summary { position: static; }
/* ---- Checkout: payment methods (Card / PayPal / UPI) ---- */
.pay-methods { display: flex; gap: 10px; margin: 8px 0 18px; flex-wrap: wrap; }
.pay-tab { flex: 1 1 120px; display: flex; align-items: center; gap: 8px; cursor: pointer;
    border: 2px solid var(--border, #e7e1f2); border-radius: 12px; padding: 12px 14px;
    background: #fff; font-weight: 600; transition: border-color .15s, background .15s; }
.pay-tab:hover { border-color: #c9bfe6; }
.pay-tab.is-active { border-color: var(--brand, #7c3aed); background: #faf7ff; }
.pay-tab input { accent-color: var(--brand, #7c3aed); }
.pay-tab-icon { font-size: 18px; }
.pay-panel { margin-bottom: 18px; }
.btn-paypal { background: #ffc439; color: #142c8e; border: none; }
.btn-paypal:hover { background: #f0b72e; }
.upi-box { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start;
    border: 1px solid var(--border, #e7e1f2); border-radius: 14px; padding: 18px; background: #faf9ff; }
.upi-qr { text-align: center; }
.upi-qr #upi-qr { width: 172px; height: 172px; background: #fff; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; padding: 6px; box-shadow: 0 1px 6px rgba(24,16,40,.08); }
.upi-qr #upi-qr img, .upi-qr #upi-qr canvas { border-radius: 6px; }
.upi-qr .fineprint { display: block; margin-top: 8px; }
.upi-info { flex: 1 1 260px; }
.upi-vpa { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.upi-vpa code { background: #ede4ff; color: #5b21b6; padding: 6px 10px; border-radius: 8px; font-size: 15px; }
.upi-amount { color: var(--brand, #7c3aed); }
.upi-open { display: inline-flex; }
.upi-box { flex-direction: column; align-items: center; text-align: center; }
/* ---- Admin dashboard ---- */
.stat-grid { display: grid; gap: 14px; margin-bottom: 26px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat-card { background: #fff; border: 1px solid var(--border, #e7e1f2); border-radius: 14px;
    padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat-card.accent { border-color: var(--brand, #7c3aed); background: #faf7ff; }
.stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #635d73); font-weight: 600; }
.stat-value { font-size: 26px; font-weight: 700; color: #17131f; line-height: 1.15; }
.stat-card.accent .stat-value { color: var(--brand, #7c3aed); }
.stat-sub { font-size: 12px; color: var(--muted, #635d73); }
.admin-grid { display: grid; gap: 18px; grid-template-columns: 2fr 1fr; margin-bottom: 26px; }
.admin-grid { grid-template-columns: 1fr; }
.sys-list { list-style: none; margin: 0; padding: 0; }
.sys-list li { display: flex; justify-content: space-between; gap: 12px;
    padding: 8px 0; border-bottom: 1px solid var(--border, #e7e1f2); font-size: 13px; }
.sys-list li:last-child { border-bottom: 0; }
.sys-list span { color: var(--muted, #635d73); }
.sys-list b { color: #17131f; }
.badge-warn { background: #fff7ed; color: #b45309; border: 1px solid #fed7aa;
    border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 600; }
/* ---- SSO + 2FA ---- */
.sso-divider { display: flex; align-items: center; text-align: center; color: var(--muted, #635d73); font-size: 12px; margin: 16px 0; }
.sso-divider::before, .sso-divider::after { content: ""; flex: 1; height: 1px; background: var(--border, #e7e1f2); }
.sso-divider span { padding: 0 12px; }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: #fff; color: #3c4043; border: 1px solid #dadce0; font-weight: 600; }
.btn-google:hover { background: #f7f8f8; border-color: #d2d5d9; }
.twofa-enrol { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; margin-top: 12px; }
.totp-key { display: inline-block; background: #ede4ff; color: #5b21b6; padding: 8px 12px;
    border-radius: 8px; font-size: 15px; letter-spacing: 2px; word-break: break-all; }
.backup-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.backup-codes code { background: #fff; border: 1px solid var(--border, #e7e1f2); border-radius: 8px;
    padding: 8px 10px; text-align: center; font-size: 14px; letter-spacing: 1px; }
.avatar-edit { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
.section-head form,
    .section-head > div { width: 100%; }
.twofa-enrol { flex-direction: column; }
.avatar-edit { align-items: flex-start; }
.admin-grid .stat-grid { grid-template-columns: 1fr; }
.stat-grid { grid-template-columns: 1fr; }
.pay-methods { flex-direction: column; }
.pay-tab { flex-basis: auto; }
.backup-codes { grid-template-columns: 1fr 1fr; }
.avatar-edit { flex-direction: column; }
.upi-qr #upi-qr { width: 150px; height: 150px; }
.backup-codes { grid-template-columns: 1fr; }
/* ---- Orders, coupons, affiliates ---- */
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-right: auto; }
.filter-tab { padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
    color: var(--muted, #635d73); border: 1px solid var(--border, #e7e1f2); background: #fff; }
.filter-tab:hover { border-color: #c9bfe6; text-decoration: none; }
.filter-tab.is-active { background: var(--brand, #7c3aed); color: #fff; border-color: var(--brand, #7c3aed); }
.filter-bar .input { max-width: 220px; }
tr.row-pending { background: #fffbeb; }
tr.row-pending td { border-color: #fde68a; }
.badge.status-paid, .badge.status-approved { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge.status-pending { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge.status-rejected, .badge.status-cancelled { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.badge.status-refunded { background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; }
/* Coupon field at checkout */
.coupon-box { border: 1px dashed var(--border, #e7e1f2); border-radius: 12px; padding: 14px 16px; margin: 18px 0; background: #fcfbff; }
.coupon-box label { font-weight: 600; display: block; margin-bottom: 8px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row .input { flex: 1; text-transform: uppercase; }
.coupon-ok { color: #047857; }
.coupon-bad { color: #b91c1c; }
.summary-row.discount { color: #047857; }
.summary-row.total { font-size: 1.05rem; padding-top: 8px; border-top: 1px solid var(--border, #e7e1f2); }
.filter-bar .input { max-width: 100%; flex: 1 1 100%; }
.coupon-row { flex-direction: column; }
.danger-zone { border-color: rgba(248,113,113,.35); background: #fffafa; }
.danger-zone h3 { color: #b91c1c; }

@media (max-width: 480px) { .hide-xs { display: none; } }
.table .c-name { min-width: 170px; }

/* ---- Dashboard ---- */
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.dash-overview { display: flex; align-items: center; gap: 18px; }
.dash-next h3 a:hover { color: var(--brand) !important; }
.ring text { font-family: var(--font); }
.chapter-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; }
.chapter-chip { display: block; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); background: var(--surface); }
.chapter-chip:hover { border-color: var(--brand); }
.chapter-chip .n { display: block; font-family: var(--mono); font-size: .68rem; color: var(--brand); }
.chapter-chip b { display: block; font-size: .9rem; margin: 2px 0 6px; line-height: 1.3; }
.chapter-chip small { color: var(--muted); font-size: .75rem; }
.chapter-chip.done { border-color: #b7e6c8; background: var(--ok-soft); }
.chapter-chip.done .progress i { background: var(--ok); }
.chapter-chip.active { border-color: var(--border-strong); }
.dash-badge .meta a { color: var(--brand); text-decoration: none; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 14px 18px; }
.timeline .dot { position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
.timeline a { color: var(--ink); font-weight: 600; text-decoration: none; }
.timeline a:hover { color: var(--brand); }
@media (max-width: 860px) { .dash-top { grid-template-columns: 1fr; } }

/* ---- Tracks (pathways) ---- */
.track-list { display: grid; gap: 14px; margin-bottom: 8px; }
.track-card { display: flex; gap: 18px; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.track-card:hover { border-color: var(--border-strong); }
.track-ic { width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.7rem; }
.track-body { flex: 1; min-width: 0; }
.track-body h2 a { color: var(--ink); text-decoration: none; }
.track-body h2 a:hover { color: var(--brand); }
.track-hero .track-ic { width: 64px; height: 64px; font-size: 2rem; }
.chapter .table .is-done .c-name a { color: var(--muted); }
@media (max-width: 640px) { .track-card { flex-direction: column; } }

/* ---- Free labs hub ---- */
.free-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.free-jump a { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .88rem; }
.free-jump a:hover { color: var(--brand); border-color: var(--border-strong); background: var(--brand-soft); }
.delivery-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; color: var(--muted); }
.offline-panel { border: 1px solid var(--border-strong); border-radius: var(--radius); background: #fbfaff; padding: 18px 20px; margin: 0 0 22px; }
.offline-panel h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.offline-panel .btn { margin-top: 6px; }
