/* ══════════════════════════════════════════════════════════
   CTO v5.0 — Community Take Over — DEGEN EDITION
   ══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Core palette */
  --bg: #0b0b12;
  --bg-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='140' viewBox='0 0 240 140'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='.5' opacity='.035'%3E%3Ccircle cx='18' cy='16' r='7'/%3E%3Cpath d='M9 34c0-5 4-9 9-9s9 4 9 9v7H9z'/%3E%3Ccircle cx='62' cy='30' r='8'/%3E%3Cpath d='M52 50c0-6 4-10 10-10s10 4 10 10v8H52z'/%3E%3Ccircle cx='105' cy='10' r='6'/%3E%3Cpath d='M97 26c0-5 3-8 8-8s8 3 8 8v6H97z'/%3E%3Ccircle cx='140' cy='38' r='8'/%3E%3Cpath d='M130 58c0-6 4-10 10-10s10 4 10 10v8H130z'/%3E%3Ccircle cx='185' cy='20' r='7'/%3E%3Cpath d='M176 38c0-5 4-9 9-9s9 4 9 9v7H176z'/%3E%3Ccircle cx='222' cy='42' r='6'/%3E%3Cpath d='M214 56c0-5 3-8 8-8s8 3 8 8v6H214z'/%3E%3Ccircle cx='38' cy='68' r='8'/%3E%3Cpath d='M28 88c0-6 4-10 10-10s10 4 10 10v8H28z'/%3E%3Ccircle cx='85' cy='80' r='6'/%3E%3Cpath d='M77 94c0-5 3-8 8-8s8 3 8 8v6H77z'/%3E%3Ccircle cx='128' cy='72' r='7'/%3E%3Cpath d='M119 90c0-5 4-9 9-9s9 4 9 9v7H119z'/%3E%3Ccircle cx='168' cy='86' r='8'/%3E%3Cpath d='M158 106c0-6 4-10 10-10s10 4 10 10v8H158z'/%3E%3Ccircle cx='210' cy='74' r='7'/%3E%3Cpath d='M201 92c0-5 4-9 9-9s9 4 9 9v7H201z'/%3E%3Ccircle cx='12' cy='110' r='6'/%3E%3Cpath d='M4 124c0-5 3-8 8-8s8 3 8 8v6H4z'/%3E%3C/g%3E%3C/svg%3E");

  --surface: #12121c;
  --surface2: #1a1a2a;
  --surface3: #222236;
  --border: #2a2a42;
  --border-hover: #3d3d5c;

  /* Text hierarchy */
  --text: #f0f0f8;
  --text-secondary: #a0a0c0;
  --text-muted: #6a6a8a;
  --text-dim: #8888aa;

  /* Accent colors */
  --neon: #39ff14;
  --neon-rgb: 57, 255, 20;
  --accent: #39ff14;  /* alias for inline styles */
  --accent2: #a855f7; /* alias for inline styles */
  --purple: #a855f7;
  --purple-rgb: 168, 85, 247;
  --pink: #ff2d78;
  --pink-rgb: 255, 45, 120;
  --gold: #ffd700;
  --gold-rgb: 255, 215, 0;
  --pump: #ff6b2b;
  --danger: #ff4757;
  --info: #3b82f6;

  /* Effects */
  --card-shadow: 0 0 0 1px var(--border), 0 8px 32px rgba(0,0,0,.4);
  --card-hover-shadow: 0 0 0 1px rgba(57,255,20,.3), 0 12px 40px rgba(0,0,0,.5), 0 0 30px rgba(57,255,20,.06);
  --glow-neon: 0 0 20px rgba(var(--neon-rgb), .2), 0 0 60px rgba(var(--neon-rgb), .05);
  --glow-purple: 0 0 20px rgba(var(--purple-rgb), .2);

  /* Spacing scale */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  --sp-3xl: 64px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 999px;

  /* Transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

/* Light mode override */
body.light-mode {
  --bg: #f0f0f8;
  --bg-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='140' viewBox='0 0 240 140'%3E%3Cg fill='none' stroke='%23000000' stroke-width='.5' opacity='.04'%3E%3Ccircle cx='18' cy='16' r='7'/%3E%3Cpath d='M9 34c0-5 4-9 9-9s9 4 9 9v7H9z'/%3E%3Ccircle cx='62' cy='30' r='8'/%3E%3Cpath d='M52 50c0-6 4-10 10-10s10 4 10 10v8H52z'/%3E%3Ccircle cx='105' cy='10' r='6'/%3E%3Cpath d='M97 26c0-5 3-8 8-8s8 3 8 8v6H97z'/%3E%3Ccircle cx='140' cy='38' r='8'/%3E%3Cpath d='M130 58c0-6 4-10 10-10s10 4 10 10v8H130z'/%3E%3Ccircle cx='185' cy='20' r='7'/%3E%3Cpath d='M176 38c0-5 4-9 9-9s9 4 9 9v7H176z'/%3E%3Ccircle cx='222' cy='42' r='6'/%3E%3Cpath d='M214 56c0-5 3-8 8-8s8 3 8 8v6H214z'/%3E%3Ccircle cx='38' cy='68' r='8'/%3E%3Cpath d='M28 88c0-6 4-10 10-10s10 4 10 10v8H28z'/%3E%3Ccircle cx='85' cy='80' r='6'/%3E%3Cpath d='M77 94c0-5 3-8 8-8s8 3 8 8v6H77z'/%3E%3Ccircle cx='128' cy='72' r='7'/%3E%3Cpath d='M119 90c0-5 4-9 9-9s9 4 9 9v7H119z'/%3E%3Ccircle cx='168' cy='86' r='8'/%3E%3Cpath d='M158 106c0-6 4-10 10-10s10 4 10 10v8H158z'/%3E%3Ccircle cx='210' cy='74' r='7'/%3E%3Cpath d='M201 92c0-5 4-9 9-9s9 4 9 9v7H201z'/%3E%3Ccircle cx='12' cy='110' r='6'/%3E%3Cpath d='M4 124c0-5 3-8 8-8s8 3 8 8v6H4z'/%3E%3C/g%3E%3C/svg%3E");
  --surface: #ffffff;
  --surface2: #f5f5ff;
  --surface3: #ebebf5;
  --border: #d8d8e8;
  --border-hover: #c0c0d8;
  --text: #0b0b12;
  --text-secondary: #4a4a6a;
  --text-muted: #7a7a9a;
  --text-dim: #6a6a88;
  --card-shadow: 0 0 0 1px var(--border), 0 4px 20px rgba(0,0,0,.06);
  --card-hover-shadow: 0 0 0 1px rgba(57,255,20,.4), 0 8px 30px rgba(0,0,0,.08);
  --glow-neon: none;
  --glow-purple: none;
}

/* ── RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  background: var(--bg);
  background-image: var(--bg-pattern);
  background-size: 240px 140px;
  color: var(--text);
  min-height: 100vh;
  transition: background .3s var(--ease), color .3s var(--ease);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

/* ── TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, .coin-name, .brand h1 {
  font-family: 'Lilita One', 'Impact', sans-serif;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════ */
header {
  background: rgba(18, 18, 28, .85);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  margin-top: 10px;
  padding: 14px 0;
  position: sticky;
  top: 10px;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1;
}

.phat-logo {
  flex-shrink: 0;
  height: 56px;
  width: auto;
  border-radius: 4px;
  filter: drop-shadow(0 0 10px rgba(var(--neon-rgb), .3));
  transition: filter .2s var(--ease);
  object-fit: contain;
}

.brand-logo-link:hover .phat-logo {
  filter: drop-shadow(0 0 16px rgba(var(--neon-rgb), .45));
}

.brand h1 {
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--neon);
  line-height: 1;
  text-shadow: 0 0 30px rgba(var(--neon-rgb), .4), 0 0 60px rgba(var(--neon-rgb), .15);
}

.tagline {
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-family: 'Space Mono', monospace;
  margin-top: 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.text-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 30px rgba(var(--neon-rgb), .4), 0 0 60px rgba(var(--neon-rgb), .15);
  letter-spacing: .08em;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav .nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--r-md);
  transition: all .2s var(--ease);
  white-space: nowrap;
}

.main-nav .nav-link:hover {
  color: var(--text);
  background: rgba(var(--neon-rgb), .06);
}

.main-nav .nav-link.active {
  color: var(--neon);
  background: rgba(var(--neon-rgb), .1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.sol-price {
  font-family: 'Space Mono', monospace;
  font-size: .78rem;
  color: var(--neon);
  background: rgba(var(--neon-rgb), .06);
  border: 1px solid rgba(var(--neon-rgb), .15);
  padding: var(--sp-sm) 14px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

.icon-btn {
  position: relative;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  border-color: var(--neon);
  background: rgba(var(--neon-rgb), .06);
  transform: translateY(-1px);
}

.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--pink);
  color: white;
  font-size: .6rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  box-shadow: 0 0 8px rgba(var(--pink-rgb), .5);
}

.btn-wallet {
  background: var(--neon);
  color: #0b0b12;
  border: none;
  padding: 10px 22px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  cursor: pointer;
  transition: all .2s var(--ease);
  text-transform: uppercase;
  letter-spacing: .04em;
  box-shadow: 0 0 20px rgba(var(--neon-rgb), .2);
}

.btn-wallet:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(var(--neon-rgb), .35);
}

.wallet-connected {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  background: rgba(var(--neon-rgb), .06);
  border: 1px solid rgba(var(--neon-rgb), .25);
  padding: var(--sp-sm) 14px;
  border-radius: var(--r-full);
}

.wallet-dot {
  width: 8px;
  height: 8px;
  background: var(--neon);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon);
  animation: pulse 2s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .4 } }

#walletAddress {
  font-family: 'Space Mono', monospace;
  font-size: .78rem;
  color: var(--neon);
}

.btn-disconnect {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}

.btn-disconnect:hover { color: var(--danger); }

/* ══════════════════════════════════════════════════════════
   NOTIFICATIONS PANEL
   ══════════════════════════════════════════════════════════ */
.notif-panel {
  position: fixed;
  top: 72px;
  right: 20px;
  width: 380px;
  max-height: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  z-index: 200;
  display: none;
  overflow: hidden;
}

.notif-panel.open { display: block; }

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-md) var(--sp-lg);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: .95rem;
}

.notif-header button {
  background: none;
  border: none;
  color: var(--neon);
  cursor: pointer;
  font-size: .78rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

#notifList { overflow-y: auto; max-height: 400px; }

.notif-item {
  padding: 14px var(--sp-lg);
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
  line-height: 1.5;
  transition: background .2s;
}

.notif-item.unread { background: rgba(var(--neon-rgb), .03); }
.notif-item:hover { background: var(--surface2); }

.notif-item-meta {
  font-size: .72rem;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  margin-top: var(--sp-xs);
}

.notif-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--neon);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 6px var(--neon);
}

/* ══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════════════ */
#toastContainer {
  position: fixed;
  bottom: var(--sp-lg);
  right: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--neon);
  padding: 14px var(--sp-lg);
  border-radius: var(--r-md);
  font-size: .88rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
  animation: slideIn .35s var(--ease-bounce);
  max-width: 340px;
}

.toast.funded { border-left-color: var(--gold); }
.toast.milestone { border-left-color: var(--purple); }
.toast.error { border-left-color: var(--danger); }

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0 }
  to { transform: translateX(0); opacity: 1 }
}
@keyframes slideOut {
  from { transform: translateX(0); opacity: 1 }
  to { transform: translateX(120%); opacity: 0 }
}

/* ══════════════════════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════════════════════ */
main { padding: var(--sp-2xl) 0; }

/* ── HERO SECTION ──────────────────────────────────────── */
.hero-section {
  position: relative;
  text-align: center;
  padding: 72px 20px 36px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(var(--neon-rgb), .12) 0%, rgba(var(--purple-rgb), .06) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.hero-title {
  position: relative;
  font-family: 'DM Sans', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 16px;
  z-index: 1;
}

.hero-accent {
  background: linear-gradient(135deg, var(--neon), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  position: relative;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 28px;
  z-index: 1;
}

.hero-cta-row {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  z-index: 1;
  flex-wrap: wrap;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--neon), var(--purple));
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(var(--neon-rgb), .25);
}

.hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(var(--neon-rgb), .35);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}

.hero-cta-secondary:hover {
  border-color: var(--neon);
  background: rgba(var(--neon-rgb), .04);
}

.hero-trust-row {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 1;
}

.hero-trust-item {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.how-it-works {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-lg) var(--sp-xl);
  margin-top: var(--sp-lg);
  margin-bottom: var(--sp-xl);
  overflow-x: auto;
  position: relative;
}

.how-it-works::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(var(--neon-rgb), .03), rgba(var(--purple-rgb), .03));
  pointer-events: none;
}

.hiw-step {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-shrink: 0;
}

.hiw-icon { font-size: 2rem; }

.hiw-step strong {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
}

.hiw-step p {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hiw-arrow {
  font-size: 1.5rem;
  color: var(--border);
  flex-shrink: 0;
  opacity: .5;
}

/* ══════════════════════════════════════════════════════════
   SUBMIT SECTION
   ══════════════════════════════════════════════════════════ */
.submit-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-xl) var(--sp-xl);
  margin-bottom: var(--sp-xl);
  position: relative;
  overflow: hidden;
}

.submit-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--purple), var(--pink));
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--neon);
  margin-bottom: var(--sp-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.submit-section h2 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 6px;
}

.goal-note {
  color: var(--text-secondary);
  font-size: .9rem;
  margin-bottom: var(--sp-lg);
  line-height: 1.5;
}

.goal-note strong { color: var(--neon); }

.coin-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.form-field label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-dim);
  font-family: 'Space Mono', monospace;
}

.contract-input-wrap {
  display: flex;
  gap: var(--sp-sm);
}

.contract-input-wrap input { flex: 1; }

.btn-fetch {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--neon);
  padding: 0 var(--sp-lg);
  border-radius: var(--r-md);
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all .2s var(--ease);
  white-space: nowrap;
  font-size: .85rem;
}

.btn-fetch:hover {
  background: rgba(var(--neon-rgb), .08);
  border-color: var(--neon);
}

.form-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.form-step {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
}
.form-step.active {
  color: var(--neon);
  border-color: rgba(var(--neon-rgb), .3);
  background: rgba(var(--neon-rgb), .06);
}
.form-step-arrow { color: var(--border); font-size: .8rem; }
.form-hint {
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.req { color: #ef4444; }

.banner-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--surface2);
}
.banner-upload-area:hover,
.banner-upload-area.drag-over {
  border-color: var(--neon);
  background: rgba(var(--neon-rgb), .04);
}
.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--text-muted);
}
.upload-clear-btn {
  margin-top: 8px;
  padding: 4px 12px;
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .25);
  color: #ef4444;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.upload-clear-btn:hover { background: rgba(239, 68, 68, .2); }
.token-upload-area {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.form-info-box {
  padding: 14px 16px;
  background: rgba(var(--neon-rgb), .04);
  border: 1px solid rgba(var(--neon-rgb), .12);
  border-radius: var(--r-md);
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-info-box strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
  font-size: .82rem;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="file"] {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px var(--sp-md);
  border-radius: var(--r-md);
  font-family: 'DM Sans', sans-serif;
  font-size: .92rem;
  transition: border .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}

input:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(var(--neon-rgb), .1), 0 0 20px rgba(var(--neon-rgb), .05);
}

.form-check {
  display: flex;
  gap: var(--sp-md);
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--text-dim);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] { width: auto; }

.btn-primary {
  background: var(--neon);
  color: #0b0b12;
  border: none;
  padding: 14px var(--sp-xl);
  border-radius: var(--r-md);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s var(--ease);
  text-transform: uppercase;
  letter-spacing: .04em;
  box-shadow: 0 0 20px rgba(var(--neon-rgb), .15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(var(--neon-rgb), .3);
}

.btn-primary:active { transform: translateY(0); }

/* Token Preview */
.token-preview {
  background: var(--surface2);
  border: 1px solid var(--neon);
  border-radius: var(--r-md);
  padding: 14px var(--sp-md);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  box-shadow: 0 0 20px rgba(var(--neon-rgb), .06);
}

.token-preview img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.token-preview-name { font-weight: 700; font-size: 1rem; }

.token-preview-details {
  font-size: .78rem;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
}

.up { color: var(--neon); }
.down { color: var(--danger); }

/* ══════════════════════════════════════════════════════════
   FILTER BAR
   ══════════════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  gap: var(--sp-md);
  align-items: center;
  margin-bottom: var(--sp-xl);
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-family: 'DM Sans', sans-serif;
  font-size: .92rem;
  transition: border .2s var(--ease), box-shadow .2s var(--ease);
}

.search-input:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(var(--neon-rgb), .08);
}

.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s var(--ease);
}

.filter-btn:hover {
  border-color: rgba(var(--neon-rgb), .4);
  color: var(--text);
}

.filter-btn.active {
  background: var(--neon);
  color: #0b0b12;
  border-color: var(--neon);
  box-shadow: 0 0 12px rgba(var(--neon-rgb), .2);
}

.sort-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border .2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a0a0c0' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  min-width: 150px;
}

.sort-select:focus {
  outline: none;
  border-color: var(--neon);
}

.sort-select option {
  background: var(--surface);
  color: var(--text);
}

/* ── Copy-to-clipboard ─────────────────────────────────── */
.copyable {
  cursor: pointer;
  transition: color .15s var(--ease);
  position: relative;
}

.copyable:hover {
  color: var(--neon) !important;
}

.copy-toast {
  position: fixed;
  bottom: var(--sp-lg);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--neon);
  color: #0b0b12;
  font-family: 'Space Mono', monospace;
  font-size: .78rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--r-full);
  opacity: 0;
  pointer-events: none;
  transition: all .25s var(--ease);
  z-index: 999;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.campaigns-header { margin-bottom: var(--sp-lg); }

.campaigns-header h2 {
  font-size: 1.5rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.count-badge {
  background: var(--surface2);
  border: 1px solid var(--border);
  font-size: .78rem;
  padding: 4px 14px;
  border-radius: var(--r-full);
  font-family: 'Space Mono', monospace;
  color: var(--text-muted);
  font-weight: 400;
}

/* ══════════════════════════════════════════════════════════
   COIN CARD GRID
   ══════════════════════════════════════════════════════════ */
.coin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: var(--sp-lg);
}

.coin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  box-shadow: var(--card-shadow);
}

.coin-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--neon-rgb), .25);
  box-shadow: var(--card-hover-shadow);
}

.coin-card.funded-card {
  border-color: rgba(var(--neon-rgb), .4);
  box-shadow: var(--card-shadow), var(--glow-neon);
}

.coin-card.expired-card {
  border-color: rgba(239, 68, 68, .25);
  opacity: 0.6;
  position: relative;
}
.coin-card.expired-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}
.coin-card.expired-card .progress-fill {
  background: #ef4444 !important;
}

/* ── Banner ─────────────────────────────────────────────── */
.coin-banner-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: var(--surface2);
}

.coin-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}

.coin-card:hover .coin-banner { transform: scale(1.04); }

.img-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.65);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all .2s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.img-nav:hover { background: rgba(0,0,0,.85); }
.img-nav.prev { left: 8px; }
.img-nav.next { right: 8px; }

.img-counter {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.6);
  color: white;
  font-size: .72rem;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-family: 'Space Mono', monospace;
  backdrop-filter: blur(4px);
}

.vote-img-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.6);
  color: white;
  border: none;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: .78rem;
  cursor: pointer;
  transition: all .2s var(--ease);
  font-family: 'Space Mono', monospace;
  backdrop-filter: blur(4px);
}

.vote-img-btn:hover { background: rgba(0,0,0,.85); transform: scale(1.05); }
.vote-img-btn.voted { background: rgba(57,255,20,.2); border: 1px solid rgba(57,255,20,.4); }

/* ── Card Body ──────────────────────────────────────────── */
.coin-body { padding: var(--sp-lg); }

.coin-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--sp-sm);
  gap: 10px;
}

.coin-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coin-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.coin-name {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.coin-symbol {
  font-size: .72rem;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  margin-top: 2px;
}

.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  font-size: .65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.badge.pump {
  background: rgba(255,107,43,.12);
  color: var(--pump);
  border: 1px solid rgba(255,107,43,.25);
}

.badge.funded-badge {
  background: rgba(var(--neon-rgb), .12);
  color: var(--neon);
  border: 1px solid rgba(var(--neon-rgb), .25);
}
.badge.hot-badge {
  background: rgba(255,100,0,.12);
  color: #ff6400;
  border: 1px solid rgba(255,100,0,.25);
  animation: hotPulse 2s infinite;
}
@keyframes hotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}

.coin-contract {
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-md);
  word-break: break-all;
  opacity: .7;
}

/* ── Token Stats ────────────────────────────────────────── */
.token-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.stat-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--sp-sm) 10px;
  text-align: center;
}

.stat-label {
  font-size: .62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: 'Space Mono', monospace;
}

.stat-value {
  font-size: .85rem;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  margin-top: 2px;
}

/* ── Progress Bar ───────────────────────────────────────── */
.progress-wrap { margin-bottom: var(--sp-md); }

.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: .85rem;
}

.progress-label {
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.progress-amount {
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  font-size: .85rem;
}

.progress-bg {
  background: var(--surface2);
  height: 10px;
  border-radius: var(--r-full);
  overflow: hidden;
  margin-bottom: var(--sp-xs);
  border: 1px solid var(--border);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon), #86efac);
  border-radius: var(--r-full);
  transition: width .6s var(--ease);
  box-shadow: 0 0 12px rgba(var(--neon-rgb), .3);
  position: relative;
}

.progress-sub {
  font-size: .72rem;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  text-align: right;
}

/* ══════════════════════════════════════════════════════════
   LEADER SECTION
   ══════════════════════════════════════════════════════════ */
.leader-section {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-md) var(--sp-md);
  margin-bottom: var(--sp-md);
  position: relative;
}

.leader-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--purple));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.leader-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-sm);
}

.leader-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  font-family: 'Space Mono', monospace;
  font-weight: 700;
}

.twitter-link {
  font-size: .78rem;
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}

.twitter-link:hover { text-decoration: underline; color: var(--pink); }

.leader-wallet-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 4px;
}

.leader-wallet-addr {
  font-family: 'Space Mono', monospace;
  font-size: .82rem;
  color: var(--gold);
}

.leader-vote-count {
  font-size: .72rem;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
}

.no-leader {
  color: var(--text-muted);
  font-size: .85rem;
  font-style: italic;
  margin-bottom: 10px;
}

/* ── Mini Tally ─────────────────────────────────────────── */
.mini-tally {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--sp-md);
}

.mini-tally-row {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: .76rem;
}

.mini-rank {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--neon);
  min-width: 22px;
}

.mini-wallet {
  font-family: 'Space Mono', monospace;
  color: var(--text-dim);
  min-width: 100px;
}

.mini-bar-wrap {
  flex: 1;
  background: var(--border);
  height: 6px;
  border-radius: var(--r-full);
  overflow: hidden;
}

.mini-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: var(--r-full);
  transition: width .4s var(--ease);
}

.mini-pct {
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  color: var(--text-muted);
  min-width: 32px;
  text-align: right;
}

.btn-vote-leader {
  width: 100%;
  background: rgba(var(--gold-rgb), .08);
  border: 1px solid rgba(var(--gold-rgb), .25);
  color: var(--gold);
  padding: 10px;
  border-radius: var(--r-sm);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s var(--ease);
  font-family: 'DM Sans', sans-serif;
  margin-top: var(--sp-xs);
}

.btn-vote-leader:hover {
  background: rgba(var(--gold-rgb), .15);
  transform: translateY(-1px);
}

/* ── Fee Info ───────────────────────────────────────────── */
.fee-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(var(--neon-rgb), .04);
  border: 1px solid rgba(var(--neon-rgb), .12);
  border-radius: var(--r-sm);
  padding: var(--sp-sm) 14px;
  margin-bottom: var(--sp-md);
  font-size: .78rem;
  color: var(--text-muted);
}

.fee-info-bar strong { color: var(--neon); }

.my-share {
  color: var(--neon);
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  font-size: .76rem;
}

/* ── Links ──────────────────────────────────────────────── */
.coin-links {
  display: flex;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.btn-link {
  flex: 1;
  text-align: center;
  padding: 9px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  text-decoration: none;
  border-radius: var(--r-sm);
  font-size: .8rem;
  font-weight: 600;
  transition: all .2s var(--ease);
  font-family: 'DM Sans', sans-serif;
}

.btn-link:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(var(--neon-rgb), .04);
}

.btn-link.pump-link:hover {
  border-color: var(--pump);
  color: var(--pump);
  background: rgba(255,107,43,.04);
}

.btn-add-image {
  width: 100%;
  background: none;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  padding: 9px;
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
  margin-bottom: var(--sp-md);
}

.btn-add-image:hover {
  border-color: var(--purple);
  color: var(--purple);
}

/* ── Image Gallery ─────────────────────────────────────── */
.img-gallery {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-md);
  margin-top: var(--sp-sm);
}
.img-gallery-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-dim);
  font-family: 'Space Mono', monospace;
  margin-bottom: var(--sp-md);
}
.img-gallery-sections {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}
.img-gallery-label {
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.img-gallery-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.img-gallery-grid::-webkit-scrollbar { height: 3px; }
.img-gallery-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.img-gallery-item {
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface2);
  transition: border-color .2s;
}
.img-gallery-item.img-active {
  border-color: var(--neon);
}
.img-gallery-item:hover {
  border-color: rgba(var(--neon-rgb), .5);
}
.img-gallery-thumb {
  display: block;
  object-fit: cover;
}
.banner-thumb {
  width: 140px;
  height: 52px;
}
.token-thumb {
  width: 72px;
  height: 72px;
}
.img-gallery-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: var(--surface);
  font-size: .62rem;
}
.img-gallery-meta .vote-img-btn {
  position: static;
  font-size: .65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(var(--neon-rgb), .06);
  border: 1px solid rgba(var(--neon-rgb), .15);
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.img-gallery-meta .vote-img-btn:hover {
  background: rgba(var(--neon-rgb), .12);
  border-color: var(--neon);
}
.img-gallery-meta .vote-img-btn.voted {
  background: rgba(34, 197, 94, .1);
  border-color: rgba(34, 197, 94, .3);
  color: #22c55e;
}
.img-active-label {
  font-size: .58rem;
  font-weight: 700;
  color: var(--neon);
  background: rgba(var(--neon-rgb), .1);
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}
.img-uploader {
  color: var(--text-muted);
  font-size: .58rem;
  white-space: nowrap;
  margin-left: auto;
}

/* ── Claim Leader ──────────────────────────────────────── */
.claim-leader-wrap {
  margin-top: 8px;
}
.btn-claim-leader {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--neon), var(--purple));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: .78rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn-claim-leader:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(var(--neon-rgb), .25);
}
.claim-hint {
  font-size: .68rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ══════════════════════════════════════════════════════════
   LEADERBOARD
   ══════════════════════════════════════════════════════════ */
.leaderboard {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-md);
}

.leaderboard-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  margin-bottom: 10px;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 170px;
  overflow-y: auto;
  margin-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.lb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--sp-sm) var(--sp-md);
  font-size: .82rem;
  transition: background .2s;
}

.lb-item:hover { background: var(--surface3); }

.lb-rank {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--neon);
  min-width: 26px;
  font-size: .75rem;
}

.lb-rank.gold { color: var(--gold); text-shadow: 0 0 8px rgba(var(--gold-rgb), .4); }
.lb-rank.silver { color: #c0c0c0; }
.lb-rank.bronze { color: #cd7c2f; }

.lb-wallet {
  flex: 1;
  font-family: 'Space Mono', monospace;
  font-size: .76rem;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-amount {
  font-family: 'Space Mono', monospace;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.lb-share {
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  color: var(--neon);
  white-space: nowrap;
}

.contribute-area { margin-top: var(--sp-xs); }

.contribute-form {
  display: flex;
  gap: var(--sp-sm);
}

.contribute-form input {
  flex: 1;
  padding: 10px 14px;
  font-size: .9rem;
}

.contribute-form button {
  background: var(--neon);
  color: #0b0b12;
  border: none;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all .2s var(--ease);
  white-space: nowrap;
  font-size: .85rem;
}

.contribute-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(var(--neon-rgb), .25);
}

.my-contribution-note {
  font-size: .76rem;
  color: var(--neon);
  font-family: 'Space Mono', monospace;
  margin-top: var(--sp-sm);
  text-align: center;
}

.connect-prompt {
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
  padding: 10px;
  font-style: italic;
}

.funded-message {
  text-align: center;
  color: var(--neon);
  font-weight: 700;
  padding: var(--sp-md);
  background: rgba(var(--neon-rgb), .06);
  border-radius: var(--r-sm);
  font-family: 'Space Mono', monospace;
  font-size: .82rem;
  border: 1px solid rgba(var(--neon-rgb), .15);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-3xl) var(--sp-lg);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* ── Show More ──────────────────────────────────────────── */
.show-more-wrap {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-lg) 0 var(--sp-md);
}
.btn-show-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 32px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: all .2s;
}
.btn-show-more:hover {
  background: var(--surface);
  border-color: var(--neon);
  color: var(--neon);
}

/* ── Warning Notice ─────────────────────────────────────── */
.warning-notice {
  background: rgba(255,71,87,.06);
  border: 1px solid rgba(255,71,87,.25);
  color: var(--danger);
  padding: var(--sp-md);
  border-radius: var(--r-md);
  font-size: .88rem;
  margin-bottom: var(--sp-md);
}

.self-nominate-hint {
  font-size: .82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════
   MODALS
   ══════════════════════════════════════════════════════════ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 500;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.modal.open { display: flex; }

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  max-width: 520px;
  width: 90%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}

.modal-box h3 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: var(--sp-sm);
}

.modal-box > p {
  color: var(--text-secondary);
  font-size: .9rem;
  margin-bottom: var(--sp-lg);
  line-height: 1.5;
}

.modal-close,
.modal-close-leader {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}

.modal-close:hover,
.modal-close-leader:hover {
  color: var(--danger);
  border-color: var(--danger);
}

/* ── Leader Modal Internals ─────────────────────────────── */
.current-leader-box {
  background: rgba(var(--gold-rgb), .06);
  border: 1px solid rgba(var(--gold-rgb), .25);
  padding: var(--sp-md);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-md);
  font-size: .88rem;
  color: var(--gold);
}

.tally-title {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  margin: var(--sp-md) 0 10px;
}

.tally-row {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
}

.tally-rank {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--neon);
  min-width: 24px;
}

.tally-wallet {
  font-family: 'Space Mono', monospace;
  color: var(--text-dim);
  min-width: 120px;
}

.tally-bar-wrap {
  flex: 1;
  background: var(--border);
  height: 8px;
  border-radius: var(--r-full);
  overflow: hidden;
}

.tally-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: var(--r-full);
}

.tally-pct {
  font-family: 'Space Mono', monospace;
  font-size: .75rem;
  min-width: 36px;
  text-align: right;
  color: var(--text);
}

.tally-sol {
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  color: var(--text-muted);
  min-width: 60px;
  text-align: right;
}

/* ── Fee Split Box ──────────────────────────────────────── */
.fee-split-box {
  margin-top: var(--sp-lg);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-md);
}

.fee-split-title {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  margin-bottom: 10px;
}

.fee-split-row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding: 7px var(--sp-md);
  background: var(--surface2);
  border-radius: var(--r-sm);
  margin-bottom: 6px;
  font-size: .8rem;
  font-family: 'Space Mono', monospace;
}

.fee-split-row.is-self {
  background: rgba(var(--neon-rgb), .06);
  border: 1px solid rgba(var(--neon-rgb), .15);
}

.fee-platform-row {
  font-size: .76rem;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  text-align: right;
  padding: var(--sp-xs) var(--sp-md);
}

/* ══════════════════════════════════════════════════════════
   HERO STATS
   ══════════════════════════════════════════════════════════ */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-lg) var(--sp-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--purple));
  opacity: .5;
}

.stat-card-value {
  font-family: 'Space Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--neon);
  line-height: 1.2;
}

.stat-card-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  margin-top: var(--sp-xs);
}

/* ══════════════════════════════════════════════════════════
   ACTIVITY FEED
   ══════════════════════════════════════════════════════════ */
.activity-feed {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-md) var(--sp-lg);
  margin-bottom: var(--sp-xl);
  overflow: hidden;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-sm);
  flex-wrap: wrap;
}
.feed-header-left {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.feed-filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.feed-chip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .6rem;
  padding: 3px 8px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all .2s;
  font-family: 'Space Mono', monospace;
  white-space: nowrap;
}
.feed-chip:hover { border-color: rgba(var(--neon-rgb),.3); color: var(--text); }
.feed-chip.active { background: rgba(var(--neon-rgb),.1); border-color: rgba(var(--neon-rgb),.3); color: var(--neon); }

.feed-dot {
  width: 8px;
  height: 8px;
  background: var(--neon);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon);
  animation: pulse 2s infinite;
}

.feed-label {
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--neon);
  font-weight: 700;
}

.feed-ticker {
  display: flex;
  gap: var(--sp-md);
  overflow-x: auto;
  padding-bottom: var(--sp-xs);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.feed-item {
  flex-shrink: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--sp-sm) 14px;
  font-size: .78rem;
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  white-space: nowrap;
  transition: border-color .2s var(--ease);
}

.feed-item:hover {
  border-color: rgba(var(--neon-rgb), .3);
}

.feed-item-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.feed-item-text {
  color: var(--text-secondary);
}

.feed-item-text strong {
  color: var(--text);
}

.feed-item-time {
  font-family: 'Space Mono', monospace;
  font-size: .65rem;
  color: var(--text-muted);
  margin-left: var(--sp-xs);
}

.feed-empty {
  color: var(--text-muted);
  font-size: .82rem;
  font-style: italic;
  padding: var(--sp-xs) 0;
}
.feed-item-funded {
  border-color: rgba(var(--neon-rgb), .3);
  background: rgba(var(--neon-rgb), .05);
}
.feed-item-milestone {
  border-color: rgba(245,158,11,.25);
  background: rgba(245,158,11,.04);
}

/* ══════════════════════════════════════════════════════════
   FAQ SECTION
   ══════════════════════════════════════════════════════════ */
.faq-section {
  margin-top: var(--sp-3xl);
  margin-bottom: var(--sp-xl);
}

.faq-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--sp-lg);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item.open {
  border-color: rgba(var(--neon-rgb), .25);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--sp-md) var(--sp-lg);
  background: none;
  border: none;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color .2s var(--ease);
}

.faq-q::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 400;
  flex-shrink: 0;
  margin-left: var(--sp-md);
  transition: transform .2s var(--ease), color .2s var(--ease);
}

.faq-item.open .faq-q::after {
  content: '−';
  color: var(--neon);
}

.faq-q:hover {
  color: var(--neon);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease), padding .3s var(--ease);
  padding: 0 var(--sp-lg);
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 var(--sp-lg) var(--sp-lg);
}

/* ══════════════════════════════════════════════════════════
   CARD ACTIONS (share + report)
   ══════════════════════════════════════════════════════════ */
.card-actions {
  display: flex;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.btn-share-x,
.btn-share-tg,
.btn-share-copy {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--r-sm);
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
  font-family: 'DM Sans', sans-serif;
}

.btn-share-x:hover {
  border-color: var(--info);
  color: var(--info);
  background: rgba(59, 130, 246, .04);
}

.btn-share-tg:hover {
  border-color: #0088cc;
  color: #0088cc;
  background: rgba(0, 136, 204, .04);
}

.btn-share-copy:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(var(--neon-rgb), .04);
}

.btn-report {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s var(--ease);
  flex-shrink: 0;
}

.btn-report:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(255, 71, 87, .04);
}

.btn-report-submit {
  background: var(--danger) !important;
  box-shadow: none !important;
}

.btn-report-submit:hover {
  opacity: .9;
}

/* ── Trending badge on filter ──────────────────────────── */
.filter-btn[data-filter="trending"].active {
  background: linear-gradient(135deg, #ff6b2b, #ff2d78);
  border-color: #ff6b2b;
}

/* ══════════════════════════════════════════════════════════
   TRANSACTION HISTORY (per campaign card)
   ══════════════════════════════════════════════════════════ */
.tx-history {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-sm);
  margin-top: var(--sp-sm);
}

.tx-history-title {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  margin-bottom: var(--sp-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tx-history-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 120px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: .72rem;
  font-family: 'Space Mono', monospace;
}

.tx-wallet {
  color: var(--text-dim);
}

.tx-amount {
  color: var(--neon);
  font-weight: 700;
}

.tx-link {
  color: var(--purple);
  text-decoration: none;
  font-size: .68rem;
  transition: color .15s;
}

.tx-link:hover {
  color: var(--pink);
  text-decoration: underline;
}

.tx-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  cursor: pointer;
  padding: 4px 0;
  transition: color .15s;
}

.tx-toggle:hover {
  color: var(--neon);
}

/* ══════════════════════════════════════════════════════════
   VIEW CAMPAIGN BUTTON
   ══════════════════════════════════════════════════════════ */
.btn-view-campaign {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  background: rgba(var(--neon-rgb), .08);
  border: 1px solid rgba(var(--neon-rgb), .2);
  color: var(--neon);
  border-radius: var(--r-sm);
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s var(--ease);
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
}

.btn-view-campaign:hover {
  background: var(--neon);
  color: #0b0b12;
}

/* ══════════════════════════════════════════════════════════
   CLOSE TO GOAL / COUNTDOWN
   ══════════════════════════════════════════════════════════ */
.close-to-goal {
  margin-top: var(--sp-sm);
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(255, 107, 43, .08), rgba(255, 45, 120, .08));
  border: 1px solid rgba(255, 107, 43, .2);
  border-radius: var(--r-sm);
  font-size: .78rem;
  font-weight: 700;
  color: #ff6b2b;
  text-align: center;
  animation: pulse-glow 2s infinite;
}

.halfway-there {
  margin-top: var(--sp-sm);
  padding: 6px 12px;
  background: rgba(var(--purple-rgb, 168, 85, 247), .06);
  border: 1px solid rgba(var(--purple-rgb, 168, 85, 247), .15);
  border-radius: var(--r-sm);
  font-size: .75rem;
  font-weight: 600;
  color: var(--purple);
  text-align: center;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 43, 0); }
  50% { box-shadow: 0 0 16px rgba(255, 107, 43, .15); }
}

/* ══════════════════════════════════════════════════════════
   CELEBRATION BANNER & CONFETTI
   ══════════════════════════════════════════════════════════ */
.celebration-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, var(--neon), var(--purple), var(--pink));
  color: #0b0b12;
  text-align: center;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}

.celebration-banner.show {
  transform: translateY(0);
}

.celebration-emoji {
  font-size: 1.4rem;
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  display: none;
}

/* ══════════════════════════════════════════════════════════
   TOS ACCEPTANCE GATE
   ══════════════════════════════════════════════════════════ */
.tos-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-lg);
}

.tos-overlay.hidden {
  display: none;
}

.tos-gate {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  max-width: 620px;
  width: 100%;
  padding: var(--sp-xl) var(--sp-xl) var(--sp-lg);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.tos-gate-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--sp-xs);
  text-align: center;
}

.tos-gate-sub {
  color: var(--text-muted);
  font-size: .85rem;
  text-align: center;
  margin-bottom: var(--sp-lg);
}

.tos-gate-scroll {
  flex: 1;
  overflow-y: auto;
  max-height: 380px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-md);
  background: var(--surface2);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.tos-gate-content h3 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--neon);
  margin-top: var(--sp-md);
  margin-bottom: var(--sp-xs);
}

.tos-gate-content h3:first-child {
  margin-top: 0;
}

.tos-gate-content p {
  color: var(--text-secondary);
  font-size: .82rem;
  line-height: 1.7;
  margin-bottom: var(--sp-sm);
}

.tos-gate-content strong {
  color: var(--text);
}

.tos-gate-readmore {
  text-align: center;
  margin-bottom: var(--sp-md);
}

.tos-gate-readmore a {
  color: var(--purple);
  text-decoration: none;
  font-size: .82rem;
  transition: color .15s;
}

.tos-gate-readmore a:hover {
  color: var(--pink);
  text-decoration: underline;
}

.tos-gate-check {
  margin-bottom: var(--sp-md);
  display: flex;
  justify-content: center;
}

.tos-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: .88rem;
  color: var(--text-dim);
  user-select: none;
}

.tos-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--neon);
  cursor: pointer;
  flex-shrink: 0;
}

.tos-accept-btn {
  width: 100%;
  padding: 16px;
  background: var(--neon);
  color: #0b0b12;
  border: none;
  border-radius: var(--r-md);
  font-size: 1rem;
  font-weight: 800;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all .2s var(--ease);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.tos-accept-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.tos-accept-btn:not(:disabled):hover {
  box-shadow: 0 0 24px rgba(var(--neon-rgb), .4);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-lg) 0;
  margin-top: var(--sp-3xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: .82rem;
  font-family: 'Space Mono', monospace;
}

.admin-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .78rem;
  transition: color .2s;
}

.admin-link:hover { color: var(--purple); }

.footer-links {
  display: flex;
  gap: var(--sp-lg);
  align-items: center;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .78rem;
  transition: color .2s;
}

.footer-link:hover { color: var(--neon); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* ── Mobile Menu Toggle ──────────────────────────────── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 1.3rem;
  padding: 6px 10px;
  cursor: pointer;
  line-height: 1;
  transition: all .15s;
}
.mobile-menu-btn:hover { border-color: var(--neon); color: var(--neon); }

/* ── Tablet (≤ 900px) ──────────────────────────────── */
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .coin-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile (≤ 768px) ──────────────────────────────── */
@media (max-width: 768px) {
  /* Header — hamburger nav */
  .header-content { position: relative; flex-wrap: nowrap; }
  .brand { gap: var(--sp-sm); }

  .mobile-menu-btn { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(18, 18, 28, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: var(--sp-sm) var(--sp-md);
    z-index: 200;
    gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav .nav-link {
    font-size: .88rem;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    width: 100%;
  }

  .header-actions { gap: var(--sp-xs); }
  .sol-price { font-size: .7rem; padding: 4px 8px; }
  .btn-wallet { font-size: .72rem; padding: 8px 14px; }
  #walletAddress { max-width: 80px; font-size: .7rem; }

  /* Layout */
  .coin-grid { grid-template-columns: 1fr; }
  .form-row.two-col { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; gap: var(--sp-sm); }
  .search-input { width: 100%; }
  .sort-select { width: 100%; }

  /* Hero stats */
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-sm); }
  .stat-card { padding: var(--sp-md) var(--sp-sm); }
  .stat-card-value { font-size: 1.3rem; }

  /* Cards */
  .coin-body { padding: var(--sp-md); }
  .coin-top { flex-direction: column; align-items: flex-start; gap: var(--sp-xs); }
  .badges { margin-top: 4px; }
  .token-stats { grid-template-columns: repeat(3, 1fr); gap: var(--sp-xs); }
  .stat-box { padding: var(--sp-xs); }
  .stat-value { font-size: .82rem; }

  /* Card actions */
  .card-actions { flex-wrap: wrap; }
  .btn-view-campaign { width: 100%; text-align: center; }
  .btn-boost { flex: 1; }

  /* Campaign wallet */
  .campaign-wallet-display { font-size: .68rem; }
  .cw-addr { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }

  /* Contribute form */
  .contribute-form { flex-direction: column; }
  .contribute-form button { width: 100%; }

  /* How it works */
  .how-it-works { flex-direction: column; align-items: flex-start; }
  .hiw-arrow { transform: rotate(90deg); align-self: center; }

  /* Submit section */
  .submit-section { padding: var(--sp-lg) var(--sp-md); }

  /* Fee info bar */
  .fee-info-bar { flex-direction: column; gap: var(--sp-sm); text-align: center; }

  /* Leaderboard in cards */
  .leaderboard-list .lb-entry { font-size: .75rem; gap: var(--sp-xs); }
  .lb-wallet { max-width: 80px; overflow: hidden; text-overflow: ellipsis; }

  /* Modals */
  [id$="Modal"] > div,
  .share-modal,
  [style*="max-width:520px"],
  [style*="max-width: 520px"] {
    max-width: 100% !important;
    margin: var(--sp-md);
    padding: var(--sp-lg) !important;
    border-radius: 16px;
  }

  /* Footer */
  .footer-content { flex-direction: column; gap: var(--sp-sm); text-align: center; }
}

/* ── Small Mobile (≤ 480px) ────────────────────────── */
@media (max-width: 480px) {
  .brand h1, .text-logo { font-size: 1.5rem; }
  .phat-logo { height: 40px; }
  .coin-name { font-size: 1.1rem; }
  .campaigns-header h2 { font-size: 1.1rem; }
  .submit-section h2 { font-size: 1.2rem; }
  .coin-banner-wrap { height: 140px; }

  /* Hero stats 1 col */
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat-card-value { font-size: 1.1rem; }
  .stat-card-label { font-size: .6rem; }

  /* Token stats */
  .token-stats { grid-template-columns: repeat(2, 1fr); }

  /* Card actions stack */
  .card-actions { gap: 4px; }
  .btn-share-x, .btn-share-tg, .btn-share-copy { font-size: .68rem; padding: 6px; }
  .btn-boost { font-size: .72rem; padding: 6px 10px; }
  .btn-report { padding: 6px 10px; font-size: .75rem; }

  /* Progress */
  .progress-label, .progress-amount { font-size: .7rem; }
  .progress-sub { font-size: .65rem; }

  /* Contract address */
  .coin-contract { font-size: .62rem; }

  /* Contribute */
  .contribute-form input { font-size: .82rem; padding: 10px; }
  .contribute-form button { font-size: .82rem; padding: 12px; }

  /* Fee splits */
  .fee-split-row { font-size: .7rem; padding: 5px var(--sp-sm); }

  /* FAQ */
  .faq-q { font-size: .85rem; padding: 12px 14px; }
  .faq-a { font-size: .82rem; padding: 10px 14px; }
}

/* ── Very Small (≤ 360px) ──────────────────────────── */
@media (max-width: 360px) {
  .container { padding: 0 var(--sp-sm); }
  .header-actions { flex-wrap: nowrap; }
  .sol-price { display: none; }
  .btn-wallet { font-size: .68rem; padding: 6px 10px; }
  .hero-stats { grid-template-columns: 1fr; }
  .coin-body { padding: var(--sp-sm); }
  .card-actions { flex-direction: column; }
  .btn-view-campaign,
  .btn-boost,
  .btn-share-x,
  .btn-share-tg,
  .btn-share-copy { width: 100%; }
}

/* ── Scrollbar styling ──────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ── Selection ──────────────────────────────────────────── */
::selection {
  background: rgba(var(--neon-rgb), .25);
  color: var(--text);
}

/* ══════════════════════════════════════════════════════════
   BOOST SYSTEM
   ══════════════════════════════════════════════════════════ */

/* ── Boost Badge on Cards ─────────────────────────────── */
.boost-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
  animation: boostPulse 2s ease-in-out infinite;
}

.boost-badge-trending {
  background: linear-gradient(135deg, rgba(255,100,0,.15), rgba(255,60,0,.1));
  color: #ff6400;
  border: 1px solid rgba(255,100,0,.3);
}

.boost-badge-volume {
  background: linear-gradient(135deg, rgba(168,85,247,.15), rgba(59,130,246,.1));
  color: var(--purple);
  border: 1px solid rgba(168,85,247,.3);
}

.boost-badge-featured {
  background: linear-gradient(135deg, rgba(255,215,0,.2), rgba(255,170,0,.1));
  color: var(--gold);
  border: 1px solid rgba(255,215,0,.4);
}

@keyframes boostPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}

/* ── Featured card glow ───────────────────────────────── */
.coin-card.boosted-featured {
  border-color: rgba(255,215,0,.4) !important;
  box-shadow: 0 0 20px rgba(255,215,0,.1), inset 0 0 30px rgba(255,215,0,.03);
}

.coin-card.boosted-volume {
  border-color: rgba(168,85,247,.3) !important;
  box-shadow: 0 0 16px rgba(168,85,247,.08);
}

.coin-card.boosted-trending {
  border-color: rgba(255,100,0,.3) !important;
}

/* ── Boost Button ─────────────────────────────────────── */
.btn-boost {
  padding: 6px 14px;
  border-radius: var(--r-md);
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255,215,0,.3);
  background: linear-gradient(135deg, rgba(255,215,0,.1), rgba(255,170,0,.05));
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  transition: all .2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-boost:hover {
  background: linear-gradient(135deg, rgba(255,215,0,.2), rgba(255,170,0,.1));
  border-color: rgba(255,215,0,.5);
  box-shadow: 0 0 12px rgba(255,215,0,.15);
}

/* ── Boost Modal ──────────────────────────────────────── */
.boost-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-lg);
}

.boost-modal-overlay.hidden { display: none; }

.boost-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  max-width: 520px;
  width: 100%;
  padding: var(--sp-xl);
}

.boost-modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--sp-xs);
}

.boost-modal-sub {
  color: var(--text-muted);
  font-size: .82rem;
  text-align: center;
  margin-bottom: var(--sp-lg);
}

.boost-tiers {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}

.boost-tier-card {
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  cursor: pointer;
  transition: all .2s var(--ease);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.boost-tier-card:hover {
  border-color: var(--text-dim);
}

.boost-tier-card.selected {
  border-color: var(--neon);
  background: rgba(57,255,20,.04);
}

.boost-tier-card.selected.tier-featured { border-color: var(--gold); background: rgba(255,215,0,.04); }
.boost-tier-card.selected.tier-volume { border-color: var(--purple); background: rgba(168,85,247,.04); }
.boost-tier-card.selected.tier-trending { border-color: #ff6400; background: rgba(255,100,0,.04); }

.boost-tier-emoji {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 44px;
  text-align: center;
}

.boost-tier-info { flex: 1; }

.boost-tier-name {
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: 2px;
}

.boost-tier-desc {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.boost-tier-price {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: .88rem;
  color: var(--gold);
  white-space: nowrap;
}

.boost-confirm-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold), #ff9800);
  color: #0b0b12;
  border: none;
  border-radius: var(--r-md);
  font-size: .95rem;
  font-weight: 800;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all .2s var(--ease);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.boost-confirm-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.boost-confirm-btn:not(:disabled):hover {
  box-shadow: 0 0 20px rgba(255,215,0,.3);
}

.boost-cancel-btn {
  width: 100%;
  padding: 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: .82rem;
  cursor: pointer;
  margin-top: var(--sp-sm);
  font-family: 'DM Sans', sans-serif;
  transition: all .15s;
}

.boost-cancel-btn:hover { border-color: var(--text-dim); color: var(--text); }

.boost-token-note {
  text-align: center;
  font-size: .72rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-md);
  font-family: 'Space Mono', monospace;
}

.boost-status {
  text-align: center;
  padding: var(--sp-sm);
  font-size: .82rem;
  border-radius: var(--r-md);
  margin-top: var(--sp-sm);
}

.boost-status-success {
  background: rgba(57,255,20,.1);
  color: var(--neon);
  border: 1px solid rgba(57,255,20,.2);
}

.boost-status-error {
  background: rgba(255,71,87,.1);
  color: var(--danger);
  border: 1px solid rgba(255,71,87,.2);
}

/* ── Boost timer on card ──────────────────────────────── */
.boost-timer {
  font-size: .65rem;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
}

@media (max-width: 480px) {
  .boost-tier-card { padding: var(--sp-sm); }
  .boost-tier-emoji { font-size: 1.4rem; width: 32px; }
  .boost-tier-price { font-size: .75rem; }
}

/* ── Contribution Breakdown ───────────────────────────── */
.contrib-breakdown {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  margin: 8px 0;
  font-size: .78rem;
  font-family: 'Space Mono', monospace;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: var(--text-muted);
}

.breakdown-row .bd-fee {
  color: var(--danger);
}

.breakdown-net {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 6px;
  font-weight: 700;
  color: var(--text) !important;
}

.breakdown-net .bd-net {
  color: var(--neon);
}

/* ── Stretch Goals ────────────────────────────────────── */
.stretch-goals-section {
  margin-top: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--border);
}

.stretch-goals-title {
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: var(--sp-xs);
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
}

.stretch-goal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: all .15s var(--ease);
}

.stretch-goal:last-child { margin-bottom: 0; }
.stretch-goal:hover { border-color: var(--text-dim); }

.stretch-goal.sg-funded {
  border-color: rgba(57,255,20,.25);
  background: rgba(57,255,20,.03);
}

.sg-emoji { font-size: .9rem; flex-shrink: 0; }

.sg-name {
  font-weight: 600;
  font-size: .78rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.sg-bar {
  flex: 1;
  height: 4px;
  min-width: 40px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
}

.sg-bar .progress-fill { height: 100%; border-radius: 2px; }

.sg-amount {
  font-family: 'Space Mono', monospace;
  font-size: .65rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.sg-badge-done {
  font-size: .72rem;
  flex-shrink: 0;
}

.sg-fill-done {
  background: var(--neon) !important;
}

.sg-contribute {
  display: flex;
  gap: 6px;
}

.sg-input {
  flex: 1;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: .78rem;
  font-family: 'Space Mono', monospace;
  outline: none;
  min-width: 0;
}

.sg-input:focus {
  border-color: var(--neon);
}

.sg-btn {
  padding: 6px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--neon);
  background: rgba(57,255,20,.08);
  color: var(--neon);
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  transition: all .15s;
}

.sg-btn:hover {
  background: rgba(57,255,20,.15);
}

.sg-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.sg-breakdown {
  font-size: .7rem;
  font-family: 'Space Mono', monospace;
  color: var(--text-muted);
  padding: 6px 0 0;
}

/* ── Mobile Contribute UX ────────────────────────────── */
.cp-quick-amt:hover, .cp-quick-amt:active {
  border-color: var(--neon) !important;
  background: rgba(57,255,20,.06) !important;
  color: var(--neon) !important;
}

/* ── Mobile Touch Targets ────────────────────────────── */
@media (max-width: 768px) {
  /* Ensure min 44px touch targets */
  .btn-wallet, .btn-primary, .filter-btn, .icon-btn {
    min-height: 44px;
  }
  .filter-btn {
    padding: 8px 14px;
    font-size: .78rem;
  }
  /* Better mobile contribute layout */
  #cpContribBtn {
    width: 100% !important;
    min-height: 48px !important;
    font-size: .95rem !important;
  }
  /* Campaign sidebar stacks below */
  .cp-layout { flex-direction: column; }
  .cp-sidebar { width: 100% !important; max-width: 100% !important; }
  /* Dexscreener chart responsive */
  #cpDexChart { min-height: 300px; }
  /* Vote modal better on mobile */
  .modal-box { max-height: 85vh; overflow-y: auto; margin: 10px; }
  /* Compact activity feed */
  .feed-ticker { max-height: 60px; }
  /* Search bar full width */
  .filter-bar { flex-direction: column; gap: 8px; }
  .search-input { width: 100% !important; }
  .filter-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .sort-select { width: 100%; }
  /* How it works compact */
  .how-it-works { gap: 4px; }
  .hiw-step { padding: 10px 8px; }
  .hiw-step p { display: none; }
  .hiw-arrow { font-size: .8rem; }
  /* Hero responsive */
  .hero-section { padding: 36px 12px 24px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: .9rem; }
  .hero-cta-primary, .hero-cta-secondary { padding: 12px 24px; font-size: .88rem; }
  .hero-trust-row { gap: 12px; }
  .hero-trust-item { font-size: .72rem; }
}

@media (max-width: 480px) {
  /* Stack hero stats 2x2 */
  .hero-stats { grid-template-columns: 1fr 1fr; }
  /* Hero ultra compact */
  .hero-section { padding: 28px 8px 20px; }
  .hero-title { font-size: 1.65rem; }
  .hero-subtitle { font-size: .82rem; margin-bottom: 20px; }
  .hero-subtitle br { display: none; }
  .hero-cta-row { flex-direction: column; gap: 8px; }
  .hero-cta-primary, .hero-cta-secondary { width: 100%; justify-content: center; }
  /* Compact submit form */
  .coin-form .form-row.two-col { grid-template-columns: 1fr; }
  /* Quick amount buttons smaller */
  .cp-quick-amt { padding: 8px 6px !important; font-size: .7rem !important; }
  /* Shrink campaign card spacing */
  .coin-card { margin-bottom: 12px; }
  .card-progress { margin: 8px 0; }
  /* TG alert compact */
  .tg-alert-bar { flex-direction: column; gap: 8px; padding: 12px; }
  .tg-alert-bar input { width: 100%; }
}

/* ── Loading Skeleton ───────────────────────────────────── */
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.skeleton-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, var(--surface2) 25%, rgba(255,255,255,.04) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w50 { width: 50%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-bar {
  height: 8px;
  width: 100%;
  background: linear-gradient(90deg, var(--surface2) 25%, rgba(255,255,255,.04) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  margin: 4px 0;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Scroll to Top ─────────────────────────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  z-index: 90;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top-btn:hover {
  background: var(--neon);
  color: #0b0b12;
  border-color: var(--neon);
}

/* ── Platform Stats Bar ────────────────────────────────── */
.platform-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 14px 20px;
  margin: var(--sp-lg) 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  flex-wrap: wrap;
}
.ps-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}
.ps-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  font-family: 'Space Mono', monospace;
}
.ps-label {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin-top: 2px;
}
.ps-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}
@media (max-width: 640px) {
  .platform-stats-bar { gap: 8px; padding: 12px 10px; }
  .ps-item { padding: 4px 10px; }
  .ps-val { font-size: .85rem; }
  .ps-divider { display: none; }
}

/* ── Offline Indicator ──────────────────────────────────── */
body.offline::after {
  content: '📡 Offline — Reconnecting...';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(239,68,68,.95);
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: .78rem;
  font-weight: 600;
  z-index: 9999;
}

/* ── Safe area insets for notch devices ───────────────── */
@supports (padding-top: env(safe-area-inset-top)) {
  header { padding-top: env(safe-area-inset-top); }
  footer { padding-bottom: env(safe-area-inset-bottom); }
}