/* base reset (the hosted page has no wrapper of its own) */
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Layout: navy command bar with search on top; home = market cockpit (hero index, internals, heatmap, movers, news);
   stock view = full analysis window (chart workstation, then position / signals / liquidity / levels, news last). */
:root {
  --bg: #F3F6FC;
  --panel: #FFFFFF;
  --panel-2: #EEF2FA;
  --line: #DAE2F0;
  --ink: #0A1A3A;
  --muted: #5A6B8E;
  --navy: #0A2463;
  --blue: #1D4ED8;
  --blue-soft: #DCE6FF;
  --orange: #FF7A1A;
  --orange-soft: #FFE9D9;
  --up: #0B9B6B;
  --down: #E0424A;
  --flat: #8A97B2;
  --bar-ink: #FFFFFF;
  --shadow: 0 1px 2px rgba(10, 36, 99, .06), 0 8px 24px rgba(10, 36, 99, .06);
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 14px;
  --r-sm: 8px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060E22; --panel: #0C1833; --panel-2: #112042; --line: #1D2D55; --ink: #E7EDFB; --muted: #8C9CC2;
    --navy: #071A49; --blue: #5B8CFF; --blue-soft: #16295A; --orange: #FF8A33; --orange-soft: #3A2414;
    --up: #2BD394; --down: #FF6B70; --flat: #6F7EA3; --bar-ink: #FFFFFF;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #060E22; --panel: #0C1833; --panel-2: #112042; --line: #1D2D55; --ink: #E7EDFB; --muted: #8C9CC2;
  --navy: #071A49; --blue: #5B8CFF; --blue-soft: #16295A; --orange: #FF8A33; --orange-soft: #3A2414;
  --up: #2BD394; --down: #FF6B70; --flat: #6F7EA3; --bar-ink: #FFFFFF;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--navy); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.num, .mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--flat); }

/* ---------- command bar ---------- */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--navy); color: var(--bar-ink); }
.bar-in { max-width: 1320px; margin-inline: auto; display: flex; align-items: center; gap: 18px; padding-block: 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bar-ink); flex: none; }
.brand-word { font-family: var(--f-display); font-weight: 800; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.brand-word b { color: #FF8A33; font-weight: 800; }
.brand-sub { font-family: var(--f-display); font-weight: 400; font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; opacity: .7; display: block; margin-top: 4px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.search { position: relative; flex: 1; max-width: 560px; margin-left: auto; }
.search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; padding: 0 16px 0 42px; font: inherit; font-size: 15px; transition: background .2s, border-color .2s; }
.search input::placeholder { color: rgba(255,255,255,.6); }
.search input:focus { outline: none; background: rgba(255,255,255,.14); border-color: #FF8A33; }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; opacity: .7; }
.search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: 11px; padding: 2px 6px; border: 1px solid rgba(255,255,255,.25); border-radius: 5px; opacity: .7; }
.results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); max-height: min(70vh, 460px); overflow: auto; padding: 6px; }
.res { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.res[aria-selected="true"], .res:hover { background: var(--panel-2); }
.res .tk { font-family: var(--f-display); font-weight: 600; font-size: 13px; color: var(--blue); }
.res .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res .nm small { display: block; color: var(--muted); font-size: 12px; }
.res .px { text-align: right; font-family: var(--f-mono); font-size: 13px; }
.res-empty { padding: 14px; color: var(--muted); }

/* ticker tape */
.tape { overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.18); }
.tape-track { display: flex; gap: 28px; width: max-content; padding-block: 7px; font-family: var(--f-mono); font-size: 12px; animation: tape 70s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape a { text-decoration: none; display: inline-flex; gap: 8px; white-space: nowrap; }
.tape a b { color: #fff; font-weight: 600; }
.tape .up { color: #4BE3A8; } .tape .down { color: #FF8D91; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- page ---------- */
.wrap { max-width: 1320px; margin-inline: auto; padding-block: 22px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-family: var(--f-display); font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: .01em; }
.sub { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-2 { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 980px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--muted); transition: background .15s, color .15s, border-color .15s, transform .15s; }
.chip:hover { color: var(--ink); border-color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip.or[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #1A0D02; }
.chip .sw { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.chip.pop { animation: pop .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop { 40% { transform: scale(1.12); } }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.pill.up { background: color-mix(in srgb, var(--up) 14%, transparent); }
.pill.down { background: color-mix(in srgb, var(--down) 14%, transparent); }
.pill.flat { background: color-mix(in srgb, var(--flat) 18%, transparent); }
.pill.or { background: var(--orange-soft); color: var(--orange); }
.pill.bl { background: var(--blue-soft); color: var(--blue); }
.foot { color: var(--muted); font-size: 12px; line-height: 1.6; border-top: 1px solid var(--line); padding-top: 16px; }
.foot a { color: var(--blue); }

/* ---------- home hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.hero-l { padding: 22px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(160deg, var(--navy), color-mix(in srgb, var(--navy) 75%, var(--blue))); color: #fff; position: relative; overflow: hidden; }
.hero-l::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255, 138, 51, .16); }
.hero-l .eyebrow { color: #FFB27A; }
.big { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.01em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-chg { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-family: var(--f-mono); font-size: 14px; }
.hero-chg .pill.down { background: rgba(255, 107, 112, .18); color: #FFB0B3; }
.hero-chg .pill.up { background: rgba(43, 211, 148, .18); color: #8FF0C9; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; font-size: 12px; position: relative; z-index: 1; }
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats span { opacity: .65; }
.hero-stats b { font-family: var(--f-mono); font-weight: 600; font-size: 13px; }
.spark-wrap { position: relative; z-index: 1; width: 100%; height: 70px; }
.spark { display: block; width: 100%; height: 100%; overflow: visible; }
.spark-dot { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #FF8A33; box-shadow: 0 0 0 3px rgba(10, 36, 99, .9); }
.spark-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255, 138, 51, .55); animation: ping 2.2s cubic-bezier(.2,.8,.2,1) infinite; }
.spark-dot.in { animation: dotin .5s 1.45s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
@keyframes dotin { from { transform: scale(0); } }
.hero-r { padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.chart-box { width: 100%; position: relative; }
.chart-box.h-hero { height: 300px; }
.take { font-size: 15px; line-height: 1.55; margin: 0; max-width: 70ch; }
.take b { font-weight: 700; }

/* index cards */
.idx-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.idx { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); text-decoration: none; transition: transform .2s, border-color .2s; }
a.idx:hover { transform: translateY(-2px); border-color: var(--blue); }
.idx .lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.idx .v { font-family: var(--f-display); font-weight: 600; font-size: 22px; font-variant-numeric: tabular-nums; }
.idx .c { font-family: var(--f-mono); font-size: 12.5px; display: flex; gap: 10px; }

/* internals */
.breadth { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--panel-2); }
.breadth i { display: block; height: 100%; transform-origin: left; animation: grow 1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { transform: scaleX(0); } }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 12px; }
.kv div { display: flex; flex-direction: column; gap: 2px; }
.kv span { font-size: 12px; color: var(--muted); }
.kv b { font-family: var(--f-display); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; }
.meter { height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--blue); border-radius: 999px; transform-origin: left; animation: grow 1.1s cubic-bezier(.2,.8,.2,1) both; }
.meter.or i { background: var(--orange); }

/* heatmap */
.heat { position: relative; width: 100%; height: 420px; border-radius: 10px; overflow: hidden; }
@media (max-width: 600px) { .heat { height: 520px; } }
.cell { position: absolute; border: 1px solid var(--panel); border-radius: 4px; overflow: hidden; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 2px; animation: cellin .6s cubic-bezier(.2,.8,.2,1) both; transition: filter .15s; }
.cell:hover { filter: brightness(1.12); z-index: 2; }
.cell b { font-family: var(--f-display); font-weight: 600; font-size: 12px; line-height: 1.1; }
.cell span { font-family: var(--f-mono); font-size: 11px; opacity: .92; }
.cell.sm b { font-size: 9.5px; } .cell.sm span { display: none; } .cell.xs b { display: none; }
.sec-lbl { position: absolute; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); pointer-events: none; padding: 3px 5px; z-index: 3; }
@keyframes cellin { from { transform: scale(.6); } }
.legend-scale { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); font-family: var(--f-mono); }
.legend-scale i { width: 140px; height: 8px; border-radius: 999px; }

/* tables */
.tbl-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 6px 8px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: none; }
table.t .r { text-align: right; }
table.t tbody tr.go { cursor: pointer; }
table.t tbody tr.go:hover td { background: var(--panel-2); }
.tk-cell { font-family: var(--f-display); font-weight: 600; font-size: 12.5px; color: var(--blue); }
.nm-cell { color: var(--muted); font-size: 12.5px; }
@media (max-width: 560px) { .hide-sm { display: none; } }

/* flows */
.flows svg text { fill: var(--muted); font-size: 11px; font-family: var(--f-body); }
.flows svg .strong { fill: var(--ink); font-weight: 700; }

/* macro */
.macro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.macro div { background: var(--panel-2); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.macro span { font-size: 11.5px; color: var(--muted); }
.macro b { font-family: var(--f-display); font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; }
.macro small { font-size: 11px; color: var(--muted); }

/* news */
.news { display: flex; flex-direction: column; }
.ni { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ni:last-child { border-bottom: none; }
.ni .dt { font-family: var(--f-mono); font-size: 11px; color: var(--muted); line-height: 1.3; padding-top: 2px; }
.ni .dt b { display: block; font-family: var(--f-display); font-size: 17px; color: var(--ink); font-weight: 600; }
.ni a.h { font-weight: 700; text-decoration: none; line-height: 1.35; }
.ni a.h:hover { color: var(--blue); }
.ni p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ni .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.sig { border-radius: 999px; padding: 1px 8px; font-weight: 700; font-size: 11px; border: 1px solid currentColor; }
.sig.Positive { color: var(--up); } .sig.Negative { color: var(--down); } .sig.Watch { color: var(--orange); }
.cal td:first-child { font-family: var(--f-mono); font-size: 12px; color: var(--orange); white-space: nowrap; font-weight: 600; }

/* ---------- stock view ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; cursor: pointer; background: none; border: none; padding: 0; }
.back:hover { color: var(--blue); }
.sv-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; }
@media (max-width: 720px) { .sv-head { grid-template-columns: minmax(0, 1fr); } }
.sv-tk { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 5vw, 46px); letter-spacing: .02em; line-height: 1; color: var(--navy); }
:root[data-theme="dark"] .sv-tk { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sv-tk { color: var(--ink); } }
.sv-nm { font-size: 15px; color: var(--muted); margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sv-px { text-align: right; }
@media (max-width: 720px) { .sv-px { text-align: left; } }
.sv-px .big { color: var(--ink); }
.sv-px .hero-chg { justify-content: flex-end; margin-top: 8px; }
@media (max-width: 720px) { .sv-px .hero-chg { justify-content: flex-start; } }
.sv-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ws { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.tool-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tool-group > span { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.chart-main { height: 440px; position: relative; }
@media (max-width: 600px) { .chart-main { height: 330px; } }
.pane { position: relative; height: 140px; border-top: 1px solid var(--line); animation: panein .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes panein { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.wipe { animation: wipe 1s cubic-bezier(.65,0,.35,1) both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.lgd { position: absolute; left: 8px; top: 6px; z-index: 5; pointer-events: none; font-family: var(--f-mono); font-size: 11.5px; display: flex; flex-wrap: wrap; gap: 4px 12px; background: color-mix(in srgb, var(--panel) 82%, transparent); padding: 3px 8px; border-radius: 6px; max-width: calc(100% - 80px); }
.lgd b { font-weight: 600; }
.lgd .t { color: var(--muted); }
.ovr-more { position: relative; }
.note-line { font-size: 12px; color: var(--muted); margin: 0; }

/* position */
.pos { display: flex; flex-direction: column; gap: 16px; }
.pos-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 76px; gap: 10px; align-items: center; font-size: 13px; }
@media (max-width: 480px) { .pos-row { grid-template-columns: 92px minmax(0, 1fr) 64px; } }
.pos-row > span:first-child { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.pos-row > b { text-align: right; font-family: var(--f-mono); font-weight: 600; font-size: 12.5px; }
.track { position: relative; height: 10px; background: linear-gradient(90deg, color-mix(in srgb, var(--down) 30%, var(--panel-2)), var(--panel-2) 50%, color-mix(in srgb, var(--up) 30%, var(--panel-2))); border-radius: 999px; }
.track.neutral { background: var(--panel-2); }
.track .dot { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--orange); border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--orange), 0 2px 6px rgba(0,0,0,.2); left: 0; transition: left 1.1s cubic-bezier(.34,1.56,.64,1); }
.track .mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--line); }
.track-lbl { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); margin-top: 4px; }

/* gauge */
.gauge-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gauge { width: 100%; max-width: 300px; }
.gauge text { font-family: var(--f-body); font-size: 10px; font-weight: 700; fill: var(--muted); letter-spacing: .04em; }
.gauge .needle { transform-origin: 150px 150px; transform: rotate(-90deg); transition: transform 1.4s cubic-bezier(.34,1.56,.64,1); }
.verdict { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: .01em; }
.tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.tally div { background: var(--panel-2); border-radius: 10px; padding: 10px; text-align: center; }
.tally b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.tally span { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sigtag { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sigtag.Bullish { color: var(--up); } .sigtag.Bearish { color: var(--down); } .sigtag.Neutral { color: var(--flat); }

/* liquidity */
.liq-score { display: flex; align-items: center; gap: 16px; }
.ring { width: 96px; height: 96px; flex: none; }
.ring circle.fg { transition: stroke-dashoffset 1.3s cubic-bezier(.2,.8,.2,1); }
.ring text { font-family: var(--f-display); font-weight: 600; font-size: 22px; fill: var(--ink); }
.liq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.liq-list div { display: flex; flex-direction: column; gap: 1px; }
.liq-list span { font-size: 11.5px; color: var(--muted); }
.liq-list b { font-family: var(--f-mono); font-weight: 600; font-size: 14px; }

/* levels */
.ladder { display: flex; flex-direction: column; gap: 6px; }
.rung { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); font-size: 13px; animation: slidein .5s cubic-bezier(.2,.8,.2,1) both; }
.rung.now { background: var(--orange-soft); }
.rung .k { font-family: var(--f-display); font-weight: 600; font-size: 11px; }
.rung .k.R { color: var(--down); } .rung .k.S { color: var(--up); } .rung .k.N { color: var(--orange); }
.rung .p { font-family: var(--f-mono); font-weight: 600; }
.rung .d { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.rung .tch { font-size: 11px; color: var(--muted); }
@keyframes slidein { from { transform: translateX(-14px); } }

/* perf */
.perf { display: flex; flex-direction: column; gap: 8px; }
.pf { display: grid; grid-template-columns: 44px minmax(0, 1fr) 70px; gap: 10px; align-items: center; font-size: 12.5px; }
.pf .lbl { font-weight: 700; color: var(--muted); font-family: var(--f-mono); }
.pf .bars { position: relative; height: 22px; }
.pf .bars .zero { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.pf .bars i { position: absolute; height: 9px; border-radius: 3px; transform-origin: left center; animation: grow .9s cubic-bezier(.2,.8,.2,1) both; }
.pf .bars i.neg { transform-origin: right center; }
.pf .bars i.s { top: 1px; } .pf .bars i.m { top: 12px; opacity: .55; }
.pf b { text-align: right; font-family: var(--f-mono); font-weight: 600; }

.ind-table td:nth-child(2) { font-family: var(--f-mono); }

/* language button */
.lang { flex: none; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.lang:hover { background: rgba(255,138,51,.18); border-color: #FF8A33; }
.lang:active { transform: scale(.96); }
.lang[lang="ar"] { font-family: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif; }
.lang[lang="en"] { font-family: var(--f-body); }
@media (max-width: 560px) { .bar-in { flex-wrap: wrap; } .search { order: 3; flex-basis: 100%; max-width: none; } .lang { margin-left: auto; height: 36px; } }

/* beta */
.brows { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.brow { background: var(--panel-2); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; animation: slidein .5s cubic-bezier(.2,.8,.2,1) both; }
.bhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bhead > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.bname { font-family: var(--f-display); font-weight: 600; font-size: 14px; }
.bhead small { flex-basis: 100%; color: var(--muted); font-size: 12px; line-height: 1.4; }
.bbig { display: flex; align-items: baseline; gap: 4px; flex: none; }
.beta-sym { font-family: var(--f-display); color: var(--orange); font-size: 18px; font-weight: 600; }
.bval { font-family: var(--f-display); font-weight: 600; font-size: 28px; font-variant-numeric: tabular-nums; }
.bscale { position: relative; padding-bottom: 16px; }
.btrack { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 30%, var(--panel)), var(--panel) 50%, color-mix(in srgb, var(--orange) 45%, var(--panel))); }
.bone { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--ink); opacity: .5; }
.bdot { position: absolute; top: 50%; left: 16.67%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--orange); border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--orange), 0 3px 10px color-mix(in srgb, var(--orange) 45%, transparent); transition: left 1.3s cubic-bezier(.34,1.56,.64,1); }
.bticks span { position: absolute; top: 14px; transform: translateX(-50%); font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }

/* ---------- Arabic / right-to-left ---------- */
:root[lang="ar"] { --f-display: "Alexandria", "IBM Plex Sans Arabic", "Unbounded", system-ui, sans-serif; --f-body: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif; }
:root[lang="ar"] .brand-word { font-family: "Unbounded", "Arial Black", system-ui, sans-serif; }
:root[lang="ar"] .brand-sub { font-family: var(--f-body); letter-spacing: 0; font-size: 11px; font-weight: 600; }
[dir="rtl"] .eyebrow, [dir="rtl"] h2, [dir="rtl"] .dd-sec h3, [dir="rtl"] .tool-group > span, [dir="rtl"] table.t th, [dir="rtl"] .tally span, [dir="rtl"] .sigtag, [dir="rtl"] .sec-lbl, [dir="rtl"] .cd .kind, [dir="rtl"] .gauge text { letter-spacing: 0; text-transform: none; }
[dir="rtl"] body { line-height: 1.7; }
[dir="rtl"] .search svg { left: auto; right: 15px; }
[dir="rtl"] .search input { padding: 0 42px 0 16px; }
[dir="rtl"] .search kbd { right: auto; left: 12px; }
[dir="rtl"] .search { margin-left: 0; margin-right: auto; }
[dir="rtl"] .sv-px { text-align: left; }
@media (max-width: 720px) { [dir="rtl"] .sv-px { text-align: right; } }
[dir="rtl"] table.t th, [dir="rtl"] table.t td { text-align: right; padding: 8px 0 8px 8px; }
[dir="rtl"] table.t .r { text-align: left; }
[dir="rtl"] .dd { margin-left: 0; margin-right: auto; }
[dir="rtl"] .dd-panel { right: auto; left: 0; transform-origin: top left; }
@media (max-width: 720px) { [dir="rtl"] .dd { margin-right: 0; } [dir="rtl"] .dd-panel { left: auto; right: 0; transform-origin: top right; } }
[dir="rtl"] .pos-row > b, [dir="rtl"] .pf b, [dir="rtl"] .cd b, [dir="rtl"] .ua .rv, [dir="rtl"] .ua .mv, [dir="rtl"] .res .px { text-align: left; }
[dir="rtl"] .hero-l::after { right: auto; left: -60px; }
[dir="rtl"] .rate-tiles div::before { left: auto; right: 0; }
[dir="rtl"] details.how ol { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .lang { margin-left: 0; }
@media (max-width: 560px) { [dir="rtl"] .lang { margin-left: 0; margin-right: auto; } }
/* charts, scales and numbers keep left-to-right reading */
.tape, .chart-box, .chart-main, .pane, .heat, .corridor, .trk, .track, .track-lbl, .flows svg, .perf .bars, .gauge, .breadth, .spark-wrap, .meter, .bscale, .big, .num, .mono, .hero-chg, .lgd, .cd b, .bval, .kv b, .macro b, .rate-tiles b, .idx .v, .liq-list b, .rung .p, .rung .d, .ua .rv, .ua .mv, .tally b, .res .px { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .hero-chg { justify-content: flex-start; flex-direction: row; }
[dir="rtl"] .sv-px .hero-chg { justify-content: flex-start; }
[dir="rtl"] .big, [dir="rtl"] .kv b, [dir="rtl"] .macro b, [dir="rtl"] .rate-tiles b, [dir="rtl"] .idx .v, [dir="rtl"] .liq-list b, [dir="rtl"] .tally b { text-align: right; }
[dir="rtl"] .sv-px .big { text-align: left; }

/* rates */
.rate-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .rate-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rate-tiles div { background: var(--panel-2); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden; }
.rate-tiles div::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tile, var(--blue)); transform-origin: top; animation: grow-y .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow-y { from { transform: scaleY(0); } }
.rate-tiles span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.rate-tiles b { font-family: var(--f-display); font-weight: 600; font-size: 24px; font-variant-numeric: tabular-nums; }
.corridor { position: relative; height: 112px; margin-top: 4px; }
.corridor .axis { position: absolute; left: 0; right: 0; top: 62px; height: 2px; background: var(--line); }
.corridor .tick { position: absolute; top: 70px; transform: translateX(-50%); font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
.corridor .band { position: absolute; top: 46px; height: 34px; border-radius: 8px; background: linear-gradient(90deg, color-mix(in srgb, var(--orange) 55%, transparent), var(--orange)); box-shadow: 0 6px 18px color-mix(in srgb, var(--orange) 35%, transparent); transform-origin: center; animation: grow .9s .2s cubic-bezier(.34,1.56,.64,1) both; }
.corridor .mk { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 700; white-space: nowrap; animation: drop .6s cubic-bezier(.34,1.56,.64,1) both; }
.corridor .mk i { width: 2px; height: 26px; background: currentColor; display: block; }
.corridor .mk.low { top: 84px; flex-direction: column-reverse; }
@keyframes drop { from { transform: translate(-50%, -12px); } }
.corridor .gap { position: absolute; top: 58px; height: 10px; border: 2px dashed var(--blue); border-top: none; border-radius: 0 0 6px 6px; animation: grow .9s .6s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
.ladder-cd { display: flex; flex-direction: column; gap: 8px; position: relative; }
.cd { display: grid; grid-template-columns: 44px minmax(0, 1fr) 62px; gap: 10px; align-items: center; animation: slidein .5s cubic-bezier(.2,.8,.2,1) both; }
.cd .bk { width: 44px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; font-size: 10px; color: #fff; background: var(--navy); letter-spacing: .04em; }
.cd .bk.misr { background: #9B1C31; } .cd .bk.cib { background: #1D4ED8; } .cd .bk.nbe { background: #0F5132; } .cd .bk.ref { background: var(--flat); } .cd .bk.cbe { background: var(--orange); color: #1A0D02; }
.cd .meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cd .meta .top { display: flex; gap: 8px; align-items: baseline; font-size: 13px; font-weight: 700; min-width: 0; }
.cd .meta .top span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd .meta small { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.cd .trk { position: relative; height: 8px; border-radius: 999px; background: var(--panel-2); }
.cd .trk i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; transform-origin: left; animation: grow 1.1s cubic-bezier(.2,.8,.2,1) both; }
.cd .trk .ref { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px dashed var(--blue); }
.cd b { text-align: right; font-family: var(--f-display); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.cd .kind { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; }
.kind.Fixed { background: var(--blue-soft); color: var(--blue); } .kind.Variable { background: var(--orange-soft); color: var(--orange); } .kind.Descending { background: color-mix(in srgb, var(--down) 14%, transparent); color: var(--down); }
.cd-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.cd-legend i { display: inline-block; width: 14px; border-top: 2px dashed var(--blue); vertical-align: middle; margin-right: 6px; }

/* unusual activity */
.ua-list { display: flex; flex-direction: column; }
.ua { display: grid; grid-template-columns: 62px 74px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; animation: slidein .45s cubic-bezier(.2,.8,.2,1) both; }
.ua:hover { background: var(--panel-2); }
.ua:last-child { border-bottom: none; }
.ua .d { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.ua .tk-cell { font-size: 13px; }
.ua .lab { display: flex; flex-direction: column; min-width: 0; }
.ua .lab small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ua .rv { font-family: var(--f-display); font-weight: 600; font-size: 15px; text-align: right; white-space: nowrap; }
.ua .rv small { display: block; font-family: var(--f-body); font-size: 10.5px; color: var(--muted); font-weight: 600; }
.ua .mv { font-family: var(--f-mono); font-size: 12.5px; text-align: right; min-width: 62px; }
@media (max-width: 600px) { .ua { grid-template-columns: 52px minmax(0, 1fr) auto; } .ua .tk-cell { grid-column: 2; grid-row: 1; } .ua .lab { grid-column: 2; grid-row: 2; } .ua .rv { grid-column: 3; grid-row: 1 / 3; } .ua .mv { display: none; } .ua .d { grid-row: 1 / 3; } }
.uapill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.uapill i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.uapill.bull { color: var(--up); } .uapill.bull i { background: var(--up); box-shadow: 0 0 0 0 var(--up); animation: beacon 2s infinite; }
.uapill.bear { color: var(--down); } .uapill.bear i { background: var(--down); animation: beacon 2s infinite; }
.uapill.watch { color: var(--orange); } .uapill.watch i { background: var(--orange); animation: beacon 2s infinite; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.ua-empty { color: var(--muted); font-size: 13px; padding: 12px 0; }
details.how { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--panel-2); }
details.how summary { cursor: pointer; font-weight: 700; font-size: 13.5px; padding: 12px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
details.how summary::-webkit-details-marker { display: none; }
details.how summary::before { content: "+"; font-family: var(--f-display); color: var(--orange); width: 16px; display: inline-block; transition: transform .2s; }
details.how[open] summary::before { transform: rotate(45deg); }
details.how .how-body { padding: 0 0 14px; font-size: 13.5px; line-height: 1.6; display: flex; flex-direction: column; gap: 10px; max-width: 80ch; }
details.how .how-body p { margin: 0; }
details.how ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
details.how code { font-family: var(--f-mono); font-size: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.cmf { display: flex; flex-direction: column; gap: 6px; }
.cmf-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cmf-top b { font-family: var(--f-display); font-weight: 600; font-size: 22px; }

/* indicators dropdown */
.dd { position: relative; margin-left: auto; }
@media (max-width: 720px) { .dd { margin-left: 0; } }
.dd-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 12px 6px 14px; font-weight: 700; font-size: 13px; cursor: pointer; transition: border-color .15s, background .15s; }
.dd-btn:hover, .dd-btn[aria-expanded="true"] { border-color: var(--blue); }
.dd-btn[aria-expanded="true"] { background: var(--blue-soft); }
.dd-btn svg { width: 15px; height: 15px; flex: none; }
.dd-btn .chev { transition: transform .2s; }
.dd-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dd-btn .count { background: var(--orange); color: #1A0D02; border-radius: 999px; font-size: 11px; padding: 0 7px; min-width: 20px; text-align: center; font-family: var(--f-mono); line-height: 18px; }
.dd-btn .count.pop { animation: pop .35s cubic-bezier(.34,1.56,.64,1); }
.dd-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 15; width: min(580px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 48px rgba(10, 36, 99, .18); padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 18px; transform-origin: top right; animation: ddin .22s cubic-bezier(.2,.8,.2,1); max-height: min(70vh, 560px); overflow: auto; }
@media (max-width: 720px) { .dd-panel { left: 0; right: auto; transform-origin: top left; } }
@media (max-width: 560px) { .dd-panel { grid-template-columns: minmax(0, 1fr); } }
@keyframes ddin { from { transform: scale(.96) translateY(-6px); } }
.dd-sec { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dd-sec h3 { font-family: var(--f-display); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); margin: 2px 8px 6px; }
.dd-item { display: grid; grid-template-columns: 18px 10px minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.dd-item:hover { background: var(--panel-2); }
.dd-item input { accent-color: var(--blue); width: 16px; height: 16px; margin: 0; cursor: pointer; }
.dd-item .sw { width: 10px; height: 10px; border-radius: 50%; }
.dd-item small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.dd-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.dd-foot button { border: none; background: none; font-weight: 700; font-size: 13px; cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.dd-foot .ghost { color: var(--muted); }
.dd-foot .ghost:hover { color: var(--ink); background: var(--panel-2); }
.dd-foot .solid { background: var(--blue); color: #fff; padding: 7px 16px; border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tape { overflow-x: auto; }
}

/* ---------- sign-in screen (assets/auth.js) ---------- */
html.auth-locked .bar, html.auth-locked main, html.auth-locked footer { display: none !important; }
html.auth-locked body { background: var(--navy); }
.auth { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); color: var(--ink); font-family: var(--f-body); overflow-y: auto; animation: auth-in .45s cubic-bezier(.2,.8,.2,1); }
@keyframes auth-in { from { opacity: 0; } to { opacity: 1; } }
.auth-panel { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 0% 0%, #1D4ED8 0%, #0A2463 55%, #061640 100%); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 56px clamp(24px, 6vw, 80px); }
.auth-panel::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 2px solid rgba(255,122,26,.55); box-shadow: 0 0 0 40px rgba(255,122,26,.07), 0 0 0 90px rgba(255,122,26,.04); pointer-events: none; }
.auth-word { font-family: var(--f-display); font-weight: 800; font-size: 32px; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.auth-word b { color: #FF8A33; }
.auth-sub { font-family: var(--f-display); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; opacity: .7; margin-top: 8px; }
.auth-pitch { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; margin: 48px 0 24px; max-width: 16ch; }
.auth-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; font-size: 16px; }
.auth-list li { display: flex; gap: 12px; align-items: baseline; }
.auth-list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: #FF8A33; transform: translateY(-2px) rotate(45deg); }
.auth-fine { font-size: 13px; opacity: .65; margin: 0; }
.auth-side { position: relative; display: flex; align-items: center; justify-content: center; padding: 72px 24px 40px; }
.auth-lang { position: absolute; top: 20px; inset-inline-end: 20px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; }
.auth-lang[lang="ar"] { font-family: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif; }
.auth-lang:hover { border-color: var(--orange); }
.auth.again, .auth.again .auth-card { animation: none; }
.auth-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 28px; animation: auth-rise .5s .05s cubic-bezier(.2,.8,.2,1) both; }
@keyframes auth-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel-2); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.auth-tabs button { height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 700 14px var(--f-body); cursor: pointer; transition: background .2s, color .2s; }
.auth-tabs button[aria-selected="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(10,36,99,.12); }
.auth-card h2 { font-family: var(--f-display); font-weight: 600; font-size: 22px; margin: 0 0 18px; }
.auth-lead { color: var(--muted); line-height: 1.6; margin: 0 0 18px; }
.auth-google { width: 100%; height: 46px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); font: 700 15px var(--f-body); cursor: pointer; transition: border-color .2s, transform .15s; }
.auth-google svg { width: 20px; height: 20px; }
.auth-google:hover { border-color: var(--blue); }
.auth-google:active, .auth-primary:active { transform: scale(.98); }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form { display: grid; gap: 14px; }
.auth-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.auth-field input { height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: 500 16px var(--f-body); transition: border-color .2s, box-shadow .2s; }
.auth-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.auth-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink); cursor: pointer; }
.auth-check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); }
.auth-check a { color: var(--blue); }
.auth-primary { height: 48px; border: 0; border-radius: 12px; background: linear-gradient(90deg, #FF7A1A, #FF9A4D); color: #fff; font: 800 15px var(--f-body); letter-spacing: .01em; cursor: pointer; box-shadow: 0 6px 18px rgba(255,122,26,.3); transition: transform .15s, box-shadow .2s, filter .2s; }
.auth-primary:hover { filter: brightness(1.05); box-shadow: 0 8px 22px rgba(255,122,26,.38); }
.auth-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.auth-link { border: 0; background: none; padding: 4px 0; color: var(--blue); font: 600 14px var(--f-body); cursor: pointer; text-align: start; }
.auth-link:hover { text-decoration: underline; }
.auth-msg { margin: 0; min-height: 1.2em; font-size: 14px; line-height: 1.5; }
.auth-msg.err { color: var(--down); }
.auth button.busy, .auth button:disabled { opacity: .6; cursor: progress; }
@media (max-width: 860px) {
  .auth { display: block; }
  .auth-panel { padding: 28px 20px 24px; }
  .auth-pitch { margin: 18px 0 0; font-size: 22px; max-width: none; }
  .auth-list, .auth-fine, .auth-panel::after { display: none; }
  .auth-side { position: static; padding: 16px 16px 32px; align-items: flex-start; }
  .auth-panel { padding-inline-end: 130px; }
  .auth-lang { position: absolute; top: 24px; inset-inline-end: 16px; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
  .auth-card { padding: 22px 18px; }
}
[dir="rtl"].auth, .auth[dir="rtl"] { font-family: "IBM Plex Sans Arabic", var(--f-body); }
.auth[dir="rtl"] .auth-word { direction: ltr; text-align: right; }
.auth[dir="rtl"] .auth-pitch, .auth[dir="rtl"] h2 { font-family: "Alexandria", "IBM Plex Sans Arabic", sans-serif; }
.auth[dir="rtl"] .auth-sub { letter-spacing: 0; }
.auth[dir="rtl"] .auth-field input, .auth[dir="rtl"] .auth-tabs button, .auth[dir="rtl"] .auth-primary, .auth[dir="rtl"] .auth-link, .auth[dir="rtl"] .auth-google { font-family: "IBM Plex Sans Arabic", var(--f-body); }
.auth[dir="rtl"] input[type="email"], .auth[dir="rtl"] input[type="password"] { direction: ltr; text-align: right; }
.auth[dir="rtl"] .auth-panel::after { right: auto; left: -120px; }

/* ---------- account menu in the header ---------- */
.acct { position: relative; flex: none; }
.acct-btn { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #FF8A33; background: rgba(255,138,51,.15); color: #fff; font: 800 16px var(--f-display); cursor: pointer; transition: transform .2s, background .2s; }
.acct-btn:hover { background: rgba(255,138,51,.3); }
.acct-btn:active { transform: scale(.94); }
.acct-menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 40; width: min(300px, calc(100vw - 32px)); background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(10,36,99,.22); padding: 16px; display: grid; gap: 12px; animation: auth-rise .2s ease-out; }
.acct-who { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.acct-who small { color: var(--muted); }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; cursor: pointer; }
.acct-row input { width: 18px; height: 18px; accent-color: var(--orange); flex: none; }
.acct-status { color: var(--muted); font-size: 12px; min-height: 1em; }
.acct-status:empty { display: none; }
.acct-link { color: var(--blue); font-size: 14px; text-decoration: none; }
.acct-link:hover { text-decoration: underline; }
.acct-out { height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--ink); font: 700 14px var(--f-body); cursor: pointer; }
.acct-out:hover { border-color: var(--down); color: var(--down); }
@media (max-width: 560px) { .acct-btn { width: 36px; height: 36px; font-size: 14px; } .lang { margin-left: auto; } }
[dir="rtl"] .acct-menu { font-family: "IBM Plex Sans Arabic", var(--f-body); }

/* ---------- section tabs under the header ---------- */
.mainnav { background: var(--navy); border-top: 1px solid rgba(255,255,255,.08); }
.mainnav-in { max-width: 1320px; margin-inline: auto; display: flex; gap: 4px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.mainnav a { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px 11px; color: rgba(255,255,255,.68); text-decoration: none; font-weight: 700; font-size: 14px; transition: color .2s; }
.mainnav a svg { width: 14px; height: 14px; color: #FF8A33; }
.mainnav a:hover { color: #fff; }
.mainnav a[aria-current="page"] { color: #fff; }
.mainnav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #FF8A33; transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.mainnav a[aria-current="page"]::after { transform: scaleX(1); }
:root[lang="ar"] .mainnav a { font-family: "IBM Plex Sans Arabic", var(--f-body); }

/* ---------- My Launchpad ---------- */
.acct-loading { padding: 60px 0; text-align: center; color: var(--muted); }
.acct-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.acct-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 4vw, 36px); margin: 6px 0 4px; color: var(--navy); letter-spacing: -.01em; }
:root[data-theme="dark"] .acct-title { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .acct-title { color: var(--ink); } }
.subtabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; }
.subtab { flex: none; padding: 9px 16px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); text-decoration: none; transition: background .2s, color .2s; }
.subtab:hover { color: var(--ink); }
.subtab[aria-current="page"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(10,36,99,.12); }
.acct-body { display: flex; flex-direction: column; gap: 18px; animation: auth-rise .35s cubic-bezier(.2,.8,.2,1); }
.acct-banner { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--orange-soft); color: var(--ink); font-size: 14px; }
.acct-note { margin: 0; min-height: 1em; font-size: 13.5px; color: var(--muted); }
.acct-note:empty { display: none; }
.acct-note.ok { color: var(--up); }
.acct-note.err { color: var(--down); }
.acct-fine { margin: 0; font-size: 12.5px; color: var(--muted); }

/* watchlist */
.wl-add { position: relative; max-width: 520px; }
.wl-input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: 500 16px var(--f-body); }
.wl-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.wl-sugg { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 30; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(10,36,99,.18); padding: 6px; max-height: 340px; overflow-y: auto; }
.wl-opt { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 500 14px var(--f-body); text-align: start; cursor: pointer; }
.wl-opt:hover, .wl-opt:focus { background: var(--panel-2); outline: none; }
.wl-opt b { font-family: var(--f-mono); }
.wl-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-opt small { color: var(--muted); }
.wl-none { padding: 10px; color: var(--muted); font-size: 14px; }
.wl-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.wl-quick span { margin-inline-end: 4px; }
.wl-empty { text-align: center; padding: 28px 12px 12px; border-top: 1px dashed var(--line); }
.wl-empty b { font-family: var(--f-display); font-weight: 600; font-size: 18px; }
.wl-empty p { max-width: 520px; margin: 8px auto 0; color: var(--muted); line-height: 1.6; }
.wl-table td { padding-block: 10px; }
.wl-nm { font-size: 12.5px; color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-day { font-size: 11.5px; white-space: nowrap; }
.wl-ret { font-weight: 700; font-size: 15px; }
.wl-spark-cell { width: 110px; }
.wl-spark { display: block; width: 100px; height: 30px; }
.wl-range { position: relative; width: 120px; height: 6px; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--down) 45%, transparent), color-mix(in srgb, var(--up) 45%, transparent)); }
.wl-range i { position: absolute; top: 50%; width: 12px; height: 12px; margin-inline-start: -6px; border-radius: 50%; background: var(--panel); border: 3px solid var(--navy); transform: translateY(-50%); box-sizing: border-box; }
.wl-rlbl { display: flex; justify-content: space-between; width: 120px; font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.wl-flag { margin-inline-start: 6px; font-size: 12px; font-weight: 700; color: var(--orange); }
.wl-x { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; transition: color .2s, border-color .2s, transform .15s; }
.wl-x:hover { color: var(--down); border-color: var(--down); }
.wl-x:active { transform: scale(.9); }
.wl-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 12px; }
.wl-kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; background: var(--panel-2); min-width: 0; animation: auth-rise .45s cubic-bezier(.2,.8,.2,1) both; }
.wl-kpi:nth-child(2) { animation-delay: .04s; } .wl-kpi:nth-child(3) { animation-delay: .08s; } .wl-kpi:nth-child(4) { animation-delay: .12s; } .wl-kpi:nth-child(5) { animation-delay: .16s; }
.wl-kpi:nth-child(6) { animation-delay: .2s; } .wl-kpi:nth-child(7) { animation-delay: .24s; } .wl-kpi:nth-child(8) { animation-delay: .28s; } .wl-kpi:nth-child(9) { animation-delay: .32s; } .wl-kpi:nth-child(10) { animation-delay: .36s; }
.wl-kpi span { font-size: 12px; color: var(--muted); font-weight: 600; }
.wl-kpi b { font-family: var(--f-display); font-weight: 600; font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-kpi small { font-size: 11.5px; color: var(--muted); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; }
.wl-kpi.hero { background: linear-gradient(135deg, #0A2463, #1D4ED8); color: #fff; grid-row: span 2; justify-content: center; }
.wl-kpi.hero span, .wl-kpi.hero small { color: rgba(255,255,255,.75); }
.wl-kpi.hero b { font-size: 34px; }
.wl-kpi.hero b.up { color: #5CF2B5; } .wl-kpi.hero b.down { color: #FF9A9E; } .wl-kpi.hero b.flat { color: #fff; }
.wl-chart { height: 300px; }
.wl-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.wl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wl-legend i { width: 14px; height: 3px; border-radius: 2px; }
.wl-bars { display: flex; flex-direction: column; gap: 6px; }
.wl-bar { display: grid; grid-template-columns: 58px minmax(0, 1fr) 64px; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); padding: 3px 4px; border-radius: 8px; font-size: 13px; }
.wl-bar:hover { background: var(--panel-2); }
.wl-bar .mono { text-align: end; }
.wl-track { position: relative; height: 12px; }
.wl-track::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line); }
.wl-track i { position: absolute; top: 0; height: 100%; border-radius: 4px; animation: grow .8s cubic-bezier(.2,.8,.2,1) both; }
.wl-track i.pos { left: 50%; background: var(--up); transform-origin: left; }
.wl-track i.neg { right: 50%; background: var(--down); transform-origin: right; }
.wl-mix { display: flex; flex-direction: column; gap: 10px; }
.wl-mixrow { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 13px; }
.wl-mixrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-mixrow b { text-align: end; font-size: 12.5px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .wl-kpi.hero { grid-row: auto; grid-column: 1 / -1; } .wl-nm { max-width: 150px; } .wl-kpi b { font-size: 19px; } .wl-kpi { padding: 12px; } .wl-chart { height: 240px; } .wl-mixrow { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 40px; } }

/* weekly report */
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; cursor: pointer; }
.sw-lbl { font-weight: 700; font-size: 15px; }
.switch { position: relative; flex: none; width: 50px; height: 30px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .25s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.switch input:checked + i { background: var(--orange); }
.switch input:checked + i::after { transform: translateX(20px); }
[dir="rtl"] .switch input:checked + i::after { transform: translateX(-20px); }
[dir="rtl"] .switch i::after { left: auto; right: 3px; }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--blue-soft); }
.rep-settings { display: flex; flex-direction: column; gap: 4px; padding: 4px 14px 10px; border-radius: 12px; background: var(--panel-2); transition: opacity .25s; }
.rep-settings.off { opacity: .45; pointer-events: none; }
.rep-settings .sw-lbl { font-weight: 600; font-size: 14px; }
.rep-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 4px; flex-wrap: wrap; }
.chip[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--f-body); }
.rep-what { display: grid; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.rep-what > div { display: flex; gap: 12px; align-items: flex-start; }
.rep-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--orange-soft); display: grid; place-items: center; font-size: 16px; }
.rep-what b { display: block; font-size: 14px; }
.rep-what small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.rep-phone { border-radius: 18px; border: 8px solid var(--navy); overflow: hidden; background: #fff; height: 560px; box-shadow: 0 18px 40px rgba(10,36,99,.18); }
.rep-frame { width: 100%; height: 100%; border: 0; display: block; }
.rep-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .rep-grid { grid-template-columns: minmax(0, 1fr); } .rep-phone { height: 480px; } }

/* account forms */
.f-form { display: grid; gap: 12px; }
.f-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.f-field input, #f-del { height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: 500 16px var(--f-body); box-sizing: border-box; }
.f-field input:focus, #f-del:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.f-static { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.f-static b { color: var(--ink); font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.f-btn { justify-self: start; height: 44px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font: 700 14px var(--f-body); cursor: pointer; transition: filter .2s, transform .15s; }
.f-btn:hover { filter: brightness(1.08); }
.f-btn:active { transform: scale(.97); }
.f-btn:disabled { opacity: .6; cursor: progress; }
.f-btn.ghost { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); }
.f-btn.danger { background: var(--down); }
.f-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.f-link { color: var(--blue); font-size: 14px; font-weight: 600; }
.f-more summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--blue); padding: 4px 0; }
.f-more[open] summary { margin-bottom: 12px; }
.danger-zone summary { color: var(--down); }
:root[lang="ar"] .acct-body input, :root[lang="ar"] .acct-body button, :root[lang="ar"] .subtab { font-family: "IBM Plex Sans Arabic", var(--f-body); }
:root[lang="ar"] .acct-title { font-family: "Alexandria", "IBM Plex Sans Arabic", sans-serif; }
[dir="rtl"] .wl-track i.pos { left: auto; right: 50%; transform-origin: right; }
[dir="rtl"] .wl-track i.neg { right: auto; left: 50%; transform-origin: left; }
[dir="rtl"] .wl-range { background: linear-gradient(270deg, color-mix(in srgb, var(--down) 45%, transparent), color-mix(in srgb, var(--up) 45%, transparent)); }

/* account menu items and sign-up pitch */
.acct-item { display: block; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.acct-item:hover { background: var(--panel-2); }
.auth-pitch em { font-style: normal; color: #FF8A33; }
.auth-hook { margin: -8px 0 28px; font-size: 18px; color: rgba(255,255,255,.85); font-weight: 600; }
.auth-perks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: -6px 0 16px; }
.auth-perks li { padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--orange-soft); color: var(--orange); font-size: 12.5px; font-weight: 700; }
.auth-perks li::before { content: "✓ "; }
.auth-card .auth-lead { margin: -8px 0 14px; font-size: 14px; }
.auth-teaser { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .auth-hook { margin: 6px 0 0; font-size: 15px; } }

/* ---------- landing page (assets/landing.js) ---------- */
html.booting .bar, html.booting main, html.booting footer { visibility: hidden; }
html.booting body, html.lp-on body { background: #040A1C; }
html.lp-on { overflow: hidden; }
.lp { position: fixed; inset: 0; z-index: 120; overflow-x: hidden; overflow-y: auto; color: #fff; background: #040A1C; font-family: var(--f-body); display: flex; flex-direction: column; isolation: isolate; animation: lp-in 1.1s ease both; }
@keyframes lp-in { from { opacity: 0; } }
.lp.leaving { animation: lp-out .52s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes lp-out { to { opacity: 0; transform: scale(1.05); filter: blur(8px); } }
.lp-stage, .lp-grade, .lp-grid, .lp-candles, .lp-grain, .lp-sweep { position: fixed; pointer-events: none; }
.lp-stage { inset: 0; z-index: -6; overflow: hidden; background: radial-gradient(120% 90% at 70% 10%, #12306f 0%, #061433 55%, #040A1C 100%); }
.lp-slide { position: absolute; inset: -6%; background-size: cover; background-repeat: no-repeat; opacity: 0; transition: opacity 1.8s ease; filter: saturate(.78) contrast(1.18) brightness(.72); will-change: transform, opacity; }
.lp-slide.on { opacity: 1; }
.lp-slide.kb0 { animation: kb0 10s ease-out both; }
.lp-slide.kb1 { animation: kb1 10s ease-out both; }
.lp-slide.kb2 { animation: kb2 10s ease-out both; }
@keyframes kb0 { from { transform: scale(1.2) translate(2%, 1.5%); } to { transform: scale(1.04) translate(-1%, -1%); } }
@keyframes kb1 { from { transform: scale(1.02) translate(-2%, 0); } to { transform: scale(1.16) translate(1.5%, -1.5%); } }
@keyframes kb2 { from { transform: scale(1.12) translate(3%, -1%); } to { transform: scale(1.12) translate(-3%, 1%); } }
.lp-grade { inset: 0; z-index: -5;
  background:
    linear-gradient(115deg, rgba(29,78,216,.38) 0%, rgba(4,10,28,0) 45%, rgba(255,122,26,.22) 100%),
    radial-gradient(ellipse 85% 70% at 50% 45%, rgba(4,10,28,.25) 0%, rgba(4,10,28,.72) 72%, rgba(4,10,28,.96) 100%),
    linear-gradient(180deg, rgba(4,10,28,.7) 0%, rgba(4,10,28,.12) 30%, rgba(4,10,28,.35) 62%, rgba(4,10,28,.96) 100%); }
.lp-grid { left: -20%; right: -20%; bottom: 0; height: 42vh; z-index: -4; opacity: .28;
  background-image: linear-gradient(rgba(255,138,51,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(91,140,255,.45) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(520px) rotateX(62deg); transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%); mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  animation: lp-grid 6s linear infinite; }
@keyframes lp-grid { to { background-position: 0 64px, 0 0; } }
.lp-candles { left: 0; right: 0; bottom: 92px; height: 30vh; z-index: -3; opacity: .5; -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 100%); mask-image: linear-gradient(to top, #000 30%, transparent 100%); }
.lp-candles svg { width: 100%; height: 100%; display: block; }
.lp-candle { opacity: 0; animation: lp-candle .5s ease-out forwards; }
@keyframes lp-candle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lp-trace { stroke-dasharray: 100; stroke-dashoffset: 100; animation: lp-draw 3.2s .6s cubic-bezier(.65,0,.35,1) forwards; filter: drop-shadow(0 0 6px rgba(255,138,51,.8)); }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }
.lp-grain { inset: -50%; z-index: -2; opacity: .13; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: lp-grain 1s steps(6) infinite; }
@keyframes lp-grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); } }
.lp-sweep { top: 0; bottom: 0; width: 40vw; left: -45vw; z-index: -1; background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.07) 45%, rgba(255,170,90,.12) 50%, transparent 60%); mix-blend-mode: screen; animation: lp-sweep 9s 2s ease-in-out infinite; }
@keyframes lp-sweep { 0% { transform: translateX(0); } 45%, 100% { transform: translateX(150vw); } }

.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(16px, 4vw, 48px); animation: lp-fade .9s .2s both; }
@keyframes lp-fade { from { opacity: 0; transform: translateY(-8px); } }
.lp-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.lp-mark { flex: none; border-radius: 12px; box-shadow: 0 8px 30px rgba(255,122,26,.25); }
.lp-mark-line { stroke-dasharray: 60; stroke-dashoffset: 60; animation: lp-markdraw 1.2s .5s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes lp-markdraw { to { stroke-dashoffset: 0; } }
.lp-word { display: block; font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: .08em; line-height: 1; direction: ltr; }
.lp-word b { color: #FF8A33; }
.lp-sub { display: block; font-family: var(--f-display); font-size: 9.5px; letter-spacing: .32em; opacity: .7; margin-top: 5px; }
.lp-top-r { display: flex; gap: 10px; align-items: center; }
.lp-lang, .lp-signin { height: 40px; padding: 0 16px; border-radius: 999px; font: 700 14px var(--f-body); cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.lp-lang { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lp-lang[lang="ar"] { font-family: "Alexandria", "IBM Plex Sans Arabic", sans-serif; }
.lp-signin { border: 1px solid rgba(255,138,51,.7); background: rgba(255,122,26,.12); color: #fff; }
.lp-lang:hover, .lp-signin:hover { background: rgba(255,138,51,.25); }
.lp-lang:active, .lp-signin:active { transform: scale(.96); }

.lp-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px clamp(16px, 5vw, 48px) 28px; max-width: 1040px; margin-inline: auto; width: 100%; box-sizing: border-box; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(4,10,28,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: var(--f-display); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; animation: lp-fade .9s .25s both; }
.lp-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #FF8A33; box-shadow: 0 0 0 0 rgba(255,138,51,.7); animation: lp-ping 2s infinite; }
@keyframes lp-ping { 70% { box-shadow: 0 0 0 10px rgba(255,138,51,0); } 100% { box-shadow: 0 0 0 0 rgba(255,138,51,0); } }
.lp-h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 6.4vw, 86px); line-height: 1.04; letter-spacing: -.025em; margin: 26px 0 0; text-shadow: 0 6px 40px rgba(0,0,0,.45); }
.lp-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.lp-w > span { display: inline-block; transform: translateY(110%); animation: lp-rise 1s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: inherit; }
@keyframes lp-rise { to { transform: none; } }
.lp-w.accent > span { background: linear-gradient(90deg, #FF7A1A, #FFB15C 60%, #FFD9A8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { max-width: 720px; margin: 24px 0 0; font-size: clamp(15.5px, 1.6vw, 19px); line-height: 1.65; color: rgba(255,255,255,.86); text-shadow: 0 2px 18px rgba(0,0,0,.6); animation: lp-up 1s 1.05s both; }
@keyframes lp-up { from { opacity: 0; transform: translateY(14px); } }
.lp-cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 36px; animation: lp-up 1s 1.3s both; }
.lp-cta { position: relative; display: inline-flex; align-items: center; gap: 16px; height: 68px; padding: 0 38px; border: 0; border-radius: 999px; cursor: pointer; overflow: hidden; color: #fff;
  background: linear-gradient(95deg, #FF6A00, #FF8A33 50%, #FFA65C); font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: .02em;
  box-shadow: 0 14px 44px rgba(255,122,26,.5), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s; }
.lp-cta::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid rgba(255,138,51,.8); animation: lp-ring 2.4s 2.4s infinite; pointer-events: none; }
@keyframes lp-ring { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.18, 1.45); opacity: 0; } }
.lp-cta::after { content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: lp-shine 4.5s 2s ease-in-out infinite; }
@keyframes lp-shine { 0% { left: -60%; } 30%, 100% { left: 130%; } }
.lp-cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 20px 60px rgba(255,122,26,.65), inset 0 1px 0 rgba(255,255,255,.35); }
.lp-cta:active { transform: scale(.97); }
.lp-cta:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.lp-cta-arrow { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(4,10,28,.25); font-size: 18px; transition: transform .3s; }
.lp-cta:hover .lp-cta-arrow { transform: translateX(5px); }
.lp[dir="rtl"] .lp-cta:hover .lp-cta-arrow { transform: translateX(-5px); }
.lp-cta-note { font-size: 13px; color: rgba(255,255,255,.7); }
.lp-pulse { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 9px 16px; border-radius: 12px; background: rgba(4,10,28,.5); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 14px; opacity: 0; transform: translateY(8px); transition: opacity .8s, transform .8s; min-height: 20px; }
.lp-pulse.in { opacity: 1; transform: none; }
.lp-pulse:empty { visibility: hidden; }
.lp-pulse b { font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .04em; }
.lp .mono { font-family: var(--f-mono); direction: ltr; unicode-bidi: embed; }
.lp .up { color: #3EE6A2; } .lp .down { color: #FF7479; }
.lp-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.lp-live i { width: 7px; height: 7px; border-radius: 50%; background: #3EE6A2; animation: lp-ping 2s infinite; box-shadow: 0 0 0 0 rgba(62,230,162,.6); }
.lp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 34px; width: 100%; max-width: 820px; border-top: 1px solid rgba(255,255,255,.14); animation: lp-up 1s 1.6s both; }
.lp-stat { padding: 16px 10px 0; display: flex; flex-direction: column; gap: 4px; }
.lp-stat + .lp-stat { border-inline-start: 1px solid rgba(255,255,255,.14); }
.lp-stat b { font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 2.4vw, 28px); color: #fff; }
.lp-stat span { font-size: 12.5px; color: rgba(255,255,255,.65); }
.lp-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 4vw, 48px) 14px; }
.lp-cap { display: flex; flex-direction: column; gap: 3px; animation: lp-cap .9s ease both; }
@keyframes lp-cap { from { opacity: 0; transform: translateX(-12px); } }
.lp-cap-kind { font-family: var(--f-display); font-size: 9.5px; letter-spacing: .26em; color: #FF8A33; }
.lp-cap-t { font-size: 14px; font-weight: 700; }
.lp-credit { font-size: 11px; color: rgba(255,255,255,.55); text-decoration: none; }
.lp-credit:hover { color: #fff; text-decoration: underline; }
.lp-dots { display: flex; gap: 6px; }
.lp-dots button { position: relative; width: 22px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.28); cursor: pointer; overflow: hidden; transition: width .4s; }
.lp-dots button::before { content: ""; position: absolute; inset: -10px 0; }
.lp-dots button[aria-current="true"] { width: 46px; }
.lp-dots button[aria-current="true"]::after { content: ""; position: absolute; inset: 0; background: #FF8A33; transform-origin: left; animation: grow 6.5s linear both; }
.lp-tape { overflow: hidden; border-top: 1px solid rgba(255,255,255,.1); background: rgba(4,10,28,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); direction: ltr; }
.lp-tape-track { display: flex; width: max-content; animation: tape 60s linear infinite; }
.lp-tk { display: inline-flex; gap: 8px; padding: 10px 18px; font-size: 12.5px; white-space: nowrap; border-inline-end: 1px solid rgba(255,255,255,.08); }
.lp-tk b { font-family: var(--f-mono); }
.lp-legal { margin: 0; padding: 8px 16px 10px; text-align: center; font-size: 11px; color: rgba(255,255,255,.45); background: rgba(4,10,28,.72); }
.lp[dir="rtl"] { font-family: "IBM Plex Sans Arabic", var(--f-body); }
.lp[dir="rtl"] .lp-h1 { font-family: "Alexandria", "IBM Plex Sans Arabic", sans-serif; font-weight: 800; letter-spacing: 0; line-height: 1.25; }
.lp[dir="rtl"] .lp-eyebrow, .lp[dir="rtl"] .lp-sub, .lp[dir="rtl"] .lp-cap-kind { font-family: "IBM Plex Sans Arabic", sans-serif; letter-spacing: .02em; }
.lp[dir="rtl"] .lp-cta { font-family: "Alexandria", "IBM Plex Sans Arabic", sans-serif; font-weight: 800; }
.lp[dir="rtl"] .lp-lead, .lp[dir="rtl"] .lp-lang, .lp[dir="rtl"] .lp-signin { font-family: "IBM Plex Sans Arabic", var(--f-body); }
.lp[dir="rtl"] .lp-cap { animation-name: lp-cap-r; }
@keyframes lp-cap-r { from { opacity: 0; transform: translateX(12px); } }
.lp[dir="rtl"] .lp-dots button[aria-current="true"]::after { transform-origin: right; }
@media (max-width: 720px) {
  .lp-top { padding: 14px 16px; }
  .lp-mark { width: 34px; height: 34px; }
  .lp-word { font-size: 15px; }
  .lp-sub { display: none; }
  .lp-lang, .lp-signin { height: 36px; padding: 0 12px; font-size: 13px; }
  .lp-h1 { margin-top: 18px; }
  .lp-cta { height: 60px; padding: 0 28px; font-size: 17px; }
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-stat:nth-child(3) { border-inline-start: 0; }
  .lp-candles { height: 22vh; bottom: 84px; opacity: .4; }
  .lp-foot { flex-direction: column; align-items: flex-start; }
  .lp-grid { height: 30vh; }
}
@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after, .lp { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .lp-w > span { transform: none; }
}

/* sign-in screen: photo behind the brand panel, and a way back to the landing page */
.auth-panel { background:
  radial-gradient(120% 90% at 0% 0%, rgba(29,78,216,.82) 0%, rgba(10,36,99,.9) 55%, rgba(6,22,64,.96) 100%),
  url("https://images.unsplash.com/photo-1674724545219-29637e41ae04?auto=format&fit=crop&q=60&w=1200") center / cover no-repeat, #0A2463; }
.auth-back { position: absolute; top: 20px; inset-inline-start: 20px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 700 14px var(--f-body); cursor: pointer; }
.auth-back:hover { border-color: var(--orange); }
@media (max-width: 860px) { .auth-panel { padding-top: 76px; padding-inline-end: 20px; } .auth-back, .auth-lang { top: 18px; } .auth-back { inset-inline-start: 16px; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; } }
@media (min-width: 721px) and (max-height: 960px) {
  .lp-top { padding-block: 16px; }
  .lp-center { padding-block: 8px 18px; }
  .lp-h1 { font-size: clamp(34px, 5.2vw, 70px); margin-top: 20px; }
  .lp-lead { margin-top: 18px; font-size: 17px; }
  .lp-cta-wrap { margin-top: 26px; }
  .lp-pulse { margin-top: 18px; }
  .lp-stats { margin-top: 22px; }
  .lp-stat { padding-top: 12px; }
}
