:root {
  color-scheme: dark;
  --bg: #04070f;
  --bg-2: #080f20;
  --surface: rgba(12, 20, 38, 0.78);
  --surface-strong: rgba(14, 24, 46, 0.94);
  --surface-inset: rgba(5, 9, 20, 0.86);
  --line: rgba(255, 255, 255, 0.085);
  --line-gold: rgba(244, 200, 106, 0.34);
  --line-cyan: rgba(56, 189, 248, 0.3);
  --text: #f1f5ff;
  --muted: #8ea0c2;
  --dim: #647494;
  --gold: #f4c86a;
  --gold-hi: #fde69e;
  --gold-deep: #c98622;
  --jade: #34d399;
  --cyan: #38bdf8;
  --rose: #fb7185;
  --amber: #fbbf24;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --font-sans: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 12% -10%, rgba(244, 200, 106, 0.14), transparent 60%),
    radial-gradient(ellipse 70% 45% at 88% 0%, rgba(56, 189, 248, 0.11), transparent 58%),
    radial-gradient(ellipse 65% 45% at 50% 100%, rgba(52, 211, 153, 0.07), transparent 60%);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 92% 65% at 50% 10%, #000 30%, transparent 90%);
  z-index: 0;
}

a { color: var(--gold); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--gold-hi); }
code, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 0.87em;
  color: #dbeafe;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 7, 15, 0.8);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 11px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15.5px; letter-spacing: -0.02em; }
.brand-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.13);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}
.brand-sub { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }

.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 13px;
  border: 1px solid var(--line);
}
.nav-btn, .nav-link {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 7px 13px;
  border-radius: 9px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.nav-btn:hover, .nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-btn.is-active {
  color: var(--gold-hi);
  background: linear-gradient(135deg, rgba(244, 200, 106, 0.18), rgba(201, 134, 34, 0.09));
  border-color: rgba(244, 200, 106, 0.28);
}

.wallet-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}
.status-pill .beacon { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: pulseDot 2s infinite; }
.status-pill.is-online { color: var(--jade); border-color: rgba(52, 211, 153, 0.32); background: rgba(52, 211, 153, 0.1); }
.status-pill.is-standby { color: var(--amber); border-color: rgba(251, 191, 36, 0.34); background: rgba(251, 191, 36, 0.1); }
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  border-radius: 11px;
  padding: 9px 15px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  white-space: nowrap;
  transition: transform 0.13s ease, border-color 0.13s ease, background 0.13s ease, box-shadow 0.13s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.09); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-hi) 0%, var(--gold) 52%, var(--gold-deep) 100%);
  color: #151006;
  border: none;
  box-shadow: 0 6px 22px rgba(244, 200, 106, 0.24);
}
.btn-gold:hover { box-shadow: 0 8px 28px rgba(244, 200, 106, 0.36); color: #0e0a03; }
.btn-jade { background: linear-gradient(135deg, #34d399, #10b981); color: #042217; border: none; font-weight: 700; }
.btn-cyan { background: rgba(56, 189, 248, 0.12); border-color: var(--line-cyan); color: #7dd3fc; }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--line); }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 9px; }
.btn-xs { padding: 4px 8px; font-size: 11px; border-radius: 7px; }
.btn-full { width: 100%; margin-top: 14px; padding: 13px 16px; font-size: 14.5px; }

/* Main Container & Typography */
.container { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 24px 20px 64px; }
.panel { display: none; }
.panel.is-active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(244, 200, 106, 0.12);
  border: 1px solid var(--line-gold);
}
h1 { margin: 12px 0 10px; font-size: clamp(27px, 3.5vw, 42px); line-height: 1.12; letter-spacing: -0.025em; }
h2 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.015em; }
h3 { margin: 0 0 8px; font-size: 15.5px; letter-spacing: -0.01em; }
.gradient-gold {
  background: linear-gradient(125deg, #fff7d6 0%, #f4c86a 55%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gold-text { color: var(--gold); }
.lead { color: #cbd5e1; line-height: 1.62; font-size: 15px; margin: 0 0 18px; max-width: 640px; }
.muted { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.action-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }

.card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 42px rgba(0, 0, 0, 0.32);
}
.card-gold { border-color: var(--line-gold); }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}
.badge-ok { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.34); color: #6ee7b7; }
.badge-gold { background: rgba(244, 200, 106, 0.12); border-color: rgba(244, 200, 106, 0.34); color: var(--gold); }
.badge-cyan { background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.34); color: #7dd3fc; }
.badge-rose { background: rgba(251, 113, 133, 0.13); border-color: rgba(251, 113, 133, 0.34); color: #fda4af; }

.copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--surface-inset);
  border: 1px solid var(--line);
  color: #dbeafe;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  max-width: 100%;
  word-break: break-all;
}
.copy-pill:hover { border-color: var(--line-gold); background: rgba(244, 200, 106, 0.08); }

/* TAB 1: HOME */
.hero-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  margin-bottom: 20px;
  background:
    radial-gradient(circle at 88% 12%, rgba(244, 200, 106, 0.14), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(56, 189, 248, 0.11), transparent 48%),
    var(--surface-strong);
  border: 1px solid var(--line-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 56px rgba(0, 0, 0, 0.45);
}
.spec-card {
  background: var(--surface-inset);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.arch-svg-wrap {
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.spec-list { margin: 0; display: grid; gap: 8px; }
.spec-list > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding-bottom: 7px; font-size: 12.8px; }
.spec-list > div:last-child { border-bottom: none; padding-bottom: 0; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; text-align: right; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.metric-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px 15px;
}
.metric-box span { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.metric-box strong { font-size: 20px; font-variant-numeric: tabular-nums; color: var(--gold-hi); }

.two-col { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 16px; margin-bottom: 20px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }

.field-group { display: flex; gap: 8px; margin-top: 10px; }
.field-group input {
  flex: 1;
  min-width: 0;
  background: var(--surface-inset);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 13px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
}
.field-group input:focus { border-color: var(--gold); }
.result-box {
  margin-top: 12px;
  padding: 13px;
  border-radius: 12px;
  background: var(--surface-inset);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}
.is-hidden { display: none; }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
}
.chip-btn:hover { border-color: var(--line-gold); color: var(--gold); }

.asset-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.asset-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.asset-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid var(--line-gold);
  background: rgba(244, 200, 106, 0.12);
  color: var(--gold);
}
.cap-bar { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin: 6px 0 4px; }
.cap-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--jade), var(--gold)); }

/* TAB 2: DEX SWAP TERMINAL */
.dex-ticker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  font-size: 12.8px;
}
.dex-ticker-items { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ticker-pair strong { color: var(--gold-hi); font-variant-numeric: tabular-nums; margin-left: 5px; }

.swap-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}
.dex-trade-box {
  position: sticky;
  top: 78px;
  border-color: var(--line-gold);
}
.swap-box {
  background: var(--surface-inset);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px 16px;
  transition: border-color 0.15s ease;
}
.swap-box:focus-within { border-color: var(--line-gold); }
.swap-row-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.2px; color: var(--muted); margin-bottom: 9px; }
.pct-row { display: inline-flex; gap: 4px; }
.pct-btn {
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.pct-btn:hover { background: rgba(244, 200, 106, 0.14); }
.swap-input-row { display: flex; gap: 10px; align-items: center; }
.swap-input-row input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  font-weight: 700;
  outline: none;
}
.swap-input-row select {
  background: #101d35;
  color: var(--gold-hi);
  border: 1px solid var(--line-gold);
  border-radius: 12px;
  padding: 9px 12px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}
.flip-wrap { display: flex; justify-content: center; margin: -10px 0; position: relative; z-index: 3; }
.flip-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line-gold);
  background: #0e1930;
  color: var(--gold);
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.14s ease;
}
.flip-btn:hover { transform: rotate(180deg); background: #172748; }

.slippage-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.slip-pills { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.slip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 5px 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.slip-btn.is-active { border-color: var(--gold); color: var(--gold); background: rgba(244, 200, 106, 0.14); }
.slip-custom {
  width: 58px;
  background: var(--surface-inset);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 7px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
}

.quote-meta {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--surface-inset);
  border: 1px solid var(--line);
  display: grid;
  gap: 7px;
  font-size: 12.8px;
}
.quote-meta > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.quote-meta span { color: var(--muted); }

.curve-wrap {
  background: var(--surface-inset);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}
.pair-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pair-tab {
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.pair-tab.is-active { border-color: var(--line-gold); color: var(--gold-hi); background: rgba(244, 200, 106, 0.14); }

.pool-list { display: grid; gap: 10px; margin-bottom: 14px; }
.pool-item {
  padding: 13px 15px;
  border-radius: 13px;
  background: var(--surface-inset);
  border: 1px solid var(--line);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.14s ease;
}
.pool-item:hover { border-color: var(--line-gold); }

/* TAB 3: FUN ARENA */
.fun-hero {
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 86% 20%, rgba(244, 200, 106, 0.16), transparent 46%),
    radial-gradient(circle at 12% 85%, rgba(52, 211, 153, 0.12), transparent 48%),
    var(--surface-strong);
  border: 1px solid var(--line-gold);
}
.fun-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.oracle-nft {
  margin-top: 14px;
  padding: 18px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 10%, rgba(244, 200, 106, 0.16), transparent 50%),
    linear-gradient(145deg, rgba(16, 28, 52, 0.95), rgba(6, 10, 20, 0.95));
  border: 1px solid var(--line-gold);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.wheel-card { display: flex; flex-direction: column; align-items: center; }
.wheel-wrap { position: relative; margin: 8px 0 6px; }
.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-hi);
  font-size: 22px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  z-index: 3;
}
#luckWheel { width: 280px; height: 280px; display: block; }
.spin-history { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }

.arcade-card { grid-column: 1 / -1; }
.arcade-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }
.arcade-stats { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.arcade-stat-pill {
  padding: 5px 11px;
  border-radius: 10px;
  background: var(--surface-inset);
  border: 1px solid var(--line);
}
.arcade-stat-pill strong { color: var(--gold-hi); font-variant-numeric: tabular-nums; }
#arcadeCanvas {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line-gold);
  background: radial-gradient(ellipse at top, #0f1d38 0%, #050a16 100%);
  display: block;
  touch-action: none;
}

.eco-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.eco-pill {
  padding: 9px 15px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  font-size: 13px;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.eco-pill:hover { border-color: var(--line-gold); background: rgba(244, 200, 106, 0.09); }

/* Table */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-inset); }
table { width: 100%; border-collapse: collapse; font-size: 12.8px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.055); vertical-align: middle; }
th { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; background: rgba(255, 255, 255, 0.02); }
tbody tr:last-child td { border-bottom: none; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(2, 4, 10, 0.76);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  padding: 16px;
}
.modal-backdrop.is-open { display: grid; }
.modal-card {
  width: 100%;
  max-width: 440px;
  background: #0b1325;
  border: 1px solid var(--line-gold);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

/* Toast */
.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 95; display: grid; gap: 8px; max-width: 340px; }
.toast {
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(11, 18, 34, 0.96);
  border: 1px solid var(--line-gold);
  color: var(--text);
  font-size: 13px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.18s ease;
}
.toast.is-err { border-color: rgba(251, 113, 133, 0.45); color: #fecdd3; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.footer {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 20px 38px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12.5px;
}

@media (max-width: 1080px) {
  .metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .hero-shell, .two-col, .three-col, .swap-layout, .fun-grid { grid-template-columns: 1fr; }
  .dex-trade-box { position: static; }
}
@media (max-width: 640px) {
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar-inner { padding: 10px 14px; }
  .container { padding: 18px 14px 48px; }
  .hero-shell { padding: 20px 16px; }
}
