/* CryptotoInr — design system
   Deep-navy night, slate cards, white controls, a cool teal-to-cyan accent.
   Dark only. Glows and rings are drawn in CSS/SVG (no third-party assets). */

:root {
  --bg: #081336;
  --paper: #081336;
  --paper-2: rgba(70, 77, 102, .16);
  --surface: #17202e;
  --surface-2: #202a3e;
  --surface-3: #283349;
  --ink: #ffffff;
  --ink-2: #c3cbe0;
  --ink-3: #8a94b0;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .14);
  --accent: #6ae4ff;
  --accent-ink: #04122f;
  --accent-soft: rgba(0, 209, 255, .12);
  --grad: linear-gradient(73.6deg, #34edb3 2.11%, #00d1ff);
  --marigold: #ffcf5c;
  --up: #34edb3;
  --up-soft: rgba(52, 237, 179, .12);
  --down: #ff6b81;
  --down-soft: rgba(255, 107, 129, .12);
  --warn: #ffcf5c;
  --warn-soft: rgba(255, 207, 92, .12);
  --shadow-1: 0 2px 8px rgba(0, 0, 0, .25);
  --shadow-2: 0 10px 40px rgba(0, 4, 20, .55);
  --font-display: "Open Sans", system-ui, sans-serif;
  --font-ui: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Open Sans", system-ui, sans-serif;
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 16px;
  --ease: cubic-bezier(.17, .17, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}
main { flex: 1; position: relative; z-index: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #00d1ff; color: #04122f; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
input, textarea { caret-color: var(--accent); }
* { scrollbar-width: thin; scrollbar-color: #2a3550 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a3550; border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* film grain over everything, drawn with SVG noise */
.grain { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* soft colour glows used behind sections */
.glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(70px); z-index: 0; }
.glow-blue { background: radial-gradient(closest-side, rgba(37, 99, 235, .85), rgba(37, 99, 235, 0)); }
.glow-cyan { background: radial-gradient(closest-side, rgba(6, 182, 212, .8), rgba(6, 182, 212, 0)); }
.glow-indigo { background: radial-gradient(closest-side, rgba(67, 56, 202, .75), rgba(67, 56, 202, 0)); }
.app-glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.app-glow::before, .app-glow::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); }
.app-glow::before { width: 720px; height: 720px; left: -320px; top: -260px; background: radial-gradient(closest-side, rgba(37, 99, 235, .45), transparent); }
.app-glow::after { width: 640px; height: 640px; right: -300px; bottom: -280px; background: radial-gradient(closest-side, rgba(6, 182, 212, .32), transparent); }

h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.display { font-weight: 600; letter-spacing: -2px; line-height: 1.2; }
.h1 { font-size: clamp(2.4rem, 4.8vw, 3.5rem); letter-spacing: -2px; line-height: 1.25; font-weight: 600; }
.h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); letter-spacing: -1px; line-height: 1.25; font-weight: 600; }
.h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.page-title { font-size: clamp(1.8rem, 3vw, 2.3rem); letter-spacing: -1px; line-height: 1.2; font-weight: 600; }
.lede { font-size: 1.0625rem; color: var(--ink-2); max-width: 60ch; line-height: 1.65; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--ink-3); }
.soft { color: var(--ink-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cur { font-size: .78em; color: var(--ink-3); font-weight: 400; margin-left: 3px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; }
.container-wide { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 16px; position: relative; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
@media (max-width: 760px) { .hide-sm { display: none !important; } }

.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--surface-2);
  --b-fg: var(--ink);
  --b-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 22px;
  border-radius: var(--r-1);
  border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg);
  font-weight: 600; font-size: 14px; letter-spacing: -0.01em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .2s var(--ease), opacity .3s;
}
.btn:hover { --b-bd: rgba(255, 255, 255, .32); --b-bg: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; transform: none; }
.btn-primary, .btn-ink { --b-bg: #ffffff; --b-fg: #000000; --b-bd: #ffffff; }
.btn-primary:hover, .btn-ink:hover { --b-bg: #dff8ff; --b-bd: #dff8ff; }
.btn-outline { --b-bg: transparent; --b-fg: #fff; --b-bd: rgba(255, 255, 255, .85); }
.btn-outline:hover { --b-bg: rgba(255, 255, 255, .08); --b-bd: #fff; }
.btn-up { --b-bg: var(--up); --b-fg: #03231a; --b-bd: var(--up); }
.btn-down { --b-bg: var(--down); --b-fg: #2b0710; --b-bd: var(--down); }
.btn-up:hover { --b-bg: #5ff3c4; --b-bd: #5ff3c4; }
.btn-down:hover { --b-bg: #ff8597; --b-bd: #ff8597; }
.btn-ghost { --b-bg: transparent; --b-bd: transparent; }
.btn-ghost:hover { --b-bg: rgba(255, 255, 255, .06); --b-bd: transparent; }
.btn-text { background: none; border: 0; color: #fff; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none; padding: 0; }
.btn-text .icon { transition: transform .3s var(--ease); }
.btn-text:hover .icon { transform: translateX(3px); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-sm.btn-icon { width: 32px; }
.btn .spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link { color: var(--accent); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hint { font-size: 12.5px; color: var(--ink-3); }
.error-text { font-size: 12.5px; color: var(--down); }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 16px;
  border-radius: var(--r-1);
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(70, 77, 102, .15);
  color: var(--ink);
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s;
}
.textarea { height: auto; padding: 12px 16px; min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #6f7a97; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, .18); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: #00d1ff; background: rgba(70, 77, 102, .22); box-shadow: 0 0 0 3px rgba(0, 209, 255, .12); }
.input[aria-invalid="true"] { border-color: var(--down); }
.input:disabled { opacity: .6; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a94b0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.select option { background: #17202e; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-right: 76px; }
.input-group .suffix { position: absolute; right: 14px; font-size: 13px; font-weight: 600; color: var(--ink-3); pointer-events: none; }
.input-num { font-variant-numeric: tabular-nums; }
.check { display: inline-flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { accent-color: #00d1ff; width: 16px; height: 16px; margin-top: 3px; }

.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #2a3550; border-radius: 24px; transition: background .35s var(--ease); }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .35s var(--ease); }
.switch input:checked + span { background: #00b8e6; }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* pills (segmented) */
.seg { display: inline-flex; padding: 0; gap: 6px; background: transparent; border-radius: 80px; }
.seg button { border: 0; background: transparent; height: 34px; padding: 0 22px; border-radius: 80px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: #b2bbd4; cursor: pointer; transition: background-color .5s var(--ease), color .5s var(--ease); white-space: nowrap; }
.seg button:hover { color: #fff; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: #fff; color: #000; }
.seg.seg-buy-sell { background: rgba(70, 77, 102, .2); padding: 4px; }
.seg.seg-buy-sell button[data-side="buy"][aria-pressed="true"] { background: var(--up); color: #03231a; }
.seg.seg-buy-sell button[data-side="sell"][aria-pressed="true"] { background: var(--down); color: #2b0710; }
.seg-block { display: flex; }
.seg-block button { flex: 1; }

.tabs { flex: none; display: flex; gap: 26px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 0; font-weight: 600; font-size: 14px; color: var(--ink-3); cursor: pointer; position: relative; white-space: nowrap; transition: color .3s; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); border-radius: 2px; }

/* ---------- surfaces ---------- */
.panel { background: var(--surface); border: 0; border-radius: 15px; position: relative; }
.panel-pad { padding: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 6px 0; }
.kv dt, .kv .k { color: var(--ink-3); }
.kv dd, .kv .v { margin: 0; font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 80px; font-size: 12px; font-weight: 600; background: rgba(70, 77, 102, .35); color: var(--ink-2); white-space: nowrap; }
.tag-up { background: var(--up-soft); color: var(--up); }
.tag-down { background: var(--down-soft); color: var(--down); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-accent { background: var(--accent-soft); color: var(--accent); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.coin { --c: #999; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--c); color: #fff; font: 700 12px/1 "Segoe UI", system-ui, sans-serif; letter-spacing: -0.02em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 -6px 10px rgba(0,0,0,.18); }
.coin-sm { width: 22px; height: 22px; font-size: 9.5px; }
.coin-lg { width: 40px; height: 40px; font-size: 14px; }
.coin-img { background: transparent; box-shadow: none; overflow: hidden; }
.coin-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.coin-img.sq img { transform: scale(1.12); border-radius: 0; }
.coin-inr { background: #2a3550; font-size: 8.5px; letter-spacing: .02em; }
.coin-lg.coin-inr { font-size: 11px; }
.asset { display: flex; align-items: center; gap: 12px; min-width: 0; }
.asset .sym { font-weight: 600; }
.asset .name { color: var(--ink-3); font-size: 13px; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--ink-3); padding: 12px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { transition: background .35s var(--ease); }
.tbl tbody tr:hover { background: rgba(70, 77, 102, .12); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl td.r, .tbl td.num-cell { font-variant-numeric: tabular-nums; }
.tbl-compact td { padding: 10px 16px; }
.tbl-compact th { padding: 9px 16px; }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: #fff; }

.empty { padding: 48px 24px; text-align: center; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .icon { width: 28px; height: 28px; color: #3a4663; }
.empty strong { color: var(--ink); font-weight: 600; }

/* ---------- top bar + nav ---------- */
.banner { background: linear-gradient(90deg, #0b3fd6, #1452ff 50%, #0b3fd6); color: #fff; font-size: 13.5px; position: relative; z-index: 41; }
.banner .container { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; text-align: center; }
.banner a { color: #fff; font-weight: 600; }
.banner.banner-warn { background: linear-gradient(90deg, #8a5a00, #b07800 50%, #8a5a00); }

.nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); }
.nav::before { content: ""; position: absolute; inset: 0; background: rgba(4, 15, 55, .48); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; transition: opacity .5s var(--ease); }
.nav.scrolled::before { opacity: 1; }
.nav .container, .nav .container-wide { height: 100%; display: flex; align-items: center; gap: 28px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.03em; font-size: 19px; flex: none; color: #fff; }
.brand-mark { width: 28px; height: 28px; }
.brand b { font-weight: 700; color: #f2c94c; background: linear-gradient(100deg, #fff1b8, #f2c94c 35%, #c99632 60%, #fbe39b 85%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 36px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: #fff; opacity: .72; transition: opacity .333s cubic-bezier(.68, 0, .83, .83); }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a.nav-spin { display: inline-flex; align-items: center; gap: 6px; opacity: 1; padding: 4px 12px 4px 10px; margin: -4px 0; border-radius: 80px; background: linear-gradient(#1a1608, #0d1a44) padding-box, linear-gradient(135deg, #fff1b8, #f2c94c 35%, #a8761a 60%, #f7dc8a) border-box; border: 1px solid transparent; color: #f7dc8a; transition: box-shadow .4s var(--ease); }
.nav-links a.nav-spin .icon { color: #f2c94c; }
.nav-links a.nav-spin:hover { box-shadow: 0 0 20px rgba(242, 201, 76, .4); }
@media (max-width: 1200px) { .nav-links { gap: 24px; } }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; }
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-links.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: var(--nav-h); left: 0; right: 0; transform: none; background: #0d1a44; border-bottom: 1px solid var(--line); padding: 10px 16px 16px; box-shadow: var(--shadow-2); }
  .nav-links.open a { padding: 12px; font-size: 15px; opacity: 1; }
  .nav-right .btn-auth-secondary { display: none; }
}

.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; background: #fefefe; color: #0b1430; border-radius: 8px; box-shadow: var(--shadow-2); padding: 8px; display: none; z-index: 50; }
.menu-pop.open { display: block; animation: pop .375s var(--ease-out); }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 6px; border: 0; background: none; text-decoration: none; font-size: 14px; font-weight: 600; color: #26304d; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: #eef3ff; color: #000; }
.menu-pop .muted { color: #6b7591; }
.menu-pop .divider { background: #e6e9f2; }
.menu-pop .tag { background: #eef1f7; color: #4a5571; }
.menu-pop .tag-up { background: #ddf7ee; color: #0a7f5c; }
.menu-pop .tag-warn { background: #fff3d6; color: #8a5a00; }
.menu-pop .tag-down { background: #ffe3e8; color: #b4183a; }
.menu-pop .empty .icon { color: #b7bfd3; }
.menu-head { padding: 10px 10px 12px; border-bottom: 1px solid #e6e9f2; margin-bottom: 6px; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }

.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #04122f; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; flex: none; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 1; margin-top: 120px; padding: 72px 0 32px; background: linear-gradient(180deg, rgba(23, 32, 62, .55), rgba(16, 28, 70, .85)); overflow: hidden; }
.footer::before { content: ""; position: absolute; width: 900px; height: 520px; left: -380px; bottom: -300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(37, 99, 235, .5), transparent); filter: blur(60px); }
.footer::after { content: ""; position: absolute; width: 760px; height: 460px; right: -320px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(6, 182, 212, .28), transparent); filter: blur(60px); }
.footer .container { z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer h4 { font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer a { text-decoration: none; color: #b2bbd4; font-size: 14px; font-weight: 600; transition: color .3s; }
.footer a:hover { color: #fff; }
.subscribe { display: flex; gap: 8px; margin-top: 28px; max-width: 380px; }
.subscribe .input { height: 42px; flex: 1; min-width: 190px; }
.subscribe .btn { height: 42px; flex: none; }
.footer .legal { margin-top: 64px; padding-top: 24px; font-size: 12.5px; color: #8a94b0; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }
.footer .legal strong { color: #fff; }
.footer .disclaimer { margin-top: 18px; font-size: 12px; color: #6f7a97; max-width: 110ch; line-height: 1.6; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.app-page .footer { margin-top: 64px; }

.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(140, 150, 180, .45); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s; backdrop-filter: blur(8px); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: rgba(170, 180, 210, .6); }

/* ---------- toast & sheet ---------- */
.toasts { position: fixed; bottom: 84px; right: 24px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; background: #fefefe; color: #0b1430; padding: 12px 16px; border-radius: 8px; box-shadow: var(--shadow-2); font-size: 14px; font-weight: 600; animation: toastIn .5s var(--ease-out); }
.toast .icon { margin-top: 2px; }
.toast.ok .icon { color: #0aa77a; }
.toast.err .icon { color: #e0294a; }
.toast.info .icon { color: #0094c6; }
.toast.leaving { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

.sheet-backdrop { position: fixed; inset: 0; background: rgba(2, 8, 28, .6); backdrop-filter: blur(4px); z-index: 80; opacity: 0; transition: opacity .4s var(--ease); }
.sheet-backdrop.open { opacity: 1; }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: var(--surface); z-index: 81; box-shadow: var(--shadow-2); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .5s var(--ease-out); }
.sheet.open { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.sheet-body { padding: 24px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 18px; }
.sheet-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; }

/* ---------- app layout ---------- */
.page-head { padding: 40px 0 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head p { color: var(--ink-2); margin-top: 8px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 8px; background: var(--warn-soft); color: var(--ink); font-size: 14px; }
.notice .icon { color: var(--warn); margin-top: 2px; }
.notice.info { background: rgba(70, 77, 102, .2); }
.notice.info .icon { color: var(--accent); }
.notice.danger { background: var(--down-soft); }
.notice.danger .icon { color: var(--down); }

.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-radius: 15px; background: var(--surface); overflow: hidden; }
.stat-strip > div { padding: 20px 22px; border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip .k { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.stat-strip .v { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-strip .d { font-size: 12.5px; margin-top: 2px; }

.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 80px; border: 0; background: rgba(70, 77, 102, .3); font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background .4s var(--ease), color .3s; }
.chip-btn:hover { color: #fff; background: rgba(70, 77, 102, .5); }
.chip-btn[aria-pressed="true"] { background: #fff; color: #000; }

.copy-field { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 6px; background: rgba(70, 77, 102, .15); font-size: 13px; word-break: break-all; font-variant-numeric: tabular-nums; }
.copy-field span { flex: 1; }

.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-bottom: 22px; position: relative; }
.step::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line-2); }
.step:last-child::before { display: none; }
.step .marker { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #34405c; display: grid; place-items: center; background: var(--surface); font-size: 12px; font-weight: 700; color: var(--ink-3); }
.step.done .marker { background: var(--up); border-color: var(--up); color: #03231a; }
.step.active .marker { border-color: #00d1ff; color: #00d1ff; }
.step.done::before { background: var(--up); }

/* scroll-in reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

.flash-up { animation: flashUp .9s var(--ease); }
.flash-down { animation: flashDown .9s var(--ease); }
@keyframes flashUp { from { color: var(--up); } }
@keyframes flashDown { from { color: var(--down); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
