:root {
  --bg: #07110c;
  --surface: #0d1a13;
  --surface-2: #12241b;
  --surface-3: #183024;
  --border: rgba(74, 222, 128, 0.14);
  --border-strong: rgba(74, 222, 128, 0.28);
  --ink: #f3fbf6;
  --muted: #93b0a0;
  --emerald: #22e58a;
  --emerald-hover: #3ef09c;
  --emerald-dim: rgba(34, 229, 138, 0.14);
  --rose: #f45b69;
  --rose-dim: rgba(244, 91, 105, 0.14);
  --amber: #f6c453;
  --amber-dim: rgba(246, 196, 83, 0.15);
  --radius: 16px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(640px 360px at 14% -4%, rgba(34, 229, 138, 0.11), transparent 70%),
    radial-gradient(560px 340px at 88% 4%, rgba(246, 196, 83, 0.06), transparent 70%);
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.up { color: var(--emerald); }
.down { color: var(--rose); }
.amber { color: var(--amber); }

/* ================= TOPBAR ================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 17, 12, 0.88);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
}
.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-pill {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--emerald);
  background: var(--emerald-dim);
  border: 1px solid rgba(34, 229, 138, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}
.nav-btn, .nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 13.5px var(--font-sans);
  padding: 7px 13px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.nav-btn:hover, .nav-link:hover { color: var(--ink); }
.nav-btn.active {
  background: var(--surface-3);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.nav-link { color: #b7d7c5; }

.top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.batch-chip, .live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font: 600 12px var(--font-mono);
  color: var(--muted);
  white-space: nowrap;
}
.batch-chip strong { color: var(--amber); }
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  flex-shrink: 0;
}
.dot-amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }

/* ================= BUTTONS ================= */
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 11px;
  font: 700 14px var(--font-sans);
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--emerald); color: #052113; }
.btn-primary:hover { background: var(--emerald-hover); }
.btn-sell { background: var(--rose); color: #fff; }
.btn-outline { background: var(--surface-2); color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-3); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--ink); border-color: var(--border-strong); }

/* ================= LAYOUT ================= */
.shell {
  position: relative;
  z-index: 1;
  max-width: 1340px;
  margin: 0 auto;
  padding: 20px 20px 64px;
}
.view { display: none; }
.view.active { display: block; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ================= HOME TOP (HERO + BRIDGE) ================= */
.home-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 370px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}
.hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  min-height: 310px;
  display: flex;
  align-items: center;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(7, 17, 12, 0.95) 0%, rgba(7, 17, 12, 0.80) 58%, rgba(7, 17, 12, 0.30) 100%);
}
.hero-body {
  position: relative;
  z-index: 2;
  padding: 30px 34px;
  max-width: 590px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(13, 26, 19, 0.88);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 12px;
}
.hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.hero-sub {
  margin: 0 0 20px;
  color: #cfe4d8;
  font-size: 14.5px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }

.home-bridge {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: var(--border-strong);
}
.hb-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}
.hb-head h2 { margin: 0; font-family: var(--font-display); font-size: 19px; }
.hb-head span { font-size: 12px; }

/* ================= KPI STRIP ================= */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.kpi-batch {
  border-color: rgba(246, 196, 83, 0.3);
  background: linear-gradient(135deg, rgba(246, 196, 83, 0.08), var(--surface) 65%);
}
.kpi-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kpi-val { font-size: 22px; font-weight: 700; }
.kpi-sub { font-size: 12px; color: var(--muted); }

/* ================= TOKENS GRID ================= */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.section-head h2 { margin: 0 0 3px; font-family: var(--font-display); font-size: 22px; }
.section-head p { margin: 0; font-size: 14px; }
.explore-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-input {
  width: 260px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 12px;
  font: 500 14px var(--font-sans);
  outline: none;
}
.search-input:focus { border-color: var(--emerald); }

.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.token-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  cursor: pointer;
  transition: transform .15s, border-color .15s, background .15s;
}
.token-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.tc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tc-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tc-id img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border-strong); }
.tc-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; display: block; }
.ticker-pill {
  display: inline-block;
  font: 700 12px var(--font-mono);
  color: var(--emerald);
  background: var(--emerald-dim);
  padding: 2px 8px;
  border-radius: 6px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 600 11px var(--font-mono);
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid rgba(246, 196, 83, 0.28);
}
.status-pill.live {
  background: var(--emerald-dim);
  color: var(--emerald);
  border-color: rgba(34, 229, 138, 0.3);
}
.tc-spark {
  width: 100%;
  height: 58px;
  background: rgba(7, 17, 12, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.tc-spark svg { width: 100%; height: 100%; display: block; }
.tc-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tc-metrics div { background: rgba(7, 17, 12, 0.5); border-radius: 10px; padding: 8px 10px; }
.tc-metrics span { display: block; font-size: 11px; color: var(--muted); }
.tc-metrics strong { font-size: 14px; }
.tc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ================= TRADE / LIVE CHART ================= */
.back-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.back-links { display: flex; gap: 8px; flex-wrap: wrap; }
.trade-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
.trade-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.token-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.th-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.th-avatar { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--border-strong); object-fit: cover; }
.th-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.th-title-row h2 { margin: 0; font-family: var(--font-display); font-size: 22px; }
.th-addr-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; }
.copy-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  font: 600 11px var(--font-sans);
  padding: 3px 9px;
  cursor: pointer;
  white-space: nowrap;
}
.copy-btn:hover { color: var(--ink); border-color: var(--border-strong); }
.th-stats { display: grid; grid-template-columns: repeat(4, minmax(104px, auto)); gap: 16px; }
.th-stat { display: flex; flex-direction: column; gap: 2px; }
.stat-k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-v { font-size: 18px; font-weight: 700; }
.stat-s { font-size: 12px; color: var(--muted); }

.chart-card { padding: 14px 16px 16px; }
.chart-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.tool-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chip {
  appearance: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font: 600 12px var(--font-sans);
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all .14s;
}
.chip:hover { color: var(--ink); border-color: var(--border-strong); }
.chip.active { background: var(--emerald-dim); color: var(--emerald); border-color: rgba(34, 229, 138, 0.4); }
.chip-amber { background: var(--amber-dim); color: var(--amber); border-color: rgba(246, 196, 83, 0.35); }
.chip-rose { background: var(--rose-dim); color: var(--rose); border-color: rgba(244, 91, 105, 0.35); }

.inbox-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(246, 196, 83, 0.08);
  border: 1px solid rgba(246, 196, 83, 0.2);
  font-size: 12.5px;
  color: #f3dfb0;
  margin-bottom: 12px;
}
.banner-batch { color: var(--amber); font-size: 12px; white-space: nowrap; }
.chart-wrap {
  position: relative;
  width: 100%;
  height: 410px;
  border-radius: 12px;
  overflow: hidden;
  background: #08130d;
  border: 1px solid var(--border);
}
.tv-chart { width: 100%; height: 100%; }

.activity-card { padding: 14px 18px 18px; }
.subtabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 12px; }
.subtab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 700 13.5px var(--font-sans);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.subtab.active { background: var(--surface-2); color: var(--ink); }
.count-badge { background: var(--surface-3); color: var(--emerald); padding: 1px 7px; border-radius: 999px; font: 700 11px var(--font-mono); }
.subpane { display: none; }
.subpane.active { display: block; }
.table-wrap { overflow-x: auto; }
.trades-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.trades-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); }
.trades-table td { padding: 9px 10px; border-bottom: 1px solid rgba(74, 222, 128, 0.07); white-space: nowrap; }
.side-pill { display: inline-block; padding: 2px 8px; border-radius: 6px; font: 700 11px var(--font-mono); }
.side-buy { background: var(--emerald-dim); color: var(--emerald); }
.side-sell { background: var(--rose-dim); color: var(--rose); }
.feed-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 700 10.5px var(--font-mono); text-decoration: none; }
.feed-l1 { background: var(--amber-dim); color: var(--amber); }
.feed-l2 { background: var(--emerald-dim); color: var(--emerald); }
.feed-sim { background: rgba(147, 176, 160, 0.16); color: var(--muted); }

.info-grid { display: grid; gap: 14px; }
.info-box { background: rgba(7, 17, 12, 0.5); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.info-k { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.split-bar { display: flex; height: 28px; border-radius: 8px; overflow: hidden; font: 700 11px var(--font-mono); margin: 8px 0; }
.split-bar > div { display: flex; align-items: center; justify-content: center; color: #051b10; }
.sb-dev { background: #22e58a; }
.sb-rew { background: #6ee7b7; }
.sb-bb { background: #f6c453; }

/* ================= SWAP SIDE ================= */
.trade-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.swap-card { padding: 18px; }
.swap-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #08130d; padding: 5px; border-radius: 12px; margin-bottom: 16px; }
.swap-tab { appearance: none; border: 0; background: transparent; color: var(--muted); font: 700 14px var(--font-sans); padding: 9px; border-radius: 9px; cursor: pointer; }
.swap-tab.active.buy { background: var(--emerald); color: #052113; }
.swap-tab.active.sell { background: var(--rose); color: #fff; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.field input, .field textarea {
  width: 100%;
  background: #08130d;
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  font: 500 14px var(--font-sans);
  outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--emerald); }
.input-box { display: flex; align-items: center; background: #08130d; border: 1px solid var(--border); border-radius: 11px; padding-right: 10px; }
.input-box:focus-within { border-color: var(--emerald); }
.input-box input { border: 0; background: transparent; font: 700 17px var(--font-mono); padding: 11px 12px; }
.unit-badge { font: 700 12px var(--font-mono); color: var(--emerald); background: var(--emerald-dim); padding: 4px 9px; border-radius: 7px; }
.quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.quick-btn { appearance: none; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font: 600 11.5px var(--font-mono); padding: 6px 4px; border-radius: 8px; cursor: pointer; }
.quick-btn:hover { color: var(--ink); border-color: var(--border-strong); }

.gas-toggle { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border-radius: 10px; background: rgba(34, 229, 138, 0.06); border: 1px solid rgba(34, 229, 138, 0.18); font-size: 12.5px; color: #d6ede0; margin-bottom: 14px; cursor: pointer; }
.gas-toggle input { accent-color: var(--emerald); margin-top: 3px; }
.quote-box { background: #08130d; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; font-size: 13px; }
.q-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.q-row span:first-child { color: var(--muted); }
.route-pill { font: 700 11px var(--font-mono); color: var(--amber); background: var(--amber-dim); padding: 2px 8px; border-radius: 999px; }
.swap-note { font-size: 12px; color: var(--muted); margin: 9px 0 0; }

/* ================= LAUNCH ================= */
.launch-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: 20px; align-items: start; }
.launch-form-card, .launch-preview { padding: 24px; }
.card-head { margin-bottom: 18px; }
.card-head h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 24px; }
.card-head p { margin: 0; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.preset-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.preset-btn { appearance: none; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font: 600 13px var(--font-sans); padding: 10px 8px; border-radius: 10px; cursor: pointer; }
.preset-btn.active { background: var(--emerald-dim); color: var(--emerald); border-color: rgba(34, 229, 138, 0.4); }
.advanced-fold { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; background: #08130d; }
.advanced-fold summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); }
.preview-card { margin-top: 10px; background: #08130d; border: 1px solid var(--border-strong); border-radius: 14px; padding: 18px; }
.pc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pc-head img { width: 44px; height: 44px; border-radius: 10px; }
.pc-head strong { display: block; font-size: 17px; }
.pc-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pc-metrics div { background: var(--surface); border-radius: 10px; padding: 10px; }
.pc-metrics span { display: block; font-size: 11px; }

/* ================= CHAIN INFO ================= */
.chain-head-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) 360px; gap: 18px; margin-bottom: 18px; }
.chain-box-lg, .batch-panel { padding: 22px; }
.cb-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cb-top h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: 24px; }
.cb-top p { margin: 0; font-size: 14px; }
.rpc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.rpc-item { background: #08130d; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.rpc-item span { font-size: 11.5px; }
.copy-inline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.copy-inline code { color: var(--emerald); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }

.subdomain-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sub-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  text-decoration: none;
  color: var(--ink);
  transition: transform .14s, background .14s;
}
.sub-card:hover { transform: translateY(-2px); background: var(--surface-3); }
.sub-card strong { color: var(--emerald); font-size: 15px; }
.sub-card span.muted { font-size: 12px; }

.batch-big { display: block; font-size: 34px; font-weight: 700; margin: 8px 0; }
.kv-list { display: flex; flex-direction: column; gap: 7px; font-size: 12px; }
.kv-list div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; background: #08130d; border-radius: 8px; overflow: hidden; }
.kv-list code { color: var(--emerald); overflow: hidden; text-overflow: ellipsis; }

.contracts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contracts-card { padding: 20px; }
.cc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.cc-head h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 18px; }
.cc-head p { margin: 0; font-size: 12.5px; }
.contract-rows { display: flex; flex-direction: column; gap: 8px; }
.contract-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #08130d;
  border: 1px solid var(--border);
}
.cr-left { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cr-name { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.cr-badge { font: 700 10px var(--font-mono); padding: 1px 6px; border-radius: 999px; background: var(--emerald-dim); color: var(--emerald); }
.cr-badge.pred { background: var(--amber-dim); color: var(--amber); }
.cr-addr { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ================= MODAL & FOOTER ================= */
.modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(3, 9, 6, 0.78); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal-backdrop[hidden] { display: none; }
.modal { width: 100%; max-width: 580px; padding: 22px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.modal-head h3 { margin: 0; font-family: var(--font-display); font-size: 20px; }
.close-btn { background: transparent; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

.footer { border-top: 1px solid var(--border); padding: 18px 20px; margin-top: 24px; }
.footer-inner { max-width: 1340px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--emerald); text-decoration: none; font-weight: 600; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1120px) {
  .home-top, .trade-layout, .chain-head-grid, .contracts-grid, .launch-layout { grid-template-columns: 1fr; }
  .trade-side { position: static; }
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar-inner { height: auto; padding: 10px 14px; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; overflow-x: auto; justify-content: space-between; }
  .nav-btn, .nav-link { padding: 7px 9px; font-size: 12.5px; }
  .live-chip { display: none; }
  .hero-body { padding: 22px 20px; }
  .kpi-strip, .rpc-grid, .subdomain-row { grid-template-columns: 1fr; }
  .th-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .chart-wrap { height: 320px; }
  .form-grid, .form-grid-3, .preset-row { grid-template-columns: 1fr; }
  .token-grid { grid-template-columns: 1fr; }
}
