/* The eCash Registry — shared styles. Tokens mirror the eCash Cat home page. */
:root {
  --bg: #0b0b0c;
  --ink: #f4f1ea;
  --ink-2: #c9c4b9;
  --muted: #8f8b83;
  --dim: #6b675f;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --amber: #f5a623;
  --amber-hi: #ffc35a;
  --amber-deep: #c9821a;
  --amber-soft: rgba(245,166,35,.12);
  --red: #ef6a55;
  --green: #5fd38d;
  --blue: #7fb2ff;
  --violet: #b49cff;
  --glass: linear-gradient(180deg, rgba(30,30,33,.72), rgba(16,16,18,.62));
  --ease: cubic-bezier(.22,1,.36,1);
  --r: 18px;
  /* fee split colours, used by every fee bar */
  --f-meteora: #6b675f;
  --f-creator: var(--blue);
  --f-holders: var(--amber);
  --f-burn: var(--red);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scrollbar-color: #2a2a2e var(--bg); }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif; line-height: 1.55;
  overflow-x: clip; -webkit-font-smoothing: antialiased; min-height: 100vh;
  display: flex; flex-direction: column;
}
body > main { flex: 1; }
::selection { background: var(--amber); color: #111; }
a { color: inherit; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; width: 100%; }
.mono, code { font-family: "JetBrains Mono", ui-monospace, monospace; }
code { font-size: .92em; }
.amber { color: var(--amber); }
.note { color: var(--muted); font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--green); } .down { color: var(--red); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* background: static amber glow + faint block grid (no WebGL on app pages) */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 85% -5%, rgba(245,166,35,.16), transparent 70%),
    radial-gradient(45% 40% at -5% 105%, rgba(201,130,26,.12), transparent 70%),
    var(--bg); }
.bg::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%); mask: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%); }

/* glass + cursor spotlight (same as home page) */
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 24px 48px -24px rgba(0,0,0,.7); }
.spot { position: relative; isolation: isolate; }
.spot::before, .spot::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease); }
.spot::before { padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,195,90,.9), rgba(245,166,35,.25) 35%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spot::after { z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(245,166,35,.08), transparent 45%); }
.spot.lit::before, .spot.lit::after { opacity: 1; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(11,11,12,.62);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line-2); }
.brand small { font: 600 10px "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-hi);
  border: 1px solid rgba(245,166,35,.35); background: rgba(245,166,35,.06); border-radius: 99px; padding: 2px 7px; }
.nav-links { display: flex; gap: 2px; font-size: 14px; align-items: center; }
.nav-links a { position: relative; text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 99px; transition: color .2s, background .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.04); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--amber); transform: translateX(-50%); box-shadow: 0 0 8px var(--amber); }
.hsearch { flex: 1; min-width: 0; max-width: 320px; margin-left: auto; }
.hsearch input { width: 100%; height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 13px; outline: none; transition: border-color .2s; }
.hsearch input:focus { border-color: rgba(245,166,35,.6); }
.hsearch input::placeholder { color: var(--dim); }
.hright { display: flex; align-items: center; gap: 8px; }
.wallet-wrap { position: relative; }
.wmenu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; z-index: 40; border-radius: 14px; }
.wmenu button, .wmenu a { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: 9px; text-align: left; cursor: pointer; text-decoration: none; font-size: 14px; }
.wmenu button:hover, .wmenu a:hover { background: rgba(255,255,255,.06); }
.wmenu .wdot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ink); border: 1px solid var(--line-2); background: rgba(255,255,255,.03); cursor: pointer; transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s, opacity .2s; white-space: nowrap; }
.btn:hover { border-color: rgba(245,166,35,.6); background: rgba(245,166,35,.06); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { color: #1a1206; border-color: transparent; background: linear-gradient(180deg, var(--amber-hi), var(--amber) 60%, #e89612); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 1px rgba(245,166,35,.5), 0 12px 32px -10px rgba(245,166,35,.65); }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-130%); transition: transform .8s var(--ease); }
.btn.primary:hover:not(:disabled)::after { transform: translateX(130%); }
.btn.sm { padding: 8px 14px; font-size: 13px; border-radius: 99px; }
.btn.xs { padding: 4px 10px; font-size: 12px; border-radius: 99px; font-weight: 600; }
.btn.wide { width: 100%; }
.btn.buy { color: #08140d; border-color: transparent; background: linear-gradient(180deg, #8ff0b4, var(--green)); }
.btn.sell { color: #1a0704; border-color: transparent; background: linear-gradient(180deg, #ff9b89, var(--red)); }
.btn.ghost { background: transparent; }

/* ---------- layout primitives ---------- */
main { padding-bottom: 72px; }
.page-head { padding: 48px 0 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-hi);
  border: 1px solid rgba(245,166,35,.35); background: rgba(245,166,35,.06); border-radius: 999px; padding: 6px 12px 6px 10px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(245,166,35,.7); animation: ping 2s infinite; }
.live-dot.off { background: var(--dim); animation: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(245,166,35,0); } 100% { box-shadow: 0 0 0 0 rgba(245,166,35,0); } }
h1 { font-size: clamp(36px, 5.6vw, 68px); line-height: .98; letter-spacing: -.04em; font-weight: 700; margin: 18px 0 14px;
  background: linear-gradient(180deg, #fff 30%, #bdb7ab); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 em { font-style: normal; background: linear-gradient(100deg, var(--amber-hi), var(--amber) 40%, #ffd48a 55%, var(--amber) 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s ease-in-out infinite; }
@keyframes shine { 0%,100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
h2 { font-size: 18px; letter-spacing: -.01em; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
h3 { font-size: 15px; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 58ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.card { padding: 22px; border-radius: var(--r); }
.stack { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; align-content: start; min-width: 0; }
.cols { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 18px; align-items: start; }
.cols > * { min-width: 0; }
.row2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 34px 0 14px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: 22px; }
.sec-head .toolbar { flex: 1 1 auto; justify-content: flex-end; }

/* ---------- KPI strip ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.kpi { padding: 16px 18px; border-radius: 16px; min-width: 0; }
.kpi span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi b { display: block; font-size: 22px; letter-spacing: -.02em; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.kpi small { display: block; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- controls ---------- */
.seg { display: inline-flex; padding: 3px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; color: var(--muted); padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; cursor: pointer; transition: color .2s, background .2s; }
.seg button:hover { color: var(--ink); }
.seg button.on { color: #1a1206; background: var(--amber); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { height: 36px; min-width: 0; flex: 1 1 200px; max-width: 280px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 13px; outline: none; }
.search:focus { border-color: rgba(245,166,35,.6); }

/* ---------- coin card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.cc { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 14px; padding: 16px; border-radius: 16px; text-decoration: none; transition: transform .3s var(--ease); }
.cc:hover { transform: translateY(-2px); }
.cimg { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #1a1a1d; box-shadow: 0 0 0 1px var(--line-2); display: block; }
.cimg.ph { display: grid; place-items: center; font-weight: 700; color: var(--amber); font-size: 20px; }
.cc-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.cc-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cc-sym { font: 600 12px "JetBrains Mono", monospace; color: var(--amber-hi); flex-shrink: 0; }
.cc-desc { color: var(--muted); font-size: 13px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.cc-meta b { color: var(--ink); font-weight: 600; }
.bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--amber-deep), var(--amber-hi)); box-shadow: 0 0 10px rgba(245,166,35,.6); transition: width .8s var(--ease); }
.bar.done i { background: linear-gradient(90deg, #3aa86b, var(--green)); box-shadow: 0 0 10px rgba(95,211,141,.5); }
.bar.big { height: 12px; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 8px, transparent 8px 16px); }
.bar.big i { background-image: linear-gradient(90deg, var(--amber-deep), var(--amber-hi)), repeating-linear-gradient(45deg, rgba(0,0,0,.12) 0 8px, transparent 8px 16px); background-blend-mode: multiply; }
.pill { display: inline-flex; align-items: center; gap: 5px; font: 600 11px "JetBrains Mono", monospace; letter-spacing: .04em; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); text-transform: uppercase; white-space: nowrap; }
.pill.grad { color: var(--green); border-color: rgba(95,211,141,.4); background: rgba(95,211,141,.07); }
.pill.ready { color: var(--amber-hi); border-color: rgba(245,166,35,.45); background: rgba(245,166,35,.08); }
.pill.new { color: var(--blue); border-color: rgba(127,178,255,.4); }
.pill.label { text-transform: none; letter-spacing: 0; }

/* skeletons */
.sk { position: relative; overflow: hidden; background: rgba(255,255,255,.05); border-radius: 8px; color: transparent !important; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); animation: sk 1.4s infinite; }
@keyframes sk { to { transform: translateX(100%); } }
.sk-line { height: 12px; margin-top: 8px; }
.cc.skel { pointer-events: none; }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* ---------- tables ---------- */
.tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; color: var(--muted); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl a { color: var(--ink-2); text-decoration: none; }
.tbl a:hover { color: var(--amber); }
.tbl td.buy { color: var(--green); font-weight: 600; text-transform: capitalize; }
.tbl td.sell { color: var(--red); font-weight: 600; text-transform: capitalize; }
.tbl tr.flash td { animation: flash 1.6s var(--ease); }
@keyframes flash { from { background: rgba(245,166,35,.14); } to { background: transparent; } }
.coinref { display: inline-flex; align-items: center; gap: 8px; }
.coinref img, .coinref .cimg { width: 24px; height: 24px; border-radius: 7px; font-size: 10px; }

/* key/value lists */
.kv { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 7px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }

/* ---------- fee split ---------- */
.fee-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; margin: 10px 0 14px; }
.fee-bar i { display: block; height: 100%; }
.fee-list { display: grid; gap: 9px; font-size: 14px; }
.fee-list li { display: grid; grid-template-columns: 12px minmax(0,1fr) auto; gap: 10px; align-items: start; list-style: none; }
.fee-list .sw { width: 10px; height: 10px; border-radius: 3px; margin-top: 6px; }
.fee-list b { font-variant-numeric: tabular-nums; }
.fee-list small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* ---------- forms ---------- */
.form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; align-content: start; gap: 6px; font-size: 13px; color: var(--ink-2); min-width: 0; }
.field .hint { display: flex; justify-content: space-between; gap: 8px; color: var(--dim); font-size: 12px; }
.field .hint .bad { color: var(--red); }
.input, .field input, .field textarea { width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(0,0,0,.25); outline: none; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: rgba(245,166,35,.6); box-shadow: 0 0 0 3px rgba(245,166,35,.12); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.drop { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 14px; align-items: center; padding: 12px; border-radius: 14px; border: 1px dashed var(--line-2); background: rgba(0,0,0,.2); cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: rgba(245,166,35,.6); background: rgba(245,166,35,.04); }
.drop .thumb { width: 96px; height: 96px; border-radius: 14px; background: #1a1a1d center/cover; box-shadow: 0 0 0 1px var(--line-2); display: grid; place-items: center; color: var(--dim); font-size: 28px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.affix { position: relative; }
.affix input { padding-right: 70px; }
.affix span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font: 600 12px "JetBrains Mono", monospace; pointer-events: none; }
.steps { display: grid; gap: 8px; margin-top: 16px; font-size: 14px; }
.steps div { display: flex; gap: 10px; align-items: flex-start; }
.steps div::before { content: ""; flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--line-2); }
.steps .run::before { border-color: var(--amber); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps .ok::before { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px #0b0b0c; }
.steps .err { color: var(--red); }
.steps .err::before { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 3px #0b0b0c; }
@keyframes spin { to { transform: rotate(360deg); } }
.success { margin-top: 16px; padding: 18px; border-radius: 14px; border: 1px solid rgba(95,211,141,.35); background: rgba(95,211,141,.06); }
.success b { color: var(--green); }
.checks { padding-left: 18px; display: grid; gap: 8px; color: var(--ink-2); font-size: 14px; }

/* ---------- coin page ---------- */
.coin-head { display: grid; grid-template-columns: 88px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 34px 0 20px; }
.coin-head .cimg { width: 88px; height: 88px; border-radius: 20px; }
.coin-head h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 6px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; overflow-wrap: anywhere; }
.coin-head h1 .sym { font: 600 16px "JetBrains Mono", monospace; color: var(--amber-hi); -webkit-text-fill-color: var(--amber-hi); }
.coin-sub { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; color: var(--muted); }
.coin-sub a { color: var(--ink-2); }
.coin-cta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.chart-head h2 { margin: 0; }
#chart { height: 340px; position: relative; }
#chart .chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--line); margin-bottom: 14px; }
.tabs button { border: 0; background: none; padding: 9px; border-radius: 9px; font-weight: 700; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.tabs button.on[data-side="buy"] { background: rgba(95,211,141,.14); color: var(--green); }
.tabs button.on[data-side="sell"] { background: rgba(239,106,85,.14); color: var(--red); }
.tp-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 10px 0; flex-wrap: wrap; }
.chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line-2); background: rgba(255,255,255,.02); padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--ink-2); transition: border-color .2s, color .2s, background .2s; }
.chips button:hover { border-color: rgba(245,166,35,.5); }
.chips button.on { border-color: var(--amber); color: var(--amber-hi); background: rgba(245,166,35,.08); }
.chips input { width: 64px; padding: 4px 8px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(0,0,0,.25); font-size: 12px; outline: none; text-align: center; }
.tp-amt { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(0,0,0,.28); transition: border-color .2s; }
.tp-amt:focus-within { border-color: rgba(245,166,35,.6); }
.tp-amt input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 26px; font-weight: 700; padding: 6px 0; font-variant-numeric: tabular-nums; }
.tp-amt span { font: 600 13px "JetBrains Mono", monospace; color: var(--amber-hi); }
.tp-out { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 14px; margin: 12px 0; min-height: 64px; }
.tp-out b { font-variant-numeric: tabular-nums; }
.callout { padding: 14px; border-radius: 14px; border: 1px solid rgba(245,166,35,.4); background: rgba(245,166,35,.06); font-size: 14px; margin-top: 12px; }
.callout .btn { margin-top: 10px; }
.warnline { color: var(--red); font-size: 13px; margin-top: 8px; }

/* ---------- feed ---------- */
.feed { display: grid; gap: 2px; }
.feed li { list-style: none; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.feed li:last-child { border-bottom: 0; }
.feed .ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; }
.feed .ic.r { background: rgba(245,166,35,.12); color: var(--amber); }
.feed .ic.b { background: rgba(239,106,85,.12); color: var(--red); }
.feed .t { color: var(--muted); font-size: 12px; white-space: nowrap; }
.feed .m { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 32px; align-items: start; }
.toc { position: sticky; top: 84px; display: grid; gap: 2px; font-size: 14px; }
.toc a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--amber); background: rgba(245,166,35,.05); }
.prose { font-size: 15.5px; color: var(--ink-2); }
.prose h2 { font-size: 24px; color: var(--ink); margin: 0 0 12px; scroll-margin-top: 90px; }
.prose h3 { color: var(--ink); margin: 18px 0 6px; font-size: 16px; }
.prose p + p { margin-top: 10px; }
.prose ul, .prose ol { padding-left: 20px; display: grid; gap: 6px; margin: 10px 0; }
.prose a { color: var(--amber-hi); }
.prose code { background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 6px; font-size: 13px; overflow-wrap: anywhere; }
.prose section { padding: 26px; margin-bottom: 18px; }
.prose .tbl { font-size: 13px; }
.prose .tbl td { white-space: normal; }
.prose .tbl td:first-child { white-space: nowrap; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin: 14px 0 4px; counter-reset: f; }
.flow div { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.2); font-size: 13.5px; counter-increment: f; }
.flow div::before { content: counter(f, decimal-leading-zero); display: block; font: 600 11px "JetBrains Mono", monospace; color: var(--amber); margin-bottom: 6px; }
.flow b { display: block; color: var(--ink); margin-bottom: 2px; }

/* ---------- footer (matches home page) ---------- */
footer { padding: 56px 0 64px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); background: rgba(8,8,9,.6); }
.foot { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr) minmax(0,.7fr); gap: 40px; }
.foot h4 { color: var(--ink); font-size: 14px; margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 10px; }
.foot a { color: var(--muted); text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--amber); }
.foot a[target="_blank"]::after { content: " ↗"; opacity: .5; }
.disclaimer { margin-top: 18px; max-width: 66ch; line-height: 1.6; }
.bigword { margin-top: 48px; font-size: clamp(56px, 13vw, 180px); font-weight: 700; letter-spacing: -.06em; line-height: .8; text-align: center; background: linear-gradient(180deg, rgba(245,166,35,.22), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; overflow: hidden; }

/* ---------- toasts ---------- */
#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); }
.toast { padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; background: var(--ink); color: #111; box-shadow: 0 16px 40px -10px rgba(0,0,0,.8); animation: tin .35s var(--ease); overflow-wrap: anywhere; }
.toast.err { background: #2a1210; color: #ffd2ca; border: 1px solid rgba(239,106,85,.5); }
.toast a { color: inherit; font-weight: 700; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .kpis { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .cols { grid-template-columns: minmax(0,1fr); }
  .cols > aside { order: -1; }
  .hsearch { display: none; }
}
@media (max-width: 860px) {
  .row2, .foot, .docs { grid-template-columns: minmax(0,1fr); }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .toc a { border-left: 0; border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; font-size: 13px; }
  .flow { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .coin-head { grid-template-columns: 72px minmax(0,1fr); }
  .coin-head .cimg { width: 72px; height: 72px; }
  .coin-cta { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 720px) {
  .nav-links a.hide-sm { display: none; }
  .brand .bn { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .top .wrap { gap: 8px; }
  .nav-links a { padding: 8px 9px; }
  .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .kpi b { font-size: 18px; }
  .kpis > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sec-head .toolbar { justify-content: flex-start; }
  .form { grid-template-columns: minmax(0,1fr); }
  .card { padding: 18px; }
  .prose section { padding: 18px; }
  .flow { grid-template-columns: minmax(0,1fr); }
  .drop { grid-template-columns: 72px minmax(0,1fr); }
  .drop .thumb { width: 72px; height: 72px; }
  #chart { height: 260px; }
  .lede { font-size: 16px; }
  .sec-head .toolbar { width: 100%; }
  .search { max-width: none; }
}
@media (max-width: 400px) {
  .nav-links a:not(.btn):not(.keep) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
