:root {
  --bg: #111727;
  --surface: #171d2d;
  --surface-light: #1c2335;
  --surface-raised: #232b40;
  --text: #eef2f0;
  --text-2: #9aa6b8;
  --muted: #6b7689;
  --subtle: #4a5568;
  --b-subtle: rgba(255, 255, 255, 0.06);
  --b: rgba(255, 255, 255, 0.09);
  --b-strong: rgba(255, 255, 255, 0.15);
  --o-soft: rgba(255, 255, 255, 0.035);
  --o-hover: rgba(255, 255, 255, 0.055);
  --o-strong: rgba(255, 255, 255, 0.08);
  --accent: #42da51;
  --accent-ink: #62f465;
  --on-accent: #0b1220;
  --accent-bg: rgba(66, 218, 81, 0.13);
  --green: #62f465;
  --green-bg: rgba(98, 244, 101, 0.12);
  --red: #f0645a;
  --red-bg: rgba(240, 100, 90, 0.12);
  --purple: #0c916f;
  --purple-bg: rgba(12, 145, 111, 0.16);
  --flame: #aafebd;
  --gold: #e6c36a;
  --gold-bg: rgba(230, 195, 106, 0.12);
  --teal: #0c916f;
  --mint: #aafebd;
  --shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6);
  --r-card: 22px;
  --r-pill: 999px;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(98, 244, 101, 0.25); }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--green); }
.neg { color: var(--red); }
.muted { color: var(--muted); }
.hide { display: none !important; }

/* ── banner + header ───────────────────────────────────────────────────── */
.banner {
  display: flex; align-items: center; gap: 14px;
  padding: 0 20px; height: 38px;
  border-bottom: 1px solid var(--b-subtle);
  font-size: 13px; color: var(--text-2);
}
.banner svg { flex: none; }
.banner b { color: var(--text); font-weight: 600; }
.banner .grow { flex: 1; }
.banner .pill-btn { height: 26px; padding: 0 12px; font-size: 12px; }
.banner .x { width: 22px; height: 22px; display: grid; place-items: center; color: var(--text-2); border-radius: 6px; }
.banner .x:hover { background: var(--o-hover); }

header.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px; height: 56px;
  background: rgba(17, 23, 39, 0.86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--b-subtle);
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.02em; font-size: 17px; }
.logo svg { width: 30px; height: 30px; display: block; }
.search {
  flex: 1; max-width: 438px; height: 32px;
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: var(--surface-raised); border-radius: 10px; color: var(--muted);
  position: relative;
}
.search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: var(--text); }
.search input::placeholder { color: var(--muted); }
.search-results {
  position: absolute; left: 0; right: 0; top: 38px;
  background: var(--surface); border: 1px solid var(--b); border-radius: 14px; box-shadow: var(--shadow);
  padding: 6px; display: none; max-height: 360px; overflow: auto;
}
.search-results.on { display: block; }
.search-results a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--text); }
.search-results a:hover { background: var(--o-soft); }
.top .grow { flex: 1; }
.chain-pill {
  height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 8px;
  background: var(--surface); border: 1px solid var(--b); border-radius: var(--r-pill);
  font-weight: 600; font-size: 13px;
}
.chain-pill .dot { width: 18px; height: 18px; border-radius: 6px; display: block; }
.btn-primary {
  height: 32px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: var(--on-accent); border-radius: 10px; font-weight: 700; font-size: 13px;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-ink); }
.btn-primary svg { stroke: currentColor; }
.btn-primary[disabled] { background: var(--surface-raised); color: var(--muted); cursor: not-allowed; }
.icon-btn {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--b);
}
.wallet-btn {
  height: 32px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--b); font-weight: 600; font-size: 13px;
}
.wallet-btn .av { width: 18px; height: 18px; border-radius: 50%; }
.pill-btn {
  height: 32px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--b-strong);
  font-weight: 600; font-size: 13px; white-space: nowrap;
}
.pill-btn:hover { background: var(--surface-light); }

main { max-width: 1240px; margin: 0 auto; padding: 18px 20px 40px; }

/* ── cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--b-subtle); border-radius: var(--r-card);
}
.eyebrow { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); font-weight: 500; }

/* ── home hero ─────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 14px; }
.analytics { padding: 22px 18px 18px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; min-height: 368px; }
.analytics h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.analytics .sub { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.btn-soft {
  margin-top: 18px; height: 32px; width: 100%; border-radius: 10px;
  background: var(--green-bg); color: var(--green); font-weight: 600; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.streams { margin-top: 18px; }
.stream { display: flex; justify-content: space-between; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--b-subtle); }
.stream:last-child { border-bottom: 0; }
.stream b { font-weight: 600; font-size: 13px; display: block; }
.stream span { color: var(--text-2); font-size: 12px; }
.stream .v { font-weight: 600; font-size: 13px; }
.stream .v.blue { color: var(--mint); }
.stream .v.green { color: var(--green); }
.platform { margin-top: 16px; }
.platform .l { font-size: 12px; color: var(--text-2); }
.platform .big { font-size: 20px; font-weight: 700; color: var(--green); letter-spacing: -0.02em; }
.chart-col { display: flex; flex-direction: column; min-width: 0; }
.kpis { display: flex; gap: 22px; overflow: hidden; }
.kpi .l { font-size: 12px; color: var(--text-2); border-bottom: 1px dashed var(--b-strong); padding-bottom: 2px; display: inline-block; }
.kpi .v { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; white-space: nowrap; }
.kpi .v.green { color: var(--green); }
.kpi .v.red { color: var(--red); }
.kpi .v.blue { color: var(--mint); }
.chart-box { flex: 1; min-height: 210px; position: relative; margin-top: 10px; }
.chart-box svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-2); margin-top: 6px; }
.chart-foot b { color: var(--text); font-weight: 600; letter-spacing: 0.02em; }

.side { display: flex; flex-direction: column; gap: 10px; }
.promo { padding: 14px 14px; position: relative; overflow: hidden; }
.promo h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.promo p { margin: 0; color: var(--text-2); font-size: 12.5px; line-height: 1.4; max-width: 160px; }
.promo .row { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.promo .go { height: 30px; padding: 0 12px; border-radius: 10px; background: var(--surface-raised); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.promo.launch { background: linear-gradient(135deg, var(--surface) 35%, rgba(66, 218, 81, 0.12)); }
.promo.launch .go { background: var(--accent); color: var(--on-accent); }
.promo.howto { background: linear-gradient(135deg, rgba(12, 145, 111, 0.18), var(--surface) 70%); }
.promo.howto .go { background: var(--purple-bg); color: var(--mint); }
.promo .art { position: absolute; right: -12px; top: -14px; width: 120px; opacity: 0.5; pointer-events: none; }
.earners h3 { margin: 6px 4px 6px; font-size: 14px; font-weight: 600; }
.earner { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-radius: 10px; }
.earner:hover { background: var(--o-soft); }
.earner .rk { width: 14px; color: var(--text-2); font-size: 12px; }
.earner .nm { flex: 1; font-weight: 600; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.earner .v { font-weight: 600; font-size: 12.5px; }
.empty-row { padding: 14px 4px; color: var(--muted); font-size: 12.5px; }

.pager { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 14px; margin-top: 12px; align-items: center; }
.pager .l { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.dots { display: flex; gap: 6px; margin-right: auto; }
.dots i { width: 8px; height: 6px; border-radius: 4px; background: var(--b-strong); display: block; }
.dots i.on { width: 22px; background: var(--text-2); }
.pager .wide { width: 100%; height: 34px; }

/* tabs */
.tabs { display: flex; gap: 4px; align-items: center; margin: 26px 0 14px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--b-subtle); }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 8px 9px 10px; font-weight: 600; font-size: 13px; color: var(--text-2); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); border-color: var(--text); }

/* coin grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.coin-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 14px 14px 14px; min-height: 172px;
  background: var(--surface); border: 1px solid var(--b-subtle); border-radius: var(--r-card);
  transition: box-shadow 0.2s, transform 0.2s;
}
.coin-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.coin-card .art {
  position: absolute; inset: -30%; z-index: 0; background-size: cover; background-position: center;
  filter: blur(44px) saturate(1.6); opacity: 0.18; pointer-events: none;
}
.coin-card > *:not(.art) { position: relative; z-index: 1; }
.cc-head { display: flex; align-items: flex-start; gap: 10px; }
.av { width: 34px; height: 34px; border-radius: 9px; flex: none; object-fit: cover; background: var(--surface-raised); display: block; }
.av.sm { width: 22px; height: 22px; border-radius: 6px; }
.av.xs { width: 18px; height: 18px; border-radius: 5px; }
.cc-id { flex: 1; min-width: 0; }
.cc-id .t { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.cc-id .t .badge { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-bg); }
.cc-id .n { color: var(--text-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-cap { text-align: right; }
.cc-cap .v { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.cc-cap .l { color: var(--text-2); font-size: 12px; }
.bar { height: 3px; border-radius: 2px; background: var(--o-strong); margin: 10px 0 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 2px; }
.pos-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pos-row .mk { font-weight: 600; }
.pos-row .lev { color: var(--text-2); }
.pos-row .lev.long { color: var(--green); }
.pos-row .lev.short { color: var(--red); }
.pos-row .pl { margin-left: auto; font-weight: 600; }
.pos-row .pl small { font-weight: 500; }
.pos-row .none { margin-left: auto; color: var(--muted); }
.cc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; padding-top: 14px; }
.cc-foot .l { color: var(--text-2); font-size: 12px; }
.cc-foot .v { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.cc-foot .r { text-align: right; }
.cc-foot .pair { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 12.5px; }
.mk-ico { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 8px; font-weight: 800; color: #fff; flex: none; letter-spacing: -0.02em; overflow: hidden; }
.mk-ico img { width: 100%; height: 100%; object-fit: cover; }
.more { display: flex; justify-content: center; margin-top: 18px; }

.empty-grid { grid-column: 1 / -1; padding: 46px 20px; text-align: center; color: var(--text-2); }
.empty-grid h3 { color: var(--text); margin: 0 0 6px; font-size: 16px; }

/* footer */
footer.site {
  max-width: 1240px; margin: 30px auto 0; padding: 24px 20px 40px; border-top: 1px solid var(--b-subtle);
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; color: var(--text-2); font-size: 13px;
}
footer.site .grow { flex: 1; }
footer.site a:hover { color: var(--text); }
footer.site .ca { font-family: var(--mono); font-size: 12px; }
.disclaimer { max-width: 1240px; margin: 0 auto; padding: 0 20px 40px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }

/* ── coin page ─────────────────────────────────────────────────────────── */
.coin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 14px; align-items: start; }
.coin-head { display: flex; align-items: center; gap: 22px; padding: 6px 4px 12px; flex-wrap: wrap; }
.coin-head .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.coin-head .av { width: 44px; height: 44px; border-radius: 11px; }
.coin-head .tk { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.coin-head .meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.coin-head .meta button, .coin-head .meta a { color: var(--muted); display: inline-flex; }
.coin-head .meta button:hover, .coin-head .meta a:hover { color: var(--text); }
.stat .v { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.stat .l { color: var(--text-2); font-size: 12px; }
.stat.sep { padding-left: 22px; border-left: 1px solid var(--b); }
.coin-head .grow { flex: 1; }
.chart-card { padding: 0; overflow: hidden; }
.chart-tools { display: flex; align-items: center; gap: 2px; padding: 10px 12px; border-bottom: 1px solid var(--b-subtle); font-size: 12px; }
.chart-tools button { padding: 4px 7px; border-radius: 6px; color: var(--text-2); font-weight: 500; }
.chart-tools button.on { color: var(--text); font-weight: 700; }
.chart-tools .sep { width: 1px; height: 14px; background: var(--b); margin: 0 6px; }
.chart-tools .grow { flex: 1; }
.chart-legend { position: absolute; left: 12px; top: 8px; z-index: 3; font-size: 12px; color: var(--text-2); display: flex; gap: 8px; align-items: center; pointer-events: none; }
.chart-legend b { color: var(--text); }
#pchart { height: 300px; position: relative; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; z-index: 2; }

.subtabs { display: flex; align-items: center; gap: 4px; margin: 14px 0 10px; }
.subtab { height: 32px; padding: 0 12px; border-radius: var(--r-pill); font-weight: 600; font-size: 13px; color: var(--text-2); }
.subtab.on { background: var(--surface-raised); color: var(--text); }
.subtabs .grow { flex: 1; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl-card { padding: 6px 16px 10px; overflow-x: auto; }
.tbl th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); padding: 12px 8px 10px; white-space: nowrap; }
.tbl td { padding: 11px 8px; border-top: 1px solid var(--b-subtle); white-space: nowrap; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl a.addr { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.tbl a.addr:hover { color: var(--accent); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.tag.buy, .tag.long { background: var(--green-bg); color: var(--green); }
.tag.sell, .tag.short { background: var(--red-bg); color: var(--red); }
.tag.info { background: var(--accent-bg); color: var(--accent); }
.tag.gray { background: var(--surface-raised); color: var(--text-2); }

.rcol { display: flex; flex-direction: column; gap: 10px; }
.box { padding: 16px; }
.box-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.kv { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: 13px; }
.kv .k { color: var(--text); white-space: nowrap; }
.kv .dash { flex: 1; border-bottom: 1px dotted var(--b-strong); transform: translateY(-3px); min-width: 12px; }
.kv .s { color: var(--muted); font-size: 12px; white-space: nowrap; }
.kv .v { font-weight: 700; white-space: nowrap; }
.note { color: var(--muted); font-size: 12px; margin-top: 10px; line-height: 1.45; }
.strategy-tag { height: 24px; padding: 0 9px; background: var(--accent); color: var(--on-accent); border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; display: inline-flex; align-items: center; }
.strat-line { margin: 4px 0 10px; }
.strat-text { color: var(--text-2); font-size: 13px; line-height: 1.45; }
details.adv summary { list-style: none; cursor: pointer; font-size: 11px; letter-spacing: 0.06em; color: var(--text-2); text-align: right; margin-top: 10px; }
details.adv summary::-webkit-details-marker { display: none; }
.alloc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.alloc div { background: var(--surface-light); border-radius: 10px; padding: 8px; }
.alloc .l { font-size: 10.5px; letter-spacing: 0.06em; color: var(--text-2); text-transform: uppercase; }
.alloc .v { font-weight: 700; font-size: 15px; }
.big-v { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }

/* trade box */
.trade .seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-raised); border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.trade .seg button { height: 32px; border-radius: 10px; font-weight: 600; color: var(--text-2); }
.trade .seg button.on { background: var(--surface-light); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.trade .seg button.on.buy { color: var(--green); }
.trade .seg button.on.sell { color: var(--red); }
.amt { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; border-radius: 12px; background: var(--surface-light); border: 1px solid var(--b-subtle); }
.amt:focus-within { border-color: var(--accent); background: var(--surface); }
.amt input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 20px; font-weight: 600; }
.amt .unit { font-weight: 600; color: var(--text-2); font-size: 13px; }
.chips { display: flex; gap: 6px; margin: 8px 0 10px; }
.chips button { flex: 1; height: 26px; border-radius: 8px; background: var(--surface-light); border: 1px solid var(--b-subtle); font-size: 12px; font-weight: 600; color: var(--text-2); }
.chips button:hover { background: var(--surface-raised); color: var(--text); }
.quote-l { display: flex; justify-content: space-between; color: var(--text-2); font-size: 12.5px; padding: 3px 0; }
.quote-l b { color: var(--text); font-weight: 600; }
.go-btn { margin-top: 12px; width: 100%; height: 42px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; }
.go-btn.sell { background: var(--red); color: #fff; }
.go-btn[disabled] { background: var(--surface-raised); color: var(--muted); cursor: not-allowed; }
.msg { margin-top: 8px; font-size: 12px; color: var(--text-2); min-height: 16px; word-break: break-word; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--green); }

/* ── create ────────────────────────────────────────────────────────────── */
.create { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; max-width: 1000px; margin: 30px auto 0; }
.form { padding: 18px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .row3 { display: grid; grid-template-columns: 1fr 1fr 150px; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label, .flabel { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); font-weight: 500; }
.field label i, .flabel i { color: var(--red); font-style: normal; }
.inp { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--b-subtle); background: var(--surface-light); outline: 0; }
.inp:focus { border-color: var(--accent); background: var(--surface); }
textarea.inp { height: 62px; padding: 10px 12px; resize: vertical; }
.upload { height: 110px; border-radius: 14px; background: var(--surface-light); border: 1px dashed var(--b-strong); display: grid; place-items: center; text-align: center; color: var(--text-2); font-size: 13px; cursor: pointer; overflow: hidden; position: relative; }
.upload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload:hover { background: var(--surface-raised); }
.chooser { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chooser button { height: 32px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--b); background: var(--surface); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; }
.chooser button:hover { background: var(--surface-light); }
.chooser button.on { border-color: var(--accent); background: var(--accent-bg); color: var(--green); box-shadow: inset 0 0 0 1px var(--accent); }
.chooser button[disabled] { opacity: 0.35; cursor: not-allowed; }
.kind-tabs { display: flex; gap: 14px; font-size: 13px; font-weight: 600; color: var(--muted); margin: 4px 0 8px; }
.kind-tabs button.on { color: var(--text); border-bottom: 2px solid var(--text); padding-bottom: 4px; }
.sliders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slider { background: var(--surface-light); border-radius: 12px; padding: 10px; }
.slider .top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.slider .top b { color: var(--text); font-size: 13px; letter-spacing: 0; }
.slider input { width: 100%; accent-color: var(--accent); }
.slider p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.section-h { margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid var(--b-subtle); }
.preview { padding: 0; overflow: hidden; position: sticky; top: 74px; }
.preview .p1 { padding: 16px; border-bottom: 1px solid var(--b-subtle); }
.preview .p2 { padding: 16px; }
.preview .who { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.preview .who .av { width: 46px; height: 46px; border-radius: 11px; }
.prow { display: flex; justify-content: space-between; padding: 5px 0; font-size: 12.5px; color: var(--text-2); }
.prow b { color: var(--text); font-weight: 600; }

/* ── docs ──────────────────────────────────────────────────────────────── */
.doc { max-width: 760px; margin: 30px auto 0; }
.doc .card { padding: 26px 28px; }
.doc h1 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 8px; }
.doc h2 { font-size: 17px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.doc code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-light); padding: 1px 5px; border-radius: 5px; color: var(--text); }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.flow div { background: var(--surface-light); border-radius: 14px; padding: 14px; }
.flow b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.flow span { color: var(--text-2); font-size: 12.5px; }

/* toast + modal */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 12px; font-size: 13px; transition: all 0.2s; z-index: 90; max-width: 90vw; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.modal-bg { position: fixed; inset: 0; background: rgba(5, 8, 15, 0.6); z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-bg.on { display: flex; }
.modal { width: 100%; max-width: 360px; padding: 18px; }
.modal h3 { margin: 0 0 12px; font-size: 16px; }
.wallet-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 12px; border: 1px solid var(--b-subtle); margin-bottom: 8px; font-weight: 600; }
.wallet-opt:hover { background: var(--surface-light); }
.wallet-opt img { width: 28px; height: 28px; border-radius: 7px; }
.wrong-net { background: var(--gold-bg); color: var(--gold); text-align: center; font-size: 13px; padding: 8px 16px; }
.wrong-net button { text-decoration: underline; font-weight: 600; color: inherit; }

.skel { background: linear-gradient(90deg, var(--surface-raised), var(--surface-light), var(--surface-raised)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 8px; color: transparent !important; }
@keyframes sk { to { background-position: -200% 0; } }

/* ── responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero, .pager, .coin-layout { grid-template-columns: minmax(0, 1fr); }
  .pager .wide { display: none; }
  .create { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; }
}
@media (max-width: 720px) {
  .banner { padding: 0 16px; }
  .banner .txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  header.top { padding: 10px 16px; gap: 8px; }
  .logo span { display: none; }
  .chain-pill .t { display: none; }
  .btn-primary .t { display: none; }
  main { padding: 14px 16px 30px; }
  .analytics { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .form .row2, .form .row3, .sliders, .flow { grid-template-columns: minmax(0, 1fr); }
  .coin-head { gap: 14px; }
  .stat.sep { padding-left: 0; border-left: 0; }
  footer.site, .disclaimer { padding-left: 16px; padding-right: 16px; }
  .doc .card { padding: 20px 18px; }
}
.pill-btn[disabled] { opacity: 0.55; cursor: default; }
@media (max-width: 720px) {
  .search { min-width: 0; max-width: none; }
  .chain-pill { display: none; }
  .wallet-btn { padding: 0 8px; }
  .wallet-btn span { display: none; }
  .btn-primary { padding: 0 10px; }
  .coin-head .who { width: 100%; }
}
.kind-tabs { flex-wrap: wrap; row-gap: 6px; }
.mk-ico { background: #e9edf2; }
