/* WAVES — app styles */

@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-700.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0a0b0f;
  --bg-2: #0e1015;
  --surface: #13151b;
  --surface-2: #191c23;
  --surface-3: #22252e;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f5f5f7;
  --text-2: #a1a1a8;
  --text-3: #6e6e76;
  --brand: #2427fc;
  --brand-hi: #4d50ff;
  --brand-text: #8587ff;
  --brand-soft: rgba(36, 39, 252, 0.16);
  --up: #30d158;
  --up-soft: rgba(48, 209, 88, 0.14);
  --down: #ff453a;
  --down-soft: rgba(255, 69, 58, 0.14);
  --amber: #ffb340;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.6);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Display", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --header-h: 64px;
  --page-max: 1360px;
  --gutter: 32px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand); color: #fff; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.up { color: var(--up); }
.down { color: var(--down); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; }
.icon-sm { width: 14px; height: 14px; flex: none; }

/* ---------- layout ---------- */
.page { max-width: var(--page-max); margin: 0 auto; padding: 16px var(--gutter) 120px; }
.page-narrow { max-width: 880px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(10, 11, 15, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  max-width: var(--page-max); margin: 0 auto; height: 100%;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr minmax(280px, 440px) 1fr; align-items: center; gap: 20px;
}
.header-left { display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; color: var(--text); }
.logo svg { height: 20px; width: auto; }
.logo .logo-mark { display: none; height: 18px; }
.nav { display: flex; gap: 4px; }
.nav a, .nav button {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  padding: 8px 12px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav a:hover, .nav button:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--text); }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }

/* search */
.search { position: relative; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 6px 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .2s, background .2s;
}
.search-box:focus-within { border-color: var(--line-2); background: var(--surface-2); }
.search-box .icon { color: var(--text-3); }
.search-box input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 14px; height: 100%; }
.search-box input::placeholder { color: var(--text-3); }
.kbd {
  font-size: 12px; font-weight: 500; color: var(--text-3);
  min-width: 24px; height: 24px; padding: 0 7px; display: inline-grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 7px;
}
.chip-btn {
  height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--surface-3); color: var(--text-2); transition: color .2s, background .2s;
}
.chip-btn:hover { color: var(--text); background: #2b2f39; }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px; display: none; max-height: 420px; overflow: auto;
}
.search.open .search-results { display: block; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.search-item:hover, .search-item.sel { background: var(--surface-2); }
.search-item .meta { flex: 1; min-width: 0; }
.search-item .t { font-weight: 600; font-size: 14px; }
.search-item .s { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-empty { padding: 18px; text-align: center; color: var(--text-3); font-size: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, color .2s, opacity .2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hi); }
.btn-white { background: #fff; color: #0a0b0f; }
.btn-white:hover { background: #e9e9ee; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-up { background: var(--up); color: #04150a; }
.btn-down { background: var(--down); color: #fff; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  transition: color .2s, background .2s;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }

.wallet-btn .avatar-dot { width: 22px; height: 22px; border-radius: 50%; margin-left: -6px; }
.wallet-btn.connected { padding-left: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.wallet-btn.connected:hover { background: var(--surface-2); }

/* ---------- hero banner ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: #2427fc;
  background-image: url("../img/hero.webp");
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: right center;
  min-height: 248px;
  padding: 40px 44px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #2427fc 0%, #2427fc 30%, rgba(36, 39, 252, 0) 55%);
}
.hero h1 {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.04; letter-spacing: -0.035em;
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.28em;
}
.hero h1 .stack { display: inline-flex; vertical-align: middle; transform: translateY(2px); }
.hero p { margin: 12px 0 24px; font-size: 17px; color: rgba(255, 255, 255, 0.82); max-width: 460px; }
.hero p b { color: #fff; font-weight: 600; }
.hero .btn-white { height: 50px; padding: 0 24px; font-size: 16px; color: var(--brand); }

/* ---------- asset badges ---------- */
.asset {
  --c: #888; --c2: var(--c);
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--c), var(--c2));
  color: #fff; font-size: 10px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 2px var(--ring, var(--bg));
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}
.asset-lg { width: 32px; height: 32px; font-size: 14px; }
.asset-xl { width: 40px; height: 40px; font-size: 16px; }
.stack { display: inline-flex; align-items: center; }
.stack .asset + .asset { margin-left: -6px; }
.stack .more { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.hero .stack .asset { width: 34px; height: 34px; font-size: 15px; --ring: #2427fc; }
.hero .stack .asset + .asset { margin-left: -10px; }

/* ---------- coin avatar ---------- */
.coin-av {
  --h: 220;
  width: 56px; height: 56px; border-radius: 14px; flex: none; position: relative;
  background:
    radial-gradient(120% 90% at 20% 10%, hsl(var(--h) 90% 66% / 0.95), transparent 60%),
    radial-gradient(120% 120% at 90% 100%, hsl(calc(var(--h) + 50) 85% 45%), hsl(calc(var(--h) + 20) 70% 22%));
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--font-display); font-weight: 700; color: rgba(255, 255, 255, 0.95);
  font-size: 18px; letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.coin-av svg.wave { position: absolute; left: -6%; right: -6%; bottom: -2px; width: 112%; height: 40%; opacity: .22; color: #fff; }
.coin-av span { position: relative; }
.coin-av.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 12px; }
.coin-av.lg { width: 72px; height: 72px; border-radius: 18px; font-size: 22px; }
.coin-av.featured { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 0 2px var(--brand); }
.coin-av.img { background-size: cover; background-position: center; }

/* ---------- tabs ---------- */
.board-bar { display: flex; align-items: center; gap: 12px; margin: 28px 0 14px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  height: 38px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text-2);
  transition: color .2s, background .2s; white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); background: var(--surface-2); }
.tab .short { display: none; }
.board-bar .spacer { flex: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.pill.brand { color: var(--brand-text); background: var(--brand-soft); border-color: transparent; }
.pill.live .dot { background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }

/* ---------- coin table ---------- */
.board { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.board-head, .coin-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) 180px repeat(3, minmax(96px, 0.6fr)) minmax(120px, 0.7fr);
  align-items: center; gap: 16px; padding: 0 20px;
}
.board-head { height: 44px; font-size: 12px; font-weight: 500; color: var(--text-3); border-bottom: 1px solid var(--line); }
.board-head > div:nth-child(n + 3) { text-align: right; }
.board-head button { color: inherit; font: inherit; }
.board-head button:hover, .board-head button.on { color: var(--text); }
.coin-row {
  height: 84px; border-bottom: 1px solid var(--line); position: relative;
  transition: background .25s;
}
.coin-row:last-child { border-bottom: 0; }
.coin-row:hover { background: rgba(255, 255, 255, 0.022); }
.coin-row.flash-up { animation: flashUp 0.9s var(--ease); }
.coin-row.flash-down { animation: flashDown 0.9s var(--ease); }
@keyframes flashUp { from { background: var(--up-soft); } }
@keyframes flashDown { from { background: var(--down-soft); } }
.coin-row > .cell-r { text-align: right; font-weight: 600; }
.board .asset { --ring: var(--bg-2); }
.pair { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pair .coin-wrap { position: relative; }
.star {
  position: absolute; right: -5px; bottom: -5px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-2); color: var(--text-3);
  transition: color .2s, transform .2s var(--ease);
}
.star:hover { color: var(--text); transform: scale(1.1); }
.star.on { color: var(--amber); }
.star svg { width: 13px; height: 13px; }
.pair-meta { min-width: 0; display: grid; gap: 5px; }
.pair-top { display: flex; align-items: baseline; gap: 8px; }
.ticker { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.holders { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text-3); }
.holders svg { width: 12px; height: 12px; }
.pair-sub { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); }
.pair-sub .bv-m { display: none; }
.age { font-size: 12px; color: var(--text-3); }
.classic-tag { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); padding: 3px 8px; border-radius: 6px; background: var(--surface-2); }
.bv { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; color: var(--text-2); }
.bv svg { width: 14px; height: 14px; color: var(--text-3); }
.mc small { font-size: 11px; color: var(--text-3); font-weight: 600; margin-left: 2px; }
.chg { display: block; font-size: 12px; font-weight: 600; margin-top: 3px; }

.spark { width: 100%; height: 40px; }
.progress-cell { display: flex; align-items: center; gap: 10px; }
.bar { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; min-width: 6px; border-radius: 99px; background: var(--brand-hi); transition: width .6s var(--ease); }
.progress-cell .left { font-size: 12px; font-weight: 600; color: var(--brand-text); white-space: nowrap; }
.row-link { position: absolute; inset: 0; z-index: 0; }
.coin-row .star, .coin-row .coin-av { z-index: 1; }
.board-empty { padding: 64px 20px; text-align: center; color: var(--text-2); }
.board-empty h3 { margin: 0 0 6px; color: var(--text); font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; }

/* ---------- sheet / modal ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(480px, 100%); max-height: min(86vh, 760px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 28px;
  transform: translateY(12px) scale(0.98); transition: transform .3s var(--ease);
}
.overlay.open .modal { transform: none; }
.modal-wide { width: min(620px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.modal h2 { margin: 0; font-family: var(--font-display); font-size: 24px; letter-spacing: -0.025em; line-height: 1.15; }
.modal .lead { margin: 6px 0 0; color: var(--text-2); }
.modal .close { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.modal .close:hover { color: var(--text); }
.field-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 18px 0 10px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--line-2); color: var(--text-2); display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s;
}
.opt:hover { color: var(--text); }
.opt.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.opt .asset { width: 18px; height: 18px; font-size: 9px; --ring: transparent; }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; }
.modal-actions .btn { flex: 1; }

.wallet-list { display: grid; gap: 8px; margin-top: 4px; }
.wallet-opt {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line); text-align: left; transition: background .2s;
}
.wallet-opt:hover { background: var(--surface-3); }
.wallet-opt .w-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #fff; }
.wallet-opt .w-name { font-weight: 600; flex: 1; }
.wallet-opt .w-state { font-size: 12px; color: var(--text-3); }
.note { font-size: 13px; color: var(--text-3); margin: 16px 0 0; }

.steps { display: grid; gap: 14px; margin: 8px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; }
.steps li::before {
  counter-increment: s; content: counter(s);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-text); font-weight: 700; font-size: 14px;
}
.steps b { display: block; font-weight: 600; margin-bottom: 2px; }
.steps span { color: var(--text-2); font-size: 14px; }
.split { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 3px; margin: 10px 0 10px; }
.split i { display: block; border-radius: 99px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }

.news-item { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.news-item:first-of-type { border-top: 0; padding-top: 0; }
.news-item time { font-size: 12px; color: var(--text-3); }
.news-item b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.news-item p { margin: 0; color: var(--text-2); font-size: 14px; }

/* ---------- toast ---------- */
.toasts { position: fixed; z-index: 200; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(30, 33, 41, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-2); box-shadow: var(--shadow); pointer-events: auto;
  animation: toastIn .35s var(--ease);
}
.toast.out { animation: toastOut .25s var(--ease) forwards; }
.toast .t-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); flex: none; }
.toast b { display: block; font-size: 14px; font-weight: 600; }
.toast span { font-size: 13px; color: var(--text-2); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* ---------- account menu ---------- */
.menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 240px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 6px; display: none;
}
.menu.open { display: block; }
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--text-2); text-align: left;
}
.menu a:hover, .menu button:hover { background: var(--surface-2); color: var(--text); }
.menu .menu-head { padding: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .menu-head small { display: block; color: var(--text-3); font-size: 12px; }
.menu .menu-head b { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.rel { position: relative; }

/* ---------- footer ---------- */
.site-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: 40px; border-top: 1px solid var(--line);
  background: rgba(10, 11, 15, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.footer-inner { max-width: var(--page-max); margin: 0 auto; height: 100%; padding: 0 var(--gutter); display: flex; align-items: center; gap: 4px; font-size: 12px; }
.footer-inner .status { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 500; margin-right: auto; }
.footer-inner .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(255, 179, 64, 0.15); }
.footer-inner a, .footer-inner button.f { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; color: var(--text-2); }
.footer-inner a:hover, .footer-inner button.f:hover { color: var(--text); background: var(--surface); }
.footer-inner .sep { width: 1px; height: 14px; background: var(--line-2); margin: 0 4px; }
.footer-inner .icon { width: 15px; height: 15px; }

/* ---------- mobile nav ---------- */
.mobile-nav { display: none; }
.drawer {
  position: fixed; inset: 0; z-index: 120; display: flex; justify-content: flex-end;
  background: rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; transition: opacity .25s;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel {
  width: min(360px, 88vw); height: 100%; background: var(--surface); border-left: 1px solid var(--line);
  padding: 20px; display: flex; flex-direction: column; gap: 4px; transform: translateX(24px); transition: transform .3s var(--ease); overflow: auto;
}
.drawer.open .drawer-panel { transform: none; }
.drawer-panel .d-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer-panel .d-head small { font-size: 12px; color: var(--text-3); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.drawer-panel a, .drawer-panel button.d {
  display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 12px; font-size: 16px; font-weight: 500; color: var(--text);
}
.drawer-panel a:hover, .drawer-panel button.d:hover { background: var(--surface-2); }
.drawer-panel .icon { color: var(--text-2); }
.drawer-panel .d-sep { height: 1px; background: var(--line); margin: 10px 0; }
.drawer-panel .btn { margin-top: auto; }

/* ---------- cards & generic ---------- */
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.card h3 { margin: 0 0 16px; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.card h3 .pill { margin-left: auto; }
.page-title { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.035em; line-height: 1.04; margin: 24px 0 8px; }
.page-lead { color: var(--text-2); font-size: 17px; margin: 0 0 32px; max-width: 620px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-text); }
.grid-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; }
.kpi small { display: block; color: var(--text-3); font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.kpi b { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.kpi .sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.kv > div { background: var(--bg-2); padding: 16px 18px; }
.kv small { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.kv b { font-size: 17px; font-weight: 600; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.list-row:first-child { border-top: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.copy { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; padding: 4px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.copy:hover { color: var(--text); }
.copy svg { width: 13px; height: 13px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg button { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.seg button.on { background: var(--surface-3); color: var(--text); }

/* ---------- coin page ---------- */
.coin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; margin-top: 16px; }
.coin-main { display: grid; gap: 20px; min-width: 0; }
.coin-side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; font-weight: 500; padding: 6px 0; }
.back:hover { color: var(--text); }
.coin-head { display: flex; gap: 18px; align-items: center; }
.coin-head h1 { margin: 0; font-family: var(--font-display); font-size: 32px; letter-spacing: -0.03em; line-height: 1.1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.coin-head h1 .name { color: var(--text-2); font-weight: 600; font-size: 20px; }
.coin-head .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.price-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.price-row b { font-family: var(--font-display); font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.price-row .chg { font-size: 15px; margin: 0 0 4px; }
.price-row .seg { margin-left: auto; }
.chart { width: 100%; height: 300px; position: relative; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .tip { position: absolute; top: 0; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 12px; pointer-events: none; white-space: nowrap; transform: translateX(-50%); display: none; }
.basket-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.basket-row:first-of-type { border-top: 0; padding-top: 4px; }
.basket-row .a { display: flex; align-items: center; gap: 12px; }
.basket-row .a b { display: block; font-weight: 600; }
.basket-row .a small { color: var(--text-3); font-size: 12px; }
.basket-row .v { text-align: right; }
.basket-row .v b { display: block; font-weight: 600; }
.basket-row .v small { color: var(--text-3); font-size: 12px; }
.basket-row .bar { grid-column: 1 / -1; height: 4px; }
.basket-total { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.basket-total b { font-family: var(--font-display); font-size: 32px; letter-spacing: -0.03em; }
.trade-card { padding: 20px; }
.trade-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--surface); margin-bottom: 18px; }
.trade-tabs button { height: 40px; border-radius: 11px; font-weight: 600; color: var(--text-3); transition: all .2s; }
.trade-tabs button.on.buy { background: var(--up-soft); color: var(--up); }
.trade-tabs button.on.sell { background: var(--down-soft); color: var(--down); }
.trade-tabs button.on.redeem { background: var(--brand-soft); color: var(--brand-text); }
.amount { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; transition: border-color .2s; }
.amount:focus-within { border-color: var(--line-2); }
.amount .top { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.amount .mid { display: flex; align-items: center; gap: 10px; }
.coin-side, .coin-side > * { min-width: 0; }
.amount input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.amount input::placeholder { color: var(--text-3); }
.cur { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--surface-3); font-weight: 600; font-size: 14px; }
.cur .asset { width: 22px; height: 22px; --ring: transparent; }
.cur .coin-av { width: 22px; height: 22px; border-radius: 50%; font-size: 8px; }
.quote .asset { width: 16px; height: 16px; font-size: 8px; margin-right: 6px; vertical-align: -3px; --ring: transparent; }
.presets { display: flex; gap: 6px; margin: 10px 0 16px; }
.presets button { flex: 1; height: 32px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-2); }
.presets button:hover { color: var(--text); background: var(--surface-2); }
.quote { display: grid; gap: 9px; font-size: 13px; margin-bottom: 16px; }
.quote > div { display: flex; justify-content: space-between; gap: 12px; color: var(--text-3); }
.quote > div b { color: var(--text); font-weight: 600; text-align: right; }
.quote .hl b { color: var(--brand-text); }
.preview-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface); font-size: 12.5px; color: var(--text-2); }
.preview-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-top: 6px; flex: none; }
.feed-row { display: grid; grid-template-columns: 54px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.feed-row:first-child { border-top: 0; }
.feed-row.new { animation: feedIn .6s var(--ease); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-6px); background: var(--surface); } }
.side-tag { font-size: 12px; font-weight: 700; padding: 3px 0; border-radius: 6px; text-align: center; }
.side-tag.buy { color: var(--up); background: var(--up-soft); }
.side-tag.sell { color: var(--down); background: var(--down-soft); }
.bond-big { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.bond-big b { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.03em; }
.bar.lg { height: 10px; }

/* ---------- launch page ---------- */
.launch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.form-section { display: grid; gap: 14px; }
.form-section + .form-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section h3 { margin: 0; }
.form-section .hint { margin: -8px 0 4px; font-size: 13px; color: var(--text-3); }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.input, .textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 14px; height: 48px; font-size: 15px; outline: 0; transition: border-color .2s, background .2s;
}
.textarea { height: 96px; padding: 12px 14px; resize: vertical; }
.input:focus, .textarea:focus { border-color: var(--brand-hi); background: var(--surface-2); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload { display: flex; align-items: center; gap: 16px; }
.upload .drop, .ln-upload .drop {
  width: 88px; height: 88px; border-radius: 20px; border: 1px dashed var(--line-2); display: grid; place-items: center; color: var(--text-3);
  background: var(--surface) center/cover no-repeat; cursor: pointer; transition: border-color .2s;
}
.upload .drop:hover, .ln-upload .drop:hover { border-color: var(--text-3); }
.upload .drop.has, .ln-upload .drop.has { border-style: solid; }
.upload .drop.has svg, .ln-upload .drop.has svg { display: none; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.preset {
  text-align: left; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: 10px; transition: border-color .2s, background .2s;
}
.preset:hover { background: var(--surface-2); }
.preset.on { border-color: var(--brand-hi); background: var(--brand-soft); }
.preset b { font-weight: 600; }
.preset small { color: var(--text-3); font-size: 12px; }
.weights { display: grid; gap: 10px; }
.weight-row { display: grid; grid-template-columns: 28px 70px 1fr 54px 28px; gap: 10px; align-items: center; }
.weight-row input[type=range] { width: 100%; accent-color: var(--brand-hi); }
.weight-row .w { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.weight-row .rm { color: var(--text-3); }
.weight-row .rm:hover { color: var(--text); }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.summary { display: grid; gap: 10px; font-size: 14px; }
.summary > div { display: flex; justify-content: space-between; gap: 16px; color: var(--text-3); }
.summary > div span { flex: none; }
.summary > div b { color: var(--text); font-weight: 600; text-align: right; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 22px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: var(--surface-3); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 99px; background: var(--surface-3); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--brand-hi); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; }
.preview-card { border-radius: var(--radius); background: var(--surface); padding: 16px; display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.err { color: var(--down); font-size: 12px; }

/* ---------- stats / dev ---------- */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 20px; }
.alloc-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; }
.alloc-row .bar { grid-column: 2 / -1; height: 4px; margin-top: -4px; }
.code {
  background: #07080b; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; overflow: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.65; color: #c9cad3; white-space: pre;
}
.code .k { color: var(--brand-text); }
.code .s { color: #7ee0a1; }
.code .n { color: #ffb86b; }
.endpoint { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.endpoint:first-of-type { border-top: 0; padding-top: 0; }
.method { font-family: ui-monospace, Menlo, monospace; font-size: 12px; font-weight: 700; color: var(--up); background: var(--up-soft); border-radius: 6px; padding: 3px 0; text-align: center; }
.endpoint b { font-family: ui-monospace, Menlo, monospace; font-size: 14px; font-weight: 600; }
.endpoint p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.prose { color: var(--text-2); font-size: 16px; line-height: 1.65; }
.prose h2 { color: var(--text); font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; margin: 40px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose b { color: var(--text); }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; }
.empty { text-align: center; padding: 56px 20px; }
.empty .ico { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.empty h3 { justify-content: center; }
.empty p { color: var(--text-2); margin: 0 auto 20px; max-width: 360px; }

/* ---------- dense full-width layout (reference look) ---------- */
:root { --header-h: 52px; --page-max: none; --gutter: 24px; }
.header-inner { grid-template-columns: 1fr minmax(260px, 340px) 1fr; }
.logo svg { height: 17px; }
.header-left { gap: 22px; }
.nav a, .nav button { font-size: 13px; padding: 6px 10px; }
.search-box { height: 36px; border-radius: 10px; padding: 0 5px 0 12px; }
.search-box input { font-size: 13px; }
.kbd { min-width: 22px; height: 22px; font-size: 11px; border-radius: 6px; }
.chip-btn { height: 26px; border-radius: 7px; font-size: 12px; padding: 0 10px; }
.header-right .btn { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.header-right .btn-primary { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--brand-hi); }
.header-right .icon-btn { width: 36px; height: 36px; border-radius: 10px; }
.page { padding-top: 0; }

.hero {
  min-height: 0; height: 248px; padding: 0 44px; border-radius: 22px;
  background-image: none; background-color: #282afb;
  justify-content: center;
}
.hero::before { display: none; }
.hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; z-index: -1;
  width: min(880px, 66%);
  background: url("../img/hero.webp") no-repeat right center / auto 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  border-radius: 0 22px 22px 0;
}
.hero h1 { font-size: 44px; letter-spacing: -0.035em; column-gap: 0.25em; }
.hero h1::after { display: none; }
.hero .stack .asset { width: 32px; height: 32px; font-size: 14px; --ring: #282afb; }
.hero .stack .asset + .asset { margin-left: -9px; }
.hero h1 .stack { transform: none; }
.hero h1::after { content: "."; margin-left: -0.15em; }
.hero p { font-size: 17px; margin: 10px 0 24px; max-width: none; color: rgba(255, 255, 255, 0.85); }
.hero .btn-white { height: 50px; padding: 0 26px; font-size: 16px; }

.board-bar { margin: 14px 0 10px; }
.tabs { gap: 26px; padding: 0 8px; }
.tab { height: 34px; padding: 0 0; border-radius: 0; font-size: 14px; position: relative; background: none; }
.tab.active { background: none; }
.tab.active::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: 0; height: 2px; border-radius: 2px; background: var(--brand-hi); }
.board-bar .icon-btn { width: 34px; height: 34px; background: none; border: 0; }

.board { border-radius: 6px; background: var(--bg-2); }
.board-head, .coin-row {
  grid-template-columns: minmax(220px, 1fr) 130px 92px 92px 100px 104px;
  gap: 22px; padding: 0 14px;
}
.board-head { height: 26px; font-size: 11px; background: var(--surface); border-bottom: 0; }
.coin-row { height: 64px; border-bottom-color: rgba(255, 255, 255, 0.045); }
.coin-row > .cell-r { font-size: 13px; }
.coin-av { width: 46px; height: 46px; border-radius: 5px; font-size: 15px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14); }
.coin-av.featured { box-shadow: inset 0 0 0 2px #5a5dff; }
.pair { gap: 12px; }
.pair-meta { gap: 3px; }
.ticker { font-size: 13px; }
.holders { font-size: 11px; }
.holders svg { width: 11px; height: 11px; }
.pair-sub { font-size: 11px; gap: 7px; }
.pair-sub .age { color: var(--text-2); }
.pair-sub .stack .asset { width: 15px; height: 15px; font-size: 8px; }
.pair-sub .stack .asset + .asset { margin-left: -4px; }
.pair-sub .stack .more { font-size: 11px; margin-left: 4px; }
.star { width: 16px; height: 16px; right: -3px; bottom: -3px; }
.star svg { width: 10px; height: 10px; }
.spark { height: 30px; }
.progress-cell { gap: 8px; }
.progress-cell .bar { height: 5px; }
.progress-cell .left { font-size: 11px; }
.bv { gap: 4px; }
.bv svg { width: 13px; height: 13px; }
.mc small { font-size: 9px; }
.chg { font-size: 11px; margin-top: 2px; }
.classic-tag { background: none; padding: 0; font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.pair-sub .classic-tag { display: none; }

.site-footer { height: 26px; }
.footer-inner { font-size: 11px; }
.footer-inner a, .footer-inner button.f { padding: 3px 8px; }
.footer-inner .icon { width: 13px; height: 13px; }
body:not([data-page="home"]) .page { max-width: 1360px; padding-top: 16px; }
body:not([data-page="home"]) .page.page-narrow { max-width: 880px; }

/* ---------- coin page (RUNUP layout) ---------- */
body[data-page="coin"] .page { max-width: none; padding-top: 0; }
.cp-head {
  display: grid; grid-template-columns: 24px minmax(180px, 300px) minmax(0, 1fr) auto; align-items: center; gap: 0 16px;
  padding: 14px 0 16px; border-bottom: 1px solid var(--line);
}
.cp-back { width: 24px; height: 24px; display: grid; place-items: center; color: var(--text-2); border-radius: 6px; }
.cp-back:hover { color: var(--text); background: var(--surface); }
.cp-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.coin-av.cp-av { width: 40px; height: 40px; border-radius: 6px; font-size: 13px; }
.cp-names { min-width: 0; display: grid; gap: 3px; }
.cp-name-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cp-name-line h1 { margin: 0; font-family: var(--font-display); font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.cp-fullname { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-copy { color: var(--text-3); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; }
.cp-copy:hover { color: var(--text); background: var(--surface); }
.cp-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.mode-badge { padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--surface-2); color: var(--text-2); }
.mode-badge.basket { background: var(--brand-soft); color: var(--brand-text); }
.pair-chip { display: inline-flex; align-items: center; gap: 4px; }
.pair-chip .asset { width: 14px; height: 14px; font-size: 7px; --ring: transparent; }
.cp-holders { display: inline-flex; align-items: center; gap: 3px; }
.cp-holders b { font-weight: 500; }
.cp-overview { display: flex; align-items: center; gap: 28px; min-width: 0; }
.cp-price { display: grid; gap: 2px; min-width: 150px; }
.cp-price > b { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.cp-chg { font-size: 12px; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.cp-chg > span[aria-hidden] { font-size: 9px; }
.cp-metrics { display: flex; gap: 12px 26px; margin: 0; flex-wrap: wrap; }
.cp-metrics > div { display: grid; gap: 2px; }
.cp-metrics dt { font-size: 12px; color: var(--text-3); }
.cp-metrics dd { margin: 0; font-size: 15px; font-weight: 600; }
.cp-actions { display: flex; gap: 6px; }
.cp-actions .icon-btn { width: 36px; height: 36px; border-radius: 10px; }

.cp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 15px; padding-top: 15px; align-items: start; }
.cp-main { min-width: 0; display: grid; gap: 15px; }
.cp-side { display: grid; gap: 15px; position: sticky; top: calc(var(--header-h) + 15px); min-width: 0; }
.cp-chart { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; }
.cp-chart-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cp-chart-bar .seg { border-radius: 10px; padding: 3px; }
.cp-chart-bar .seg button { height: 26px; border-radius: 8px; font-size: 12px; padding: 0 12px; }
.cp-chart .chart { height: 560px; }

.cp-details { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px 14px; }
.cp-tabs { display: grid; grid-template-columns: 1.1fr 1.25fr .65fr; position: relative; border-bottom: 1px solid var(--line); max-width: 420px; }
.cp-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 12px 2px 10px; font-size: 14px; font-weight: 500; color: var(--text-3); }
.cp-tabs button.on { color: var(--text); }
.cp-tabs::after { content: ""; position: absolute; bottom: -1px; left: var(--tab-x, 0); width: var(--tab-w, 0); height: 2px; border-radius: 2px 2px 0 0; background: var(--brand-hi); transition: left .3s var(--ease), width .3s var(--ease); }
.tab-badge { font-size: 11px; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); color: var(--text-2); }
.flow { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 14px 4px 10px; font-size: 12px; font-weight: 600; }
.flow-bar { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; }
.flow-bar span { height: 100%; }
.vault-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 6px; }
.vault-flow > div { background: var(--surface); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.vault-flow dt { font-size: 12px; color: var(--text-3); }
.vault-flow dd { margin: 0; font-size: 16px; font-weight: 600; }
.flow-label { font-size: 12px; color: var(--text-3); font-weight: 500; }
.table-wrap { overflow-x: auto; }
.trade-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.trade-table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--text-3); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.trade-table td { height: 44px; padding: 0 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.trade-table .r { text-align: right; }
.trade-table tr.new td { animation: feedIn .6s var(--ease); }
.trade-table .side-tag { display: inline-block; min-width: 44px; padding: 3px 6px; }
.trader { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.trader-av { width: 18px; height: 18px; border-radius: 50%; }
.holder-list { display: grid; padding-top: 6px; }
.holder-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 13px; }
.holder-row .grow { flex: 1; min-width: 0; }
.holder-av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.holder-val { display: grid; text-align: right; gap: 1px; }
.holder-val .dim { font-size: 12px; }
.creator-tag { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: var(--surface-2); color: var(--text-2); margin-left: 6px; }
.cp-about { display: grid; gap: 16px; padding: 18px 6px 4px; }
.cp-about p { margin: 0; font-size: 14px; }
.facts { display: grid; gap: 12px; margin: 0; }
.facts > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; text-align: right; }

.side-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 15px; }
.side-card .trade-tabs { margin-bottom: 0; border-radius: 10px; }
.side-card .trade-tabs button { height: 36px; border-radius: 8px; }
.side-card .amount { border-radius: 10px; padding: 12px 14px; }
.side-card .amount input { font-size: 24px; }
.side-card .presets { margin: 0; }
.side-card .presets button { border-radius: 8px; height: 30px; }
.side-card .quote { margin: 0; }
.side-card .btn-lg { height: 48px; border-radius: 10px; font-size: 15px; }
.side-card .preview-note { margin: 0; border-radius: 10px; font-size: 12px; padding: 10px 12px; }
#trade-card { gap: 12px; }
.sheet-trade { display: grid; gap: 12px; }
.sheet-trade .presets, .sheet-trade .quote { margin: 0; }
.sheet-trade .preview-note { margin: 0; }
.sc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 0; }
.sc-stats > div { background: var(--surface); border-radius: 6px; padding: 7px 10px; display: grid; gap: 2px; }
.sc-stats dt { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.sc-stats dd { margin: 0; font-size: 15px; font-weight: 600; }
.sc-group { display: grid; gap: 8px; }
.sc-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.sc-title b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.sc-title .learn { font-size: 12px; color: var(--brand-text); }
.brand-t { color: var(--brand-text); font-weight: 600; font-size: 13px; }
.sc-value { display: flex; align-items: baseline; gap: 10px; }
.sc-value b { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; }
.sc-value span { font-size: 12px; font-weight: 600; }
.alloc-bar { display: flex; gap: 2px; height: 13px; }
.alloc-bar span { border-radius: 2px; }
.sc-assets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 0; padding: 0; list-style: none; }
.sc-assets li { display: flex; gap: 6px; align-items: center; background: var(--surface); border-radius: 6px; padding: 6px 7px; min-width: 0; }
.sc-assets .marker { width: 2px; height: 22px; border-radius: 99px; flex: none; }
.a-info { display: grid; gap: 1px; font-size: 11px; min-width: 0; }
.a-label { display: flex; gap: 4px; }
.a-label b { font-weight: 600; }
.sc-redeem { height: 38px; border-radius: 8px; font-size: 13px; margin-top: 2px; }
.sc-note { margin: 0; font-size: 12px; color: var(--text-3); }
.trade-dock { display: none; }

/* ---------- launch page (RUNUP layout) ---------- */
body[data-page="launch"] .page { max-width: 620px; }
.ln-head { display: flex; align-items: center; gap: 10px; padding: 20px 0 24px; }
.ln-head h1 { margin: 0; font-family: var(--font-display); font-size: 28px; letter-spacing: -0.03em; line-height: 1.1; }
.ln-head p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.ln-form { display: grid; gap: 28px; }
.ln-section { display: grid; gap: 14px; }
.ln-section > h2, .ln-title { margin: 0; font-family: var(--font-display); font-size: 17px; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 8px; }
.ln-title small { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--text-3); }
.ln-upload { display: flex; align-items: center; gap: 14px; }
.ln-upload .drop { width: 68px; height: 68px; border-radius: 16px; }
.ln-upload b { font-size: 15px; }
.ln-name-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 12px; }
.ln-ticker { display: flex; align-items: center; gap: 4px; padding-left: 14px; }
.ln-ticker span { color: var(--text-3); }
.ln-ticker input, .ln-ticker input:focus { border: 0; background: none; padding-left: 2px; height: 46px; }
.ln-ticker:focus-within { border-color: var(--brand-hi); background: var(--surface-2); }
.input-wrap { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.seg-full { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.seg-full button { padding: 9px 6px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.seg-full button.on { background: var(--surface-3); color: var(--text); }
.ln-alloc { display: grid; gap: 14px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.ln-alloc .alloc-bar { height: 8px; }
.ln-alloc .alloc-bar span { border-radius: 4px; }
.alloc-labels { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 13px; color: var(--text-2); }
.alloc-labels span { display: inline-flex; align-items: center; gap: 6px; }
.alloc-labels i { width: 8px; height: 8px; border-radius: 50%; }
.alloc-labels b { color: var(--text); font-weight: 600; }
.fee-bar { display: flex; gap: 5px; height: 12px; }
.fee-bar span { border-radius: 4px; }
.fee-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--text-2); }
.fee-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fee-legend i { width: 12px; height: 12px; border-radius: 4px; }
.fee-caption { margin: -6px 0 0; font-size: 13px; color: var(--text-3); }
.first-buy { display: grid; gap: 8px; }
.first-buy input[type=range] { width: 100%; }
.first-buy .range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.social-toggle { justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-2); }
.social-toggle:hover { color: var(--text); }
.social-fields { display: grid; gap: 12px; }
.social-fields[hidden] { display: none; }
.ln-preview { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.ln-preview .coin-av { width: 52px; height: 52px; border-radius: 12px; }
.ln-review { display: grid; gap: 10px; font-size: 14px; }
.ln-review > div { display: flex; justify-content: space-between; gap: 16px; color: var(--text-3); }
.ln-review > div b { color: var(--text); font-weight: 600; text-align: right; }
.action-dock { display: grid; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.action-dock .btn { height: 52px; border-radius: 14px; font-size: 16px; }
.action-dock p { margin: 0; font-size: 13px; color: var(--text-3); text-align: center; }
.weight-row { grid-template-columns: 22px 64px minmax(0, 1fr) 48px 24px; }

/* ---------- inner pages: dense type ---------- */
body:not([data-page="home"]):not([data-page="coin"]) .page-title { font-size: 28px; letter-spacing: -0.03em; margin: 20px 0 4px; }
body:not([data-page="home"]):not([data-page="coin"]) .page-lead { font-size: 14px; margin-bottom: 20px; }
body:not([data-page="home"]):not([data-page="coin"]) .eyebrow { display: none; }
.card { border-radius: 10px; padding: 16px; }
.card h3 { font-size: 16px; margin-bottom: 12px; }
.kpi { border-radius: 10px; padding: 14px 16px; }
.kpi small { font-size: 12px; margin-bottom: 6px; }
.kpi b { font-size: 24px; }
.grid-kpi { gap: 10px; }
.two-col { gap: 15px; margin-top: 15px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .board-head, .coin-row { grid-template-columns: minmax(200px, 1.6fr) 150px repeat(2, minmax(90px, 0.6fr)) minmax(110px, 0.7fr); }
  .col-liq { display: none; }
  .coin-layout, .launch-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 980px) {
  :root { --gutter: 20px; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .nav { display: none; }
  .coin-layout, .launch-layout, .two-col { grid-template-columns: 1fr; }
  .coin-side { position: static; }
  .grid-kpi { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --header-h: 60px; }
  body { font-size: 14px; }
  .header-inner { grid-template-columns: auto 1fr auto; gap: 10px; }
  .search, .site-footer, .header-launch { display: none; }
  .logo svg { height: 17px; }
  .page { padding-top: 10px; padding-bottom: 130px; }

  .hero {
    min-height: 0; height: auto; padding: 24px 20px 150px; border-radius: 14px;
  }
  .hero::after {
    top: auto; left: 2px; width: auto; height: 168px; bottom: 2px;
    background-size: auto 168px; background-position: right -24px bottom;
    -webkit-mask-image: none; mask-image: none; border-radius: 0 0 12px 12px;
  }
  .tabs { gap: 14px; padding: 0 4px; }
  .tab { font-size: 14px; }
  .hero::before { display: none; }
  .hero h1 { font-size: 28px; max-width: 300px; }
  .hero .stack .asset { width: 24px; height: 24px; font-size: 11px; }
  .hero .stack .asset + .asset { margin-left: -7px; }
  .hero p { font-size: 14px; margin: 8px 0 16px; max-width: 250px; }
  .hero .btn-white { height: 42px; font-size: 14px; padding: 0 18px; }

  .board-bar { margin: 18px 0 10px; gap: 6px; }
  .tab { padding: 0 11px; font-size: 14px; height: 34px; }
  .tab .full { display: none; }
  .tab .short { display: inline; }
  .board-bar .pill { display: none; }
  .board-head, .coin-row { grid-template-columns: minmax(0, 1fr) 76px 92px; gap: 10px; padding: 0 12px; }
  .board-head .col-chart, .board-head .col-liq, .board-head .col-vol, .board-head .col-bv { display: none; }
  .coin-row .col-liq, .coin-row .col-vol, .coin-row .col-bv { display: none; }
  .coin-row { height: 92px; }
  .coin-av { width: 50px; height: 50px; border-radius: 13px; }
  .pair { gap: 12px; }
  .pair-meta { gap: 3px; }
  .ticker { font-size: 15px; max-width: 78px; }
  .pair-sub { flex-direction: column; align-items: flex-start; gap: 5px; }
  .pair-sub .bv-m { display: inline-flex; color: var(--text); font-weight: 600; font-size: 13px; gap: 4px; align-items: center; }
  .pair-sub .stack .asset { width: 18px; height: 18px; font-size: 9px; }
  .pair-sub .bv-m svg { width: 13px; height: 13px; color: var(--text-3); }
  .pair-sub .age { display: none; }
  .progress-cell { flex-direction: column; align-items: stretch; gap: 5px; }
  .progress-cell .left { text-align: center; font-size: 11px; }
  .spark { height: 34px; }
  .mc { font-size: 15px; }
  .mc .vol-m { display: block; font-size: 11px; color: var(--text-3); font-weight: 500; margin-top: 2px; }

  .mobile-nav {
    display: flex; align-items: center; gap: 10px;
    position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60;
  }
  .mobile-nav .bar-nav {
    flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); height: 58px; padding: 5px; border-radius: 999px;
    background: rgba(30, 33, 41, 0.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--line-2);
  }
  .mobile-nav .bar-nav a, .mobile-nav .bar-nav button { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: 14px; }
  .mobile-nav .bar-nav .active { background: rgba(255, 255, 255, 0.08); color: var(--text); }
  .mobile-nav .bar-nav .icon { width: 20px; height: 20px; }
  .mobile-nav .bar-nav span { display: none; }
  .mobile-nav .bar-nav .active span { display: inline; }
  .mobile-nav .fab { width: 58px; height: 58px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(36, 39, 252, 0.8); }
  .mobile-nav .fab .icon { width: 24px; height: 24px; }

  .wallet-btn { padding: 0 16px; }
  .grid-kpi { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 16px; }
  .kpi b { font-size: 22px; }
  .kv { grid-template-columns: 1fr 1fr; }
  .card { padding: 18px; border-radius: 20px; }
  .coin-head h1 { font-size: 26px; }
  .price-row b { font-size: 28px; }
  .price-row .seg { margin-left: 0; width: 100%; justify-content: space-between; }
  .price-row .seg button { flex: 1; }
  .chart { height: 220px; }
  .row-2, .mode-grid { grid-template-columns: 1fr; }
  .feed-row { grid-template-columns: 46px 1fr auto; }
  .feed-row .ft-time { display: none; }
  .overlay { align-items: flex-end; padding: 0; }
  .modal { width: 100%; border-radius: 24px 24px 0 0; max-height: 88vh; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
  .toasts { bottom: 92px; }
}
@media (min-width: 761px) { .mc .vol-m { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- coin / launch responsive ---------- */
@media (max-width: 1180px) {
  .cp-head { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px 12px; }
  .cp-overview { grid-column: 1 / -1; grid-row: 2; }
  .cp-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 980px) {
  .cp-layout { grid-template-columns: 1fr; }
  .cp-side { position: static; }
  #trade-card { display: none; }
  .cp-chart .chart { height: 360px; }
  body.has-trade-dock .mobile-nav { display: none; }
  body.has-trade-dock .page { padding-bottom: 120px; }
  body.has-trade-dock .site-footer { display: none; }
  .trade-dock {
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
    background: rgba(10, 11, 15, 0.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
  }
  .trade-dock .btn { height: 50px; border-radius: 12px; font-size: 16px; }
  .trade-dock .redeem-action { width: min(96px, 28vw); padding: 0 8px; font-size: 13px; }
  .trade-dock:not(:has(.redeem-action)) { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .cp-head { padding: 10px 0 14px; }
  .cp-name-line h1 { font-size: 15px; }
  .cp-fullname { display: none; }
  .cp-overview { flex-direction: column; align-items: stretch; gap: 14px; }
  .cp-price > b { font-size: 26px; }
  .cp-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
  .cp-metrics dd { font-size: 15px; }
  .cp-chart .chart { height: 260px; }
  .cp-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
  .cp-tabs button { font-size: 13px; }
  .trade-table { font-size: 12px; }
  .hide-s { display: none; }
  .vault-flow dd { font-size: 15px; }
  .ln-name-row { grid-template-columns: minmax(0, 1fr) 118px; }
  .seg-full { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); }
  .ln-head h1 { font-size: 24px; }
}

/* ---------- stats / portfolio grids ---------- */
.st-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 15px; margin-top: 15px; }
.st-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 15px; }
.st-grid .card h3, .st-grid3 .card h3 { display: flex; align-items: center; }
.kpi .sub { font-size: 12px; }
body[data-page="stats"] .page, body[data-page="portfolio"] .page { max-width: none; }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 15px; margin-top: 15px; align-items: start; }
@media (max-width: 1180px) { .st-grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 980px) { .st-grid, .st-grid3, .pf-grid { grid-template-columns: 1fr; } }

/* ---------- sign-in dialog (RUNUP-style) ---------- */
.modal.modal-signin { width: min(400px, 100%); padding: 0; overflow: hidden; }
.si-art { position: relative; height: 132px; background: #282afb; overflow: hidden; }
.si-art-img { position: absolute; inset: 0; background: url("../img/hero.webp") no-repeat right -40px center / auto 118%; }
.si-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--surface) 100%); }
.si-mark { position: absolute; left: 22px; top: 20px; width: 54px; color: #fff; z-index: 1; }
.si-mark svg { width: 100%; height: auto; }
.si-art .close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(0, 0, 0, 0.28); color: #fff; }
.si-content { padding: 4px 22px 22px; display: grid; gap: 14px; }
.si-intro h3 { margin: 0; font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.si-intro p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.si-intro strong { color: var(--text); }
.si-socials, .si-wallets { display: grid; gap: 8px; }
.si-wallets { grid-template-columns: 1fr 1fr; }
.si-btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  height: 48px; padding: 0 14px; border-radius: 12px; font-size: 15px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); transition: background .2s, transform .15s;
}
.si-btn:hover:not([disabled]) { background: var(--surface-3); }
.si-btn:active:not([disabled]) { transform: scale(.98); }
.si-btn[disabled] { opacity: .5; cursor: default; }
.si-btn.si-primary { background: #fff; color: #0a0b0f; border-color: #fff; }
.si-btn.si-primary:hover:not([disabled]) { background: #e9e9ee; }
.si-ico { display: grid; place-items: center; }
.si-wallet { justify-content: flex-start; font-size: 14px; }
.si-wallet .w-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; flex: none; }
.si-wname { flex: 1; text-align: left; }
.si-more { color: var(--text-2); justify-content: center; }
.si-wallets .si-btn:only-child, .si-wallets .si-more:nth-child(odd):last-child { grid-column: 1 / -1; }
.si-tag { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); white-space: nowrap; }
.si-primary .si-tag { position: absolute; right: 12px; background: #e8e8ff; color: #2427fc; }
.si-divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; }
.si-divider::before, .si-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.si-link { justify-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); padding: 4px 8px; }
.si-link:hover:not([disabled]) { color: var(--text); }
.si-legal { margin: 0; font-size: 12px; color: var(--text-3); text-align: center; }
.si-legal a { color: var(--text-2); text-decoration: underline; }
.si-form { display: grid; gap: 12px; }
.si-field { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.si-field input { height: 48px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); outline: 0; font-size: 16px; font-weight: 500; color: var(--text); }
.si-field input:focus { border-color: var(--brand-hi); }
.si-code { letter-spacing: .5em; font-variant-numeric: tabular-nums; text-align: center; font-size: 22px !important; font-weight: 600 !important; }
.si-code-actions { display: flex; justify-content: space-between; }
.si-code-actions button { font-size: 13px; font-weight: 600; color: var(--text-2); padding: 4px 2px; }
.si-code-actions button:hover:not([disabled]) { color: var(--text); }
.si-status { margin: 0; min-height: 18px; font-size: 13px; color: var(--text-2); text-align: center; }
.si-status:empty { display: none; }
.si-status.error { color: var(--down); }
.si-return { margin-top: 6px; }
.si-return .icon-btn { width: 34px; height: 34px; }
.si-connection { display: grid; justify-items: center; gap: 12px; padding: 8px 0 12px; text-align: center; }
.si-connection h3 { margin: 6px 0 0; font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; }
.si-connection .si-btn { margin-top: 4px; }
.si-ring { position: relative; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); }
.si-ring .w-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 22px; }
.si-ring-pulse { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--brand-hi); border-right-color: transparent; border-bottom-color: transparent; animation: spin 1.1s linear infinite; }
.si-connection.failed .si-ring-pulse { animation: none; border-color: var(--down); opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
.acct-list { display: grid; gap: 8px; }
.acct-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.acct-row .grow { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 14px; }
.acct-row .dim { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); flex: none; }
@media (max-width: 760px) {
  .modal.modal-signin { width: 100%; border-radius: 24px 24px 0 0; }
  .si-content { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

/* wallet brand icons */
.w-ico-img { overflow: hidden; padding: 0; }
.w-ico-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
