﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #070a0f;
  --bg-2: #0b111c;
  --panel: rgba(12, 17, 26, 0.82);
  --panel-2: rgba(15, 22, 35, 0.92);
  --line: rgba(0, 255, 136, 0.24);
  --line-strong: rgba(0, 255, 136, 0.72);
  --text: #f4f7fb;
  --muted: #9ca8bc;
  --blue: #00ff88;
  --blue-2: #00c96b;
  --gold: #00ff88;
  --green: #16d58a;
  --violet: #8d5cff;
  --danger: #ff6676;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at 72% 4%, rgba(0, 255, 136, 0.16), transparent 28rem),
    radial-gradient(circle at 3% 25%, rgba(0, 201, 107, 0.10), transparent 28rem),
    linear-gradient(180deg, #090d15 0%, #070a0f 48%, #05070a 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), rgba(0,0,0,0.08));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.54), transparent 52%, rgba(7,10,15,0.56)),
    radial-gradient(circle at 85% 10%, rgba(0, 255, 136, 0.14), transparent 22rem);
}

a { color: inherit; text-decoration: none; }

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: 6px;
  padding: 0 22px;
  color: #07101f;
  font-weight: 800;
  background: linear-gradient(135deg, #00ff88, var(--blue-2));
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(0, 255, 136, 0.20);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

button:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0, 255, 136, 0.28);
}

button.secondary,
.button.secondary,
button.ghost {
  color: var(--text);
  background: linear-gradient(180deg, rgba(24, 33, 49, 0.92), rgba(14, 20, 31, 0.92));
  border-color: rgba(255,255,255,0.12);
  box-shadow: none;
}

.button.small,
button.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(116, 145, 190, 0.18);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text);
  outline: none;
  background: rgba(5, 8, 13, 0.82);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.13);
}

label {
  display: block;
  margin-bottom: 8px;
  color: #bdd2f2;
  font-size: 13px;
  font-weight: 600;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  width: min(1340px, calc(100% - 44px));
  min-height: 66px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(7, 10, 15, 0.70);
  backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
}

.logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  animation: coinSpin 7s linear infinite;
  filter: drop-shadow(0 0 22px rgba(0, 255, 136, 0.34));
}

.logo:hover img {
  animation-duration: 2.8s;
}

@keyframes coinSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.035); }
  100% { transform: rotate(360deg) scale(1); }
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 12px 14px;
  border-radius: 4px;
  color: #d5deec;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--blue);
  background: rgba(0, 255, 136, 0.12);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.nav-actions { justify-content: flex-end; }

.flag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: #d7e2f5;
  background: rgba(13, 19, 30, 0.9);
  font-weight: 800;
  font-size: 12px;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1360px, calc(100% - 44px));
  margin: 0 auto;
  padding: 58px 0 80px;
}

.dashboard-shell { padding-top: 54px; }

.dashboard-hero {
  min-height: 200px;
  padding: 8px 0 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  border: 1px solid rgba(0, 255, 136, 0.54);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--blue);
  background: rgba(0, 255, 136, 0.10);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.headline {
  max-width: 860px;
  margin: 0;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.07em;
  color: #edf3ff;
}

.headline span {
  background: linear-gradient(90deg, var(--blue), #7dffbd 45%, #00c96b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.mini-metrics,
.landing-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 22px;
}

.mini-metrics div,
.landing-stats div {
  min-width: 120px;
}

.mini-metrics small,
.landing-stats small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.mini-metrics strong,
.landing-stats strong {
  display: block;
  margin-top: 4px;
  color: #f7fbff;
  font-size: 28px;
  font-weight: 900;
}

.panel {
  border: 1px solid rgba(0, 255, 136, 0.22);
  border-radius: 4px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(14, 20, 31, 0.92), rgba(9, 13, 21, 0.94));
  box-shadow: var(--shadow);
}

.panel.compact { padding: 22px; }

.panel h2 {
  margin: 0 0 10px;
  color: #f6f9ff;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.panel p {
  margin: 0;
  color: #9eb0c9;
  line-height: 1.55;
}

.glow-panel {
  margin-top: 32px;
  border-color: rgba(0, 255, 136, 0.72);
  background: linear-gradient(180deg, rgba(10, 32, 24, 0.88), rgba(12, 18, 30, 0.96));
}

.referral-panel { padding: 28px 24px 24px; }

.link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 48px;
}

.copy-input {
  height: 42px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.stat,
.metric-card {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 4px;
  padding: 22px 18px;
  background: linear-gradient(180deg, rgba(15, 22, 33, 0.9), rgba(9, 13, 20, 0.96));
}

.metric-card { position: relative; min-height: 132px; overflow: hidden; }
.metric-card::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  background: rgba(0, 255, 136, 0.14);
}
.metric-card.green::after { background: rgba(22, 213, 138, 0.18); }
.metric-card.gold::after { background: rgba(211, 168, 84, 0.18); }
.metric-card.violet::after { background: rgba(141, 92, 255, 0.18); }

.stat small,
.metric-card small {
  display: block;
  margin-bottom: 18px;
  color: #bdd2f2;
  font-weight: 700;
}

.stat strong,
.metric-card strong {
  display: block;
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.metric-card span {
  display: inline-block;
  margin-top: 12px;
  color: #7f91aa;
  font-size: 12px;
}

.dashboard-columns { align-items: stretch; }

.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.network-card { min-height: 330px; }
.network-map {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  margin: 8px 0 16px;
}

.node {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(0, 255, 136, 0.52);
  border-radius: 50%;
  color: #d9ffe9;
  background: radial-gradient(circle at 50% 35%, rgba(0,255,136,0.48), rgba(13,20,31,0.95) 46%);
  font-size: 11px;
  font-weight: 900;
}

.main-node {
  position: absolute;
  top: 4px;
  width: 58px;
  height: 58px;
  color: #fff;
}

.node-line {
  position: absolute;
  top: 72px;
  width: 54%;
  height: 58px;
  border-top: 1px solid rgba(135,160,200,0.26);
  border-left: 1px solid rgba(135,160,200,0.26);
  border-right: 1px solid rgba(135,160,200,0.26);
}

.network-row {
  position: absolute;
  display: flex;
  justify-content: center;
  gap: 52px;
  width: 100%;
}
.row-one { top: 88px; }
.row-two { top: 160px; gap: 34px; }
.small-node { width: 26px; height: 26px; }

.network-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 3px;
  padding: 10px 14px;
  color: #9fb2ce;
  background: rgba(255,255,255,0.05);
  font-size: 13px;
}
.network-bottom strong { color: #fff; }

.commission-strip { margin-top: 32px; }
.level-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.level-grid div {
  padding: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(24,34,49,0.86), rgba(13,19,29,0.92));
}
.level-grid small { display: block; color: #9eabc0; font-weight: 800; }
.level-grid strong { display: block; margin: 4px 0 10px; font-size: 28px; }
.level-grid span {
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,0.06);
}
.level-grid span::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.range-tabs { display: flex; gap: 8px; }
.range-tabs button {
  min-height: 32px;
  padding: 0 12px;
  color: #dce8fb;
  background: rgba(14, 22, 35, 0.9);
  border-color: rgba(255,255,255,0.10);
  box-shadow: none;
}
.range-tabs button.active { background: rgba(0, 255, 136, 0.18); border-color: rgba(0, 255, 136, 0.45); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 15px 12px; border-bottom: 1px solid rgba(255,255,255,0.07); text-align: left; }
th { color: #7dffbd; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
td { color: #dce7f8; }

.admin-product-form {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(0, 255, 136, 0.18);
  border-radius: 6px;
  background: rgba(0, 255, 136, 0.04);
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0;
  color: #bdd2f2;
  cursor: pointer;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--blue);
}

.admin-form-actions {
  margin-top: 0;
}

.admin-products-table {
  margin-top: 14px;
}

.admin-product-thumb {
  width: 70px;
  height: 48px;
  object-fit: cover;
  border: 1px solid rgba(0, 255, 136, 0.20);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0 12px;
  color: #aebdd3;
  background: rgba(255,255,255,0.05);
  font-size: 12px;
  font-weight: 800;
}
.pill.ok { color: #70ffbd; border-color: rgba(22,213,138,0.34); background: rgba(22,213,138,0.08); }
.pill.warn { color: #ffd67b; border-color: rgba(211,168,84,0.34); background: rgba(211,168,84,0.08); }
.pill.error { color: var(--danger); border-color: rgba(255,102,118,0.34); background: rgba(255,102,118,0.08); }

.message { margin-top: 14px; min-height: 22px; color: #9eb0c9; }
.message.error { color: var(--danger); }
.message.success { color: var(--green); }
.message.warn { color: #ffd67b; }

.notice {
  border: 1px solid rgba(0, 255, 136, 0.28);
  border-radius: 4px;
  padding: 14px;
  color: #a9b8ce;
  background: rgba(0, 255, 136, 0.07);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: 38px;
  align-items: center;
}

.landing-hero,
.auth-hero { min-height: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.buy-grid { grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr); align-items: start; }
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.package-card {
  min-height: 390px;
  border: 1px solid rgba(0, 255, 136, 0.20);
  border-radius: 4px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(19, 29, 45, 0.92), rgba(9, 13, 21, 0.96));
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.package-card:hover,
.package-card.selected {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 50px rgba(0, 255, 136, 0.16);
}
.package-card h3 { margin: 16px 0 8px; color: #fff; font-size: 18px; }
.package-card .tokens { margin: 14px 0 4px; font-size: 34px; font-weight: 900; letter-spacing: -0.08em; color: var(--blue); }
.package-card .price { margin-top: 20px; color: var(--gold); font-size: 24px; font-weight: 900; }
.order-card { position: sticky; top: 88px; }
.total-box strong { color: var(--gold); }

.market-checkout {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.panel-title-row.compact {
  align-items: flex-start;
  margin-bottom: 14px;
}

.panel-title-row.compact h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.market-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.market-note {
  margin: 14px 0;
  color: #9eb0c9;
  font-size: 13px;
  line-height: 1.6;
}

.terminal-shell {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 136, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at top, rgba(0, 255, 136, 0.10), transparent 42%),
    rgba(3, 8, 14, 0.92);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.34);
}

.terminal-shell:empty {
  min-height: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.pending-panel .metric-card strong {
  overflow-wrap: anywhere;
}

.affiliate-fee-checkout {
  margin-top: 0;
  padding: 16px;
  border: 1px solid rgba(0, 255, 136, 0.18);
  border-radius: 8px;
  background: rgba(0, 255, 136, 0.04);
}

.affiliate-fee-checkout .terminal-shell {
  min-height: 460px;
}

.swap-pair-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  color: #cfe8da;
  font-size: 13px;
}

.swap-pair-preview span {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(0, 255, 136, 0.18);
  border-radius: 8px;
  background: rgba(4, 12, 18, 0.72);
}

.swap-pair-preview span:first-child::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 900;
  z-index: 2;
}

.swap-pair-preview strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 15px;
}

.swap-route,
.swap-wallet {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #9eb0c9;
  background: rgba(3, 8, 14, 0.66);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.swap-wallet:empty {
  display: none;
}

.earnings-widget { border-color: rgba(0, 255, 136, 0.58); }
.earnings-number { margin: 24px 0 6px; font-size: 58px; font-weight: 900; letter-spacing: -0.08em; }
.sparkline {
  position: relative;
  height: 92px;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(0,255,136,0.08), transparent);
}
.sparkline span {
  position: absolute;
  inset: 24px 22px 20px;
  border-right: 4px solid var(--blue);
  border-top: 4px solid var(--blue);
  transform: skewY(-18deg);
  filter: drop-shadow(0 0 18px rgba(0,255,136,0.7));
}

.auth-shell { padding-top: 46px; }
.auth-card { max-width: 520px; width: 100%; }
.tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
}
.tab { color: #a9b8ce; background: transparent; border-color: transparent; box-shadow: none; }
.tab.active { color: #07101f; background: var(--blue); }
.hidden { display: none !important; }

@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr; padding: 14px 0; gap: 12px; }
  .nav-links, .nav-actions { flex-wrap: wrap; justify-content: flex-start; }
  .hero,
  .grid.two,
  .buy-grid,
  .stat-grid,
  .package-grid,
  .level-grid { grid-template-columns: 1fr; }
  .order-card { position: static; }
  .link-box { grid-template-columns: 1fr; }
  .headline { letter-spacing: -0.05em; }
}

@media (max-width: 620px) {
  .shell, .nav { width: min(100% - 24px, 1360px); }
  .logo, .logo img { width: 76px; height: 76px; }
  .headline { font-size: 42px; }
  .mini-metrics, .landing-stats { gap: 18px; }
  .panel { padding: 18px; }
}



.home-logo { width: 118px; height: 118px; animation: coinSpin 7s linear infinite; object-fit: contain; filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.22)); }


@media (prefers-reduced-motion: reduce) {
  .logo img {
    animation: none;
  }
}


.package-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
  margin-bottom: 14px;
  border: 1px solid rgba(0, 255, 136, 0.22);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 40px rgba(0, 255, 136, 0.08), 0 18px 36px rgba(0, 0, 0, 0.24);
}

.commission-note {
  margin-top: 14px;
  color: #85ffc0;
  font-size: 12px;
  font-weight: 800;
}

.single-level {
  grid-template-columns: minmax(0, 1fr);
}

.single-level div {
  max-width: 520px;
}

@media (max-width: 760px) {
  body {
    background-size: auto;
  }

  .nav {
    position: relative;
    width: min(100% - 22px, 1360px);
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
  }

  .nav-links {
    grid-column: 1 / -1;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 10px 12px;
    font-size: 13px;
  }

  .nav-actions {
    justify-content: flex-end;
  }

  .shell {
    width: min(100% - 22px, 1360px);
    padding: 22px 0 42px;
  }

  .auth-shell {
    padding-top: 18px;
  }

  .hero,
  .landing-hero,
  .auth-hero {
    min-height: auto;
    gap: 22px;
  }

  .hero-actions,
  .topbar {
    width: 100%;
  }

  .hero-actions .button,
  .hero-actions button,
  .topbar .button,
  .market-actions .button,
  .market-actions button,
  form button {
    width: 100%;
  }

  .lead {
    font-size: 16px;
    line-height: 1.65;
  }

  .landing-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .landing-stats div,
  .mini-metrics div,
  .stat,
  .package-card {
    min-width: 0;
  }

  .auth-card {
    max-width: none;
  }

  .tabs {
    grid-template-columns: 1fr;
  }

  input,
  select,
  textarea,
  button,
  .button {
    min-width: 0;
    font-size: 16px;
  }

  .panel-title-row {
    align-items: flex-start;
    gap: 12px;
  }

  .package-card {
    min-height: auto;
  }

  .package-card .tokens {
    font-size: 30px;
  }

  .terminal-shell,
  .affiliate-fee-checkout .terminal-shell {
    min-height: 70vh;
    max-height: 760px;
  }

  .swap-pair-preview {
    grid-template-columns: 1fr;
  }

  .swap-pair-preview span:first-child::after {
    content: "v";
    top: auto;
    right: 50%;
    bottom: -15px;
    transform: translateX(50%);
  }

  .market-note,
  .message {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  .shell,
  .nav {
    width: min(100% - 16px, 1360px);
  }

  .nav {
    padding: 10px 0;
  }

  .logo,
  .logo img {
    width: 64px;
    height: 64px;
  }

  .home-logo {
    width: 86px;
    height: 86px;
  }

  .brand {
    align-items: flex-start;
    gap: 12px;
  }

  .brand-title {
    font-size: 24px;
  }

  .headline {
    font-size: 34px;
    line-height: 0.98;
  }

  .panel {
    padding: 14px;
  }

  .affiliate-fee-checkout {
    padding: 12px;
  }

  .panel-title-row.compact {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pill {
    width: fit-content;
  }

  .terminal-shell,
  .affiliate-fee-checkout .terminal-shell {
    min-height: 74vh;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 6px;
  }
}
