/* ============================================================
   idxmeme.fun — app pages design system (pairs / token / launch / profile)
   Light glassmorphism — matches the liquid-glass landing.
   Type: Helvetica Neue Light stack · Palette: light glass on #e8edf2
   ============================================================ */

:root {
  --bg: #e8edf2;
  --bg-soft: #eff3f7;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);
  --edge: rgba(0, 0, 0, 0.08);
  --edge-strong: rgba(0, 0, 0, 0.15);
  --text: #0a0e14;
  --text-dim: rgba(0, 0, 0, 0.6);
  --text-faint: rgba(0, 0, 0, 0.4);
  --green: #0e9f5e;
  --green-soft: rgba(14, 159, 94, 0.12);
  --red: #d93848;
  --red-soft: rgba(217, 56, 72, 0.12);
  --gold: #a97d0c;
  --gold-soft: rgba(169, 125, 12, 0.12);
  --blue: #2f6fd1;
  --blue-soft: rgba(47, 111, 209, 0.12);
  --radius: 24px;
  --radius-sm: 14px;
  --blur: blur(16px);
  --font: 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'SF Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 90% 60% at 85% -10%, rgba(160, 200, 255, 0.5), transparent 60%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(190, 230, 190, 0.4), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

::selection { background: #0a0e14; color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Glass primitives ---------- */
.glass-panel {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(10, 20, 40, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ---------- Top ticker tape ---------- */
.ticker-tape {
  position: relative;
  z-index: 30;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--edge);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 0;
}

.ticker-tape::before, .ticker-tape::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}
.ticker-tape::before { left: 0; background: linear-gradient(90deg, rgba(232, 237, 242, 0.9), transparent); }
.ticker-tape::after { right: 0; background: linear-gradient(-90deg, rgba(232, 237, 242, 0.9), transparent); }

.ticker-track {
  display: inline-block;
  animation: tape 40s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

@keyframes tape {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tape-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: var(--text-dim);
}
.tape-item .sym { color: var(--text); font-weight: 600; }
.tape-item .up { color: var(--green); }
.tape-item .down { color: var(--red); }
.tape-item + .tape-item { border-left: 1px solid var(--edge); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(232, 237, 242, 0.7);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--edge);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 14px 0;
}

/* ---- Brand wordmark: bold navy + bright .fun ---- */
/*
   Triple-safe Chrome/Firefox fix:
   1) .brand itself gets color + !important (kills link blue cascade)
   2) Each child span gets its own color + !important (kills inheritance reset)
   3) HTML also carries inline style="color:..." as last resort
   Arial Black is the guaranteed-800-weight system font; CDN font is Light-only.
*/
a.brand,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 19px;
  font-weight: 800;
  font-family: 'Arial Black', 'Helvetica Neue', Arial, system-ui, sans-serif;
  letter-spacing: -0.04em;
  text-decoration: none !important;
  line-height: 1;
  color: #0f1f4b !important;   /* kill browser link-blue on the anchor itself */
}
a.brand .brand-word,
a.brand span.brand-word,
.brand .brand-word,
.brand-word,
span.brand-word {
  color: #0f1f4b !important;   /* deep navy */
  font-weight: 800;
  font-family: 'Arial Black', 'Helvetica Neue', Arial, system-ui, sans-serif;
}
a.brand .fun,
a.brand span.fun,
.brand .fun,
.brand-fun,
span.brand-fun {
  color: #2563eb !important;   /* bright vivid blue */
  font-weight: 800;
  font-family: 'Arial Black', 'Helvetica Neue', Arial, system-ui, sans-serif;
}
/* hide old brand-mark completely — no image needed */
.brand .brand-mark { display: none; }

.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 14px;
  transition: 0.15s;
}
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.6); }
.main-nav a.active { color: var(--text); background: rgba(255, 255, 255, 0.85); border: 1px solid var(--glass-border); }

.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  transition: 0.15s;
  white-space: nowrap;
}

/* Primary = black pill (matches landing nav dot) */
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { opacity: 0.75; transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-color: var(--glass-border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.85); }

.btn-x {
  background: #0a0e14;
  border-color: #0a0e14;
  color: #fff;
  font-weight: 700;
}
.btn-x:hover { opacity: 0.8; }

.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 36px; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.hero h1 .accent { font-weight: 500; }
.hero .sub {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--text-dim);
  font-size: 16px;
}
.hero .sub strong { color: var(--text); font-weight: 600; }
.hero-cta { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.chain-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}
.chain-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 28px 0 8px;
}
.stat {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.stat .label { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.stat .value { font-size: 22px; font-weight: 500; margin-top: 4px; font-family: var(--mono); }
.stat .value.green { color: var(--green); }

/* ---------- Section heads / filters / search ---------- */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 26px 0 14px;
}
.section-head h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.section-head .see-all { font-size: 13px; color: var(--text-dim); }
.section-head .see-all:hover { color: var(--text); }

.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pill {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font);
  transition: 0.15s;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.pill:hover { color: var(--text); background: rgba(255, 255, 255, 0.7); }
.pill.active { background: var(--text); color: #fff; border-color: var(--text); }

.search-bar { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search-bar input {
  width: 100%;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text);
  padding: 10px 16px 10px 38px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: 0.15s;
}
.search-bar input:focus { border-color: var(--edge-strong); background: rgba(255, 255, 255, 0.85); }
.search-bar .search-icon {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint); font-size: 14px;
}

/* ---------- Token cards — glassmorphism ---------- */
.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  padding-bottom: 40px;
}

.token-card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  transition: 0.18s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(10, 20, 40, 0.07),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.token-card:hover {
  background: var(--glass-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(10, 20, 40, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* frost sheen top edge */
.token-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 40%);
  pointer-events: none;
}

.token-card .row-1 { display: flex; align-items: center; gap: 12px; position: relative; }

.token-emoji {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  display: grid; place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}

.token-id { min-width: 0; flex: 1; }
.token-id .t-name { font-weight: 600; font-size: 15px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.token-id .t-ticker { font-family: var(--mono); font-size: 12px; color: var(--text-dim); margin-top: 1px; }
.token-id .t-handle { font-size: 11px; color: var(--text-faint); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chg { font-family: var(--mono); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.chg.up { color: var(--green); }
.chg.down { color: var(--red); }

.token-pitch {
  font-size: 13px; color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
  position: relative;
}

/* the 0x contract address chip */
.token-address {
  position: relative;
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.45);
  border: 1px dashed var(--edge-strong);
  border-radius: 8px;
  padding: 6px 9px;
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
  transition: 0.15s;
}
.token-address:hover { background: rgba(255, 255, 255, 0.8); color: var(--text); }
.token-address .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.token-address .addr { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.token-address .copy-tag { color: var(--text-faint); font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; flex-shrink: 0; }

.pair-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 4px 10px;
  width: fit-content;
  position: relative;
}
.pair-tag .stock { color: var(--text); font-weight: 600; }

.token-meta {
  display: flex; justify-content: space-between; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--text-dim);
  position: relative;
}
.token-meta .mcap { color: var(--text); font-weight: 600; }

.progress-wrap {
  height: 6px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.progress-bar {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #17c774, #7ee8ac);
  transition: width 0.4s ease;
}
.progress-wrap.gold .progress-bar { background: linear-gradient(90deg, #e8b93c, #f7dd8a); }

.progress-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--text-faint); font-family: var(--mono);
  position: relative;
}

.status-chip {
  font-family: var(--mono);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 6px;
}
.status-chip.bonding { color: var(--green); background: var(--green-soft); }
.status-chip.graduated { color: var(--gold); background: var(--gold-soft); }

/* ---------- Empty / loading ---------- */
.empty-state {
  text-align: center; color: var(--text-faint);
  padding: 60px 20px; font-size: 14px;
  grid-column: 1 / -1;
}
.empty-state .big { font-size: 36px; margin-bottom: 8px; }

/* ---------- How it works ---------- */
.how-section { padding: 20px 0 56px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.how-card .step-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--text); background: rgba(255, 255, 255, 0.7);
  border-radius: 6px; padding: 3px 8px;
  display: inline-block; margin-bottom: 12px;
  border: 1px solid var(--glass-border);
}
.how-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.02em; }
.how-card p { font-size: 13px; color: var(--text-dim); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--edge); padding: 28px 0; margin-top: 20px; }
.site-footer .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; font-size: 13px; color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }
.footer-note { font-size: 12px; color: var(--text-faint); font-family: var(--mono); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 16, 26, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center;
  z-index: 100; padding: 20px;
  opacity: 0; pointer-events: none;
  transition: 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  width: min(440px, 100%);
  padding: 28px;
  transform: translateY(12px) scale(0.98);
  transition: 0.2s;
  position: relative;
  box-shadow: 0 24px 64px rgba(10, 20, 40, 0.18);
}
.modal-overlay.open .modal { transform: none; }

.modal h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.02em; }
.modal .modal-sub { color: var(--text-dim); font-size: 13px; margin-bottom: 20px; }

.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none;
  color: var(--text-faint); font-size: 18px;
  cursor: pointer; padding: 6px; line-height: 1;
}
.modal-close:hover { color: var(--text); }

.x-connect-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #0a0e14; color: #fff;
  border: none; border-radius: 999px;
  padding: 14px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: 0.15s;
  font-family: var(--font);
}
.x-connect-btn:hover { opacity: 0.85; }

.modal-or { text-align: center; color: var(--text-faint); font-size: 12px; margin: 16px 0; }

.manual-handle { display: flex; gap: 8px; }
.manual-handle input {
  flex: 1;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text);
  padding: 11px 16px; font-size: 14px; font-family: var(--mono);
  outline: none;
}
.manual-handle input:focus { border-color: var(--edge-strong); background: #fff; }
.manual-handle .btn { border-radius: 999px; }

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 200; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 12px 18px; font-size: 13px; font-weight: 500;
  color: var(--text);
  box-shadow: 0 12px 40px rgba(10, 20, 40, 0.2);
  animation: toast-in 0.25s ease;
  max-width: 340px;
}
.toast.error { border-color: var(--red); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Fields ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field label .req { color: var(--red); }
.field .hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--text);
  padding: 12px 14px; font-size: 14px; font-family: var(--font);
  outline: none; transition: 0.15s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--edge-strong); background: #fff; }
.field select { appearance: none; cursor: pointer; }
.field select option { background: #fff; color: var(--text); }

.char-count { font-size: 11px; font-family: var(--mono); color: var(--text-faint); text-align: right; margin-top: 5px; }

/* ---------- Token page ---------- */
.token-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  padding: 22px 0 40px;
  align-items: start;
}

.token-header-card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}
.token-header-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 45%);
  pointer-events: none;
  border-radius: inherit;
}
.token-header-card .big-emoji {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  display: grid; place-items: center;
  font-size: 32px;
  position: relative;
}
.token-header-card .th-info { flex: 1; min-width: 220px; position: relative; }
.token-header-card .th-name {
  font-size: 22px; font-weight: 500; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.token-header-card .th-handle { font-family: var(--mono); font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.token-header-card .th-price { text-align: right; position: relative; }
.token-header-card .th-price .p { font-family: var(--mono); font-size: 22px; font-weight: 600; }
.token-header-card .th-price .c { font-family: var(--mono); font-size: 13px; font-weight: 600; }

/* token page contract address banner */
.token-address-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px dashed var(--edge-strong);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: 0.15s;
  flex-wrap: wrap;
}
.token-address-banner:hover { background: var(--glass-strong); }
.token-address-banner .lab { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.token-address-banner .addr { font-family: var(--mono); font-size: 12px; color: var(--text); word-break: break-all; }

.token-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.tstat {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.tstat .l { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.07em; }
.tstat .v { font-family: var(--mono); font-size: 15px; font-weight: 600; margin-top: 3px; }

/* chart + trades + replies cards share glass */
.chart-card, .trades-card, .replies-card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.chart-card .chart-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; gap: 10px; flex-wrap: wrap;
}
.chart-card .chart-head h3 { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.chart-range-pills { display: flex; gap: 6px; }
.chart-range-pills button {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  font-size: 11px; font-family: var(--mono);
  border-radius: 999px; padding: 4px 12px;
  cursor: pointer; transition: 0.15s;
}
.chart-range-pills button.active { background: var(--text); color: #fff; border-color: var(--text); }
.chart-container { height: 280px; }

/* trade panel */
.trade-panel {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky; top: 84px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.trade-panel h3 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }

.side-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 14px; padding: 5px; margin-bottom: 14px;
}
.side-toggle button {
  border: none; background: transparent;
  color: var(--text-dim); font-weight: 700; font-size: 14px;
  padding: 9px; border-radius: 10px;
  cursor: pointer; transition: 0.15s; font-family: var(--font);
}
.side-toggle button.buy.active { background: #0a0e14; color: #fff; }
.side-toggle button.sell.active { background: #d93848; color: #fff; }

.amount-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.amount-chips button {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  font-size: 12px; font-family: var(--mono);
  border-radius: 10px; padding: 8px 0;
  cursor: pointer; transition: 0.15s;
}
.amount-chips button:hover, .amount-chips button.active { border-color: var(--text); color: var(--text); background: rgba(255, 255, 255, 0.9); }

.trade-input-row { display: flex; gap: 8px; margin-bottom: 12px; }
.trade-input-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--text);
  padding: 11px 14px; font-size: 14px; font-family: var(--mono);
  outline: none;
}
.trade-input-row input:focus { border-color: var(--edge-strong); background: #fff; }
.trade-input-row .usd-tag {
  display: grid; place-items: center;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  font-size: 12px; color: var(--text-faint); font-family: var(--mono);
}

.trade-est {
  font-family: var(--mono); font-size: 12px; color: var(--text-dim);
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 14px;
  display: flex; justify-content: space-between;
}
.trade-est .val { color: var(--green); font-weight: 700; }

.trade-panel .btn { width: 100%; }
.btn-trade-buy { background: #0a0e14; color: #fff; font-size: 15px; padding: 13px; }
.btn-trade-buy:hover { opacity: 0.85; }
.btn-trade-sell { background: #d93848; color: #fff; font-size: 15px; padding: 13px; }
.btn-trade-sell:hover { opacity: 0.85; }

.need-x { text-align: center; font-size: 12px; color: var(--text-faint); margin-top: 12px; }

/* trades table */
.trades-card h3, .replies-card h3 {
  font-size: 12px; font-weight: 700; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
}
.trades-card { margin-top: 16px; }

.trades-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
.trades-table th {
  text-align: left; color: var(--text-faint); font-weight: 500;
  padding: 8px 10px; border-bottom: 1px solid var(--edge);
  text-transform: uppercase; font-size: 10px; letter-spacing: 0.07em;
}
.trades-table td { padding: 9px 10px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); color: var(--text-dim); }
.trades-table td.side-buy { color: var(--green); font-weight: 700; }
.trades-table td.side-sell { color: var(--red); font-weight: 700; }
.trades-table .handle { color: var(--blue); }
.trades-table .amt { color: var(--text); }
.table-scroll { overflow-x: auto; }

/* replies */
.replies-card { margin-top: 16px; }
.reply-box { display: flex; gap: 10px; margin-bottom: 18px; }
.reply-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  display: grid; place-items: center;
  flex-shrink: 0; font-size: 15px;
}
.reply-box textarea {
  flex: 1;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 14px; color: var(--text);
  padding: 10px 12px; font-size: 13px; font-family: var(--font);
  resize: vertical; min-height: 60px; outline: none;
}
.reply-box textarea:focus { border-color: var(--edge-strong); background: #fff; }
.reply-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; align-items: center; }

.reply-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.reply-item:last-child { border-bottom: none; }
.reply-body { flex: 1; min-width: 0; }
.reply-body .r-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; margin-bottom: 3px; }
.reply-body .r-handle { font-weight: 700; color: var(--blue); font-family: var(--mono); }
.reply-body .r-time { color: var(--text-faint); font-size: 11px; }
.reply-body .r-msg { font-size: 13px; color: var(--text-dim); word-wrap: break-word; }

/* ---------- Launch page ---------- */
.launch-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; padding: 26px 0 46px; align-items: start;
}

.launch-card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.launch-card h2 { font-size: 18px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.02em; }
.launch-card .lc-sub { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }

.connect-step {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 18px; padding: 14px 16px;
}
.connect-step .cs-text { flex: 1; }
.connect-step .cs-text .cs-t { font-weight: 600; font-size: 14px; }
.connect-step .cs-text .cs-s { font-size: 12px; color: var(--text-dim); }
.connect-step.connected { border-color: var(--green); background: var(--green-soft); }
.connect-step .cs-check { color: var(--green); font-size: 18px; }

.emoji-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.emoji-picker button {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  font-size: 20px; cursor: pointer; transition: 0.15s;
}
.emoji-picker button:hover { transform: scale(1.08); background: rgba(255, 255, 255, 0.85); }
.emoji-picker button.active { border-color: var(--text); background: #fff; }

.launch-preview { position: sticky; top: 84px; }
.preview-card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.preview-card .pc-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--edge);
  font-size: 11px; color: var(--text-faint);
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
}

.launch-info-card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px; margin-top: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.launch-info-card h3 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.launch-info-card ul { list-style: none; }
.launch-info-card li {
  font-size: 12px; color: var(--text-dim);
  padding: 7px 0; display: flex; gap: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.launch-info-card li:last-child { border-bottom: none; }
.launch-info-card li .ic { color: var(--green); }

/* ---------- Profile ---------- */
.profile-hero {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 26px; display: flex; align-items: center; gap: 18px;
  margin: 24px 0 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  display: grid; place-items: center; font-size: 34px;
}
.profile-info h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.profile-info .p-stats { display: flex; gap: 18px; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-dim); flex-wrap: wrap; }
.profile-info .p-stats b { color: var(--text); }

/* ---------- Page head ---------- */
.page-head { padding: 30px 0 6px; }
.page-head h1 { font-size: 28px; font-weight: 400; letter-spacing: -0.03em; }
.page-head p { color: var(--text-dim); font-size: 14px; margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .token-layout { grid-template-columns: 1fr; }
  .trade-panel { position: static; }
  .launch-layout { grid-template-columns: 1fr; }
  .launch-preview { position: static; }
  .how-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .token-stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .header-actions .btn-ghost { display: none; }
  .hero { padding: 40px 0 24px; }
  .container { width: calc(100% - 1.5rem); }
  .trades-table th:nth-child(5), .trades-table td:nth-child(5) { display: none; }
}

/* ================================================================
   MOBILE BURGER MENU — full-screen slide-in drawer
   Works on every sub-page. Triggered by #mobile-menu-btn.
   ================================================================ */

/* Burger button: hidden on desktop, shown ≤ 640 px */
.mobile-menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible { background: rgba(255,255,255,0.9); outline: none; }
@media (max-width: 640px) { .mobile-menu-btn { display: inline-flex; } }

/* ---- Backdrop ---- */
.mobile-nav-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,16,26,0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 49;
  opacity: 0;
  transition: opacity 0.25s;
}
.mobile-nav-backdrop.open { opacity: 1; }

/* ---- Drawer panel ---- */
.mobile-nav {
  display: block !important;          /* always in DOM, translated off-screen */
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100dvh;                     /* dynamic viewport height (handles iOS bar) */
  z-index: 50;
  background: rgba(245,248,252,0.97);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-left: 1px solid var(--glass-border);
  box-shadow: -12px 0 48px rgba(10,20,40,0.14);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  overscroll-behavior: contain;
}
.mobile-nav.open {
  transform: translateX(0);
}

/* ---- Drawer header ---- */
.mobile-nav__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--edge);
  position: sticky; top: 0;
  background: rgba(245,248,252,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1;
}
.mobile-nav__brand {
  font-size: 18px; font-weight: 800;
  font-family: 'Arial Black', 'Helvetica Neue', Arial, system-ui, sans-serif;
  letter-spacing: -0.04em;
  text-decoration: none !important;
  line-height: 1;
  color: #0f1f4b;
}
.mobile-nav__brand .word  { color: #0f1f4b !important; font-weight: 800; }
.mobile-nav__brand .dot-fun { color: #2563eb !important; font-weight: 800; }
.mobile-nav__close {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.06);
  border: none; border-radius: 10px;
  font-size: 18px; cursor: pointer; color: var(--text);
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.mobile-nav__close:hover { background: rgba(0,0,0,0.12); }

/* ---- Nav links ---- */
.mobile-nav__links {
  padding: 12px 0;
}
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 22px;
  color: var(--text-dim);
  font-size: 16px; font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  -webkit-tap-highlight-color: transparent;
  min-height: 52px;  /* thumb-friendly */
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover,
.mobile-nav a:active { background: rgba(255,255,255,0.7); color: var(--text); }
.mobile-nav a.active {
  color: #0f1f4b; font-weight: 700;
  background: rgba(37,99,235,0.07);
}
.mobile-nav a .arrow { color: var(--text-faint); font-size: 14px; }
.mobile-nav a.active .arrow { color: #2563eb; }

/* ---- Drawer footer ---- */
.mobile-nav__foot {
  padding: 20px 22px;
  border-top: 1px solid var(--edge);
  margin-top: auto;
}
.mobile-nav__foot-note {
  font-size: 11px; color: var(--text-faint); font-family: var(--mono);
}

/* Hide the old bare anchor-list mobile-nav when used as plain <nav> on non-mobile */
@media (min-width: 641px) {
  .mobile-nav {
    /* reset fixed positioning on desktop — shouldn't show */
    display: none !important;
  }
  .mobile-nav-backdrop { display: none !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0.01ms !important; } }
