/* Kaching Weekly Income — shared styles.
   Look and feel mirrors the source app's dark theme (prealerts/
   src/main/resources/static/css/app.css — palette, Syne + JetBrains Mono,
   grid backdrop, glowing topbar, pill buttons, gradient cards) so the
   public site feels consistent with the tool it's mirroring, but this
   file is fully standalone — no dependency on that app's CSS/JS. Fonts
   are self-hosted in ./fonts/ rather than loaded from Google Fonts, so
   no visitor IP reaches Google before consent (see consent.js). */

@font-face {
    font-family: 'Syne'; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url(./fonts/syne-latin.woff2) format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono'; font-style: normal; font-weight: 300 700; font-display: swap;
    src: url(./fonts/jetbrains-mono-latin.woff2) format('woff2');
}

:root {
    --bg:         #07090f;
    --bg2:        #0d1018;
    --bg3:        #131720;
    --bg4:        #1a2235;
    --border:     #22344c;
    --border2:    #2f4562;
    --accent:     #00c9ff;
    --accent-dim: rgba(0,201,255,.12);
    --green:      #34d399;
    --amber:      #fbbf24;
    --red:        #f87171;
    --purple:     #a78bfa;
    --text:       #c9d6ea;
    --muted:      #7d8ba1;
    --muted2:     #94a3b8;
    --white:      #e8eef8;
    --brand:      var(--accent);
    --surface:    var(--bg3);
    --r:          6px;
    --r2:         10px;
    --font-ui:    'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:  'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
}

::selection { background: rgba(0,201,255,.28); color: var(--white); }
/* Thin dark scrollbars instead of the bright OS ones */
* { scrollbar-width: thin; scrollbar-color: #2f4562 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #2a3d57; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #3a5475; }
*::-webkit-scrollbar-track { background: transparent; }

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    /* Static site is view-only by design — no horizontal page scroll;
       wide content (tables) scrolls in its own container instead. */
    overflow-x: hidden;
}
/* body stays transparent so the grid below (z-index:-1) shows over html's background */
body { background: transparent; }
/* Faint cyan grid behind everything, same as the app */
body::before {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
    background-image:
        linear-gradient(rgba(0,201,255,.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,201,255,.015) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Syne's bold weights read as a chunky display face at body sizes — use
   the system sans for inline emphasis (headings keep Syne). */
strong, b {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 600; letter-spacing: 0;
}

a { color: var(--brand); }

/* ── Site header (the app's sticky topbar + sidebar brand) ───────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: linear-gradient(180deg, rgba(13,16,24,.97), rgba(13,16,24,.88));
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(0,201,255,.08), 0 6px 18px rgba(0,0,0,.25);
    padding: 12px 28px; display: flex; align-items: center;
    justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.site-brand { display: flex; align-items: center; gap: 11px; }
.site-brand .mark {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, #00c9ff 0%, #6366f1 60%, #a78bfa 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    box-shadow: 0 4px 16px rgba(0,201,255,.30), inset 0 1px 0 rgba(255,255,255,.35);
}
.site-brand .name {
    font-weight: 800; font-size: 14px; letter-spacing: 1px;
    background: linear-gradient(90deg, #e8eef8, #7dd3fc);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.site-brand .tag {
    font-family: var(--font-mono); font-size: 9px; color: var(--muted2);
    letter-spacing: 2px; text-transform: uppercase;
}
.site-nav { display: flex; gap: 8px; flex-wrap: wrap; }
/* Same pill as the app's .tb-btn */
.site-nav a {
    display: inline-flex; align-items: center; gap: 5px;
    text-decoration: none; color: var(--text);
    font-family: var(--font-mono); font-size: 11px; font-weight: 700; line-height: 1.2;
    padding: 5px 13px; border-radius: 20px;
    background: var(--bg4); border: 1px solid var(--border2);
    transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.site-nav a:hover {
    color: var(--white); border-color: var(--accent); background: var(--accent-dim);
    transform: translateY(-1px);
}
.site-nav a.active { background: rgba(0,201,255,.16); color: var(--accent); border-color: rgba(0,201,255,.55); }
.site-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Page shell ──────────────────────────────────────────────────── */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 28px; }

.page-desc {
    background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,0) 60%), var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px; padding: 12px 16px; margin-bottom: 16px;
    font-family: var(--font-mono); font-size: 11px;
    color: var(--muted); line-height: 1.6;
}
.page-desc strong { color: var(--white); }

.site-footer {
    text-align: center; padding: 24px 16px 40px;
    font-family: var(--font-mono); font-size: 10px; color: var(--muted);
    line-height: 1.8;
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(0,201,255,.25), transparent) 1;
}
.site-footer a { color: var(--muted2); }
.site-footer a:hover { color: var(--accent); }

/* ── Hero (dashboard intro) — the app's .rd-card / .gl-hero look ──── */
.hero {
    position: relative; overflow: hidden;
    display: flex; gap: 18px; align-items: flex-start;
    padding: 24px 26px 22px; margin-bottom: 22px;
    border: 1px solid rgba(0,201,255,.25); border-radius: 14px;
    background:
        linear-gradient(90deg, #00c9ff, #6366f1 45%, #a78bfa 75%, transparent) top / 100% 3px no-repeat,
        radial-gradient(70% 140% at 0% 0%, rgba(0,201,255,.14), transparent 60%),
        radial-gradient(60% 130% at 100% 0%, rgba(167,139,250,.12), transparent 60%),
        radial-gradient(50% 90% at 100% 100%, rgba(52,211,153,.06), transparent 70%),
        var(--bg2);
    box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 14px 36px rgba(0,0,0,.32);
}
/* Faint large $ watermark on the right */
.hero::after {
    content: '$'; position: absolute; right: 18px; top: -28px; pointer-events: none;
    font-family: var(--font-ui); font-weight: 800; font-size: 190px; line-height: 1;
    color: rgba(0,201,255,.045);
}
.hero-icon {
    flex: none; width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center; font-size: 26px;
    background: linear-gradient(135deg, rgba(0,201,255,.25), rgba(99,102,241,.22) 60%, rgba(167,139,250,.25));
    box-shadow: inset 0 0 0 1px rgba(0,201,255,.45), 0 0 24px rgba(0,201,255,.22);
}
.hero-body { position: relative; z-index: 1; min-width: 0; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; color: #7dd3fc;
    padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
    background: rgba(0,201,255,.10); border: 1px solid rgba(0,201,255,.32);
}
.hero-eyebrow::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 2.5s infinite;
}
.hero-title {
    margin: 0 0 8px; font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.2px;
    background: linear-gradient(90deg, #e8eef8 0%, #7dd3fc 55%, #c4b5fd 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 0 0 14px; max-width: 720px; font-size: 14px; line-height: 1.65; color: var(--muted2); }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 11px; font-weight: 600; line-height: 1.4;
    padding: 5px 12px; border-radius: 20px; text-decoration: none;
    transition: background .15s, border-color .15s, transform .15s;
}
.hero-chip.info { color: var(--accent); background: rgba(0,201,255,.12); border: 1px solid rgba(0,201,255,.45); }
.hero-chip.info:hover { background: rgba(0,201,255,.22); color: var(--white); transform: translateY(-1px); }
.hero-chip.warn { color: var(--amber); background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3); }

/* ── Tabs — the app's /intelligence tab bar: one colour per tab ───── */
.tabs {
    display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.tab-btn { --tab-rgb: 0,201,255; --tab-c: #00c9ff; }
.tab-btn[data-tab="plans"]   { --tab-rgb: 16,185,129; --tab-c: #10b981; }  /* emerald */
.tab-btn[data-tab="scanner"] { --tab-rgb: 6,182,212;  --tab-c: #06b6d4; }  /* cyan    */
.tab-btn[data-tab="tickers"] { --tab-rgb: 245,158,11; --tab-c: #f59e0b; }  /* amber   */
.tab-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 22px; margin-bottom: -1px;
    font-family: var(--font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--tab-c); cursor: pointer;
    background: transparent; border: none; border-bottom: 2px solid transparent;
    border-radius: 8px 8px 0 0;
    transition: color .15s, border-color .15s, background .15s, filter .15s;
}
.tab-btn:hover { filter: brightness(1.15); background: rgba(var(--tab-rgb),.06); }
.tab-btn.active {
    border-bottom-color: var(--tab-c);
    background: linear-gradient(180deg, transparent, rgba(var(--tab-rgb),.14));
    text-shadow: 0 0 14px rgba(var(--tab-rgb),.45);
    box-shadow: 0 8px 14px -10px rgba(var(--tab-rgb),.8);
}
.tab-btn:focus-visible { outline: 2px solid var(--tab-c); outline-offset: -2px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn .3s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-dot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }

/* ── Per-tab toolbar: "Data as of" + ticker filter ───────────────── */
.pane-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.meta-line {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 11px; color: var(--muted2);
    padding: 6px 12px; border-radius: 20px;
    background: var(--bg2); border: 1px solid var(--border2);
}
.meta-line::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%; flex: none;
    background: var(--green); box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 2s infinite;
}
@media (prefers-reduced-motion: reduce) {
    .meta-line::before, .hero-eyebrow::before { animation: none; }
}

/* The app's .form-input, with a search icon */
.filter-box { position: relative; display: block; width: 100%; max-width: 300px; }
.filter-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    font-size: 12px; opacity: .6; pointer-events: none;
}
.ticker-filter {
    display: block; width: 100%;
    padding: 9px 14px 9px 34px;
    background: var(--bg3); border: 1px solid var(--border2); border-radius: 20px;
    color: var(--white); font-family: var(--font-mono); font-size: 12px;
    transition: border-color .2s, box-shadow .2s;
}
.ticker-filter::placeholder { color: var(--muted); }
.ticker-filter:hover { border-color: #3a5475; }
.ticker-filter:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,201,255,.14); }

/* ── Kaching Scanner table (ke-*) ────────────────────────────────── */
/* Tables use the app's Early Radar card look (prealerts sectors.html
   .rd-card): radial glows in the corners, a gradient bar across the top,
   header + hover tinted in the card colour. --rd-rgb / --rd-c / --rd-c2
   set the colour; purple→cyan by default. */
/* The top bar is a background layer, not a ::before — the scanner wrap
   scrolls sideways and a positioned bar would scroll away with it. */
.ke-table-wrap, .glossary-table, .kc-card {
    --rd-rgb: 167,139,250; --rd-c: #a78bfa; --rd-c2: rgba(34,211,238,.6);
    background:
        linear-gradient(90deg, var(--rd-c), var(--rd-c2) 55%, transparent) top / 100% 3px no-repeat,
        radial-gradient(90% 140% at 0% 0%, rgba(var(--rd-rgb),.12), transparent 55%),
        radial-gradient(60% 120% at 100% 0%, rgba(34,211,238,.06), transparent 60%),
        var(--bg2);
    border: 1px solid rgba(var(--rd-rgb),.28);
    box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 28px rgba(0,0,0,.28);
}
/* Options tab ticker cards (app.js renderTickerCard / renderPlanCard) —
   colourways mirror the app's .rd-news (cyan→green) for BUY and a red
   variant for SHORT. */
.kc-card.buy   { --rd-rgb: 34,211,238;  --rd-c: #22d3ee; --rd-c2: rgba(52,211,153,.55); }
.kc-card.short { --rd-rgb: 248,113,113; --rd-c: #f87171; --rd-c2: rgba(251,146,60,.55); }
.kc-card {
    border-radius: var(--r2); padding: 20px 20px 18px; margin-bottom: 16px;
    transition: border-color .15s;
}
.kc-card:hover { border-color: rgba(var(--rd-rgb),.5); }
.kc-card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; margin-bottom: 14px; padding-bottom: 12px;
    border-bottom: 1px solid rgba(var(--rd-rgb),.18);
}
.kc-card-head > div:first-child > span:first-child { text-shadow: 0 0 16px rgba(var(--rd-rgb),.35); }
/* border-left colour is set inline from the plan's score */
.kc-plan {
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(var(--rd-rgb),.16); border-left: 3px solid;
    border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px;
    transition: border-color .15s, transform .15s;
}
.kc-plan:hover { border-top-color: rgba(var(--rd-rgb),.45); border-right-color: rgba(var(--rd-rgb),.45);
    border-bottom-color: rgba(var(--rd-rgb),.45); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .kc-plan { transition: none; } .kc-plan:hover { transform: none; } }

.ke-table-wrap {
    border-radius: var(--r2); overflow: hidden; margin-bottom: 14px;
    max-width: 100%; box-sizing: border-box;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.ke-table { width: auto; min-width: 100%; border-collapse: collapse;
    font-family: var(--font-mono); font-size: 11px; }
.ke-table th {
    padding: 11px 8px 8px; text-align: left;
    background: rgba(var(--rd-rgb),.08); color: var(--rd-c);
    border-bottom: 1px solid rgba(var(--rd-rgb),.22);
    font-weight: 600; font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.06em;
    white-space: nowrap;
}
.ke-table td {
    padding: 7px 8px; border-bottom: 1px solid rgba(var(--rd-rgb),.14);
    color: var(--white); white-space: nowrap;
}
.ke-table tr:last-child td { border-bottom: 0; }
.ke-table tbody tr td { transition: background .15s; }
.ke-table tbody tr:hover td { background: rgba(var(--rd-rgb),.07); }
/* Green / red edge on the ticker cell for buy-side vs. danger signals */
.ke-table td:first-child { border-left: 3px solid transparent; }
.ke-table tr.buy td:first-child   { border-left-color: var(--green); }
.ke-table tr.short td:first-child { border-left-color: var(--red); }
@media (prefers-reduced-motion: reduce) { .ke-table tbody tr td { transition: none; } }
.ke-table .ticker { font-weight: 700; }
.ke-table .dim { color: var(--muted); }

/* Pin the "Plans" action column to the right edge of the scroll area —
   with 13 columns the table is wider than most viewports, and without
   this the last column just scrolls out of view with no visible cue. */
.ke-table th:last-child, .ke-table td:last-child {
    position: sticky; right: 0;
    box-shadow: -1px 0 0 var(--border);
}
/* Sticky cells need an opaque fill — same tints laid over solid bg2 */
.ke-table th:last-child {
    background: linear-gradient(rgba(var(--rd-rgb),.08), rgba(var(--rd-rgb),.08)), var(--bg2);
}
.ke-table td:last-child { background: var(--bg2); }
.ke-table tbody tr:hover td:last-child {
    background: linear-gradient(rgba(var(--rd-rgb),.07), rgba(var(--rd-rgb),.07)), var(--bg2);
}

.ke-plans-link {
    font-size: 10px; font-weight: 600; text-decoration: none;
    white-space: nowrap;
}
.ke-plans-link:hover { text-decoration: underline; }
.ke-score { display: inline-block; padding: 2px 8px; border-radius: 10px; font-weight: 700; }
.ke-score.hi  { background: rgba(34,197,94,.15);  color: #22c55e; }
.ke-score.mid { background: rgba(234,179,8,.15);  color: #facc15; }
.ke-score.lo  { background: rgba(120,120,120,.18); color: #999; }

.ke-signal {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    font-weight: 700; font-size: 10px; letter-spacing: 0.04em;
}
.ke-signal.kaching-put   { background: rgba(34,197,94,.18);  color: #22c55e; }
.ke-signal.watch         { background: rgba(234,179,8,.18);  color: #facc15; }
.ke-signal.too-extended  { background: rgba(120,120,120,.20); color: #999; }
.ke-signal.too-extended-warn { background: rgba(249,115,22,.18); color: #fb923c; }
.ke-signal.falling-knife { background: rgba(239,68,68,.15);  color: #f87171; }
.ke-signal.wait          { background: rgba(120,120,120,.12); color: #777; }

.ke-earnings-warn { color: #fb923c; font-weight: 700; }
.ke-earnings-banner {
    background: rgba(249,115,22,.10); border: 1px solid rgba(249,115,22,.35);
    border-radius: 8px; padding: 10px 16px; margin-bottom: 14px;
    font-family: var(--font-mono); font-size: 12px; color: #fb923c;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ke-earnings-banner .pill {
    display: inline-block; background: rgba(249,115,22,.18);
    border-radius: 6px; padding: 2px 8px; font-weight: 700;
}

.ke-check { color: #22c55e; }
.ke-cross { color: var(--muted); }
.ke-help { cursor: help; }
.ke-empty {
    padding: 30px; text-align: center; color: var(--muted);
    font-family: var(--font-mono); font-size: 12px;
}

/* ── Universe badges (uni-*) ─────────────────────────────────────── */
.universe-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px; margin-bottom: 20px;
}
.uni-badge {
    background: var(--bg2); border: 1px solid var(--border);
    border-left: 3px solid var(--border); border-radius: 6px;
    padding: 12px 14px; color: var(--text); display: block;
}
.uni-badge.bull    { border-left-color: #22c55e; }
.uni-badge.bear    { border-left-color: #ef4444; }
.uni-badge.neutral { border-left-color: rgba(148,163,184,.4); }
.uni-badge.no-data { border-left-color: rgba(100,116,139,.3); opacity: 0.6; }
.uni-row1 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.uni-spacer { flex: 1; }
.uni-ticker { font-family: var(--font-mono); font-weight: 800; font-size: 17px; }
.uni-strat-score {
    font-family: var(--font-mono); font-size: 13px; font-weight: 800;
    padding: 2px 8px; border-radius: 4px;
    background: rgba(148,163,184,.12); color: var(--muted);
}
.uni-strat-score.s-high { background: rgba(34,197,94,.18); color: #22c55e; }
.uni-strat-score.s-mid  { background: rgba(234,179,8,.18); color: #facc15; }
.uni-strat-score.s-low  { background: rgba(239,68,68,.12); color: #f87171; }
.uni-suggestion {
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    padding: 3px 9px; border-radius: 12px; letter-spacing: 0.05em;
    white-space: nowrap; cursor: help;
}
.uni-suggestion.diagonal { background: rgba(34,197,94,.18); color: #22c55e; }
.uni-suggestion.marginal { background: rgba(234,179,8,.18); color: #facc15; }
.uni-suggestion.call     { background: rgba(96,165,250,.18); color: #60a5fa; }
.uni-suggestion.put      { background: rgba(239,68,68,.18); color: #f87171; }
.uni-suggestion.wait     { background: rgba(148,163,184,.15); color: var(--muted); }
.uni-suggestion.noscan   { background: rgba(148,163,184,.10); color: var(--muted); font-style: italic; }
.uni-options-btn {
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    padding: 3px 9px; border-radius: 12px; letter-spacing: 0.03em;
    white-space: nowrap; cursor: pointer; margin-left: 6px;
    background: rgba(96,165,250,.12); color: var(--brand);
    border: 1px solid rgba(96,165,250,.3);
}
.uni-options-btn:hover { background: rgba(96,165,250,.22); }
.uni-move {
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    padding: 1px 6px; border-radius: 3px; white-space: nowrap;
}
.uni-move.up   { background: rgba(34,197,94,.15);  color: #22c55e; }
.uni-move.down { background: rgba(239,68,68,.15);  color: #f87171; }
.uni-move.flat { background: rgba(148,163,184,.12); color: var(--muted); }
.uni-row2 {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.uni-bias { font-weight: 600; letter-spacing: 0.04em; }
.uni-bias.BULLISH { color: #22c55e; }
.uni-bias.BEARISH { color: #ef4444; }
.uni-bias.NEUTRAL { color: var(--muted); }
.uni-score {
    font-family: var(--font-mono); font-size: 10px; padding: 1px 6px;
    border-radius: 3px; background: rgba(148,163,184,.12); color: var(--muted);
}
.uni-score.high { background: rgba(34,197,94,.15); color: #22c55e; }
.uni-score.mid  { background: rgba(234,179,8,.15); color: #facc15; }
.uni-tag {
    font-size: 9px; padding: 1px 5px; border-radius: 3px;
    background: rgba(59,130,246,.12); color: #60a5fa;
    border: 1px solid rgba(59,130,246,.25);
}
.uni-tag.fvg   { background: rgba(168,85,247,.12); color: #c084fc; border-color: rgba(168,85,247,.25); }
.uni-tag.bos   { background: rgba(34,197,94,.12);  color: #22c55e; border-color: rgba(34,197,94,.25); }
.uni-tag.choch { background: rgba(245,158,11,.12); color: #fbbf24; border-color: rgba(245,158,11,.25); }
.uni-tag.fire  { background: rgba(255,107,0,.12);  color: #ff6b00; border-color: rgba(255,107,0,.25); }
.uni-no-screener { font-style: italic; color: var(--muted); font-size: 10px; }

/* ── Help page ───────────────────────────────────────────────────── */
.help-intro { margin-bottom: 16px; }
.help-intro-title { font-weight: 800; font-size: 20px; color: var(--white); margin-bottom: 6px;
    text-shadow: 0 0 18px rgba(0,201,255,.18); }
.help-intro p { color: var(--muted2); font-size: 13px; line-height: 1.6; margin: 0; }

.help-jumpnav {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.help-jumpnav a {
    text-decoration: none; color: var(--text);
    font-family: var(--font-mono); font-size: 10px; font-weight: 600;
    padding: 5px 12px; border-radius: 20px; border: 1px solid var(--border2);
    background: var(--bg3); transition: all .18s;
}
.help-jumpnav a:hover { color: var(--white); background: var(--accent-dim); border-color: var(--accent); }

/* The app's .card — soft top sheen + drop shadow */
.help-card {
    background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,0) 60%), var(--bg2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--border); border-radius: var(--r2);
    box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.22);
    padding: 20px 24px; margin-bottom: 20px;
    /* clears the sticky header when jumping to an anchor */
    scroll-margin-top: 80px;
    transition: border-color .2s ease;
}
.help-card:hover { border-top-color: var(--border2); border-right-color: var(--border2); border-bottom-color: var(--border2); }
.help-card.accent-blue  { border-left-color: var(--brand); }
.help-card.accent-amber { border-left-color: #facc15; }
.help-card.accent-green { border-left-color: #22c55e; }
.help-card.accent-brand { border-left-color: #a78bfa; }

.help-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.help-card-head h2 { color: var(--white); font-size: 17px; font-weight: 700; margin: 0; letter-spacing: .01em; }
.help-icon { font-size: 18px; line-height: 1; flex: none; }

.help-card p, .help-card li { line-height: 1.7; color: var(--text); font-size: 14px; }
.help-card p { margin: 0 0 12px; }
.help-card p:last-child { margin-bottom: 0; }

.help-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.help-list:last-child { margin-bottom: 0; }
.help-list li {
    position: relative; padding-left: 20px;
}
.help-list li::before {
    content: '›'; position: absolute; left: 0; top: 0;
    color: var(--brand); font-weight: 700;
}

.glossary-table {
    width: 100%; border-collapse: collapse; font-size: 13px;
    /* background + border come from the shared .rd-card block above */
    border-radius: 8px; overflow: hidden;
}
.glossary-table th, .glossary-table td {
    text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(var(--rd-rgb),.14);
    vertical-align: top;
}
.glossary-table th {
    padding-top: 13px;
    background: rgba(var(--rd-rgb),.08); color: var(--rd-c);
    font-family: var(--font-mono); font-size: 9px;
    text-transform: uppercase; letter-spacing: 2px;
    border-bottom-color: rgba(var(--rd-rgb),.22);
}
.glossary-table tr:last-child td { border-bottom: none; }
.glossary-table tbody tr td { transition: background .15s; }
.glossary-table tbody tr:hover td { background: rgba(var(--rd-rgb),.07); }
.glossary-table td:first-child { font-family: var(--font-mono); font-weight: 700; color: var(--white); white-space: nowrap; }
.disclaimer-box {
    display: flex; align-items: flex-start; gap: 10px; margin-top: 20px;
    background: rgba(251,191,36,.06); border: 1px solid rgba(251,191,36,.25);
    border-radius: 8px; padding: 14px 16px; font-size: 12px; color: var(--muted2); line-height: 1.7;
}
/* display:flex above otherwise beats the browser's default [hidden]{display:none}
   rule (author CSS always wins over UA defaults), so the hidden attribute set
   by app.js would toggle in the DOM but never actually hide anything visually. */
.disclaimer-box[hidden] { display: none; }

/* ── Cookie consent banner (consent.js) ─────────────────────────────── */
#cookie-consent-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center; gap: 16px;
    flex-wrap: wrap; padding: 14px 20px;
    background: linear-gradient(0deg, rgba(13,16,24,.98), rgba(13,16,24,.92));
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -1px 0 rgba(0,201,255,.08), 0 -6px 18px rgba(0,0,0,.25);
    font-family: var(--font-mono); font-size: 12px; color: var(--text);
}
#cookie-consent-banner .cc-actions { display: flex; gap: 8px; flex: none; }
#cookie-consent-banner button {
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    padding: 5px 14px; border-radius: 20px; cursor: pointer;
    border: 1px solid var(--border2); background: var(--bg4); color: var(--text);
    transition: background .15s, border-color .15s, color .15s;
}
#cookie-consent-banner #cc-accept {
    background: rgba(0,201,255,.16); color: var(--accent); border-color: rgba(0,201,255,.55);
}
#cookie-consent-banner #cc-accept:hover { background: rgba(0,201,255,.26); color: var(--white); }
#cookie-consent-banner #cc-decline:hover { border-color: var(--accent); color: var(--white); }

@media (max-width: 640px) {
    .page-wrap { padding: 14px; }
    .site-header { padding: 12px 14px; position: static; }
    .help-card { scroll-margin-top: 16px; }
    .hero { flex-direction: column; gap: 12px; padding: 20px 16px 18px; }
    .hero::after { font-size: 130px; top: -16px; }
    .hero-icon { width: 44px; height: 44px; font-size: 22px; }
    .hero-title { font-size: 21px; }
    .tab-btn { padding: 0 12px; height: 40px; font-size: 10px; gap: 5px; letter-spacing: .5px; }
    .filter-box { max-width: none; }
    .uni-ticker { font-size: 15px; }
    #cookie-consent-banner { justify-content: flex-start; text-align: left; padding-bottom: 16px; }
}
