/* YonniPad: navy terminal, gold brand, mint buys, coral sells. */
:root {
  --ink: #0b0c0f;
  --panel: #111318;
  --panel-2: #181b22;
  --line: #22252e;
  --text: #eceef4;
  --muted: #8a8f9e;
  --faint: #626776;
  --gold: #5b6dff;          /* primary accent (kept the old variable name so every page follows) */
  --gold-ink: #ffffff;
  --accent: #5b6dff;
  --buy: #2fd28d;
  --sell: #f2466e;
  --r-ctl: 8px;
  --r-panel: 10px;
  --font: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--text); }
body { font: 15px/1.45 var(--font); font-variant-numeric: tabular-nums; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:not(.btn):not([data-link]):hover { color: var(--gold); }
img { display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 10px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.up { color: var(--buy); }
.down { color: var(--sell); }
[hidden] { display: none !important; }
main { flex: 1; width: 100%; max-width: 1360px; margin: 0 auto; padding: 18px 16px 48px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 10px 20px;
  background: rgba(15, 21, 38, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 7px; color: var(--text); font-weight: 700; font-size: 20px; text-decoration: none; letter-spacing: -0.02em; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { text-decoration: none; color: var(--muted); padding: 7px 11px; border-radius: var(--r-ctl); font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
.acct { display: flex; align-items: center; gap: 8px; }
.bal { display: flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: var(--r-ctl); background: var(--panel); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.me { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--gold); }
.sol-ico { display: inline-block; vertical-align: -2px; border-radius: 50%; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: var(--r-ctl);
  padding: 9px 15px; background: var(--gold); color: var(--gold-ink); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.07); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
.btn.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.btn.block { width: 100%; }
.btn.lg { padding: 13px 16px; font-size: 16px; }
.btn.sm { padding: 5px 9px; font-size: 13px; }
.btn.sell { background: var(--sell); color: #2b0703; }
.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.link:hover { color: var(--text); }
input, select, textarea { width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 10px 11px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
select { width: auto; padding: 4px 8px; }
.fld { display: block; margin: 0 0 12px; }
.fld > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.fld > span em { font-style: normal; color: var(--faint); }
.inp-suffix { position: relative; }
.inp-suffix input { padding-right: 58px; }
.inp-suffix em { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 13px; pointer-events: none; }
.upper { text-transform: uppercase; }
.quick { display: flex; gap: 6px; margin: -4px 0 12px; flex-wrap: wrap; }
.quick button { flex: 1; min-width: 44px; padding: 6px 4px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-size: 13px; }
.quick button:hover { border-color: var(--muted); }
.seg { display: inline-flex; background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 2px; }
.seg button { border: 0; background: none; padding: 5px 10px; border-radius: 6px; color: var(--muted); cursor: pointer; font-size: 13px; }
.seg button.on { background: var(--panel-2); color: var(--text); }
.seg.wide { display: flex; margin-bottom: 12px; }
.seg.wide button { flex: 1; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: none; color: var(--muted); padding: 3px 9px; border-radius: 999px; font-size: 12px; cursor: pointer; }
.chips button.on { color: var(--ink); background: var(--text); border-color: var(--text); }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); margin: 7px 0; }
.kv b { color: var(--text); font-weight: 600; text-align: right; }
.kv.total { border-top: 1px solid var(--line); padding-top: 9px; margin-top: 10px; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 5px; background: var(--panel-2); color: var(--muted); }
.tag.kol { background: rgba(242, 184, 75, 0.14); color: var(--gold); }
.tag.fomo { background: rgba(160, 130, 255, 0.16); color: #b9a6ff; }
.tag.pumpfun { background: rgba(63, 215, 165, 0.14); color: var(--buy); }
.tag.curve { background: rgba(242, 184, 75, 0.14); color: var(--gold); }
.empty { color: var(--muted); padding: 28px 16px; text-align: center; }
.empty .btn { margin-top: 8px; }
.empty.big { padding: 80px 16px; }
.empty.big h1 { color: var(--text); margin-bottom: 10px; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: -2px; opacity: 0.8; }
@keyframes spin { to { transform: rotate(360deg); } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 16px; }
.panel + .panel { margin-top: 12px; }
.launch > .panel, .coin-side > .panel:first-child { margin-top: 0; }
.panel > h2 { margin-bottom: 8px; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
span.avatar { display: inline-grid; place-items: center; font-weight: 700; color: #10162a; background: hsl(var(--h) 60% 68%); }
.prog { display: block; height: 4px; background: var(--ink); border-radius: 9px; overflow: hidden; margin-top: 5px; }
.prog i { display: block; height: 100%; background: var(--gold); border-radius: 9px; }
.prog.big { height: 10px; }
.note { background: rgba(242, 184, 75, 0.08); border: 1px solid rgba(242, 184, 75, 0.25); color: var(--text); border-radius: var(--r-ctl); padding: 10px 12px; }

/* board */
.board-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; flex-wrap: wrap; }
.board-head h1 { font-size: 22px; flex: 1 1 320px; }
.search { flex: 1 1 340px; }
.mtabs { display: none; }
.cols { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 12px; align-items: start; }
.col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); min-width: 0; }
.col > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list { max-height: calc(100vh - 230px); overflow: auto; }
.crow { display: flex; gap: 11px; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(38, 49, 79, 0.6); text-decoration: none; }
.crow:hover { background: var(--panel-2); }
.ci { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: var(--panel-2); font-size: 18px; }
.crow-main { flex: 1; min-width: 0; }
.crow-top { display: flex; gap: 7px; align-items: baseline; }
.crow-top .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.crow-sub { display: flex; gap: 10px; font-size: 13px; margin-top: 2px; }
.crow-sub b { font-weight: 600; }
.crow-age { font-size: 12px; color: var(--faint); align-self: flex-start; }
.trk { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 8px; align-items: center; padding: 9px 14px; border-bottom: 1px solid rgba(38, 49, 79, 0.6); text-decoration: none; font-size: 13px; }
.trk:hover { background: var(--panel-2); }
.trk-who { display: flex; gap: 6px; align-items: center; min-width: 0; }
.trk-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trk.buy .trk-act { color: var(--buy); }
.trk.sell .trk-act { color: var(--sell); }
.trk-act { display: flex; gap: 4px; align-items: center; }
.trk-tok { display: flex; gap: 6px; align-items: center; min-width: 0; }
.trk-tok span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ti { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; flex-shrink: 0; font-size: 11px; }
.trk-meta { display: flex; gap: 6px; color: var(--faint); font-size: 12px; justify-content: flex-end; }

/* coin */
.coin { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.coin-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.ch-img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; font-size: 24px; }
.ch-txt h1 { font-size: 24px; }
.ch-txt h1 .muted { font-weight: 500; font-size: 17px; }
.ch-sub { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; font-size: 13px; }
.mint { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; cursor: pointer; color: var(--muted); font-size: 13px; }
.mint:hover { color: var(--text); }
.ext { color: var(--muted); text-decoration: none; }
.stats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); margin-bottom: 12px; }
.stats div { padding: 10px 12px; border-right: 1px solid var(--line); min-width: 0; }
.stats div:last-child { border-right: 0; }
.stats span { display: block; font-size: 12px; color: var(--muted); }
.stats b { font-weight: 600; white-space: nowrap; }
.curvebar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 12px 14px; margin-bottom: 12px; }
.curvebar .kv { margin-top: 0; }
.curvebar p { margin: 8px 0 0; }
.chartbox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; margin-bottom: 12px; }
.chart-bar { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chart-area { position: relative; height: 440px; }
.chart-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); padding: 20px; }
.desc { white-space: pre-wrap; color: var(--muted); margin: 0; }
.coin-side { position: sticky; top: 70px; }
.bs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.bs button { padding: 9px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--ink); color: var(--muted); font-weight: 600; cursor: pointer; }
.bs #s-buy.on { background: var(--buy); color: #052a1d; border-color: var(--buy); }
.bs #s-sell.on { background: var(--sell); color: #2b0703; border-color: var(--sell); }
.trade .btn:not(.sell) { background: var(--buy); color: #052a1d; }
.olist { list-style: none; padding: 0; margin: 10px 0 0; font-size: 13px; }
.olist li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); align-items: center; }
.olist li.cancelled, .olist li.failed { opacity: 0.55; }

/* launch */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; max-width: 1040px; margin: 0 auto; align-items: start; }
.launch h1 { margin-bottom: 6px; }
.lf-grid { display: grid; grid-template-columns: 150px 1fr; gap: 14px; margin: 14px 0 4px; }
.drop { width: 150px; height: 150px; border: 1px dashed var(--muted); border-radius: var(--r-panel); background: var(--ink); color: var(--muted); display: grid; place-content: center; text-align: center; cursor: pointer; overflow: hidden; padding: 8px; }
.drop small { display: block; font-size: 11px; color: var(--faint); margin-top: 4px; }
.drop img { width: 150px; height: 150px; object-fit: cover; margin: -8px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.devbuy { margin-top: 6px; padding: 14px; border-radius: var(--r-panel); background: var(--ink); border: 1px solid var(--line); }
.devbuy .fld > span { color: var(--text); font-weight: 600; font-size: 15px; }
.devbuy p { margin: 0; }
.cost { position: sticky; top: 70px; }
.cost h2 { margin-bottom: 8px; }
.cost .btn { margin-top: 12px; }
.steps { list-style: none; padding: 0; margin: 14px 0 0; font-size: 13px; counter-reset: s; }
.steps li { color: var(--faint); padding: 3px 0 3px 24px; position: relative; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 1px solid currentColor; font-size: 10px; display: grid; place-items: center; }
.steps li.done { color: var(--buy); }
.steps li.now { color: var(--gold); }
.steps li.fail { color: var(--sell); }

/* portfolio + admin */
.pf { max-width: 980px; margin: 0 auto; }
.pf-top { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.pf-bal { display: flex; align-items: center; gap: 10px; font-size: 34px; font-weight: 700; margin: 2px 0; }
.pf-sum { display: flex; gap: 28px; }
.pf-sum span { display: block; font-size: 13px; }
.pf-sum b { font-size: 18px; }
.pf-actions { display: flex; gap: 8px; }
.pf-wd { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; display: grid; grid-template-columns: 2fr 1fr auto; gap: 10px; align-items: end; }
.pf-wd p { grid-column: 1 / -1; margin: 0; }
.pf-wd .fld { margin: 0; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid rgba(38, 49, 79, 0.6); }
.tcoin { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.tact { display: flex; gap: 6px; justify-content: flex-end; }
.pf-acct { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.pf-acct p { flex-basis: 100%; margin: 0; }
.tw-add { display: grid; grid-template-columns: 2fr 1fr auto auto; gap: 8px; margin-bottom: 12px; }

/* docs */
.doc { max-width: 680px; margin: 0 auto; }
.doc h1 { font-size: 34px; margin: 10px 0 8px; }
.doc h2 { font-size: 19px; margin: 28px 0 8px; }
.doc p { line-height: 1.6; }
.lead { color: var(--muted); font-size: 17px; }
.fee-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 6px; }
.fee-pair div { border-left: 3px solid var(--gold); padding: 4px 0 4px 14px; }
.fee-pair b { display: block; font-size: 38px; line-height: 1.1; color: var(--gold); }
.fee-pair span { color: var(--muted); }
.doc .tbl { margin: 12px 0; }

/* modal, toast, footer */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(5, 8, 16, 0.7); display: grid; place-items: center; padding: 16px; }
.modal-box { position: relative; width: 100%; max-width: 390px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.modal.wide .modal-box { max-width: 720px; }
.modal-box h2 { font-size: 20px; margin-bottom: 8px; }
.modal-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; padding: 4px 8px; }
.modal .code { text-align: center; font-size: 26px; letter-spacing: 0.4em; }
.modal .small a { margin-right: 14px; }
.modal .sep { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.qr { width: 232px; margin: 12px auto; background: #fff; border-radius: 12px; padding: 8px; display: grid; place-items: center; min-height: 60px; color: var(--ink); }
.addr { font-size: 13px; word-break: break-all; background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 9px; margin-bottom: 10px; text-align: center; }
.pnl-wrap { margin: 10px 0 14px; min-height: 100px; display: grid; place-items: center; }
.pnl-canvas { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: min(400px, calc(100vw - 32px)); }
.toast { background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--buy); padding: 11px 14px; border-radius: var(--r-ctl); font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.toast.err { border-left-color: var(--sell); }
.toast a { color: var(--gold); }
.foot { display: flex; justify-content: space-between; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.foot a { color: var(--muted); }

/* responsive */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats div:nth-child(4) { border-right: 0; }
  .stats div:nth-child(n+5) { border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .mtabs { display: flex; gap: 6px; margin-bottom: 10px; }
  .mtabs button { flex: 1; padding: 9px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-weight: 600; }
  .mtabs button.on { color: var(--text); background: var(--panel-2); }
  .cols { grid-template-columns: 1fr; }
  .col { display: none; }
  .col.show { display: block; }
  .list { max-height: none; }
  .coin, .launch { grid-template-columns: minmax(0, 1fr); }
  .coin > *, .launch > * { min-width: 0; }
  .coin-side, .cost { position: static; }
  .chart-area { height: 340px; }
  .pf-top { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .top { gap: 10px; padding: 9px 12px; flex-wrap: wrap; }
  .bal span { display: none; }
  .three, .lf-grid, .tw-add, .pf-wd { grid-template-columns: 1fr; }
  .trk { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who meta" "act tok"; row-gap: 4px; }
  .trk-who { grid-area: who; } .trk-meta { grid-area: meta; } .trk-act { grid-area: act; } .trk-tok { grid-area: tok; justify-content: flex-end; }
  .trk-meta .muted { display: none; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats div:nth-child(4) { border-right: 1px solid var(--line); }
  .stats div:nth-child(3n) { border-right: 0; }
  .stats div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .stats b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; display: block; }
  .tbl th:nth-child(3), .tbl td:nth-child(3), .tbl th:nth-child(4), .tbl td:nth-child(4) { display: none; }
  .fee-pair { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2s; } }
.orders .btn.block + p { margin-top: 10px; }

/* coin tabs: trades, holders, bubble map */
.tabs { padding: 0; }
.tabbar { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabbar button { border: 0; background: none; color: var(--muted); padding: 7px 12px; border-radius: 6px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.tabbar button.on { background: var(--panel-2); color: var(--text); }
.tabs [data-pane] { padding: 6px 12px 12px; max-height: 520px; overflow: auto; }
.tabs [data-pane="tracked"] .chips { padding: 8px 2px; }
.tbl.trades td { padding: 6px 8px; font-size: 13px; }
.tbl a { text-decoration: none; }
.you { color: var(--gold); }
.hsum { padding: 8px 2px 10px; color: var(--muted); font-size: 14px; }
.hsum b { color: var(--text); }
.hsum b.down { color: var(--sell); }
.hbar { position: relative; min-width: 120px; height: 20px; background: var(--ink); border-radius: 5px; overflow: hidden; }
.hbar i { position: absolute; inset: 0 auto 0 0; background: rgba(242, 184, 75, 0.28); }
.hbar span { position: relative; padding-left: 7px; font-size: 13px; line-height: 20px; }
.tag.pool { background: rgba(242, 184, 75, 0.14); color: var(--gold); }
.tag.creator { background: rgba(255, 122, 107, 0.14); color: var(--sell); }
.tag.tracked { background: rgba(160, 130, 255, 0.16); color: #b9a6ff; }
.bubbles svg { width: 100%; max-height: 440px; display: block; margin: 8px auto; }
.bubbles circle { stroke: var(--ink); stroke-width: 1.5; transition: fill-opacity 0.15s; }
.bubbles a:hover circle { fill-opacity: 1; }
.bubbles text { font: 600 11px var(--font); fill: #10162a; pointer-events: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); align-items: center; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.legend a { margin-left: auto; color: var(--gold); }
@media (max-width: 600px) { .tbl.trades th:nth-child(4), .tbl.trades td:nth-child(4) { display: none; } }

/* token info, bubble groups */
.info .kv { margin: 6px 0; }
.info .kv[title] b { text-decoration: underline dotted var(--faint); text-underline-offset: 3px; cursor: help; }
.stats div[title] b { text-decoration: underline dotted var(--faint); text-underline-offset: 3px; cursor: help; }
.warn { color: var(--gold); }
.pumpbar { margin-bottom: 10px; }
.risks { list-style: none; padding: 0; margin: 10px 0 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.risks li { font-size: 12px; padding: 3px 8px; border-radius: 5px; background: var(--panel-2); color: var(--muted); cursor: help; }
.risks li.danger { background: rgba(255, 122, 107, 0.14); color: var(--sell); }
.risks li.warn { background: rgba(242, 184, 75, 0.14); color: var(--gold); }
.srcs { margin: 10px 0 0; }
.bsum { margin: 6px 2px 4px; color: var(--muted); }
.bsum b { color: var(--text); }
.bsum b.down { color: var(--sell); }
.bubbles line { stroke: rgba(233, 236, 246, 0.35); stroke-width: 1.5; }
.groups { list-style: none; padding: 0; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.groups li { margin: 3px 0; }
.groups i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.bm-frame { width: 100%; height: 520px; border: 0; border-radius: 8px; background: var(--ink); }
.seg.small button { padding: 4px 8px; font-size: 12px; }


/* ---------------------------------------------------------------- Axiom-style terminal */
.logo svg { color: var(--accent); }
main { max-width: 1680px; }
.top { gap: 18px; background: rgba(11, 12, 15, 0.95); }
.hsearch { position: relative; display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; width: 300px; }
.hsearch svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.6; flex-shrink: 0; }
.hsearch input { border: 0; background: none; padding: 8px 0; }
.hs-drop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; z-index: 40; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.hs-item { display: grid; grid-template-columns: 22px auto 1fr auto; gap: 8px; align-items: center; padding: 8px 12px; text-decoration: none; font-size: 14px; }
.hs-item:hover { background: var(--panel); }
.hs-item .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ico { display: inline-flex; width: 14px; height: 14px; vertical-align: -2px; }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.page-h { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; flex-wrap: wrap; }
.page-h h1 { font-size: 22px; flex: 1; }
.qb-set { display: inline-flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--accent); }
.qb-set input { width: 52px; border: 0; background: none; padding: 4px 0; text-align: right; color: var(--text); font-weight: 600; }
.qb-set em { font-style: normal; color: var(--muted); font-size: 13px; }
.fbtn { position: relative; display: inline-grid; place-items: center; width: 32px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; color: var(--muted); }
.fbtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.fbtn:hover { color: var(--text); }
.fcount { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.fcount:empty { display: none; }

/* pulse */
.pulse .pulse-tabs { display: none; margin-bottom: 10px; }
.pcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; background: var(--panel); }
.pcol { min-width: 0; border-right: 1px solid var(--line); }
.pcol:last-child { border-right: 0; }
.pcol > header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pcol > header h2 { flex: 1; font-size: 16px; }
.plist { height: calc(100vh - 210px); overflow-y: auto; scrollbar-width: thin; }
.pc { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pc:hover { background: #15171d; }
.pc-img { position: relative; text-align: center; }
.pimg { width: 74px; height: 74px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); font-size: 26px; }
.proto-dot { position: absolute; top: 58px; right: -4px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--panel); background: var(--faint); }
.proto-dot.pump { background: #3ddc84; } .proto-dot.bonk { background: #f5a524; } .proto-dot.bags { background: #8fd14f; }
.proto-dot.meteora { background: #ff6a3d; } .proto-dot.yonnipad { background: var(--accent); } .proto-dot.raydium { background: #8b7bff; }
.pc-mint { display: block; font-size: 11px; color: var(--faint); margin-top: 5px; white-space: nowrap; }
.pc-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pc-l1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pc-l1 b { font-size: 16px; white-space: nowrap; }
.pc-l1 .nm { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib { border: 0; background: none; padding: 0; color: var(--faint); cursor: pointer; display: inline-flex; }
.ib:hover { color: var(--text); }
.pc-l2 { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.age { color: var(--buy); font-weight: 600; }
.soc { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; text-decoration: none; }
.soc:hover { color: var(--text); border-color: var(--muted); }
.st { display: inline-flex; align-items: center; gap: 4px; color: var(--text); }
.st .ico { color: var(--muted); }
.pc-l3 { display: flex; gap: 5px; flex-wrap: wrap; }
.chip { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.good { color: var(--buy); border-color: rgba(47, 210, 141, 0.3); }
.chip.bad { color: var(--sell); border-color: rgba(242, 70, 110, 0.3); }
.chip.curve { color: #b6c0ff; border-color: rgba(91, 109, 255, 0.35); }
.pc-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.pc-nums { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 14px; white-space: nowrap; }
.pc-nums em { font-style: normal; color: var(--faint); font-size: 12px; margin-right: 4px; }
.pc-nums b { color: #8fb3ff; }
.bc { width: 80px; height: 4px; background: var(--ink); border-radius: 4px; overflow: hidden; }
.bc i { display: block; height: 100%; background: var(--accent); }
.qb { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.qb:hover { filter: brightness(1.1); }
.qb.busy { opacity: 0.6; }
.qb .ico svg { fill: currentColor; stroke: none; }

/* discover */
.dtabs { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.dtabs button { border: 0; background: none; color: var(--muted); font-size: 18px; font-weight: 600; padding: 4px 10px; cursor: pointer; border-radius: 8px; }
.dtabs button.on { color: var(--text); }
.dtools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel.tight { padding: 0; overflow: hidden; }
.dtbl th { padding: 10px 12px; }
.dtbl td { padding: 10px 12px; vertical-align: middle; }
.tr-row { cursor: pointer; }
.tr-row:hover td { background: #15171d; }
.tp { display: flex; gap: 10px; align-items: center; min-width: 0; }
.timg { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex-shrink: 0; font-size: 20px; border: 1px solid var(--line); }
.tr-pair { max-width: 360px; }
.show-m { display: none !important; }
.qb i.u { font-style: normal; }
.tr-pair .pc-l2 { margin-top: 4px; }
.ti-chips { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.tr-act { text-align: right; }

/* tracker page */
.track-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; align-items: start; }
.track .list { max-height: calc(100vh - 200px); }

/* filter sheet */
.modal.sheet .modal-box { max-width: 520px; max-height: 88vh; display: flex; flex-direction: column; }
.f-kw { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-tabs { margin: 4px -4px 8px; border-bottom: 0; padding: 0; }
.f-body { overflow-y: auto; min-height: 220px; padding: 4px 0; }
.f-range { display: grid; grid-template-columns: 1fr 100px 100px; gap: 8px; align-items: center; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.chips.big button { font-size: 14px; padding: 7px 14px; }
.chips button.proto.on, .chips.big button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.f-foot { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.f-foot .btn { flex: 1; }

/* phones: Axiom-like bottom bar, one Pulse column at a time */
.bnav { display: none; }
@media (max-width: 900px) {
  .pulse .pulse-tabs { display: flex; }
  .pcols { grid-template-columns: 1fr; }
  .pcol { display: none; border-right: 0; }
  .pcol.show { display: block; }
  .plist { height: auto; max-height: none; }
  .track-grid { grid-template-columns: 1fr; }
  .hsearch { width: auto; flex: 1; }
  .nav { display: none; }
  .foot { display: none; }
  main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(11, 12, 15, 0.97); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); backdrop-filter: blur(10px); }
  .bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); text-decoration: none; padding: 4px 0; }
  .bnav a[aria-current="page"] { color: var(--text); }
  .bnav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
  .hide-m { display: none; }
  .show-m { display: flex !important; }
  #toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .top { flex-wrap: nowrap; padding: 8px 10px; gap: 8px; }
  .logo span { display: none; }
  .hsearch input::placeholder { font-size: 13px; }
  .acct .btn#dep-btn { display: none; }
  .pc { grid-template-columns: 62px minmax(0, 1fr); padding: 11px 10px; }
  .pimg { width: 62px; height: 62px; }
  .proto-dot { top: 47px; }
  .pc-side { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .pc-nums { flex: 1; flex-direction: row; align-items: center; gap: 10px; }
  .dtabs button { font-size: 16px; padding: 4px 6px; }
  .tr-pair { max-width: none; }
  .tr-pair .nm { display: none; }
  .tr-act .qb { padding: 6px 10px; }
  .tr-act .qb i.u { display: none; }
  .dtbl th:first-child, .dtbl td:first-child { padding-left: 10px; }
  .dtbl td:last-child { padding-right: 10px; }
  .timg { width: 42px; height: 42px; }
  .dtbl td { padding: 9px 8px; }
  .f-kw { grid-template-columns: 1fr; }
  .f-range { grid-template-columns: 1fr 80px 80px; }
  .modal.sheet { align-items: end; padding: 0; }
  .modal.sheet .modal-box { max-width: none; border-radius: 16px 16px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* live market cap ticks on Pulse cards and Discover rows */
@keyframes flash-up { from { color: var(--buy); } }
@keyframes flash-down { from { color: var(--sell); } }
.flash-up { animation: flash-up 1.2s ease-out; }
.flash-down { animation: flash-down 1.2s ease-out; }

/* login page: shown alone (logo only in the header) until you're logged in */
body.gated .nav, body.gated .hsearch, body.gated .acct, body.gated .bnav, body.gated .foot { display: none; }
.login-page { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 24px 0; }
.login-card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; }
.login-card h1 { font-size: 24px; margin: 0 0 6px; }
.login-card > p { margin: 0 0 18px; }

/* ---- login page animations ---- */
.login-page { position: relative; isolation: isolate; }
.lg-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lg-bg i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .35; animation: lg-drift 16s ease-in-out infinite alternate; }
.lg-bg i:nth-child(1) { background: var(--accent); top: -18vmax; left: -12vmax; }
.lg-bg i:nth-child(2) { background: #8a5bff; bottom: -22vmax; right: -14vmax; animation-delay: -5s; animation-duration: 19s; }
.lg-bg i:nth-child(3) { background: var(--buy); width: 26vmax; height: 26vmax; top: 40%; left: 55%; opacity: .14; animation-delay: -9s; }
.lg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(140,152,190,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(140,152,190,.06) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); }
@keyframes lg-drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

.login-card { position: relative; overflow: hidden; background: color-mix(in srgb, var(--panel) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -30px rgba(91,109,255,.45); animation: lg-rise .7s cubic-bezier(.2,.9,.25,1.15) both; }
.login-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--lg-spin, 0deg), transparent 0 70%, var(--accent), #8a5bff, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: lg-spin 4s linear infinite; }
@property --lg-spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes lg-spin { to { --lg-spin: 360deg; } }
@keyframes lg-rise { from { opacity: 0; transform: translateY(28px) scale(.96); filter: blur(6px); } }
.lg-logo { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 14px; color: #fff;
  background: linear-gradient(135deg, var(--accent), #8a5bff); box-shadow: 0 10px 30px -8px var(--accent); animation: lg-pop .6s .15s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes lg-pop { from { opacity: 0; transform: scale(.4) rotate(-20deg); } }
.login-card h1, .login-card > p { animation: lg-up .5s both; }
.login-card h1 { animation-delay: .22s; }
.login-card > p { animation-delay: .3s; }
#lg-root.lg-in > * { animation: lg-up .45s both; }
#lg-root.lg-in > *:nth-child(1) { animation-delay: .36s; }
#lg-root.lg-in > *:nth-child(2) { animation-delay: .42s; }
#lg-root.lg-in > *:nth-child(3) { animation-delay: .48s; }
#lg-root.lg-in > *:nth-child(n+4) { animation-delay: .54s; }
@keyframes lg-up { from { opacity: 0; transform: translateY(12px); } }

.google-btn { background: #fff; color: #1f1f1f; gap: 10px; font-weight: 600; }
.google-btn svg { flex: none; }
.or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--faint); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-card .code { text-align: center; font-size: 26px; letter-spacing: .4em; }
.login-card input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); transition: box-shadow .2s; }
.shake { animation: lg-shake .45s; border-color: var(--sell) !important; }
@keyframes lg-shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

/* success: card content fades, a check draws itself, a ring of sparks bursts out */
.login-card.success > :not(.lg-done) { opacity: 0; transform: scale(.97); transition: opacity .25s, transform .25s; pointer-events: none; }
.login-card.success { box-shadow: 0 30px 90px -25px rgba(47,210,141,.55); transition: box-shadow .4s; }
.lg-done { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; font-size: 20px; }
.lg-done b { animation: lg-up .4s .45s both; }
.lg-check { width: 84px; height: 84px; fill: none; stroke: var(--buy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; animation: lg-pop .5s cubic-bezier(.3,1.6,.5,1) both; }
.lg-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: lg-draw .55s .05s ease-out forwards; }
.lg-check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: lg-draw .35s .45s ease-out forwards; }
@keyframes lg-draw { to { stroke-dashoffset: 0; } }
.lg-burst { position: absolute; left: 50%; top: calc(50% - 16px); }
.lg-burst i { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--buy); opacity: 0;
  animation: lg-spark .7s calc(.35s + var(--d)) ease-out forwards; }
.lg-burst i:nth-child(3n) { background: var(--accent); }
.lg-burst i:nth-child(3n+1) { background: #8a5bff; }
@keyframes lg-spark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-90px) scale(.3); } }
.login-page.leaving .login-card { animation: lg-leave .38s ease-in forwards; }
@keyframes lg-leave { to { opacity: 0; transform: scale(1.06); filter: blur(8px); } }
body.entering #view, body.entering .top, body.entering .bnav { animation: lg-up .5s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  .login-page *, .login-page *::before, body.entering * { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}

/* ---- landing page (logged out) ---- */
body.gated .top { display: none; }
body.gated main { max-width: none; padding: 0; }
body.gated { background: #000; }
.login-page.landing { display: block; min-height: 100vh; padding: 0 16px 60px; overflow: hidden; color: #fff; }
.lp-beams { position: fixed; inset: 0; z-index: -1; display: flex; align-items: flex-end; justify-content: center; gap: 0; pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 70%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 70%, transparent 100%); }
.lp-beams i { flex: 1; max-width: 140px; height: var(--h); transform-origin: bottom; border-radius: 6px 6px 0 0;
  background: linear-gradient(to top, rgba(91,109,255,.0), rgba(91,109,255,.32) 55%, rgba(91,109,255,.06));
  box-shadow: inset 1px 0 0 rgba(140,155,255,.12); animation: lp-beam 1.2s calc(var(--i) * 90ms) cubic-bezier(.2,.8,.2,1) both, lp-glow 6s calc(var(--i) * -.8s) ease-in-out infinite; }
.lp-beams i:nth-child(4) { background: linear-gradient(to top, rgba(91,109,255,.05), rgba(110,125,255,.55) 60%, rgba(91,109,255,.08)); }
@keyframes lp-beam { from { transform: scaleY(0); opacity: 0; } }
@keyframes lp-glow { 50% { filter: brightness(1.5); } }

.lp-top { position: relative; z-index: 2; display: flex; width: 100%; align-items: center; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 18px 0;
  animation: lg-up .6s both; }
.lp-logo { display: flex; align-items: center; gap: 8px; font-size: 20px; letter-spacing: -.02em; }
.lp-logo svg { color: #fff; }
.lp-actions { display: flex; gap: 10px; }
.lp-btn { border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 700; cursor: pointer; background: var(--accent); color: #fff;
  box-shadow: 0 8px 30px -10px var(--accent); transition: transform .15s, filter .15s, box-shadow .2s; }
.lp-btn:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 12px 36px -10px var(--accent); }
.lp-btn:active { transform: scale(.97); }
.lp-btn.ghost { background: #1a1c22; box-shadow: none; }
.lp-btn.lg { padding: 15px 34px; font-size: 18px; }

.lp-hero { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto; padding: 12vh 0 7vh; }
.lp-mark { display: inline-grid; color: #fff; animation: lg-pop .7s .1s cubic-bezier(.3,1.6,.5,1) both; }
.lp-mark svg { width: 64px; height: 64px; filter: drop-shadow(0 0 24px rgba(91,109,255,.8)); }
.lp-hero h1 { font-size: clamp(40px, 9vw, 76px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; margin: 22px 0 18px; animation: lg-up .7s .2s both;
  background: linear-gradient(180deg, #fff 30%, #b9c0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero p { font-size: clamp(17px, 2.4vw, 21px); color: #9aa0b4; max-width: 520px; margin: 0 auto 30px; animation: lg-up .7s .32s both; }
.lp-hero .lp-btn { animation: lg-up .7s .44s both, lp-pulse 2.6s 1.4s ease-in-out infinite; }
@keyframes lp-pulse { 50% { box-shadow: 0 0 0 8px rgba(91,109,255,.14), 0 12px 40px -8px var(--accent); } }
.lp-sub { display: block; margin-top: 16px; font-size: 13px; color: #6d7386; animation: lg-up .7s .56s both; }

.lp-preview { max-width: 980px; margin: 0 auto; perspective: 1400px; animation: lp-tilt 1.1s .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes lp-tilt { from { opacity: 0; transform: translateY(60px) rotateX(18deg); } }
.lp-win { border: 1px solid #23263a; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, rgba(20,22,40,.85), rgba(6,7,12,.95));
  box-shadow: 0 -20px 80px -30px rgba(91,109,255,.55), inset 0 1px 0 rgba(255,255,255,.05); }
.lp-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #1c1f2e; }
.lp-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2e44; }
.lp-bar span { flex: 1; max-width: 220px; height: 8px; margin-left: 10px; border-radius: 6px; background: #1a1d2c; }
.lp-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; padding: 14px; }
.lp-chart { border-radius: 10px; background: rgba(255,255,255,.02); padding: 10px; min-height: 180px; }
.lp-chart svg { width: 100%; height: 100%; min-height: 160px; }
.lp-chart g { opacity: 0; animation: lg-up .4s calc(.9s + var(--d) * 45ms) both; animation-name: lp-candle; }
@keyframes lp-candle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
.lp-chart .u { stroke: var(--buy); fill: var(--buy); }
.lp-chart .d { stroke: var(--sell); fill: var(--sell); }
.lp-chart line { stroke-width: 1; }
.lp-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lp-cols > div { display: grid; gap: 8px; align-content: start; }
.lp-cols span { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; gap: 5px 7px; padding: 8px; border-radius: 8px; background: rgba(255,255,255,.03);
  animation: lg-up .5s calc(1s + var(--d) * 70ms) both; }
.lp-cols i { grid-row: span 2; width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--accent), #8a5bff); opacity: .7; }
.lp-cols b { height: 7px; border-radius: 4px; background: #2a2e44; }
.lp-cols em { height: 6px; width: 60%; border-radius: 4px; background: rgba(47,210,141,.45); }
.lp-cols span:nth-child(2n) em { background: rgba(242,70,110,.45); width: 40%; }

.lp-feats { max-width: 980px; margin: 34px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-feats div { padding: 18px; border: 1px solid #1d2030; border-radius: 14px; background: rgba(14,15,24,.7); animation: lg-up .6s 1.2s both; }
.lp-feats b { display: block; font-size: 17px; margin-bottom: 4px; }
.lp-feats span { color: #8b91a5; font-size: 14px; }

.lp-sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.lp-sheet[hidden] { display: none; }
.lp-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: lp-fade .3s both; }
@keyframes lp-fade { from { opacity: 0; } }
.lp-sheet .login-card { width: 100%; max-width: 400px; border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; }
.lp-sheet .login-card h1 { font-size: 24px; margin: 0 0 6px; }
.lp-sheet .login-card > p { margin: 0 0 18px; }

@media (max-width: 700px) {
  .lp-body { grid-template-columns: 1fr; }
  .lp-cols { grid-template-columns: repeat(2, 1fr); }
  .lp-cols > div:nth-child(3) { display: none; }
  .lp-feats { grid-template-columns: 1fr; }
  .lp-hero { padding-top: 9vh; }
  .lp-sheet { place-items: end center; padding: 0; }
  .lp-sheet .login-card { max-width: none; border-radius: 20px 20px 0 0; padding-bottom: 34px; animation: lp-sheet .45s cubic-bezier(.2,.9,.25,1.05) both; }
  @keyframes lp-sheet { from { transform: translateY(100%); } }
}
@media (prefers-reduced-motion: reduce) {
  .landing *, .landing *::before { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}
.login-page.landing.leaving > :not(.lp-sheet) { opacity: 0; transition: opacity .35s; }

/* ---- 404 page ---- */
.nf { text-align: center; padding: 10vh 16px 60px; max-width: 560px; margin: 0 auto; }
.nf-code { display: flex; justify-content: center; gap: 4px; font-size: clamp(96px, 26vw, 168px); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.nf-code span { background: linear-gradient(180deg, #fff 25%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: nf-drop .7s cubic-bezier(.3,1.5,.5,1) both; }
.nf-code span:nth-child(2) { animation-delay: .08s; }
.nf-code span:nth-child(3) { animation-delay: .16s; }
.nf-0 { animation: nf-drop .7s .08s cubic-bezier(.3,1.5,.5,1) both, nf-wobble 3s 1s ease-in-out infinite !important; display: inline-block; }
@keyframes nf-drop { from { opacity: 0; transform: translateY(-40px) scale(.8); } }
@keyframes nf-wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg) translateY(4px); } 75% { transform: rotate(6deg); } }
.nf-line { width: 100%; max-width: 360px; height: 60px; margin: 6px auto 18px; display: block; }
.nf-line path { fill: none; stroke: var(--sell); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 400; stroke-dashoffset: 400; animation: lg-draw 1.4s .4s ease-out forwards; filter: drop-shadow(0 0 6px rgba(242,70,110,.6)); }
.nf h1 { font-size: 26px; margin-bottom: 8px; animation: lg-up .5s .5s both; }
.nf p { animation: lg-up .5s .6s both; word-break: break-all; }
.nf-acts { display: flex; gap: 10px; justify-content: center; margin-top: 18px; animation: lg-up .5s .7s both; }
.stats .vf span::after { content: " ✓"; color: var(--buy); font-weight: 700; }

/* ---- motion ---- */
.view-in { animation: view-in .35s cubic-bezier(.2,.8,.2,1); }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } }
.enter { animation: card-in .45s calc(var(--i, 0) * 40ms) cubic-bezier(.2,.9,.25,1.1) both; }
@keyframes card-in { from { opacity: 0; transform: translateX(-14px) scale(.98); background: rgba(91,109,255,.12); } }
.pc, .tr-row { transition: background .2s, transform .15s; }
.pc:hover { background: var(--panel-2); transform: translateX(2px); }
.btn, .lp-btn, .qb, .seg button, .tabbar button, .bs button { position: relative; overflow: hidden; }
.btn:active, .qb:active, .seg button:active, .bs button:active { transform: scale(.97); }
.btn, .qb { transition: transform .12s, filter .15s, box-shadow .2s; }
.ripple { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: rgba(255,255,255,.35); pointer-events: none;
  animation: ripple .6s ease-out forwards; }
@keyframes ripple { to { transform: scale(40); opacity: 0; } }
.toast { animation: toast-in .35s cubic-bezier(.2,.9,.25,1.15) both; }
.toast.out { animation: toast-out .26s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
.tabbar button, .seg button { transition: background .2s, color .2s; }
.bnav a[aria-current="page"] svg { animation: nav-pop .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes nav-pop { 50% { transform: translateY(-3px) scale(1.15); } }
.panel { animation: panel-in .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.coin-burst { position: fixed; z-index: 90; pointer-events: none; }
.coin-burst i { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--c, #f5c84b);
  box-shadow: 0 0 8px var(--c, #f5c84b); animation: coin-burst .8s var(--d) cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes coin-burst { from { transform: rotate(var(--a)) translateY(0); opacity: 1; } to { transform: rotate(var(--a)) translateY(-70px) scale(.4); opacity: 0; } }
input.pop { animation: inp-pop .5s; }
@keyframes inp-pop { 30% { box-shadow: 0 0 0 4px rgba(91,109,255,.35); } }
.xfill { margin-left: 8px; font-size: 12px; color: var(--accent); background: none; border: 0; cursor: pointer; padding: 0; }
.xfill[aria-pressed="true"] { color: var(--buy); }

/* ---- rewards ---- */
.rw { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
.rw-hero { position: relative; overflow: hidden; text-align: center; padding: 34px 20px; display: grid; justify-items: center; gap: 6px; }
.rw-glow { position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(closest-side, rgba(91,109,255,.35), transparent); animation: lg-drift 9s ease-in-out infinite alternate; pointer-events: none; }
.rw-big { position: relative; display: flex; align-items: center; gap: 10px; font-size: clamp(38px, 9vw, 56px); font-weight: 700; letter-spacing: -.03em; }
.rw-big em { font-style: normal; font-size: .45em; color: var(--muted); }
.rw-hero .btn { margin-top: 12px; min-width: 220px; }
.rw-hero .btn.ready { animation: lp-pulse 2.4s ease-in-out infinite; }
.rw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rw-stats .panel { display: grid; gap: 4px; padding: 16px; }
.rw-stats b { display: flex; align-items: center; gap: 6px; font-size: 18px; }
.rw-how { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.rw-how li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; }
.rw-how li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--accent); font-weight: 700; }
.rw-how span { color: var(--muted); font-size: 14px; }
.tag.paid { color: var(--buy); } .tag.pending, .tag.sending { color: var(--gold); }
@media (max-width: 700px) { .rw-stats { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .view-in, .enter, .panel, .toast, .coin-burst i, .ripple { animation: none !important; }
}
.rw-claims { list-style: none; margin: 0; padding: 0; }
.rw-claims li { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rw-claims b { display: flex; align-items: center; gap: 5px; }
/* coin page: your position */
.pos-pnl { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 10px; border-radius: 10px;
  background: color-mix(in srgb, var(--buy) 10%, transparent); animation: panel-in .4s both; }
.pos-pnl.down { background: color-mix(in srgb, var(--sell) 10%, transparent); }
.pos-pnl b { font-size: 22px; letter-spacing: -.02em; }
.pos-pnl span { font-size: 13px; }
.pos .kv b { display: flex; align-items: center; gap: 5px; }
/* /adminfees */
.af, .af-lock { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.af-lock { min-height: 60vh; place-items: center; }
.af-card { width: 100%; max-width: 380px; padding: 26px 22px; }
.af-card h1 { font-size: 24px; margin-bottom: 4px; }
.af-hero { position: relative; overflow: hidden; text-align: center; padding: 30px 20px; display: grid; justify-items: center; gap: 6px; }
.af-addr { position: relative; display: flex; gap: 14px; align-items: center; font-size: 14px; margin-top: 6px; }
