:root {
  --ink: #07060d;
  --ink-2: #0e0c18;
  --panel: rgba(18, 15, 30, 0.78);
  --panel-solid: #13101f;
  --line: rgba(233, 196, 138, 0.16);
  --line-strong: rgba(233, 196, 138, 0.38);
  --gold: #e9c48a;
  --gold-2: #c9984f;
  --gold-deep: #8a6330;
  --teal: #2ee6c8;
  --violet: #9b7bff;
  --text: #f3ece0;
  --muted: #a69cb8;
  --danger: #ff7a8a;
  --ok: #5ef0b5;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line);
  --display: 'Cinzel', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold); }
code { font-family: var(--mono); font-size: 0.86em; word-break: break-all; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Atmosphere */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(155, 123, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(46, 230, 200, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(7, 6, 13, 0.35), var(--ink) 70%),
    url('assets/bg-wide.webp') center top / cover no-repeat;
}
@media (max-width: 760px) {
  .backdrop {
    background:
      radial-gradient(600px 400px at 100% 0%, rgba(155, 123, 255, 0.2), transparent 60%),
      linear-gradient(180deg, rgba(7, 6, 13, 0.2), var(--ink) 65%),
      url('assets/bg-tall.webp') center top / cover no-repeat;
  }
}
.motes {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 22%, rgba(233, 196, 138, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 72% 14%, rgba(46, 230, 200, 0.7), transparent 60%),
    radial-gradient(2px 2px at 38% 64%, rgba(155, 123, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 86% 52%, rgba(233, 196, 138, 0.6), transparent 60%),
    radial-gradient(1px 1px at 22% 84%, rgba(46, 230, 200, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 58% 38%, rgba(233, 196, 138, 0.5), transparent 60%);
  animation: drift 18s ease-in-out infinite alternate;
  opacity: 0.8;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-12px, -28px, 0); }
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: calc(12px + var(--safe-top)) clamp(16px, 4vw, 40px) 12px;
  background: linear-gradient(180deg, rgba(7, 6, 13, 0.92), rgba(7, 6, 13, 0.6));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(233, 196, 138, 0.08);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { border-radius: 10px; }
.brand span { font-family: var(--display); font-weight: 600; letter-spacing: 0.04em; font-size: 17px; }
.brand em { font-style: normal; color: var(--gold); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(233, 196, 138, 0.08); }
.tg-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}
@media (max-width: 760px) {
  .nav { display: none; }
  .tg-link { margin-left: auto; }
  .tg-link span { display: none; }
}
body.in-telegram .topbar { position: static; }

main { width: min(1160px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  grid-template-areas: 'copy panel' 'film panel';
  grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 4vw, 64px);
  row-gap: 28px;
  align-items: start;
  padding: clamp(28px, 5vw, 64px) 0 clamp(12px, 3vw, 24px);
  scroll-margin-top: 72px;
}
.hero-copy { grid-area: copy; }
.hero-film { grid-area: film; }
.hero .panel-wrap { grid-area: panel; padding: 0; position: sticky; top: 84px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: 0.02em; margin: 0; }
h1 { font-size: clamp(32px, 5.2vw, 58px); line-height: 1.08; }
.shimmer {
  background: linear-gradient(100deg, var(--gold) 0%, #fff4dc 35%, var(--teal) 55%, var(--violet) 75%, var(--gold) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }
.lede { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); max-width: 520px; margin: 18px 0 26px; }
.hero-stats { list-style: none; display: flex; gap: clamp(18px, 4vw, 40px); padding: 0; margin: 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--display); font-size: clamp(20px, 2.4vw, 28px); color: var(--gold); }
.hero-stats span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; }
.hero-film {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 80px -20px rgba(155, 123, 255, 0.45);
  border: 1px solid var(--line-strong);
}
.hero-film video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-film figcaption {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(7, 6, 13, 0.6);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'copy' 'panel' 'film'; grid-template-rows: auto; padding-top: 22px; row-gap: 20px; }
  .hero .panel-wrap { position: static; }
  .hero-copy { text-align: center; }
  .hero-copy .lede { margin: 12px auto 0; font-size: 15px; }
  .hero-stats { justify-content: center; margin-top: 18px; }
}
@media (max-width: 560px) {
  .hero-copy .lede { display: none; }
  .hero-stats { margin-top: 14px; }
}
body.in-telegram .hero { padding-top: 14px; }
body.in-telegram .hero-copy .lede, body.in-telegram .eyebrow { display: none; }
body.in-telegram h1 { font-size: 24px; }

/* Panel */
.panel-wrap { display: flex; justify-content: center; }
.panel {
  position: relative;
  width: min(520px, 100%);
  padding: 20px;
  border-radius: calc(var(--radius) + 6px);
  background: var(--panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(233, 196, 138, 0.55), rgba(233, 196, 138, 0.06) 40%, rgba(155, 123, 255, 0.35) 80%, rgba(46, 230, 200, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.panel-head { display: flex; align-items: center; gap: 10px; margin: 2px 4px 16px; }
.panel-head h2 { font-size: 20px; flex: 1; }
.route-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--teal);
  background: rgba(46, 230, 200, 0.1);
  border: 1px solid rgba(46, 230, 200, 0.3);
}
.route-badge.standard { color: var(--violet); background: rgba(155, 123, 255, 0.1); border-color: rgba(155, 123, 255, 0.3); }

.slot {
  position: relative;
  padding: 14px 16px 12px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.slot:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 4px rgba(233, 196, 138, 0.06); }
.slot-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.slot-cab {
  width: 14px;
  height: 18px;
  background: url('assets/cabinet-sm.webp') center / contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(155, 123, 255, 0.6));
}
.slot-row { display: flex; align-items: center; gap: 12px; margin: 8px 0 6px; }
.amount {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.amount::placeholder { color: rgba(243, 236, 224, 0.25); }
.amount.out { color: var(--gold); }
.amount.out.loading { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.slot-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); min-height: 20px; }
.slot-foot .err { color: var(--danger); }

.token-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 6, 13, 0.6);
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
  max-width: 58%;
}
.token-btn:hover { border-color: var(--gold); background: rgba(233, 196, 138, 0.08); }
.token-btn:active { transform: scale(0.97); }
.token-btn img, .token-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1f1a30;
  object-fit: cover;
  flex-shrink: 0;
}
.token-btn .tk { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; min-width: 0; }
.token-btn .tk b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.token-btn .tk small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.token-btn .caret { color: var(--gold); font-size: 12px; margin-left: 2px; }
.token-btn.empty { padding: 10px 16px; color: var(--ink); background: linear-gradient(135deg, var(--gold), var(--gold-2)); border-color: transparent; font-weight: 800; }

.portal { position: relative; height: 14px; display: flex; justify-content: center; z-index: 2; }
.portal .mist {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 46px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(46, 230, 200, 0.35), rgba(155, 123, 255, 0.2) 60%, transparent);
  filter: blur(8px);
  animation: breathe 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe { 50% { opacity: 0.45; transform: translate(-50%, -50%) scale(1.15); } }
.flip {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3), border-color 0.2s;
}
.flip:hover { border-color: var(--gold); transform: translateY(-50%) rotate(180deg); }

.field { display: block; margin-top: 14px; }
.field-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 4px 8px; }
.field-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(7, 6, 13, 0.5);
}
.field-row:focus-within { border-color: var(--line-strong); }
.field-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 8px 0; font-family: var(--mono); font-size: 14px; }
.field-row.invalid { border-color: rgba(255, 122, 138, 0.6); }

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(233, 196, 138, 0.06);
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.ghost-btn:hover { background: rgba(233, 196, 138, 0.14); }
.link-btn { border: 0; background: none; padding: 0; color: var(--gold); font-family: var(--mono); font-size: 14px; }

.quote { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 0; }
.quote > div { padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(233, 196, 138, 0.08); min-width: 0; }
.quote dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.quote dd { margin: 2px 0 0; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.notice { margin: 12px 4px 0; font-size: 14px; color: var(--muted); }
.notice.err { color: var(--danger); }
.notice.warn { color: var(--gold); }

.cta {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 16px;
  padding: 17px 20px;
  border: 0;
  border-radius: 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: #1a1206;
  background: linear-gradient(135deg, #f6dcae, var(--gold) 35%, var(--gold-2) 75%, #b07c3a);
  box-shadow: 0 12px 30px -10px rgba(233, 196, 138, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.15s, filter 0.2s, opacity 0.2s;
}
.cta:hover:not(:disabled) { filter: brightness(1.06); }
.cta:active:not(:disabled) { transform: scale(0.985); }
.cta:disabled { cursor: not-allowed; opacity: 0.45; filter: grayscale(0.4); }
.cta.small { width: auto; margin: 0; padding: 12px 20px; font-size: 15px; border-radius: 14px; }
.cta-spark {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sweep 3.6s ease-in-out infinite;
}
.cta:disabled .cta-spark { display: none; }
@keyframes sweep { 60%, 100% { transform: translateX(120%); } }
.cta.busy .cta-label::after { content: ''; display: inline-block; width: 1em; text-align: left; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.fineprint { text-align: center; margin: 12px 0 0; font-size: 12px; color: var(--muted); }

/* Vanish animation on submit */
.panel.vanishing .slot-from .token-btn img { animation: vanish 0.9s forwards ease-in; }
.panel.vanishing .slot-to .token-btn img { animation: appear 0.9s 0.5s both cubic-bezier(0.2, 0.9, 0.3, 1.4); }
@keyframes vanish { to { transform: scale(0.2) rotate(200deg); opacity: 0; filter: blur(4px) hue-rotate(90deg); } }
@keyframes appear { from { transform: scale(0.2); opacity: 0; filter: blur(4px); } to { transform: scale(1); opacity: 1; } }

/* Order panel */
.back-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--gold); font-size: 18px; }
.order-stage {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 18px 8px;
  margin-bottom: 8px;
  border-radius: var(--radius);
  background: radial-gradient(400px 120px at 50% 50%, rgba(155, 123, 255, 0.16), transparent 70%), rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}
.mini-cab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 72px;
  background: url('assets/cabinet-sm.webp') center top / 56px auto no-repeat;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.mini-cab img {
  position: absolute;
  top: 26px;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(233, 196, 138, 0.8);
  transition: opacity 0.6s, transform 0.6s;
}
.mini-cab.to img { opacity: 0; transform: scale(0.3); }
.order-stage[data-step='3'] .mini-cab.from img, .order-stage[data-step='2'] .mini-cab.from img { opacity: 0; transform: scale(0.3); }
.order-stage[data-step='3'] .mini-cab.to img { opacity: 1; transform: scale(1); }
.order-stage[data-step='2'] .mini-cab.to img { opacity: 0.6; transform: scale(0.75); }
.beam { position: relative; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.beam i {
  position: absolute;
  top: 0;
  width: 30%;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--violet), transparent);
  opacity: 0;
}
.order-stage[data-step='1'] .beam i, .order-stage[data-step='2'] .beam i { opacity: 1; animation: travel 1.6s linear infinite; }
.beam i:nth-child(2) { animation-delay: 0.53s !important; }
.beam i:nth-child(3) { animation-delay: 1.06s !important; }
@keyframes travel { from { left: -30%; } to { left: 100%; } }
.order-stage[data-step='3'] .beam { background: linear-gradient(90deg, var(--teal), var(--gold)); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 4px 0 16px; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.steps b { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(233, 196, 138, 0.3); background: transparent; transition: all 0.3s; }
.steps li.done b { background: var(--gold); border-color: var(--gold); }
.steps li.done { color: var(--text); }
.steps li.active b { border-color: var(--teal); background: var(--teal); box-shadow: 0 0 0 4px rgba(46, 230, 200, 0.2); animation: pulse 1.4s infinite; }
.steps li.active { color: var(--teal); }
.steps.bad li.active b { background: var(--danger); border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 122, 138, 0.2); }
.steps.bad li.active { color: var(--danger); }

.deposit { padding: 16px; border-radius: var(--radius); border: 1px dashed var(--line-strong); background: rgba(233, 196, 138, 0.03); }
.deposit-lead { margin: 0 0 12px; font-size: 15px; }
.deposit-lead strong { color: var(--gold); }
.deposit-grid { display: flex; gap: 14px; align-items: center; }
.qr { flex-shrink: 0; border-radius: 12px; background: #fff; padding: 6px; }
.deposit-addr { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.deposit-addr code { padding: 10px 12px; border-radius: 10px; background: rgba(7, 6, 13, 0.7); border: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.memo { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
@media (max-width: 420px) {
  .deposit-grid { flex-direction: column; align-items: stretch; }
  .qr { align-self: center; }
}
.order-facts { grid-template-columns: repeat(2, 1fr); }
.order-facts dd code { font-size: 12px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 16px; }
.order-actions .cta.small { margin-left: auto; }

/* Blocks */
.block {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px) 0 8px;
  scroll-margin-top: 80px;
}
.block h3 { font-size: clamp(20px, 2.6vw, 26px); }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.empty { text-align: center; padding: 20px; border-radius: var(--radius); border: 1px dashed var(--line); margin-top: 14px; }

.track-form { display: flex; gap: 10px; margin-top: 14px; }
.track-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--mono);
  outline: 0;
}
.track-form input:focus { border-color: var(--line-strong); }

.ledger { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.ledger li button {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: left;
  transition: border-color 0.2s, transform 0.15s;
}
.ledger li button:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.ledger .pair { display: flex; align-items: center; gap: 4px; }
.ledger .pair img { width: 24px; height: 24px; border-radius: 50%; background: #1f1a30; }
.ledger .pair img + img { margin-left: -8px; box-shadow: 0 0 0 2px var(--panel-solid); }
.ledger .meta { min-width: 0; }
.ledger .meta b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger .meta small { color: var(--muted); font-size: 12px; }
.pill { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.pill.pending { color: var(--gold); background: rgba(233, 196, 138, 0.1); }
.pill.bridging, .pill.sending { color: var(--teal); background: rgba(46, 230, 200, 0.1); }
.pill.completed { color: var(--ok); background: rgba(94, 240, 181, 0.1); }
.pill.failed, .pill.refunded, .pill.expired, .pill.cancelled { color: var(--danger); background: rgba(255, 122, 138, 0.1); }

.burn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.burn-card { padding: 14px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.burn-card span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.burn-card strong { font-family: var(--display); font-size: 20px; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.burn-card em { font-style: normal; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .burn-grid { grid-template-columns: repeat(2, 1fr); } }
.burn-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.burn-list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); font-size: 14px; }
.burn-list a { text-decoration: none; font-weight: 700; }
.flame { font-size: 22px; filter: drop-shadow(0 0 10px rgba(255, 140, 60, 0.7)); animation: flicker 2.2s infinite; }
@keyframes flicker { 50% { transform: scale(1.08) rotate(-3deg); } }

.how .banner { margin: 16px 0; border-radius: var(--radius); border: 1px solid var(--line); width: 100%; height: auto; }
.how-steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.how-steps li { display: flex; gap: 12px; padding: 16px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--line); }
.how-steps b { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); color: var(--ink); background: linear-gradient(135deg, var(--gold), var(--gold-2)); }
.how-steps h4 { font-size: 16px; margin-bottom: 4px; }
.how-steps p { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 720px) { .how-steps { grid-template-columns: 1fr; } }
details { border-top: 1px solid var(--line); padding: 14px 4px; }
details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
details summary::after { content: '+'; color: var(--gold); font-size: 20px; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); margin: 8px 0 0; }

.footer { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 20px calc(32px + var(--safe-bottom)); text-align: center; color: var(--muted); }
.footer p { margin: 0; }
.footer a { color: var(--muted); }

/* Token picker sheet */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(4, 3, 8, 0.72); backdrop-filter: blur(6px); animation: fade 0.2s; }
.sheet-body {
  position: relative;
  width: min(480px, 100%);
  max-height: min(680px, 88vh);
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  animation: rise 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@media (max-width: 560px) {
  .sheet { align-items: flex-end; }
  .sheet-body { border-radius: var(--radius) var(--radius) 0 0; max-height: 86vh; padding-bottom: calc(18px + var(--safe-bottom)); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sheet-head h3 { font-size: 18px; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.search { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(7, 6, 13, 0.6); outline: 0; }
.search:focus { border-color: var(--gold); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 10px; scrollbar-width: none; flex-shrink: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; }
.chip.on { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.token-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.token-list li button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
}
.token-list li button:hover, .token-list li button:focus-visible { background: rgba(233, 196, 138, 0.07); }
.token-list .tinfo { flex: 1; min-width: 0; }
.token-list .tinfo b { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.token-list .tinfo small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.token-list .net { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.bolt { color: var(--teal); font-size: 12px; }
.tag { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: rgba(233, 196, 138, 0.15); color: var(--gold); letter-spacing: 0.06em; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 60;
  padding: 12px 18px;
  border-radius: 14px;
  background: #1b1630;
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  font-weight: 600;
  font-size: 14px;
  max-width: calc(100% - 32px);
  animation: rise 0.25s;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
