/* Cloudberry — dividend launchpad on Montra (Elysium) */
:root {
  --bg: #050505;
  --bg-2: #0a0b0a;
  --panel: #0e100f;
  --panel-2: #141715;
  --panel-3: #1a1e1b;
  --line: rgba(240, 236, 222, 0.08);
  --line-2: rgba(240, 236, 222, 0.15);
  --text: #f2eee3;
  --muted: #a3a69d;
  --dim: #6f746c;
  --cream: #efe6cf;
  --up: #7fd6a1;
  --down: #ff806f;
  --warn: #f0c36b;

  --stock: #8dbce6;
  --token: #ebbd72;
  --mixed: #c8a9ec;
  --burn: #ec8a6e;
  --holders: #91d6a8;

  --serif: "Instrument Serif", "Cardo", "Crimson Text", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "DejaVu Sans Mono", ui-monospace, monospace;

  --r: 10px;
  --r-lg: 16px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: rgba(239, 230, 207, 0.25); }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.mono { font-family: var(--mono); font-feature-settings: "zero"; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.up { color: var(--up); }
.down { color: var(--down); }
.serif { font-family: var(--serif); font-weight: 400; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------------------ top chrome */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; height: 56px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 25px; letter-spacing: -0.01em; }
.brand svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 7px 11px; border-radius: 8px; color: var(--muted); font-size: 13.5px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-links a.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--cream); border-radius: 0; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.chain-pill {
  display: flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 12.5px; color: var(--muted);
}
.chain-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px var(--up); }
.chain-pill.off i { background: var(--dim); box-shadow: none; }

.ticker { border-bottom: 1px solid var(--line); background: var(--bg); overflow: hidden; height: 34px; position: relative; }
.ticker-track { display: flex; gap: 30px; white-space: nowrap; height: 34px; align-items: center; animation: marquee 80s linear infinite; width: max-content; padding-left: 24px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; }
.ticker-item b { font-weight: 600; letter-spacing: 0.01em; }
.ticker-item span { color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ buttons & inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 4px; border: 1px solid transparent;
  font-weight: 500; font-size: 14px; transition: transform 0.12s var(--ease), background 0.15s, border-color 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cream); color: #0b0b0b; }
.btn-primary:hover { background: #fff8e6; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: rgba(240, 236, 222, 0.35); background: rgba(255, 255, 255, 0.03); }
.btn-link { background: none; border: 0; padding: 0 4px; color: var(--text); height: auto; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn[disabled], .btn.busy { opacity: 0.5; pointer-events: none; }
.btn.busy::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: grid; gap: 7px; }
.field > label, .label { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.input, .textarea, .select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 11px 13px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .textarea:focus, .select:focus { border-color: rgba(239, 230, 207, 0.5); box-shadow: 0 0 0 3px rgba(239, 230, 207, 0.08); }
.textarea { min-height: 84px; resize: vertical; }
.input-row { display: flex; align-items: center; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; }
.input-row:focus-within { border-color: rgba(239, 230, 207, 0.5); }
.input-row .input { border: 0; background: transparent; box-shadow: none; }
.input-row .suffix { padding: 0 12px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.hint { font-size: 12px; color: var(--dim); }
.error-text { font-size: 12px; color: var(--down); }

.seg { display: inline-flex; padding: 3px; gap: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 13px; border-radius: 6px; color: var(--muted); font-size: 13px; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--panel-3); color: var(--text); box-shadow: 0 0 0 1px var(--line-2); }

.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 99px; transition: background 0.2s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform 0.2s var(--ease), background 0.2s; }
.switch input:checked + span { background: var(--c, var(--cream)); border-color: transparent; }
.switch input:checked + span::after { transform: translateX(16px); background: #0b0b0b; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 5px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 13px;
  transition: border-color 0.15s, background 0.15s;
}
.chip:hover { border-color: rgba(240, 236, 222, 0.32); }
.chip.on { border-color: var(--c, var(--cream)); background: color-mix(in srgb, var(--c, var(--cream)) 12%, transparent); }
.chip.text { padding-left: 11px; }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11px; letter-spacing: 0.01em; background: rgba(255, 255, 255, 0.05); color: var(--muted); white-space: nowrap; }
.tag i { width: 6px; height: 6px; border-radius: 2px; background: var(--c); }

/* asset monogram */
.coin {
  --size: 22px; width: var(--size); height: var(--size); border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: calc(var(--size) * 0.36); font-weight: 700; letter-spacing: -0.02em;
  color: #0b0b0b; background: var(--c, #ddd); overflow: hidden;
}
.coin { position: relative; }
.coin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.coin.img { background: #131714; color: transparent; box-shadow: 0 0 0 1px rgba(240, 236, 222, 0.1); }
.coin-stack { display: inline-flex; align-items: center; }
.coin-stack .coin { box-shadow: 0 0 0 2px var(--bg); }
.coin-stack .coin + .coin { margin-left: -6px; }
.coin.lg { --size: 44px; }
.coin.xl { --size: 64px; font-size: 20px; }
.coin.sq { border-radius: 10px; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero .sky, .band .sky, .footer-sky .sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.sky { overflow: hidden; background: linear-gradient(180deg, #14302a, #21433a 55%, #0b1512); }
.sky canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.7s ease; }
.sky.ready canvas { opacity: 1; }
.sky .sky-clouds { left: -3%; width: 106%; animation: skydrift 90s ease-in-out infinite alternate; }
@keyframes skydrift { from { transform: translateX(-1.2%); } to { transform: translateX(1.2%); } }
@media (prefers-reduced-motion: reduce) { .sky .sky-clouds { animation: none; } }
.hero::before, .band::before, .footer-sky::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0 1px, transparent 1px 3px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 24% 58%, rgba(6, 14, 11, 0.72), transparent 72%),
    linear-gradient(to bottom, rgba(5, 5, 5, 0.25), transparent 30%, transparent 72%, rgba(5, 5, 5, 0.55));
}
.cloud { animation: drift 38s ease-in-out infinite alternate; }
.cloud.c1 { animation-duration: 46s; animation-delay: -12s; }
.cloud.c2 { animation-duration: 54s; animation-delay: -24s; }
@keyframes drift { from { transform: translateX(calc(var(--drift) * -1)); } to { transform: translateX(var(--drift)); } }
@media (prefers-reduced-motion: reduce) { .cloud, .ticker-track { animation: none; } }

.hero-inner { padding: 150px 0 56px; min-height: 700px; display: flex; flex-direction: column; justify-content: flex-end; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--cream); letter-spacing: 0.04em; margin-bottom: 22px; opacity: 0.9; }
.eyebrow i { width: 18px; height: 1px; background: var(--cream); opacity: 0.6; }
.h-display { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 7.4vw, 104px); line-height: 0.94; letter-spacing: -0.025em; margin: 0; max-width: 13ch; text-wrap: balance; }
.h-display em { font-style: italic; color: var(--cream); }
.lede { font-size: 17px; line-height: 1.55; color: rgba(242, 238, 227, 0.78); max-width: 52ch; margin: 22px 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.cta-row .btn-link { font-weight: 500; }
.cta-row .btn-link::after { content: "→"; margin-left: 6px; transition: transform 0.15s; display: inline-block; }
.cta-row .btn-link:hover::after { transform: translateX(3px); }

.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: end; }
.flow-card {
  background: rgba(8, 14, 11, 0.62); border: 1px solid rgba(239, 230, 207, 0.14); border-radius: var(--r-lg);
  backdrop-filter: blur(10px); padding: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.flow-card h4 { margin: 0 0 12px; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; margin-top: 56px; }
.stat { border-top: 1px solid rgba(239, 230, 207, 0.2); padding-top: 14px; }
.stat .k { font-size: 12.5px; color: var(--muted); }
.stat .v { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em; margin-top: 4px; }
.stat .s { font-size: 12px; color: var(--dim); }

/* ------------------------------------------------------------ sections */
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -0.02em; margin: 0; }
.h2 em { font-style: italic; color: var(--cream); }
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 56ch; }
.h3 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -0.005em; }

/* "Five ways" section: the hero's painted sky behind a terminal readout */
.sky-section { position: relative; overflow: hidden; isolation: isolate; border-bottom: 0; padding: 104px 0 112px; }
.sky-section .sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.sky-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0 1px, transparent 1px 3px);
}
.sky-section::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 55% at 18% 20%, rgba(6, 14, 11, 0.7), transparent 72%),
    linear-gradient(to bottom, #050505, rgba(5, 5, 5, 0) 18%, rgba(5, 5, 5, 0) 78%, #050505);
}
.sky-section .section-head p { color: rgba(242, 238, 227, 0.78); }
/* Terminal readout: one line per lane, each lighting its slice of the split */
.term {
  position: relative; border: 1px solid rgba(240, 236, 222, 0.16); border-radius: 8px; overflow: hidden;
  background: rgba(5, 10, 8, 0.84); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: var(--mono); font-size: 13px; font-feature-settings: "zero", "calt" 0, "liga" 0; font-variant-ligatures: none;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.term::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
}
.term-bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid rgba(240, 236, 222, 0.1); background: rgba(240, 236, 222, 0.035); font-size: 12px; color: var(--muted); }
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 9px; height: 9px; display: block; background: var(--burn, #ec8a6e); }
.term-dots i:nth-child(2) { background: var(--token, #ebbd72); }
.term-dots i:nth-child(3) { background: var(--holders, #91d6a8); }
.term-meta { margin-left: auto; color: var(--dim); }
.term-body { padding: 14px 8px 10px; }
.term-cmd { display: flex; align-items: center; gap: 8px; padding: 4px 12px 10px; color: var(--text); white-space: nowrap; }
.term-cmd .ps { color: var(--holders, #91d6a8); }
.term-cmd .typed { display: inline-block; overflow: hidden; vertical-align: bottom; }
.trow {
  display: grid; grid-template-columns: 30px 22px 160px 146px 44px 250px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 9px 12px; border-radius: 4px; transition: background 0.15s, opacity 0.2s;
}
.trow:not(.term-head):not(.term-total):hover { background: color-mix(in srgb, var(--c) 11%, transparent); }
.term-body:has(.trow[data-k]:hover) .trow[data-k]:not(:hover) { opacity: 0.5; }
.term-head { padding-block: 6px; color: var(--dim); font-size: 11px; letter-spacing: 0.04em; border-bottom: 1px dashed rgba(240, 236, 222, 0.1); border-radius: 0; margin-bottom: 4px; }
.t-idx { color: var(--dim); font-size: 12px; position: relative; }
.trow[data-k]:hover .t-idx { color: var(--c); }
.trow[data-k]:hover .t-idx::before { content: "▸"; position: absolute; left: -11px; }
.t-ico { width: 22px; height: 22px; color: var(--c); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--c) 50%, transparent)); }
.t-ico svg, .t-burn svg { display: block; width: 100%; height: 100%; }
.trow[data-k]:hover .t-ico { animation: pxbob 0.5s steps(2) infinite alternate; }
.t-name { color: var(--c); text-shadow: 0 0 10px color-mix(in srgb, var(--c) 40%, transparent); white-space: nowrap; }
.t-bar { color: rgba(240, 236, 222, 0.13); white-space: nowrap; overflow: hidden; font-size: 12px; }
.t-bar b { font-weight: 400; color: var(--c); text-shadow: 0 0 8px color-mix(in srgb, var(--c) 45%, transparent); display: inline-block; }
.t-pct { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.t-to { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); white-space: nowrap; }
.t-to > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.t-to i { font-style: normal; color: var(--c); }
.t-to .coin { --size: 18px; }
.t-to .coin-stack .coin { box-shadow: 0 0 0 2px #070c0a; }
.t-burn { width: 16px; height: 16px; color: var(--c); flex: none; }
.t-desc { color: var(--muted); font-size: 12px; line-height: 1.45; }
.term-total { margin-top: 6px; border-top: 1px dashed rgba(240, 236, 222, 0.1); border-radius: 0; padding-top: 12px; }
.term-total .t-name { color: var(--text); text-shadow: none; }
.term-total .t-to i { color: var(--muted); }
.tseg { transition: opacity 0.2s, filter 0.2s; }
.term:has(.trow[data-k]:hover) .tseg { opacity: 0.25; }
.term:has(.trow[data-k="stock"]:hover) .tseg[data-k="stock"],
.term:has(.trow[data-k="token"]:hover) .tseg[data-k="token"],
.term:has(.trow[data-k="mixed"]:hover) .tseg[data-k="mixed"],
.term:has(.trow[data-k="burn"]:hover) .tseg[data-k="burn"],
.term:has(.trow[data-k="holders"]:hover) .tseg[data-k="holders"] { opacity: 1; filter: brightness(1.2); }
.term-run { margin: 8px 0 2px; padding: 10px 12px; border-radius: 4px; color: var(--muted); transition: background 0.15s, color 0.15s; }
.term-run:hover { background: rgba(145, 214, 168, 0.08); color: var(--text); }
.term-run .cur { width: 8px; height: 15px; background: var(--holders, #91d6a8); animation: blink 1s steps(1) infinite; }
.term-run .hint { margin-left: auto; color: var(--dim); font-size: 12px; transition: color 0.15s; }
.term-run:hover .hint { color: var(--holders, #91d6a8); }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pxbob { to { transform: translateY(-3px); } }
/* typing-in, once the section scrolls into view */
.term.pre .trow:not(.term-head), .term.pre .term-run, .term.pre .term-head { opacity: 0; }
.term.pre .typed { width: 0; }
.term.run .typed { animation: type 0.9s steps(30) both; width: calc(var(--n) * 1ch); }
.term.run .term-head { animation: fade 0.2s 0.9s both; }
.term.run .trow:not(.term-head) { animation: trow 0.28s steps(3) both; animation-delay: calc(1s + var(--i) * 0.16s); }
.term.run .trow .t-bar b { animation: tfill 0.5s steps(5) both; animation-delay: calc(1.12s + var(--i) * 0.16s); }
.term.run .term-total .t-bar b { animation-delay: calc(1.95s + var(--i) * 0.02s); }
.term.run .term-run { animation: fade 0.2s 2.3s both; }
@keyframes type { from { width: 0; } }
@keyframes trow { from { opacity: 0; transform: translateX(-6px); } }
@keyframes tfill { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .term.run .typed, .term.run .trow, .term.run .trow .t-bar b, .term.run .term-run, .term.run .term-head, .term-run .cur, .trow[data-k]:hover .t-ico { animation: none; }
}
@media (max-width: 1180px) {
  .trow { grid-template-columns: 30px 22px 160px 146px 44px minmax(0, 1fr); }
  .t-desc { grid-column: 3 / -1; margin-top: -4px; }
  .term-head span:last-child { display: none; }
}
@media (max-width: 780px) {
  .term-meta { display: none; }
  .term-head { display: none; }
  .trow { grid-template-columns: 26px 20px minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 10px; }
  .t-ico { width: 20px; height: 20px; }
  .t-bar, .t-to, .t-desc { grid-column: 3 / -1; margin: 0; }
  .t-pct { grid-row: 1; grid-column: 4; }
  .term-total .t-desc { display: none; }
  .term-run .hint { display: none; }
}

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); font-size: 11px; color: var(--dim); }
.step h4 { margin: 14px 0 8px; font-size: 15px; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ------------------------------------------------------------ tables */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.search { position: relative; margin-left: auto; }
.search input { width: 240px; padding-left: 34px; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; color: var(--dim); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; min-width: 880px; }
.t th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); white-space: nowrap; }
.t td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background 0.12s; cursor: pointer; }
.t tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.t .r { text-align: right; }
.tok { display: flex; align-items: center; gap: 11px; }
.tok .n { font-weight: 600; }
.tok .s { color: var(--muted); font-size: 12px; }

.planbar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--panel-3); gap: 2px; min-width: 120px; }
.planbar i { display: block; height: 100%; background: var(--c); }
.planbar.lg { height: 14px; border-radius: 4px; gap: 3px; }

.empty {
  padding: 56px 24px; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 12px;
}
.empty .serif { font-size: 30px; color: var(--text); line-height: 1.1; }
.skeleton { background: linear-gradient(90deg, var(--panel) 0%, var(--panel-3) 50%, var(--panel) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.demo-banner { background: #2a2210; color: var(--warn); font-size: 12.5px; text-align: center; padding: 7px 12px; border-bottom: 1px solid rgba(240, 195, 107, 0.25); }

/* ------------------------------------------------------------ cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 12px; }
.card-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }

/* ------------------------------------------------------------ launch page */
.band { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.band-inner { padding: 64px 0 40px; }
.band .h-display { font-size: clamp(44px, 5.4vw, 76px); max-width: 16ch; }

.launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; padding: 36px 0 96px; }
.stepper { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.stepper a { font-size: 12.5px; color: var(--muted); padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); }
.stepper a.done { color: var(--text); border-color: var(--line-2); }
.stepper a.done::before { content: "✓ "; color: var(--up); }

.block { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); margin-bottom: 18px; }
.block-head { display: flex; align-items: baseline; gap: 14px; padding: 20px 22px 0; }
.block-head .no { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.block-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: -0.01em; }
.block-head .sub { color: var(--muted); font-size: 13px; margin-left: auto; }
.block-body { padding: 18px 22px 22px; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.drop {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 14px;
  border: 1px dashed var(--line-2); border-radius: 12px; background: var(--bg-2); cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.drop:hover, .drop.over { border-color: var(--cream); background: rgba(239, 230, 207, 0.03); }
.drop .pic { width: 96px; height: 96px; border-radius: 14px; background: var(--panel-3); display: grid; place-items: center; overflow: hidden; color: var(--dim); }
.drop .pic img { width: 100%; height: 100%; object-fit: cover; }
.drop.has { border-style: solid; border-color: rgba(239, 230, 207, 0.22); }
.drop.bad { border-color: var(--down); }
.drop.bad .hint { color: var(--down); }
.drop-txt { min-width: 0; display: grid; gap: 4px; }
.drop-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-actions { display: flex; gap: 8px; margin-top: 6px; }
.drop-actions[hidden] { display: none; }

.tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tier { position: relative; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 12px 11px; background: var(--bg-2); text-align: left; transition: border-color 0.15s, background 0.15s; }
.tier i { position: absolute; top: 9px; right: 9px; font-style: normal; font-size: 10px; letter-spacing: 0.03em; color: var(--cream); opacity: 0.75; }
.tier:hover { border-color: rgba(240, 236, 222, 0.35); }
.tier.on { border-color: var(--cream); background: rgba(239, 230, 207, 0.06); }
.tier b { font-family: var(--serif); font-weight: 400; font-size: 26px; display: block; line-height: 1; }
.tier span { font-size: 11.5px; color: var(--muted); display: block; margin-top: 6px; }

/* allocator */
.alloc { display: grid; gap: 12px; }
.alloc-bar { position: relative; height: 54px; display: flex; border-radius: 10px; overflow: visible; user-select: none; touch-action: none; }
.alloc-seg { position: relative; height: 100%; background: var(--c); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: flex-basis 0.12s; color: #0b0b0b; font-weight: 600; font-size: 13px; min-width: 0; }
.alloc-seg:first-child { border-radius: 10px 0 0 10px; }
.alloc-seg:last-child { border-radius: 0 10px 10px 0; }
.alloc-seg:only-child { border-radius: 10px; }
.alloc-seg > span { white-space: nowrap; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; }
.alloc-seg small { font-weight: 500; opacity: 0.7; margin-left: 5px; }
.alloc-bar.dragging .alloc-seg { transition: none; }
.handle { position: absolute; top: -6px; bottom: -6px; width: 18px; margin-left: -9px; cursor: ew-resize; z-index: 2; display: grid; place-items: center; }
.handle::before { content: ""; width: 4px; height: 100%; background: var(--bg); border-radius: 2px; }
.handle::after { content: ""; position: absolute; width: 14px; height: 22px; border-radius: 4px; background: var(--cream); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.handle:hover::after, .handle.active::after { background: #fff; transform: scale(1.08); }
.alloc-empty { height: 54px; border-radius: 10px; border: 1px dashed var(--line-2); display: grid; place-items: center; color: var(--dim); font-size: 13px; }
.alloc-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.alloc-legend b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.preset {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg); text-align: left; color: var(--text); transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.preset:hover { border-color: color-mix(in srgb, var(--pc) 55%, transparent); background: var(--panel); }
.preset.on { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 9%, var(--bg)); box-shadow: inset 0 0 0 1px var(--pc); }
.preset-ico {
  width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center;
  color: var(--pc); background: color-mix(in srgb, var(--pc) 15%, transparent); transition: transform 0.2s var(--ease);
}
.preset-ico svg { width: 20px; height: 20px; }
.preset:hover .preset-ico { transform: scale(1.08) rotate(-4deg); }
.preset.on .preset-ico { background: var(--pc); color: #0b0b0b; }
.preset-txt { display: grid; min-width: 0; line-height: 1.3; }
.preset-txt b { font-weight: 600; font-size: 13.5px; }
.preset-txt small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* coin sizes used by pickers */
.coin.xs { --size: 16px; }
.coin.sm { --size: 26px; }
.coin.md { --size: 34px; }
.coin-stack .coin.xs + .coin.xs { margin-left: -4px; }

/* plan lanes */
.lanes { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.lane {
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.lane:not(.on) .lane-top { cursor: pointer; }
.lane:not(.on):hover { border-color: var(--line-2); background: var(--panel); }
.lane:not(.on) .glyph { opacity: 0.65; }
.lane.on {
  border-color: color-mix(in srgb, var(--c) 50%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, var(--bg-2)), var(--bg-2) 140px);
  box-shadow: 0 14px 34px -22px color-mix(in srgb, var(--c) 70%, transparent);
}
.lane-top { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; }
.lane-top:focus-visible { outline: 2px solid var(--c); outline-offset: -2px; }
.lane-check {
  width: 24px; height: 24px; padding: 0; border-radius: 7px; border: 1.5px solid rgba(240, 236, 222, 0.28); background: transparent;
  display: grid; place-items: center; color: transparent; flex: none; transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.lane-check svg { width: 14px; height: 14px; }
.lane-check:hover { border-color: var(--c); }
.lane-check:active { transform: scale(0.9); }
.lane.on .lane-check { background: var(--c); border-color: var(--c); color: #0b0b0b; }
.lane-top .glyph { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); flex: none; }
.lane-top .glyph svg { width: 19px; height: 19px; }
.lane-top .ttl { flex: 1; min-width: 0; }
.lane-top .ttl b { font-weight: 600; font-size: 14.5px; }
.lane-top .sum { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; margin-top: 2px; min-width: 0; }
.lane-top .sum > span:not(.coin):not(.coin-stack) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lane-top .sum b { color: var(--text); font-weight: 500; }
.lane-add { font-size: 12.5px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 99px; padding: 5px 14px; transition: 0.15s; }
.lane:not(.on):hover .lane-add { color: #0b0b0b; background: var(--c); border: 1px solid var(--c); }

.pct { display: flex; align-items: center; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); overflow: hidden; flex: none; }
.pct button { width: 32px; height: 100%; border: 0; background: none; color: var(--muted); font-size: 17px; }
.pct button:hover:not(:disabled) { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.pct button:disabled { opacity: 0.3; }
.pct label { display: flex; align-items: baseline; }
.pct input { width: 42px; text-align: right; border: 0; background: none; outline: none; font-family: var(--serif); font-size: 24px; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; padding: 0; }
.pct input:disabled { opacity: 0.8; }
.pct label span { color: var(--muted); font-size: 13px; margin-left: 2px; }

.lane-body { padding: 0 16px 16px; display: grid; gap: 12px; }
.lane-range { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.lane-range .range { flex: 1; }
.lane-range span { font-size: 12px; color: var(--muted); white-space: nowrap; }

.range {
  -webkit-appearance: none; appearance: none; height: 6px; border-radius: 99px; margin: 0; outline: none; cursor: pointer; min-width: 0;
  background: linear-gradient(90deg, var(--c) var(--p, 50%), var(--panel-3) var(--p, 50%));
}
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--text); border: 4px solid var(--c); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); transition: transform 0.12s; }
.range::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--text); border: 4px solid var(--c); }
.range:hover::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 35%, transparent); }
.range:disabled { opacity: 0.45; cursor: default; }

/* selectable asset cards */
.atiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 8px; }
.atiles.compact { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); }
.atiles-label { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin: 2px 0 -4px; }
#quote { --c: var(--cream); display: grid; gap: 10px; }
.atile {
  position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 36px 9px 9px;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.12s, box-shadow 0.15s;
}
.atile:hover:not(:disabled) { border-color: rgba(240, 236, 222, 0.3); background: var(--panel); }
.atile:active:not(:disabled) { transform: scale(0.98); }
.atile:disabled { opacity: 0.38; cursor: not-allowed; }
.atile:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.atile-txt { display: grid; min-width: 0; line-height: 1.3; }
.atile-txt b { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atile-txt small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.atile .lev { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: rgba(240, 195, 107, 0.16); color: var(--warn); }
.atile-check {
  position: absolute; top: 50%; right: 10px; transform: translateY(-50%); width: 19px; height: 19px; border-radius: 50%;
  border: 1.5px solid rgba(240, 236, 222, 0.25); display: grid; place-items: center; color: transparent; transition: 0.15s;
}
.atile.multi .atile-check { border-radius: 6px; }
.atile-check svg { width: 11px; height: 11px; }
.atile.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 9%, var(--bg)); box-shadow: inset 0 0 0 1px var(--c); }
.atile.on .atile-check { background: var(--c); border-color: var(--c); color: #0b0b0b; }

.paste { position: relative; }
.paste-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: grid; color: var(--dim); pointer-events: none; }
.paste-ico svg { width: 15px; height: 15px; }
.paste .input { padding-left: 36px; font-family: var(--mono); font-size: 12.5px; }
.input.bad { border-color: var(--down); }

/* mixed basket weights */
.weights { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.025); }
.weights-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--c); font-size: 12.5px; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.wbar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; gap: 2px; }
.wbar i { transition: flex 0.15s; }
.wrow { display: grid; grid-template-columns: auto minmax(80px, 150px) minmax(0, 1fr) 42px 28px; gap: 10px; align-items: center; font-size: 13px; }
.wrow > b:not(.num) { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wrow b.num { text-align: right; }

.lane-note { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.lane-note b { color: var(--text); font-weight: 600; }
.lane-note-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.lane-note-ico svg { width: 17px; height: 17px; }

.alloc-seg > span { display: inline-flex; align-items: center; gap: 6px; }
.alloc-seg em { font-style: normal; }
.alloc-seg .coin { box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.3); }
.seg-ico { width: 16px; height: 16px; display: grid; flex: none; }
.seg-ico svg { width: 16px; height: 16px; }
.seg-ico.burn { color: var(--burn); }
.alloc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.alloc-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.coin-count { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.coin-count[hidden] { display: none; }
.coin-count b { color: var(--text); font-weight: 600; }
.coin-count.warn { color: var(--warn); border-color: rgba(240, 195, 107, 0.35); background: rgba(240, 195, 107, 0.06); }
.coin-count.warn b { color: var(--warn); }
.atile.taken { opacity: 0.45; }
.atile.taken small { font-style: italic; color: var(--dim); }

.icon-btn { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: none; color: var(--muted); display: grid; place-items: center; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }

/* preview column */
.side { position: sticky; top: 76px; display: grid; gap: 14px; }
.preview-token { display: flex; gap: 14px; align-items: center; padding: 18px 18px 14px; }
.preview-token .n { font-family: var(--serif); font-size: 26px; line-height: 1.05; }
.donut-wrap { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; padding: 6px 18px 18px; }
.donut { width: 132px; height: 132px; }
.legend-list { display: grid; gap: 7px; font-size: 12.5px; }
.legend-list div { display: flex; align-items: center; gap: 8px; }
.legend-list i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: none; }
.legend-list .coin, .legend-list .seg-ico { flex: none !important; }
.legend-list > div > span:not(.coin):not(.seg-ico) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-list span { flex: 1; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend-list b { font-variant-numeric: tabular-nums; font-weight: 600; }
.sim { padding: 16px 18px 18px; display: grid; gap: 12px; }
.sim input[type="range"] { width: 100%; accent-color: var(--cream); }
.sim-row { display: flex; justify-content: space-between; font-size: 13px; }
.sim-big { font-family: var(--serif); font-size: 34px; line-height: 1; letter-spacing: -0.01em; }
.feeline { display: flex; height: 6px; border-radius: 99px; overflow: hidden; margin: 6px 0 2px; gap: 2px; }
.feeline i { display: block; height: 100%; }
.notice { font-size: 12px; color: var(--muted); padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); line-height: 1.5; }
.notice.warn { color: var(--warn); border-color: rgba(240, 195, 107, 0.25); background: rgba(240, 195, 107, 0.05); }

/* ------------------------------------------------------------ token page */
.token-head { display: flex; gap: 18px; align-items: center; padding: 34px 0 26px; flex-wrap: wrap; }
.token-head h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; letter-spacing: -0.02em; }
.token-head .meta { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.copy { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; background: none; }
.copy:hover { color: var(--text); }
.token-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; padding-bottom: 80px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; gap: 1px; background: var(--line); margin-bottom: 20px; }
.kpi { background: var(--bg); padding: 14px 16px; }
.kpi .k { font-size: 12px; color: var(--muted); }
.kpi .v { font-size: 20px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.chart { height: 320px; position: relative; }
.chart canvas { width: 100%; height: 100%; display: block; }
.chart .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 13px; }
.trade-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; margin: 14px 14px 0; background: var(--bg-2); border-radius: 10px; border: 1px solid var(--line); }
.trade-tabs button { border: 0; background: none; padding: 9px; border-radius: 7px; color: var(--muted); font-weight: 500; }
.trade-tabs button.on.buy { background: rgba(127, 214, 161, 0.14); color: var(--up); }
.trade-tabs button.on.sell { background: rgba(255, 128, 111, 0.14); color: var(--down); }
.quick { display: flex; gap: 6px; }
.quick button { flex: 1; border: 1px solid var(--line); background: none; border-radius: 6px; padding: 5px 0; font-size: 12px; color: var(--muted); }
.quick button:hover { color: var(--text); border-color: var(--line-2); }

.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }

.claim-box { padding: 18px 20px; display: grid; gap: 12px; }
.coin-suffix { display: inline-flex; align-items: center; gap: 7px; color: var(--text) !important; font-weight: 500; }
.token-head .meta .tag .coin { margin-left: -2px; }
.pays-in { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--muted); }
.pays-in b { color: var(--text); font-weight: 500; }
.prows { display: grid; }
.prow { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prow:last-child { border-bottom: 0; padding-bottom: 0; }
.prow-ico { position: relative; flex: none; width: 34px; height: 34px; }
.prow-glyph { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.prow-glyph svg { width: 19px; height: 19px; }
.prow-lane { position: absolute; right: -5px; bottom: -4px; width: 17px; height: 17px; border-radius: 6px; display: grid; place-items: center; background: var(--c); color: #0b0b0b; box-shadow: 0 0 0 2px var(--panel); }
.prow-lane svg { width: 11px; height: 11px; }
.prow-glyph + .prow-lane { display: none; }
.prow .grow { flex: 1; min-width: 0; }
.prow-name { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.prow-sub { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.prow-kind { color: var(--c); }
.prow-pct { width: 92px; flex: none; text-align: right; }
.prow-pct b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1; }
.prow-bar { height: 4px; border-radius: 99px; background: var(--panel-3); margin-top: 6px; overflow: hidden; }
.prow-bar i { display: block; height: 100%; background: var(--c); border-radius: 99px; }
.claim-total { font-family: var(--serif); font-size: 38px; line-height: 1; }

/* ------------------------------------------------------------ docs */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 48px 0 100px; }
.docs nav { position: sticky; top: 80px; align-self: start; display: grid; gap: 2px; }
.docs nav a { padding: 7px 10px; border-radius: 7px; color: var(--muted); font-size: 13.5px; }
.docs nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.prose { max-width: 72ch; font-size: 15px; line-height: 1.7; color: rgba(242, 238, 227, 0.86); }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.1; color: var(--text); margin: 56px 0 14px; letter-spacing: -0.01em; scroll-margin-top: 80px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16px; color: var(--text); margin: 28px 0 8px; }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--panel-2); padding: 2px 6px; border-radius: 5px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 14px 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; }
.prose th { color: var(--muted); font-weight: 500; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* ------------------------------------------------------------ footer */
.footer-sky { position: relative; overflow: hidden; isolation: isolate; height: 300px; }
.footer-sky .wrap { position: relative; padding-top: 70px; }
footer.foot { background: var(--bg); border-top: 1px solid var(--line); padding: 44px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h5 { margin: 0 0 12px; font-size: 12px; font-weight: 500; color: var(--muted); }
.foot-grid a { display: block; color: var(--muted); font-size: 13.5px; padding: 3px 0; }
.foot-grid a:hover { color: var(--text); }
.foot-grid a.brand { display: flex; font-size: 25px; color: var(--text); padding: 0; }
.footer-sky::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 70% at 22% 40%, rgba(6, 14, 11, 0.7), transparent 75%); }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 25% 55%, rgba(6, 14, 11, 0.72), transparent 75%); }
.foot-bottom { display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------ toasts & modal */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 8px; width: min(380px, calc(100% - 36px)); }
.toast { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font-size: 13px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); animation: rise 0.25s var(--ease); display: flex; gap: 10px; align-items: start; }
.toast.ok { border-color: rgba(127, 214, 161, 0.4); }
.toast.err { border-color: rgba(255, 128, 111, 0.45); }
.toast a { text-decoration: underline; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); z-index: 90; display: grid; place-items: center; padding: 20px; animation: fade 0.2s; }
.modal { width: min(460px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); }
@keyframes fade { from { opacity: 0; } }
.txsteps { display: grid; gap: 2px; padding: 8px 20px 20px; }
.txstep { display: flex; gap: 12px; align-items: center; padding: 10px 0; font-size: 13.5px; color: var(--muted); }
.txstep i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-style: normal; font-size: 11px; flex: none; }
.txstep.now { color: var(--text); }
.txstep.now i { border-color: var(--cream); }
.txstep.now i::after { content: ""; width: 10px; height: 10px; border: 2px solid var(--cream); border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
.txstep.done { color: var(--text); }
.txstep.done i { background: var(--up); border-color: var(--up); color: #0b0b0b; }
.txstep.done i::before { content: "✓"; }
.txstep.fail i { background: var(--down); border-color: var(--down); color: #0b0b0b; }
.txstep.fail i::before { content: "!"; }

/* dividend markets: poster token cards (picture fills the card, data on a dark fade) */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.mgrid .empty { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--r-lg); }
.mcard {
  position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: 4 / 5; border-radius: 16px;
  border: 1px solid rgba(239, 230, 207, 0.12); background: var(--panel); color: var(--text);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.8); transition: transform 0.2s var(--ease), border-color 0.2s;
}
.mcard:hover { transform: translateY(-4px); border-color: rgba(239, 230, 207, 0.28); }
.mcard-art { position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 20%, var(--glow), color-mix(in srgb, var(--glow) 45%, #0b0b0b)); }
.mcard-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.mcard:hover .mcard-art img { transform: scale(1.05); }
.mcard-art::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0 1px, transparent 1px 3px); }
.mcard-art .sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.mcard-art[data-paint]::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--glow); mix-blend-mode: color; opacity: 0.32; }
.mcard-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(5, 8, 7, 0.96) 0%, rgba(5, 8, 7, 0.75) 32%, transparent 62%), linear-gradient(to bottom, rgba(5, 8, 7, 0.5), transparent 22%);
}
.mcard-top { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2; display: flex; justify-content: space-between; gap: 8px; }
.pchip {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text);
  background: rgba(6, 10, 8, 0.62); border: 1px solid rgba(239, 230, 207, 0.16); backdrop-filter: blur(8px);
}
.pchip.up { color: var(--up); }
.pchip.down { color: var(--down); }
.pchip svg { width: 11px; height: 11px; }
.mcard-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px 13px 13px; display: grid; gap: 7px; }
.mcard-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; }
.mcard-sym { font-family: var(--serif); font-size: 28px; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mcard-cap b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mcard-cap span { font-size: 11px; color: var(--dim); margin-left: 4px; }
.mcard-divs { display: flex; flex-wrap: wrap; gap: 4px; }
.dbadge {
  display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px 0 2px; border-radius: 99px; font-size: 10.5px;
  background: rgba(6, 10, 8, 0.6); border: 1px solid rgba(239, 230, 207, 0.14); backdrop-filter: blur(6px);
}
.dbadge b { font-weight: 600; font-variant-numeric: tabular-nums; }
.dbadge.burn { color: var(--burn); padding-left: 5px; background: rgba(40, 18, 12, 0.6); border-color: rgba(236, 138, 110, 0.3); }
.dbadge.burn svg { width: 12px; height: 12px; }
@media (max-width: 600px) { .mgrid { grid-template-columns: 1fr 1fr; gap: 10px; } .mcard-sym { font-size: 22px; } .mcard-bottom { padding: 10px; } .mcard-top { top: 8px; left: 8px; right: 8px; } }

/* trending token previews */
.previews { padding: 64px 0 72px; }
.mcard-ex { justify-self: start; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn); background: rgba(6, 10, 8, 0.7); border: 1px solid rgba(240, 195, 107, 0.35); border-radius: 99px; padding: 2px 8px; }

/* themed dropdowns (see enhanceSelects in ui.js) */
.dd { position: relative; display: inline-block; }
.dd > select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dd-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 14px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.dd-btn:hover { border-color: rgba(240, 236, 222, 0.32); background: var(--panel); }
.dd-btn:focus-visible, .dd.open .dd-btn { outline: none; border-color: rgba(239, 230, 207, 0.5); box-shadow: 0 0 0 3px rgba(239, 230, 207, 0.08); }
.dd-label { color: var(--muted); font-weight: 400; }
.dd-label::after { content: ""; display: inline-block; width: 1px; height: 14px; margin-left: 8px; vertical-align: -2px; background: var(--line-2); }
.dd-value { display: inline-flex; align-items: center; gap: 7px; }
.dd i { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--cream); opacity: 0.8; flex: none; }
.dd i svg { width: 16px; height: 16px; }
.dd-chev { display: grid; width: 16px; height: 16px; color: var(--muted); transition: transform 0.2s var(--ease); }
.dd-chev svg { width: 16px; height: 16px; }
.dd.open .dd-chev { transform: rotate(180deg); color: var(--text); }
.dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 100%; padding: 6px; border-radius: 12px; outline: none;
  background: rgba(10, 16, 13, 0.97); border: 1px solid rgba(239, 230, 207, 0.14);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.4); backdrop-filter: blur(12px);
  transform-origin: top left; animation: ddin 0.14s var(--ease);
}
.dd-menu::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px);
}
@keyframes ddin { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.dd-opt { position: relative; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; color: var(--muted); white-space: nowrap; cursor: pointer; }
.dd-opt span { flex: 1; }
.dd-opt b { display: grid; place-items: center; width: 16px; height: 16px; color: transparent; }
.dd-opt b svg { width: 14px; height: 14px; }
.dd-opt.act { background: rgba(239, 230, 207, 0.07); color: var(--text); }
.dd-opt.on { color: var(--text); }
.dd-opt.on b { color: var(--cream); }
.dd-opt.on i, .dd-opt.act i { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .dd-menu { animation: none; } }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .launch-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; }
  .token-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .hero-grid { grid-template-columns: 1fr; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .legend-list { width: 100%; }
  .tier i { position: static; display: block; margin-bottom: 4px; }
}
@media (max-width: 900px) {
  .launch-grid, .token-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .donut-wrap { grid-template-columns: 132px 1fr; justify-items: stretch; }
}
@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-links.open { display: grid; position: absolute; top: 56px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .menu-btn { display: grid !important; }
  .stats, .kpis { grid-template-columns: 1fr 1fr; gap: 18px 18px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .lane-body { padding-left: 16px; }
  .docs { grid-template-columns: 1fr; }
  .docs nav { position: static; display: flex; flex-wrap: wrap; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { min-height: 620px; padding-top: 110px; }
  .search { margin-left: 0; width: 100%; }
  .search input { width: 100%; }
  .chain-pill { display: none; }
  .block-head { flex-wrap: wrap; padding: 18px 16px 0; }
  .block-head .sub { margin-left: 0; flex-basis: 100%; }
  .block-body { padding: 16px; }
  .lane-top { padding: 12px; gap: 10px; }
  .lane-top .glyph { display: none; }
  .lane-body { padding: 0 12px 14px; }
  .atiles, .atiles.compact { grid-template-columns: 1fr 1fr; }
  .presets { grid-template-columns: 1fr 1fr; }
  .atile { padding-right: 30px; }
  .atile .coin.md { --size: 28px; }
  .wrow { grid-template-columns: auto minmax(0, 1fr) 42px 28px; }
  .wrow .range { grid-column: 1 / -1; grid-row: 2; }
  .tier i { position: static; display: block; margin-bottom: 4px; }
  .token-head h1 { font-size: 36px; }
  .launch-grid { padding-top: 24px; }
  .alloc-seg span { font-size: 11px; }
}
.menu-btn { display: none; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: none; }

/* ------------------------------------------------------------ token page */
.tk-hero { position: relative; isolation: isolate; overflow: hidden; }
.tk-hero > .sky {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 34%, transparent 96%); mask-image: linear-gradient(to bottom, #000 0%, #000 34%, transparent 96%);
}
.tk-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0 1px, transparent 1px 3px);
  -webkit-mask-image: linear-gradient(to bottom, #000 34%, transparent 96%); mask-image: linear-gradient(to bottom, #000 34%, transparent 96%);
}
.tk-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 70% at 22% 64%, rgba(5, 5, 5, 0.55), transparent 75%), linear-gradient(to bottom, rgba(5, 5, 5, 0.1), transparent 30%, var(--bg) 100%);
}
.tk-top { padding: 104px 0 30px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.5); }
.tk-id { display: flex; align-items: center; gap: 18px; }
.tk-id > .coin { --size: 76px; border-radius: 6px; font-size: 24px; box-shadow: 0 0 0 1px rgba(240, 236, 222, 0.14); }
.tk-names { min-width: 0; }
.tk-sym { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.2vw, 64px); line-height: 0.95; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.tk-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; font-size: 14px; }
.tk-pair { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.tk-earn { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.tk-earn b { color: var(--text); font-weight: 500; }
.tk-ex { font-size: 11px; color: var(--warn); padding: 1px 7px; border-radius: 4px; background: rgba(240, 195, 107, 0.12); }
.tk-burn { font-size: 11px; color: var(--burn); padding: 1px 7px; border-radius: 4px; background: color-mix(in srgb, var(--burn) 14%, transparent); }
.tk-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.tk-ca { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; }
.tk-ca .mono { font-size: 12px; }
.tk-ca:hover { color: var(--text); }
.tk-by { display: inline-flex; align-items: center; gap: 6px; }
.tk-social { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.tk-social svg { color: var(--muted); flex: none; }
.tk-social:hover .dim { color: var(--muted); }
.tk-links { display: inline-flex; gap: 16px; margin-left: auto; }
.tk-links a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.tk-links a:hover { color: var(--text); }
.tk-desc { margin: 18px 0 0; max-width: 74ch; font-size: 14.5px; line-height: 1.55; color: rgba(242, 238, 227, 0.88); white-space: pre-line; }

.tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding: 8px 0 64px; align-items: start; }
.tk-main { min-width: 0; }
.tk-side { position: sticky; top: 76px; }
.tk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 22px; }
.tk-stat { border-top: 1px solid var(--line-2); padding: 14px 0 16px; min-width: 0; }
.tk-stat .k { font-size: 12.5px; color: var(--muted); }
.tk-stat .v { font-size: 19px; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-stat .s { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tk-chart { margin-top: 18px; }
.tk-chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.tk-chart-v { display: flex; align-items: baseline; gap: 12px; }
.tk-chart-v span { font-size: 14px; font-weight: 600; }
.tk-chart-v b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; }
.tk-chart .chart { height: 360px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }

.tk-tabs { display: flex; gap: 26px; margin-top: 34px; border-bottom: 1px solid var(--line); }
.tk-tabs button { border: 0; background: none; padding: 10px 0 12px; color: var(--muted); font-size: 14.5px; position: relative; }
.tk-tabs button:hover { color: var(--text); }
.tk-tabs button.on { color: var(--text); font-weight: 500; }
.tk-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cream); }
.tk-tab { min-height: 220px; }
.tk-empty { padding: 36px 0; color: var(--muted); font-size: 13.5px; }
.tk-table { overflow-x: auto; }
.tk-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tk-table th { text-align: left; font-weight: 400; color: var(--muted); font-size: 12px; padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tk-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tk-table tbody tr:hover td { background: rgba(240, 236, 222, 0.025); }
.tk-table th:first-child, .tk-table td:first-child { padding-left: 0; }
.tk-table th:last-child, .tk-table td:last-child { padding-right: 0; }
.tk-table .r { text-align: right; }
.tk-table .mono { font-size: 12px; }
.tk-table a { color: var(--muted); }
.tk-table a:hover { color: var(--text); }
.tk-table .tag { margin-left: 4px; }
.tk-share { display: inline-block; vertical-align: middle; width: 64px; height: 4px; border-radius: 2px; background: rgba(240, 236, 222, 0.08); margin-right: 10px; overflow: hidden; }
.tk-share i { display: block; height: 100%; background: var(--holders); }
.tk-sum { display: flex; gap: 8px 22px; flex-wrap: wrap; padding: 14px 0 4px; font-size: 12.5px; color: var(--muted); }
.tk-ev { display: inline-flex; align-items: center; gap: 8px; }
.tk-ev i { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.tk-feeboxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 0 6px; }
.tk-feebox { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--bg-2); min-width: 0; }
.tk-feebox .k { font-size: 12px; color: var(--muted); }
.tk-feebox .v { font-size: 16px; font-weight: 600; margin-top: 4px; }
.tk-feebox .s { font-size: 12px; color: var(--muted); }

.tk-more { display: block; width: 100%; margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: none; color: var(--muted); font-size: 13px; }
.tk-more:hover { color: var(--text); border-color: var(--line-2); }
.tk-swap { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tk-swap-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.tk-swap-tabs button { border: 0; background: none; padding: 4px 0 12px; font-size: 15px; color: var(--muted); position: relative; }
.tk-swap-tabs button:hover { color: var(--text); }
.tk-swap-tabs button.on { color: var(--text); font-weight: 600; }
.tk-swap-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--up); }
.tk-swap[data-side="sell"] .tk-swap-tabs button.on::after { background: var(--down); }
.tk-pay { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 14px; transition: border-color 0.15s; }
.tk-pay:focus-within { border-color: rgba(239, 230, 207, 0.4); }
.tk-pay-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.tk-pay-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.tk-amt { flex: 1; min-width: 0; width: 100%; border: 0; background: none; outline: none; color: var(--text); font-family: var(--serif); font-size: 40px; line-height: 1.15; padding: 0; }
.tk-amt::placeholder { color: var(--dim); }
.tk-pay-sym { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.tk-quick button { padding: 8px 0; font-size: 12.5px; background: var(--panel-2); }
.tk-swap-kv .kv { font-size: 13px; }
.tk-go { width: 100%; padding-block: 13px; }

.tk-divs { border-top: 1px solid var(--line); padding: 56px 0 80px; }
.tk-divs-head { margin-bottom: 24px; }
.tk-divs-head .h2 { font-size: clamp(30px, 3.4vw, 42px); }
.tk-divs-head p { color: var(--muted); margin: 10px 0 0; max-width: 62ch; }
.tk-div-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.tk-col { display: grid; gap: 20px; align-content: start; min-width: 0; }

@media (max-width: 1100px) {
  .tk-grid, .tk-div-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .tk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tk-grid, .tk-div-grid { grid-template-columns: minmax(0, 1fr); }
  .tk-side { position: static; order: -1; }
  .tk-links { margin-left: 0; }
  .tk-top { padding-top: 72px; }
}
@media (max-width: 600px) {
  .tk-feeboxes { grid-template-columns: 1fr; }
  .tk-chart .chart { height: 260px; }
  .tk-id > .coin { --size: 60px; }
  .tk-meta { gap: 8px 16px; }
  .tk-sep { display: none; }
  .tk-earn { flex-basis: 100%; flex-wrap: wrap; }
}

/* token stats: price panel + meter cards */
.tk-kpis { display: grid; gap: 12px; }
.tk-quote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); overflow: hidden; }
.tk-q-main { padding: 18px 20px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(145, 214, 168, 0.06), transparent 80%); min-width: 0; }
.tk-q-main .k, .tk-q-cell .k, .tk-meter .k { font-size: 12px; color: var(--muted); }
.tk-q-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.tk-q-price b { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; letter-spacing: -0.01em; }
.tk-chg { display: inline-flex; align-items: baseline; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 4px 8px; border-radius: 6px; background: color-mix(in srgb, currentColor 13%, transparent); white-space: nowrap; }
.tk-chg i { font-style: normal; font-weight: 400; font-size: 11px; opacity: 0.7; }
.tk-q-main .s { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 10px; }
.tk-q-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tk-q-cell { padding: 18px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.tk-q-cell + .tk-q-cell { border-left: 1px solid var(--line); }
.tk-q-cell .v { font-size: 21px; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-q-cell .s { font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tk-meter { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg-2); min-width: 0; }
.tk-meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tk-meter .v { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-bar { display: flex; gap: 2px; height: 6px; margin: 12px 0 10px; border-radius: 3px; overflow: hidden; background: rgba(240, 236, 222, 0.06); }
.tk-bar i { display: block; height: 100%; min-width: 3px; }
.tk-legend { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.tk-legend span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.tk-legend span b { margin-left: auto; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-legend i { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.tk-chart-v em { font-style: normal; font-size: 12px; color: var(--dim); }
@media (max-width: 1100px) {
  .tk-quote { grid-template-columns: minmax(0, 1fr); }
  .tk-q-main { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .tk-q-side { grid-template-columns: 1fr 1fr; }
  .tk-q-cell:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .tk-meters { grid-template-columns: minmax(0, 1fr); }
  .tk-q-price b { font-size: 40px; }
}

/* launch: anti-snipe */
.snipe-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.snipe-row b { font-weight: 500; font-size: 14.5px; }
.snipe-row .hint { margin-top: 6px; max-width: 58ch; line-height: 1.5; }
.snipe-row .seg { flex: none; }
.snipe-body { display: grid; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.snipe-body[hidden] { display: none; }
.snipe-wins { margin-bottom: 8px; }
.seg button:disabled { opacity: 0.35; cursor: not-allowed; }
.hint.bad { color: var(--down); }
.snipe-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.snipe-stat { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--bg-2); }
.snipe-stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; color: var(--burn); }
.snipe-stat span { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.snipe-chart { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; background: var(--bg-2); }
.snipe-chart svg { display: block; width: 100%; height: auto; }
.snipe-chart .hint { margin-top: 4px; }
@media (max-width: 600px) {
  .snipe-row { flex-direction: column; }
  .snipe-stat b { font-size: 24px; }
}

/* token chart: TradingView Lightweight Charts */
.tk-chart-l { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.seg.sm button { padding: 5px 10px; font-size: 12.5px; }
.tk-tv { position: relative; height: 430px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.tk-tv .tv-host { position: absolute; inset: 0; }
.tk-tv canvas { display: block; }
.tk-tv > canvas { width: 100%; height: 100%; }
.tk-tv .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 13px; z-index: 2; pointer-events: none; }
.tv-legend { position: absolute; top: 10px; left: 12px; right: 90px; z-index: 3; display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); pointer-events: none; }
.tv-legend b { font-weight: 500; }
.tk-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.tk-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.tk-live.on { color: var(--text); }
.tk-live.on i { background: var(--up); animation: livepulse 1.8s ease-out infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(127, 214, 161, 0.55); } 100% { box-shadow: 0 0 0 7px rgba(127, 214, 161, 0); } }
@media (prefers-reduced-motion: reduce) { .tk-live.on i { animation: none; } }
@media (max-width: 600px) { .tk-tv { height: 330px; } .tv-legend { right: 12px; } }

/* swap: pay with HYPE */
.tk-payvia { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.tk-payvia[hidden], .tk-route[hidden] { display: none; }
.tk-payvia .seg button { display: inline-flex; align-items: center; gap: 6px; }
.tk-payvia .coin { --size: 16px; }
.tk-route { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); padding: 8px 10px; border: 1px dashed var(--line-2); border-radius: 8px; }
.tk-route b { display: inline-flex; align-items: center; gap: 5px; color: var(--text); font-weight: 500; }
.tk-route b .coin { --size: 15px; }
.tk-route i { font-style: normal; color: var(--dim); }
.tk-route .dim { margin-left: auto; }
#out.bad { color: var(--down); font-size: 12.5px; }

/* docs: grouped sidebar, notes, figures */
.docs nav { max-height: calc(100vh - 100px); overflow-y: auto; padding-bottom: 20px; }
.docs nav .docs-grp { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); padding: 16px 10px 6px; }
.docs nav .docs-grp:first-child { padding-top: 0; }
.docs nav a.on { color: var(--text); background: rgba(255, 255, 255, 0.05); box-shadow: inset 2px 0 0 var(--holders); border-radius: 0 7px 7px 0; }
.docs-eyebrow { font-family: var(--mono); font-size: 12px; color: var(--holders); margin-bottom: 10px; }
.prose .note { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line-2); border-left: 2px solid var(--holders); border-radius: 0 10px 10px 0; background: var(--panel); font-size: 14.5px; }
.prose .docs-figure { margin: 18px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.prose pre { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); overflow-x: auto; }
.prose pre code { background: none; padding: 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.prose ol, .prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose td:first-child { white-space: nowrap; }
@media (max-width: 780px) { .docs nav { max-height: none; } .prose td:first-child { white-space: normal; } }

/* ------------------------------------------------------------ portfolio */
.pf-hero { margin-bottom: 4px; }
.pf-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 104px 0 34px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.5); }
.pf-id { min-width: 0; flex: 1 1 420px; }
.pf-id .eyebrow { margin-bottom: 14px; }
.pf-addr { font-family: var(--serif); }
.pf-flag { font-size: 11.5px; padding: 2px 8px; border-radius: 5px; background: rgba(240, 236, 222, 0.08); color: var(--muted); text-shadow: none; }
.pf-flag.on { background: color-mix(in srgb, var(--holders) 14%, transparent); color: var(--holders); }
.pf-linkbtn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
.pf-linkbtn:hover { color: var(--text); }
.pf-look { display: flex; gap: 8px; width: min(420px, 100%); text-shadow: none; }
.pf-look input { flex: 1; min-width: 0; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(5, 5, 5, 0.55); color: var(--text); font: 12.5px var(--mono); backdrop-filter: blur(6px); }
.pf-look input:focus { outline: none; border-color: rgba(240, 236, 222, 0.35); }
.pf-body { padding: 0 0 72px; }
.pf-connect { margin-top: 10px; }
.pf-quote .tk-q-cell .v.up, .pf-quote .tk-q-cell .v.down { font-variant-numeric: tabular-nums; }
.pf-quote .s .btn { margin-top: 2px; }
.pf-claimcell .s { overflow: visible; }
.pf-claimall { height: 30px; }
.pf-mini { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: none; color: var(--muted); border-radius: 6px; padding: 3px 8px; font-size: 12px; cursor: pointer; vertical-align: middle; }
.pf-mini:hover { color: var(--text); border-color: var(--line-2); }
.pf-quote .s .pf-mini { margin-left: 6px; padding: 1px 7px; }
.pf-wait { display: inline-block; width: 64px; max-width: 100%; height: 0.8em; border-radius: 4px; background: linear-gradient(90deg, rgba(240, 236, 222, 0.06), rgba(240, 236, 222, 0.13), rgba(240, 236, 222, 0.06)); background-size: 200% 100%; animation: pfshimmer 1.3s linear infinite; vertical-align: middle; }
@keyframes pfshimmer { to { background-position: -200% 0; } }
.tk-tabs button i { font-style: normal; font-size: 11.5px; color: var(--dim); margin-left: 3px; }
.pf-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 6px; }
.pf-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.pf-table td { vertical-align: middle; padding-top: 11px; padding-bottom: 11px; }
.tk-table td .tok .coin { --size: 30px; }
.tk-table td .tok .n { font-size: 13.5px; }
.tk-table td .tok .s { font-size: 11.5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.pf-src { font-size: 12px; color: var(--muted); }
.pf-src.cloudberry { color: var(--holders); }
.pf-pay { display: inline-flex; align-items: center; gap: 7px; }
.pf-pay .coin { --size: 18px; font-size: 7px; }
.pf-earnhead { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 18px 0 10px; }
.pf-legend { grid-template-columns: 1fr 1fr; column-gap: 18px; }
.pf-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.pf-foot { margin-top: 14px; }
.tk-empty a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .pf-earnhead { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .pf-top { padding-top: 84px; } .pf-legend { grid-template-columns: 1fr; } }

/* share card and claim-all dialogs */
.modal.wide { width: min(760px, 100%); }
.pnl-modal, .pf-claim { padding: 18px 20px 20px; }
.pnl-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pnl-head b { font-size: 15px; font-weight: 600; }
.pnl-prev { aspect-ratio: 1200 / 675; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); display: grid; place-items: center; }
.pnl-prev img { width: 100%; height: 100%; display: block; }
.pnl-wait { color: var(--muted); font-size: 13px; }
.pnl-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 10px; }
.pf-claim > p { margin: 0 0 14px; font-size: 13.5px; }
.pf-steps { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-height: 46vh; overflow-y: auto; }
.pf-step { display: flex; align-items: center; gap: 12px; padding: 11px 14px; font-size: 13.5px; }
.pf-step + .pf-step { border-top: 1px solid var(--line); }
.pf-step .grow { flex: 1; min-width: 0; }
.pf-step .muted { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--dim); flex: none; }
.pf-step.run .pf-dot { border-color: var(--warn); border-right-color: transparent; animation: spin 0.8s linear infinite; }
.pf-step.ok .pf-dot { background: var(--up); border-color: var(--up); }
.pf-step.err .pf-dot { background: var(--down); border-color: var(--down); }
.pf-step.err .muted { color: var(--down); }
.pf-claim-go { margin-top: 14px; display: flex; justify-content: flex-end; }
/* docs: no sideways scroll */
.docs > * { min-width: 0; }
.docs nav { scrollbar-width: none; } /* the sidebar still scrolls with the wheel, without a bar */
.docs nav::-webkit-scrollbar { display: none; }
@media (max-width: 900px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .prose { overflow-wrap: anywhere; }
  .prose table { display: block; overflow-x: auto; }
}

/* ------------------------------------------------------------ wallet dialogs (RainbowKit) */
[data-rk] h1 { font-family: var(--serif) !important; font-weight: 400 !important; font-size: 1.4em !important; line-height: 1.1 !important; letter-spacing: -0.01em; }
[data-rk] [role="dialog"] { text-shadow: none; }
.btn.wallet-wrong { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
