/* =============================================================================
   Cardpad — dark launchpad, liquid glass.
   The UI stays monochrome on purpose: the cards carry every colour, so the
   holo gradient is reserved for anything that is actually about a card.
   ========================================================================== */

:root {
  --bg:        #08090a;
  --bg-deep:   #050506;
  --panel:     #121315;
  --text:      #f3f4f5;
  --muted:     #f3f4f599;
  --subtle:    #f3f4f55c;
  --faint:     #f3f4f52e;
  --line:      #ffffff14;
  --line-soft: #ffffff0d;

  --mint:      #5df2a0;
  --amber:     #ffcc66;
  --rose:      #ff6b81;
  --holo: linear-gradient(115deg, #6ee7ff 0%, #a78bfa 26%, #fb7fd6 50%, #ffd36e 74%, #8cf5a6 100%);

  /* liquid glass — a tint light enough to let the foil through, a bright rim,
     a specular top edge and a sheen overlay. The blur only reads if there is
     something moving behind it, which is why the foil runs the whole page. */
  --lg-tint:          #14161ac2;
  --lg-rim:           #ffffff33;
  --lg-specular:      #ffffff4d;
  --lg-specular-side: #ffffff1f;
  --lg-sheen:         #ffffff1a;
  --lg-blur: 30px;

  --r-pill:  999px;
  --r-card:  22px;
  --r-panel: 16px;
  --r-inset: 12px;

  --sans: "Inter", "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --shell: 1140px;
  --nav-h: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* The footage only lives in the hero. Running it behind the whole document
   lifted the blacks everywhere and made every section look hazy. */
.page-bg { display: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 560; letter-spacing: -0.03em; line-height: 1.06; }
p { margin: 0; }
::selection { background: #ffffff1f; }

.shell { width: min(100% - 40px, var(--shell)); margin-inline: auto; }
@media (max-width: 640px) { .shell { width: min(100% - 28px, var(--shell)); } }

/* --- liquid glass ---------------------------------------------------------- */
.glass {
  position: relative;
  isolation: isolate;
  background: var(--lg-tint);
  border: 1px solid var(--lg-rim);
  box-shadow:
    inset 0 1px 0 var(--lg-specular),
    inset 0 -1px 0 #ffffff1a,
    inset 1px 0 2px -1px var(--lg-specular-side),
    inset -1px 0 2px -1px var(--lg-specular-side),
    0 1px 2px #00000040,
    0 24px 64px #00000073;
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(180%);
  backdrop-filter: blur(var(--lg-blur)) saturate(180%);
}
/* the sheen: light collecting along the top edge and pooling at the bottom,
   the way it does on a thick piece of glass */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--lg-sheen) 0%, transparent 38%),
    linear-gradient(to top, #ffffff14 0%, transparent 24%),
    radial-gradient(120% 60% at 12% -10%, #ffffff17 0%, transparent 60%);
}
.glass > * { position: relative; z-index: 1; }

/* a lighter pane for things sitting inside another piece of glass */
.glass-inset {
  background: #ffffff0a;
  border: 1px solid #ffffff1f;
  box-shadow: inset 0 1px 0 #ffffff24;
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}

/* --- type ------------------------------------------------------------------ */
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em; }
.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--subtle);
}
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: -0.01em; }
.lede { color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.holo-text {
  background: var(--holo);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* --- buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  font-size: 14px; font-weight: 500; letter-spacing: -0.012em;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), opacity .18s;
  white-space: nowrap;
}
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .38; cursor: not-allowed; }
.btn-primary { background: #fff; color: #0a0a0b; font-weight: 560; }
.btn-primary:hover:not(:disabled) { background: #e9eaec; }
.btn-ghost {
  background: #ffffff0a; border-color: var(--line); color: var(--text);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-ghost:hover:not(:disabled) { background: #ffffff14; border-color: #ffffff2b; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
/* square, icon-only button — the X link in the nav */
.btn-icon { width: 34px; padding: 0; flex: none; color: var(--muted); }
.btn-icon:hover { color: var(--text); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }

/* --- nav ------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: #08090ab8; border-bottom-color: var(--line-soft);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
}
.nav-inner { display: flex; align-items: center; gap: 18px; width: min(100% - 40px, var(--shell)); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 570; letter-spacing: -0.045em; font-size: 16.5px; }
.brand-mark { width: 22px; height: 22px; flex: none; border-radius: 6px; object-fit: cover; }
.nav-links { display: flex; gap: 2px; margin-left: 8px; }
.nav-links a {
  padding: 7px 12px; border-radius: var(--r-pill); font-size: 13.5px; color: var(--muted);
  transition: color .18s, background .18s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: #ffffff0d; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (max-width: 780px) { .nav-links { display: none; } }

/* --- wallet pill ----------------------------------------------------------- */
.wallet-pill { display: inline-flex; align-items: center; gap: 8px; }
.wallet-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); flex: none; box-shadow: 0 0 0 3px #5df2a01f; }

/* --- hero ------------------------------------------------------------------ */
.hero { position: relative; min-height: min(96vh, 820px); display: flex; align-items: center; padding: calc(var(--nav-h) + 62px) 0 76px; }
/* the foil at full strength for the length of the hero, fading into the page's
   own quieter copy of it */
.hero-bg { position: absolute; inset: -1px 0 0 0; overflow: hidden; z-index: 0; }
.hero-bg video, .hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
/* A directional scrim rather than a flat dim: the copy sits in a pool of dark
   on the left while the footage stays fully itself on the right. */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, #050506f2 0%, #050506e0 28%, #05050699 48%, #05050626 68%, transparent 88%),
    linear-gradient(to bottom, #050506cc 0%, #05050600 22%, #05050600 62%, #050506e6 92%, #050506 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 30px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; } }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); letter-spacing: -0.045em; line-height: 1.03; max-width: 20ch; }
.hero .lede { margin-top: 20px; max-width: 44ch; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }

/* the floating card: a real split, rendered on glass over the foil */
.hero-card { padding: 22px; border-radius: var(--r-card); }
.hero-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hero-card-head .eyebrow { margin: 0; }
.hero-coin { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.hero-coin-logo {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: var(--holo); box-shadow: inset 0 1px 0 #ffffff5c;
}
.hero-coin b { display: block; font-size: 15px; font-weight: 540; letter-spacing: -0.02em; }
.hero-coin span { font-size: 12px; color: var(--subtle); }
.hero-card .route-row { padding: 10px 0; }
.hero-card-foot {
  margin-top: 14px; padding: 11px 13px; border-radius: var(--r-inset);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px;
}

.hero-stats {
  margin-top: 34px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--r-panel); padding: 4px;
}
.hero-stat { padding: 15px 22px; min-width: 0; }
.hero-stat + .hero-stat { border-left: 1px solid var(--line-soft); }
.hero-stat dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); margin-bottom: 5px; }
.hero-stat dd { margin: 0; font-size: 17px; font-weight: 520; letter-spacing: -0.02em; }
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stat { padding: 13px 16px; }
  .hero-stat:nth-child(odd) { border-left: none; }
  .hero-stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}

/* --- sections -------------------------------------------------------------- */
.section { padding: 78px 0; position: relative; }
.section-head { max-width: 60ch; margin-bottom: 38px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.038em; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 16px; }
.rule { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* --- card lanes ------------------------------------------------------------ */
.lanes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lane {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r-card); overflow: hidden;
  aspect-ratio: 3 / 4.35; border: 1px solid var(--line);
  background:
    radial-gradient(90% 62% at 50% 34%, #ffffff0f 0%, transparent 70%),
    linear-gradient(#101114 0%, #0a0b0d 100%);
  transition: transform .4s var(--ease), border-color .3s, background .3s;
}
.lane:hover { transform: translateY(-4px); border-color: #ffffff30; }

/* the card itself, shown whole the way it would sit in a slab */
/* flex:1 1 0 + min-height:0 gives the art box a definite height, and
   object-fit:contain keeps the card inside it whatever its own dimensions are —
   max-height:100% alone let tall scans push straight through the label. */
.lane-art { flex: 1 1 0; min-height: 0; padding: 18px 16px 2px; }
.lane-art img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 14px 26px #000000a6) drop-shadow(0 2px 4px #00000080);
  transform: rotate(-2.2deg);
  transition: transform .5s var(--ease);
}
.lane:hover .lane-art img { transform: rotate(0deg) scale(1.045); }

.lane-body { padding: 12px 16px 16px; }
.lane-body h3 { font-size: 15.5px; letter-spacing: -0.025em; }
.lane-body span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--subtle); }
.lane-chip {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
  padding: 5px 9px; border-radius: var(--r-pill);
  background: #05050699; border: 1px solid #ffffff1f; color: #f3f4f5cc;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* --- steps ----------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 26px; border-radius: var(--r-card); }
.step-n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 560; background: #ffffff12; border: 1px solid var(--line); color: var(--text);
  margin-bottom: 16px;
}
.step h3 { font-size: 17.5px; letter-spacing: -0.028em; }
.step p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.62; }

/* --- routing panel --------------------------------------------------------- */
.route-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 940px) { .route-wrap { grid-template-columns: minmax(0, 1fr); } }
.route-panel { padding: 26px; border-radius: var(--r-card); }

.split-bar { display: flex; height: 12px; border-radius: var(--r-pill); overflow: hidden; background: #ffffff0d; gap: 2px; }
.split-seg { height: 100%; transition: flex-grow .45s var(--ease); min-width: 3px; }

.route-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.route-row:last-child { border-bottom: 0; }
.route-thumb {
  width: 40px; height: 54px; flex: none; border-radius: 7px; object-fit: cover;
  background: #ffffff0d; border: 1px solid var(--line);
}
.route-meta { min-width: 0; flex: 1; }
.route-meta strong { display: block; font-size: 14px; font-weight: 520; letter-spacing: -0.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-meta span { font-size: 12px; color: var(--subtle); }
.route-pct { font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 540; min-width: 52px; text-align: right; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: grab;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 3px; background: #ffffff1f; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; margin-top: -6px;
  background: #fff; border: 0; box-shadow: 0 1px 6px #00000080;
}
input[type="range"]:active { cursor: grabbing; }

/* --- forms ----------------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; letter-spacing: -0.005em; }
.input, .textarea, .select {
  width: 100%; background: #ffffff08; border: 1px solid var(--line);
  border-radius: var(--r-inset); padding: 11px 13px; font-size: 14.5px;
  transition: border-color .18s, background .18s; outline: none;
}
.input:focus, .textarea:focus, .select:focus { border-color: #ffffff3d; background: #ffffff0f; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 620px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.hint { font-size: 12px; color: var(--subtle); margin-top: 6px; }

/* --- card picker ----------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.card-pick {
  position: relative; border-radius: 14px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); background: #ffffff05; text-align: left; padding: 0;
  transition: border-color .2s, transform .2s var(--ease);
}
.card-pick:hover { transform: translateY(-2px); border-color: #ffffff33; }
.card-pick.is-on { border-color: transparent; }
.card-pick.is-on::before {
  content: ""; position: absolute; inset: 0; border-radius: 14px; padding: 1.5px;
  background: var(--holo);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 3;
}
.card-pick figure { margin: 0; aspect-ratio: 3 / 4; background: #0e0f11; overflow: hidden; }
.card-pick figure img { width: 100%; height: 100%; object-fit: cover; }
.card-pick figcaption { padding: 9px 10px 11px; }
.card-pick figcaption strong { display: block; font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-pick figcaption span { font-size: 11px; color: var(--subtle); }
.card-tick {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: #05050699; border: 1px solid #ffffff29; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s var(--ease);
}
.card-pick.is-on .card-tick { opacity: 1; transform: scale(1); background: #fff; border-color: #fff; color: #08090a; }
.card-badge {
  position: absolute; top: 8px; left: 8px; z-index: 4;
  font-size: 9.5px; letter-spacing: .07em; text-transform: uppercase; font-weight: 500;
  padding: 3px 7px; border-radius: var(--r-pill);
  background: #05050699; border: 1px solid #ffffff1f; color: #f3f4f5b3;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* --- table ----------------------------------------------------------------- */
.table-wrap { border-radius: var(--r-card); overflow: hidden; }
.tscroll { overflow-x: auto; }
table.feed { width: 100%; border-collapse: collapse; min-width: 780px; }
table.feed th {
  text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle);
  font-weight: 500; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); white-space: nowrap;
}
table.feed td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); font-size: 14px; vertical-align: middle; }
table.feed tr:last-child td { border-bottom: 0; }
table.feed tbody tr { transition: background .18s; }
table.feed tbody tr:hover { background: #ffffff05; }
.coin-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.coin-logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: #ffffff0d; flex: none; }
.coin-cell b { font-weight: 520; letter-spacing: -0.015em; }
.coin-cell span { display: block; font-size: 12px; color: var(--subtle); }
.num { font-variant-numeric: tabular-nums; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: var(--r-pill); font-size: 11.5px; letter-spacing: -0.005em;
  background: #ffffff0d; border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.pill-holo { border-color: transparent; position: relative; color: var(--text); background: #ffffff0f; }
.pill-holo::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-pill); padding: 1px;
  background: var(--holo);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* --- misc ------------------------------------------------------------------ */
.stack-sm > * + * { margin-top: 10px; }
.stack   > * + * { margin-top: 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.center { text-align: center; }
.empty { padding: 40px 20px; text-align: center; color: var(--subtle); font-size: 14px; }
.spinner {
  width: 15px; height: 15px; border-radius: 50%; border: 2px solid #ffffff29; border-top-color: #fff;
  animation: spin .7s linear infinite; display: inline-block; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.notice { padding: 12px 14px; border-radius: var(--r-inset); font-size: 13.5px; line-height: 1.5; border: 1px solid var(--line); background: #ffffff08; }
.notice-bad { border-color: #ff6b8147; background: #ff6b810f; color: #ffc2ca; }
.notice-good { border-color: #5df2a03d; background: #5df2a00f; color: #b6f5d4; }
.notice-warn { border-color: #ffcc6640; background: #ffcc660f; color: #ffe6b3; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* --- footer ---------------------------------------------------------------- */
.footer { padding: 56px 0 44px; border-top: 1px solid var(--line-soft); margin-top: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px 60px; justify-content: space-between; }
.footer h4 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); font-weight: 500; margin-bottom: 12px; }
.footer a { display: block; color: var(--muted); font-size: 14px; padding: 3px 0; transition: color .18s; }
.footer a:hover { color: var(--text); }
.footer-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--subtle); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }

/* --- modal + toast ---------------------------------------------------------- */
.modal-back {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: #05050699; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .22s var(--ease);
}
.modal-back.in { opacity: 1; }
.modal {
  width: min(100%, 380px); border-radius: var(--r-card); padding: 24px;
  transform: translateY(10px) scale(.985); transition: transform .28s var(--ease);
}
.modal-back.in .modal { transform: none; }
.modal h3 { font-size: 19px; letter-spacing: -0.03em; }
.modal > p { margin-top: 8px; font-size: 13px; line-height: 1.55; }
.modal-wide { width: min(100%, 620px); }
.wallet-list { display: grid; gap: 8px; margin: 20px 0 14px; }
.wallet-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer;
  padding: 11px 14px; border-radius: var(--r-inset); text-align: left;
  background: #ffffff08; border: 1px solid var(--line); font-size: 14.5px; font-weight: 480;
  transition: background .18s, border-color .18s;
}
.wallet-opt:hover { background: #ffffff14; border-color: #ffffff33; }
.wallet-opt img { width: 24px; height: 24px; border-radius: 6px; flex: none; }

.toasts { position: fixed; z-index: 300; right: 18px; bottom: 18px; display: grid; gap: 8px; width: min(calc(100vw - 36px), 380px); }
.toast {
  border-radius: var(--r-inset); padding: 12px 14px; font-size: 13.5px; line-height: 1.5;
  opacity: 0; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.in { opacity: 1; transform: none; }
.toast-bad  { border-color: #ff6b8147; color: #ffc9d0; }
.toast-good { border-color: #5df2a03d; color: #b6f5d4; }

/* --- app pages -------------------------------------------------------------- */
.app-page { background: var(--bg-deep); }
.app-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.app-bg video { width: 100%; height: 100%; object-fit: cover; opacity: .16; filter: saturate(.9); }
.app-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(100% 70% at 50% 0%, #05050699 0%, #050506e6 55%, var(--bg-deep) 100%);
}
.app-main { position: relative; z-index: 1; padding: calc(var(--nav-h) + 44px) 0 60px; }
.app-head { max-width: 62ch; margin-bottom: 30px; }
.app-head h1 { font-size: clamp(28px, 4.4vw, 42px); letter-spacing: -0.038em; margin-top: 10px; }
.app-head .lede { margin-top: 14px; font-size: 15.5px; }

.tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: #ffffff0a; border: 1px solid var(--line-soft); width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 20px; }
.tab {
  border: 0; background: transparent; cursor: pointer; white-space: nowrap;
  padding: 8px 16px; border-radius: var(--r-pill); font-size: 13.5px; color: var(--muted);
  transition: background .18s, color .18s;
}
.tab:hover { color: var(--text); }
.tab.is-on { background: #ffffff14; color: var(--text); }

.panel-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 980px) { .panel-grid { grid-template-columns: minmax(0, 1fr); } }

.pane { padding: 26px; border-radius: var(--r-card); }
.pane-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.pane-head .step-n { margin-bottom: 0; flex: none; margin-top: 2px; }
.pane-head h2 { font-size: 19px; letter-spacing: -0.03em; }
.pane-head p { margin-top: 5px; font-size: 13.5px; line-height: 1.55; }

.summary { position: sticky; top: calc(var(--nav-h) + 16px); }
.summary h2 { font-size: 16px; letter-spacing: -0.025em; }
@media (max-width: 980px) { .summary { position: static; } }
.sum-coin { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.sum-logo { width: 44px; height: 44px; border-radius: 11px; background: #ffffff0d; border: 1px solid var(--line); background-size: cover; background-position: center; flex: none; }
.sum-coin strong { display: block; font-size: 15px; font-weight: 520; letter-spacing: -0.02em; }
.sum-coin span { font-size: 12.5px; }

.uploader { display: flex; gap: 14px; align-items: center; }
.uploader-preview {
  width: 74px; height: 74px; flex: none; border-radius: 14px; overflow: hidden;
  background: #ffffff08; border: 1px dashed #ffffff29; display: grid; place-items: center;
  background-size: cover; background-position: center; font-size: 11px;
}
.uploader-body { min-width: 0; }
.uploader-body .hint { margin-top: 8px; }

.more { margin-top: 4px; }
.more summary { cursor: pointer; font-size: 13.5px; color: var(--muted); padding: 8px 0; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+ "; color: var(--subtle); }
.more[open] summary::before { content: "− "; }
.more summary:hover { color: var(--text); }

/* picker */
.picker-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  padding: 6px 12px; border-radius: var(--r-pill); font-size: 12.5px; cursor: pointer;
  background: #ffffff08; border: 1px solid var(--line); color: var(--muted);
  transition: background .18s, color .18s, border-color .18s;
}
.chip:hover { color: var(--text); border-color: #ffffff2b; }
.chip.is-on { background: #ffffff1a; color: var(--text); border-color: #ffffff33; }
.picker-scroll { max-height: 430px; overflow-y: auto; padding-right: 4px; margin: 0 -2px; }
.picker-scroll::-webkit-scrollbar { width: 8px; }
.picker-scroll::-webkit-scrollbar-thumb { background: #ffffff1a; border-radius: 8px; }

.alloc { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.alloc-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 92px 30px; gap: 12px; align-items: center; padding: 9px 0; }
.alloc-row img { width: 40px; height: 54px; border-radius: 7px; object-fit: cover; background: #ffffff0d; border: 1px solid var(--line); }
.alloc-name strong { display: block; font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alloc-name span { font-size: 11.5px; color: var(--subtle); }
.alloc-num { display: flex; align-items: center; gap: 4px; }
.alloc-num input {
  width: 58px; text-align: right; background: #ffffff08; border: 1px solid var(--line);
  border-radius: 9px; padding: 6px 8px; font-size: 13.5px; font-variant-numeric: tabular-nums; outline: none;
}
.alloc-num input:focus { border-color: #ffffff3d; }
.alloc-del { background: transparent; border: 0; color: var(--subtle); cursor: pointer; font-size: 17px; line-height: 1; padding: 4px; border-radius: 6px; }
.alloc-del:hover { color: var(--rose); background: #ffffff0d; }
@media (max-width: 560px) { .alloc-row { grid-template-columns: 34px minmax(0, 1fr) 78px 26px; gap: 8px; } .alloc-row img { width: 34px; height: 46px; } }

.coin-list { display: grid; gap: 8px; max-height: 340px; overflow-y: auto; }
.coin-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: var(--r-inset); background: #ffffff05; border: 1px solid var(--line);
  transition: background .18s, border-color .18s;
}
.coin-opt:hover { background: #ffffff0d; border-color: #ffffff2b; }
.coin-opt.is-on { border-color: #ffffff4d; background: #ffffff12; }
.coin-opt b { font-weight: 520; font-size: 14px; }
.coin-opt small { display: block; color: var(--subtle); font-size: 12px; }

.payout-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.payout-row:last-child { border-bottom: 0; }
.payout-main { flex: 1 1 220px; min-width: 0; }
.payout-main b { font-weight: 520; }
.payout-main small { display: block; color: var(--subtle); font-size: 12px; }
