/* Tracehound — Fuse-style layout, dark theme. */

:root {
  --bg: #000;
  --bg-2: #030405;
  --card: #070809;
  --card-2: #0c0d10;
  --card-3: #131519;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f5f7;
  --text-2: #b9bfc8;
  --muted: #7d848e;
  --faint: #4c525b;
  --cyan: #5fe3f7;
  --cyan-2: #2bc8e2;
  --cyan-soft: rgba(95, 227, 247, 0.12);
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #f87171;
  --pending: #8b93a1;
  --r-sm: 0px;
  --r: 0px;
  --r-lg: 0px;
  --font: 'Google Sans Flex', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: #00151a; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 0; }

.container { width: min(1312px, 100% - 64px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
h1 { font-size: clamp(40px, 5.6vw, 66px); }
h2 { font-size: clamp(32px, 4vw, 50px); }
h3 { font-size: clamp(28px, 2.9vw, 38px); }
p { margin: 0; }

.tag { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); display: inline-block; flex: none; }
.dot-live { box-shadow: 0 0 0 0 rgba(95, 227, 247, 0.6); animation: pulse 2s infinite; }
.dot-amber { background: var(--yellow); }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(95, 227, 247, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 227, 247, 0); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 0; font-weight: 500; font-size: 15.5px; white-space: nowrap; transition: background 0.2s, transform 0.15s, border-color 0.2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #dff8fc; }
.btn-ghost { background: var(--card-2); border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--card-3); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn-xs { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 0; }
.btn-block { width: 100%; }
.is-soon { cursor: default; }
.btn-primary.is-soon, .btn-primary.is-soon:hover { background: var(--card-3); color: var(--text-2); }
.soon-tag { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 6px; border-radius: 0; background: rgba(251, 191, 36, 0.14); color: var(--yellow); vertical-align: middle; font-weight: 500; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { height: 68px; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 21px; letter-spacing: -0.04em; color: var(--text); }
.nav-links { display: flex; gap: 30px; flex: 1; }
.nav-links a { color: var(--text-2); font-size: 15.5px; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-right { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.nav-burger { display: none; width: 38px; height: 38px; border-radius: 0; border: 1px solid var(--line-2); position: relative; }
.nav-burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); }
.nav-burger span:first-child { top: 15px; } .nav-burger span:last-child { top: 21px; }
.nav-mobile { display: grid; padding: 8px 16px 16px; border-top: 1px solid var(--line); }
.nav-mobile a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
.demo-banner { background: rgba(251, 191, 36, 0.07); border-bottom: 1px solid rgba(251, 191, 36, 0.18); color: #f3dca4; font-size: 13.5px; }
.demo-banner .container { display: flex; align-items: center; gap: 10px; padding: 9px 0; }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 10vw, 128px) 0; }
.sec-head { display: grid; gap: 18px; margin-bottom: 56px; }
.sec-head.center { text-align: center; justify-items: center; }
.sec-head p { color: var(--text-2); font-size: 17.5px; max-width: 460px; }
.band { background: var(--bg-2); padding: clamp(40px, 5vw, 60px) 0; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(56px, 7vw, 100px); position: relative; }
.hero-copy { display: grid; justify-items: center; text-align: center; gap: 22px; }
.hero h1 { max-width: 760px; }
.hero-sub { color: var(--text-2); font-size: 18px; max-width: 600px; }
.capture { display: flex; gap: 6px; padding: 5px; border-radius: 0; background: var(--card); border: 1px solid var(--line-2); width: min(460px, 100%); margin-top: 18px; box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6); }
.capture input { flex: 1; min-width: 0; padding: 0 12px; background: transparent; border: 0; outline: none; font-size: 15px; }
.capture input::placeholder { color: var(--muted); }
.capture.shake { animation: shake 0.35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.hero-note { color: var(--text-2); font-size: 14.5px; }
.hero-stage { position: relative; margin-top: 56px; }
.hero-glow { position: absolute; left: 50%; top: -120px; width: min(1100px, 100%); height: 520px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(48% 52% at 50% 50%, rgba(95, 227, 247, 0.34), rgba(95, 227, 247, 0.08) 55%, transparent 75%); filter: blur(30px); }

.browser { position: relative; border-radius: 0; background: var(--card); border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8); max-height: 540px;
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); }
.browser-bar { height: 36px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--card-2); }
.traffic { display: flex; gap: 6px; }
.traffic i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.traffic i:nth-child(2) { background: #febc2e; } .traffic i:nth-child(3) { background: #28c840; }
.browser-url { display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 60px; border-radius: 0; background: var(--card-3); font-size: 11.5px; color: var(--muted); }
.browser-actions { display: flex; gap: 10px; }
.browser-actions i { width: 12px; height: 12px; border-radius: 0; border: 1.5px solid var(--faint); }

.dash { display: grid; grid-template-columns: 220px 1fr; min-height: 600px; }
.dash-side { border-right: 1px solid var(--line); padding: 18px 12px; }
.dash-brand { display: flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: -0.04em; font-size: 18px; padding: 0 8px 18px; }
.dash-brand svg:last-child { margin-left: auto; color: var(--muted); }
.brand-sm svg { width: 20px; height: 20px; }
.dash-side nav { display: grid; gap: 2px; }
.dash-side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 0; font-size: 13.5px; color: var(--text-2); }
.dash-side nav a .ic { width: 16px; text-align: center; color: var(--muted); font-size: 12px; }
.dash-side nav a.on { background: var(--cyan-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--cyan); }
.dash-side nav a.on .ic { color: var(--cyan); }
.dash-main { padding: 16px 18px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: center; }
.dash-head h4 { font-size: 17px; letter-spacing: -0.02em; }
.dash-head-r { display: flex; align-items: center; gap: 12px; }
.blk { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: 0; background: var(--card-2); border: 1px solid var(--line); font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.bell { color: var(--muted); }
.me { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), #3b82f6); color: #00151a; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { position: relative; padding: 12px 14px; border-radius: 0; background: var(--card-2); border: 1px solid var(--line); display: grid; gap: 2px; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi b { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.kpi em.up { color: var(--green); } .kpi em.down { color: var(--red); }
.spark { position: absolute; right: 12px; top: 26px; width: 60px; height: 20px; }
.spark path { fill: none; stroke-width: 1.5; }
.dash-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
.dcard { border-radius: 0; background: var(--card-2); border: 1px solid var(--line); padding: 14px; min-width: 0; }
.dcard-h { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 500; margin-bottom: 10px; }
.dcard-h .sel { font-size: 12px; color: var(--text-2); font-weight: 400; padding: 4px 10px; border-radius: 0; border: 1px solid var(--line-2); }
.chart-big { display: flex; align-items: baseline; gap: 10px; }
.chart-big b { font-size: 28px; font-weight: 500; letter-spacing: -0.03em; }
.chart-big span { color: var(--muted); font-size: 13px; }
.chart { height: 150px; display: flex; align-items: flex-end; gap: 6px; margin-top: 14px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 49px, var(--line) 49px 50px); }
.chart .col-b { flex: 1; display: flex; flex-direction: column-reverse; border-radius: 0; overflow: hidden; height: 0; transition: height 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.chart .col-b i { display: block; width: 100%; }
.chart-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
.scan-card { display: flex; flex-direction: column; }
.scan-box { flex: 1; border-radius: 0; border: 1px solid var(--line); background: var(--card); padding: 12px; display: grid; gap: 10px; margin-bottom: 10px; }
.scan-field { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 0; border: 1px solid var(--line-2); font-size: 12.5px; }
.scan-field .mono { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-sym { font-weight: 600; font-size: 13px; }
.scan-mid { display: flex; align-items: center; gap: 14px; }
.scan-mid .ring { width: 64px; height: 64px; }
.scan-mid .ring-num { font-size: 18px; }
.scan-rows { display: grid; gap: 6px; }
.scan-rows div { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); }
.scan-rows b { font-weight: 500; }
.table-card .dtable { display: grid; }
.dt-row { display: grid; grid-template-columns: 1.6fr 1fr 0.6fr 0.9fr 0.9fr; gap: 10px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--line); font-size: 13px; }
.dt-head { border-top: 0; color: var(--muted); font-size: 11.5px; padding-top: 0; }
.dt-row .tok { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.dt-row .tok .avatar { width: 24px; height: 24px; font-size: 9.5px; border-radius: 0; }
.dt-row.enter { animation: rowIn 0.6s ease; }
@keyframes rowIn { from { background: var(--cyan-soft); opacity: 0; } to { opacity: 1; } }

/* ---------- avatars, badges, ring, bars ---------- */
.avatar { width: 34px; height: 34px; border-radius: 0; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; color: #101317; flex: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 0; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lv-green { color: var(--green); background: rgba(52, 211, 153, 0.12); }
.lv-yellow { color: var(--yellow); background: rgba(251, 191, 36, 0.12); }
.lv-red { color: var(--red); background: rgba(248, 113, 113, 0.13); }
.lv-pending { color: var(--pending); background: rgba(139, 147, 161, 0.12); }
.lv-pending::before { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.ring { position: relative; width: 84px; height: 84px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .track { stroke: rgba(255, 255, 255, 0.07); }
.ring .val { stroke-linecap: round; transition: stroke-dashoffset 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.ring-num small { display: block; font-size: 9.5px; color: var(--muted); text-align: center; margin-top: -2px; letter-spacing: 0.02em; }
.bar { height: 6px; border-radius: 0; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 0; width: 0; transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* ---------- logo strip ---------- */
.logos { padding: 70px 0 10px; text-align: center; }
.logos p { color: var(--muted); font-size: 14.5px; }
.marquee { margin-top: 26px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; padding-right: 56px; width: max-content; animation: marquee 60s linear infinite; will-change: transform; }
.marquee-track span { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 600; letter-spacing: -0.03em; color: #8a919b; white-space: nowrap; }
.marquee-track span i { width: 22px; height: 22px; border-radius: 0; background: #2a2e35; display: grid; place-items: center; font-style: normal; font-size: 11px; color: #c7ccd3; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- feature cards ---------- */
.fgrid { display: grid; grid-template-columns: 1.3fr 0.82fr; gap: 24px; }
.fgrid { grid-template-areas: 'a b' 'c d'; }
.fgrid .fcard:nth-child(1) { grid-area: a; } .fgrid .fcard:nth-child(2) { grid-area: b; }
.fgrid .fcard:nth-child(3) { grid-area: c; } .fgrid .fcard:nth-child(4) { grid-area: d; }
.fcard { border-radius: 0; background: var(--card); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; min-height: 610px; }
.fcard-top { padding: 26px 24px 0; display: grid; gap: 12px; }
.fcard-top p { color: var(--text-2); font-size: 15.5px; max-width: 540px; }
.ftitle { display: flex; align-items: center; gap: 12px; font-size: 19.5px; font-weight: 500; letter-spacing: -0.02em; }
.ficon { width: 30px; height: 30px; border-radius: 0; display: grid; place-items: center; font-size: 14px; background: var(--card-3); flex: none; }
.ficon.sm { width: 24px; height: 24px; font-size: 12px; border-radius: 0; }
.ic-cyan { color: var(--cyan); background: rgba(95, 227, 247, 0.12); }
.ic-green { color: var(--green); background: rgba(52, 211, 153, 0.12); }
.ic-violet { color: #a78bfa; background: rgba(167, 139, 250, 0.13); }
.ic-amber { color: #fb923c; background: rgba(251, 146, 60, 0.13); }
.ic-red { color: var(--red); background: rgba(248, 113, 113, 0.13); }
.more { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--text); margin-top: 4px; }
.more span { color: var(--muted); transition: transform 0.2s; }
.more:hover span { transform: translateX(3px); }
.more.light { color: #fff; }
.fvis { position: relative; flex: 1; margin-top: 28px; }

/* row 2 swaps widths like the reference */
@media (min-width: 768px) {
  .fgrid { grid-template-columns: repeat(20, 1fr); grid-template-areas: none; }
  .fgrid .fcard:nth-child(1) { grid-area: auto; grid-column: span 12; }
  .fgrid .fcard:nth-child(2) { grid-area: auto; grid-column: span 8; }
  .fgrid .fcard:nth-child(3) { grid-area: auto; grid-column: span 9; }
  .fgrid .fcard:nth-child(4) { grid-area: auto; grid-column: span 11; }
}

/* trace visual */
.vis-trace { padding: 0 24px 26px; }
.mini-list { border-radius: 0; background: var(--card-2); border: 1px solid var(--line); padding: 16px; width: min(470px, 92%); }
.ml-h { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.ml-h span { color: var(--muted); font-size: 13px; }
.ml-row { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.ml-row b { font-weight: 500; display: block; }
.ml-row small { color: var(--muted); font-size: 12px; }
.ml-ic { width: 30px; height: 30px; border-radius: 0; background: var(--card-3); display: grid; place-items: center; color: var(--text-2); font-size: 13px; }
.ml-ic.bad { color: var(--red); background: rgba(248, 113, 113, 0.12); }
.ml-ic.warn { color: var(--yellow); background: rgba(251, 191, 36, 0.12); }
.chip-sm { font-size: 11.5px; padding: 3px 8px; border-radius: 0; background: var(--card-3); color: var(--text-2); white-space: nowrap; }
.chip-sm.bad { color: var(--red); background: rgba(248, 113, 113, 0.12); }
.chip-sm.warn { color: var(--yellow); background: rgba(251, 191, 36, 0.12); }
.chip-sm.ok { color: var(--green); background: rgba(52, 211, 153, 0.12); }
.amt { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text-2); }
.float-note { position: absolute; right: 24px; width: 250px; padding: 14px 16px; border-radius: 0; background: var(--card-3); border: 1px solid var(--line-2); display: grid; gap: 4px; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7); }
.float-note b { font-size: 14px; font-weight: 500; }
.float-note span { font-size: 13px; color: var(--text-2); }
.float-note.n1 { top: 30px; } .float-note.n1 b { color: var(--red); }
.float-note.n2 { top: 160px; right: 50px; } .float-note.n2 b { color: var(--yellow); }

/* powers visual */
.vis-powers { display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding: 0 24px 30px; }
.pw { display: grid; justify-items: center; gap: 10px; flex: 1; max-width: 86px; }
.pw .mono { font-size: 11.5px; color: var(--text-2); }
.pw small { font-size: 11.5px; color: var(--muted); }
.pw-bar { width: 100%; height: 300px; border-radius: 0; background: var(--card-2); border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 6px; }
.pw-bar i { display: block; width: 100%; height: var(--h); border-radius: 0; }
.pw-bar i.r { background: linear-gradient(to top, rgba(248, 113, 113, 0.9), rgba(248, 113, 113, 0.35)); }
.pw-bar i.y { background: linear-gradient(to top, rgba(251, 191, 36, 0.9), rgba(251, 191, 36, 0.3)); }
.pw-bar i.g { background: linear-gradient(to top, rgba(52, 211, 153, 0.9), rgba(52, 211, 153, 0.3)); }

/* simulation visual */
.vis-sim { display: grid; justify-items: center; align-content: center; gap: 16px; padding: 0 24px 30px; }
.toast-ok { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 0; background: var(--card-3); border: 1px solid var(--line-2); font-size: 14px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.7); }
.toast-ok .tick { width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #052e1c; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.receipt { width: min(320px, 100%); border-radius: 0; background: var(--card-2); border: 1px solid var(--line); padding: 16px; display: grid; gap: 4px; }
.rc-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.rc-row { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--muted); }
.rc-row .mono { color: var(--text-2); font-size: 12.5px; }
.ok-t { color: var(--green) !important; }

/* radar visual */
.vis-radar { display: grid; place-items: center; min-height: 340px; overflow: hidden; }
.radar { position: relative; width: 320px; height: 320px; display: grid; place-items: center; }
.radar i { position: absolute; border-radius: 50%; border: 1px solid var(--line-2); }
.radar i:nth-of-type(1) { inset: 0; } .radar i:nth-of-type(2) { inset: 56px; } .radar i:nth-of-type(3) { inset: 112px; background: rgba(95, 227, 247, 0.04); }
.radar-core { width: 64px; height: 64px; border-radius: 50%; background: var(--card-3); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--cyan); z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.float-stat { position: absolute; padding: 10px 14px; border-radius: 0; background: var(--card-3); border: 1px solid var(--line-2); display: grid; gap: 2px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.7); }
.float-stat b { font-size: 13.5px; font-weight: 500; }
.float-stat span { font-size: 12.5px; color: var(--text-2); }
.float-stat.s1 { left: 9%; top: 26%; } .float-stat.s1 b { color: var(--red); }
.float-stat.s2 { right: 9%; bottom: 22%; } .float-stat.s2 b { color: var(--green); }

/* ---------- alternating rows ---------- */
.rows { display: grid; gap: 34px; }
.row-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 30px; border-radius: 0; background: var(--card); border: 1px solid var(--line); }
.row-card.flip .row-text { order: 2; }
.row-text { display: flex; flex-direction: column; padding: 4px 0; }
.row-text h3 { margin-top: 22px; }
.row-text > p { color: var(--text-2); font-size: 17px; margin-top: 18px; max-width: 460px; }
.tag-ic { color: var(--text); text-transform: uppercase; }
.checks { list-style: none; padding: 0; margin: auto 0 0; padding-top: 40px; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--text); }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 1px; font-size: 12px; color: var(--text-2); }
.checks.sm { padding-top: 0; gap: 12px; margin: 0; }
.checks.sm li { font-size: 14.5px; color: var(--text-2); }
.row-vis { border-radius: 0; background: var(--card-2); border: 1px solid var(--line); min-height: 470px; position: relative; overflow: hidden; }

.vis-stack { display: grid; place-items: center; }
.stack-card { position: absolute; border-radius: 0; background: var(--card-3); border: 1px solid var(--line-2); padding: 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75); }
.stack-card > b { display: block; font-size: 13.5px; font-weight: 500; }
.stack-card > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.stack-card.front { left: 7%; top: 11%; width: 290px; z-index: 2; }
.stack-card.back { right: 5%; top: 20%; width: 250px; height: 320px; padding-left: 70px; z-index: 1; display: grid; align-content: start; gap: 8px; }
.stack-card .mini { padding: 10px; border-radius: 0; background: var(--card-2); border: 1px solid var(--line); display: grid; }
.stack-card .mini b { font-size: 13px; font-weight: 500; }
.stack-card .mini small { font-size: 11.5px; color: var(--muted); }
.feedmini { display: grid; gap: 8px; margin-top: 12px; }
.fm { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 0; background: var(--card-2); border: 1px solid var(--line); }
.fm .avatar { width: 30px; height: 30px; border-radius: 0; font-size: 10px; }
.fm b { font-size: 13px; font-weight: 500; display: block; }
.fm small { font-size: 11.5px; color: var(--muted); }
.fm.enter { animation: rowIn 0.6s ease; }

.vis-budget { display: grid; place-items: center; padding: 30px; }
.budget { width: min(360px, 100%); border-radius: 0; background: var(--card-3); border: 1px solid var(--line-2); padding: 18px; display: grid; gap: 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75); }
.bd-h { display: flex; align-items: center; gap: 12px; }
.bd-h b { display: block; font-weight: 500; }
.bd-h small { color: var(--muted); font-size: 12.5px; }
.bd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bd-grid div { padding: 12px; border-radius: 0; background: var(--card-2); border: 1px solid var(--line); display: grid; }
.bd-grid small { color: var(--muted); font-size: 12px; }
.bd-grid b { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.bd-grid em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.bd-use { display: grid; gap: 8px; padding: 12px; border-radius: 0; background: var(--card-2); border: 1px solid var(--line); }
.bd-use-t { display: flex; justify-content: space-between; font-size: 13px; }
.bd-use-t b { font-weight: 500; color: var(--red); }
.bd-use small { color: var(--muted); font-size: 12px; }
.bd-act { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--text-2); }
.toast-ok.floating { position: absolute; bottom: 34px; left: 50%; transform: translate(-50%, 20px); opacity: 0; transition: all 0.4s; }
.toast-ok.floating.show { opacity: 1; transform: translate(-50%, 0); }

.vis-bot { display: grid; justify-items: center; align-content: center; gap: 22px; padding: 30px; }
.app-icons { display: flex; gap: 16px; align-items: center; }
.ai { width: 46px; height: 46px; border-radius: 0; background: var(--card-3); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 18px; color: var(--text-2); }
.ai.hi { width: 56px; height: 56px; background: #fff; color: #000; }
.bot-card { width: min(380px, 100%); border-radius: 0; background: var(--card-3); border: 1px solid var(--line-2); padding: 18px; display: grid; gap: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75); }
.bc-h { display: flex; align-items: center; gap: 8px; }
.bc-h b { font-weight: 600; letter-spacing: -0.02em; }
.bc-logo svg { width: 18px; height: 18px; }
.bc-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.bc-act { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; }
.bc-act .avatar { width: 30px; height: 30px; border-radius: 50%; font-size: 10px; }
.bc-act b { font-size: 13px; font-weight: 500; display: block; }
.bc-act small { font-size: 12px; color: var(--muted); }

/* ---------- numbers ---------- */
.numbers { padding: 90px 0; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.num b { display: block; font-size: clamp(44px, 5vw, 64px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; margin-bottom: 18px; background: linear-gradient(180deg, #fff, #9aa3ad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num b span { font-size: 0.5em; }
.num h5 { font-size: 18.5px; letter-spacing: -0.02em; }
.num p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* ---------- integrations ---------- */
.integ-in { display: grid; grid-template-columns: 0.85fr 1fr; gap: 40px; align-items: center; }
.integ-text { display: grid; gap: 18px; justify-items: start; }
.integ-text p { color: var(--text-2); font-size: 17px; max-width: 520px; }
.integ-text .btn { margin-top: 12px; }
.tiles { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; mask-image: radial-gradient(70% 70% at 55% 50%, #000 55%, transparent 100%); -webkit-mask-image: radial-gradient(70% 70% at 55% 50%, #000 55%, transparent 100%); }
.tile { aspect-ratio: 1; border-radius: 0; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 600; font-size: 15px; letter-spacing: -0.03em; color: var(--text-2); transition: transform 0.3s, background 0.3s; }
.tile.on { background: var(--card-2); }
.tile.on:hover { transform: translateY(-3px); }
.tile.core { background: #fff; color: #000; box-shadow: 0 0 60px rgba(95, 227, 247, 0.35); }
.tile.core svg { width: 34px; height: 34px; }
.tile span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 0; font-size: 13px; }

/* ---------- trust ---------- */
.trust-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; margin-bottom: 40px; }
.trust-head > div:first-child { display: grid; gap: 18px; }
.trust-head p { color: var(--text-2); font-size: 17px; max-width: 460px; }
.seals { display: grid; justify-items: end; gap: 14px; }
.seals small { color: var(--text-2); font-size: 14.5px; }
.seal-row { display: flex; gap: 12px; }
.seal { width: 92px; height: 92px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); display: grid; place-items: center; align-content: center; text-align: center; font-size: 9.5px; letter-spacing: 0.1em; color: var(--muted); line-height: 1.2; }
.seal b { font-size: 15px; letter-spacing: 0.02em; color: var(--text); }
.tcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tcard-f { padding: 24px; border-radius: 0; background: var(--card); border: 1px solid var(--line); display: grid; gap: 28px; align-content: start; }
.tcard-f p { color: var(--text-2); font-size: 15px; }
.center-link { display: flex; width: max-content; margin: 34px auto 0; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 22px; border-radius: 0; background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; }
.step-n { position: absolute; top: 22px; left: 22px; padding: 4px 10px; border-radius: 0; background: var(--card-3); font-size: 13px; color: var(--text-2); z-index: 1; }
.step h4 { font-size: 19px; letter-spacing: -0.02em; margin-top: 6px; }
.step p { color: var(--text-2); font-size: 15px; }
.step-vis { position: relative; height: 330px; }
.orbit { display: grid; place-items: center; }
.o-ring { position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 1px solid var(--line-2); }
.o-core { width: 78px; height: 78px; border-radius: 50%; background: var(--cyan); color: #00151a; display: grid; place-items: center; box-shadow: 0 0 50px rgba(95, 227, 247, 0.45); }
.o-core svg { width: 34px; height: 34px; }
.o-sat { position: absolute; width: 36px; height: 36px; border-radius: 50%; background: var(--card-3); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.o-sat.a { top: 55px; left: calc(50% - 18px); color: #818cf8; } .o-sat.b { top: calc(50% - 18px); right: calc(50% - 128px); color: var(--text-2); }
.o-sat.c { bottom: 55px; left: calc(50% - 18px); color: #fb923c; } .o-sat.d { top: calc(50% - 18px); left: calc(50% - 128px); color: var(--green); }
.rules { display: grid; place-items: center; }
.rules-card { width: 86%; padding: 46px 18px 18px; border-radius: 0; background: var(--card-2); border: 1px solid var(--line); display: grid; gap: 14px; position: relative; }
.rules-t { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); padding: 8px 22px; border-radius: 0; background: var(--card-3); border: 1px solid var(--line-2); font-size: 13px; white-space: nowrap; }
.rules-row { display: grid; grid-template-columns: 14px 1fr 1fr 1fr; gap: 10px; align-items: center; }
.rules-row i { width: 14px; height: 14px; border-radius: 0; background: var(--card-3); }
.rules-row b { height: 8px; border-radius: 0; background: var(--card-3); }
.rules-btn { position: absolute; bottom: 70px; }
.wallets .w-arc { position: absolute; left: 50%; bottom: 30px; border-radius: 50%; border: 1px solid var(--line-2); transform: translateX(-50%); }
.w-arc.a1 { width: 300px; height: 300px; bottom: -110px; } .w-arc.a2 { width: 200px; height: 200px; bottom: -60px; }
.w-dot { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--card-3); border: 2px solid #2d333b; }
.w-dot.bad { background: rgba(248, 113, 113, 0.35); border-color: rgba(248, 113, 113, 0.6); }
.w-core { position: absolute; left: 50%; bottom: 40px; --base: translateX(-50%); width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; box-shadow: 0 0 40px rgba(95, 227, 247, 0.4); }
.w-core svg { width: 26px; height: 26px; }

/* ---------- stories ---------- */
.stories-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; }
.stories-head > div { display: grid; gap: 18px; }
.story-list { display: grid; gap: 20px; }
.story { min-height: 340px; border-radius: 0; padding: 40px 56px; display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; position: relative; overflow: hidden; border: 1px solid var(--line); }
.story::before { content: ''; position: absolute; inset: 0; z-index: 0; }
.story > * { position: relative; z-index: 1; }
.s-a::before { background: radial-gradient(60% 80% at 85% 20%, rgba(95, 227, 247, 0.35), transparent 60%), radial-gradient(50% 60% at 10% 100%, rgba(248, 113, 113, 0.18), transparent 70%), linear-gradient(135deg, #10161b, #0b0d10); }
.s-b::before { background: radial-gradient(60% 80% at 80% 30%, rgba(251, 191, 36, 0.28), transparent 60%), linear-gradient(135deg, #17130c, #0b0d10); }
.s-c::before { background: radial-gradient(60% 80% at 75% 25%, rgba(167, 139, 250, 0.3), transparent 60%), linear-gradient(135deg, #13111b, #0b0d10); }
.story-k { position: absolute !important; top: 34px; left: 56px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.story h5 { font-size: 22px; font-weight: 500; color: #fff; }
.story p { font-size: clamp(22px, 2.6vw, 33px); line-height: 1.22; letter-spacing: -0.02em; color: #fff; max-width: 720px; }
.story-n { position: absolute !important; top: 18px; right: 44px; font: 500 150px/1 'Google Sans Flex', sans-serif; letter-spacing: -0.06em; color: rgba(255,255,255,.06); pointer-events: none; }
.story .more { align-self: flex-start; }

/* ---------- pricing ---------- */
.pricing { padding: clamp(80px, 10vw, 120px) 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: end; }
.plan { border-radius: 0; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.plan-top { padding: 22px; display: grid; gap: 14px; border-bottom: 1px solid var(--line); }
.plan-top p { color: var(--text-2); font-size: 15px; }
.plan-body { padding: 22px; display: grid; gap: 22px; }
.price { font-size: 38px; font-weight: 500; letter-spacing: -0.03em; }
.price small { font-size: 14px; color: var(--muted); letter-spacing: 0; }
.plan.pop { border-color: rgba(95, 227, 247, 0.4); background: linear-gradient(180deg, #0f2a31, var(--card) 40%); }
.pop-tag { background: var(--cyan); color: #00151a; text-align: center; font-size: 14px; font-weight: 500; padding: 8px; }
.plan.pop .plan-top p { color: #cfe9ee; }

/* ---------- cta ---------- */
.cta-wrap { padding: clamp(80px, 10vw, 110px) 0 0; }
.cta { border-radius: 0; padding: clamp(56px, 7vw, 96px) 24px; text-align: center; display: grid; justify-items: center; gap: 18px; position: relative; overflow: hidden; border: 1px solid rgba(95, 227, 247, 0.25);
  background: radial-gradient(60% 90% at 15% 20%, rgba(95, 227, 247, 0.35), transparent 60%), radial-gradient(50% 80% at 90% 90%, rgba(43, 200, 226, 0.3), transparent 60%), linear-gradient(135deg, #0d2026, #0b1418); }
.cta h2 { max-width: 760px; }
.cta > p { color: #cfe9ee; font-size: 17px; max-width: 520px; }
.cta .capture { margin-top: 18px; }

/* ---------- footer ---------- */
.footer { padding: 90px 0 30px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-about { display: grid; gap: 22px; align-content: start; }
.footer-about p { color: var(--text-2); font-size: 16px; max-width: 340px; }
.socials { display: flex; gap: 16px; color: var(--text-2); }
.socials a:hover { color: var(--text); }
.footer-col { display: grid; gap: 12px; align-content: start; font-size: 15px; }
.footer-col b { font-weight: 500; margin-bottom: 6px; }
.footer-col a { color: var(--text-2); }
.footer-col a:hover { color: var(--text); }
.wordmark { font-size: clamp(64px, 17.5vw, 250px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.85; color: #15181c; margin: 60px 0 30px; white-space: nowrap; text-align: center; user-select: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); }
.footer-chips { display: flex; gap: 8px; }
.footer-chips span { padding: 6px 10px; border-radius: 0; border: 1px solid var(--line-2); }


/* =========================================================
   Terminal pages (/app, /token, /wallet)
   ========================================================= */
.term { padding: 34px 0 0; }
.term-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.term-top h1 { font-size: clamp(32px, 4vw, 44px); }
.eyebrow-mono { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; }
.search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 5px 0 16px; border-radius: 0; background: var(--card); border: 1px solid var(--line-2); width: min(520px, 100%); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 14.5px; }
.search input::placeholder { color: var(--muted); }
.term-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.tstat { padding: 16px 18px; border-radius: 0; background: var(--card); border: 1px solid var(--line); display: grid; gap: 4px; }
.tstat b { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tstat b.na, .na { color: var(--faint); }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 13px; padding: 7px 13px; border-radius: 0; color: var(--text-2); border: 1px solid var(--line-2); background: var(--card); transition: all 0.15s; }
.chip:hover { color: var(--text); }
.chip.on { color: #000; background: #fff; border-color: #fff; }
.select { height: 36px; padding: 0 12px; border-radius: 0; background: var(--card); border: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.col { border-radius: 0; background: var(--card); border: 1px solid var(--line); min-height: 540px; display: flex; flex-direction: column; min-width: 0; }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.col-head h3 { font-size: 16px; letter-spacing: -0.01em; display: flex; gap: 10px; align-items: center; }
.col-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; align-content: start; }
.tcard { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 10px; border-radius: 0; transition: background 0.15s; }
.tcard:hover { background: var(--card-2); }
.tcard.enter { animation: rowIn 0.6s ease; }
.tcard .right { display: grid; justify-items: end; gap: 4px; }
.row-main { min-width: 0; }
.row-sym { font-weight: 500; font-size: 15px; display: flex; gap: 8px; align-items: baseline; }
.row-sym .nm { color: var(--muted); font-weight: 400; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard .flags { font-size: 12px; color: var(--red); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.col-tabs { display: none; margin-bottom: 12px; }
.skeleton { height: 56px; border-radius: 0; background: linear-gradient(90deg, var(--card), var(--card-2), var(--card)); background-size: 200% 100%; animation: shimmer 1.4s infinite; margin: 4px; list-style: none; }
@keyframes shimmer { to { background-position: -200% 0; } }

.tk-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-bottom: 20px; }
.tk-id { display: flex; gap: 16px; align-items: center; min-width: 0; }
.tk-id .avatar { width: 58px; height: 58px; border-radius: 0; font-size: 16px; }
.tk-id h1 { font-size: clamp(30px, 4vw, 42px); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.tk-id h1 .nm { color: var(--muted); font-size: 0.55em; font-weight: 400; letter-spacing: -0.01em; }
.meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 0; background: var(--card); border: 1px solid var(--line-2); font-size: 12.5px; color: var(--text-2); }
button.pill:hover { color: var(--text); }
.pill.copied::after { content: ' ✓'; color: var(--green); }
.tk-grid { display: grid; grid-template-columns: 370px 1fr; gap: 16px; align-items: start; }
.box { border-radius: 0; background: var(--card); border: 1px solid var(--line); padding: 24px; }
.box + .box { margin-top: 16px; }
.box-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.box-title h3 { font-size: 19px; }
.score-big { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 6px 0; }
.score-big .ring { width: 156px; height: 156px; }
.score-big .ring circle { stroke-width: 9; }
.score-big .ring-num { font-size: 42px; }
.score-big p { max-width: 260px; }
.flag { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 0; font-size: 13.5px; background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.22); color: #fecaca; }
.flag b { color: var(--red); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; padding-top: 2px; }
.flag.ok { background: rgba(52, 211, 153, 0.07); border-color: rgba(52, 211, 153, 0.22); color: #c6f6e1; }
.flag.ok b { color: var(--green); }
.sig-list { display: grid; }
.sig-item { display: grid; grid-template-columns: 1fr 130px; gap: 18px; align-items: center; padding: 15px 2px; border-top: 1px solid var(--line); }
.sig-item:first-child { border-top: 0; }
.sig-item .s-t { font-weight: 500; font-size: 15.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sig-item .s-e { color: var(--text-2); font-size: 14px; margin-top: 3px; }
.sig-item .s-p { display: grid; gap: 6px; justify-items: end; font-size: 12.5px; color: var(--muted); }
.sig-item .s-p .bar { width: 100%; }
.hf-tag { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 0; background: rgba(248, 113, 113, 0.14); color: var(--red); font-weight: 500; }
.feat-tag { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 0; background: var(--card-3); color: var(--muted); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 400; font-size: 12.5px; color: var(--muted); padding: 0 8px 10px; }
.table td { padding: 11px 8px; border-top: 1px solid var(--line); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.table td a:hover { color: var(--cyan); }
.pctbar { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.pctbar .bar { width: 90px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.kv div:first-child { border-top: 0; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { text-align: right; overflow: hidden; text-overflow: ellipsis; }
.kv a:hover { color: var(--cyan); }
.notfound { text-align: center; padding: 90px 20px; display: grid; gap: 16px; justify-items: center; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 767px) {
  .container { width: min(1312px, 100% - 32px); }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .fgrid { grid-template-columns: 1fr; grid-template-areas: 'a' 'b' 'c' 'd'; }
  .fcard { min-height: 0; }
  .fvis { min-height: 340px; }
  .row-card { grid-template-columns: 1fr; padding: 22px; }
  .row-card.flip .row-text { order: 0; }
  .row-vis { min-height: 420px; }
  .nums { grid-template-columns: 1fr 1fr; row-gap: 50px; }
  .integ-in { grid-template-columns: 1fr; }
  .trust-head { grid-template-columns: 1fr; }
  .seals { justify-items: start; }
  .tcards, .steps, .plans { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .tk-grid { grid-template-columns: 1fr; }
  .term-stats { grid-template-columns: repeat(3, 1fr); }
  .cols { grid-template-columns: 1fr; }
  .col { display: none; min-height: 0; }
  .col.on { display: flex; }
  .col-tabs { display: flex; }
}
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .spark { display: none; }
  .dt-row { grid-template-columns: 1.6fr 0.6fr 1fr; }
  .dt-row > :nth-child(2), .dt-row > :nth-child(4) { display: none; }
  .browser-url { padding: 0 14px; }
  .float-note { position: relative; right: auto !important; top: auto !important; width: auto; margin-top: 12px; }
  .bd-act { flex-direction: column; align-items: flex-start; gap: 10px; }
  .vis-trace { display: grid; }
  .mini-list { width: 100%; }
  .ml-row { grid-template-columns: 30px 1fr auto; }
  .ml-row .amt { display: none; }
  .stack-card.front { left: 6%; width: 78%; }
  .stack-card.back { right: 4%; width: 60%; }
  .seal-row { flex-wrap: wrap; }
  .seal { width: 74px; height: 74px; }
  .tiles { grid-template-columns: repeat(5, 1fr); }
  .story { padding: 30px 24px; min-height: 360px; }
  .story-k { left: 24px; top: 24px; }
  .stories-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tk-head { grid-template-columns: 1fr; }
  .term-stats { grid-template-columns: 1fr 1fr; }
  .sig-item { grid-template-columns: 1fr; }
  .sig-item .s-p { justify-items: start; }
  .capture { flex-direction: column; }
  .capture input { height: 44px; }
}


/* =========================================================
   Motion (timings taken from the reference)
   ========================================================= */
:root {
  --e-tw: cubic-bezier(.12, .23, .5, 1);      /* tween 0.6s */
  --e-sp: cubic-bezier(.22, 1, .36, 1);       /* spring 250/40 */
  --e-bo: cubic-bezier(.34, 1.36, .64, 1);    /* spring, bounce .2 */
}
[data-m] {
  opacity: 0;
  transform: var(--base, translate(0, 0)) var(--m0, translate(0, 0));
  transition: opacity .6s var(--e-tw) var(--d, 0s), transform .75s var(--e-sp) var(--d, 0s);
  will-change: transform, opacity;
}
[data-m].m-in { opacity: 1; transform: var(--base, translate(0, 0)); }
[data-m].m-done { will-change: auto; }
[data-m="fade"] { transition: opacity .6s var(--e-tw) var(--d, 0s); }
[data-m="up14"] { --m0: translateY(14px); }
[data-m="up20"] { --m0: translateY(20px); }
[data-m="up22"] { --m0: translateY(22px); }
[data-m="up50"] { --m0: translateY(50px); }
[data-m="upn1"] { --m0: translateY(-1px); }
[data-m="left40"] { --m0: translateX(-40px); }
[data-m="pop"] { --m0: scale(.6); }
[data-m="pop-l"] { --m0: translateX(-35px) scale(.6); }
[data-m="pop-r"] { --m0: translateX(35px) scale(.6); }
[data-m="rot35"] { --m0: rotate(35deg); }
[data-m="rot34"] { --m0: rotate(34deg) scale(.9); transition: opacity .5s var(--e-tw) var(--d, 0s), transform .5s var(--e-bo) var(--d, 0s); }
[data-m="grow"] { --m0: scaleY(0); transform-origin: bottom; opacity: 1; }
[data-m="grow"]:not(.m-in) { opacity: 1; }

/* elements that already carry a transform */
.ai:nth-child(2n) { --base: translateY(-12px); }
.ai.hi { --base: translateY(-18px); }
.receipt { --base: rotate(-2deg); }

/* hero sparklines draw in */
.spark path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.5s cubic-bezier(.95, .04, .44, 1); }
.spark.drawn path { stroke-dashoffset: 0; }

/* loops: paused until visible */
[data-loop], [data-loop] * { animation-play-state: paused !important; }
[data-loop].run, [data-loop].run * { animation-play-state: running !important; }

/* owner powers: spinning rings (1s linear, like the reference spinner) */
.pw { position: relative; }
.ring-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--cyan); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* transfer simulation: sheets behind the receipt + shimmer text */
.sheets { position: relative; width: min(320px, 100%); display: grid; }
.sheets > * { grid-area: 1 / 1; }
.sheet { border-radius: 0; background: var(--card-3); border: 1px solid var(--line); }
.sheet.s1 { --base: rotate(4deg) translate(6px, 4px); }
.sheet.s2 { --base: rotate(-6deg) translate(-4px, 8px); }
.sheet.s2.m-in { opacity: .6; }
.receipt { position: relative; z-index: 1; width: 100%; }
.shimmer { font-size: 13px; font-weight: 500; margin: 2px 0 6px; background: linear-gradient(110deg, var(--muted) 35%, #fff 50%, var(--muted) 65%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer-t 2.4s linear infinite; }
@keyframes shimmer-t { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* live alerts: icons on the rings */
.r-ic { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: var(--card-3); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--text-2); z-index: 1; }
.r-ic.i1 { top: 18px; left: 50%; margin-left: -17px; color: #818cf8; }
.r-ic.i2 { top: 50%; right: 38px; margin-top: -17px; color: var(--green); }
.r-ic.i3 { bottom: 40px; left: 58px; color: #fb923c; }

/* sticky stacked feature rows */
@media (min-width: 768px) {
  .rows { gap: 40px; }
  .row-card { position: sticky; top: 100px; transform-origin: 50% 50%; transition: transform .35s var(--e-bo); }
  .row-card.is-back { transform: scale(.8); }
}
.row-card { background: var(--card); }

/* vertical alert ticker */
.vticker { height: 250px; overflow: hidden; mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); }
.vticker-track { display: grid; gap: 12px; padding-bottom: 12px; animation: vtick 30s linear infinite; will-change: transform; }
@keyframes vtick { to { transform: translateY(-50%); } }
.vt-item { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: center; padding: 10px; border-radius: 0; background: var(--card-2); border: 1px solid var(--line); }
.vt-item b { display: block; font-size: 12.5px; font-weight: 500; }
.vt-item small { font-size: 11.5px; color: var(--muted); }
.vt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.vt-dot.bad { background: var(--red); } .vt-dot.warn { background: var(--yellow); }
.stack-card.back { padding-left: 16px; height: auto; }

/* smart flags cycle */
#bd-bar { width: 100%; transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--e-sp); }
.btn.press { transform: scale(.94); }
.btn { transition: background .2s, transform .3s var(--e-bo), border-color .2s; }

/* step 02 rows */
.r-line b, .r-line i { transition: background .4s var(--e-tw); }
.r-line.on i { background: var(--green); }
.r-line.on b { background: rgba(95, 227, 247, .35); }



/* logo cut colour on light / coloured tiles */
.tile.core, .ai.hi, .w-core { --cut: #fff; }
.o-core { --cut: var(--cyan); }
.radar-core { --cut: var(--card-3); }

/* =========================================================
   FX layer
   ========================================================= */
/* headings: word blur reveal */
.split .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.32em); transition: opacity .7s var(--e-tw), filter .7s var(--e-tw), transform .8s var(--e-sp); transition-delay: calc(var(--d, 0s) + var(--i) * 55ms); will-change: transform, opacity, filter; }
.split.m-in .w { opacity: 1; filter: blur(0); transform: none; }
.split.m-done .w { will-change: auto; }
[data-m="fade"].split { opacity: 1; } /* the words do the fading */
.hero-fade { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--e-tw) var(--d), transform .8s var(--e-sp) var(--d); }
.hero-fade.m-in { opacity: 1; transform: none; }

/* hero */
.browser { transform-origin: 50% 0; will-change: transform; }
.hero-glow { animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .75; transform: translateX(-50%) scale(1.06); } }

/* nav */
.nav { transition: background .3s, border-color .3s; }
.nav.scrolled { background: rgba(0, 0, 0, 0.94); }

/* button text roll */
.btn .roll { position: relative; display: inline-flex; flex-direction: column; height: 1.25em; overflow: hidden; line-height: 1.25em; }
.btn .roll span { display: block; transition: transform .45s var(--e-sp); }
.btn:hover .roll span { transform: translateY(-100%); }

/* feature cards: hover lift */
.fcard { transition: border-color .3s, transform .45s var(--e-sp); }
.fcard:hover { border-color: var(--line-2); transform: translateY(-4px); }
.fcard .fvis { transition: transform .6s var(--e-sp); }
.fcard:hover .fvis { transform: scale(1.015); }

/* new rows arriving */
.row-new { animation: rowNew .6s var(--e-sp) both; }
@keyframes rowNew { from { opacity: 0; transform: translateY(-14px); background: var(--cyan-soft); } to { opacity: 1; transform: none; } }
.row-out { animation: rowOut .35s var(--e-tw) forwards; }
@keyframes rowOut { to { opacity: 0; transform: translateY(10px); } }
.ml-row.row-new { border-radius: 0; }

/* owner powers scan line */
.vis-powers { position: relative; overflow: hidden; }
.scanline { position: absolute; left: 18px; right: 18px; top: 0; height: 60px; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(95, 227, 247, .16) 70%, rgba(95, 227, 247, .7) 100%); border-bottom: 1px solid rgba(95, 227, 247, .9); animation: scan 3.2s cubic-bezier(.45, 0, .55, 1) infinite; opacity: .9; }
@keyframes scan { 0% { transform: translateY(40px); opacity: 0; } 12% { opacity: .9; } 88% { opacity: .9; } 100% { transform: translateY(360px); opacity: 0; } }

/* simulation states */
.vis-sim .toast-ok, .rc-h .chip-sm { transition: opacity .4s var(--e-tw), transform .5s var(--e-bo); }
.vis-sim .toast-ok.hide { opacity: 0; transform: translateX(-20px) scale(.8); }
.rc-h .chip-sm.hide { opacity: 0; transform: scale(.6); }
.shimmer { transition: opacity .3s; }
.shimmer.hide { opacity: 0; }

/* radar */
.ripple { position: absolute; inset: 112px; border-radius: 50%; border: 1px solid rgba(95, 227, 247, .5); animation: ripple 3.6s cubic-bezier(.2, .6, .3, 1) infinite; }
.ripple.r2 { animation-delay: 1.8s; }
@keyframes ripple { from { transform: scale(.6); opacity: .9; } to { transform: scale(3); opacity: 0; } }
.float-stat b, .float-stat span { transition: opacity .25s var(--e-tw), filter .25s var(--e-tw); }
.float-stat.swap b, .float-stat.swap span { opacity: 0; filter: blur(6px); }

/* tiles wave */
.tiles .tile { opacity: 0; transform: scale(.82); transition: opacity .6s var(--e-tw), transform .7s var(--e-bo), background .3s; transition-delay: calc(var(--dist, 0) * 70ms + .2s); }
.tiles.m-in .tile { opacity: 1; transform: none; }
.tiles.m-in .tile.on:hover { transform: translateY(-4px); transition-delay: 0s; }
.tile.core { position: relative; }
.tile.core::after { content: ''; position: absolute; inset: -30px; border-radius: 0; background: radial-gradient(closest-side, rgba(95, 227, 247, .45), transparent); z-index: -1; animation: corePulse 3.2s ease-in-out infinite; }
@keyframes corePulse { 50% { opacity: .35; transform: scale(.9); } }

/* step 01 orbit */
.o-rot { position: absolute; inset: 0; animation: spin 22s linear infinite; }
.o-rot .o-sat { animation: spin 22s linear infinite reverse; }
.o-ring { border-style: dashed; }
/* step 03 arcs pulse */
.w-arc { animation: arcPulse 3s ease-in-out infinite; }
.w-arc.a2 { animation-delay: .6s; }
@keyframes arcPulse { 50% { opacity: .35; } }
.w-dot.bad.m-in { animation: blink2 2.4s ease-in-out infinite 1.5s; }
@keyframes blink2 { 50% { opacity: .45; } }

/* stories: inactive slides step back */

/* pricing: popular tag shimmer */
.pop-tag { background: linear-gradient(110deg, var(--cyan) 40%, #c9f7ff 50%, var(--cyan) 60%); background-size: 250% 100%; animation: tagShine 3.5s linear infinite; }
@keyframes tagShine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.plan:hover { transform: translateY(-4px); }
.plan.m-in:hover { transform: translateY(-4px); }

/* CTA drifting light */
.cta { isolation: isolate; }
.cta > :not(.cta-orb) { position: relative; z-index: 1; }
.cta-orb { position: absolute; width: 520px; height: 520px; border-radius: 50%; left: -120px; top: -200px; background: radial-gradient(closest-side, rgba(95, 227, 247, .35), transparent); animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
.cta-orb.o2 { left: auto; right: -160px; top: auto; bottom: -260px; animation-duration: 18s; animation-direction: alternate-reverse; }
@keyframes drift { to { transform: translate(180px, 120px); } }

/* footer wordmark */
.wordmark { opacity: 1 !important; transform: none !important; overflow: hidden; position: relative; }
.wordmark { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--e-sp); }
.wordmark.m-in { clip-path: inset(0 0 -10% 0); }
.wordmark { background: radial-gradient(280px circle at var(--mx, -400px) var(--my, -400px), rgba(95, 227, 247, .55), transparent 70%), #15181c; -webkit-background-clip: text; background-clip: text; color: transparent; }



/* bot row connectors */
.vis-bot { position: relative; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.wires path { fill: none; stroke: rgba(95, 227, 247, .55); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linejoin: round; animation: wire 4.6s cubic-bezier(.95, .04, .44, 1) infinite; }
@keyframes wire { 0% { stroke-dashoffset: 1; opacity: 1; } 55% { stroke-dashoffset: 0; opacity: 1; } 85% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 1; opacity: 0; } }
.vis-bot .app-icons, .vis-bot .bot-card { position: relative; z-index: 1; }
.vis-bot { gap: 54px; }
/* reference springs settle in ~0.9s */
[data-m] { transition-duration: .6s, .9s; }
[data-m="fade"] { transition-duration: .6s; }

/* terminal pages: staggered entrance */
@keyframes upIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.term .term-top, .term .tstat, .term .filters, .term .col, .term .tk-head, .term .box { animation: upIn .7s var(--e-sp) both; }
.term .tstat:nth-child(2) { animation-delay: .05s; } .term .tstat:nth-child(3) { animation-delay: .1s; }
.term .tstat:nth-child(4) { animation-delay: .15s; } .term .tstat:nth-child(5) { animation-delay: .2s; }
.term .filters { animation-delay: .2s; }
.term .col:nth-child(1) { animation-delay: .25s; } .term .col:nth-child(2) { animation-delay: .32s; } .term .col:nth-child(3) { animation-delay: .39s; }
.term .tk-grid > div:nth-child(2) .box { animation-delay: .12s; }
.term .box + .box { animation-delay: .2s; }
.col-list.intro li { animation: upIn .5s var(--e-sp) both; }
.col-list.intro li:nth-child(n+2) { animation-delay: .04s; } .col-list.intro li:nth-child(n+3) { animation-delay: .08s; }
.col-list.intro li:nth-child(n+4) { animation-delay: .12s; } .col-list.intro li:nth-child(n+5) { animation-delay: .16s; }

@media (max-width: 767px) { .story-list { gap: 14px; } .story-n { font-size: 84px; right: 18px; top: auto; bottom: 14px; } }

/* 3) no layout jumps when text changes */
.num b, .kpi b, .chart-big b, .blk, .bd-use-t b, .rc-row .mono, .tstat b { font-variant-numeric: tabular-nums; }
.float-stat { width: 236px; }
.float-stat b, .float-stat span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#flash-btn { min-width: 132px; }
#rules-btn { min-width: 104px; justify-content: center; }
.bc-list { position: relative; overflow: hidden; display: grid; gap: 10px; align-content: start; }
.bc-list .bc-act.row-out { position: absolute; left: 0; right: 0; bottom: 0; }
.rc-row:last-child .mono { min-width: 64px; text-align: right; }
.ml-row { transition: transform .5s var(--e-sp); }

/* live rows */
.col-list li.row-in { animation: rowDrop .55s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes rowDrop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.col-list li.row-in .tcard { animation: rowGlow 1.6s ease-out both; }
@keyframes rowGlow { from { background: var(--cyan-soft); } to { background: transparent; } }
.col-list li.row-flash .badge { animation: badgePop .5s cubic-bezier(.34, 1.36, .64, 1); }
@keyframes badgePop { from { transform: scale(.7); opacity: .3; } to { transform: none; opacity: 1; } }

/* =========================================================
   Terminal app (/app)
   ========================================================= */
.tapp { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.tapp-side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; background: var(--bg); }
.tapp-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 19px; letter-spacing: -.04em; padding: 2px 10px 20px; }
.tapp-brand svg { width: 22px; height: 22px; }
.tapp-net { margin-left: auto; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 3px 7px; border: 1px solid var(--line-2); border-radius: 0; font-weight: 400; }
.tapp-nav { display: grid; gap: 3px; }
.tapp-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 0; font-size: 14.5px; color: var(--text-2); transition: background .2s, color .2s; }
.tapp-nav a .ic { width: 18px; text-align: center; color: var(--muted); font-size: 13px; transition: color .2s; }
.tapp-nav a:hover { background: var(--card); color: var(--text); }
.tapp-nav a.on { background: var(--cyan-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--cyan); }
.tapp-nav a.on .ic { color: var(--cyan); }
.tapp-count { margin-left: auto; font-style: normal; font-size: 11px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 0; background: var(--card-3); color: var(--text-2); display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.tapp-count:empty { display: none; }
.tapp-count.hot { background: rgba(248, 113, 113, .16); color: var(--red); }
.tapp-side-foot { margin-top: auto; padding: 0 6px; }
.tapp-main { padding: 22px 28px 60px; min-width: 0; }
.tapp-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.tapp-head h1 { font-size: 26px; letter-spacing: -.03em; }
.tapp-search { flex: 1; max-width: 460px; margin-left: auto; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 0; background: var(--card); border: 1px solid var(--line-2); color: var(--muted); }
.tapp-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 14px; color: var(--text); }
.tapp-search.shake, .tapp-add.shake, .scan-input.shake { animation: shake .35s; }
.tapp-head-r { display: flex; align-items: center; gap: 12px; }
.view { display: none; }
.view.on { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; animation: upIn .45s var(--e-sp) both; }
.view-lead { color: var(--text-2); font-size: 15px; max-width: 720px; }
.tapp .kpis { gap: 14px; }
.tapp .kpi { padding: 16px 18px; border-radius: 0; }
.tapp .kpi b { font-size: 28px; }
.tapp .dash-row { gap: 14px; }
.tapp .dash-row.two { grid-template-columns: 1.5fr 1fr; }
.tapp .dcard { padding: 18px; border-radius: 0; }
.tapp .chart { height: 220px; }
.scan-input { display: flex; gap: 6px; padding: 4px; border-radius: 0; border: 1px solid var(--line-2); margin-bottom: 10px; }
.scan-input input { flex: 1; min-width: 0; padding: 0 10px; background: transparent; border: 0; outline: none; font-size: 13px; color: var(--text); }

/* tables */
.ttable { display: grid; }
.tt-body { list-style: none; margin: 0; padding: 0; }
.tt-row { display: grid; gap: 14px; align-items: center; padding: 11px 6px; border-top: 1px solid var(--line); font-size: 13.5px; }
.tt-head { border-top: 0; padding-top: 0; color: var(--muted); font-size: 12px; }
.t-launch .tt-row { grid-template-columns: 1.6fr 1fr .6fr .9fr .9fr 28px; }
.t-trace .tt-row { grid-template-columns: 1.3fr 1fr 1.3fr 1.8fr .9fr; }
.t-powers .tt-row { grid-template-columns: 1.2fr 2.4fr 1fr .9fr; }
.t-watch .tt-row { grid-template-columns: 1.6fr 1fr 1fr 1fr 28px; }
.t-wallets .tt-row { grid-template-columns: 1.3fr .6fr .6fr 1.5fr 1fr; }
.tt-body li { will-change: auto; }
.tt-body li.row-in { animation: rowDrop .55s cubic-bezier(.22, 1, .36, 1) both; }
.tt-body li.row-in .tt-row, .alist li.row-in .arow { animation: rowGlow 1.6s ease-out both; }
.tt-body li.row-flash .badge, .alist li.row-flash .chip-sm { animation: badgePop .5s cubic-bezier(.34, 1.36, .64, 1); }
.tok { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tok .avatar { width: 30px; height: 30px; border-radius: 0; font-size: 10px; }
.tok b { display: block; font-weight: 500; font-size: 14px; }
.tok small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tok:hover b { color: var(--cyan); }
.wal { font-size: 12.5px; color: var(--text-2); }
.wal:hover { color: var(--cyan); }
.tt-sig { display: grid; gap: 5px; }
.tt-sig small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.tt-ev { color: var(--text-2); font-size: 13.5px; }
.star { font-size: 16px; color: var(--faint); width: 28px; height: 28px; border-radius: 0; display: grid; place-items: center; transition: color .2s, transform .3s var(--e-bo); }
.star:hover { color: var(--text); }
.star.on { color: var(--yellow); }
.star:active { transform: scale(.8); }
.tcard .right { display: flex; align-items: center; gap: 4px; }

/* alerts */
.alist { list-style: none; margin: 0; padding: 0; display: grid; }
.arow { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 4px; border-top: 1px solid var(--line); font-size: 13.5px; }
.alist li:first-child .arow { border-top: 0; }
.arow b { font-weight: 600; }
.arow:hover b { color: var(--cyan); }
.alist.big .arow { padding: 14px 6px; font-size: 14.5px; }
.chip-sm.warn { color: var(--yellow); background: rgba(251, 191, 36, .12); }

/* forms */
.tapp-add { display: flex; gap: 8px; max-width: 560px; padding: 5px; border-radius: 0; background: var(--card); border: 1px solid var(--line-2); }
.tapp-add input { flex: 1; min-width: 0; padding: 0 12px; background: transparent; border: 0; outline: none; font-size: 14px; color: var(--text); }

/* bot + settings */
.bot-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 28px !important; }
.bot-hero h2 { font-size: 32px; margin: 14px 0 12px; }
.bot-hero p { color: var(--text-2); margin-bottom: 22px; max-width: 520px; }
.bot-steps { display: grid; gap: 10px; }
.bot-steps div { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 0; background: var(--card-2); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.bot-steps b { width: 32px; height: 32px; border-radius: 50%; background: var(--cyan-soft); color: var(--cyan); display: grid; place-items: center; font-weight: 600; }
.cmds-t > div { display: grid; grid-template-columns: 200px 1fr; gap: 14px; padding: 12px 4px; border-top: 1px solid var(--line); }
.cmds-t > div:first-child { border-top: 0; }
.cmds-t code { color: var(--cyan); font-family: var(--mono); font-size: 13.5px; }
.cmds-t span { color: var(--text-2); font-size: 14px; }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; cursor: pointer; }
.toggle:first-of-type { border-top: 0; }
.toggle input { display: none; }
.toggle span { width: 38px; height: 22px; border-radius: 0; background: var(--card-3); position: relative; flex: none; transition: background .25s; }
.toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: transform .3s var(--e-bo), background .25s; }
.toggle input:checked + span { background: var(--cyan); }
.toggle input:checked + span::after { transform: translateX(16px); background: #00151a; }

.tapp-home { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.tapp-home:hover { color: var(--cyan); }
body[data-no-nav] .demo-banner .container { width: auto; padding-left: 20px; padding-right: 20px; }

/* in-place updates: values glide from the old state to the new one */
.chart .col-b i { transition: height 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ring .val { transition: stroke-dashoffset 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), stroke 0.6s ease; }
.badge { transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease; }
.bar i { transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.5s ease; }
[data-num] { font-variant-numeric: tabular-nums; }

/* ======================================================================
   STRICT / GLASS LAYER — x.com-style sharp geometry, near-black surfaces,
   liquid-glass only on floating chrome (nav, ghost buttons, inputs).
   ====================================================================== */

/* hairline sections, like a terminal grid */
.section { border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }

/* --- glass material ------------------------------------------------- */
.nav,
.btn-ghost,
.tapp-search,
.browser-bar,
.demo-banner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.nav { background: linear-gradient(180deg, rgba(14, 16, 19, 0.72), rgba(0, 0, 0, 0.55)); border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.nav.scrolled { background: linear-gradient(180deg, rgba(14, 16, 19, 0.78), rgba(0, 0, 0, 0.62)); }
/* Chromium: real refraction — the page bends at the bar's edges like a lens */
html.lg-refract .nav { -webkit-backdrop-filter: url(#th-lg) blur(10px) saturate(175%); backdrop-filter: url(#th-lg) blur(10px) saturate(175%); }

.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.13); position: relative; overflow: hidden; }
.btn-ghost::after { /* specular sweep */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.14) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform 0.7s cubic-bezier(.22, 1, .36, 1);
}
.btn-ghost:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03)); border-color: rgba(255, 255, 255, 0.22); }
.btn-ghost:hover::after { transform: translateX(120%); }

/* --- sharp primary: chamfered corners echo the logo's cuts ----------- */
.btn-primary { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.btn-primary:hover { background: #fff; box-shadow: inset 0 0 0 100px rgba(95, 227, 247, 0.16); }
.btn-sm.btn-primary { clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px)); }

/* --- corner ticks on framed blocks (extra background layers, no markup) --- */
@property --tc { syntax: '<color>'; inherits: false; initial-value: rgba(255, 255, 255, 0.42); }
.fcard, .box, .dcard, .plan, .step, .row-vis {
  --ts: 12px;
  background-image:
    linear-gradient(var(--tc), var(--tc)), linear-gradient(var(--tc), var(--tc)),
    linear-gradient(var(--tc), var(--tc)), linear-gradient(var(--tc), var(--tc)),
    linear-gradient(var(--tc), var(--tc)), linear-gradient(var(--tc), var(--tc)),
    linear-gradient(var(--tc), var(--tc)), linear-gradient(var(--tc), var(--tc));
  background-size: var(--ts) 1px, 1px var(--ts), var(--ts) 1px, 1px var(--ts), var(--ts) 1px, 1px var(--ts), var(--ts) 1px, 1px var(--ts);
  background-position: top left, top left, top right, top right, bottom left, bottom left, bottom right, bottom right;
  background-repeat: no-repeat;
  background-origin: border-box;
  transition: --tc 0.35s ease, border-color 0.3s;
}
.fcard:hover, .box:hover, .dcard:hover, .plan:hover, .step:hover { --tc: var(--cyan); }

/* flat, dark cards; depth comes from lines, not shadows */
.fcard, .box, .dcard, .plan, .browser, .row-card, .step, .kpi { box-shadow: none; }
.fcard:hover { transform: none; border-color: rgba(255, 255, 255, 0.16); }

/* inputs: glass well with a cyan focus line */
input[type='text'], input[type='search'], input:not([type]) { border-radius: 0; }
input:focus-visible { outline: none; box-shadow: inset 0 -1px 0 var(--cyan); }
:focus-visible { border-radius: 0; }

/* --- terminal filters & sorting --------------------------------------- */
.ftool { justify-content: space-between; }
.ftool-r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fsearch { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--muted); min-width: 200px; }
.fsearch input { background: none; border: 0; outline: none; color: var(--text); font-size: 13px; width: 100%; }
.fsearch:focus-within { border-color: rgba(95, 227, 247, 0.5); }
.select { cursor: pointer; }
.select:focus-visible { outline: none; border-color: rgba(95, 227, 247, 0.5); }
.chip-reset { border-style: dashed; }
.chip-reset[hidden] { display: none; }
.f-count { margin-left: auto; }
.fsearch input:focus-visible, .tapp-search input:focus-visible { box-shadow: none; }

/* --- How it works: terminal pipeline --------------------------------- */
.pv { height: 330px; margin-top: 44px; border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; font: 12.5px/1.4 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--text-2); overflow: hidden; }
.pv-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); letter-spacing: .02em; }
.pv-live { display: inline-flex; align-items: center; gap: 6px; }
.pv-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink2 1.6s ease-in-out infinite; }
.step { transition: border-color .4s; }
.step.pv-on { border-color: rgba(95, 227, 247, .35); --tc: var(--cyan); }
.step .pv { transition: opacity .4s; }
#pipeline:has(.pv-on) .step:not(.pv-on) .pv { opacity: .55; }

/* 01 blocks */
.pv-blocks { list-style: none; margin: 0; padding: 8px 0; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.pv-blocks li { display: grid; grid-template-columns: 96px 66px 1fr; gap: 10px; padding: 7px 14px; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s cubic-bezier(.22, 1, .36, 1), background .3s; }
.pv-blocks li.in { opacity: 1; transform: none; }
.pv-blocks li b { font-weight: 500; color: var(--text-2); }
.pv-blocks li em { font-style: normal; color: var(--faint); }
.pv-blocks li.hit { background: rgba(95, 227, 247, .08); box-shadow: inset 2px 0 0 var(--cyan); }
.pv-blocks li.hit b { color: var(--cyan); }
.pv-blocks li.hit em { color: var(--text); }
.pv-foot { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--line); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.pv-foot.show { opacity: 1; transform: none; }
.pv-foot b { color: var(--text); font-weight: 500; }
.pv-k { padding: 2px 7px; background: var(--cyan); color: #000; text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; }

/* 02 checks */
.pv-state { padding: 2px 8px; border: 1px solid var(--line-2); }
.pv-state.run { color: var(--cyan); border-color: rgba(95, 227, 247, .4); }
.pv-state.done { color: var(--green); border-color: rgba(52, 211, 153, .4); }
.pv-checks { list-style: none; margin: 0; padding: 10px 14px; flex: 1; display: grid; align-content: center; gap: 4px; }
.pv-checks li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 7px 0; color: var(--faint); transition: color .3s; }
.pv-checks li.run, .pv-checks li.done { color: var(--text); }
.pv-dots { height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 3px, transparent 3px 7px); }
.pv-checks li.run .pv-dots { background: repeating-linear-gradient(90deg, var(--cyan) 0 3px, transparent 3px 7px); background-size: 14px 1px; animation: pvDots .5s linear infinite; }
.pv-checks em { font-style: normal; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; }
.pv-checks li.done em { opacity: 1; transform: none; }
.pv-checks em.ok { color: var(--green); } .pv-checks em.warn { color: var(--yellow); }
.pv-prog { height: 2px; background: var(--line); }
.pv-prog i { display: block; height: 100%; width: 0; background: var(--cyan); transition: width .45s cubic-bezier(.22, 1, .36, 1); }
@keyframes pvDots { to { background-position: 14px 0; } }

/* 03 verdict */
.pv-score { display: flex; align-items: baseline; gap: 6px; padding: 18px 14px 10px; }
.pv-score b { font: 500 54px/1 'Google Sans Flex', sans-serif; letter-spacing: -.04em; color: var(--text); font-variant-numeric: tabular-nums; min-width: 1.2em; }
.pv-score span { color: var(--muted); }
.pv-lv { margin-left: auto; font-style: normal; padding: 3px 9px; border: 1px solid var(--line-2); text-transform: uppercase; font-size: 10.5px; letter-spacing: .08em; }
.pv-lv.warn { color: var(--yellow); border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .08); }
.pv-cells { display: grid; grid-template-columns: repeat(25, 1fr); gap: 3px; padding: 0 14px 14px; }
.pv-cells i { height: 14px; background: var(--card-3); transition: background .15s; }
.pv-cells i.on { background: var(--yellow); }
.pv-log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.pv-log li { display: grid; grid-template-columns: 46px 1fr; gap: 8px; padding: 8px 14px; color: var(--text-2); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s cubic-bezier(.22, 1, .36, 1); }
.pv-log li.in { opacity: 1; transform: none; }
.pv-log li span { color: var(--faint); }
.pv-log li.bad { color: var(--red); background: rgba(248, 113, 113, .07); box-shadow: inset 2px 0 0 var(--red); }

/* ======================================================================
   TERMINAL — desktop pieces of the filter panel, phone layout
   ====================================================================== */
.tapp-mlogo, .tapp-sbtn, .tabbar, .f-open, .fpanel-head { display: none; }
.fpanel { display: contents; }
.fbreak { flex-basis: 100%; height: 0; }
.ftool-r { margin-left: auto; }
.sheet[hidden] { display: none; }

@media (max-width: 767px) {
  body[data-page="app"] { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.sheet-open { overflow: hidden; }
  .tapp { grid-template-columns: 1fr; }
  .tapp-side { display: none; }
  .tapp-main { padding: 0 14px 24px; }

  /* top bar: logo · title · search */
  .tapp-head { position: sticky; top: 0; z-index: 20; margin: 0 -14px 14px; padding: 10px 14px; gap: 10px; flex-wrap: wrap;
    background: linear-gradient(180deg, rgba(14, 16, 19, .82), rgba(0, 0, 0, .7)); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); border-bottom: 1px solid var(--line); }
  .tapp-mlogo { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); color: var(--text); --cut: #000; }
  .tapp-head h1 { font-size: 18px; flex: 1; }
  .tapp-sbtn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); color: var(--text-2); background: var(--card); }
  body.search-open .tapp-sbtn { color: #000; background: #fff; border-color: #fff; }
  .tapp-head-r { display: none; }
  .tapp-search { display: none; order: 3; flex-basis: 100%; max-width: none; margin: 0; height: 44px; }
  body.search-open .tapp-search { display: flex; }
  .tapp-search input { font-size: 16px; } /* 16px stops iOS zoom on focus */
  .view-lead { font-size: 14px; }

  /* dashboard */
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 10px 12px; }
  .kpi .spark { display: none; }
  .tapp .dash-row, .tapp .dash-row.two, .set-grid, .bot-hero { grid-template-columns: 1fr; }
  .dcard { padding: 12px; }

  /* chips scroll sideways instead of wrapping into a wall */
  .ftool { flex-wrap: nowrap; gap: 8px; }
  #lv-chips, .col-tabs, #alert-chips, #trace-chips, #powers-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -14px; padding-right: 14px; }
  #lv-chips::-webkit-scrollbar, .col-tabs::-webkit-scrollbar { display: none; }
  .col-tabs { margin-right: 0; padding-right: 0; overflow: visible; display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .col-tabs .chip { text-align: center; }
  .chip { white-space: nowrap; flex: none; padding: 9px 13px; }
  .ftool #lv-chips { flex: 1; min-width: 0; margin-right: 0; padding-right: 0; }
  .f-open { display: inline-flex; gap: 2px; flex: none; }
  .f-open b { font-weight: 500; color: var(--cyan); }
  .f-count { display: none; }
  .filters:has(#trace-chips), .filters:has(#powers-chips) { flex-wrap: nowrap; }
  #trace-chips, #powers-chips { flex: 1; min-width: 0; margin-right: 0; padding-right: 0; }
  #trace-sort, #powers-sort { flex: none; width: 130px; }

  /* filter panel becomes a bottom sheet */
  .fpanel { display: none; }
  .fpanel.open { display: grid; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
    background: #0b0c0f; border-top: 1px solid var(--line-2); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .65); animation: sheetUp .3s cubic-bezier(.22, 1, .36, 1); }
  .fpanel.open { max-height: 86vh; overflow-y: auto; }
  .fpanel-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: -14px; z-index: 2; background: #0b0c0f; padding: 6px 0; }
  .fpanel-head b { font-weight: 500; font-size: 16px; }
  .fpanel .ftool-r { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
  .fpanel .fsearch { grid-column: 1 / -1; height: 44px; }
  .fpanel .fsearch input { font-size: 16px; }
  .fpanel .select { height: 44px; width: 100%; font-size: 14px; }
  .fpanel #f-sort { grid-column: 1 / -1; }
  .fpanel #f-toggles { flex-wrap: wrap; }
  .fpanel .chip-reset { justify-self: start; }
  .fbreak { display: none; }

  /* tables turn into stacked rows: token + risk on top, details below */
  .tt-head { display: none; }
  .ttable .tt-row, .t-launch .tt-row, .t-trace .tt-row, .t-powers .tt-row, .t-wallets .tt-row, .t-watch .tt-row {
    grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 0; font-size: 13px; }
  .tt-row > * { grid-column: 1 / -1; min-width: 0; }
  .tt-row > :first-child { grid-column: 1; }
  .tt-row > :has(.badge) { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
  .tt-row > .star { grid-column: 2; grid-row: 2; justify-self: end; }
  .tt-row .tt-sig { max-width: 100%; }

  /* feed columns: one at a time, switched by the tabs */
  .cols { grid-template-columns: 1fr; }
  .tcard { padding: 12px 6px; }

  /* bottom tab bar */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 58; padding-bottom: env(safe-area-inset-bottom);
    background: linear-gradient(180deg, rgba(14, 16, 19, .86), rgba(0, 0, 0, .9)); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
    border-top: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
  .tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; gap: 3px; padding: 9px 0 8px; font-size: 11px; color: var(--muted); }
  .tabbar .ic { display: grid; place-items: center; height: 20px; }
  .tabbar .on { color: var(--text); }
  .tabbar .on::before { content: ''; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; background: var(--cyan); }
  .tabbar .tapp-count { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; }

  .sheet { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; }
  .sheet-panel { width: 100%; background: #0b0c0f; border-top: 1px solid var(--line-2); padding: 8px 8px calc(72px + env(safe-area-inset-bottom)); display: grid; animation: sheetUp .3s cubic-bezier(.22, 1, .36, 1); }
  .sheet-grip { width: 36px; height: 3px; background: var(--line-2); justify-self: center; margin: 4px 0 10px; }
  .sheet-panel a { display: flex; align-items: center; gap: 14px; padding: 14px 12px; font-size: 15.5px; color: var(--text-2); border-bottom: 1px solid var(--line); }
  .sheet-panel a:last-child { border-bottom: 0; color: var(--muted); }
  .sheet-panel a.on { color: var(--text); box-shadow: inset 2px 0 0 var(--cyan); }
  .sheet-panel .ic { width: 18px; text-align: center; }

  body[data-no-nav] .demo-banner .container { font-size: 12px; padding: 8px 14px; }
}
@keyframes sheetUp { from { transform: translateY(100%); } }

.pv-log li { transition: opacity .35s, transform .35s cubic-bezier(.22, 1, .36, 1); }
@media (max-width: 767px) {
  .pv { font-size: 11.5px; height: 300px; }
  .pv-blocks li { grid-template-columns: 84px 58px 1fr; gap: 8px; white-space: nowrap; }
  .pv-blocks li em { overflow: hidden; text-overflow: ellipsis; }
  .pv-foot { white-space: nowrap; overflow: hidden; }
}

/* --- Token utility (replaces the SaaS pricing cards) -------------------- */
.ut-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto auto; gap: 16px; margin-top: 8px; }
.ut-card { position: relative; padding: 26px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.ut-fees { grid-column: 1 / 3; grid-row: 1 / 3; }
.ut-ca { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; gap: 24px; padding: 18px 26px; }
.ut-k { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 12px/1 ui-monospace, 'SF Mono', Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ut-foot { color: var(--text-2); font-size: 14.5px; }
.ut-card p { color: var(--text-2); font-size: 15px; }

.ut-ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; height: 300px; padding-top: 10px; border-bottom: 1px solid var(--line-2); }
.ut-tier { display: grid; grid-template-rows: auto 1fr auto auto; gap: 8px; height: 100%; padding-bottom: 14px; }
.ut-tier b { font: 500 30px/1 'Google Sans Flex', sans-serif; letter-spacing: -.03em; color: var(--text); }
.ut-bar { position: relative; display: block; }
.ut-bar i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)); border-top: 1px solid rgba(255, 255, 255, .35);
  transition: height 1s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--i) * 110ms + 200ms); }
.ut-fees.m-in .ut-bar i { height: var(--h); }
.ut-tier.best b { color: var(--cyan); }
.ut-tier.best .ut-bar i { background: linear-gradient(180deg, rgba(95, 227, 247, .45), rgba(95, 227, 247, .06)); border-top-color: var(--cyan); }
.ut-tier em { font-style: normal; font-size: 14px; color: var(--text); }
.ut-tier small { font: 12px ui-monospace, 'SF Mono', Menlo, monospace; color: var(--muted); }

.ut-levels { list-style: none; margin: 0; padding: 0; display: grid; }
.ut-levels li { display: grid; grid-template-columns: 82px 1fr; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ut-levels li:first-child { border-top: 0; }
.ut-levels b { font: 500 28px/1 'Google Sans Flex', sans-serif; letter-spacing: -.03em; }
.ut-levels li:first-child b { color: var(--cyan); }
.ut-levels span { color: var(--text-2); font-size: 14.5px; }
.ut-ca-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border: 1px dashed var(--line-2); font-size: 14px; }
.ut-note { text-align: center; color: var(--muted); margin-top: 26px; font-size: 15px; }
.ut-note a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.ut-note a:hover { color: var(--cyan); border-color: var(--cyan); }
.ut-fees, .ut-ref, .ut-safe, .ut-ca {
  --ts: 12px;
  background-image: linear-gradient(var(--tc), var(--tc)), linear-gradient(var(--tc), var(--tc)), linear-gradient(var(--tc), var(--tc)), linear-gradient(var(--tc), var(--tc)), linear-gradient(var(--tc), var(--tc)), linear-gradient(var(--tc), var(--tc)), linear-gradient(var(--tc), var(--tc)), linear-gradient(var(--tc), var(--tc));
  background-size: var(--ts) 1px, 1px var(--ts), var(--ts) 1px, 1px var(--ts), var(--ts) 1px, 1px var(--ts), var(--ts) 1px, 1px var(--ts);
  background-position: top left, top left, top right, top right, bottom left, bottom left, bottom right, bottom right;
  background-repeat: no-repeat; background-origin: border-box; transition: --tc .35s ease;
}
.ut-card:hover { --tc: var(--cyan); }
@media (max-width: 767px) {
  .ut-grid { grid-template-columns: 1fr; }
  .ut-fees, .ut-ca { grid-column: auto; grid-row: auto; }
  .ut-ladder { height: 220px; gap: 8px; }
  .ut-tier b { font-size: 20px; }
  .ut-tier em { font-size: 12px; }
  .ut-tier small { font-size: 10.5px; }
  .ut-card { padding: 20px; }
  .ut-k { font-size: 10.5px; letter-spacing: .05em; }
  .ut-k .soon-tag { white-space: nowrap; }
  .ut-ca { grid-template-columns: 1fr; gap: 10px; }
}

/* anchor jumps land below the fixed nav; sticky cards land at their stuck position */
section[id] { scroll-margin-top: 68px; }
.row-card[id] { scroll-margin-top: 100px; }
@media (max-width: 767px) { .row-card[id] { scroll-margin-top: 76px; } }

/* ======================================================================
   TERMINAL — charts, segmented controls, network
   ====================================================================== */
.seg { display: inline-flex; border: 1px solid var(--line-2); background: var(--card); }
.seg button { padding: 6px 10px; font-size: 12px; color: var(--muted); display: grid; place-items: center; min-width: 32px; border-left: 1px solid var(--line); transition: color .15s, background .15s; }
.seg button:first-child { border-left: 0; }
.seg button:hover { color: var(--text); }
.seg button.on { color: #000; background: #fff; }
.seg.sm button { padding: 4px 8px; font-size: 11.5px; }
.dcard-h { gap: 10px; }
.ch-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 4px 0 6px; }
.ch-ctl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ch-ctl .select { height: 32px; font-size: 12.5px; }

.tc { display: grid; gap: 6px; }
.tc-plot { position: relative; height: 220px; border-bottom: 1px solid var(--line-2); }
.tc-plot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tc-grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tc-cursor { stroke: rgba(255, 255, 255, .25); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; }
.tc-cursor.on { opacity: 1; }
.tc-y { position: absolute; inset: 0; pointer-events: none; }
.tc-y span { position: absolute; left: 0; transform: translateY(-120%); font: 10.5px ui-monospace, 'SF Mono', Menlo, monospace; color: var(--faint); }
.tc-x { display: flex; justify-content: space-between; font: 10.5px ui-monospace, 'SF Mono', Menlo, monospace; color: var(--muted); }
.tc-tip { position: absolute; top: 8px; z-index: 5; min-width: 150px; padding: 10px 12px; background: rgba(10, 11, 14, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line-2); font-size: 12px; display: grid; gap: 4px; pointer-events: none; }
.tc-tip b { font-weight: 500; font-size: 12.5px; margin-bottom: 2px; }
.tc-tip div { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; color: var(--text-2); }
.tc-tip div:not(:has(i)) { grid-template-columns: 1fr auto; }
.tc-tip i { width: 8px; height: 8px; }
.tc-tip em { font-style: normal; color: var(--text); font-variant-numeric: tabular-nums; }
.tc-tip .tot { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 2px; }
.tc-legend { display: flex; gap: 6px; flex-wrap: wrap; }
.tc-legend button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; font-size: 12px; color: var(--text-2); border: 1px solid var(--line); }
.tc-legend button i { width: 9px; height: 9px; }
.tc-legend button.off { opacity: .4; text-decoration: line-through; }
.tapp .chart-card .tc-plot { height: 240px; }

.pads { list-style: none; margin: 0; padding: 0; }
.pad-row { display: grid; grid-template-columns: 120px 1fr 56px 70px; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.pads li:first-child .pad-row { border-top: 0; }
.pad-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pad-bar { position: relative; height: 8px; background: var(--card-3); }
.pad-bar i, .pad-bar b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; transition: width .9s cubic-bezier(.22, 1, .36, 1); }
.pad-bar i { background: rgba(255, 255, 255, .28); }
.pad-bar b { background: rgba(248, 113, 113, .85); }
.pad-v { text-align: right; font-variant-numeric: tabular-nums; }
.pad-r { text-align: right; color: var(--muted); font-size: 12px; }
.pad-r.bad { color: var(--red); }

.net-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.net-kpis { grid-template-columns: repeat(4, 1fr); }
.net-kpis .kpi b, .net-mini .kpi b { font-size: 20px; }
.t-net .tt-row { grid-template-columns: 28px 1fr 90px 110px; }
.t-net .tt-row > :nth-child(3), .t-net .tt-row > :nth-child(4) { text-align: right; font-variant-numeric: tabular-nums; }
.tok-name { display: grid; min-width: 0; }
.tok-name b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tok-name small { color: var(--muted); font-size: 11.5px; }
[data-view="network"] .filters { justify-content: space-between; }

@media (max-width: 767px) {
  .ch-bar { flex-direction: column; align-items: stretch; }
  .ch-ctl { display: grid; grid-template-columns: 1fr 1fr; }
  .ch-ctl .seg { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); }
  .tapp .chart-card .tc-plot, .tc-plot { height: 190px; }
  .net-kpis { grid-template-columns: 1fr 1fr; }
  .pad-row { grid-template-columns: 90px 1fr 40px 56px; gap: 8px; font-size: 12px; }
  .t-net .tt-row { grid-template-columns: minmax(0, 1fr) auto; }
}

/* --- market heat: compact tile in the KPI row ----------------------------- */
.kpis5 { grid-template-columns: repeat(5, 1fr); }
.kpi.heat span { display: flex; justify-content: space-between; align-items: center; }
.kpi.heat em { font-style: normal; font-size: 10.5px; padding: 1px 6px; border: 1px solid var(--line-2); text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.heat[data-lv="cold"] em { color: #7aa7ff; border-color: rgba(122, 167, 255, .45); }
.heat[data-lv="cool"] em { color: var(--cyan); border-color: rgba(95, 227, 247, .45); }
.heat[data-lv="warm"] em { color: var(--yellow); border-color: rgba(251, 191, 36, .45); }
.heat[data-lv="hot"] em { color: var(--red); border-color: rgba(248, 113, 113, .5); }
.heat-bar { position: relative; height: 5px; margin: 6px 0 4px; background: linear-gradient(90deg, #3b6fd8, #5fe3f7 30%, #6b7280 50%, #fbbf24 72%, #f87171); }
.heat-pin { position: absolute; top: -4px; bottom: -4px; width: 2px; left: 50%; margin-left: -1px; background: #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .75); transition: left 1s cubic-bezier(.22, 1, .36, 1); }
.kpi.heat small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767px) { .kpis5 { grid-template-columns: 1fr 1fr; } .kpis5 .heat { grid-column: 1 / -1; } }

/* ======================================================================
   TERMINAL — settings, square switches, preferences, feed extras
   ====================================================================== */
/* square switches */
.toggle span, .toggle span::after { border-radius: 0 !important; }
.toggle span { background: var(--card-3); border: 1px solid var(--line-2); }
.toggle span::after { background: var(--muted); top: 3px; left: 3px; width: 14px; height: 14px; }
.toggle input:checked + span { background: var(--cyan); border-color: var(--cyan); }
.toggle input:checked + span::after { background: #000; }
.toggle.sw { padding: 0; border-top: 0; }

.set-grid { grid-template-columns: 1fr 1fr; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.dcard-h + .set-row { border-top: 0; }
.set-row > div:first-child { display: grid; gap: 2px; }
.set-row b { font-weight: 500; font-size: 14px; }
.set-row small { color: var(--muted); font-size: 12px; }
.set-row .select { height: 32px; font-size: 13px; }
.set-row .seg + .btn { margin-left: 8px; }
.set-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.set-actions label.btn { cursor: pointer; }
.btn.danger { color: var(--red); border-color: rgba(248, 113, 113, .35); }
.btn-xs { height: 30px; padding: 0 12px; font-size: 12.5px; }
.swatches { display: flex; gap: 6px; }
.swatches button { width: 26px; height: 26px; background: var(--c); border: 1px solid transparent; box-shadow: inset 0 0 0 3px var(--card); outline: 1px solid var(--line-2); }
.swatches button.on { outline: 2px solid #fff; }
.range { -webkit-appearance: none; appearance: none; width: 160px; height: 4px; background: var(--card-3); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; background: var(--cyan); border: 0; cursor: pointer; }
.range::-moz-range-thumb { width: 14px; height: 14px; background: var(--cyan); border: 0; border-radius: 0; cursor: pointer; }

/* feed extras */
.fgroup { display: grid; gap: 8px; }
.fwide { flex-basis: 100%; }
.fgroup-h { display: flex; justify-content: space-between; align-items: center; font: 11px ui-monospace, 'SF Mono', Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fgroup .seg { width: max-content; }
#f-presets button { min-width: 40px; }
#f-presets button.has { color: var(--text); box-shadow: inset 0 -2px 0 var(--cyan); }
.frange { display: flex; align-items: center; gap: 8px; }
.frange input { width: 110px; height: 36px; padding: 0 10px; background: var(--card); border: 1px solid var(--line-2); color: var(--text); font-size: 13px; }
.frange span { color: var(--muted); }
.link-btn { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }
.link-btn:empty { display: none; }
.fpanel .fgroup { margin-top: 2px; }
@media (min-width: 768px) {
  .fpanel { display: contents; }
  .fpanel .fgroup.fwide { order: 5; display: flex; align-items: center; gap: 12px; flex-basis: auto; }
  .fpanel .fgroup.fwide .fgroup-h { gap: 10px; }
  .fpanel > .fgroup:not(.fwide) { display: flex; align-items: center; gap: 8px; order: 5; }
  .fpanel > .fgroup:not(.fwide) .fgroup-h { display: none; }
  #f-save { height: 30px; font-size: 12px; }
}
.hide-t { width: 22px; height: 22px; display: grid; place-items: center; font-size: 11px; color: var(--faint); opacity: 0; transition: opacity .15s, color .15s; }
.tcard:hover .hide-t { opacity: 1; }
.hide-t:hover { color: var(--red); }
@media (hover: none) { .hide-t { opacity: .6; } }
.cols.paused .col-head h3::after { content: 'paused'; margin-left: 8px; font: 10px ui-monospace, 'SF Mono', Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); }

.th-toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 16px; font-size: 13px; background: rgba(14, 16, 19, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); transition: opacity .25s, transform .3s cubic-bezier(.22, 1, .36, 1); }
.th-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 767px) { .th-toast { bottom: calc(80px + env(safe-area-inset-bottom)); } .set-grid { grid-template-columns: 1fr; } .set-row { flex-wrap: wrap; } .range { width: 100%; } }

/* preferences */
/* themes: dark (default) · dim · midnight · light */
html[data-theme="dim"] { --bg: #0d0f12; --bg-2: #101317; --card: #14171c; --card-2: #181c22; --card-3: #20252c; }
html[data-theme="midnight"] { --bg: #05070d; --bg-2: #070a12; --card: #0a0e18; --card-2: #0e1320; --card-3: #151b2b; }
html[data-theme] body { background: var(--bg); }

html[data-theme="light"] {
  --bg: #dfe2e7; --bg-2: #d8dbe1; --card: #eceef1; --card-2: #e6e9ed; --card-3: #d6dae0;
  --line: rgba(12, 16, 22, 0.11); --line-2: rgba(12, 16, 22, 0.2);
  --text: #0b0d10; --text-2: #3b424c; --muted: #68707c; --faint: #a2a8b2;
  --green: #059669; --yellow: #b45309; --red: #dc2626; --pending: #6b7280;
  color-scheme: light;
}
html[data-theme="light"] body { color: var(--text); }
html[data-theme="light"] .chip.on, html[data-theme="light"] .seg button.on { background: #0b0d10; border-color: #0b0d10; color: #fff; }
html[data-theme="light"] .btn-primary { background: #0b0d10; color: #fff; }
html[data-theme="light"] .btn-primary:hover { background: #0b0d10; box-shadow: inset 0 0 0 100px rgba(255, 255, 255, .12); }
html[data-theme="light"] .btn-ghost, html[data-theme="light"] .tapp-install, html[data-theme="light"] .tapp-search {
  background: var(--card); border-color: var(--line-2); color: var(--text); box-shadow: 0 1px 0 rgba(12, 16, 22, .05); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-theme="light"] .btn-ghost::after { display: none; }
html[data-theme="light"] .demo-banner { background: #efe3c2; color: #7c5a06; border-bottom-color: #f1d98a; box-shadow: none; }
html[data-theme="light"] .tapp-side { background: var(--bg-2); }
html[data-theme="light"] .dd-list, html[data-theme="light"] .tc-tip, html[data-theme="light"] .th-toast,
html[data-theme="light"] .th-modal-box, html[data-theme="light"] .fpanel.open, html[data-theme="light"] .sheet-panel {
  background: rgba(236, 238, 241, .97); color: var(--text); box-shadow: 0 18px 40px rgba(12, 16, 22, .14); }
html[data-theme="light"] .dd-list button:hover, html[data-theme="light"] .dd-list button:focus-visible { background: rgba(12, 16, 22, .05); }
html[data-theme="light"] .tc-cursor { stroke: rgba(12, 16, 22, .3); }
html[data-theme="light"] .heat-pin { background: #0b0d10; box-shadow: 0 0 0 2px #fff; }
html[data-theme="light"] .pad-bar i { background: rgba(12, 16, 22, .22); }
html[data-theme="light"] .swatches button.on { outline-color: #0b0d10; }
html[data-theme="light"] .toggle input:checked + span::after { background: #fff; }
html[data-theme="light"] a.me:not(.signed) { background: var(--card); }
html[data-theme="light"] .th-modal { background: rgba(12, 16, 22, .35); }
@media (max-width: 767px) {
  html[data-theme="light"] .tapp-head, html[data-theme="light"] .tabbar { background: rgba(223, 226, 231, .92); box-shadow: none; }
  html[data-theme="light"] .tapp-sbtn { background: var(--card); }
}
/* focus rings on segmented buttons and swatches: the .on state already shows the choice */
.seg button:focus-visible, .swatches button:focus-visible { outline: 1px dashed var(--muted); outline-offset: -4px; }
.seg button:focus:not(:focus-visible), .swatches button:focus:not(:focus-visible) { outline: none; }
html[data-density="compact"] .tcard { padding-top: 7px; padding-bottom: 7px; }
html[data-density="compact"] .tt-row { padding-top: 7px; padding-bottom: 7px; }
html[data-density="compact"] .dcard { padding: 12px; }
html[data-density="compact"] .kpi { padding: 9px 12px; }
html[data-density="compact"] .tapp .view.on { gap: 10px; }
html[data-scale="s"] .tapp-main { zoom: .92; }
html[data-scale="l"] .tapp-main { zoom: 1.08; }
html[data-motion="reduced"] .tapp *, html[data-motion="reduced"] .tapp *::before, html[data-motion="reduced"] .tapp *::after { animation-duration: 0s !important; transition-duration: 0s !important; }

/* ======================================================================
   ACCOUNTS — header slot, /login, /account
   ====================================================================== */
.nav-user { display: inline-grid; place-items: center; height: 34px; padding: 0 12px; font-size: 14px; color: var(--text-2); }
.nav-user:hover { color: var(--text); }
.nav-user.signed { width: 34px; padding: 0; border: 1px solid var(--line-2); color: var(--text); font-size: 12px; font-weight: 600; overflow: hidden; }
.nav-user img, .me img { width: 100%; height: 100%; object-fit: cover; }
a.me { border-radius: 0; background: var(--card); border: 1px solid var(--line-2); color: var(--text-2); overflow: hidden; }
a.me.signed { background: linear-gradient(135deg, var(--cyan), #3b82f6); color: #00151a; border: 0; }
a.me:hover { border-color: var(--cyan); }
@media (max-width: 767px) { .nav-user:not(.signed) { padding: 0 6px; font-size: 13px; } }

/* /login */
body[data-page="login"] { background: #000; }
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-side { position: relative; display: flex; flex-direction: column; gap: 40px; padding: 40px 56px; border-right: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(700px 500px at 20% 10%, rgba(95, 227, 247, .10), transparent 60%), repeating-linear-gradient(0deg, transparent 0 63px, rgba(255, 255, 255, .035) 63px 64px), repeating-linear-gradient(90deg, transparent 0 63px, rgba(255, 255, 255, .035) 63px 64px); }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; letter-spacing: -.04em; color: var(--text); }
.auth-pitch h1 { font: 500 clamp(40px, 4.4vw, 64px)/1.02 'Google Sans Flex', sans-serif; letter-spacing: -.045em; margin: 14px 0 18px; }
.auth-pitch p { color: var(--text-2); font-size: 17px; max-width: 520px; }
.auth-live { border: 1px solid var(--line-2); background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); max-width: 560px; }
.auth-live-h { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 11.5px ui-monospace, 'SF Mono', Menlo, monospace; color: var(--muted); }
.auth-live-h span:first-child { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .08em; }
#auth-feed { list-style: none; margin: 0; padding: 4px 14px; }
#auth-feed li { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); animation: upIn .5s var(--e-sp) both; }
#auth-feed li:first-child { border-top: 0; }
#auth-feed li:nth-child(2) { animation-delay: .06s; } #auth-feed li:nth-child(3) { animation-delay: .12s; } #auth-feed li:nth-child(4) { animation-delay: .18s; } #auth-feed li:nth-child(5) { animation-delay: .24s; } #auth-feed li:nth-child(6) { animation-delay: .3s; } #auth-feed li:nth-child(7) { animation-delay: .36s; }
#auth-feed .avatar { width: 30px; height: 30px; font-size: 10px; }
#auth-feed b { display: block; font-weight: 500; font-size: 14px; }
#auth-feed small { color: var(--muted); font-size: 12px; }
.auth-perks { list-style: none; margin: auto 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.auth-perks li { padding-top: 14px; border-top: 1px solid var(--line-2); display: grid; gap: 4px; }
.auth-perks b { font-weight: 500; font-size: 14px; }
.auth-perks span { color: var(--muted); font-size: 13px; }

.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(440px, 100%); }
.auth-step h2 { font: 500 30px/1.1 'Google Sans Flex', sans-serif; letter-spacing: -.035em; margin-bottom: 8px; }
.auth-step > p.muted { margin-bottom: 22px; font-size: 15px; }
.auth-msg { margin: 0 0 16px; padding: 10px 12px; font-size: 13.5px; color: var(--red); border: 1px solid rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .07); }
.auth-msg.ok { color: var(--green); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .07); }
.auth-social { display: grid; gap: 10px; }
.auth-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; height: 50px; font-size: 15px; font-weight: 500; color: var(--text); border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); transition: border-color .2s, background .2s; }
.auth-btn:hover { border-color: rgba(255, 255, 255, .3); background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); }
.auth-btn .soon-tag { position: absolute; right: 14px; }
.auth-btn.is-soon { opacity: .55; }
.auth-email { margin-top: 18px; display: grid; gap: 8px; }
.auth-email label { font: 11px ui-monospace, 'SF Mono', Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.auth-email-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.auth-email input { min-width: 0; }
.auth-main > * { min-width: 0; }
.auth-email input { height: 50px; padding: 0 14px; background: var(--card); border: 1px solid var(--line-2); border-right: 0; color: var(--text); font-size: 16px; }
.auth-email input:focus { outline: none; border-color: rgba(95, 227, 247, .55); }
.auth-email .btn { height: 50px; }
.auth-email.is-soon { opacity: .55; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; font: 11px ui-monospace, 'SF Mono', Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.auth-wallets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wallet { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; height: 48px; padding: 0 12px; text-align: left; font-size: 14px; color: var(--text); border: 1px solid var(--line-2); background: var(--card); transition: border-color .2s, background .2s; }
.wallet:hover { border-color: var(--cyan); background: var(--card-2); }
.wallet img { width: 26px; height: 26px; }
.wallet .wi { display: grid; place-items: center; width: 26px; height: 26px; background: var(--card-3); font-size: 10px; font-weight: 600; color: var(--text-2); }
.wallet .wc-i { background: #3b99fc; color: #fff; }
.wallet em { font-style: normal; font-size: 11px; color: var(--green); }
.wallet.off { color: var(--text-2); }
.wallet.off em { color: var(--muted); }
.wallet.is-soon { opacity: .55; }
.wallet.is-soon em { color: var(--yellow); }
.auth-fine { margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.auth-back { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.auth-back:hover { color: var(--text); }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px; }
.otp input { height: 60px; text-align: center; font: 500 26px 'Google Sans Flex', sans-serif; background: var(--card); border: 1px solid var(--line-2); color: var(--text); }
.otp input:focus { outline: none; border-color: var(--cyan); box-shadow: inset 0 -2px 0 var(--cyan); }
.auth-resend { margin-top: 14px; font-size: 13px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.auth-resend:disabled { color: var(--muted); text-decoration: none; }
.auth-busy { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 40px 0 20px; }
.spin { width: 42px; height: 42px; border: 2px solid var(--line-2); border-top-color: var(--cyan); animation: spin .9s linear infinite; margin-bottom: 10px; }
.auth-ok { display: grid; place-items: center; width: 52px; height: 52px; background: var(--cyan); color: #000; font-size: 24px; margin-bottom: 10px; }
@media (max-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { padding: 24px 16px; gap: 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-live, .auth-perks { display: none; }
  .auth-pitch h1 { font-size: 36px; }
  .auth-pitch p { font-size: 15px; }
  .auth-main { padding: 28px 16px 48px; place-items: start center; }
}
@media (max-width: 420px) { .auth-wallets { grid-template-columns: 1fr; } }

/* /account */
.acct .container { display: grid; gap: 18px; }
.acct-head { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 26px; background: var(--card); border: 1px solid var(--line); }
.acct-av { width: 84px; height: 84px; display: grid; place-items: center; font: 600 28px 'Google Sans Flex', sans-serif; color: #00151a; background: linear-gradient(135deg, var(--cyan), #3b82f6); overflow: hidden; }
.acct-av img { width: 100%; height: 100%; object-fit: cover; }
.acct-id { display: grid; gap: 10px; min-width: 0; }
.acct-name { display: flex; gap: 8px; }
.acct-name input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font: 500 20px 'Google Sans Flex', sans-serif; }
.acct-name input:focus { outline: none; border-color: rgba(95, 227, 247, .55); }
.acct-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.acct-chips .pill { display: inline-flex; align-items: center; gap: 6px; }
.acct-chips svg { width: 14px; height: 14px; }
.acct-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.acct-grid > div { display: grid; gap: 18px; }
.acct-grid .box { margin: 0; }
.methods { display: grid; margin-top: 10px; }
.m-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.m-row:first-child { border-top: 0; }
.m-ic { width: 34px; height: 34px; display: grid; place-items: center; background: var(--card-3); color: var(--text-2); }
.m-t { display: grid; gap: 2px; min-width: 0; }
.m-t b { font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-t small { color: var(--muted); font-size: 12px; }
.m-row.add .m-ic { border: 1px dashed var(--line-2); background: transparent; }
.wallet-pick { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); display: grid; gap: 10px; }
.danger-box { border-color: rgba(248, 113, 113, .25); }
@media (max-width: 767px) {
  .acct-head { grid-template-columns: auto 1fr; padding: 18px; }
  .acct-cta { grid-column: 1 / -1; }
  .acct-av { width: 60px; height: 60px; font-size: 20px; }
  .acct-grid { grid-template-columns: 1fr; }
}

/* --- custom dropdowns + dialogs (replace the system ones) ---------------- */
.dd { position: relative; display: inline-block; min-width: 0; }
.dd-native { position: absolute !important; opacity: 0; pointer-events: none; width: 1px; height: 1px; overflow: hidden; }
.dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 36px; padding: 0 12px; font-size: 13px; color: var(--text-2); background: var(--card); border: 1px solid var(--line-2); white-space: nowrap; transition: border-color .15s, color .15s; }
.dd-btn span { overflow: hidden; text-overflow: ellipsis; }
.dd-btn svg { flex: none; color: var(--muted); transition: transform .2s; }
.dd-btn:hover, .dd.open .dd-btn { color: var(--text); border-color: rgba(255, 255, 255, .22); }
.dd.open .dd-btn { border-color: rgba(95, 227, 247, .55); }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-list { position: absolute; left: 0; top: calc(100% + 6px); z-index: 70; min-width: 100%; max-height: 300px; overflow: auto; padding: 4px; display: grid;
  background: rgba(12, 14, 17, .96); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 40px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s, transform .18s cubic-bezier(.22, 1, .36, 1); }
.dd.up .dd-list { top: auto; bottom: calc(100% + 6px); transform: translateY(4px); }
.dd.open .dd-list { opacity: 1; transform: none; pointer-events: auto; }
.dd-list button { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 26px; font-size: 13px; color: var(--text-2); text-align: left; white-space: nowrap; position: relative; }
.dd-list button:hover, .dd-list button:focus-visible { background: rgba(255, 255, 255, .06); color: var(--text); outline: none; }
.dd-list button.on { color: var(--text); }
.dd-list button.on::before { content: ''; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--cyan); }
.ch-ctl .dd-btn, .set-row .dd-btn { height: 32px; font-size: 12.5px; }
.fpanel .dd, .ch-ctl .dd { min-width: 140px; }
#f-save + .dd-btn, .fgroup .dd-btn { height: 30px; }
@media (max-width: 767px) { .fpanel .dd, .ch-ctl .dd { width: 100%; } .fpanel .dd-btn { height: 44px; font-size: 14px; } .fpanel .dd[data-for="f-sort"] { grid-column: 1 / -1; } }

.th-modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .2s; }
.th-modal.show { opacity: 1; }
.th-modal-box { width: min(420px, 100%); padding: 24px; background: #0b0c0f; border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .6); transform: translateY(10px) scale(.98); transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.th-modal.show .th-modal-box { transform: none; }
.th-modal-box h3 { font: 500 20px 'Google Sans Flex', sans-serif; letter-spacing: -.02em; margin-bottom: 8px; }
.th-modal-box p { color: var(--text-2); font-size: 14px; }
.th-modal-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.btn-danger { background: var(--red); color: #000; }

/* --- install app ---------------------------------------------------------- */
.tapp-install { display: flex; align-items: center; gap: 8px; width: 100%; margin-bottom: 10px; padding: 9px 12px; font-size: 13px; color: var(--text); border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.tapp-install:hover { border-color: var(--cyan); }
.tapp-install[hidden], [data-install][hidden] { display: none !important; }
.install-box { text-align: left; }
.install-box img { display: block; margin-bottom: 14px; }
.install-box ol { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: 14px; }
/* installed app: no browser chrome to account for, keep the titlebar area draggable on desktop */
html.is-app .tapp-head { -webkit-app-region: drag; }
html.is-app .tapp-head * { -webkit-app-region: no-drag; }
.net-empty .dash-row { display: none; }
.net-kpis .net-off { grid-column: 1 / -1; display: grid; gap: 6px; justify-items: start; }
.net-kpis .net-off em { color: var(--muted); }

/* ---------- apps: one place for desktop app, Telegram bot, web */
.apps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.app-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.app-card:hover { border-color: var(--line-2); }
.app-card h4 { margin: 0; font-size: 19px; font-weight: 600; }
.app-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1; }
.app-card .btn { align-self: flex-start; margin-top: 6px; }
.app-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--cyan); background: var(--cyan-soft, rgba(0, 220, 255, .08)); border: 1px solid var(--line-2); }
.app-os { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.app-os li { font: 500 11px/1 var(--mono, ui-monospace, monospace); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border: 1px solid var(--line); }
.term-apps { margin: 0 0 18px; }
.term-apps .app-card { padding: 20px; }
@media (max-width: 860px) { .apps-grid { grid-template-columns: minmax(0, 1fr); } }

.get-box { width: min(480px, 100%); }
.get-box h3 { margin: 0 0 6px; font-size: 20px; }
.get-box > p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.get-list { display: grid; gap: 8px; }
.get-opt { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 14px; text-align: left; color: var(--text); background: rgba(255, 255, 255, .02); border: 1px solid var(--line); cursor: pointer; text-decoration: none; font: inherit; transition: border-color .2s, background .2s; }
.get-opt svg { justify-self: center; color: var(--cyan); }
.get-opt:hover:not(:disabled) { border-color: var(--cyan); background: rgba(255, 255, 255, .04); }
.get-opt:disabled { cursor: default; opacity: .7; }
.get-opt span { display: grid; gap: 3px; }
.get-opt small { color: var(--muted); font-size: 12.5px; }
.get-opt em { font-style: normal; font-size: 13px; color: var(--cyan); }
html[data-theme="light"] .get-opt { background: rgba(0, 0, 0, .02); }

/* settings: cards in a row share height, every card uses the same row rhythm */
.set-grid { align-items: stretch; }
.set-grid > .dcard { display: flex; flex-direction: column; }
.set-ctl { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.set-row .seg + .btn { margin-left: 0; }
.set-grid .kv div { font-size: 14px; padding: 12px 0; min-height: 0; }
.set-grid .kv span:first-child { color: var(--text); font-weight: 500; }
.set-grid .kv span:last-child { color: var(--muted); }
.set-grid .kv span.ok, .set-grid .kv span:last-child.ok { color: var(--green, #34d399); }
.set-sub { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.set-actions { margin-top: 4px; }
.set-actions .btn { height: 32px; padding: 0 12px; font-size: 12.5px; }
.set-data { align-items: flex-start; }
.set-data > div:first-child { flex: none; padding-top: 7px; }
.set-data .set-actions { gap: 6px; }
.set-data .set-actions .btn { padding: 0 10px; }
.set-data .set-actions { margin-top: 0; justify-content: flex-end; flex: 1; min-width: 0; }
@media (max-width: 767px) { .set-data .set-actions { justify-content: flex-start; } }
.bot-cmds { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 22px; }
.bot-cmds code { font: 500 12.5px/1 var(--mono, ui-monospace, monospace); color: var(--cyan); padding: 7px 9px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }

/* ---------- 404 */
.nf { min-height: calc(100vh - 140px); display: grid; align-items: center; padding: 120px 0 80px; }
.nf-in { max-width: 640px; display: grid; gap: 16px; }
.nf h1 { margin: 0; font-size: clamp(40px, 7vw, 72px); font-weight: 500; letter-spacing: -.03em; }
.nf p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.nf-search { display: flex; gap: 8px; margin-top: 8px; }
.nf-search input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; color: var(--text); background: var(--card); border: 1px solid var(--line-2); font: inherit; font-family: var(--mono, ui-monospace, monospace); font-size: 14px; outline: none; }
.nf-search input:focus { border-color: var(--cyan); }
.nf-msg { color: #f87171 !important; font-size: 13px !important; }
.nf-links { display: flex; gap: 8px; margin-top: 8px; }
