@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@1&display=swap');

:root {
  --bg: #050506; --bg-2: #09090b; --panel: #0c0d10; --panel-2: #121418; --panel-3: #181b21;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.12); --line-3: rgba(255,255,255,.2);
  --text: #ededf0; --muted: #a0a0ab; --dim: #62626d;
  --accent: #34d399; --accent-2: #10b981; --accent-soft: rgba(52,211,153,.12); --accent-ink: #022c1d;
  --up: #34d399; --down: #f87171; --warn: #fbbf24; --info: #60a5fa;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px var(--line);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: rgba(52,211,153,.3); }
a { color: var(--text); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .88em; }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.up { color: var(--up); } .down { color: var(--down); } .warn { color: var(--warn); }
.small { font-size: .85rem; } .center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 960px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.hidden { display: none !important; }

/* ---------- Buttons & form ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.02); color: var(--text); font: 500 14px/1 var(--font);
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { border-color: var(--line-3); background: rgba(255,255,255,.05); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600;
  box-shadow: 0 0 0 1px rgba(52,211,153,.5), 0 8px 24px -6px rgba(52,211,153,.45), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.primary:hover { background: #4ee2a8; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: rgba(255,255,255,.04); }
.btn.danger { color: var(--down); }
.btn.buy { background: rgba(52,211,153,.12); color: var(--up); border-color: rgba(52,211,153,.35); font-weight: 600; }
.btn.buy:hover { background: rgba(52,211,153,.2); }
.btn.sell { background: rgba(248,113,113,.1); color: var(--down); border-color: rgba(248,113,113,.35); font-weight: 600; }
.btn.sell:hover { background: rgba(248,113,113,.18); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.lg { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn.icon { width: 34px; padding: 0; }
input, select, textarea { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2);
  color: var(--text); font: 14px var(--font); transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; padding: 12px; resize: vertical; min-height: 96px; line-height: 1.5; }
select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23a0a0ab' stroke-width='1.6'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(52,211,153,.6); box-shadow: 0 0 0 3px rgba(52,211,153,.15); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--dim); }
label { display: block; font-size: 12.5px; color: var(--muted); margin: 0 0 6px; font-weight: 500; }
.field { margin-bottom: 14px; }
.inline { display: inline-block; width: auto; }

/* ---------- Surfaces ---------- */
.card { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font: 500 11px/1 var(--mono);
  text-transform: uppercase; letter-spacing: .04em; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); }
.badge.green { color: var(--up); background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.22); }
.badge.red { color: var(--down); background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.22); }
.badge.amber { color: var(--warn); background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.22); }
.badge.blue { color: var(--info); background: rgba(96,165,250,.08); border-color: rgba(96,165,250,.22); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { font-variant-numeric: tabular-nums; }
th { color: var(--dim); font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: none; }
tbody tr, table tr { transition: background .12s; }
table tr:hover td { background: rgba(255,255,255,.015); }
.num { font-family: var(--mono); font-size: 13px; }
.table-wrap { overflow-x: auto; }
.alert { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); margin-bottom: 14px; font-size: 14px; }
.alert.error { border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.06); color: #fecaca; }
.alert.ok { border-color: rgba(52,211,153,.35); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }

/* ---------- Ambient background ---------- */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ambient::before { content: ""; position: absolute; width: 720px; height: 720px; left: 50%; top: 18vh; transform: translateX(-35%); border-radius: 50%;
  background: radial-gradient(circle, transparent 54%, rgba(52,211,153,.07) 62%, rgba(96,165,250,.04) 68%, transparent 74%); filter: blur(8px); }
.ambient::after { content: ""; position: absolute; width: 900px; height: 600px; left: 50%; top: -260px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(52,211,153,.10), transparent); }
main, nav, footer { position: relative; z-index: 1; }

/* ---------- Ticker ---------- */
.ticker { border-bottom: 1px solid var(--line); background: var(--bg); overflow: hidden; white-space: nowrap; font: 12px var(--mono); position: relative; z-index: 2;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: inline-flex; gap: 34px; padding: 9px 0; animation: scroll 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { color: var(--muted); } .ticker-item b { color: var(--text); font-weight: 500; margin-right: 8px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(5,5,6,.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; gap: 36px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; letter-spacing: -.02em; color: var(--text); }
.logo b { color: var(--accent); font-weight: 600; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--accent-ink);
  background: linear-gradient(145deg, #6ee7b7, #10b981); box-shadow: 0 0 18px -2px rgba(52,211,153,.6), inset 0 1px 0 rgba(255,255,255,.4); }
.logo-mark .ic { width: 15px; height: 15px; fill: var(--accent-ink); stroke: none; }
.nav-links { display: flex; gap: 28px; } .nav-links a { color: var(--muted); font-size: 14px; transition: color .15s; } .nav-links a:hover { color: var(--text); }
.nav .signin { color: var(--muted); font-size: 14px; } .nav .signin:hover { color: var(--text); }
@media (max-width: 900px) { .nav-links, .nav .signin { display: none; } .nav .container { gap: 12px; } }

/* ---------- Landing ---------- */
.hero { padding: 84px 0 70px; display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
@media (max-width: 1080px) { .hero { grid-template-columns: 1fr; padding-top: 56px; } }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(255,255,255,.02); }
.pill b { color: var(--text); font-weight: 500; } .pill i { width: 1px; height: 12px; background: var(--line-2); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.display { font-size: clamp(46px, 6.2vw, 80px); line-height: .98; letter-spacing: -.045em; font-weight: 550; margin: 26px 0 26px;
  background: linear-gradient(180deg, #fff 30%, #b9bcc4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.display em, .h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; background: linear-gradient(120deg, #6ee7b7, #34d399 50%, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 520px; margin-bottom: 34px; font-weight: 300; }
.hero-meta { display: flex; gap: 18px; align-items: center; margin-top: 34px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.hero-meta b { color: var(--text); font: 500 13px var(--mono); } .hero-meta i { width: 1px; height: 14px; background: var(--line-2); }

.window { border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #0d0f12, #08090b); box-shadow: var(--shadow), 0 0 120px -40px rgba(52,211,153,.35); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.lights { display: flex; gap: 6px; } .lights i { width: 10px; height: 10px; border-radius: 50%; background: #23252b; }
.wtabs { display: flex; gap: 4px; } .wtabs span { font-size: 12.5px; color: var(--dim); padding: 5px 10px; border-radius: 7px; } .wtabs span.on { color: var(--text); background: rgba(255,255,255,.06); }
.wstatus { margin-left: auto; font: 11.5px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; display: inline-flex; gap: 7px; align-items: center; }
.window-body { display: grid; grid-template-columns: 1fr 240px; min-height: 380px; }
@media (max-width: 700px) { .window-body { grid-template-columns: 1fr; } .wchat { display: none !important; } }
.wchart { padding: 16px 6px 0 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.wchart-head { display: flex; align-items: baseline; gap: 10px; padding-right: 12px; }
.wchart-head b { font-weight: 600; font-size: 15px; } .wchart-head span { font: 11px var(--mono); color: var(--dim); }
.wprice { margin-left: auto; font: 500 15px var(--mono); }
#hero-chart { flex: 1; min-height: 300px; }
.wchat { display: flex; flex-direction: column; padding: 14px; gap: 10px; }
.wagent { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.orb { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #a7f3d0, #10b981 55%, #064e3b); box-shadow: 0 0 18px rgba(52,211,153,.55); flex: none; }
.wagent b { font-size: 14px; font-weight: 600; display: block; } .wagent span { font: 11px var(--mono); color: var(--dim); }
.wave { margin-left: auto; display: flex; gap: 2px; align-items: center; height: 18px; } .wave i { width: 2px; background: var(--accent); border-radius: 2px; animation: wave 1.2s ease-in-out infinite; }
@keyframes wave { 0%,100% { height: 4px; } 50% { height: 16px; } }
.bubble { font-size: 12.5px; line-height: 1.5; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); }
.bubble.me { align-self: flex-end; border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.07); color: var(--text); }
.wchat .ask { margin-top: auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 6px 0 12px; height: 38px; font-size: 12.5px; color: var(--dim); }
.wchat .ask .btn { margin-left: auto; height: 26px; width: 26px; padding: 0; border-radius: 7px; }
.window-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font: 11.5px var(--mono); color: var(--dim); }

.brands { padding: 20px 0 10px; text-align: center; }
.brands .label { font: 500 11.5px var(--mono); letter-spacing: .18em; color: var(--dim); text-transform: uppercase; margin-bottom: 22px; }
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: inline-flex; gap: 64px; padding: 20px 0; animation: scroll 40s linear infinite; white-space: nowrap; }
.marquee-track span { font-size: 18px; font-weight: 500; color: #8a8a94; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 12px; }
.marquee-track span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: .7; }

section.block { padding: 120px 0; }
.h2 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.04; letter-spacing: -.035em; font-weight: 550; max-width: 760px; margin-bottom: 18px; }
.sub { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 600px; font-weight: 300; margin-bottom: 56px; }
.center .h2, .center .sub { margin-left: auto; margin-right: auto; }
.step { padding: 26px; min-height: 230px; transition: border-color .2s, transform .2s; }
.step:hover { border-color: var(--line-2); transform: translateY(-2px); }
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 34px; }
.step-num { font: 500 13px var(--mono); color: var(--accent); }
.icon-box { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); background: rgba(255,255,255,.02); }
.step h3 { font-size: 18px; margin-bottom: 10px; } .step p { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.6; }

.ftabs { display: flex; flex-direction: column; gap: 6px; }
.ftab { padding: 20px 22px; border-radius: 14px; border: 1px solid transparent; cursor: pointer; position: relative; transition: background .2s, border-color .2s; }
.ftab::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 2px; border-radius: 2px; background: var(--line-2); }
.ftab.on { background: rgba(255,255,255,.025); border-color: var(--line); } .ftab.on::before { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.ftab h3 { font-size: 17px; margin: 0 0 6px; } .ftab p { margin: 0; color: var(--muted); font-size: 14.5px; }
.ftab:not(.on) h3 { color: #c8c8cf; }
.panel { border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #0d0f12, #09090b); overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head b { font-weight: 600; font-size: 14.5px; } .panel-head span { font: 11.5px var(--mono); color: var(--dim); }
.panel-foot { padding: 14px 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.side-tag { display: inline-grid; place-items: center; height: 22px; padding: 0 7px; border-radius: 5px; font: 600 10.5px var(--mono); letter-spacing: .05em; }
.side-tag.buy { color: var(--up); background: rgba(52,211,153,.1); } .side-tag.sell { color: var(--down); background: rgba(248,113,113,.1); }
.mkt b { font-weight: 600; display: block; font-size: 14px; } .mkt span { font: 11px var(--mono); color: var(--dim); }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: 64px; }
.mini-grid > div { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mini-grid > div:nth-child(3n) { border-right: none; } .mini-grid > div:nth-last-child(-n+3) { border-bottom: none; }
.mini-grid h4 { font-size: 15px; font-weight: 600; margin: 14px 0 6px; } .mini-grid p { color: var(--muted); font-size: 14px; margin: 0; }
.mini-grid .ic { color: var(--accent); }
@media (max-width: 960px) { .mini-grid { grid-template-columns: 1fr; } .mini-grid > div { border-right: none !important; border-bottom: 1px solid var(--line) !important; } }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; margin-top: 40px; }
.stat { border-left: 2px solid rgba(52,211,153,.5); padding-left: 16px; }
.stat b { display: block; font: 500 26px var(--mono); letter-spacing: -.02em; } .stat span { font-size: 13px; color: var(--muted); }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.checks span { display: inline-flex; gap: 8px; align-items: center; } .checks .ic { color: var(--accent); }

.plan { display: flex; flex-direction: column; position: relative; padding: 28px; }
.plan.recommended { border-color: rgba(52,211,153,.5); background: linear-gradient(180deg, rgba(52,211,153,.07), rgba(255,255,255,.01) 40%); box-shadow: 0 0 60px -20px rgba(52,211,153,.4); }
.plan h3 { font-size: 16px; } .plan .price { font: 500 40px var(--font); letter-spacing: -.04em; margin: 10px 0 2px; }
.plan .price span { font-size: 14px; letter-spacing: 0; color: var(--dim); font-weight: 400; }
.plan .tag { font-size: 13.5px; color: var(--muted); min-height: 40px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; flex: 1; border-top: 1px solid var(--line); padding-top: 20px; }
.plan li { padding: 6px 0 6px 28px; position: relative; color: #c9c9d1; font-size: 14px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: rgba(52,211,153,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%2334d399' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 5.3 2 2L8.2 3'/%3E%3C/svg%3E") center no-repeat; }
.plan .ribbon { position: absolute; top: 24px; right: 24px; }
.plan .btn { width: 100%; }
details.faq { border-bottom: 1px solid var(--line); padding: 22px 0; }
details.faq summary { cursor: pointer; font-weight: 500; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--dim); font: 300 22px/1 var(--font); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { color: var(--muted); margin: 12px 0 0; max-width: 680px; line-height: 1.7; }
.cta { text-align: center; padding: 90px 30px; border-radius: 28px; border: 1px solid var(--line-2); position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 50% 0%, rgba(52,211,153,.16), transparent 70%), linear-gradient(180deg, #0c0e11, #070809); }
footer.site { border-top: 1px solid var(--line); padding: 64px 0 36px; color: var(--muted); font-size: 14px; margin-top: 60px; }
footer.site h4 { color: var(--text); font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
footer.site a { color: var(--muted); display: block; padding: 5px 0; transition: color .15s; } footer.site a:hover { color: var(--text); }
footer .grid-4 { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 960px) { footer .grid-4 { grid-template-columns: 1fr 1fr; } }
.risk-note { font-size: 12.5px; color: var(--dim); border-top: 1px solid var(--line); margin-top: 44px; padding-top: 24px; line-height: 1.7; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; } .reveal.in { opacity: 1; transform: none; }

/* ---------- Simple pages ---------- */
.page-hero { padding: 90px 0 40px; }
.auth-wrap { min-height: calc(100vh - 110px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 420px; padding: 34px; border-radius: 22px; background: linear-gradient(180deg, #0e1013, #08090b); border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 0 100px -40px rgba(52,211,153,.4); }
.auth-card h2 { font-size: 28px; letter-spacing: -.03em; }
.prose { max-width: 760px; } .prose h2 { margin-top: 2em; font-size: 24px; } .prose p, .prose li { color: var(--muted); line-height: 1.75; } .prose li { margin-bottom: 6px; }
.prose code { background: var(--panel-2); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0,1fr); min-height: 100vh; }
.sidebar { background: var(--bg-2); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; }
.sidebar .logo { padding: 4px 10px 22px; }
.side-label { font: 500 10.5px var(--mono); letter-spacing: .14em; color: var(--dim); text-transform: uppercase; padding: 14px 12px 8px; }
.side-link { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 12px; border-radius: 10px; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 500; transition: background .12s, color .12s; }
.side-link:hover { background: rgba(255,255,255,.035); color: var(--text); }
.side-link.active { background: rgba(255,255,255,.06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.side-link.active .ic { color: var(--accent); }
.side-foot { margin-top: auto; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.015); }
.side-user { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--accent-ink); background: linear-gradient(145deg, #6ee7b7, #10b981); flex: none; }
.side-status { display: grid; gap: 5px; font: 11.5px var(--mono); color: var(--dim); margin-bottom: 12px; }
.side-status div { display: flex; justify-content: space-between; }
.main { min-width: 0; }
.page { padding: 28px 32px 60px; max-width: 1480px; }
.page-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.page-title { font-size: 26px; letter-spacing: -.03em; font-weight: 600; margin: 0; }
.page-sub { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; bottom: 0; top: auto; height: auto; width: 100%; flex-direction: row; overflow-x: auto; z-index: 30; padding: 6px; border-right: none; border-top: 1px solid var(--line); background: rgba(9,9,11,.92); backdrop-filter: blur(12px); }
  .sidebar .logo, .side-foot, .side-label { display: none; }
  .side-link { flex-direction: column; gap: 3px; font-size: 10.5px; height: auto; padding: 7px 12px; }
  .page { padding: 18px 16px 100px; }
}

/* ---------- Trading UI ---------- */
.trade-layout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 18px; }
@media (max-width: 1180px) { .trade-layout { grid-template-columns: 1fr; } }
.chart-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.chart-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chart-head .px { font: 500 22px var(--mono); letter-spacing: -.02em; }
.chart-box { height: 500px; }
.chart-sm { height: 280px; }
.tf-tabs { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.tf-tabs button { background: transparent; border: none; color: var(--dim); height: 28px; padding: 0 11px; border-radius: 7px; cursor: pointer; font: 500 12px var(--mono); }
.tf-tabs button:hover { color: var(--text); } .tf-tabs button.active { background: rgba(255,255,255,.08); color: var(--text); }
.chat { display: flex; flex-direction: column; height: 600px; padding: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head b { font-size: 14.5px; } .chat-head span { font: 11px var(--mono); color: var(--dim); display: block; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.msg { padding: 11px 14px; border-radius: 14px; max-width: 92%; word-wrap: break-word; font-size: 13.5px; line-height: 1.6; }
.msg.user { align-self: flex-end; background: rgba(52,211,153,.09); border: 1px solid rgba(52,211,153,.28); border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: #d4d4da; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.md h1, .md h2, .md h3 { font-size: 14.5px; margin: .8em 0 .35em; letter-spacing: -.01em; } .md h3:first-child { margin-top: 0; }
.md ul { margin: .35em 0; padding-left: 1.15em; } .md li { margin: .2em 0; } .md p { margin: .45em 0; } .md b { color: var(--text); font-weight: 600; }
.kpi { background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.kpi .v { font: 500 20px var(--mono); letter-spacing: -.02em; margin-top: 4px; } .kpi .k { font: 500 10.5px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cond { display: grid; grid-template-columns: 1.4fr 1.1fr 1fr 1.4fr 1.1fr 34px; gap: 8px; align-items: center; margin-bottom: 8px; }
.cond input, .cond select { height: 34px; font-size: 13px; }
@media (max-width: 960px) { .cond { grid-template-columns: 1fr 1fr; } }
.group-box { border: 1px solid var(--line); background: rgba(255,255,255,.012); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.graph { display: flex; gap: 10px; align-items: stretch; overflow-x: auto; padding: 4px 0; }
.node { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; min-width: 190px; font-size: 13px; color: #cfcfd6; line-height: 1.6; }
.node.entry { border-top: 2px solid var(--up); } .node.exit { border-top: 2px solid var(--warn); } .node.risk { border-top: 2px solid var(--info); }
.node h5 { margin: 0 0 8px; font: 500 10.5px var(--mono); text-transform: uppercase; color: var(--dim); letter-spacing: .1em; }
.arrow { align-self: center; color: var(--dim); }
.check { font-size: 12.5px; color: var(--muted); } .check.pass::before { content: "✓ "; color: var(--up); font-weight: 700; } .check.fail::before { content: "✕ "; color: var(--down); font-weight: 700; }
.toast { position: fixed; bottom: 24px; right: 24px; background: #111317; border: 1px solid var(--line-2); padding: 13px 18px; border-radius: 12px; box-shadow: var(--shadow); z-index: 100; max-width: 400px; font-size: 14px; animation: rise .25s ease; }
.toast.error { border-color: rgba(248,113,113,.4); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.15); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { width: 100%; max-width: 500px; background: #0c0d10; box-shadow: var(--shadow); }
.usage-bar { height: 4px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.usage-bar > div { height: 100%; background: linear-gradient(90deg, #10b981, #6ee7b7); }
.empty { text-align: center; padding: 56px 24px; }
.empty .icon-box { margin: 0 auto 18px; width: 48px; height: 48px; color: var(--accent); }
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; } .section-title h3 { margin: 0; }

/* ---------- Signals ---------- */
.sig { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.sig-top { display: flex; align-items: center; gap: 12px; }
.sig-top .mkt b { font-size: 16px; }
.conf { display: flex; align-items: center; gap: 10px; font: 500 12px var(--mono); color: var(--muted); }
.conf-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.conf-bar > div { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #10b981, #6ee7b7); }
.levels { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.levels > div { padding: 10px 14px; border-right: 1px solid var(--line); min-width: 0; }
.levels > div:nth-child(3n) { border-right: none; }
.levels > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
.levels span { display: block; font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
.levels b { font: 500 13px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.02); }
.chip.pass { color: #a7f3d0; border-color: rgba(52,211,153,.25); background: rgba(52,211,153,.06); }
.chip.fail { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.15); }
.sig-ai { border-left: 2px solid rgba(52,211,153,.5); padding: 2px 0 2px 14px; font-size: 13.5px; color: #cfd0d6; }
.sig-foot { display: flex; align-items: center; gap: 12px; font: 12px var(--mono); color: var(--dim); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 13px var(--font); cursor: pointer; }
.filters button:hover { color: var(--text); border-color: var(--line-2); }
.filters button.on { background: rgba(255,255,255,.07); color: var(--text); border-color: var(--line-2); }
.factor-table td { white-space: normal; vertical-align: top; }
.factor-table .ok { color: var(--up); } .factor-table .no { color: var(--down); }
.verdict { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.verdict h3 { margin: 0; font-size: 18px; }
.ring { --p: 50; width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 600 14px var(--mono);
  background: radial-gradient(closest-side, var(--panel) 78%, transparent 80% 100%), conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255,255,255,.07) 0); }
.ring.off { background: radial-gradient(closest-side, var(--panel) 78%, transparent 80% 100%), conic-gradient(var(--warn) calc(var(--p) * 1%), rgba(255,255,255,.07) 0); }

/* ---------- Interactive hero window ---------- */
section[id], [id].block { scroll-margin-top: 84px; }
.wtabs button { font: 12.5px var(--font); color: var(--dim); padding: 5px 10px; border-radius: 7px; background: none; border: none; cursor: pointer; transition: color .15s, background .15s; }
.wtabs button:hover { color: var(--text); }
.wtabs button.on { color: var(--text); background: rgba(255,255,255,.07); }
.wpane { display: none; } .wpane.on { display: grid; }
.wpane-pad { padding: 16px; gap: 12px; align-content: start; min-height: 380px; }
.wchat form { margin-top: auto; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 5px 0 4px; height: 40px; }
.wchat form input { border: none; background: transparent; height: 36px; font-size: 12.5px; padding: 0 8px; box-shadow: none !important; }
.wchat form .btn { height: 28px; width: 28px; padding: 0; border-radius: 7px; flex: none; }
.wchat .log { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 250px; }
.wsig { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.015); }
.wsig .num { color: var(--muted); }

/* ---------- Agentic console (v2): agents, tiles, active board, feed, drawer, insights, admin ---------- */
.sidebar { overflow-y: auto; }
.side-group { display: contents; }
.inline-empty { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px 20px; color: var(--dim); font-size: 13.5px; text-align: center; white-space: normal; }
.inline-empty.error { color: #fca5a5; }
.inline-empty .ic { flex: none; }
.live-pill { display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 12px var(--mono); color: var(--text); background: rgba(255,255,255,.02); white-space: nowrap; }
.live-pill i { width: 1px; height: 12px; background: var(--line-2); }
.live-pill.off .pulse { background: var(--down); animation: none; }
.trig { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font: 500 10.5px var(--mono); letter-spacing: .03em; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line); white-space: nowrap; }
.pri-tag { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: 6px; font: 600 11px var(--mono); color: var(--text); border: 1px solid var(--line-2); background: rgba(255,255,255,.03); }
.pri-tag span { color: var(--dim); font-weight: 500; }

/* Agent cards */
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.agent-grid > .inline-empty { grid-column: 1 / -1; }
.agent-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008)); min-width: 0; }
.agent-top { display: flex; align-items: center; gap: 10px; }
.agent-top b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.state-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--dim); }
.state-dot.running { background: var(--up); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2.2s infinite; }
.state-dot.paused { background: var(--warn); }
.state-dot.error { background: var(--down); box-shadow: 0 0 10px rgba(248,113,113,.6); }
.agent-msg { font-size: 13px; color: var(--muted); line-height: 1.5; min-height: 39px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.agent-err { font: 11.5px var(--mono); color: #fca5a5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-meta { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line); padding-top: 12px; gap: 8px; }
.agent-meta span { display: block; font: 500 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px; }
.agent-meta b { font: 500 13px var(--mono); white-space: nowrap; }
.agent-actions { display: flex; gap: 6px; }

/* Market overview tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tiles > .inline-empty { grid-column: 1 / -1; }
.tile { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; cursor: pointer; transition: background .15s; min-width: 0; outline: none; }
.tile:hover, .tile:focus-visible { background: rgba(255,255,255,.025); }
.tile.on { background: rgba(52,211,153,.05); box-shadow: inset 2px 0 0 var(--accent); }
.tile-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tile-top b { font-size: 15px; font-weight: 600; }
.tile-mid { display: flex; align-items: center; gap: 12px; }
.tile-px { font: 500 17px var(--mono); letter-spacing: -.02em; white-space: nowrap; }
.tile-setup { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-foot { display: flex; align-items: center; gap: 8px; font: 11px var(--mono); color: var(--dim); min-height: 22px; white-space: nowrap; min-width: 0; }
.tile-foot > span { overflow: hidden; text-overflow: ellipsis; }
.tile-sig { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid rgba(52,211,153,.3); background: rgba(52,211,153,.08); color: var(--up); font: 500 11px var(--mono); cursor: pointer; }
.tile-sig:hover { background: rgba(52,211,153,.16); }
.ring.sm { width: 44px; height: 44px; font-size: 12.5px; background: radial-gradient(closest-side, #0b0c0f 76%, transparent 78% 100%), conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255,255,255,.07) 0); }
.ring.sm.off { background: radial-gradient(closest-side, #0b0c0f 76%, transparent 78% 100%), conic-gradient(var(--warn) calc(var(--p) * 1%), rgba(255,255,255,.07) 0); }

/* Console layout */
.console-layout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 18px; margin-top: 18px; align-items: start; }
@media (max-width: 1240px) { .console-layout { grid-template-columns: 1fr; } }
.stream-state { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono) !important; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.stream-state.on { color: var(--up) !important; } .stream-state.on .dot { animation: pulse 2.2s infinite; }
.stream-state.wait { color: var(--warn) !important; } .stream-state.off { color: var(--down) !important; }

/* Active signals board */
.act-list { display: flex; flex-direction: column; }
.act-row { display: grid; grid-template-columns: 52px minmax(150px,1.1fr) minmax(200px,1.6fr) minmax(170px,1fr) 120px auto; gap: 18px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.act-row:last-child { border-bottom: none; }
.act-row:hover { background: rgba(255,255,255,.012); }
.act-pri { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); line-height: 1; }
.act-pri b { font: 600 17px var(--mono); }
.act-pri span { font: 500 9.5px var(--mono); color: var(--dim); margin-top: -8px; }
.act-mkt { min-width: 0; } .act-mkt b { font-size: 15px; font-weight: 600; }
.act-mkt > span { display: block; font: 11px var(--mono); color: var(--dim); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-r-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.act-r-head b { font: 600 14px var(--mono); letter-spacing: -.01em; text-transform: none; }
.act-r-head .mono { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 11.5px; }
.act-dist { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
.act-dist span, .act-conf > span { display: block; font: 500 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
.act-dist b { font: 500 13px var(--mono); white-space: nowrap; }
.act-conf b { font: 600 16px var(--mono); } .act-conf small { font-size: 11px; color: var(--dim); font-weight: 500; }
.act-conf em { display: block; font: normal 10.5px var(--mono); margin-top: 2px; white-space: nowrap; }
@media (max-width: 1500px) and (min-width: 1241px) { .act-row { grid-template-columns: 52px minmax(140px,1fr) minmax(200px,1.5fr) 120px; } .act-dist { grid-column: 2 / 3; } .act-conf { grid-column: 3 / 4; } .act-btn { grid-column: 4; grid-row: 2; justify-self: end; } }
@media (max-width: 900px) {
  .act-row { grid-template-columns: 48px minmax(0,1fr) auto; gap: 12px 14px; padding: 16px; }
  .act-r, .act-dist { grid-column: 1 / -1; }
  .act-conf { grid-column: 1 / 3; } .act-btn { grid-column: 3; grid-row: 4; justify-self: end; }
  .act-pri { grid-row: 1; } .act-mkt { grid-column: 2 / 4; grid-row: 1; }
}

/* Live R bar: stop (-1R) -> TP2 */
.rbar { padding-bottom: 16px; position: relative; }
.rbar-track { position: relative; height: 8px; border-radius: 6px; background: rgba(255,255,255,.05); }
.rbar-zone.loss { position: absolute; top: 0; bottom: 0; border-radius: 6px 0 0 6px; background: rgba(248,113,113,.07); }
.rbar-fill { position: absolute; top: 0; bottom: 0; }
.rbar-fill.pos { background: linear-gradient(90deg, rgba(16,185,129,.35), rgba(110,231,183,.8)); }
.rbar-fill.neg { background: linear-gradient(270deg, rgba(248,113,113,.3), rgba(248,113,113,.75)); }
.rbar-track i { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--line-3); }
.rbar-mark { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid var(--bg); }
.rbar-mark.pos { background: var(--up); box-shadow: 0 0 10px rgba(52,211,153,.7); }
.rbar-mark.neg { background: var(--down); box-shadow: 0 0 10px rgba(248,113,113,.7); }
.rbar-labels { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; font: 500 9.5px var(--mono); color: var(--dim); }
.rbar-labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.rbar-labels span:first-child { transform: none; } .rbar-labels span:last-child { transform: translateX(-100%); }

/* Activity feed */
.feed { max-height: 640px; overflow-y: auto; }
.feed-item { display: flex; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: none; }
.feed-item.new { animation: feedIn .6s ease; }
@keyframes feedIn { from { background: rgba(52,211,153,.08); opacity: .3; } to { background: transparent; opacity: 1; } }
.feed-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; color: var(--muted); border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.feed-ic.green { color: var(--up); border-color: rgba(52,211,153,.25); background: rgba(52,211,153,.06); }
.feed-ic.red { color: var(--down); border-color: rgba(248,113,113,.25); background: rgba(248,113,113,.06); }
.feed-ic.amber { color: var(--warn); border-color: rgba(251,191,36,.25); background: rgba(251,191,36,.06); }
.feed-ic.blue { color: var(--info); border-color: rgba(96,165,250,.25); background: rgba(96,165,250,.06); }
.feed-main { min-width: 0; flex: 1; }
.feed-line { display: flex; align-items: center; gap: 7px; font-size: 12.5px; min-width: 0; }
.feed-line b { font-weight: 600; white-space: nowrap; }
.feed-sym { font: 500 11px var(--mono); color: var(--text); padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.05); }
.feed-type { font: 10.5px var(--mono); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-t { font: 10.5px var(--mono); color: var(--dim); white-space: nowrap; }
.feed-msg { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; overflow-wrap: anywhere; }
.feed-msg b { color: var(--text); font-weight: 600; } .feed-msg b.up { color: var(--up); }

/* Analysis history */
.hist-row { cursor: pointer; }
.hist-row .caret { display: inline-flex; color: var(--dim); margin-right: 8px; transition: transform .15s; }
.hist-row.open .caret { transform: rotate(90deg); color: var(--accent); }
.hist-row.open td { background: rgba(255,255,255,.02); }
.run-detail > td { padding: 14px; white-space: normal; background: rgba(0,0,0,.25); }
.run-detail .panel { margin-bottom: 0 !important; }
.mini-conf { display: flex; align-items: center; gap: 8px; min-width: 90px; }
.mini-conf .conf-bar { width: 52px; flex: none; }
.scan-grid { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 0; }
.scan-grid > .table-wrap { border-right: 1px solid var(--line); }
@media (max-width: 900px) { .scan-grid { grid-template-columns: 1fr; } .scan-grid > .table-wrap { border-right: none; border-bottom: 1px solid var(--line); } }

/* Timeline drawer */
.drawer-bg { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0); transition: background .2s; }
.drawer-bg.in { background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); display: flex; flex-direction: column; background: linear-gradient(180deg, #0d0f12, #08090b); border-left: 1px solid var(--line-2); box-shadow: -30px 0 80px -20px rgba(0,0,0,.8); transform: translateX(100%); transition: transform .25s ease; }
.drawer-bg.in .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head b { font-size: 15px; font-weight: 600; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.tl-label { margin: 22px 0 10px; letter-spacing: .1em; }
.tl-chart { height: 160px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tl-table { border: 1px solid var(--line); border-radius: 12px; }
.tl-table th, .tl-table td { padding: 9px 12px; }
.tl-note td { padding-top: 0 !important; font-size: 12px; color: var(--dim); white-space: normal; }
.tl-table tr:has(+ .tl-note) td { border-bottom: none; }
.tl-review { margin-top: 16px; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255,255,255,.02); }
.tl-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px 10px; }
.tl-grid span { display: block; font: 500 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px; }
.tl-grid b { font: 500 13px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* Insights */
.ins-note { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; line-height: 1.6; }
.ins-note .ic { color: var(--accent); margin-top: 3px; }
.edge-table th.grp { text-align: center; border-bottom: 1px solid var(--line); color: var(--muted); }
.edge-table th[rowspan] { vertical-align: bottom; }
.div-bar { position: relative; height: 8px; border-radius: 4px; background: rgba(255,255,255,.04); min-width: 120px; }
.div-bar i { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-3); }
.div-bar > div { position: absolute; top: 0; bottom: 0; }
.div-bar .pos { background: linear-gradient(90deg, rgba(16,185,129,.5), #6ee7b7); border-radius: 0 4px 4px 0; }
.div-bar .neg { background: linear-gradient(270deg, rgba(248,113,113,.45), #f87171); border-radius: 4px 0 0 4px; }
.wr-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; min-width: 60px; }
.wr-bar > div { height: 100%; background: linear-gradient(90deg, #10b981, #6ee7b7); }
.vol-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 0; }
.vol-kpis { display: grid; gap: 10px; padding: 18px 20px; border-right: 1px solid var(--line); align-content: start; }
.bar-list { padding: 18px 20px; display: grid; gap: 10px; align-content: start; }
.bar-row { display: grid; grid-template-columns: 130px minmax(0,1fr) 54px; gap: 12px; align-items: center; }
.bar-row .trig { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 18px; }
.bar-row b { text-align: right; font-weight: 500; }
.bar-track { height: 8px; border-radius: 4px; background: rgba(255,255,255,.04); overflow: hidden; }
.bar-track > div { height: 100%; border-radius: 4px; background: linear-gradient(90deg, rgba(96,165,250,.5), rgba(52,211,153,.85)); }
@media (max-width: 900px) { .vol-grid { grid-template-columns: 1fr; } .vol-kpis { border-right: none; border-bottom: 1px solid var(--line); grid-template-columns: repeat(3, minmax(0,1fr)); } .bar-row { grid-template-columns: 96px minmax(0,1fr) 44px; } }

/* Admin */
.adm-sel { height: 32px; font-size: 13px; padding: 0 30px 0 10px; min-width: 104px; }
.call-detail { max-width: 420px; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 600px) {
  .sig-foot { flex-wrap: wrap; row-gap: 10px; }
  .sig-top { flex-wrap: wrap; }
  .page-head .live-pill { width: 100%; justify-content: center; }
  .panel-head { flex-wrap: wrap; row-gap: 8px; padding: 14px 16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tile { padding: 14px; }
  .tile-mid { gap: 10px; } .ring.sm { width: 38px; height: 38px; font-size: 11px; } .tile-px { font-size: 14.5px; }
  .tile-foot { flex-wrap: wrap; }
  .agent-grid { grid-template-columns: 1fr; }
  .feed-item { padding: 12px 14px; }
  .vol-kpis { grid-template-columns: 1fr; }
  .tl-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .drawer-body { padding: 16px; }
}

/* ---------- Chart scan animation (while Nova analyses) ---------- */
.chart-box { position: relative; }
.scan { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; opacity: 0; transition: opacity .35s ease; }
.scan.on { opacity: 1; }
.scan-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,6,.10), rgba(5,5,6,.22)); }
.scan-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(52,211,153,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(52,211,153,.06) 1px, transparent 1px);
  background-size: 100% 48px, 48px 100%; mask-image: linear-gradient(90deg, transparent, #000 var(--x, 0px), transparent calc(var(--x, 0px) + 1px)); }
.scan-trail { position: absolute; top: 0; bottom: 0; width: 220px; background: linear-gradient(90deg, transparent, rgba(52,211,153,.05) 40%, rgba(52,211,153,.16)); }
.scan-beam { position: absolute; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, transparent, #6ee7b7 18%, #34d399 82%, transparent);
  box-shadow: 0 0 16px 3px rgba(52,211,153,.55), 0 0 60px 8px rgba(52,211,153,.18); }
.scan-beam::after { content: ""; position: absolute; left: -5px; width: 12px; height: 12px; border-radius: 50%; top: var(--py, 50%); margin-top: -6px;
  background: #a7f3d0; box-shadow: 0 0 14px 4px rgba(110,231,183,.8); }
.scan-ping { position: absolute; width: 0; height: 0; }
.scan-ping i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #6ee7b7; background: rgba(52,211,153,.25); animation: scanPing 1.6s ease-out forwards; }
.scan-ping.low i { border-color: #6ee7b7; } .scan-ping.high i { border-color: #fca5a5; background: rgba(248,113,113,.22); }
.scan-ping b { position: absolute; left: 9px; top: -9px; white-space: nowrap; font: 600 9.5px var(--mono); letter-spacing: .06em; color: #a7f3d0; text-shadow: 0 0 8px rgba(0,0,0,.9); animation: scanLabel 1.6s ease-out forwards; }
.scan-ping.high b { color: #fecaca; top: -16px; } .scan-ping.low b { top: 2px; }
@keyframes scanPing { 0% { transform: scale(.4); opacity: 0; } 15% { opacity: 1; } 60% { transform: scale(1.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes scanLabel { 0%, 10% { opacity: 0; transform: translateY(3px); } 25%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.scan-chip { position: absolute; left: 14px; top: 14px; width: max-content; max-width: calc(100% - 90px); display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(9,9,11,.82); border: 1px solid rgba(52,211,153,.35); backdrop-filter: blur(8px); font: 500 12px var(--mono); color: #d1fae5; box-shadow: 0 0 24px -6px rgba(52,211,153,.5); }
.scan-chip .spinner { width: 12px; height: 12px; color: var(--accent); }
.scan-chip .scan-step { color: rgba(167,243,208,.55); padding-left: 9px; border-left: 1px solid rgba(52,211,153,.25); }
.scan-done { position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(52,211,153,.18), transparent 70%); animation: scanDone .9s ease-out forwards; }
@keyframes scanDone { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scan-beam, .scan-trail, .scan-grid, .scan-ping { display: none; } }
