/* NexScan design system */
:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --surface-3: #eef0f8;
  --ink: #111629;
  --ink-2: #2b3250;
  --muted: #5f6787;
  --faint: #8c93ad;
  --line: #e3e6f0;
  --line-2: #d3d8e8;
  --brand: #5b3df5;
  --brand-ink: #4a2fe0;
  --brand-soft: #efebff;
  --accent: #2f7cf6;
  --up: #08875a;
  --up-soft: #e3f6ee;
  --down: #d12f48;
  --down-soft: #fdebee;
  --warn: #a15c00;
  --warn-soft: #fff4e0;
  --shadow: 0 1px 2px rgba(17,22,41,.05), 0 4px 16px rgba(17,22,41,.05);
  --shadow-lg: 0 10px 40px rgba(17,22,41,.14);
  --r: 12px;
  --r-sm: 8px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0f1a; --surface: #141828; --surface-2: #181d30; --surface-3: #20263c;
    --ink: #eef0f8; --ink-2: #cfd4e6; --muted: #9aa2bf; --faint: #6f7796; --line: #262c44; --line-2: #333a56;
    --brand: #8b74ff; --brand-ink: #a493ff; --brand-soft: #241d4a; --accent: #5b9bff;
    --up: #2fc98a; --up-soft: #0f2c22; --down: #ff6178; --down-soft: #351820; --warn: #ffb547; --warn-soft: #33270f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25); --shadow-lg: 0 10px 40px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0f1a; --surface: #141828; --surface-2: #181d30; --surface-3: #20263c;
  --ink: #eef0f8; --ink-2: #cfd4e6; --muted: #9aa2bf; --faint: #6f7796; --line: #262c44; --line-2: #333a56;
  --brand: #8b74ff; --brand-ink: #a493ff; --brand-soft: #241d4a; --accent: #5b9bff;
  --up: #2fc98a; --up-soft: #0f2c22; --down: #ff6178; --down-soft: #351820; --warn: #ffb547; --warn-soft: #33270f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25); --shadow-lg: 0 10px 40px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14.5px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 12px; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-3); padding: 1px 5px; border-radius: 4px; }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.num, td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 22px 20px 40px; }
.wrap-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 22px 20px 40px; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1280px; margin: 0 auto; height: 60px; padding: 0 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #7b5cff, #3f7bff); box-shadow: 0 3px 10px rgba(91,61,245,.35); }
.mainnav { display: flex; gap: 2px; }
.mainnav a { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.mainnav a:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.mainnav a.on { color: var(--brand-ink); background: var(--brand-soft); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.iconbtn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.iconbtn:hover { color: var(--ink); background: var(--surface-3); }
.navtoggle { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; font-weight: 700; color: #fff; background: linear-gradient(135deg, #7b5cff, #3f7bff); }
.usermenu { position: relative; }
.menu { position: absolute; right: 0; top: 44px; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; }
.menu a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 7px; color: var(--ink-2); font-weight: 500; }
.menu a:hover { background: var(--surface-3); text-decoration: none; }
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; }
.menu-head small { color: var(--muted); }

.symsearch { position: relative; display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; height: 36px; width: 240px; color: var(--faint); }
.symsearch:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.symsearch input { border: 0; background: none; outline: none; width: 100%; font: inherit; color: var(--ink); }
.symsearch-list { position: absolute; left: 0; right: 0; top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 70; max-height: 360px; overflow-y: auto; }
.symsearch-list a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; color: var(--ink); border-bottom: 1px solid var(--line); }
.symsearch-list a:last-child { border-bottom: 0; }
.symsearch-list a:hover, .symsearch-list a.on { background: var(--surface-3); text-decoration: none; }
.symsearch-list small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.demobar { background: var(--warn-soft); color: var(--warn); font-size: 13px; text-align: center; padding: 7px 16px; border-bottom: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); }
.demobar a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid transparent; background: var(--brand); color: #fff; font: 600 14px var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--brand-ink); text-decoration: none; }
.btn:focus-visible, .iconbtn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 11px; }
.btn.ghost { background: var(--surface); color: var(--ink-2); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface-3); }
.btn.soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn.soft:hover { background: color-mix(in srgb, var(--brand-soft) 70%, var(--brand) 12%); }
.btn.buy { background: var(--up); }
.btn.buy:hover { background: color-mix(in srgb, var(--up) 85%, #000); }
.btn.sell { background: var(--down); }
.btn.sell:hover { background: color-mix(in srgb, var(--down) 85%, #000); }
.btn.danger { background: var(--surface); color: var(--down); border-color: color-mix(in srgb, var(--down) 40%, transparent); }
.btn.danger:hover { background: var(--down-soft); }
.btn.block { width: 100%; }
.btn .spin { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

label.lbl, .lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0 0 5px; }
.inp, select.inp, textarea.inp { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; }
textarea.inp { height: auto; padding: 10px 12px; resize: vertical; min-height: 80px; }
.inp:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px var(--brand-soft); }
.field { margin-bottom: 14px; }
.field .hint { font-size: 12px; color: var(--faint); margin-top: 4px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--brand); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ---------- cards / layout ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-h h2, .card-h h3 { display: flex; align-items: center; gap: 8px; }
.card-b { padding: 18px; }
.card-f { padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r) var(--r); }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.pagehead p { margin: 4px 0 0; color: var(--muted); }
.stack > * + * { margin-top: 18px; }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

.alert { padding: 11px 14px; border-radius: 9px; margin-bottom: 14px; border: 1px solid transparent; font-size: 14px; }
.alert.ok { background: var(--up-soft); color: var(--up); border-color: color-mix(in srgb, var(--up) 25%, transparent); }
.alert.err { background: var(--down-soft); color: var(--down); border-color: color-mix(in srgb, var(--down) 25%, transparent); }
.alert.info { background: var(--brand-soft); color: var(--brand-ink); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface-3); color: var(--muted); letter-spacing: .01em; }
.badge.ok { background: var(--up-soft); color: var(--up); }
.badge.bad { background: var(--down-soft); color: var(--down); }
.badge.brand { background: var(--brand-soft); color: var(--brand-ink); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

.chg { font-weight: 700; font-variant-numeric: tabular-nums; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.chg.flat { color: var(--muted); }
.pill-chg { display: inline-block; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 13px; }
.pill-chg.up { background: var(--up-soft); color: var(--up); }
.pill-chg.down { background: var(--down-soft); color: var(--down); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: var(--ink); }
.tbl th .arr { opacity: .35; margin-left: 3px; }
.tbl th.asc .arr, .tbl th.desc .arr { opacity: 1; color: var(--brand); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl tr:last-child td { border-bottom: 0; }
.sym { font-weight: 700; color: var(--ink); }
.sym:hover { color: var(--brand-ink); }
.symname { display: block; font-size: 12px; color: var(--muted); max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { text-align: center; padding: 42px 20px; color: var(--muted); }
.empty .ic { color: var(--faint); margin-bottom: 8px; }
.empty h3 { color: var(--ink); margin-bottom: 4px; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side { position: relative; overflow: hidden; background: linear-gradient(150deg, #2a1a8c 0%, #4a2fe0 45%, #2f7cf6 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .brand { color: #fff; }
.auth-side .brand-mark { background: rgba(255,255,255,.18); box-shadow: none; }
.auth-side h2 { font-size: 34px; font-weight: 800; line-height: 1.15; max-width: 460px; letter-spacing: -.02em; }
.auth-side p { color: rgba(255,255,255,.82); max-width: 440px; font-size: 15.5px; margin-top: 14px; }
.auth-side ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.auth-side li { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.92); }
.auth-side li .ic { background: rgba(255,255,255,.16); border-radius: 7px; padding: 5px; width: 28px; height: 28px; }
.auth-candles { position: absolute; right: -40px; bottom: -20px; width: 520px; opacity: .22; pointer-events: none; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; background: var(--bg); }
.auth-card { width: 100%; max-width: 410px; }
.auth-card .card-b { padding: 30px; }
.auth-card h1 { font-size: 23px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin: 6px 0 22px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-alt { text-align: center; margin-top: 16px; color: var(--muted); font-size: 14px; }
.pw-wrap { position: relative; }
.pw-wrap .inp { padding-right: 64px; }
.pw-wrap button { position: absolute; right: 6px; top: 6px; height: 28px; border: 0; background: var(--surface-3); color: var(--muted); border-radius: 6px; font: 600 12px var(--font); padding: 0 8px; cursor: pointer; }

/* ---------- landing ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 20px 60px; text-align: center; background:
  radial-gradient(800px 360px at 15% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
  radial-gradient(700px 320px at 90% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; letter-spacing: -.03em; max-width: 860px; margin: 0 auto; line-height: 1.08; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 18px auto 28px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-demo { max-width: 860px; margin: 40px auto 0; text-align: left; }
.ai-mock { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ai-mock .q { flex: 1; color: var(--ink-2); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 8px; background: var(--surface-3); color: var(--ink-2); font-size: 13px; font-weight: 600; border: 1px solid var(--line); }
.chip b { color: var(--brand-ink); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 22px; }
.feature .fi { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 12px; }
.feature p { color: var(--muted); margin: 6px 0 0; }
.section-title { text-align: center; margin: 56px 0 22px; }
.section-title p { color: var(--muted); margin-top: 6px; }

/* ---------- dashboard ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { padding: 16px 18px; }
.stat .k { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat .v { font-size: 24px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.breadth { height: 8px; border-radius: 99px; overflow: hidden; display: flex; background: var(--surface-3); margin-top: 10px; }
.breadth i { display: block; height: 100%; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 18px; border-bottom: 1px solid var(--line); }
.mini-list li:last-child { border-bottom: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; }
.tabs button, .tabs a { border: 0; background: none; padding: 12px 10px; font: 600 13.5px var(--font); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs .on { color: var(--brand-ink); border-bottom-color: var(--brand); }
.tabs a:hover { text-decoration: none; color: var(--ink); }

/* ---------- screener ---------- */
.ai-box { padding: 16px 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand-soft) 80%, var(--surface)), var(--surface)); border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
.ai-row { display: flex; gap: 10px; }
.ai-row .inp { height: 46px; font-size: 15px; padding-left: 42px; }
.ai-in { position: relative; flex: 1; }
.ai-in .ic { position: absolute; left: 13px; top: 14px; color: var(--brand); }
.ai-examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: 12.5px; }
.ai-examples button { border: 1px dashed var(--line-2); background: var(--surface); color: var(--muted); border-radius: 7px; padding: 4px 9px; cursor: pointer; font: 500 12.5px var(--font); }
.ai-examples button:hover { color: var(--brand-ink); border-color: var(--brand); }
.ai-note { margin-top: 10px; font-size: 13px; padding: 9px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }

.builder { padding: 16px 18px; }
.cgroup { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--surface-2); }
.cgroup .cgroup { background: var(--surface); margin-top: 8px; }
.cgroup-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.logic { display: inline-flex; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; }
.logic button { border: 0; background: var(--surface); padding: 4px 10px; font: 700 12px var(--font); color: var(--muted); cursor: pointer; }
.logic button.on { background: var(--brand); color: #fff; }
.crow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; margin-top: 6px; }
.cgroup .cgroup .crow { background: var(--surface-2); }
.opd { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.crow select, .crow input { height: 32px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); color: var(--ink); font: 500 13px var(--font); padding: 0 6px; }
.crow select.f { font-weight: 600; max-width: 170px; }
.crow select.op { width: auto; max-width: 140px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); border-color: transparent; }
.crow input.p { width: 54px; text-align: center; }
.crow input.n { width: 86px; text-align: right; }
.crow input.m { width: 52px; text-align: center; }
.crow .x { font-size: 12px; color: var(--faint); }
.crow .rm { margin-left: auto; border: 0; background: none; color: var(--faint); cursor: pointer; padding: 4px; border-radius: 6px; }
.crow .rm:hover { color: var(--down); background: var(--down-soft); }
.cg-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.cg-actions button { border: 1px dashed var(--line-2); background: transparent; color: var(--muted); border-radius: 7px; padding: 5px 10px; font: 600 12.5px var(--font); cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.cg-actions button:hover { color: var(--brand-ink); border-color: var(--brand); }
.cg-actions .rmg { margin-left: auto; }
.cg-actions .rmg:hover { color: var(--down); border-color: var(--down); }
.readable { margin-top: 12px; font-size: 13px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-family: var(--mono); line-height: 1.6; word-break: break-word; }
.runbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r) var(--r); }
.runbar select { width: auto; min-width: 210px; }
.resultbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.resultbar .count { font-size: 15px; font-weight: 700; }
.json-edit { font-family: var(--mono); font-size: 12.5px; min-height: 220px; }

/* ---------- stock page ---------- */
.qhead { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.qhead .px { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.qhead h1 { display: flex; align-items: center; gap: 10px; }
.chartbox { height: 440px; position: relative; }
.rsibox { height: 130px; border-top: 1px solid var(--line); }
.chart-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tog { border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); border-radius: 7px; padding: 4px 9px; font: 600 12px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tog.on { color: var(--ink); border-color: var(--ink-2); }
.tog i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 0; }
.kv > div { padding: 9px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv > div:nth-child(odd) { color: var(--muted); }
.kv > div:nth-child(even) { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.signal { display: flex; justify-content: space-between; align-items: center; padding: 9px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(10,12,24,.55); z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal { width: 100%; max-width: 460px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); max-height: calc(100vh - 32px); overflow: auto; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-b { padding: 18px; }
.modal-f { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--line); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; width: 100%; }
.seg label { flex: 1; text-align: center; cursor: pointer; }
.seg input { display: none; }
.seg span { display: block; padding: 8px 6px; font: 600 13px var(--font); color: var(--muted); }
.seg input:checked + span { background: var(--brand-soft); color: var(--brand-ink); }
.seg.buy input:checked + span { background: var(--up); color: #fff; }
.seg.sell input:checked + span { background: var(--down); color: #fff; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 11px 18px; border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 200; font-weight: 500; font-size: 14px; max-width: calc(100vw - 32px); }
.toast.err { background: var(--down); color: #fff; }

.scan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.scan-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s; }
.scan-card:hover { border-color: var(--brand); transform: translateY(-1px); text-decoration: none; }
.scan-card h3 { color: var(--ink); }
.scan-card p { color: var(--muted); font-size: 13px; margin: 0; flex: 1; }
.scan-card .meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--faint); }

.foot { border-top: 1px solid var(--line); background: var(--surface); margin-top: 30px; }
.foot-in { padding-top: 18px; padding-bottom: 18px; }
.disclaimer { font-size: 12.5px; color: var(--muted); max-width: 900px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .symsearch { width: 180px; }
  .mainnav a span { display: none; }
  .mainnav a { padding: 8px 10px; }
}
@media (max-width: 900px) {
  .cols, .cols-3, .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 760px) {
  .wrap, .wrap-narrow { padding: 16px 16px 32px; }
  .topbar-in { padding: 0 16px; gap: 10px; }
  .navtoggle { display: grid; }
  .mainnav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 12px 12px; box-shadow: var(--shadow-lg); }
  .mainnav.open { display: flex; }
  .mainnav a span { display: inline; }
  .symsearch { flex: 1; width: auto; min-width: 0; }
  .brand span:last-child { display: none; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .chartbox { height: 340px; }
  .ai-row { flex-direction: column; }
  .runbar select { min-width: 0; width: 100%; }
  .qhead .px { font-size: 26px; }
  .hero { padding: 44px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.crow select.t { width: 84px; }
.like-btn.on { color: var(--down); border-color: color-mix(in srgb, var(--down) 40%, transparent); background: var(--down-soft); }
.like-btn.on .ic { fill: currentColor; }

/* ---------- screeners directory ---------- */
.scr-hero { text-align: center; padding: 34px 20px; background:
  radial-gradient(600px 220px at 20% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
  radial-gradient(600px 220px at 90% 10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--surface); }
.scr-hero h1 { font-size: 26px; text-transform: uppercase; letter-spacing: .04em; }
.scr-hero p { color: var(--muted); margin: 6px 0 18px; }
.scr-search { max-width: 640px; margin: 0 auto; position: relative; display: flex; gap: 8px; }
.scr-search .ic { position: absolute; left: 14px; top: 14px; color: var(--faint); }
.scr-search .inp { height: 46px; padding-left: 42px; font-size: 15px; }
.scr-search .btn { height: 46px; }
.scr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 18px; align-items: start; }
.scr-cat { display: flex; flex-direction: column; }
.scr-cat ul { list-style: none; margin: 0; padding: 6px 0; flex: 1; }
.scr-cat li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 18px; font-size: 13.5px; }
.scr-cat li a { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-cat li a:hover { color: var(--brand-ink); }
.scr-more { padding: 10px 18px; border-top: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.scr-list { list-style: none; margin: 0; padding: 0; }
.scr-list li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.scr-list li:last-child { border-bottom: 0; }
.scr-list li > a { display: flex; flex-direction: column; color: var(--ink); min-width: 0; flex: 1; }
.scr-list li > a span { color: var(--muted); font-size: 13px; }
.scr-meta { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: var(--muted); }

/* ---------- full chart page ---------- */
.chartpage { padding: 0; }
.cp-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.cp-sym { position: relative; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface-2); color: var(--faint); width: 190px; }
.cp-sym input { border: 0; background: none; outline: none; font: 700 14px var(--font); color: var(--ink); width: 100%; text-transform: uppercase; }
.cp-sym .symsearch-list { top: 40px; min-width: 300px; }
.cp-bar select.cp-sel { height: 36px; width: auto; padding: 0 8px; font-weight: 600; }
.cp-ind { position: relative; }
.cp-menu { left: 0; right: auto; top: 40px; min-width: 250px; padding: 8px 12px; }
.cp-menu .check { padding: 5px 0; font-size: 13.5px; }
.cp-mh { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin: 8px 0 2px; }
.cp-wrap { position: relative; background: var(--surface); }
.cp-main { height: 520px; }
.cp-legend { position: absolute; z-index: 5; left: 12px; top: 8px; font-size: 12.5px; pointer-events: none; background: color-mix(in srgb, var(--surface) 82%, transparent); padding: 4px 8px; border-radius: 6px; max-width: calc(100% - 110px); }
.cp-legend b.up { color: var(--up); } .cp-legend b.down { color: var(--down); }
.cp-ovl { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; font-weight: 600; }
.cp-pane { position: relative; border-top: 1px solid var(--line); }
.cp-pane-t { position: absolute; z-index: 5; left: 12px; top: 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); pointer-events: none; }
.cp-ranges { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px 16px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .cp-sym { width: 100%; } .cp-legend { font-size: 11px; max-width: calc(100% - 90px); } }

/* ---------- premium ---------- */
.prem-hero { text-align: center; padding: 40px 20px; background:
  radial-gradient(700px 260px at 15% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
  radial-gradient(700px 260px at 85% 0%, color-mix(in srgb, #f59e0b 14%, transparent), transparent 70%), var(--surface); }
.prem-hero h1 { font-size: clamp(26px, 4vw, 40px); margin: 14px 0 8px; letter-spacing: -.02em; }
.prem-hero .lead { color: var(--muted); max-width: 640px; margin: 0 auto 18px; font-size: 16px; }
.prem-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.prem-tabs span { display: inline-flex; gap: 7px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; }
.benefits { list-style: none; margin: 0; padding: 6px 0; }
.benefits li { display: flex; gap: 12px; padding: 11px 18px; }
.benefits li .ic { color: var(--brand); margin-top: 2px; }
.benefits b { display: block; }
.benefits span { color: var(--muted); font-size: 13.5px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 980px; margin: 0 auto; }
.plan { position: relative; padding: 26px 22px; display: flex; flex-direction: column; gap: 6px; }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 18%, transparent); }
.plan-badge { position: absolute; top: -11px; right: 16px; }
.plan .price { font-size: 36px; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; }
.plan .btn { margin-top: 14px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 10px; }
.auth-logo .brand-mark { width: 46px; height: 46px; border-radius: 13px; }
.lbl.caps { text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.gbtn { gap: 10px; font-weight: 600; }

/* ---------- contact / faq / pages ---------- */
.dropzone { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1.5px dashed var(--line-2); border-radius: 10px; color: var(--muted); cursor: pointer; background: var(--surface-2); }
.dropzone:hover { border-color: var(--brand); color: var(--brand-ink); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.faq details { border-top: 1px solid var(--line); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.prose { max-width: 820px; }
.prose h2 { margin: 24px 0 8px; font-size: 17px; }
.prose p, .prose li { color: var(--ink-2); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; }
.foot-links a { color: var(--muted); }
@media (max-width: 1240px) and (min-width: 761px) { .mainnav a span { display: none; } .mainnav a { padding: 8px 10px; } .symsearch { width: 180px; } }
.auth-side > :not(.auth-candles) { position: relative; z-index: 1; }

/* ---------- member dashboard sub-menu ---------- */
.dash-tabs { display: flex; gap: 2px; padding: 5px; margin-bottom: 14px; overflow-x: auto; }
.dash-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.dash-tabs a:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.dash-tabs a.on { background: var(--brand-soft); color: var(--brand-ink); }
.dash-promo { display: flex; align-items: center; gap: 8px; padding: 9px 14px; margin-bottom: 16px; border-radius: 10px; background: var(--brand-soft); color: var(--ink-2); font-size: 13px; font-weight: 500; }
.dash-promo:hover { text-decoration: none; }
.dash-promo b { display: inline-flex; align-items: center; gap: 4px; background: var(--brand); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; letter-spacing: .03em; }
/* ---------- scan dashboard ---------- */
.sd-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--line); }
.seg-mini { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg-mini a { padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg-mini a.on { background: var(--brand-soft); color: var(--brand-ink); }
.seg-mini a:hover { text-decoration: none; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 10px; }
.switch input { appearance: none; width: 30px; height: 17px; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; margin: 0; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(13px); }
.sd-list { display: grid; gap: 12px; }
.sd-card { padding: 14px 18px; }
.sd-card-h { display: flex; gap: 10px; align-items: flex-start; }
.sd-card-h h3 a { color: var(--ink); }
.sd-card-h .spacer { flex: 1; }
.sd-desc { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.sd-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--faint); }
.tagchip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: color-mix(in srgb, var(--tc, #5b3df5) 14%, transparent); color: var(--tc, #5b3df5); }
.fav { border: 0; background: none; cursor: pointer; color: var(--faint); padding: 4px; border-radius: 6px; font-size: 18px; line-height: 1; }
.fav.on { color: #f59e0b; }
.fav:hover { background: var(--surface-3); }
.sd-preview { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; min-height: 26px; }
.sd-preview .pv { display: inline-flex; gap: 6px; align-items: center; padding: 4px 9px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink); }
.sd-preview .pv:hover { border-color: var(--brand); text-decoration: none; }
.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ind-grid .card { padding: 14px 16px; }
.ind-grid code { font-size: 11.5px; }

/* ---------- Atlas ---------- */
.atlas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.aw.wide { grid-column: 1 / -1; }
.aw .card-h h3 { font-size: 14.5px; }
.aw-tools .iconbtn { width: 28px; height: 28px; font-size: 13px; }
.aw-body .tbl td, .aw-body .tbl th { padding: 8px 12px; }
.aw-foot { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.aw-pad { padding: 14px 18px; }
.aw-stat { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; }
.aw-stat span { color: var(--muted); }
.aw-bar { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 2px 0 8px; }
.aw-bar i { display: block; height: 100%; background: var(--up); border-radius: 99px; }
.aw-chart { height: 200px; }
@media (max-width: 900px) { .atlas-grid { grid-template-columns: minmax(0, 1fr); } }
.aw { min-width: 0; }

/* ---------- live index ticker ---------- */
.tickerbar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 12.5px; }
.tickerbar-in { max-width: 1280px; margin: 0 auto; padding: 6px 20px; display: flex; gap: 22px; align-items: center; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.tickerbar-in::-webkit-scrollbar { display: none; }
.tk { display: inline-flex; gap: 7px; align-items: baseline; }
.tk b { font-weight: 700; color: var(--ink); }
.tk .v { font-variant-numeric: tabular-nums; font-weight: 600; }
.tk .c { font-variant-numeric: tabular-nums; font-weight: 600; }
.tk .c.up { color: var(--up); } .tk .c.down { color: var(--down); }
.tk-meta { margin-left: auto; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; }
.tk-live { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(8,135,90,.6); animation: tkpulse 2s infinite; }
.tk-live.off { background: var(--faint); animation: none; }
@keyframes tkpulse { 70% { box-shadow: 0 0 0 7px rgba(8,135,90,0); } 100% { box-shadow: 0 0 0 0 rgba(8,135,90,0); } }
.tk-flash-up { animation: tkup 1.2s; } .tk-flash-down { animation: tkdown 1.2s; }
@keyframes tkup { from { background: var(--up-soft); } to { background: transparent; } }
@keyframes tkdown { from { background: var(--down-soft); } to { background: transparent; } }

/* ---------- notification bell ---------- */
.bell { position: relative; }
.bell .iconbtn { position: relative; }
.bell-n { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--down); color: #fff; font: 700 10.5px/18px var(--font); text-align: center; }
.bell-menu { width: min(360px, calc(100vw - 24px)); padding: 0; right: -50px; }
.bell-h, .bell-f { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.bell-f { border-bottom: 0; border-top: 1px solid var(--line); font-size: 13px; }
.bell-list { max-height: 380px; overflow-y: auto; }
.bell-item { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
.bell-item:hover { background: var(--surface-3); text-decoration: none; }
.bell-item.unread { background: color-mix(in srgb, var(--brand-soft) 60%, transparent); }
.bell-item .ic-k { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); font-size: 14px; }
.bell-item .k-index-up { background: var(--up-soft); color: var(--up); }
.bell-item .k-index-down { background: var(--down-soft); color: var(--down); }
.bell-item b { display: block; font-size: 13px; }
.bell-item span { display: block; font-size: 12px; color: var(--muted); }
.bell-item time { font-size: 11px; color: var(--faint); }
@media (max-width: 760px) { .tickerbar-in { padding: 6px 16px; gap: 16px; } .bell-menu { right: -90px; } }
.ai-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: var(--brand-ink); }
.atlas-card { border-left: 4px solid var(--ac, var(--brand)); }
/* crowded top bar (Atlas + bell): search collapses to an icon and expands on focus */
@media (max-width: 1440px) and (min-width: 761px) {
  .mainnav a { padding: 8px 9px; gap: 6px; font-size: 13.5px; }
  .topbar .symsearch { width: 38px; padding: 0 10px; cursor: pointer; transition: width .18s ease; flex: none; }
  .topbar .symsearch input { min-width: 0; }
  .topbar .symsearch:focus-within { width: 230px; cursor: text; }
}
.cp-draw, .cp-quick { display: inline-flex; gap: 4px; align-items: center; }
.cp-quick .tog { text-decoration: none; }
.chartpage:fullscreen { background: var(--surface); overflow: auto; }

/* ---------- chart workstation (pro.php) ---------- */
.pro-page { max-width: 1440px; margin: 0 auto; padding: 14px 16px 30px; width: 100%; }
.pro-head { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.pro-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pro-tabs a { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-width: 150px; }
.pro-tabs a:hover { border-color: var(--brand); text-decoration: none; }
.pro-tabs a.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pro-tabs b { font-size: 14px; }
.pro-q { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--muted); }
.pro-q i { font-style: normal; font-weight: 600; }
.pro-title { text-align: right; }
.pro-title h1 { font-size: 20px; }
.pro-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) 230px minmax(0, 1fr); overflow: hidden; margin-bottom: 12px; }
.pp-box { min-width: 0; display: flex; flex-direction: column; }
.pp-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.pp-tabs button { flex: 1; border: 0; background: none; padding: 9px 6px; font: 600 12.5px var(--font); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.pp-tabs button.on { color: var(--brand-ink); border-bottom-color: var(--brand); background: var(--surface); }
.pp-list { height: 168px; overflow-y: auto; padding: 4px 10px; }
.pp-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.pp-row .check { font-size: 12.5px; align-items: center; }
.pp-row .check input { margin-top: 0; }
.pp-par { display: inline-flex; gap: 4px; align-items: center; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.pp-par input[type=number] { width: 52px; height: 24px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--surface); color: var(--ink); font: 12px var(--font); padding: 0 4px; }
.pp-par select { height: 24px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--surface); color: var(--ink); font: 12px var(--font); }
.pp-par input[type=color] { width: 28px; height: 24px; border: 1px solid var(--line-2); border-radius: 5px; padding: 1px; background: var(--surface); }
.pp-mid { background: linear-gradient(160deg, #2a5f8f, #3b82a8); color: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.pp-mid label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.pp-mid select { width: 128px; height: 28px; border-radius: 6px; border: 0; font: 600 12.5px var(--font); }
.pp-mid .btn { background: #fff; color: #1e3a5f; margin-top: 4px; }
.pp-mid .btn:hover { background: #e0ecf7; }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding-top: 6px; font-size: 12.5px; }
.pp-grid label { display: flex; gap: 6px; align-items: center; }
.pp-grid select { height: 28px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--ink); font: 12.5px var(--font); max-width: 130px; }
.pp-alert { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; padding: 6px 0; }
.pp-alert select, .pp-alert input { height: 28px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--ink); font: 12.5px var(--font); }
.pp-alert input { width: 70px; padding: 0 6px; }
.pp-alerts { list-style: none; margin: 4px 0 6px; padding: 0; font-size: 12.5px; color: var(--muted); }
.pp-alerts li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.pp-alerts li.off { opacity: .7; }
.pp-alerts small { display: block; }
.pa-acts { float: right; display: inline-flex; gap: 4px; margin-left: 8px; }
.btn.xs { padding: 2px 8px; font-size: 11.5px; min-height: 0; height: 24px; }
.pro-chartbox { overflow: hidden; }
.pro-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.pro-tools { display: inline-flex; gap: 3px; }
.pro-tools button { width: 32px; height: 30px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.pro-tools button.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.pro-tools .t-up { color: #16a34a; }
.pro-tools .t-dn { color: #dc2626; }
.pro-hint { font-size: 12px; color: var(--muted); }
.pro-symsearch { position: relative; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); color: var(--faint); width: 170px; }
.pro-symsearch input { border: 0; outline: 0; background: none; width: 100%; font: 700 12.5px var(--font); color: var(--ink); text-transform: uppercase; }
.pro-symsearch .symsearch-list { top: 34px; right: 0; left: auto; min-width: 280px; }
.pro-dataline { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; padding: 6px 12px; font-size: 12.5px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pro-dataline b.up { color: var(--up); }
.pro-dataline b.down { color: var(--down); }
.pro-body { display: flex; }
.pro-palette { width: 34px; flex: none; padding: 8px 5px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; background: var(--surface-2); }
.pro-palette .sw { width: 22px; height: 18px; border-radius: 4px; border: 1px solid var(--line-2); cursor: pointer; padding: 0; }
.pro-palette .sw.on { outline: 2px solid var(--brand); outline-offset: 1px; }
.pro-widths { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.pro-widths button { height: 16px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 4px; cursor: pointer; display: grid; align-items: center; padding: 0 3px; }
.pro-widths button.on { border-color: var(--brand); }
.pro-widths i { display: block; background: var(--ink); }
.pro-charts { flex: 1; min-width: 0; }
.pro-main { position: relative; height: 480px; }
.pro-overlay { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.pro-pane { position: relative; border-top: 1px solid var(--line); }
.pro-pane-t { position: absolute; z-index: 5; left: 10px; top: 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); pointer-events: none; }
.mainnav a.idx { font-weight: 700; }
.mainnav a.idx em { font-style: normal; font-weight: 600; font-size: 11.5px; margin-left: 2px; }
.mainnav a.idx em.up { color: var(--up); }
.mainnav a.idx em.down { color: var(--down); }
@media (max-width: 1100px) { .pro-panel { grid-template-columns: 1fr; } .pp-mid { flex-direction: row; flex-wrap: wrap; } .pro-title { text-align: left; } }
@media (max-width: 760px) { .pro-tabs a { min-width: 0; flex: 1 1 45%; } .pro-main { height: 360px; } .pro-hint { display: none; } }
/* 11 menu items: up to 1600px show icons only (NIFTY / SENSEX keep their text + live %) */
@media (max-width: 1600px) and (min-width: 761px) {
  .mainnav a:not(.idx) span { display: none; }
  .mainnav a { padding: 8px 9px; }
}

/* =====================================================================
   Home / landing page (index.php) - dark market hero like pro trading sites
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main.lp { padding: 0; }
.lp-in { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.lp-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 8px; }
.lp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.lp-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.lp-head p { color: var(--muted); font-size: 16px; max-width: 640px; margin: 10px 0 0; }
.lp-head em, .lp-final em { font-style: normal; color: var(--brand-ink); }
.lp-center { justify-content: center; text-align: center; }
.lp-center p { margin-left: auto; margin-right: auto; }
.lp-center-t { text-align: center; margin: 18px 0 0; }
.lp-sec { padding: 72px 0; }
.lp-alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* hero: always dark, independent of the site theme */
.lp-hero { --lp-axis: #8f98b8; --lp-grid: rgba(255,255,255,.06); position: relative; overflow: hidden; color: #e9ecf8; background: #070b18; padding: 64px 0 72px; isolation: isolate; }
.lp-hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(91,61,245,.38), transparent 60%),
    radial-gradient(700px 420px at 95% 10%, rgba(47,124,246,.28), transparent 60%),
    radial-gradient(600px 380px at 70% 110%, rgba(34,197,94,.14), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 44px 44px; }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #cfd6f6; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.lp-hero h1 { color: #fff; font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin: 18px 0 0; text-wrap: balance; }
.lp-hero h1 em { font-style: normal; background: linear-gradient(92deg, #a78bfa, #60a5fa 55%, #34d399); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { font-size: 18px; line-height: 1.6; color: #b9c1de; max-width: 600px; margin: 18px 0 26px; }
.lp-lead b { color: #fff; }
.lp-ai { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.96); border-radius: 14px; padding: 7px 7px 7px 14px; box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.2); max-width: 620px; }
.lp-ai-ic { color: #5b3df5; display: grid; }
.lp-ai input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 16px var(--font); color: #111629; height: 42px; box-shadow: none !important; }
.lp-ai input::placeholder { color: #6b7394; }
.lp-ai:focus-within { box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 3px rgba(139,116,255,.7); }
.btn.lp-ai-go { height: 44px; border-radius: 10px; padding: 0 18px; background: linear-gradient(135deg, #6d4dff, #3f7bff); }
.lp-ai-go .ic { transform: rotate(90deg); }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; max-width: 640px; }
.lp-chip { cursor: pointer; font: 500 13px var(--font); color: #cdd4f2; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); border-radius: 999px; padding: 7px 12px; min-height: 32px; text-align: left; transition: background .15s, border-color .15s; }
.lp-chip:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.lp-chip:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn.lp-primary { background: linear-gradient(135deg, #6d4dff, #3f7bff); box-shadow: 0 10px 28px rgba(91,61,245,.4); }
.btn.lp-primary:hover { filter: brightness(1.08); }
.btn.lp-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); }
.btn.lp-ghost:hover { background: rgba(255,255,255,.13); }
.lp-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 22px 0 0; font-size: 13.5px; color: #aab3d3; }
.lp-trust li { display: inline-flex; align-items: center; gap: 7px; }
.lp-trust svg { color: #34d399; }

.lp-pulse { background: linear-gradient(180deg, rgba(20,25,46,.92), rgba(13,17,33,.92)); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5); backdrop-filter: blur(8px); }
.lp-pulse-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: #fff; }
.lp-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #9aa3c2; }
.lp-live i { width: 8px; height: 8px; border-radius: 50%; background: #6b7394; }
.lp-live.on i { background: #22c55e; animation: lpPulse 1.6s ease-out infinite; }
@keyframes lpPulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 100% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } }
.lp-idx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lp-idx-b { cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; text-align: left; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: #e9ecf8; font: inherit; transition: background .15s, border-color .15s; }
.lp-idx-b:hover { background: rgba(255,255,255,.08); }
.lp-idx-b.on { background: rgba(124,92,255,.16); border-color: rgba(139,116,255,.6); }
.lp-idx-b:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
.lp-idx-n { font-size: 12.5px; font-weight: 700; color: #cbd2ee; grid-column: 1 / -1; }
.lp-idx-v { font-size: 17px; font-weight: 700; color: #fff; text-align: left; }
.lp-idx-c { font-size: 12.5px; align-self: end; }
.lp-hero .chg.up { color: #34d399; } .lp-hero .chg.down { color: #fb7185; } .lp-hero .chg.flat { color: #9aa3c2; }
.lp-chart { height: 230px; margin: 12px -4px 4px; }
.lp-pulse-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lp-pulse-f .muted { color: #8f98b8; }
.lp-pulse-f a { color: #b6a8ff; }
.lp-empty { padding: 40px 12px; text-align: center; color: #9aa3c2; }

/* stats strip */
.lp-stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.lp-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-stat { padding: 22px 16px; text-align: center; border-left: 1px solid var(--line); }
.lp-stat:first-child { border-left: 0; }
.lp-stat b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-align: center; }
.lp-stat span { color: var(--muted); font-size: 13.5px; }

/* market today */
.lp-breadth { padding: 16px 18px; margin-bottom: 16px; }
.lp-breadth-t { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.lp-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-3); }
.lp-bar i.up { background: var(--up); } .lp-bar i.down { background: var(--down); margin-left: auto; }
.lp-breadth-n { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 13.5px; }
.lp-movers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-mv { overflow: hidden; }
.lp-mv-h { padding: 14px 16px 6px; }
.lp-tbl td, .lp-tbl th { padding: 10px 16px; }
.lp-tbl .sym { font-weight: 700; color: var(--ink); }
.lp-tbl .sym:hover { color: var(--brand-ink); }

/* live scans */
.lp-scans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-scan { display: flex; flex-direction: column; gap: 8px; padding: 18px; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.lp-scan:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.lp-scan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lp-scan-n { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.lp-scan-n b { font-size: 18px; color: var(--ink); margin-right: 2px; }
.lp-scan h3 { font-size: 15.5px; }
.lp-scan p { color: var(--muted); font-size: 13.5px; margin: 0; flex: 1; }
.lp-scan-syms { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-scan-syms span { font: 600 11.5px var(--mono); padding: 3px 7px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); }

/* features */
.lp-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lp-feat { padding: 24px; color: var(--ink); display: flex; flex-direction: column; gap: 10px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
a.lp-feat:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.lp-feat-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #6d4dff, #3f7bff); box-shadow: 0 8px 20px rgba(91,61,245,.3); }
.lp-feat h3 { font-size: 17px; }
.lp-feat p { color: var(--muted); margin: 0; flex: 1; }
.lp-more { font-size: 13.5px; font-weight: 600; color: var(--brand-ink); }

/* AI spotlight (dark band) */
.lp-dark { background: #0a0f20; color: #dfe4f7; }
.lp-dark h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.lp-dark .lp-kicker { color: #a78bfa; }
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.lp-lead2 { color: #b4bcda; font-size: 16.5px; margin: 14px 0 18px; }
.lp-ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.lp-ticks li { position: relative; padding-left: 28px; }
.lp-ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(52,211,153,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.lp-ticks.sm { gap: 8px; font-size: 14px; margin: 14px 0 18px; }
.lp-mock { background: linear-gradient(180deg, #151b33, #10152a); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.45); display: grid; gap: 12px; }
.lp-mock-q { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.95); color: #1b2140; font-weight: 500; }
.lp-mock-q .ic { color: #5b3df5; margin-top: 3px; }
.lp-mock-arrow { text-align: center; color: #7c86ad; font-size: 18px; }
.lp-mock-rules { display: grid; gap: 8px; }
.lp-mock-rules span { padding: 10px 12px; border-radius: 10px; background: rgba(124,92,255,.12); border: 1px solid rgba(139,116,255,.35); color: #d9d4ff; font-size: 14px; }
.lp-mock-rules b { color: #fff; }
.lp-mock-res { display: grid; gap: 6px; padding-top: 6px; border-top: 1px dashed rgba(255,255,255,.12); }
.lp-mock-res .muted { color: #8f98b8; }
.lp-mock-row { display: grid; grid-template-columns: 1fr auto 80px; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.04); font-size: 14px; }
.lp-mock-row .chg { text-align: right; }
.lp-dark .chg.up { color: #34d399; } .lp-dark .chg.down { color: #fb7185; }

/* steps */
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lp-steps li { padding: 24px; position: relative; }
.lp-step-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 800; color: var(--brand-ink); background: var(--brand-soft); margin-bottom: 14px; }
.lp-steps h3 { font-size: 17px; margin-bottom: 6px; }
.lp-steps p { color: var(--muted); margin: 0; }

/* pricing */
.lp-prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.lp-price { padding: 22px; display: flex; flex-direction: column; position: relative; }
.lp-price.best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg); }
.lp-price-badge { position: absolute; top: -11px; right: 16px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #6d4dff, #3f7bff); }
.lp-amt { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 6px; }
.lp-amt b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.lp-amt span { color: var(--muted); font-size: 13.5px; }
.lp-price .btn { margin-top: auto; }
.lp-price p { flex: 1; }
.lp-price .lp-ticks li::before { background-color: var(--up-soft); }

/* testimonials, FAQ */
.lp-tms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-tm { margin: 0; padding: 22px; }
.lp-tm blockquote { margin: 0 0 14px; font-size: 15.5px; }
.lp-tm figcaption { display: grid; font-size: 13.5px; } .lp-tm figcaption span { color: var(--muted); }
.lp-faq-wrap { max-width: 860px; }
.lp-faq { display: grid; gap: 10px; }
.lp-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.lp-faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; font-size: 15.5px; position: relative; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--muted); transition: transform .2s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
.lp-faq p { color: var(--muted); margin: 0 0 16px; }

/* final CTA */
.lp-final { padding: 64px 0; background: linear-gradient(120deg, #4c2fe0, #2f6ff0 60%, #158f6b); color: #fff; }
.lp-final-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.lp-final h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.lp-final p { color: rgba(255,255,255,.9); margin: 8px 0 0; font-size: 16px; }
.lp-final .lp-cta { margin: 0; }
.lp-final .btn.lp-primary { background: #fff; color: #2b1fa6; box-shadow: 0 10px 28px rgba(0,0,0,.2); }

/* hero entrance (ends visible; nothing depends on JS) */
@media (prefers-reduced-motion: no-preference) {
  .lp-hero-copy > *, .lp-pulse { animation: lpUp .6s cubic-bezier(.2,.7,.2,1) both; }
  .lp-hero-copy > :nth-child(2) { animation-delay: .05s; } .lp-hero-copy > :nth-child(3) { animation-delay: .1s; }
  .lp-hero-copy > :nth-child(4) { animation-delay: .15s; } .lp-hero-copy > :nth-child(n+5) { animation-delay: .2s; }
  .lp-pulse { animation-delay: .15s; }
}
@keyframes lpUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .lp-hero-grid, .lp-split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .lp-scans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lp-movers, .lp-feats, .lp-steps, .lp-tms { grid-template-columns: minmax(0, 1fr); }
  .lp-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-stat:nth-child(3) { border-left: 0; }
  .lp-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .lp-in { padding: 0 16px; }
  .lp-hero { padding: 40px 0 48px; }
  .lp-sec { padding: 52px 0; }
  .lp-lead { font-size: 16px; }
  .lp-ai { flex-wrap: wrap; padding: 8px; }
  .lp-ai input { flex-basis: calc(100% - 40px); }
  .btn.lp-ai-go { width: 100%; }
  .lp-scans, .lp-prices { grid-template-columns: minmax(0, 1fr); }
  .lp-idx-b { grid-template-columns: minmax(0, 1fr); }
  .lp-idx-v { font-size: 15px; }
  .lp-idx-c { align-self: start; }
  .lp-chart { height: 200px; }
  .lp-cta .btn { flex: 1; }
  .lp-stat b { font-size: 22px; }
}

/* guest header buttons + richer footer */
.guest-btns { display: flex; gap: 8px; }
@media (max-width: 760px) { .guest-btns .btn.ghost { display: none; } }
.foot-cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; padding: 30px 0 18px; }
.foot-cols h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.foot-cols nav a { display: block; color: var(--ink-2); padding: 4px 0; font-size: 14px; }
.foot-cols p { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 340px; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-cols > :first-child { grid-column: 1 / -1; } }

/* admin site content editor */
.cms { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.cms-nav { display: grid; padding: 8px; position: sticky; top: 76px; }
.cms-nav a { padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.cms-nav a.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
@media (max-width: 900px) { .cms { grid-template-columns: minmax(0, 1fr); } .cms-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =====================================================================
   Home - market portal (client mockup): index cards, scan buttons, stock table, overview, news
   ===================================================================== */
.mp-subnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.mp-subnav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mp-subnav-in::-webkit-scrollbar { display: none; }
.mp-subnav a { flex: none; padding: 12px 14px; font-weight: 600; font-size: 14px; color: var(--ink-2); border-bottom: 2px solid transparent; }
.mp-subnav a:hover { color: var(--brand-ink); border-bottom-color: var(--brand); text-decoration: none; }
.mp { padding-top: 22px; padding-bottom: 8px; }

.mp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mp-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 18px 12px; color: var(--ink); transition: box-shadow .18s, border-color .18s, transform .18s; }
.mp-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.mp-card-n { font-weight: 700; color: var(--muted); font-size: 13.5px; }
.mp-card-v { font-size: 24px; font-weight: 800; letter-spacing: -.02em; text-align: left; }
.mp-card-c { font-size: 13.5px; white-space: pre; }
.mp-card-s { margin-top: 4px; }
.mp-card-s .spark { width: 100%; height: 40px; }
.spark polyline { stroke: var(--up); }
.spark.down polyline { stroke: var(--down); }
.spark-none { display: block; height: 26px; }

.mp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 18px 0 22px; }
.mp-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px 18px; border-radius: var(--r); border: 1px solid transparent; color: var(--ink); transition: transform .18s, box-shadow .18s; }
.mp-tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.mp-tile:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.mp-tile-ic { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.mp-tile-t { font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.mp-tile-d { color: var(--muted); font-size: 13.5px; }
.mp-tile.t0 { background: color-mix(in srgb, #2f7cf6 10%, var(--surface)); border-color: color-mix(in srgb, #2f7cf6 25%, transparent); } .mp-tile.t0 .mp-tile-ic { background: #2f7cf6; }
.mp-tile.t1 { background: color-mix(in srgb, #16a34a 10%, var(--surface)); border-color: color-mix(in srgb, #16a34a 25%, transparent); } .mp-tile.t1 .mp-tile-ic { background: #16a34a; }
.mp-tile.t2 { background: color-mix(in srgb, #f59e0b 12%, var(--surface)); border-color: color-mix(in srgb, #f59e0b 30%, transparent); } .mp-tile.t2 .mp-tile-ic { background: #d97706; }
.mp-tile.t3 { background: color-mix(in srgb, #7c5cff 11%, var(--surface)); border-color: color-mix(in srgb, #7c5cff 28%, transparent); } .mp-tile.t3 .mp-tile-ic { background: #6d4dff; }

.mp-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 18px; align-items: start; }
.mp-table { overflow: hidden; }
.mp-tabs { display: flex; align-items: center; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.mp-tabs button, .mp-ovtabs button { flex: none; cursor: pointer; background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 12px 12px; font: 600 14px var(--font); color: var(--muted); }
.mp-tabs button.on, .mp-ovtabs button.on { color: var(--brand-ink); border-bottom-color: var(--brand); }
.mp-tabs button:focus-visible, .mp-ovtabs button:focus-visible { outline: 2px solid var(--brand); outline-offset: -4px; border-radius: 6px; }
.mp-asof { margin-left: auto; padding-right: 8px; color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.mp-tbl th { font-size: 12px; text-transform: none; }
.mp-tbl td, .mp-tbl th { padding: 10px 12px; }
.mp-tbl .sym { display: block; font-weight: 700; color: var(--ink); }
.mp-tbl .sym:hover { color: var(--brand-ink); }
.mp-tbl .symname { display: block; color: var(--muted); font-size: 12px; }
.pill { display: inline-block; min-width: 64px; padding: 3px 8px; border-radius: 6px; font-weight: 700; text-align: right; }
.pill.up { color: var(--up); background: var(--up-soft); } .pill.down { color: var(--down); background: var(--down-soft); } .pill.flat { color: var(--muted); background: var(--surface-3); }
.rng { display: grid; grid-template-columns: auto 70px auto; align-items: center; gap: 6px; }
.rng small { color: var(--faint); font-size: 11px; }
.rng i { position: relative; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--down), var(--warn), var(--up)); opacity: .55; }
.rng i b { position: absolute; top: -4px; width: 4px; height: 12px; margin-left: -2px; border-radius: 2px; background: var(--ink); }
.mp-sample { margin: 0; padding: 10px 16px 0; color: var(--warn); }
.mp-foot { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }

.mp-side { display: grid; gap: 18px; }
.mp-side-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 16px 6px; }
.mp-side-h h2 { font-size: 13px; letter-spacing: .07em; text-transform: uppercase; }
.mp-ovtabs { display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.mp-ovtbl { width: 100%; }
.mp-ovtbl th, .mp-ovtbl td { padding: 9px 10px; font-size: 13px; }
.mp-ov, .mp-news { overflow: hidden; min-width: 0; }
.mp-side { min-width: 0; }
.mp-tbl .mp-col-tr { padding-right: 16px; width: 96px; }
.mp-ovtbl th { font-weight: 600; color: var(--ink-2); text-align: left; }
.mp-ovtbl tr:last-child th, .mp-ovtbl tr:last-child td { border-bottom: 0; }
.mp-ovpane .empty { padding: 18px 16px; }
.mp-newslist { list-style: none; margin: 0; padding: 4px 16px 10px; }
.mp-newslist li { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mp-newslist li:last-child { border-bottom: 0; }
.mp-newslist a { color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.4; }
.mp-newslist a:hover { color: var(--brand-ink); }
.mp-newslist span { color: var(--faint); font-size: 12px; }
.mp-newslist .sk span { display: block; height: 12px; border-radius: 6px; background: var(--surface-3); }
.mp-newslist .sk span + span { width: 40%; }
@media (prefers-reduced-motion: no-preference) { .mp-newslist .sk span { animation: mpSk 1.2s ease-in-out infinite alternate; } }
@keyframes mpSk { to { opacity: .45; } }

/* Premium pop-up */
.mp-modal { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 0; border-radius: 18px; padding: 26px 24px 20px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.mp-modal::backdrop { background: rgba(8,11,24,.6); backdrop-filter: blur(3px); }
@media (prefers-reduced-motion: no-preference) { .mp-modal[open] { animation: mpPop .22s cubic-bezier(.2,.8,.2,1); } }
@keyframes mpPop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.mp-modal-x { position: absolute; top: 10px; right: 10px; margin: 0; }
.mp-modal-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #f59e0b, #ea580c); box-shadow: 0 10px 24px rgba(234,88,12,.35); margin-bottom: 12px; }
.mp-modal h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.mp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 14px; }
.mp-plan { position: relative; display: grid; gap: 1px; text-align: center; padding: 12px 6px 10px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink); }
.mp-plan:hover { text-decoration: none; border-color: var(--brand); }
.mp-plan.best { border-color: var(--brand); background: var(--brand-soft); }
.mp-plan em { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 700 10.5px var(--font); color: #fff; background: var(--brand); padding: 2px 8px; border-radius: 999px; }
.mp-plan span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mp-plan b { font-size: 18px; font-weight: 800; }
.mp-plan small { color: var(--faint); font-size: 11.5px; }
.mp-modal-free { margin-top: 8px; }

.news-page { list-style: decimal inside; margin: 0; padding: 6px 18px; }
.news-page li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.news-page li:last-child { border-bottom: 0; }
.news-page a { font-weight: 600; color: var(--ink); }
.news-page span { display: block; margin: 3px 0 0 18px; }

@media (max-width: 1150px) {
  .mp-main { grid-template-columns: minmax(0, 1fr); }
  .mp-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .mp-cards, .mp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-col-rng { display: none; }
}
@media (max-width: 640px) {
  .mp-side { grid-template-columns: minmax(0, 1fr); }
  .mp-cards, .mp-tiles { gap: 10px; }
  .mp-card { padding: 12px 12px 8px; }
  .mp-card-v { font-size: 19px; }
  .mp-card-c { font-size: 12px; white-space: normal; }
  .mp-tile { grid-template-columns: minmax(0, 1fr); padding: 14px 12px; row-gap: 6px; }
  .mp-tile-ic { grid-row: auto; width: 36px; height: 36px; }
  .mp-tile-t { font-size: 12.5px; }
  .mp-tile-d { font-size: 12.5px; }
  .mp-col-tr, .mp-tbl th:nth-child(4), .mp-tbl td:nth-child(4), .mp-tbl th:first-child, .mp-tbl td:first-child { display: none; }
  .mp-tbl td, .mp-tbl th { padding: 9px 8px; }
  .pill { min-width: 0; }
  .mp-plans { grid-template-columns: minmax(0, 1fr); }
  .mp-ovtbl td[data-c] { display: none; }
  .mp-ovtbl th, .mp-ovtbl td { padding: 9px 10px; font-size: 13px; }
}

/* Kite-style indices list in Market overview */
.ix-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 14px 4px; }
.ix-chip { cursor: pointer; font: 600 13px var(--font); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 12px; min-height: 32px; }
.ix-chip.on { color: var(--brand-ink); background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.ix-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ix-list { list-style: none; margin: 0; padding: 4px 6px 8px; }
.ix-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n v" "n c"; column-gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; }
.ix-list li:hover { background: var(--surface-2); }
.ix-n { grid-area: n; font-weight: 600; font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.ix-v { grid-area: v; text-align: right; font-size: 14px; }
.ix-c { grid-area: c; text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }
.ix-c i { font-style: normal; font-size: 10px; }
.ix-note { margin: 0; padding: 0 16px 12px; color: var(--faint); font-size: 11.5px; }
@media (min-width: 1151px) { .ix-list li { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "n v c"; } .ix-c { min-width: 118px; } }

/* admin: auto-sync status */
.autosync { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; background: var(--surface-2); }
.autosync-h { display: flex; gap: 12px; align-items: flex-start; }
.autosync-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; background: var(--faint); }
.autosync-dot.ok { background: var(--up); }
.autosync-dot.run { background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
.autosync-dot.wait { background: var(--warn); }
@media (prefers-reduced-motion: no-preference) { .autosync-dot.run { animation: asPulse 1.4s ease-out infinite; } }
@keyframes asPulse { to { box-shadow: 0 0 0 8px transparent; } }
.autosync-f { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }

/* paywall banner (free preview) */
.paywall-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin: 0 0 18px; border-radius: 12px;
  background: linear-gradient(90deg, color-mix(in srgb, #f59e0b 16%, var(--surface)), color-mix(in srgb, #7c5cff 14%, var(--surface)));
  border: 1px solid color-mix(in srgb, #f59e0b 35%, transparent); color: var(--ink); }
.paywall-bar .ic { color: #d97706; }
.paywall-bar span { flex: 1; min-width: 220px; }
body[data-paywall="1"] main .dash-tabs a { cursor: pointer; }

/* swing-trading library table */
.sw-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.sw-tbl td { vertical-align: middle; }
.sw-tbl td .badge { margin-left: 8px; }
.sw-cell { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sw-sig { display: grid; gap: 2px; min-width: 0; font-size: 13.5px; color: var(--ink-2); }
.sw-sig small { font-size: 11.5px; }
.sw-cell .btn { flex: none; }
@media (max-width: 760px) { .sw-tbl th:first-child, .sw-tbl td:first-child { display: none; } .sw-cell { flex-direction: column; align-items: flex-start; } .sw-tbl td .badge { display: none; } }

.sw-load { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 14px; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--surface-2); }
.sw-load .lbl { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); }
.sw-load select { flex: 1; min-width: 240px; height: 38px; }

.sw-load-t { font-weight: 800; font-size: 15px; color: var(--ink); margin-right: 6px; }

/* UPI payment */
.upi-modal { width: min(440px, calc(100vw - 32px)); }
.upi-steps { margin: 6px 0 12px; padding-left: 20px; font-size: 14px; color: var(--ink-2); display: grid; gap: 4px; }
.upi-qr { text-align: center; margin: 4px 0 12px; }
.upi-qr img { max-width: 100%; max-height: 360px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.upi-id { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 12px; font-size: 14px; }
.upi-id code { font-size: 15px; padding: 4px 8px; }
.upi-form { margin-top: 14px; display: grid; gap: 8px; }
.upi-form .inp { height: 44px; font-size: 16px; letter-spacing: .04em; }
.upi-btn { margin-top: 8px; }
.upi-admin { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.upi-admin img { border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.upi-mob { display: none; }
@media (pointer: coarse), (max-width: 760px) { .upi-mob { display: inline; } a.upi-mob { display: flex; margin-bottom: 4px; } }

/* segment dropdown + searchable indicator picker */
.cgroup-h select.seg { height: 30px; padding: 0 28px 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background-color: var(--surface); color: var(--ink); font: 700 13px var(--font); max-width: 260px; }
.cgroup-h select.seg:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.fpick { position: absolute; z-index: 300; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; }
.fpick-q { width: 100%; height: 38px; margin-bottom: 6px; }
.fpick-list { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.fpick-g { position: sticky; top: 0; background: var(--surface); padding: 8px 8px 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.fpick-it { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--ink); }
.fpick-it:hover, .fpick-it.act { background: var(--surface-3); }
.fpick-it.cur { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.fpick-star { border: 0; background: none; cursor: pointer; font-size: 15px; line-height: 1; color: var(--faint); padding: 2px; }
.fpick-star.on { color: #f59e0b; }
.fpick-none { padding: 14px 8px; color: var(--muted); font-size: 13.5px; }

/* ===================================================================== home hero (video background, TradingView-style) */
.hx { position: relative; isolation: isolate; overflow: hidden; min-height: min(86vh, 820px); display: flex; align-items: center; color: #fff;
  background: radial-gradient(1200px 600px at 70% 110%, rgba(91,61,245,.35), transparent 60%), radial-gradient(900px 500px at 10% -10%, rgba(63,123,255,.25), transparent 60%), #05070f; }
.hx-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity 1.2s ease; }
.hx-vid.on { opacity: 1; }
.hx-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5,7,15,.55) 0%, rgba(5,7,15,.35) 40%, rgba(5,7,15,.92) 100%), radial-gradient(55% 50% at 50% 50%, rgba(5,7,15,.62), rgba(5,7,15,.25) 70%, rgba(5,7,15,.7)); }
.hx-in { text-align: center; padding-top: 72px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: center; }
.hx-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .01em;
  color: #dfe4ff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); }
.hx-kicker i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: hxPing 2s infinite; }
.hx-title { margin: 26px 0 0; font-size: clamp(44px, 8.4vw, 112px); line-height: .98; font-weight: 800; letter-spacing: -.045em; color: #fff; text-wrap: balance; }
.hx-title span { display: block; }
.hx-l2 { background: linear-gradient(92deg, #a78bfa 0%, #60a5fa 45%, #34d399 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.hx-l1, .hx-sub, .hx-note { text-shadow: 0 2px 24px rgba(0,0,0,.55); }
.hx-sub { max-width: 660px; margin: 26px auto 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: #c9cfe6; }
.hx-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.btn.hx-primary { background: #fff; color: #0b0f1f; border-color: #fff; font-weight: 700; padding-inline: 28px; box-shadow: 0 12px 36px rgba(255,255,255,.18); }
.btn.hx-primary:hover { background: #e9ecff; color: #0b0f1f; }
.btn.hx-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.35); font-weight: 700; padding-inline: 28px; backdrop-filter: blur(6px); }
.btn.hx-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.hx-note { margin: 18px 0 0; font-size: 13px; color: #98a0bf; }
.hx-down { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255,255,255,.4); }
.hx-down span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: hxScroll 1.8s infinite; }
@keyframes hxPing { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } }
@keyframes hxScroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .hx-kicker i, .hx-down span { animation: none; } .hx-vid { transition: none; } }
@media (max-width: 640px) { .hx { min-height: 78vh; } .hx-in { padding-top: 56px; padding-bottom: 84px; } .hx-cta .btn { flex: 1 1 100%; } }

/* home: latest news grid */
.hx-newsgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.hx-newsgrid > li > a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.hx-newsgrid > li > a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 14px 34px rgba(17,24,39,.10); }
.hx-newsgrid b { font-size: 16.5px; line-height: 1.45; font-weight: 700; letter-spacing: -.01em; }
.hx-src { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-ink); }
.hx-read { margin-top: auto; font-size: 13px; color: var(--muted); }
.hx-newsgrid > li > a:hover .hx-read { color: var(--brand-ink); }
.hx-newsgrid .sk { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; }
.hx-newsgrid .sk span { display: block; height: 12px; border-radius: 6px; background: var(--surface-3); }
.hx-newsgrid .sk span:first-child { width: 35%; } .hx-newsgrid .sk span:last-child { width: 70%; }
.hx-newsnone { grid-column: 1 / -1; padding: 18px 0; }
@media (prefers-reduced-motion: reduce) { .hx-newsgrid > li > a { transition: none; } .hx-newsgrid > li > a:hover { transform: none; } }

/* ===================================================================== brand wordmark (ScanMarket360X) */
.brand-name { white-space: nowrap; }
.brand-name b { font-weight: 800; background: linear-gradient(92deg, #7b5cff, #3f7bff 60%, #12b5a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-side .brand-name b { background: none; color: #c7d2ff; -webkit-text-fill-color: currentColor; }

/* ===================================================================== tablets & small laptops (up to 1150px): the full menu
   does not fit next to search + bell + avatar, so the header uses the same ☰ drop-down menu as phones */
@media (max-width: 1150px) {
  .topbar-in { padding: 0 16px; gap: 10px; }
  .navtoggle { display: grid; }
  .mainnav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 2px; background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 12px 12px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 60px); overflow-y: auto; }
  .mainnav.open { display: flex; }
  .mainnav a, .mainnav a:not(.idx) { padding: 10px 12px; gap: 10px; font-size: 14.5px; }
  .mainnav a span, .mainnav a:not(.idx) span { display: inline; }
  .topbar .symsearch, .symsearch { flex: 1 1 auto; width: auto; min-width: 0; max-width: 420px; padding: 0 10px; cursor: text; }
  .topbar .symsearch:focus-within { width: auto; }
}
/* grid columns may shrink below their content (wide tables scroll inside their own box instead of widening the page) */
.cols > *, .cols-3 > *, .grid2 > *, .grid3 > *, .features > *, .stats > * { min-width: 0; }
/* phones: each condition stacks as "left side / comparison / right side", full-width fields, ✕ in the corner */
@media (max-width: 600px) {
  .crow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px 42px 10px 10px; }
  .crow > .rm { position: absolute; top: 8px; right: 6px; }
  .crow .opd { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
  .crow .opd select.t, .crow .opd select.o { flex: 1 1 calc(50% - 3px); min-width: 0; }
  .crow .opd select.f { flex: 1 1 0; max-width: none; min-width: 90px; }
  .crow select.op { width: 100%; max-width: none; }
  .cgroup-h select.seg { max-width: 100%; flex: 1 1 100%; }
}

/* ===================================================================== top menu: names always visible + big hover title */
.nav-tip { display: none; }
@media (min-width: 1151px) {
  .mainnav a { position: relative; }
  /* laptops: a small name under every icon instead of icon-only */
  .mainnav a:not(.idx) { flex-direction: column; justify-content: center; gap: 2px; padding: 4px 9px; min-height: 46px; font-size: 11.5px; line-height: 1.1; }
  .mainnav a:not(.idx) .nav-l { display: block; white-space: nowrap; }
  .nav-tip { display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, -4px); z-index: 90; width: max-content; max-width: 240px;
    padding: 10px 14px 11px; border-radius: 12px; background: #0f1630; color: #c9d2ee; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 14px 34px rgba(5,8,20,.35);
    font: 500 12.5px/1.4 var(--font); text-align: left; white-space: normal; letter-spacing: 0; pointer-events: none; }
  .nav-tip b { display: block; margin-bottom: 3px; color: #fff; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
  .nav-tip::before { content: ""; position: absolute; top: -6px; left: 50%; width: 11px; height: 11px; margin-left: -6px; background: #0f1630;
    border-left: 1px solid rgba(255,255,255,.12); border-top: 1px solid rgba(255,255,255,.12); transform: rotate(45deg); }
  /* shown only on hover (display:none otherwise, so the hidden bubbles never widen the page) */
  .mainnav a:hover .nav-tip, .mainnav a:focus-visible .nav-tip { display: block; transform: translate(-50%, 0); animation: navTip .16s ease .1s both; }
  /* the last items sit near the right edge: open the bubble leftwards */
  .mainnav a:nth-last-child(-n+2) .nav-tip { left: auto; right: 0; }
  .mainnav a:nth-last-child(-n+2):hover .nav-tip, .mainnav a:nth-last-child(-n+2):focus-visible .nav-tip { transform: none; }
  .mainnav a:nth-last-child(-n+2) .nav-tip::before { left: auto; right: 16px; }
}
@media (min-width: 1151px) and (max-width: 1280px) { .mainnav { gap: 0; } .mainnav a:not(.idx) { padding: 4px 6px; } .mainnav a.idx { padding: 8px 7px; } .topbar-in { gap: 12px; } }
@media (min-width: 1900px) { .mainnav a:not(.idx) { flex-direction: row; gap: 7px; min-height: 0; padding: 8px 12px; font-size: 14px; } }
@keyframes navTip { from { opacity: 0; margin-top: -4px; } to { opacity: 1; margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .mainnav a:hover .nav-tip, .mainnav a:focus-visible .nav-tip { animation: none; } }
