:root {
  --bg: #000; --panel: #06080b; --line: #1b212a; --amber: #ffa31a; --amber-d: #6b4209;
  --txt: #d9dde3; --mut: #6c7683; --up: #22d672; --dn: #ff4b4b; --cy: #3fd0ff; --warn: #f5e663;
  --hdr: #0d1a2e; --sel: #16263d;
  --font: "JetBrains Mono", "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--txt); font: 12px/1.4 var(--font); overflow: hidden; }
body { display: grid; grid-template-rows: 40px 24px 1fr 28px; height: 100vh; }
a { color: var(--cy); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; background: #000; color: #fff; border: 1px solid #2a323d; padding: 1px 5px; outline: 0; text-transform: uppercase; }
input:focus, select:focus { border-color: var(--amber); }
::selection { background: var(--amber); color: #000; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #050608; }
::-webkit-scrollbar-thumb { background: #232a34; }
::-webkit-scrollbar-thumb:hover { background: var(--amber-d); }

.up { color: var(--up); } .dn { color: var(--dn); } .am { color: var(--amber); } .mut { color: var(--mut); } .cy { color: var(--cy); } .warnc { color: var(--warn); }
.big { font-size: 16px; font-weight: 600; }
.logo { color: var(--amber); font-weight: 800; letter-spacing: .14em; }
.logo.big { font-size: 34px; letter-spacing: .2em; text-shadow: 0 0 24px rgba(255, 163, 26, .35); }

/* ---------- top bar ---------- */
#top { display: flex; align-items: center; gap: 14px; padding: 0 10px; background: #090b0e; border-bottom: 1px solid var(--line); }
.brand { white-space: nowrap; }
.brand .logo { font-size: 16px; }
.brand .sub { color: var(--mut); margin-left: 6px; font-size: 9px; letter-spacing: .35em; }
#cmdwrap { flex: 1; position: relative; display: flex; align-items: center; background: #000; border: 1px solid var(--amber-d); height: 28px; padding: 0 4px 0 8px; }
#cmdwrap:focus-within { border-color: var(--amber); box-shadow: 0 0 0 1px rgba(255, 163, 26, .15); }
.prompt { color: var(--amber); margin-right: 8px; font-weight: 800; }
#cmd { flex: 1; background: transparent; border: 0; color: #fff; font-size: 13px; caret-color: var(--amber); }
#cmd::placeholder { color: #3e4651; text-transform: none; }
.go { color: #000; background: var(--up); padding: 2px 10px; font-weight: 800; font-size: 11px; cursor: pointer; }
#suggest { position: absolute; left: -1px; right: -1px; top: 100%; background: #0a0d11; border: 1px solid var(--amber); z-index: 60; display: none; max-height: 340px; overflow: auto; }
#suggest div { padding: 4px 10px; display: flex; gap: 12px; cursor: pointer; }
#suggest div.on, #suggest div:hover { background: var(--sel); }
#suggest b { color: var(--amber); min-width: 64px; }
#suggest .mut { min-width: 32px; font-size: 10px; }
.stat { display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .1em; color: var(--mut); white-space: nowrap; }
.stat .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mut); display: inline-block; }
.stat.ok .dot { background: var(--up); box-shadow: 0 0 8px var(--up); animation: pulse 2s infinite; }
.stat.ok { color: var(--up); }
.stat.bad .dot { background: var(--dn); } .stat.bad { color: var(--dn); }
@keyframes pulse { 50% { opacity: .4; } }
.clocks { display: flex; gap: 12px; font-size: 11px; white-space: nowrap; }
.clocks b { color: var(--amber); font-weight: 600; margin-right: 3px; }

/* ---------- tape ---------- */
#tape { overflow: hidden; background: #050608; border-bottom: 1px solid var(--line); white-space: nowrap; position: relative; }
#tape-inner { display: inline-block; animation: tape 120s linear infinite; padding-top: 4px; }
#tape:hover #tape-inner { animation-play-state: paused; }
@keyframes tape { to { transform: translateX(-50%); } }
.ti { margin-right: 26px; cursor: pointer; font-size: 11px; }
.ti b { color: var(--amber); } .ti i { font-style: normal; } .ti .p { color: #fff; }

/* ---------- panes ---------- */
#panes { display: grid; gap: 2px; background: var(--line); padding: 2px; min-height: 0; }
#panes.l1 { grid-template: 1fr / 1fr; }
#panes.l2 { grid-template: 1fr / 1fr 1fr; }
#panes.l3 { grid-template: 1fr 1fr / 3fr 2fr; }
#panes.l3 .pane:first-child { grid-row: span 2; }
#panes.l4 { grid-template: 1fr 1fr / 1fr 1fr; }
.pane { background: var(--panel); display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.pane.active { outline: 1px solid var(--amber); outline-offset: -1px; z-index: 1; }
.pane.max { position: fixed; inset: 64px 0 28px 0; z-index: 30; }
.ph { height: 22px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 0; background: var(--hdr); border-bottom: 1px solid #1d3354; white-space: nowrap; overflow: hidden; user-select: none; }
.pane.active .ph { background: #14284a; }
.ph .pn { background: var(--amber); color: #000; font-weight: 800; padding: 0 7px; height: 100%; display: flex; align-items: center; }
.ph .ps { color: #fff; font-weight: 800; }
.ph .pf { color: var(--amber); font-weight: 800; }
.ph .pt { color: #9fb3cc; overflow: hidden; text-overflow: ellipsis; }
.ph button { background: none; border: 0; color: #7f93ad; padding: 0 5px; font-size: 13px; }
.ph button:hover { color: var(--amber); }
.sp { flex: 1; }
.pb { flex: 1; min-height: 0; overflow: auto; position: relative; }
.loading { color: var(--amber); padding: 20px; letter-spacing: .2em; }
.loading span { animation: pulse 1s infinite; }
.err { color: var(--dn); padding: 16px; line-height: 1.8; }

/* layout helpers */
.col { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chart { flex: 1; min-height: 120px; position: relative; overflow: hidden; }
.chart canvas { position: absolute; inset: 0; cursor: crosshair; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.grid2 > *, .grid3 > * { background: var(--panel); min-width: 0; }
.grid2.fill { height: calc(100% - 30px); }
.grid2.fill > .scroll { overflow: auto; }
.fill .col { height: 100%; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); }
.bar { display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-bottom: 1px solid var(--line); background: #080a0d; flex-wrap: wrap; flex: none; position: sticky; top: 0; z-index: 3; }
.bar button { background: #10151c; color: #9aa6b5; border: 1px solid #222a35; padding: 1px 7px; font-size: 11px; }
.bar button:hover { color: #fff; border-color: var(--amber-d); }
.bar button.on { background: var(--amber); color: #000; border-color: var(--amber); font-weight: 800; }
.bar .sep { width: 1px; height: 14px; background: #2a323d; margin: 0 6px; }
.bar .q b { color: #fff; }
.sh { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; color: var(--amber); font-weight: 800; letter-spacing: .08em; font-size: 11px; border-bottom: 1px solid var(--line); background: #0a0d11; }
.note { padding: 8px 10px; line-height: 1.6; }
.lg { margin-left: 10px; white-space: nowrap; }
.lg i { display: inline-block; width: 10px; height: 3px; vertical-align: middle; margin-right: 4px; }

/* tables */
table.t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.t th { position: sticky; top: 0; background: #0b0f14; color: var(--amber); text-align: right; font-weight: 600; padding: 3px 7px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; font-size: 11px; z-index: 2; }
.bar + .t th, .bar + div .t th { top: 0; }
.t td { padding: 2px 7px; text-align: right; white-space: nowrap; border-bottom: 1px solid #0d1116; }
.t .l { text-align: left; }
.t tbody tr:hover td { background: #0d1622; }
.t tr.click { cursor: pointer; }
.t.kv td { padding: 3px 8px; }
.t button.x { background: none; border: 0; color: #4a5361; }
.t button.x:hover { color: var(--dn); }
.spark { vertical-align: middle; }
.flash-up { animation: fu .7s; } .flash-dn { animation: fd .7s; }
@keyframes fu { from { background: rgba(34, 214, 114, .45); color: #fff; } }
@keyframes fd { from { background: rgba(255, 75, 75, .45); color: #fff; } }

/* kpis */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); flex: none; }
.kpi { background: #080a0e; padding: 7px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi label { color: var(--mut); font-size: 10px; letter-spacing: .1em; }
.kpi b { font-size: 17px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b small { font-size: 10px; color: var(--mut); }
.kpi span { font-size: 11px; color: var(--mut); }

/* help */
.help .hero { padding: 18px 14px 6px; display: flex; flex-direction: column; gap: 4px; }
.help-t td { text-align: left; }

/* heatmap */
.hmap { flex: 1; position: relative; overflow: hidden; }
.tile { position: absolute; border: 1px solid #000; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; color: #fff; line-height: 1.15; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); transition: background .6s; }
.tile:hover { outline: 2px solid var(--amber); outline-offset: -2px; z-index: 2; }
.tile b { font-weight: 800; } .tile .c, .tile .p { font-size: .72em; opacity: .9; }
.tile.small .p { display: none; } .tile.tiny .c { display: none; } .tile.tiny b { font-size: 8px; }
.legend { display: flex; } .legend i { font-style: normal; font-size: 9px; padding: 1px 5px; color: #fff; }

/* order book & tape */
.obwrap, .tasw { flex: 1; overflow: auto; min-height: 0; }
.ob td { padding: 1px 7px; }
.midrow td { background: #0f1520 !important; border-top: 1px solid #263246; border-bottom: 1px solid #263246; padding: 4px 7px; }
.imbbar { display: inline-block; width: 120px; height: 6px; background: var(--dn); vertical-align: middle; }
.imbbar.wide { width: 100%; margin-top: 4px; background: var(--up); }
.imbbar i { display: block; height: 100%; background: var(--up); }
tr.tb td:first-child { box-shadow: inset 2px 0 var(--up); } tr.ts td:first-child { box-shadow: inset 2px 0 var(--dn); }
tr.shark td { font-weight: 600; }
tr.whale td { font-weight: 800; background: rgba(255, 163, 26, .12); }
.bar input.min, .bar input.flt { width: 90px; }

/* corr */
.corr td, .corr th { text-align: center; padding: 3px 5px; }
.corr th.l { position: sticky; left: 0; }

/* bars */
.bars { padding: 6px 10px; }
.brow { display: grid; grid-template-columns: 60px 1fr 64px; gap: 8px; align-items: center; padding: 2px 0; }
.brow span:last-child { text-align: right; }
.btrack { height: 10px; background: #0f141b; } .btrack div { height: 100%; }
.mbar { display: inline-block; height: 8px; background: var(--amber); vertical-align: middle; opacity: .8; }

/* des */
.des-h { display: flex; align-items: baseline; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.desspark { padding: 8px 10px; } .desspark svg { width: 100%; height: 70px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px; }
.chips span, .chips a { border: 1px solid #263040; padding: 1px 7px; font-size: 11px; }
.desc { padding: 8px 10px; line-height: 1.6; color: #b9c0ca; white-space: pre-wrap; }
.addr { cursor: copy; color: var(--cy); }

/* fear */
.fng { text-align: center; padding: 16px 10px; }
.fngv { font-size: 52px; font-weight: 800; color: #fff; margin-top: -24px; }

/* gas */
.gasbars { display: flex; align-items: flex-end; gap: 2px; height: 160px; padding: 10px; }
.gasbars i { flex: 1; min-width: 2px; opacity: .85; }
.gasbars i:hover { opacity: 1; outline: 1px solid #fff; }

/* news */
.news { display: flex; flex-direction: column; }
.ni { display: grid; grid-template-columns: 34px 1fr auto 36px; gap: 2px 8px; padding: 5px 10px; border-bottom: 1px solid #0f1318; color: var(--txt); }
.ni:hover { background: #0d1622; text-decoration: none; }
.ni:hover .nt { color: var(--amber); }
.nn { color: var(--amber); } .nt { font-weight: 600; color: #fff; } .ns { color: var(--cy); font-size: 11px; } .na { color: var(--mut); text-align: right; }
.nb { grid-column: 2 / 5; color: var(--mut); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* portfolio */
.alloc { display: flex; height: 18px; margin: 6px 8px; gap: 1px; }
.alloc i { font-style: normal; font-size: 10px; color: #000; font-weight: 800; display: flex; align-items: center; justify-content: center; overflow: hidden; }

/* converter */
.conv { padding: 20px 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.conv input { font-size: 18px; padding: 4px 8px; }
.cr { flex-basis: 100%; margin-top: 10px; line-height: 1.8; }
.cx { max-width: 420px; }

/* footer function keys */
#fkeys { display: flex; align-items: center; gap: 3px; padding: 0 6px; background: #090b0e; border-top: 1px solid var(--line); overflow: hidden; }
#fkeys button { background: #141a22; border: 1px solid #222a35; border-bottom: 2px solid #c98012; color: var(--amber); padding: 1px 8px; font-size: 11px; font-weight: 600; white-space: nowrap; }
#fkeys button:hover { background: var(--amber); color: #000; }
#fkeys button i { font-style: normal; color: #6c7683; margin-right: 5px; font-weight: 400; }
#fkeys button:hover i { color: #000; }

/* toasts & boot */
#toasts { position: fixed; right: 12px; bottom: 40px; display: flex; flex-direction: column; gap: 6px; z-index: 100; }
.toast { background: #0d121a; border: 1px solid #2b3646; border-left: 3px solid var(--cy); padding: 8px 12px; max-width: 380px; transition: opacity .5s, transform .5s; box-shadow: 0 6px 20px rgba(0, 0, 0, .6); }
.toast.err { border-left-color: var(--dn); } .toast.warn { border-left-color: var(--warn); }
.toast b { color: var(--amber); margin-right: 6px; }
.toast.out { opacity: 0; transform: translateX(20px); }
#boot { position: fixed; inset: 0; background: #000; display: none; align-items: center; justify-content: center; text-align: center; z-index: 200; }
#boot.on { display: flex; }
.bootbar { width: 280px; height: 3px; background: #1a1f27; margin: 18px auto 0; overflow: hidden; }
.bootbar i { display: block; height: 100%; width: 40%; background: var(--amber); animation: boot 1.1s infinite ease-in-out; }
@keyframes boot { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

@media (max-width: 900px) {
  .clocks span:nth-child(n+3) { display: none; }
  #panes.l4, #panes.l3, #panes.l2 { grid-template: repeat(4, minmax(320px, 1fr)) / 1fr; overflow: auto; }
  #panes.l3 .pane:first-child { grid-row: auto; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { #tape-inner { animation-duration: 600s; } * { animation-iteration-count: 1 !important; } }

/* ---------- memes, whales, social ---------- */
.gold { color: #ffd700; }
tr.flw td { background: rgba(255, 215, 0, .09); }
tr.flw td:first-child { box-shadow: inset 3px 0 #ffd700; }
.fbtn { background: none; border: 1px solid #2a323d; color: #8a94a3; padding: 0 5px; line-height: 1.3; }
.fbtn:hover { color: #ffd700; border-color: #ffd700; }
.fbtn.on { color: #ffd700; border-color: #6b5a10; }
.soc { display: inline-block; font-size: 10px; font-weight: 800; color: #000; background: #9aa6b5; padding: 0 4px; margin-right: 3px; line-height: 1.4; }
.soc:hover { background: var(--amber); text-decoration: none; }
.ico { width: 14px; height: 14px; border-radius: 50%; vertical-align: -3px; margin-right: 5px; }
.lgd { margin-left: 8px; font-size: 10px; color: var(--mut); }
.lgd i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 3px 0 8px; vertical-align: -1px; }
.lg-w { background: var(--up); } .lg-s { background: var(--dn); } .lg-f { background: #ffd700; }
.kpis.k6 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.kpi .links { font-size: 12px; }
.dtr { height: 24%; min-height: 80px; overflow: auto; border-top: 1px solid var(--line); flex: none; }
.dsembed { width: 100%; height: 100%; border: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line); }
.card { background: var(--panel); display: flex; gap: 8px; align-items: center; padding: 6px 8px; cursor: pointer; }
.card:hover, .launch:hover { background: #0d1622; }
.card img, .launch img { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.launch { display: flex; gap: 8px; padding: 6px 8px; border-bottom: 1px solid #0f1318; cursor: pointer; line-height: 1.5; }
.wtabs { display: flex; gap: 2px; flex-wrap: wrap; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.wtabs button { background: #10151c; border: 1px solid #222a35; color: var(--txt); padding: 2px 8px; }
.wtabs button.on { border-color: var(--amber); color: var(--amber); }
.wtabs i { font-style: normal; color: #4a5361; margin-left: 6px; }
.wtabs i:hover { color: var(--dn); }
.form { padding-bottom: 10px; }
.form label { display: block; padding: 4px 10px; }
.form p { padding: 2px 10px; margin: 4px 0; line-height: 1.5; }
.form > button, .form label button { margin-left: 10px; }
.mini { background: #10151c; color: var(--amber); border: 1px solid #2a323d; padding: 1px 8px; font-size: 11px; font-weight: 600; }
.mini:hover { background: var(--amber); color: #000; }
button:disabled { opacity: .35; cursor: not-allowed; }
textarea { width: 100%; background: #000; color: var(--txt); border: 1px solid #2a323d; font: 11px var(--font); padding: 6px; resize: vertical; }
.kpis.k6 .kpi { padding: 4px 8px; }
.kpis.k6 .kpi b { font-size: 14px; }

/* =====================================================================
   THEME V2 · neon / gradients / bloom / juice
   ===================================================================== */
:root {
  --up: #2bff88; --dn: #ff3d6e; --amber: #ffb02e; --cy: #4fe3ff; --pink: #ff3dbb; --violet: #8b5cff;
  --grad: linear-gradient(90deg, #ffb02e, #ff3d8b 45%, #8b5cff);
  --grad-anim: linear-gradient(90deg, #ffb02e, #ff3d8b, #8b5cff, #4fe3ff, #ffb02e);
  --glass: linear-gradient(180deg, rgb(var(--d1) / .78), rgba(7, 8, 14, .92));
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  /* theme channels: a1/a2/a3 accents, d1/d2 dark tints (space-separated RGB for rgb(var() / alpha)) */
  --a1: 139 92 255; --a2: 255 61 139; --a3: 79 227 255; --d1: 20 14 40; --d2: 30 10 30; --base: #04040a; --ink: #c9b8ff;
}
/* ---------- themes: set on <body data-theme> by G.theme ---------- */
body[data-theme="matrix"] {
  --a1: 0 200 90; --a2: 120 255 60; --a3: 0 255 200; --d1: 4 22 12; --d2: 2 16 14; --base: #010603; --ink: #9dffc4;
  --violet: #00c85a; --pink: #78ff3c; --cy: #00ffc8; --amber: #d4ff3c;
  --grad: linear-gradient(90deg, #d4ff3c, #78ff3c 45%, #00c85a); --grad-anim: linear-gradient(90deg, #d4ff3c, #78ff3c, #00c85a, #00ffc8, #d4ff3c); }
body[data-theme="amber"] {
  --a1: 255 140 0; --a2: 255 190 60; --a3: 255 225 140; --d1: 26 16 4; --d2: 22 12 2; --base: #050300; --ink: #ffd39a;
  --violet: #ff8c00; --pink: #ffbe3c; --cy: #ffe18c; --amber: #ffa31a;
  --grad: linear-gradient(90deg, #ffe18c, #ffbe3c 45%, #ff8c00); --grad-anim: linear-gradient(90deg, #ffe18c, #ffbe3c, #ff8c00, #ff5a00, #ffe18c); }
body[data-theme="miami"] {
  --a1: 0 220 255; --a2: 255 80 200; --a3: 255 240 120; --d1: 8 18 36; --d2: 30 8 32; --base: #03050c; --ink: #a8f0ff;
  --violet: #00dcff; --pink: #ff50c8; --cy: #fff078; --amber: #ffb27a;
  --grad: linear-gradient(90deg, #00dcff, #ff50c8 50%, #ffb27a); --grad-anim: linear-gradient(90deg, #00dcff, #ff50c8, #ffb27a, #fff078, #00dcff); }
body[data-theme="blood"] {
  --a1: 220 20 40; --a2: 255 90 30; --a3: 255 170 120; --d1: 30 6 8; --d2: 26 8 4; --base: #060102; --ink: #ffb3a8;
  --violet: #dc1428; --pink: #ff5a1e; --cy: #ffaa78; --amber: #ff7a30;
  --grad: linear-gradient(90deg, #ffaa78, #ff5a1e 45%, #dc1428); --grad-anim: linear-gradient(90deg, #ffaa78, #ff5a1e, #dc1428, #8a0a1e, #ffaa78); }
body[data-theme="ice"] {
  --a1: 90 150 255; --a2: 160 220 255; --a3: 230 245 255; --d1: 10 18 34; --d2: 8 14 30; --base: #02040a; --ink: #cfe3ff;
  --violet: #5a96ff; --pink: #a0dcff; --cy: #e6f5ff; --amber: #9fc4ff;
  --grad: linear-gradient(90deg, #e6f5ff, #a0dcff 45%, #5a96ff); --grad-anim: linear-gradient(90deg, #e6f5ff, #a0dcff, #5a96ff, #7a5cff, #e6f5ff); }
/* theme picker swatches */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 8px; }
.themes button { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 7px 8px; border-radius: 9px; cursor: pointer;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .1); color: var(--txt); font: 600 11px var(--font); transition: transform .15s var(--spring), border-color .2s; }
.themes button i { display: block; width: 100%; height: 8px; border-radius: 4px; }
.themes button:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .3); }
.themes button.on { border-color: var(--pink); box-shadow: 0 0 0 2px rgb(var(--a2) / .25); }
body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgb(var(--a1) / .18), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgb(var(--a2) / .14), transparent 60%),
    radial-gradient(700px 400px at 60% 40%, rgb(var(--a3) / .05), transparent 70%), var(--base);
}
/* CRT scanlines + vignette; never blocks clicks */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, .45)); }
.up { color: var(--up); text-shadow: 0 0 8px rgba(43, 255, 136, .45); }
.dn { color: var(--dn); text-shadow: 0 0 8px rgba(255, 61, 110, .45); }

/* logo: animated gradient text with bloom */
.logo { background: var(--grad-anim); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgb(var(--a2) / .45)); animation: gradslide 6s linear infinite; }
@keyframes gradslide { to { background-position: 300% 0; } }

/* top bar + command line */
#top { background: linear-gradient(90deg, rgb(var(--d1) / .9), rgba(8, 8, 16, .9) 40%, rgb(var(--d2) / .9)); border-bottom: 1px solid transparent; border-image: var(--grad) 1; }
#cmdwrap { border-radius: 10px; border: 1px solid rgb(var(--a1) / .35); background: rgba(0, 0, 0, .55); transition: box-shadow .25s, border-color .25s; }
#cmdwrap:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px rgb(var(--a2) / .15), 0 0 24px rgb(var(--a1) / .35); }
.go { border-radius: 7px; background: var(--grad); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); transition: transform .15s var(--spring), filter .2s; }
.go:hover { transform: scale(1.08); filter: brightness(1.2); } .go:active { transform: scale(.94); }
#suggest { border-radius: 10px; border-color: var(--violet); background: rgb(var(--d1) / .96); box-shadow: 0 12px 40px rgba(0, 0, 0, .6), 0 0 30px rgb(var(--a1) / .25); animation: pop .18s var(--spring); }
#suggest div.on, #suggest div:hover { background: linear-gradient(90deg, rgb(var(--a2) / .22), transparent); }
.vibe { display: flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); transition: all .4s; }
.vibe label { font-size: 9px; letter-spacing: .2em; color: var(--mut); }
.vibe span { opacity: .8; font-weight: 600; }
.vibe.up { border-color: rgba(43, 255, 136, .4); box-shadow: 0 0 16px rgba(43, 255, 136, .25); }
.vibe.dn { border-color: rgba(255, 61, 110, .4); box-shadow: 0 0 16px rgba(255, 61, 110, .25); animation: pulse 2.4s infinite; }

/* ticker tape: glossy strip, glowing prices */
#tape { background: linear-gradient(90deg, rgb(var(--a1) / .12), rgb(var(--a2) / .08), rgb(var(--a3) / .1)); }
.ti { transition: transform .2s var(--spring); display: inline-block; } .ti:hover { transform: translateY(-1px) scale(1.06); }
.ti .p { text-shadow: 0 0 8px rgba(255, 255, 255, .25); }

/* panes: glass cards, gradient header, animated border when active */
#panes { background: transparent; gap: 6px; padding: 6px; }
.pane { background: var(--glass); border-radius: 12px; border: 1px solid rgb(var(--a1) / .18); overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: box-shadow .3s, border-color .3s; }
.pane.in { animation: paneIn .45s var(--spring) both; }
#panes .pane:nth-child(2) { animation-delay: .06s; } #panes .pane:nth-child(3) { animation-delay: .12s; } #panes .pane:nth-child(4) { animation-delay: .18s; }
@keyframes paneIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.pane.active { outline: none; border-color: transparent; box-shadow: 0 0 28px rgb(var(--a2) / .22), 0 10px 30px rgba(0, 0, 0, .5); }
.pane.active::before { content: ""; position: absolute; inset: 0; border-radius: 12px; padding: 1px; pointer-events: none; z-index: 5;
  background: var(--grad-anim); background-size: 300% 100%; animation: gradslide 4s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.pane.max { border-radius: 0; }
.ph { background: linear-gradient(90deg, rgb(var(--a1) / .25), rgb(var(--a2) / .10) 60%, transparent); border-bottom: 1px solid rgb(var(--a1) / .2); height: 26px; }
.pane.active .ph { background: linear-gradient(90deg, rgb(var(--a2) / .35), rgb(var(--a1) / .25) 60%, rgb(var(--a3) / .08)); }
.ph .pn { background: var(--grad); color: #fff; border-radius: 0 8px 8px 0; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.ph .pf { color: var(--pink); text-shadow: 0 0 10px rgba(255, 61, 187, .6); }
.ph button { transition: transform .2s var(--spring), color .2s; } .ph button:hover { transform: scale(1.25); color: var(--pink); }
.pb > * { animation: fadeUp .35s ease-out both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.loading { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.loading::after { content: " (cooking)"; font-weight: 400; }

/* toolbars and buttons: pills with springy press */
.bar { background: rgb(var(--d1) / .7); }
.bar button, .mini, .wtabs button, #fkeys button { border-radius: 999px; transition: transform .18s var(--spring), background .2s, box-shadow .2s, color .2s; }
.bar button:hover, .mini:hover, .wtabs button:hover { transform: translateY(-1px) scale(1.05); box-shadow: 0 0 14px rgb(var(--a1) / .35); }
.bar button:active, .mini:active, #fkeys button:active, .fbtn:active { transform: scale(.92); }
.bar button.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0 16px rgb(var(--a2) / .45); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
input, select, textarea { border-radius: 8px; transition: box-shadow .2s, border-color .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgb(var(--a2) / .15); }
.sh { background: linear-gradient(90deg, rgb(var(--a1) / .14), transparent); color: #fff; }
.sh span:first-child { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* tables: glowing hover rows, whale rows pop in */
.t th { background: rgb(var(--d1) / .95); color: var(--ink); }
.t tbody tr:hover td { background: linear-gradient(90deg, rgb(var(--a2) / .12), rgb(var(--a1) / .06)); }
tr.whale td { background: linear-gradient(90deg, rgba(255, 176, 46, .22), rgb(var(--a2) / .08)); animation: rowIn .6s ease-out; }
@keyframes rowIn { from { filter: brightness(2.5); } }

/* KPI tiles: glass cards */
.kpis { background: transparent; gap: 6px; padding: 6px; border: 0; }
.kpi { background: linear-gradient(160deg, rgb(var(--a1) / .14), rgb(var(--a2) / .05) 60%, rgba(0, 0, 0, .2)); border: 1px solid rgb(var(--a1) / .2); border-radius: 10px;
  transition: transform .25s var(--spring), box-shadow .25s; }
.kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgb(var(--a1) / .25); }
.kpi b { text-shadow: 0 0 14px rgba(255, 255, 255, .18); }

/* heatmap tiles */
.tile { border-radius: 4px; transition: background .6s, transform .2s var(--spring), filter .2s; }
.tile:hover { transform: scale(1.04); filter: brightness(1.25) saturate(1.2); z-index: 3; box-shadow: 0 0 20px rgba(255, 255, 255, .25); }

/* function keys: gradient keycaps */
#fkeys { background: linear-gradient(90deg, rgb(var(--d1) / .95), rgba(8, 8, 16, .95), rgb(var(--d2) / .95)); border-top: 1px solid transparent; border-image: var(--grad) 1; gap: 4px; }
#fkeys button { background: rgba(255, 255, 255, .04); border: 1px solid rgb(var(--a1) / .3); color: var(--ink); }
#fkeys button:hover { background: var(--grad); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgb(var(--a2) / .4); }
#fkeys button i { color: var(--pink); }

/* toasts: glass, slide + bounce in */
.toast { border-radius: 12px; background: rgb(var(--d1) / .92); border: 1px solid rgb(var(--a1) / .35); border-left: 4px solid var(--cy);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55), 0 0 20px rgb(var(--a1) / .2); animation: toastIn .45s var(--spring); }
.toast.warn { border-left-color: var(--pink); } .toast.err { border-left-color: var(--dn); }
@keyframes toastIn { from { transform: translateX(120%) rotate(4deg); opacity: 0; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }

/* boot */
#boot { background: radial-gradient(circle at 50% 45%, #1a0f33, #000 70%); }
.bootsub { color: var(--ink); letter-spacing: .08em; }
.bootbar { border-radius: 999px; } .bootbar i { background: var(--grad); box-shadow: 0 0 16px var(--pink); }
.help .hero .mut { color: var(--ink); }

/* =====================  WHALE IMPACT  ===================== */
.pane.shake { animation: shake .55s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes shake {
  10%, 90% { transform: translate(calc(-2px * var(--k, 1)), calc(1px * var(--k, 1))) rotate(calc(-.3deg * var(--k, 1))); }
  20%, 80% { transform: translate(calc(4px * var(--k, 1)), calc(-2px * var(--k, 1))) rotate(calc(.4deg * var(--k, 1))); }
  30%, 50%, 70% { transform: translate(calc(-7px * var(--k, 1)), calc(3px * var(--k, 1))) rotate(calc(-.6deg * var(--k, 1))); }
  40%, 60% { transform: translate(calc(7px * var(--k, 1)), calc(-3px * var(--k, 1))) rotate(calc(.6deg * var(--k, 1))); }
}
/* manga-style impact frame: inverted, crushed contrast, speed lines, for a few frames */
.pane.ifr .pb { filter: invert(1) grayscale(1) contrast(4) brightness(1.1); }
.pane.ifr::after { content: ""; position: absolute; inset: 0; z-index: 40; pointer-events: none; mix-blend-mode: difference;
  background: repeating-conic-gradient(from 0deg at 50% 55%, #fff 0 1.2deg, transparent 1.2deg 7deg); }
.impact { position: absolute; inset: 0; z-index: 41; pointer-events: none; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.impact .if-flash { position: absolute; inset: 0; animation: ifFlash .5s ease-out forwards; }
.impact.buy .if-flash { background: radial-gradient(circle at 50% 55%, rgba(43, 255, 136, .55), rgba(43, 255, 136, .08) 55%, transparent 75%); }
.impact.sell .if-flash { background: radial-gradient(circle at 50% 55%, rgba(255, 61, 110, .6), rgba(255, 61, 110, .08) 55%, transparent 75%); }
.impact.follow .if-flash { background: radial-gradient(circle at 50% 55%, rgba(255, 215, 0, .6), rgba(255, 61, 187, .12) 55%, transparent 75%); }
@keyframes ifFlash { 0% { opacity: 1; filter: brightness(2); } 100% { opacity: 0; } }
.impact .if-rays { position: absolute; width: 220%; aspect-ratio: 1; left: -60%; top: 50%; margin-top: -110%; opacity: .35; animation: rays 1.2s ease-out forwards;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .5) 0 2deg, transparent 2deg 12deg);
  -webkit-mask: radial-gradient(circle, transparent 8%, #000 30%, transparent 60%); mask: radial-gradient(circle, transparent 8%, #000 30%, transparent 60%); }
@keyframes rays { from { transform: rotate(0) scale(.6); } to { transform: rotate(25deg) scale(1.3); opacity: 0; } }
.impact .if-ring { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; border: 4px solid #fff;
  animation: ring .8s cubic-bezier(.1, .7, .3, 1) forwards; }
.impact.buy .if-ring { border-color: var(--up); box-shadow: 0 0 40px var(--up), inset 0 0 20px var(--up); }
.impact.sell .if-ring { border-color: var(--dn); box-shadow: 0 0 40px var(--dn), inset 0 0 20px var(--dn); }
.impact.follow .if-ring { border-color: #ffd700; box-shadow: 0 0 40px #ffd700, inset 0 0 20px #ffd700; }
@keyframes ring { to { transform: scale(calc(14 * var(--k, 1))); opacity: 0; border-width: 1px; } }
.impact .if-text { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; animation: slam 1.3s var(--spring) forwards; }
.impact .if-text small { font-size: 13px; font-weight: 800; letter-spacing: .18em; color: #fff; background: rgba(0, 0, 0, .65); padding: 3px 12px; border-radius: 999px; }
.impact .if-text b { font-size: calc(38px + 34px * var(--k, 1)); font-weight: 800; line-height: 1; font-style: italic; letter-spacing: -.02em; -webkit-text-stroke: 2px #000; paint-order: stroke fill; }
.impact.buy .if-text b { color: var(--up); text-shadow: 0 0 24px var(--up), 0 0 60px rgba(43, 255, 136, .6), 4px 4px 0 #000; }
.impact.sell .if-text b { color: var(--dn); text-shadow: 0 0 24px var(--dn), 0 0 60px rgba(255, 61, 110, .6), 4px 4px 0 #000; }
.impact.follow .if-text b { color: #ffd700; text-shadow: 0 0 24px #ffd700, 0 0 60px rgba(255, 61, 187, .6), 4px 4px 0 #000; }
.impact .if-text span { font-size: 12px; color: #fff; background: rgba(0, 0, 0, .55); padding: 1px 10px; border-radius: 6px; font-weight: 600; }
@keyframes slam {
  0% { transform: scale(3.2) rotate(-8deg); opacity: 0; filter: blur(6px); }
  14% { transform: scale(.9) rotate(2deg); opacity: 1; filter: blur(0); }
  24% { transform: scale(1.06) rotate(-1deg); }
  34%, 72% { transform: scale(1) rotate(0); opacity: 1; }
  100% { transform: scale(1.1) translateY(-20px); opacity: 0; }
}
.impact > i { position: absolute; left: 50%; top: 50%; font-style: normal; font-size: 22px; animation: particle 1.1s cubic-bezier(.15, .8, .3, 1) forwards; }
@keyframes particle { from { transform: translate(-50%, -50%) scale(.3); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 40px)) scale(1.1) rotate(var(--r)); opacity: 0; } }

/* FX off (also the default with reduced-motion): keep it calm */
body.nofx .pane.shake, body.nofx .pane { animation: none !important; }
body.nofx .impact, body.nofx .pane.ifr::after { display: none; }
body.nofx .pane.ifr .pb { filter: none; }
body.nofx .logo, body.nofx .pane.active::before, body.nofx .vibe { animation: none; }
body.nofx::after { display: none; }
/* low intensity: keep color, drop ambient motion and scanlines */
body.lowfx::after { display: none; }
body.lowfx .logo, body.lowfx .pane.active::before, body.lowfx .vibe { animation: none; }

/* ===================== EFFECTS CONTROLS ===================== */
.fxc { display: flex; flex-direction: column; gap: 8px; padding: 8px 10px; }
.fxrow { display: flex; align-items: center; gap: 10px; }
.fxrow > span:first-child { min-width: 70px; }
.fxrow .fx-desc { flex: 1; min-width: 0; font-size: 11px; }
.tog { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .06); border: 1px solid rgb(var(--a1) / .35); color: var(--mut);
  border-radius: 999px; padding: 2px 10px 2px 3px; font-weight: 800; font-size: 11px; transition: all .25s var(--spring); }
.tog i { width: 16px; height: 16px; border-radius: 50%; background: #3a3f4c; transition: all .25s var(--spring); }
.tog.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0 14px rgb(var(--a2) / .4); }
.tog.on i { background: #fff; transform: translateX(2px); box-shadow: 0 0 8px #fff; }
.tog:focus-visible, .obtn:focus-visible, .mini:focus-visible { outline: 2px solid var(--cy); outline-offset: 2px; }
input[type=range].fx-lvl { -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 999px; padding: 0; border: 0;
  background: linear-gradient(90deg, #2bff88, #ffb02e 50%, #ff3d6e); box-shadow: 0 0 10px rgb(var(--a2) / .3); }
input[type=range].fx-lvl:disabled { filter: grayscale(1) brightness(.5); }
input[type=range].fx-lvl::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; cursor: grab;
  box-shadow: 0 0 0 3px rgb(var(--a1) / .6), 0 0 14px rgba(255, 255, 255, .7); transition: transform .15s var(--spring); }
input[type=range].fx-lvl::-webkit-slider-thumb:active { transform: scale(1.25); cursor: grabbing; }
input[type=range].fx-lvl::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 3px rgb(var(--a1) / .6); }
.fx-val { min-width: 40px; text-align: right; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 14px; }

/* ===================== ONBOARDING ===================== */
#onb { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(circle at 30% 20%, rgb(var(--a1) / .35), transparent 50%), radial-gradient(circle at 80% 90%, rgb(var(--a2) / .3), transparent 50%), rgba(2, 2, 8, .82);
  backdrop-filter: blur(10px); animation: fadeIn .3s ease-out; }
#onb.out { animation: fadeOut .28s ease-in forwards; }
@keyframes fadeIn { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
.onb-card { position: relative; width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 20px; padding: 18px 26px 20px;
  background: linear-gradient(170deg, rgb(var(--d1) / .96), rgba(8, 8, 16, .97)); border: 1px solid rgb(var(--a1) / .4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 60px rgb(var(--a1) / .3); animation: cardIn .5s var(--spring); }
@keyframes cardIn { from { transform: translateY(30px) scale(.94); opacity: 0; } }
.onb-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.onb-dots { display: flex; gap: 6px; }
.onb-dots i { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .15); transition: all .35s var(--spring); }
.onb-dots i.done { background: rgb(var(--a1) / .7); }
.onb-dots i.on { width: 28px; background: var(--grad); box-shadow: 0 0 10px var(--pink); }
.onb-skip, .onb-later { background: none; border: 0; color: var(--mut); font-size: 11px; padding: 4px 6px; border-radius: 6px; }
.onb-skip:hover, .onb-later:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.onb-body { min-height: 260px; animation: fadeUp .35s ease-out; }
.onb-body h2 { margin: 6px 0 4px; font-size: 22px; color: #fff; letter-spacing: -.01em; }
.onb-body p { line-height: 1.6; margin: 4px 0 12px; }
.onb-hero { text-align: center; padding: 10px 0; }
.onb-hero .logo.big { font-size: 44px; }
.onb-list { list-style: none; padding: 0; margin: 14px auto; display: inline-flex; flex-direction: column; gap: 8px; text-align: left; }
.onb-list li { padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgb(var(--a1) / .2); }
.big-emoji { font-size: 54px; animation: rocket 1.6s ease-in-out infinite; }
@keyframes rocket { 50% { transform: translateY(-8px) rotate(-6deg); } }
.onb-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 14px; }
.obtn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 800; color: #fff;
  background: rgba(255, 255, 255, .05); border: 1px solid rgb(var(--a1) / .4); transition: transform .2s var(--spring), box-shadow .2s, background .2s; }
.obtn small { font-size: 10px; font-weight: 400; color: var(--mut); }
.obtn:not(:disabled):hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 26px rgb(var(--a1) / .35); background: rgb(var(--a1) / .15); }
.obtn:not(:disabled):active { transform: scale(.96); }
.obtn.primary { flex-direction: row; background: var(--grad); border-color: transparent; padding: 10px 22px; box-shadow: 0 8px 24px rgb(var(--a2) / .4); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.olab { display: flex; flex-direction: column; gap: 5px; margin: 10px 0; font-size: 12px; }
.olab input { padding: 7px 10px; font-size: 13px; width: 100%; }
.orow { display: flex; gap: 6px; align-items: center; } .orow input { flex: 1; }
.owl { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .3); min-height: 36px; }
.ow .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mut); margin-right: 6px; }
.ow .dot.on { background: var(--up); box-shadow: 0 0 8px var(--up); }
.onb-tg { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: rgb(var(--a3) / .05); border: 1px solid rgb(var(--a3) / .2); }
.onb-tg ol { margin: 8px 0; padding-left: 18px; line-height: 1.7; }
.onb-tg code { background: rgba(255, 255, 255, .08); padding: 0 5px; border-radius: 4px; }
.small { font-size: 10px; }
.onb-vibes { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; align-items: stretch; }
.onb-demo { position: relative; min-height: 150px; border-radius: 14px; }
.onb-demo .pb { display: flex; align-items: flex-end; padding: 10px; }
.demo-chart { flex: 1; height: 100%; display: flex; align-items: flex-end; gap: 4px; }
.demo-chart i { flex: 1; border-radius: 2px; background: var(--up); box-shadow: 0 0 calc(10px * var(--fxl, 1)) var(--up); }
.demo-chart i:nth-child(3n) { background: var(--dn); box-shadow: 0 0 calc(10px * var(--fxl, 1)) var(--dn); }
.demo-chart i:nth-child(1) { height: 30%; } .demo-chart i:nth-child(2) { height: 42%; } .demo-chart i:nth-child(3) { height: 36%; } .demo-chart i:nth-child(4) { height: 55%; }
.demo-chart i:nth-child(5) { height: 48%; } .demo-chart i:nth-child(6) { height: 64%; } .demo-chart i:nth-child(7) { height: 58%; } .demo-chart i:nth-child(8) { height: 72%; }
.demo-chart i:nth-child(9) { height: 61%; } .demo-chart i:nth-child(10) { height: 80%; } .demo-chart i:nth-child(11) { height: 88%; } .demo-chart i:nth-child(12) { height: 70%; }
.onb-demo .impact .if-text b { font-size: calc(24px + 16px * var(--k, 1)); }
.onb-demo .impact .if-text small { font-size: 10px; }
.onb-nav { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgb(var(--a1) / .2); }
@media (max-width: 600px) { .onb-btns, .onb-vibes { grid-template-columns: 1fr; } }

/* =====================================================================
   DEGEN TOOLS · rug check, sniper, paper, PnL card, grid, badges
   ===================================================================== */
.rugp { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 999px; font-weight: 800; font-size: 11px; border: 1px solid currentColor; background: rgba(0, 0, 0, .3); white-space: nowrap; }
.rugbtn .rugp { border: 0; background: none; padding: 0; }
.rug { padding: 12px; }
.rug-hero { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.rug-hero h2 { margin: 0 0 4px; font-size: 22px; }
.gauge { --v: 50; width: 120px; height: 120px; border-radius: 50%; display: grid; place-content: center; text-align: center; flex: none;
  background: radial-gradient(closest-side, #07070f 78%, transparent 80% 100%), conic-gradient(currentColor calc(var(--v) * 1%), rgba(255, 255, 255, .08) 0); filter: drop-shadow(0 0 calc(14px * var(--fxl, 1)) currentColor); }
.gauge b { font-size: 36px; line-height: 1; } .gauge small { color: var(--mut); font-size: 10px; }
.rug-grade { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.rug-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--mut); margin-bottom: 10px; } .rug-stats b { color: #fff; }
.rug-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rug-flags { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 4px; }
.rug-flags li { padding: 7px 10px; border-radius: 8px; background: rgba(255, 255, 255, .03); border-left: 3px solid var(--mut); }
.rug-flags li.bad { border-color: var(--dn); background: rgba(255, 61, 110, .08); } .rug-flags li.warn { border-color: var(--warn); } .rug-flags li.ok { border-color: var(--up); color: #b8c4cf; }
.newrow td { animation: newrow 2.4s ease-out; }
@keyframes newrow { from { background: rgb(var(--a2) / .35); } }
.hotrow td:first-child { box-shadow: inset 3px 0 0 var(--up); }
.tag-e { font-size: 9px; font-weight: 800; padding: 0 5px; border-radius: 4px; background: var(--grad); color: #fff; }
.cardov { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; background: rgba(2, 2, 8, .82); backdrop-filter: blur(6px); padding: 16px; animation: pop .2s var(--spring); }
.cardbox { max-width: min(920px, 100%); display: grid; gap: 10px; }
.cardbox img { width: 100%; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 40px rgb(var(--a1) / .3); }
.grid-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; padding: 6px; }
.gt { padding: 8px 10px 4px; border-radius: 10px; border: 1px solid rgb(var(--a1) / .2); background: linear-gradient(160deg, rgb(var(--a1) / .10), rgba(0, 0, 0, .25)); transition: transform .18s var(--spring), border-color .2s; }
.gt:hover { transform: translateY(-2px); border-color: rgb(var(--a2) / .5); }
.gh { display: flex; justify-content: space-between; gap: 6px; } .gh b { color: var(--amber); } .gp { color: #fff; font-weight: 600; }
.gc { font-size: 11px; text-align: right; }
.gsp { display: block; width: 100%; height: 56px; }
.gt.flash-up { box-shadow: 0 0 0 1px var(--up) inset; } .gt.flash-dn { box-shadow: 0 0 0 1px var(--dn) inset; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; padding: 8px; }
.badge { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 10px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .12); opacity: .5; filter: grayscale(1); }
.badge i { grid-row: span 2; font-style: normal; font-size: 30px; display: grid; place-items: center; }
.badge b { font-size: 12px; } .badge span { font-size: 10px; color: var(--mut); }
.badge.got { opacity: 1; filter: none; border: 1px solid rgb(var(--a2) / .45); background: linear-gradient(160deg, rgb(var(--a1) / .18), rgb(var(--a2) / .06)); box-shadow: 0 0 calc(18px * var(--fxl, 1)) rgb(var(--a2) / .2); }
.achbar { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); margin-top: 4px; overflow: hidden; } .achbar i { display: block; height: 100%; background: var(--grad); }
.toast.ach { border-left-color: var(--pink); } .achtoast { font-size: 18px; }

/* =====================================================================
   MOBILE · one pane at a time, pane switcher, thumb-sized nav
   ===================================================================== */
#ptabs { display: none; }
#fkeys { overflow-x: auto; scrollbar-width: none; } #fkeys::-webkit-scrollbar { display: none; }
@media (max-width: 760px) {
  html, body { height: 100%; }
  body { grid-template-rows: auto 22px auto 1fr auto; height: 100dvh; padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); }
  #top { flex-wrap: wrap; gap: 6px 10px; padding: 6px 8px; }
  .brand .sub, .clocks { display: none; }
  .brand .logo { font-size: 14px; }
  .vibe { margin-left: auto; font-size: 10px; padding: 2px 8px; } .vibe span { display: none; }
  #cmdwrap { order: 9; flex: 1 0 100%; height: 40px; }
  #cmd { font-size: 16px; } /* 16px stops iOS zooming into the input */
  #cmd::placeholder { font-size: 12px; }
  .go { padding: 8px 14px; }
  #suggest { max-height: 50vh; }
  #suggest div { padding: 10px 12px; }
  #ptabs { display: flex; gap: 6px; padding: 6px 8px; overflow-x: auto; scrollbar-width: none; background: rgb(var(--d1) / .6); border-bottom: 1px solid rgb(var(--a1) / .2); }
  #ptabs::-webkit-scrollbar { display: none; }
  #ptabs button { flex: none; display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgb(var(--a1) / .3); background: rgba(255, 255, 255, .04); color: var(--ink); font-size: 12px; font-weight: 600; }
  #ptabs button i { font-style: normal; font-weight: 800; color: var(--pink); }
  #ptabs button.on { background: var(--grad); color: #fff; border-color: transparent; } #ptabs button.on i { color: #fff; }
  /* one pane fills the screen; layout buttons don't apply */
  #panes, #panes.l1, #panes.l2, #panes.l3, #panes.l4 { display: block; padding: 0; overflow: hidden; }
  #panes .pane { display: none !important; height: 100%; border-radius: 0; border-left: 0; border-right: 0; }
  #panes .pane.active { display: flex !important; }
  .pane.active::before { display: none; }
  .pane.max { position: relative; inset: auto; }
  .ph { height: 40px; } .ph .pn { display: none; } .ph .pt { display: none; } .ph .ps { padding-left: 10px; }
  .ph button { min-width: 40px; height: 40px; font-size: 16px; } .ph .max { display: none; }
  #fkeys { height: auto; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 6px; }
  #fkeys button { flex: none; min-height: 38px; padding: 0 14px; font-size: 12px; }
  #fkeys button i { display: none; }
  #fkeys button[data-c^="LAYOUT"], #fkeys .sp { display: none; }
  .bar { gap: 6px; padding: 6px 8px; }
  .bar button, .mini { min-height: 32px; padding: 0 12px; font-size: 12px; }
  .bar input, .bar select { min-height: 32px; font-size: 16px; }
  .bar .sp { flex-basis: 100%; height: 0; } /* push trailing info onto its own line */
  .t td, .t th { padding: 7px 8px; font-size: 12px; }
  .t { display: block; overflow-x: auto; max-width: 100%; } /* wide tables scroll on their own, not the whole pane */
  .ppos td:nth-child(2), .ppos th:nth-child(2), .ppos td:nth-child(3), .ppos th:nth-child(3), .ppos td:nth-child(4), .ppos th:nth-child(4) { display: none; }
  .sh .mut { display: none; }
  .kpis, .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis.k6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; } .kpis.k6 .kpi { padding: 4px 6px; } .kpis.k6 .kpi b { font-size: 13px; } .kpis.k6 .kpi span { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .grid3 { grid-template-columns: 1fr; }
  .chart { min-height: 46vh; }
  canvas { touch-action: pan-y; }
  #toasts { left: 8px; right: 8px; bottom: calc(64px + env(safe-area-inset-bottom)); align-items: stretch; }
  .toast { max-width: none; }
  .impact .if-text b { font-size: 44px; }
  .grid-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .badges { grid-template-columns: 1fr; }
  .rug-hero { gap: 14px; } .gauge { width: 96px; height: 96px; } .gauge b { font-size: 28px; }
  #onb { padding: 0; } .onb-card { width: 100%; max-width: none; height: 100dvh; max-height: none; border-radius: 0; overflow: auto; }
  .help .hero { flex-direction: column; align-items: flex-start; } .logo.big { font-size: 26px; }
}
.pb.live > * { animation: none; }

/* =====================================================================
   SOCIAL · profiles, posts, calls, composer
   ===================================================================== */
.uav { --c: #8b5cff; display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; font-size: 15px; vertical-align: middle;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 50%, #000)); box-shadow: 0 0 calc(12px * var(--fxl, 1)) color-mix(in srgb, var(--c) 60%, transparent); }
.uav.big { width: 64px; height: 64px; font-size: 34px; }
.urow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.urow.click:hover { background: rgb(var(--a1) / .08); }
.small { font-size: 11px; }
.uhead { --c: #8b5cff; display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; padding: 16px 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); border-bottom: 1px solid rgb(var(--a1) / .2); }
.uinfo { flex: 1; min-width: 200px; } .uinfo h2 { margin: 0 0 2px; font-size: 20px; } .uinfo p { margin: 8px 0; line-height: 1.5; }
.ustats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; color: var(--mut); }
.ustats button { background: none; border: 0; color: var(--mut); padding: 0; } .ustats button:hover { color: #fff; } .ustats b { color: #fff; }
.uact { display: flex; gap: 6px; align-items: center; }
.uw { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.uwl { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .04); font-size: 11px; color: var(--mut); }
.post { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .06); animation: fadeUp .3s ease-out both; }
.pbd { flex: 1; min-width: 0; }
.phd b { color: #fff; } .phd .click:hover { text-decoration: underline; }
.ptx { margin: 3px 0 6px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; font-size: 13px; }
.ptx a { cursor: pointer; font-weight: 600; } .ptx .tk { color: var(--amber); } .ptx .uh { color: var(--cy); }
.pcall { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 6px 10px; margin-bottom: 6px; border-radius: 10px; border: 1px solid rgb(var(--a2) / .35); background: linear-gradient(90deg, rgb(var(--a2) / .12), rgb(var(--a1) / .06)); }
.pcall:hover { border-color: rgb(var(--a2) / .7); }
.pact { display: flex; gap: 4px; }
.pact button { background: none; border: 1px solid transparent; color: var(--mut); padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.pact button:hover { color: #fff; border-color: rgba(255, 255, 255, .15); }
.pact .like.on { color: #ff7a30; border-color: rgba(255, 122, 48, .4); background: rgba(255, 122, 48, .1); }
.composer { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid rgb(var(--a1) / .2); background: rgb(var(--d1) / .4); }
.composer > div { flex: 1; min-width: 0; }
.composer textarea { width: 100%; resize: vertical; min-height: 54px; background: rgba(0, 0, 0, .4); color: #fff; border: 1px solid rgb(var(--a1) / .3); border-radius: 10px; padding: 8px 10px; font: 13px/1.4 var(--font); }
.composer textarea:focus { outline: 0; border-color: var(--pink); }
.crow { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.more { padding: 10px; text-align: center; }
.cloudbox .urow { border: 0; padding: 4px 0 10px; }
.cbtns { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.cpick { display: grid; gap: 4px; margin: 8px 0; }
.avs, .cols { display: flex; flex-wrap: wrap; gap: 4px; }
.avs button { width: 34px; height: 34px; border-radius: 10px; font-size: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.cols button { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid transparent; }
.avs button.on, .cols button.on { border-color: #fff; box-shadow: 0 0 10px rgb(var(--a2) / .5); }
.cw { display: flex; align-items: center; gap: 6px; margin: 3px 0; }
.ckey { display: block; padding: 8px; margin-top: 6px; border-radius: 8px; background: #000; color: var(--warn); word-break: break-all; font-size: 11px; user-select: all; }
.mini.danger { color: var(--dn); border-color: rgba(255, 61, 110, .4); }
.claim .at { color: var(--mut); font-weight: 800; }
.crest { margin-top: 8px; } .crest summary { cursor: pointer; font-size: 11px; } .crest .orow { margin-top: 6px; }
.onb-claim { margin-bottom: 12px; }
@media (max-width: 760px) {
  .uhead { padding: 12px; } .uact { width: 100%; } .uact .obtn { flex: 1; }
  .post { padding: 10px; }
  .composer textarea { font-size: 16px; }
  .pact button { min-height: 32px; padding: 0 12px; }
}
