:root {
  --bg: #060810;
  --bg2: #0c0f1a;
  --bg3: #111526;
  --card: rgba(16, 20, 40, 0.86);
  --card2: rgba(11, 15, 30, 0.94);
  --border: rgba(0, 245, 212, 0.15);
  --border2: rgba(0, 245, 212, 0.08);
  --teal: #00f5d4;
  --teal2: #00c9b1;
  --pink: #ff2d78;
  --purple: #9b5de5;
  --gold: #ffd60a;
  --text: #e8f4f8;
  --muted: #6a7fa8;
  --muted2: #3a4a6a;
  --success: #00e87a;
  --warning: #ffad00;
  --danger: #ff4560;
  --glow: 0 0 20px rgba(0, 245, 212, 0.3);
  --glow2: 0 0 40px rgba(0, 245, 212, 0.15);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  --radius: 16px;
  --radius-sm: 10px;
  --display: "Orbitron", monospace;
  --mono: "JetBrains Mono", monospace;
  --ui: "Syne", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(0, 245, 212, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(155, 93, 229, 0.07), transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(255, 45, 120, 0.03), transparent 70%);
}

body::after {
  background-image:
    linear-gradient(rgba(0, 245, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 212, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 30%, transparent 80%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
strong {
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.site-chrome {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.chrome-grid,
.chrome-scan {
  position: absolute;
  inset: 0;
}

.chrome-grid {
  background-image:
    linear-gradient(rgba(0, 245, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 212, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.chrome-scan {
  background:
    linear-gradient(100deg, transparent 0 38%, rgba(0, 245, 212, 0.055) 48%, transparent 58%),
    linear-gradient(180deg, transparent, rgba(155, 93, 229, 0.06));
  mix-blend-mode: screen;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(6, 8, 16, 0.92);
  border-bottom: 1px solid var(--border2);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark,
.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.96);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.4);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  overflow: hidden;
}

.brand-mark img,
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-copy {
  display: block;
  min-width: 0;
}

.brand-copy strong {
  display: block;
  max-width: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.top-nav,
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 4px;
  border: 1px solid var(--border2);
  border-radius: 12px;
  background: var(--bg2);
}

.nav-link,
.nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--teal);
  border-color: rgba(0, 245, 212, 0.25);
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.2), rgba(155, 93, 229, 0.2));
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.1);
}

.site-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.wallet-btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid rgba(0, 245, 212, 0.3);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.15), rgba(155, 93, 229, 0.15));
  color: var(--teal);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.button:not(.ghost):not(.wallet-btn),
.swap-submit {
  border: 0;
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(0, 245, 212, 0.3);
  font-family: var(--display);
  letter-spacing: 2px;
}

.wallet-btn:hover,
.button:hover {
  border-color: var(--teal);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.button.ghost {
  background: rgba(0, 245, 212, 0.08);
  color: var(--teal);
  box-shadow: none;
}

.button.small {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.74rem;
}

.wallet-dot,
.chain-dot,
.live-dot::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

.chain-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 214, 10, 0.22);
  border-radius: 10px;
  background: rgba(255, 214, 10, 0.08);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.ticker-bar {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin: 14px 0 0;
  border: 1px solid var(--border2);
  border-radius: 12px;
  background: rgba(6, 8, 16, 0.6);
  backdrop-filter: blur(18px);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 32px;
  padding: 8px 0;
  white-space: nowrap;
  animation: ticker 36s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.ticker-item strong {
  color: var(--text);
}

.ticker-item em {
  font-style: normal;
}

.ticker-item .up {
  color: var(--success);
}

.ticker-item .flat {
  color: var(--purple);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.page-stage {
  position: relative;
  z-index: 1;
  padding: 30px 0;
}

.page-wrap {
  display: grid;
  gap: 24px;
}

.page-banner,
.hero-board,
.feature-card,
.story-card,
.stat-card,
.swap-card,
.metric-panel,
.overview-tile,
.swap-metric,
.claim-panel,
.claim-box,
.ref-link,
.swap-panel,
.swap-settings,
.swap-summary,
.info-strip > div,
.list-item,
.wallet-launcher-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.page-banner,
.hero-board,
.feature-card,
.story-card,
.stat-card,
.swap-card,
.invite-card,
.claim-hero {
  position: relative;
  overflow: hidden;
}

.page-banner::before,
.hero-board::before,
.feature-card::before,
.story-card::before,
.stat-card::before,
.swap-card::before,
.claim-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.13), transparent 42%, rgba(155, 93, 229, 0.12));
}

.page-banner > *,
.hero-board > *,
.feature-card > *,
.story-card > *,
.stat-card > *,
.swap-card > *,
.claim-hero > * {
  position: relative;
  z-index: 1;
}

.page-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  min-height: 148px;
  padding: 28px;
}

.page-banner h1,
.hero-copy h2 {
  max-width: 18ch;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--text) 25%, var(--teal), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.02;
}

.lede,
.muted,
.page-banner .lede,
.hero-copy .lede {
  color: var(--muted);
  line-height: 1.6;
}

.page-banner .lede,
.hero-copy .lede {
  max-width: 58ch;
  margin-top: 10px;
  font-size: 1rem;
}

.eyebrow,
.card-title,
.section-title {
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(0, 245, 212, 0.2);
  border-radius: 999px;
  background: rgba(0, 245, 212, 0.08);
  color: var(--teal);
  font-size: 0.64rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid rgba(0, 245, 212, 0.2);
  border-radius: 6px;
  background: rgba(0, 245, 212, 0.1);
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.tag-row,
.hero-actions,
.quick-pills,
.mini-stats,
.asset-pill,
.live-dot,
.site-actions {
  display: flex;
  align-items: center;
}

.tag-row {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-board {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  align-items: stretch;
  gap: 24px;
  min-height: 390px;
  padding: 30px;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 16px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.hero-panel,
.feature-grid,
.story-grid,
.mosaic-grid,
.trade-layout,
.trade-side,
.swap-form,
.swap-metrics,
.trade-overview-grid,
.info-strip,
.wallet-launcher-actions {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.hero-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid-wide,
.trade-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
}

.mosaic-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.story-card,
.stat-card {
  padding: 20px;
}

.feature-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.feature-card:hover,
.stat-card:hover,
.story-card:hover,
.swap-card:hover {
  border-color: rgba(0, 245, 212, 0.25);
}

.story-card {
  display: grid;
  gap: 10px;
}

.story-card h3,
.section-head h2 {
  color: var(--text);
  font-family: var(--display);
}

.story-card p {
  color: var(--muted);
  line-height: 1.55;
}

.stat-card {
  min-height: 132px;
  border-color: var(--border2);
  transition: all 0.3s ease;
}

.stat-card.feature {
  grid-column: span 2;
  border-color: rgba(0, 245, 212, 0.25);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
}

.section-head,
.swap-card-head,
.swap-panel-top,
.swap-panel-actions,
.swap-panel-foot,
.summary-row,
.referral-gate-head,
.referral-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head h2,
.swap-card-head h2 {
  margin-top: 8px;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.12;
}

.metric-panel,
.overview-tile,
.swap-metric,
.info-strip > div,
.claim-panel,
.claim-box {
  min-width: 0;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(0, 245, 212, 0.055), transparent 52%),
    rgba(0, 0, 0, 0.22);
}

.metric-panel.accent {
  border-color: rgba(0, 232, 122, 0.3);
  background:
    linear-gradient(180deg, rgba(0, 232, 122, 0.12), transparent 60%),
    rgba(0, 0, 0, 0.22);
}

.metric-panel span,
.stat-card span,
.swap-metric span,
.overview-tile span,
.info-strip span,
.claim-box span,
.claim-panel span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.8px;
  line-height: 1.35;
  text-transform: uppercase;
}

.metric-panel strong,
.stat-card strong,
.claim-panel strong,
.claim-box strong,
.overview-tile strong,
.swap-metric strong,
.info-strip strong {
  display: block;
  margin-top: 9px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.metric-panel strong,
.overview-tile strong,
.swap-metric strong,
.info-strip strong {
  color: var(--teal);
  text-shadow: 0 0 18px rgba(0, 245, 212, 0.22);
}

.metric-panel:nth-child(2) strong,
.stat-card:nth-child(6) strong,
.stat-card:nth-child(8) strong,
.stat-card:nth-child(9) strong,
.stat-card:nth-child(10) strong,
.claim-panel strong,
.claim-box strong {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(255, 214, 10, 0.16);
}

.metric-panel small,
.stat-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.swap-console {
  grid-template-columns: minmax(340px, 480px) minmax(0, 1fr);
  align-items: start;
  justify-content: center;
}

.swap-card {
  width: 100%;
  max-width: 480px;
  justify-self: center;
  overflow: visible;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow), 0 0 60px rgba(0, 245, 212, 0.05);
}

.swap-card::before {
  inset: -1px;
  border-radius: 21px;
}

.swap-card-head {
  padding: 20px 22px 16px;
}

.swap-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0 16px 12px;
}

.swap-tab {
  min-height: 38px;
  border: 1px solid var(--border2);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
}

.swap-tab:hover,
.swap-tab.is-active {
  border-color: var(--teal);
  background: rgba(0, 245, 212, 0.08);
  color: var(--teal);
}

.swap-tab[data-trade-tab="sell"].is-active {
  border-color: rgba(255, 69, 96, 0.35);
  background: rgba(255, 69, 96, 0.1);
  color: var(--danger);
}

.referral-gate {
  display: grid;
  gap: 10px;
  margin: 0 16px 8px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 173, 0, 0.24);
  border-radius: 14px;
  background: rgba(255, 173, 0, 0.07);
}

.referral-gate.is-active {
  border-color: rgba(0, 232, 122, 0.32);
  background: rgba(0, 232, 122, 0.08);
}

.referral-gate.is-error {
  border-color: rgba(255, 69, 96, 0.42);
  background: rgba(255, 69, 96, 0.09);
}

.referral-gate-head strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
}

.swap-form {
  gap: 8px;
  padding: 0 0 16px;
}

.swap-settings {
  gap: 12px;
  margin: 0 16px 8px;
  padding: 14px;
  background: var(--bg2);
}

.setting-field {
  display: grid;
  gap: 8px;
}

.setting-field span,
label span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

input {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
}

input::placeholder {
  color: var(--muted2);
}

input:focus {
  outline: none;
  border-color: rgba(0, 245, 212, 0.42);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.08);
}

.quick-pills {
  flex-wrap: wrap;
  gap: 6px;
}

.pill-chip {
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--border2);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
  transition: all 0.2s ease;
}

.pill-chip:hover,
.pill-chip.is-active {
  border-color: var(--teal);
  background: rgba(0, 245, 212, 0.08);
  color: var(--teal);
}

.swap-panel {
  display: grid;
  gap: 10px;
  min-height: 132px;
  margin: 0 16px 8px;
  padding: 14px 16px;
  border-color: var(--border2);
  border-radius: 14px;
  background: var(--bg2);
  transition: all 0.25s ease;
}

.swap-panel:focus-within {
  border-color: rgba(0, 245, 212, 0.4);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.08);
}

.swap-panel.is-output {
  background: rgba(12, 15, 26, 0.72);
}

.swap-label,
.swap-balance {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.swap-balance strong {
  color: var(--teal);
}

.swap-panel-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.swap-panel-body input {
  width: 0;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.55rem, 5vw, 2.55rem);
  font-weight: 700;
  line-height: 1;
}

.asset-pill {
  flex: 0 0 auto;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg3);
  color: var(--text);
  cursor: default;
  white-space: nowrap;
}

.asset-pill.secondary {
  border-color: rgba(155, 93, 229, 0.28);
  background: rgba(155, 93, 229, 0.12);
}

.asset-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.asset-icon.bnb {
  background: linear-gradient(135deg, #f3ba2f, var(--gold));
  color: #050505;
}

.asset-icon.token {
  background: linear-gradient(135deg, var(--teal), var(--purple));
  color: #fff;
}

.asset-symbol {
  max-width: 82px;
  overflow: hidden;
  color: var(--text);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-arrow {
  color: var(--muted);
  font-size: 0.72rem;
}

.swap-link-button {
  border: 0;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  font-family: var(--mono);
  font-weight: 600;
}

.swap-direction-button {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -2px auto 6px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg3);
  color: var(--teal);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.swap-direction-button:hover {
  transform: rotate(180deg) scale(1.08);
  border-color: var(--teal);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.3);
}

.swap-metrics,
.trade-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 16px 8px;
}

.swap-metric {
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 245, 212, 0.04);
  box-shadow: none;
}

.swap-metric strong {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.swap-summary {
  display: grid;
  gap: 7px;
  margin: 0 16px 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 245, 212, 0.04);
  box-shadow: none;
}

.summary-row {
  min-width: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.summary-row strong {
  min-width: 0;
  color: var(--text);
  font-weight: 500;
  overflow-wrap: anywhere;
  text-align: right;
}

.swap-submit {
  width: calc(100% - 32px);
  min-height: 54px;
  margin: 6px 16px 0;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.trade-side {
  grid-template-columns: 1fr;
}

.overview-tile {
  min-height: 96px;
  padding: 14px;
}

.mini-stats {
  align-items: stretch;
  gap: 10px;
}

.mini-stats span {
  flex: 1 1 180px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
  font-family: var(--mono);
  overflow-wrap: anywhere;
}

.mini-stats strong {
  color: var(--teal);
}

.live-dot {
  gap: 7px;
  color: var(--success);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.tier-list,
.simple-list,
.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tier-list li,
.simple-list li,
.list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

.tier-list li,
.simple-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tier-list li:last-child,
.simple-list li:last-child {
  border-bottom: 0;
}

.tier-ladder strong,
.list-item strong,
.simple-list strong {
  color: var(--text);
  font-weight: 700;
}

.tier-ladder span {
  color: var(--gold);
  font-weight: 800;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  padding: 14px;
  background: rgba(0, 0, 0, 0.22);
}

.ref-link,
.claim-panel,
.claim-box {
  padding: 16px;
  overflow-wrap: anywhere;
}

.ref-link {
  border-style: dashed;
  background: rgba(0, 245, 212, 0.055);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.info-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.empty-state {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

canvas {
  display: block;
  width: 100%;
  min-height: 220px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(0, 245, 212, 0.055), rgba(0, 232, 122, 0.03)),
    rgba(0, 0, 0, 0.24);
}

.chart-card canvas {
  min-height: 260px;
}

.claim-spotlight {
  background:
    linear-gradient(135deg, rgba(0, 245, 212, 0.1), rgba(155, 93, 229, 0.08)),
    var(--card);
}

.claim-panel strong,
.claim-box strong {
  font-size: clamp(1.7rem, 5vw, 2.7rem);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 0;
  color: var(--muted2);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.footer a,
.text-link {
  color: var(--teal);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: max-content;
  max-width: min(92vw, 420px);
  padding: 14px 18px;
  border: 1px solid rgba(0, 245, 212, 0.3);
  border-radius: 12px;
  background: rgba(8, 12, 26, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
  transform: translateX(calc(100% + 34px));
  transition: transform 0.22s ease;
  backdrop-filter: blur(16px);
}

.toast.show {
  transform: translateX(0);
}

.wallet-launcher {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(10px);
}

.wallet-launcher[hidden] {
  display: none;
}

.wallet-launcher-panel {
  width: min(100%, 440px);
  max-height: min(86vh, 720px);
  padding: 18px;
  background: var(--bg2);
}

.wallet-launcher-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border2);
}

.wallet-launcher-head h2 {
  margin-top: 8px;
  font-family: var(--display);
}

.wallet-launcher-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: min(54vh, 420px);
  overflow-y: auto;
}

.wallet-launcher-button,
.wallet-launcher-close {
  border: 1px solid var(--border2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  transition: all 0.18s ease;
}

.wallet-launcher-button {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  text-align: left;
}

.wallet-launcher-button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 245, 212, 0.36);
  background: rgba(0, 245, 212, 0.07);
  color: var(--text);
}

.wallet-launcher-button.is-detected,
.wallet-launcher-button.is-connected {
  border-color: rgba(0, 232, 122, 0.36);
  background: rgba(0, 232, 122, 0.1);
  color: var(--success);
}

.wallet-launcher-status {
  flex: 0 0 auto;
  color: var(--muted2);
  font-size: 0.72rem;
}

.wallet-launcher-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
}

@media (max-width: 1100px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    height: auto;
    padding: 10px 0;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 940px) {
  .hero-board,
  .page-banner,
  .feature-grid,
  .feature-grid-wide,
  .trade-layout,
  .swap-console {
    grid-template-columns: 1fr;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .swap-card {
    max-width: 560px;
  }

  .page-banner h1,
  .hero-copy h2 {
    max-width: 24ch;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100%, calc(100% - 10px));
  }

  .site-header {
    gap: 8px;
    padding: 8px 0;
  }

  .brand-copy strong {
    max-width: 130px;
    font-size: 0.95rem;
  }

  .chain-badge {
    display: none;
  }

  .site-actions .button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.7rem;
  }

  .top-nav {
    gap: 4px;
  }

  .nav-link {
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .ticker-bar {
    margin-top: 8px;
  }

  .page-stage {
    padding: 18px 0;
  }

  .page-banner,
  .hero-board,
  .feature-card,
  .story-card,
  .stat-card {
    padding: 16px;
  }

  .page-banner {
    min-height: auto;
  }

  .hero-board {
    min-height: auto;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tag-row {
    justify-content: flex-start;
  }

  .hero-panel,
  .mosaic-grid,
  .swap-metrics,
  .trade-overview-grid,
  .info-strip {
    grid-template-columns: 1fr;
  }

  .stat-card.feature {
    grid-column: auto;
  }

  .section-head,
  .swap-card-head,
  .referral-code-row,
  .swap-panel-actions,
  .swap-panel-foot,
  .summary-row {
    flex-direction: column;
    align-items: stretch;
  }

  .summary-row strong {
    text-align: left;
  }

  .swap-card-head {
    padding: 16px;
  }

  .swap-tabs,
  .referral-gate,
  .swap-panel,
  .swap-metrics,
  .swap-summary {
    margin-left: 12px;
    margin-right: 12px;
  }

  .swap-tabs {
    padding-left: 12px;
    padding-right: 12px;
  }

  .asset-symbol {
    max-width: 64px;
  }

  .wallet-launcher-actions {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 440px) {
  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-copy strong {
    max-width: 110px;
    font-size: 0.82rem;
  }

  .site-actions .button {
    min-height: 32px;
    padding: 0 9px;
    font-size: 0.68rem;
  }

  .nav-link {
    padding: 6px 9px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .swap-panel-body {
    display: grid;
  }

  .asset-pill {
    justify-content: center;
    width: 100%;
  }

  .swap-panel-body input {
    width: 100%;
    font-size: 2rem;
  }
}
