/* ─────────────────────────────────────────
   Memecoin.io Launchpad — dedicated styles
   Extends style.css (dark theme, lime accent)
   ───────────────────────────────────────── */

body.launchpad {
  overflow-x: hidden;
}
html, body { max-width: 100%; }
.lp-main, .lp-hero, .stats, .lp-controls, .lp-table-wrap, .lp-footer-note { max-width: 100%; box-sizing: border-box; }

/* Aurora glow behind hero — subtle animated color wash */
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  overflow: hidden;
}
.aurora > div {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}
.aurora-1 {
  top: -10%;
  left: -5%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle at 30% 30%, rgba(212, 255, 0, 0.18), transparent 65%);
  animation: aurora-drift-1 22s ease-in-out infinite;
}
.aurora-2 {
  top: 30%;
  right: -15%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle at 60% 40%, rgba(80, 240, 160, 0.10), transparent 60%);
  animation: aurora-drift-2 28s ease-in-out infinite;
}
.aurora-3 {
  bottom: -20%;
  left: 20%;
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle at 50% 50%, rgba(212, 255, 0, 0.08), transparent 65%);
  animation: aurora-drift-3 34s ease-in-out infinite;
}
@keyframes aurora-drift-1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw, 3vh) scale(1.1); } }
@keyframes aurora-drift-2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-3vw, 4vh) scale(1.05); } }
@keyframes aurora-drift-3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(3vw, -2vh) scale(1.15); } }

/* Top nav */
.topnav {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
  padding-right: 20px;
  border-right: 1px solid var(--border);
  height: 24px;
}
.topnav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.15s ease;
}
.topnav a:hover {
  color: var(--fg);
  background: rgba(255,255,255,0.03);
}
.topnav a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.lp-main {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 32px 96px;
  min-height: calc(100vh - 200px);
}

/* Hero */
.lp-hero {
  text-align: center;
  margin: 40px 0 56px;
}
.lp-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 20px 0 20px;
  color: var(--fg);
}
.lp-title-line {
  display: block;
}
.lp-title em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}
.lp-title-glow {
  background: linear-gradient(180deg, var(--fg) 0%, var(--fg-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lp-sub {
  color: var(--fg-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

/* Stat cards */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.stat {
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 20px;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.stat:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Controls */
.lp-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  height: 44px;
  transition: border-color 0.15s ease;
}
.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.search svg { color: var(--fg-faint); flex-shrink: 0; }
.search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 14px;
  height: 100%;
}
.search input::placeholder { color: var(--fg-faint); }

.segmented {
  display: flex;
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
}
.seg {
  background: transparent;
  border: none;
  color: var(--fg-muted);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.seg:hover { color: var(--fg); }
.seg.active {
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 600;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  height: 44px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-muted);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}
.live-text { color: var(--fg); font-weight: 500; }
.live-eth {
  color: var(--fg-muted);
  padding-left: 8px;
  border-left: 1px solid var(--border);
  margin-left: 4px;
}

/* Table */
.lp-table-wrap {
  background: rgba(12, 12, 12, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.5);
  width: 100%;
}
.lp-table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  min-width: 1180px;
}
.lp-table thead {
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid var(--border);
}
.lp-table th {
  padding: 14px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  white-space: nowrap;
}
.lp-table th.num, .lp-table td.num { text-align: right; }
.lp-table td {
  padding: 14px 12px;
  border-top: 1px solid rgba(31, 31, 31, 0.5);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--fg);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lp-table tbody tr {
  transition: background 0.15s ease;
}
.lp-table tbody tr:hover {
  background: rgba(212, 255, 0, 0.03);
}
.lp-table tbody tr.highlight-flash {
  animation: flashRow 1.6s ease-out;
}
@keyframes flashRow {
  0% { background: rgba(212, 255, 0, 0.15); }
  100% { background: transparent; }
}

.col-rank { width: 40px; padding-left: 20px !important; color: var(--fg-faint); font-weight: 700; }
.col-rank .rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
}
.tok-row:nth-child(1) .col-rank .rank { color: #ffd447; }
.tok-row:nth-child(2) .col-rank .rank { color: #c9c9d0; }
.tok-row:nth-child(3) .col-rank .rank { color: #cd7f32; }

.col-token { min-width: 220px; }
.tok-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.tok-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.tok-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tok-logo img[src=""] { display: none; }
.tok-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--fg);
  font-size: 14px;
  font-family: 'Space Grotesk', sans-serif;
}
.tok-meta { min-width: 0; }
.tok-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.tok-sym {
  font-size: 11px;
  color: var(--fg-muted);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.col-price { min-width: 100px; }
.col-chg { min-width: 78px; font-weight: 600; }
.chg-up { color: #4ade80; }
.chg-down { color: #f87171; }
.chg-flat { color: var(--fg-muted); }
.chg::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  margin-right: 4px;
  vertical-align: middle;
}
.chg.chg-up::before { border-bottom: 5px solid #4ade80; }
.chg.chg-down::before { border-top: 5px solid #f87171; }
.chg.chg-flat::before { display: none; }

.col-mc { font-weight: 700; color: var(--fg); }

.col-spark { width: 92px; min-width: 80px; }
.spark { width: 80px; height: 24px; display: block; }

.col-actions { padding-right: 20px !important; width: 40px; }
.buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.buy-btn:hover {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(212, 255, 0, 0.3);
}

/* Skeleton */
.skeleton-row td { padding: 8px 12px !important; }
.skeleton {
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.02)
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Empty */
.lp-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--fg-muted);
}

.lp-footer-note {
  text-align: center;
  color: var(--fg-faint);
  font-size: 12px;
  margin-top: 48px;
  padding: 24px 20px;
  position: relative;
  z-index: 1;
}

/* ─── Terminal badge in header ─── */
.terminal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(212, 255, 0, 0.08);
  border: 1px solid rgba(212, 255, 0, 0.28);
  color: var(--fg);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, border-color 0.2s ease;
  margin-left: 4px;
  white-space: nowrap;
}
.terminal-badge:hover {
  background: rgba(212, 255, 0, 0.15);
  border-color: rgba(212, 255, 0, 0.5);
}
.terminal-badge-label { color: var(--fg-muted); text-transform: uppercase; font-size: 9px; letter-spacing: 0.08em; }
.terminal-badge-brand { color: var(--accent); font-weight: 700; }
.terminal-badge svg { color: var(--accent); margin-left: 2px; }

/* ─── Attribution strip in hero ─── */
.lp-attribution {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 0 auto 24px;
  max-width: 620px;
  text-align: left;
}
.lp-attribution svg { color: var(--accent); flex-shrink: 0; }
.lp-attribution a { color: var(--accent); text-decoration: none; font-weight: 600; }
.lp-attribution a:hover { text-decoration: underline; }
.lp-sub-link { color: var(--accent); text-decoration: none; border-bottom: 1px dashed rgba(212, 255, 0, 0.4); }
.lp-sub-link:hover { border-bottom-color: var(--accent); }

/* ─── Sponsor rail ─── */
.sponsor-rail {
  margin: 0 0 20px;
  padding: 0;
}
.sponsor-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 4px;
}
.sponsor-rail-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(212, 255, 0, 0.12);
  border: 1px solid rgba(212, 255, 0, 0.3);
  border-radius: 999px;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.sponsor-rail-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--fg-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sponsor-card {
  display: block;
  position: relative;
  padding: 2px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(212, 255, 0, 0.55) 0%, rgba(240, 255, 51, 0.15) 40%, rgba(212, 255, 0, 0.55) 100%);
  background-size: 200% 200%;
  animation: sponsorShift 8s ease-in-out infinite;
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.2s ease;
  overflow: hidden;
}
@keyframes sponsorShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.sponsor-card:hover { transform: translateY(-2px); }
.sponsor-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(ellipse at center, rgba(212, 255, 0, 0.35) 0%, transparent 60%);
  filter: blur(28px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}
.sponsor-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #0f0f0f 0%, #0a0a0a 100%);
  border-radius: 16px;
  position: relative;
}
.sponsor-left { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1; }
.sponsor-logo {
  width: 52px;
  height: 52px;
  color: var(--accent);
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(212, 255, 0, 0.4));
}
.sponsor-logo svg { width: 100%; height: 100%; }
.sponsor-text { min-width: 0; flex: 1; }
.sponsor-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sponsor-badge-inline {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(212, 255, 0, 0.15);
  border: 1px solid rgba(212, 255, 0, 0.35);
  border-radius: 6px;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.sponsor-sub {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 4px;
  line-height: 1.45;
}
.sponsor-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--accent);
  color: #0a0a0a;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sponsor-card:hover .sponsor-cta {
  box-shadow: 0 0 24px rgba(212, 255, 0, 0.5);
}

/* ─── Footer restyle ─── */
.lp-footer { padding: 32px 24px 40px !important; }
.lp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.lp-footer-attribution {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}
.lp-footer-attribution a { color: var(--accent); text-decoration: none; font-weight: 600; }
.lp-footer-attribution a:hover { text-decoration: underline; }
.lp-footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-faint);
}
.lp-footer-meta a { color: var(--fg-muted); text-decoration: none; }
.lp-footer-meta a:hover { color: var(--accent); }
.lp-footer-sep { opacity: 0.4; }

/* ─── Launch CTA ─── */
.lp-cta {
  display: inline-flex;
  position: relative;
  margin: 4px auto 40px;
  padding: 2px;
  border-radius: 18px;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, #f0ff33 50%, var(--accent) 100%);
  background-size: 200% 200%;
  animation: ctaShift 6s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(212, 255, 0, 0.4),
    0 12px 40px -8px rgba(212, 255, 0, 0.35),
    0 4px 16px -4px rgba(212, 255, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
@keyframes ctaShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.lp-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(212, 255, 0, 0.6),
    0 20px 60px -8px rgba(212, 255, 0, 0.55),
    0 8px 24px -4px rgba(212, 255, 0, 0.3);
}
.lp-cta:active { transform: translateY(0) scale(1); }

.lp-cta-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at center, rgba(212, 255, 0, 0.6) 0%, transparent 60%);
  z-index: -1;
  filter: blur(24px);
  opacity: 0.4;
  animation: ctaPulse 2.4s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.lp-cta-inner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px 16px 20px;
  background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
  border-radius: 16px;
  color: var(--accent);
}

.lp-cta-plus {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #0a0a0a;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(212, 255, 0, 0.5);
}

.lp-cta-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.lp-cta-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.lp-cta-sub-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.lp-cta-arrow {
  color: var(--accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.lp-cta:hover .lp-cta-arrow { transform: translate(2px, -2px); }

/* Responsive */
@media (max-width: 900px) {
  .lp-main { padding: 32px 16px 64px; }
  .stats { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .stat-value { font-size: 20px; }
  .lp-controls { flex-direction: column; align-items: stretch; }
  .search { min-width: 0; }
  .segmented { overflow-x: auto; }
  .topnav { padding-right: 12px; margin-left: auto; border-right: none; }
  .live-indicator { justify-content: center; }
}
@media (max-width: 900px) {
  .terminal-badge { display: none; }
}
@media (max-width: 720px) {
  .header { padding: 16px 16px; gap: 12px; flex-wrap: nowrap; }
  .lp-attribution { font-size: 12px; padding: 10px 14px; margin-bottom: 20px; }
  .lp-attribution svg { display: none; }
  .sponsor-card-body { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px; }
  .sponsor-cta { align-self: stretch; justify-content: center; padding: 12px 14px; font-size: 14px; }
  .sponsor-title { font-size: 17px; }
  .sponsor-sub { font-size: 12px; }
  .sponsor-logo { width: 44px; height: 44px; }
  .sponsor-rail-note { display: none; }
  .lp-footer-inner { flex-direction: column; text-align: center; gap: 12px; }
  .lp-title { font-size: 44px; }
  .lp-sub { font-size: 15px; }
  .stat { padding: 14px; min-width: 0; }
  .stat-value { font-size: 18px; }
  .stat-label { font-size: 10px; }
  .topnav { gap: 2px; padding-right: 0; }
  .topnav a { font-size: 12px; padding: 5px 8px; }
  .logo span { display: none; }
  .socials { gap: 4px; }
  .social { width: 32px; height: 32px; }
  .lp-hero { margin: 20px 0 32px; }
  .lp-title { margin: 12px 0 12px; letter-spacing: -0.03em; }
  .lp-sub { margin-bottom: 20px; }
  .lp-cta { margin: 0 auto 28px; width: 100%; max-width: 340px; }
  .lp-cta-inner { padding: 14px 20px 14px 16px; gap: 12px; width: 100%; justify-content: center; }
  .lp-cta-plus { width: 32px; height: 32px; }
  .lp-cta-text { font-size: 16px; }
  .lp-cta-sub-label { font-size: 9px; }
  .stats { gap: 8px; }

  /* Hide the desktop table, show mobile cards */
  .lp-table-scroll { display: none; }
  .lp-table-wrap { background: transparent; border: none; box-shadow: none; border-radius: 0; padding: 0; overflow: visible; }
  .lp-cards { display: flex !important; flex-direction: column; gap: 12px; }
}

/* Mobile card list — hidden on desktop */
.lp-cards { display: none; }
.tok-card {
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
}
.tok-card:active { transform: scale(0.99); }
.tok-card.highlight-flash { animation: flashRow 1.6s ease-out; }
.tok-card .card-rank {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-faint);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.tok-card:nth-child(1) .card-rank { color: #ffd447; }
.tok-card:nth-child(2) .card-rank { color: #c9c9d0; }
.tok-card:nth-child(3) .card-rank { color: #cd7f32; }
.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.card-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.card-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-logo .card-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--fg);
  font-size: 22px;
  font-family: 'Space Grotesk', sans-serif;
}
.card-title { flex: 1; min-width: 0; padding-right: 28px; }
.card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-sym {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.card-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.card-chg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.card-chg::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  margin-right: 5px;
}
.card-chg.chg-up { color: #4ade80; }
.card-chg.chg-up::before { border-bottom: 6px solid #4ade80; }
.card-chg.chg-down { color: #f87171; }
.card-chg.chg-down::before { border-top: 6px solid #f87171; }
.card-chg.chg-flat { color: var(--fg-muted); }
.card-chg.chg-flat::before { display: none; }

.card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(31, 31, 31, 0.7);
}
.card-metric { min-width: 0; }
.card-metric-label {
  font-size: 10px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 4px;
}
.card-metric-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--fg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(31, 31, 31, 0.7);
}
.card-spark {
  flex: 1;
  height: 32px;
}
.card-spark svg { width: 100%; height: 100%; display: block; }
.card-buy {
  padding: 10px 16px;
  background: var(--accent);
  color: #0a0a0a;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-buy:active {
  transform: scale(0.97);
  box-shadow: 0 0 20px rgba(212, 255, 0, 0.4);
}

.card-skeleton {
  height: 200px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
