/* God’s Eye terminal: warm graphite, cream text, one gold accent (from the observatory template); green/red only for price direction. */
:root {
  --bg: #171614; --bg2: #1a1917; --panel: #1c1b19; --panel2: #24221f; --line: #2b2925; --line2: #3a3732;
  --text: #e8e1d3; --mute: #a19a8c; --dim: #6f695e; --accent: #c8b27f; --accent2: #b39b63; --accentbg: rgba(200, 178, 127, .12);
  --up: #7fc99a; --down: #e07a6b; --upbg: rgba(127, 201, 154, .12); --downbg: rgba(224, 122, 107, .12); --warn: #d9a55a; --warnbg: rgba(217, 165, 90, .12);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; --serif: "Instrument Serif", Georgia, serif;
  --r: 3px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 13px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accentbg); }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #33302b; border-radius: 8px; } ::-webkit-scrollbar-track { background: transparent; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.up { color: var(--up); } .down { color: var(--down); } .mute { color: var(--mute); } .dim { color: var(--dim); } .acc { color: var(--accent); } .warn { color: var(--warn); }
.hide { display: none !important; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; height: 54px; display: flex; align-items: center; gap: 18px; padding: 0 16px; background: rgba(23, 22, 20, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: .08em; font-size: 15px; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 7px 11px; border-radius: 7px; color: var(--mute); font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.on { color: var(--text); background: var(--panel2); }
.search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.search input { width: 100%; height: 34px; padding: 0 64px 0 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); outline: none; }
.search input:focus { border-color: var(--accent2); }
.search .ico { position: absolute; left: 11px; top: 9px; width: 16px; height: 16px; color: var(--dim); }
.search kbd { position: absolute; right: 8px; top: 7px; font: 11px var(--mono); color: var(--dim); border: 1px solid var(--line2); border-radius: 5px; padding: 1px 6px; }
.btn { height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel2); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.btn:hover { border-color: #4a463f; }
.btn.primary { background: var(--accent2); border-color: var(--accent2); color: #fff; }
.btn.primary:hover { background: var(--accent); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn.ghost { background: transparent; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; position: relative; color: var(--mute); }
.icon-btn:hover { color: var(--text); }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.burger { display: none; }

/* ---------- layout ---------- */
.shell { display: flex; min-height: calc(100vh - 54px - 30px); }
.side { width: 196px; flex-shrink: 0; border-right: 1px solid var(--line); padding: 12px 8px; position: sticky; top: 54px; height: calc(100vh - 54px - 30px); overflow-y: auto; }
.side h4 { margin: 8px 10px 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.side a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; color: var(--mute); }
.side a:hover { background: var(--panel); color: var(--text); }
.side a.on { background: var(--panel2); color: var(--text); }
.chain-dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 700 8px var(--mono); color: #171614; flex-shrink: 0; }
.side .own { margin-left: auto; font: 600 9px var(--mono); color: var(--accent); border: 1px solid var(--accent2); border-radius: 4px; padding: 0 4px; }
main { flex: 1; min-width: 0; padding: 16px 20px 40px; }
.foot { height: 30px; display: flex; align-items: center; gap: 18px; padding: 0 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; background: var(--bg); position: sticky; bottom: 0; z-index: 20; }
.foot .live { display: inline-flex; align-items: center; gap: 6px; }
.foot .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--upbg); }
.foot .live.off i { background: var(--warn); box-shadow: 0 0 0 3px var(--warnbg); }
.foot a:hover { color: var(--text); }
.foot .r { margin-left: auto; display: flex; gap: 14px; }

/* ---------- common bits ---------- */
.h1 { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.sub { color: var(--mute); margin: 4px 0 0; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.sp { flex: 1; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 14px 0 0; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 9px 12px; color: var(--mute); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.tabs .count { color: var(--dim); font-weight: 500; margin-left: 4px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.seg button { background: none; border: 0; padding: 5px 10px; color: var(--mute); font: 600 12px var(--mono); }
.seg button.on { background: var(--panel2); color: var(--text); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; border-radius: 5px; font: 600 10.5px var(--mono); border: 1px solid var(--line2); color: var(--mute); white-space: nowrap; }
.chip.dev { color: #ffb86b; border-color: rgba(255, 184, 107, .35); } .chip.sniper { color: #ff7ab2; border-color: rgba(255, 122, 178, .35); }
.chip.bundler { color: #ff5c6c; border-color: rgba(255, 92, 108, .35); } .chip.insider { color: #f5b84b; border-color: rgba(245, 184, 75, .35); }
.chip.whale { color: #5cc8ff; border-color: rgba(92, 200, 255, .35); } .chip.smart { color: var(--up); border-color: rgba(46, 204, 143, .35); }
.chip.kol { color: var(--accent); border-color: rgba(200, 178, 127, .45); } .chip.special { color: var(--dim); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.empty { padding: 40px 16px; text-align: center; color: var(--mute); }
.skel { background: linear-gradient(90deg, #1c1b19 25%, #25231f 50%, #1c1b19 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }
.toast { position: fixed; bottom: 44px; left: 50%; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--line2); padding: 10px 16px; border-radius: 9px; z-index: 100; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.copy { cursor: pointer; } .copy:hover { color: var(--text); }
.logo { width: 28px; height: 28px; border-radius: 50%; background: var(--panel2); object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); display: grid; place-items: center; font: 700 10px var(--mono); color: var(--mute); overflow: hidden; }
.logo.lg { width: 44px; height: 44px; font-size: 13px; }
.badge-chain { position: relative; }
.badge-chain .chain-dot { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; font-size: 6px; border: 2px solid var(--bg); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
table.t { width: 100%; border-collapse: collapse; }
table.t th { position: sticky; top: 0; background: var(--panel); text-align: right; font: 600 11px var(--sans); color: var(--dim); text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: default; user-select: none; }
table.t th.l, table.t td.l { text-align: left; }
table.t th.sort { cursor: pointer; } table.t th.sort:hover { color: var(--text); } table.t th.on { color: var(--accent); }
table.t td { padding: 9px 12px; border-bottom: 1px solid #211f1c; text-align: right; white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: #201e1b; }
table.t tbody tr.click { cursor: pointer; }
.tok { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.tok b { font-weight: 650; } .tok small { color: var(--dim); display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.age { font: 600 11px var(--mono); color: var(--accent); }
.flash-up td { animation: fu 1s; } .flash-down td { animation: fd 1s; }
@keyframes fu { from { background: var(--upbg); } } @keyframes fd { from { background: var(--downbg); } }
.bar { height: 4px; background: #2b2925; border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.bs { display: flex; height: 4px; border-radius: 4px; overflow: hidden; margin-top: 6px; } .bs i:first-child { background: var(--up); } .bs i:last-child { background: var(--down); }

/* ---------- discover ---------- */
.dhead { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.filters input, .filters select { height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel); outline: none; }

/* ---------- trenches ---------- */
.trench { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.tcol { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-height: 300px; display: flex; flex-direction: column; }
.tcol > header { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-bottom: 1px solid var(--line); font-weight: 650; }
.tcol > header span { color: var(--dim); font-weight: 500; }
.tcol .list { overflow-y: auto; max-height: calc(100vh - 230px); }
.tcard { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #211f1c; }
.tcard:hover { background: #201e1b; }
.tcard .meta { flex: 1; min-width: 0; }
.tcard .l1 { display: flex; gap: 6px; align-items: baseline; } .tcard .l1 b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.tcard .l2 { display: flex; gap: 10px; color: var(--mute); font: 11px var(--mono); margin-top: 3px; flex-wrap: wrap; }
.tcard .rt { text-align: right; font: 12px var(--mono); }
.tcard.new { animation: fu 1.2s; }

/* ---------- token page ---------- */
.tp { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; }
.thead { min-width: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.thead .name { font-size: 18px; font-weight: 700; } .thead .full { color: var(--mute); }
.thead .price { font: 700 22px var(--mono); margin-left: 8px; }
.links { display: flex; gap: 6px; flex-wrap: wrap; }
.links a { font-size: 12px; color: var(--mute); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; } .links a:hover { color: var(--text); }
.chartbox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); margin-top: 12px; }
.chartbar { overflow-x: auto; display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
#chart { height: 430px; position: relative; }
.chart-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mute); pointer-events: none; }
.legend { position: absolute; left: 10px; top: 8px; z-index: 3; font: 11px var(--mono); color: var(--mute); pointer-events: none; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.panel + .panel { margin-top: 12px; }
.panel h3 { margin: 0; padding: 11px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); }
.kv > div { padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.kv > div:nth-child(3n) { border-right: 0; }
.kv label { display: block; font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.kv b { display: block; font: 600 13px var(--mono); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; }
.wins { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.wins button { background: none; border: 0; border-right: 1px solid var(--line); padding: 9px 4px; text-align: center; }
.wins button:last-child { border-right: 0; } .wins button.on { background: var(--panel2); }
.wins small { display: block; color: var(--dim); font: 600 10px var(--mono); }
.wins b { font: 600 12.5px var(--mono); }
.flow { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.flow .r3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 6px; font: 12px var(--mono); }
.flow .r3 label { font: 600 10px var(--sans); color: var(--dim); text-transform: uppercase; }
.grade { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; font: 800 18px var(--mono); }
.g-A\+, .g-A { background: var(--upbg); color: var(--up); } .g-B { background: rgba(92, 200, 255, .12); color: #5cc8ff; } .g-C { background: var(--warnbg); color: var(--warn); } .g-D, .g-F { background: var(--downbg); color: var(--down); }
.checks { padding: 4px 0; }
.check { display: flex; gap: 10px; padding: 8px 14px; align-items: flex-start; }
.check i { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.check.critical i { background: var(--down); } .check.high i { background: #ff8a5c; } .check.medium i { background: var(--warn); } .check.ok i { background: var(--up); } .check.info i { background: var(--dim); }
.check small { display: block; color: var(--dim); }
.tagbars { padding: 10px 14px; display: grid; gap: 8px; }
.tagbars .r { display: grid; grid-template-columns: 70px 1fr 52px; gap: 8px; align-items: center; font: 12px var(--mono); }
.progress { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.addr { font: 12px var(--mono); color: var(--mute); }

/* ---------- wallet / trackers ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.stat label { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.stat b { display: block; font: 650 18px var(--mono); margin-top: 4px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.mc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.mc-cell { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.mc-cell header { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.mc-cell .c { height: 300px; position: relative; }

/* ---------- docs / account ---------- */
.doc { max-width: 980px; }
.doc h2 { font-size: 16px; margin: 28px 0 8px; }
.doc p { color: var(--mute); max-width: 760px; }
pre.code { background: #121110; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; overflow-x: auto; font: 12px/1.6 var(--mono); color: #d8d0c0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.plan h4 { margin: 0; font-size: 14px; } .plan .p { font: 700 20px var(--mono); margin: 6px 0; }
.plan ul { margin: 8px 0 0; padding-left: 16px; color: var(--mute); }
.plan.hi { border-color: var(--accent2); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50; display: grid; place-items: start center; padding-top: 10vh; }
.modal .box { width: min(640px, 94vw); background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal .box.small { width: min(420px, 94vw); padding: 18px; }
.modal input.big { width: 100%; height: 48px; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 0 16px; outline: none; font-size: 15px; }
.modal .res { max-height: 60vh; overflow-y: auto; }
.modal .res a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #211f1c; }
.modal .res a:hover, .modal .res a.on { background: var(--panel2); }
.field { display: grid; gap: 5px; margin-top: 10px; } .field label { font-size: 12px; color: var(--mute); }
.field input, .field select { height: 36px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); padding: 0 10px; outline: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .tp { grid-template-columns: minmax(0, 1fr); } .nav a { padding: 7px 8px; } }
@media (max-width: 920px) {
  .side { display: none; } .side.open { display: block; position: fixed; left: 0; top: 54px; z-index: 40; background: var(--bg); width: 240px; box-shadow: 10px 0 40px rgba(0,0,0,.5); }
  .burger { display: grid; }
  .nav { display: none; }
  .trench { grid-template-columns: 1fr; }
  .mc-grid { grid-template-columns: 1fr; }
  main { padding: 12px 12px 40px; }
  .search { max-width: none; }
  .search kbd { display: none; }
  #chart { height: 340px; }
  .foot .r { display: none; }
}
@media (max-width: 520px) { .brand span { display: none; } .top { gap: 8px; padding: 0 10px; } .thead .price { font-size: 18px; } .kv { grid-template-columns: repeat(2, 1fr); } .kv > div:nth-child(3n) { border-right: 1px solid var(--line); } .kv > div:nth-child(2n) { border-right: 0; } }

/* ---------- observatory finish (God’s Eye template) ---------- */
body::after { content: ""; position: fixed; inset: -60px; z-index: 90; pointer-events: none; opacity: .32; background: url(/eye/grain.png) 0 0/200px 200px; mix-blend-mode: soft-light; }
.brand { font: 400 22px/1 var(--serif); letter-spacing: -.01em; gap: 10px; }
.brand img { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(232, 225, 211, .1), 0 0 16px rgba(200, 178, 127, .2); transition: transform .8s cubic-bezier(.2, .7, 0, 1); }
.brand:hover img { transform: rotate(-14deg); }
.nav a { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; border-radius: 2px; }
.nav a.on { color: var(--text); background: transparent; box-shadow: inset 0 -1px 0 var(--accent); }
.btn { border-radius: 2px; font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: background-color .3s, color .3s, border-color .3s; }
.btn.primary { background: var(--text); border-color: var(--text); color: #171614; }
.btn.primary:hover { background: transparent; color: var(--text); border-color: var(--text); }
.btn.sm { font-size: 10.5px; }
.icon-btn, .search input, .seg, .card, .tbl-wrap, .panel, .chartbox, .tcol, .stat, .plan, .mc-cell, pre.code, .modal .box, .filters input, .filters select, .field input, .field select, .links a, .chip, .grade { border-radius: 2px; }
.h1 { font: 400 34px/1.05 var(--serif); font-style: italic; text-transform: uppercase; letter-spacing: -.005em; }
.thead .name { font: 400 30px/1 var(--serif); font-style: italic; }
.doc h2 { font: 400 26px/1.1 var(--serif); font-style: italic; text-transform: uppercase; margin-top: 34px; }
.side h4, .panel h3, table.t th, .kv label, .stat label, .wins small, .flow .r3 label, .tcol > header, .tabs button { font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.side h4, .panel h3 { color: var(--accent); font-size: 10.5px; font-weight: 500; }
.tabs button { font-size: 11px; font-weight: 500; }
table.t th { font-size: 10.5px; font-weight: 500; }
.tcol > header { font-size: 11px; font-weight: 500; }
.side a { border-radius: 2px; }
.side .own { border-radius: 2px; }
.stat b, .plan .p { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 28px; letter-spacing: 0; }
.foot { font: 11px var(--mono); letter-spacing: .06em; }
.foot .live i { background: var(--accent); box-shadow: 0 0 0 3px var(--accentbg); }
table.t tbody tr:hover td { background: rgba(232, 225, 211, .03); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(200, 178, 127, .28); }

/* ---------- ticker tape ---------- */
.tape { height: 32px; border-bottom: 1px solid var(--line); overflow: hidden; position: sticky; top: 54px; z-index: 25; background: rgba(23, 22, 20, .92); backdrop-filter: blur(8px); -webkit-mask: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.tape-in { display: inline-flex; align-items: center; height: 100%; white-space: nowrap; animation: tape 80s linear infinite; will-change: transform; }
.tape:hover .tape-in { animation-play-state: paused; }
@keyframes tape { to { transform: translateX(-50%); } }
.tape .ti { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; height: 100%; font-size: 12px; border-right: 1px solid rgba(232, 225, 211, .05); transition: background-color .25s; }
.tape .ti:hover { background: rgba(232, 225, 211, .04); }
.tape .ti .logo { width: 16px; height: 16px; font-size: 6px; }
.tape .ti .badge-chain .chain-dot { display: none; }
.tape .tk { font: 500 10.5px var(--mono); color: var(--dim); }
.tape .tl { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding: 0 14px 0 22px; }
.side { top: 86px; height: calc(100vh - 86px - 30px); }
.shell { min-height: calc(100vh - 86px - 30px); }

/* ---------- watchlist rail ---------- */
.rail { display: none; width: 290px; flex-shrink: 0; border-left: 1px solid var(--line); position: sticky; top: 86px; height: calc(100vh - 86px - 30px); overflow-y: auto; background: var(--bg); }
body.rail-on .rail { display: block; animation: railIn .45s cubic-bezier(.2, .7, 0, 1); }
@keyframes railIn { from { opacity: 0; transform: translateX(24px); } }
.rail header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; position: sticky; top: 0; background: var(--bg); z-index: 1; }
.rail header b { color: var(--accent); font-weight: 500; }
.rail .rr { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #211f1c; transition: background-color .25s; }
.rail .rr:hover { background: rgba(232, 225, 211, .03); }
.rail .nm { flex: 1; min-width: 0; } .rail .nm b { display: block; } .rail .nm small { color: var(--dim); font: 11px var(--mono); }
.rail .pr { text-align: right; display: grid; font-size: 12px; }
.icon-btn.sm { width: 26px; height: 26px; font-size: 11px; }
.icon-btn.on { color: var(--accent); border-color: var(--accent2); }

/* ---------- footer tickers ---------- */
.tick { display: inline-flex; gap: 16px; } .tick > span { display: inline-flex; gap: 6px; align-items: baseline; } .tick b { color: var(--mute); font-weight: 500; }

/* ---------- wide + embed layouts ---------- */
body.wide main { padding: 10px 12px 12px; }
body.embed .top, body.embed .tape, body.embed .side, body.embed .rail, body.embed .foot { display: none !important; }
body.embed .shell { min-height: 100vh; } body.embed main { padding: 0; } body.embed::after { display: none; }

/* ---------- page transitions ---------- */
::view-transition-old(root) { animation: vtOut .22s ease both; }
::view-transition-new(root) { animation: vtIn .42s cubic-bezier(.2, .7, 0, 1) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }
main > * { animation: pgIn .5s cubic-bezier(.2, .7, 0, 1) both; }
@keyframes pgIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- live number flashes ---------- */
.flash-num-up { animation: fnu 1s ease; } .flash-num-down { animation: fnd 1s ease; }
@keyframes fnu { 0% { color: var(--up); text-shadow: 0 0 14px rgba(127, 201, 154, .5); } }
@keyframes fnd { 0% { color: var(--down); text-shadow: 0 0 14px rgba(224, 122, 107, .5); } }
@media (max-width: 1280px) { body.rail-on .rail { position: fixed; right: 0; top: 86px; z-index: 45; box-shadow: -10px 0 40px rgba(0, 0, 0, .5); } }
@media (max-width: 920px) { .tick { display: none; } .side.open { top: 86px; } }
@media (prefers-reduced-motion: reduce) { .tape-in, main > * { animation: none !important; } }

/* ---------- discover extras ---------- */
.statline { display: flex; gap: 22px; } .statline span { display: grid; text-align: right; } .statline label { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); } .statline b { font: 400 22px/1.1 var(--serif); font-style: italic; }
.tablink { margin-left: auto; align-self: center; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding: 0 6px; white-space: nowrap; }
.star { background: none; border: 0; color: #4a463f; font-size: 14px; padding: 2px 4px; transition: color .2s, transform .3s cubic-bezier(.2, .7, 0, 1); }
.star:hover { color: var(--mute); } .star.on { color: var(--accent); } .star.pop { animation: pop .45s cubic-bezier(.2, .7, 0, 1); }
@keyframes pop { 40% { transform: scale(1.5) rotate(-12deg); } }
.fcount:not(:empty) { margin-left: 2px; background: var(--accent); color: #171614; border-radius: 9px; padding: 0 6px; font-size: 10px; }
.drawer-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0); transition: background-color .35s; }
.drawer-wrap.open { background: rgba(0, 0, 0, .55); }
.drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100vw); background: var(--panel); border-left: 1px solid var(--line2); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s cubic-bezier(.2, .7, 0, 1); }
.drawer-wrap.open .drawer { transform: none; }
.drawer header, .drawer footer { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer header b { font: 400 24px var(--serif); font-style: italic; text-transform: uppercase; }
.drawer footer { border-bottom: 0; border-top: 1px solid var(--line); margin-top: auto; }
.dbody { padding: 6px 16px 16px; overflow-y: auto; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.check-row { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; font-size: 13px; color: var(--mute); cursor: pointer; }
.check-row input { accent-color: var(--accent); }
.presets { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 12px; font-size: 12px; }

/* ---------- token page ---------- */
.pxbox { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.chs { display: flex; gap: 12px; } .chs span { display: grid; font-size: 12px; } .chs small { font: 500 10px var(--mono); color: var(--dim); letter-spacing: .08em; }
.acts { display: flex; gap: 6px; flex-wrap: wrap; } .btn.on { border-color: var(--accent2); color: var(--accent); }
.dd { position: relative; } .dd .menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 210px; background: var(--panel2); border: 1px solid var(--line2); padding: 6px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.dd.open .menu { display: grid; animation: ddIn .25s cubic-bezier(.2, .7, 0, 1); } @keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } }
.dd label { display: flex; align-items: center; gap: 9px; padding: 7px 8px; font-size: 12.5px; cursor: pointer; } .dd label:hover { background: rgba(232, 225, 211, .04); }
.dd label i { width: 14px; height: 2px; } .dd input { accent-color: var(--accent); }
.legend .li { margin-left: 8px; font-size: 10.5px; }
.seg.sm button { padding: 3px 8px; font-size: 11px; }
.side { font-weight: 600; font-size: 12px; } .side.buy { color: var(--up); } .side.sell { color: var(--down); }
.fbtn { background: none; border: 0; color: var(--dim); padding: 0 4px; font-size: 12px; opacity: 0; transition: opacity .2s, color .2s; }
tr:hover .fbtn, .row:hover > .fbtn { opacity: 1; } .fbtn:hover { color: var(--accent); }
.fchip { border-color: var(--accent2); color: var(--accent); } .fchip button { background: none; border: 0; color: inherit; padding: 0 0 0 4px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font: 11px var(--mono); color: var(--mute); } .live-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.hgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; } .hgrid .panel + .panel { margin-top: 0; }
.sev { font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px; border: 1px solid var(--line2); margin-right: 8px; }
.sev.critical, .sev.high { color: var(--down); border-color: rgba(224, 122, 107, .4); } .sev.medium { color: var(--warn); border-color: rgba(217, 165, 90, .4); } .sev.ok { color: var(--up); border-color: rgba(127, 201, 154, .35); }
.bar.glow i { background: linear-gradient(90deg, var(--accent2), var(--accent)); box-shadow: 0 0 12px rgba(200, 178, 127, .5); }
.info-rows { padding: 10px 14px; display: grid; gap: 7px; font-size: 12px; } .info-rows .row > .dim:first-child { width: 90px; flex-shrink: 0; } .info-rows .desc { margin-top: 4px; line-height: 1.5; }
.kv.k4 { grid-template-columns: repeat(4, 1fr); } .kv.k4 > div:nth-child(3n) { border-right: 1px solid var(--line); } .kv.k4 > div:nth-child(4n) { border-right: 0; } .kv.k4 > div { border-bottom: 0; }

/* swap panel */
.swap { overflow: hidden; } .sw-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.sw-tabs button { background: none; border: 0; padding: 12px; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); transition: color .25s, background-color .25s, box-shadow .25s; }
.sw-tabs button.on.buy { color: var(--up); background: rgba(127, 201, 154, .07); box-shadow: inset 0 -2px 0 var(--up); }
.sw-tabs button.on.sell { color: var(--down); background: rgba(224, 122, 107, .07); box-shadow: inset 0 -2px 0 var(--down); }
.sw-body { padding: 12px 14px 14px; }
.sw-in { display: flex; align-items: center; border: 1px solid var(--line2); background: var(--bg2); margin-top: 8px; transition: border-color .25s; }
.sw-in:focus-within { border-color: var(--accent2); }
.sw-in input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; padding: 0 12px; font: 500 20px var(--mono); outline: none; }
.sw-in span { padding: 0 12px; font: 500 12px var(--mono); color: var(--mute); }
.sw-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.sw-quick button { height: 30px; border: 1px solid var(--line2); background: var(--panel2); font: 500 11.5px var(--mono); color: var(--mute); transition: color .2s, border-color .2s; } .sw-quick button:hover { color: var(--text); border-color: #4a463f; }
.sw-q { margin-top: 10px; padding: 10px 12px; background: var(--bg2); border: 1px solid var(--line); font-size: 12px; min-height: 42px; }
.kvl { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; } .kvl span { color: var(--dim); } .kvl b { font: 500 12px var(--mono); }
.sw-go { width: 100%; height: 44px; margin-top: 12px; justify-content: center; font-size: 12.5px; }
.sw-go.buy { background: var(--up); border-color: var(--up); color: #10140f; } .sw-go.sell { background: var(--down); border-color: var(--down); color: #1a0f0d; }
.sw-go:hover { filter: brightness(1.08); } .sw-go:disabled { opacity: .6; cursor: wait; }
.sw-note { margin: 10px 0 0; font-size: 11px; color: var(--dim); line-height: 1.5; }
.sw-ext { padding: 16px; } .sw-ext p { margin: 6px 0 12px; font-size: 12.5px; }
.sw-pos:not(:empty) { border-top: 1px solid var(--line); }
#side2 > div:empty { display: none; } #side2 > div + div { margin-top: 12px; }

/* money flow */
.mflow { padding: 10px 14px; display: grid; gap: 8px; } .mf { display: grid; grid-template-columns: 104px 1fr 78px; gap: 8px; align-items: center; font-size: 12px; } .mf b { text-align: right; font-size: 11.5px; }
.mfb { display: grid; gap: 2px; } .mfb i { display: block; height: 4px; min-width: 1px; transition: width .6s cubic-bezier(.2, .7, 0, 1); } .mfb .b { background: var(--up); } .mfb .s { background: var(--down); }

/* first buyers */
.fb-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; } .fb-sum div { background: var(--panel); border: 1px solid var(--line); padding: 10px 12px; } .fb-sum b { display: block; font: 400 28px var(--serif); font-style: italic; } .fb-sum small { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.fb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.fb { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border: 1px solid var(--line); font: 10px var(--mono); color: var(--dim); transition: transform .3s cubic-bezier(.2, .7, 0, 1), border-color .2s; }
.fb:hover { transform: translateY(-2px); border-color: #4a463f; } .fb .avatar { width: 22px; height: 22px; }
.fb.holding { border-color: rgba(127, 201, 154, .45); } .fb.bought-more { border-color: var(--accent2); } .fb.sold-part { border-color: rgba(217, 165, 90, .45); } .fb.sold-all { opacity: .45; }
.chip.st-holding { color: var(--up); } .chip.st-bought-more { color: var(--accent); } .chip.st-sold-part { color: var(--warn); } .chip.st-sold-all { color: var(--down); }

/* modals */
.modal .box.wide { width: min(720px, 94vw); padding: 18px; }
.embed-prev { margin: 12px 0; border: 1px solid var(--line); height: 300px; } .embed-prev iframe { width: 100%; height: 100%; border: 0; }
.modal textarea { width: 100%; background: var(--bg2); border: 1px solid var(--line2); color: var(--text); font: 11.5px/1.5 var(--mono); padding: 10px; resize: none; }

/* ---------- trackers ---------- */
.iconb { background: none; border: 1px solid transparent; color: var(--dim); padding: 2px 6px; font-size: 13px; transition: color .2s, border-color .2s; } .iconb:hover { color: var(--text); border-color: var(--line2); } .iconb.on { color: var(--accent); }
.wr { height: 3px; background: #2b2925; margin-top: 4px; width: 60px; margin-left: auto; } .wr i { display: block; height: 100%; background: var(--accent); }

/* ---------- wallet ---------- */
.wgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; margin-top: 14px; } .wgrid .panel + .panel { margin-top: 0; }

/* ---------- find trades ---------- */
.ftform { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 10px; margin-top: 10px; background: var(--panel); border: 1px solid var(--line); padding: 4px 14px 14px; }
.ftform .btn { width: 100%; justify-content: center; height: 36px; }
.ftform > * { min-width: 0; }
.ftform input, .ftform select { width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 480px) { .ftform { grid-template-columns: 1fr 1fr; } }

/* ---------- supercharts ---------- */
.sc { display: flex; flex-direction: column; height: calc(100vh - 86px - 30px - 22px); }
.sc-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 4px 10px; } .sc-sym { font: 400 26px var(--serif); font-style: italic; } .sc-bar .price { font: 600 18px var(--mono); }
.sc-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 10px; }
#scChart { background: var(--panel); border: 1px solid var(--line); position: relative; min-height: 360px; }
.sc-trades { background: var(--panel); border: 1px solid var(--line); overflow-y: auto; } .sc-trades header { padding: 9px 12px; border-bottom: 1px solid var(--line); font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); position: sticky; top: 0; background: var(--panel); }
.sct { display: grid; grid-template-columns: 1fr auto 18px; gap: 8px; align-items: center; padding: 5px 12px; font-size: 12px; border-bottom: 1px solid #211f1c; animation: liIn .5s cubic-bezier(.2, .7, 0, 1); } .sct .avatar { width: 16px; height: 16px; }
.sct.buy .num { color: var(--up); } .sct.sell .num { color: var(--down); }
@keyframes liIn { from { opacity: 0; transform: translateY(-6px); background: rgba(200, 178, 127, .08); } }

/* ---------- perps ---------- */
.perps { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 10px; height: calc(100vh - 86px - 30px - 22px); }
.pl { background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.pl-h { padding: 10px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; } .pl-h input { height: 32px; border: 1px solid var(--line2); background: var(--bg2); padding: 0 10px; outline: none; }
.pl-l { overflow-y: auto; flex: 1; } .plr { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #211f1c; font-size: 12px; transition: background-color .2s; }
.plr:hover { background: rgba(232, 225, 211, .03); } .plr.on { background: var(--panel2); box-shadow: inset 2px 0 0 var(--accent); }
.pc { min-width: 0; overflow-y: auto; } .pc-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 4px 2px 12px; } .pc-sym { font: 400 28px var(--serif); font-style: italic; } .pc-h .price { font: 600 20px var(--mono); }
.pc-kv { display: flex; gap: 20px; flex-wrap: wrap; } .pc-kv span { display: grid; } .pc-kv label { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); } .pc-kv b { font: 500 13px var(--mono); }
.pc-b { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; } .pc-b .panel + .panel { margin-top: 0; }
.bk-h, .bk, .pt3 { display: grid; grid-template-columns: 1fr 1fr; padding: 3px 14px; font-size: 12px; position: relative; } .pt3 { grid-template-columns: 1fr 1fr 60px; } .bk-h { color: var(--dim); font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding-top: 8px; }
.bk i { position: absolute; right: 0; top: 1px; bottom: 1px; transition: width .4s; } .bk.ask i { background: rgba(224, 122, 107, .12); } .bk.bid i { background: rgba(127, 201, 154, .12); }
.bk.ask span:first-of-type { color: var(--down); } .bk.bid span:first-of-type { color: var(--up); } .bk span { position: relative; } .bk span:last-child, .pt3 span:nth-child(2) { text-align: right; }
.bk-sp { text-align: center; padding: 6px; font: 11px var(--mono); color: var(--mute); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 3px 0; }

/* ---------- embed ---------- */
.em { height: 100vh; display: flex; flex-direction: column; } .em-h { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 12px; flex-wrap: wrap; } .em-h .price { font: 600 15px var(--mono); }
.em-brand { display: inline-flex; align-items: center; gap: 6px; font: 400 15px var(--serif); color: var(--mute); } .em-brand img { border-radius: 50%; }
.em-b { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; } #emC { position: relative; min-height: 200px; }
.em-t { width: 170px; border-left: 1px solid var(--line); overflow-y: auto; font-size: 11.5px; } .emr { display: grid; grid-template-columns: 16px 1fr auto; gap: 6px; padding: 4px 8px; border-bottom: 1px solid #211f1c; } .emr.buy span:first-child, .emr.buy .num { color: var(--up); } .emr.sell span:first-child, .emr.sell .num { color: var(--down); }
body.embed-light { --bg: #f6f3ec; --bg2: #efebe2; --panel: #fbf9f4; --panel2: #f1ede4; --line: #e3ddd0; --line2: #d6cfbf; --text: #1d1b18; --mute: #6b6457; --dim: #958d7e; background: var(--bg); color: var(--text); }

/* ---------- responsive (new parts) ---------- */
@media (max-width: 1100px) { .perps { grid-template-columns: 1fr; height: auto; } .pl { max-height: 260px; } .sc-main { grid-template-columns: 1fr; } .sc-trades { max-height: 240px; } .sc { height: auto; } #scChart { height: 60vh; } .wgrid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .statline { display: none; } .pc-b, .fb-sum { grid-template-columns: 1fr 1fr; } .g2 { grid-template-columns: 1fr; } .acts { width: 100%; } .chs { gap: 8px; } .em-t { display: none; } .mf { grid-template-columns: 90px 1fr 70px; } }

.bk-h.t3 { grid-template-columns: 1fr 1fr 60px; } .bk-h span:nth-child(2) { text-align: right; } .pt3 span:last-child { text-align: right; }
.chartbar .seg { flex-wrap: wrap; } .sc-bar .seg { flex-wrap: wrap; }

/* limit orders */
#otype { margin-right: 8px; }
.sw-in.lim input { font-size: 16px; height: 40px; }
.lim-hint { font-size: 11.5px; margin-top: 5px; }
.lim-list { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 4px; }
.lim-row { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 4px 0; }
.share-pnl { width: calc(100% - 28px); margin: 0 14px 12px; justify-content: center; }

/* DD score */
.dd-num { font: italic 400 34px/1 var(--serif); } .dd-num small { font-size: 16px; color: var(--dim); margin-left: 2px; }
.dd-reasons { padding: 0 14px 12px; display: grid; gap: 6px; }
.ddr { display: grid; grid-template-columns: 34px 1fr; gap: 8px; font-size: 12px; align-items: baseline; }
.ddr .num { font-size: 11.5px; text-align: right; } .ddr.high .num { color: var(--down); } .ddr.medium .num { color: var(--warn); } .ddr.good .num { color: var(--up); }
.fb-sum { grid-template-columns: repeat(5, 1fr); } .fb.moved-out { opacity: .55; border-style: dashed; } .chip.st-moved-out { color: var(--dim); } @media (max-width: 720px) { .fb-sum { grid-template-columns: repeat(3, 1fr); } }
