/* ═══════════════════════════════════════════════════════════════
   VIRALFORGE — Complete Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #f59e0b;
  --accent: #ef4444;
  --success: #10b981;
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a2e;
  --surface: #16161f;
  --surface2: #1e1e2e;
  --surface3: #252535;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.15);
  --text: #f1f5f9;
  --text2: #94a3b8;
  --text3: #64748b;
  --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  --gradient2: linear-gradient(135deg, #f59e0b, #ef4444);
  --shadow: 0 20px 60px rgba(0,0,0,0.4);
  --shadow-sm: 0 4px 20px rgba(0,0,0,0.3);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --nav-h: 72px;
  --font: 'Inter', sans-serif;
  --font2: 'Space Grotesk', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-mode {
  --bg: #f8fafc;
  --bg2: #f1f5f9;
  --bg3: #e2e8f0;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --surface3: #f1f5f9;
  --border: rgba(0,0,0,0.08);
  --border2: rgba(0,0,0,0.15);
  --text: #0f172a;
  --text2: #475569;
  --text3: #94a3b8;
  --shadow: 0 20px 60px rgba(0,0,0,0.1);
  --shadow-sm: 0 4px 20px rgba(0,0,0,0.08);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

::selection { background: var(--primary); color: white; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ─── Particle Canvas ─── */
#particleCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ─── Custom Cursor — hide default arrow, show only animated dot ─── */
*, *::before, *::after { cursor: none !important; }

.custom-cursor {
  width: 12px; height: 12px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: screen;
}

.cursor-trail {
  width: 36px; height: 36px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: all 0.12s ease;
  opacity: 0.5;
}

body:hover .custom-cursor { opacity: 1; }

/* ─── Loading Screen ─── */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.fade-out { opacity: 0; visibility: hidden; }

.loader-content { text-align: center; }

.loader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.loader-icon {
  font-size: 3rem;
  animation: pulse 1s infinite;
}

.loader-text {
  font-family: var(--font2);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loader-bar {
  width: 300px;
  height: 4px;
  background: var(--surface3);
  border-radius: 2px;
  margin: 0 auto 16px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
  width: 0;
  transition: width 0.1s linear;
}

.loader-tagline {
  color: var(--text2);
  font-size: 0.875rem;
  letter-spacing: 1px;
}

/* ─── Toast ─── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  animation: slideInRight 0.3s ease;
  min-width: 280px;
  max-width: 360px;
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--accent); }
.toast.warning { border-color: var(--secondary); }
.toast.info { border-color: var(--primary); }
.toast-icon { font-size: 1.2rem; }
.toast-text { font-size: 0.9rem; color: var(--text); flex: 1; }
.toast.hiding { animation: slideOutRight 0.3s ease forwards; }

/* ─── App ─── */
.app { position: relative; z-index: 1; }
.app.hidden { display: none; }

/* ─── NAVBAR ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  transition: var(--transition);
}

.light-mode .navbar { background: rgba(248,250,252,0.85); }

.navbar.scrolled {
  background: rgba(10,10,15,0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 100%;
  margin: 0;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon { font-size: 1.5rem; }
.brand-name {
  font-family: var(--font2);
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-badge {
  font-size: 0.65rem;
  background: var(--primary);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  overflow: hidden;
}

.nav-link {
  color: var(--text2);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-link i { font-size: 0.75rem; }

.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--surface);
}

.nav-link.active { color: var(--primary-light); }

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

.live-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text2);
  background: var(--surface);
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

.btn-nav-cta {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.btn-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(99,102,241,0.4); }

.nav-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.nav-avatar:hover { border-color: var(--primary); transform: scale(1.05); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* User Dropdown */
.user-dropdown {
  position: absolute;
  top: calc(var(--nav-h) + 4px);
  right: 24px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 240px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 999;
}

.user-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 4px;
}

.dropdown-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.dropdown-name { font-weight: 600; font-size: 0.95rem; }
.dropdown-email { color: var(--text2); font-size: 0.8rem; }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text2);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}

.dropdown-item:hover { background: var(--surface3); color: var(--text); }
.dropdown-item.danger:hover { background: rgba(239,68,68,0.1); color: var(--accent); }
.dropdown-item i { width: 16px; text-align: center; }

/* ─── Sections ─── */
.section {
  display: none;
  min-height: calc(100vh - var(--nav-h));
  padding: 0;
}

.section.active { display: block; }

/* ─── Hero ─── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px max(24px, calc((100vw - 1400px) / 2));
  position: relative;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  font-size: 30vw;
  font-weight: 900;
  color: rgba(99,102,241,0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-family: var(--font2);
  letter-spacing: -10px;
  white-space: nowrap;
  user-select: none;
}

.hero-content {
  flex: 1;
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.4);
  color: var(--primary-light);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font2);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typed-container {
  display: block;
  min-height: 1.2em;
}

.cursor-blink {
  animation: blink 0.7s infinite;
  -webkit-text-fill-color: var(--primary);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }

.stat-number {
  display: block;
  font-family: var(--font2);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text3);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Phone Mockup */
.hero-visual {
  flex-shrink: 0;
  position: relative;
}

.phone-mockup {
  width: 280px;
  background: var(--surface2);
  border-radius: 40px;
  border: 3px solid var(--border2);
  padding: 20px 16px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
  position: relative;
  animation: float 4s ease-in-out infinite;
}

.phone-mockup::before {
  content: '';
  display: block;
  width: 80px;
  height: 6px;
  background: var(--border2);
  border-radius: 3px;
  margin: 0 auto 16px;
}

.phone-screen {
  background: var(--bg3);
  border-radius: 24px;
  padding: 16px;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

.phone-campaign-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.phone-card-img {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
}

.phone-card-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.phone-card-sub {
  font-size: 0.8rem;
  color: var(--text2);
  margin-bottom: 12px;
}

.phone-vote-bar {
  height: 6px;
  background: var(--surface3);
  border-radius: 3px;
  margin-bottom: 8px;
  overflow: hidden;
}

.phone-vote-fill {
  height: 100%;
  width: 92%;
  background: var(--gradient);
  border-radius: 3px;
  animation: fillBar 2s ease forwards;
}

.phone-votes {
  font-size: 0.8rem;
  color: var(--text2);
}

.floating-reactions {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.float-emoji {
  font-size: 1.2rem;
  animation: floatUp 3s ease-in-out infinite;
  animation-delay: 0s;
  display: block;
}

/* ─── Buttons ─── */
.btn-primary {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(99,102,241,0.4); }

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border2);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover { background: var(--surface3); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--primary-light);
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-ghost:hover { background: rgba(99,102,241,0.1); }

.btn-xl { padding: 16px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; justify-content: center; }

.glow-btn {
  position: relative;
  overflow: hidden;
}

.glow-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient);
  border-radius: inherit;
  z-index: -1;
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s;
}

.glow-btn:hover::before { opacity: 0.8; }

/* ─── Section Blocks ─── */
.section-block {
  padding: 80px max(24px, calc((100vw - 1400px) / 2));
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-family: var(--font2);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -1px;
}

.section-sub {
  color: var(--text2);
  font-size: 1rem;
  margin-top: 4px;
}

/* ─── Steps Grid ─── */
.steps-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 16px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  flex: 1;
  min-width: 180px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.step-card:hover::before { opacity: 0.05; }
.step-card:hover { transform: translateY(-4px); border-color: var(--primary); }

.step-number {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--primary-light);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.5;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 60px;
}

/* ─── Campaign Cards ─── */
.trending-grid,
.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.campaign-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.campaign-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

.campaign-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  border-radius: inherit;
}

.campaign-card:hover::after { opacity: 0.03; }

.card-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.card-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

.card-trending {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(239,68,68,0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  animation: pulse 2s infinite;
}

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-hook {
  font-size: 0.875rem;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.author-name {
  font-size: 0.8rem;
  color: var(--text2);
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tag {
  background: rgba(99,102,241,0.15);
  color: var(--primary-light);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.vote-section { display: flex; align-items: center; gap: 8px; }

.vote-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.vote-btn:hover, .vote-btn.voted {
  background: var(--gradient);
  border-color: transparent;
  color: white;
  transform: scale(1.05);
}

.vote-btn.voted { box-shadow: 0 4px 15px rgba(99,102,241,0.4); }

.vote-count {
  font-size: 0.8rem;
  color: var(--text2);
  font-weight: 600;
}

.card-actions {
  display: flex;
  gap: 4px;
}

.card-action-btn {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: var(--transition);
}

.card-action-btn:hover { color: var(--primary); background: rgba(99,102,241,0.1); }

/* ─── Campaign Types Grid ─── */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.type-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.type-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.type-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 16px;
}

.type-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.type-card p { font-size: 0.875rem; color: var(--text2); line-height: 1.5; }

.type-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(99,102,241,0.15);
  color: var(--primary-light);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* ─── Prize Section ─── */
.prize-section {
  position: relative;
  padding: 100px 24px;
  text-align: center;
  overflow: hidden;
}

.prize-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.15) 0%, transparent 70%);
}

.prize-content { position: relative; z-index: 1; }

.prize-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.prize-amount {
  font-family: var(--font2);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #f97316, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  line-height: 1;
}

.prize-desc {
  font-size: 1.2rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ─── Page Header ─── */
.page-header {
  padding: 48px max(24px, calc((100vw - 1400px) / 2)) 0;
  margin-bottom: 32px;
}

.page-title {
  font-family: var(--font2);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-sub { color: var(--text2); font-size: 1rem; }

/* ─── Filter Bar ─── */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 max(24px, calc((100vw - 1400px) / 2));
  margin-bottom: 24px;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.filter-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-tab:hover { border-color: var(--primary); color: var(--text); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: white; }

.filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  transition: var(--transition);
}

.search-box:focus-within { border-color: var(--primary); }
.search-box i { color: var(--text3); }
.search-box input { background: none; border: none; outline: none; color: var(--text); font-size: 0.9rem; width: 200px; }

.sort-select select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

/* ─── View Toggle ─── */
.view-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 max(24px, calc((100vw - 1400px) / 2));
  margin-bottom: 24px;
}

.view-btn {
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

.campaign-count { color: var(--text3); font-size: 0.85rem; margin-left: 8px; }

/* ─── Campaigns Grid Wrapper ─── */
#campaignsGrid {
  padding: 0 max(24px, calc((100vw - 1400px) / 2));
}

.campaigns-grid.list-view {
  grid-template-columns: 1fr;
}

.campaigns-grid.list-view .campaign-card {
  flex-direction: row;
}

.campaigns-grid.list-view .card-image {
  width: 140px;
  height: auto;
  flex-shrink: 0;
}

.load-more-container {
  text-align: center;
  padding: 40px;
}

/* ─── Leaderboard ─── */
.podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  padding: 48px max(24px, calc((100vw - 1400px) / 2));
}

.podium-item {
  text-align: center;
  flex: 1;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.podium-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  margin-bottom: 0;
  transition: var(--transition);
  cursor: pointer;
}

.podium-card:hover { transform: translateY(-4px); }

.podium-rank {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.podium-emoji { font-size: 3rem; display: block; margin-bottom: 12px; }
.podium-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.podium-author { font-size: 0.8rem; color: var(--text2); margin-bottom: 8px; }
.podium-votes { font-size: 1.1rem; font-weight: 800; color: var(--primary); }

.podium-pedestal {
  border-radius: 0 0 12px 12px;
}

/* Gold — 1st place */
.podium-item[data-rank="0"] .podium-card  { border-color: #f59e0b; background: linear-gradient(135deg, rgba(245,158,11,0.12), var(--surface)); min-height: 320px; }
.podium-item[data-rank="0"] .podium-rank  { color: #f59e0b; text-shadow: 0 0 20px rgba(245,158,11,0.5); }
.podium-item[data-rank="0"] .podium-pedestal { background: linear-gradient(180deg,#f59e0b,#d97706); height: 90px !important; }
.podium-item[data-rank="0"] .podium-votes { color: #f59e0b; }

/* Silver — 2nd place */
.podium-item[data-rank="1"] .podium-card  { border-color: #94a3b8; background: linear-gradient(135deg, rgba(148,163,184,0.1), var(--surface)); min-height: 260px; }
.podium-item[data-rank="1"] .podium-rank  { color: #94a3b8; }
.podium-item[data-rank="1"] .podium-pedestal { background: linear-gradient(180deg,#94a3b8,#64748b); height: 60px !important; }
.podium-item[data-rank="1"] .podium-votes { color: #94a3b8; }

/* Bronze — 3rd place */
.podium-item[data-rank="2"] .podium-card  { border-color: #cd7c2f; background: linear-gradient(135deg, rgba(205,124,47,0.1), var(--surface)); min-height: 210px; }
.podium-item[data-rank="2"] .podium-rank  { color: #cd7c2f; }
.podium-item[data-rank="2"] .podium-pedestal { background: linear-gradient(180deg,#cd7c2f,#92400e); height: 35px !important; }
.podium-item[data-rank="2"] .podium-votes { color: #cd7c2f; }

.leaderboard-table-container {
  padding: 0 max(24px, calc((100vw - 1400px) / 2)) 48px;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.table-header h3 { font-size: 1.3rem; font-weight: 700; }

.leaderboard-table { display: flex; flex-direction: column; gap: 8px; }

.lb-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  cursor: pointer;
  transition: var(--transition);
}

.lb-row:hover { border-color: var(--primary); transform: translateX(4px); }

.lb-rank {
  width: 32px;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text2);
  flex-shrink: 0;
}

.lb-rank.gold { color: #f59e0b; font-size: 1.2rem; }
.lb-rank.silver { color: #94a3b8; font-size: 1.1rem; }
.lb-rank.bronze { color: #cd7c2f; font-size: 1rem; }

.lb-emoji { font-size: 2rem; flex-shrink: 0; }
.lb-info { flex: 1; min-width: 0; }
.lb-title { font-weight: 700; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-author { font-size: 0.8rem; color: var(--text2); }
.lb-votes { text-align: right; flex-shrink: 0; }
.lb-vote-count { font-weight: 800; font-size: 1.1rem; color: var(--primary); }
.lb-vote-label { font-size: 0.7rem; color: var(--text3); }
.lb-change { font-size: 0.8rem; font-weight: 600; }
.lb-change.up { color: var(--success); }
.lb-change.down { color: var(--accent); }

/* ─── Analytics ─── */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 0 max(24px, calc((100vw - 1400px) / 2)) 32px;
}

.analytics-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}

.analytics-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.ac-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.ac-number {
  font-family: var(--font2);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.ac-label { font-size: 0.8rem; color: var(--text2); }
.ac-change { font-size: 0.75rem; margin-top: 4px; font-weight: 600; }
.ac-change.positive { color: var(--success); }
.ac-change.negative { color: var(--accent); }

.charts-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1400px) / 2)) 24px;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.chart-card.full-width {
  margin: 0 max(24px, calc((100vw - 1400px) / 2)) 24px;
}

.chart-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.chart-container {
  height: 250px;
  position: relative;
}

/* Heatmap */
.heatmap-container {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0;
}

.heatmap-col { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.heatmap-label { font-size: 0.65rem; color: var(--text3); margin-top: 4px; }
.heatmap-cell {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
}
.heatmap-cell:hover { transform: scale(1.2); }

/* Category Bars */
.category-bars { display: flex; flex-direction: column; gap: 16px; }
.cat-row { display: flex; align-items: center; gap: 16px; }
.cat-label { width: 120px; font-size: 0.85rem; color: var(--text2); text-align: right; flex-shrink: 0; }
.cat-bar-wrap { flex: 1; background: var(--surface3); border-radius: 4px; height: 8px; overflow: hidden; }
.cat-bar { height: 100%; background: var(--gradient); border-radius: 4px; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }
.cat-val { width: 60px; font-size: 0.8rem; color: var(--text2); text-align: right; flex-shrink: 0; }

/* ─── Create Form ─── */
.create-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  padding: 0 max(24px, calc((100vw - 1400px) / 2)) 80px;
  align-items: start;
}

.form-progress {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}

.ps-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text3);
  transition: var(--transition);
}

.ps-label { font-size: 0.85rem; color: var(--text3); font-weight: 500; transition: var(--transition); }

.progress-step.active .ps-circle { background: var(--primary); border-color: var(--primary); color: white; }
.progress-step.active .ps-label { color: var(--text); }
.progress-step.done .ps-circle { background: var(--success); border-color: var(--success); color: white; }
.progress-step.done .ps-label { color: var(--success); }

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  position: relative;
  overflow: hidden;
}

.form-step { display: none; }
.form-step.active { display: block; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.required { color: var(--accent); }

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: var(--font);
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.form-textarea { resize: vertical; min-height: 120px; }

.char-counter {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text3);
  margin-top: 4px;
}

.twitter-hint { color: #1da1f2; font-weight: 500; }

/* Type Selector */
.type-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.type-option {
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.type-option:hover { border-color: var(--primary); }
.type-option.selected { border-color: var(--primary); background: rgba(99,102,241,0.1); }
.to-icon { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.to-label { font-size: 0.8rem; font-weight: 600; }

/* Tag Input */
.tag-input-container { margin-bottom: 8px; }

.tags-display {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(99,102,241,0.2);
  border: 1px solid var(--primary);
  color: var(--primary-light);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag-chip button {
  background: none;
  border: none;
  color: var(--primary-light);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 0.9rem;
}

/* Rich Toolbar */
.rich-toolbar {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.toolbar-btn {
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.toolbar-btn:hover { background: var(--surface2); color: var(--text); }

.rich-toolbar + .form-textarea { border-top-left-radius: 0; border-top-right-radius: 0; }

/* Platform Selector */
.platform-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.platform-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.platform-opt.selected { background: rgba(99,102,241,0.15); border-color: var(--primary); color: var(--primary-light); }
.platform-opt i { font-size: 1rem; }

/* Color Picker */
.color-picker-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
}

.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active { border-color: white; box-shadow: 0 0 0 2px var(--primary); }
.color-custom { width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer; padding: 0; }

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border2);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.upload-zone:hover, .upload-zone.dragging, .upload-zone.dragover { border-color: var(--primary); background: rgba(99,102,241,0.05); }
.upload-zone.has-file { border-style: solid; border-color: var(--success); }

.upload-icon { font-size: 2rem; margin-bottom: 8px; }
.upload-content p { color: var(--text2); font-size: 0.9rem; margin-bottom: 4px; }
.upload-content span { font-size: 0.75rem; color: var(--text3); }

.upload-preview img { max-width: 100%; max-height: 200px; border-radius: var(--radius-sm); margin-top: 12px; }

/* Form Buttons */
.btn-row { display: flex; gap: 12px; justify-content: flex-end; }

/* Password */
.pass-input-wrap { position: relative; }
.pass-input-wrap .form-input { padding-right: 48px; }
.pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  padding: 4px;
}

.password-strength { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.strength-bar { flex: 1; height: 4px; background: var(--surface3); border-radius: 2px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 2px; transition: width 0.3s, background 0.3s; }
.strength-label { font-size: 0.75rem; font-weight: 600; }

.username-check { font-size: 0.8rem; margin-top: 4px; }
.username-check.valid { color: var(--success); }
.username-check.invalid { color: var(--accent); }

/* ─── Preview Panel ─── */
.preview-panel {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.preview-header h3 { font-size: 1rem; font-weight: 700; }

.preview-device-toggle {
  display: flex;
  gap: 4px;
}

.pdt-btn {
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.pdt-btn.active { background: var(--primary); border-color: var(--primary); }

.preview-device {
  display: flex;
  justify-content: center;
}

.preview-device.mobile .preview-card {
  width: 280px;
  background: var(--surface);
  border-radius: 24px;
  border: 3px solid var(--border2);
  overflow: hidden;
  padding: 20px;
  min-height: 400px;
  box-shadow: var(--shadow);
}

.preview-device.desktop .preview-card {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  overflow: hidden;
  padding: 24px;
  min-height: 300px;
  box-shadow: var(--shadow-sm);
}

.preview-placeholder { display: flex; align-items: center; justify-content: center; height: 200px; color: var(--text3); font-size: 0.85rem; text-align: center; }
.preview-camp-image { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 4rem; border-radius: var(--radius-sm); margin-bottom: 12px; }
.preview-camp-type { font-size: 0.7rem; font-weight: 700; color: var(--primary-light); letter-spacing: 1px; margin-bottom: 6px; }
.preview-camp-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.preview-camp-hook { font-size: 0.85rem; color: var(--text2); line-height: 1.5; margin-bottom: 12px; }
.preview-camp-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.preview-vote-area { display: flex; align-items: center; justify-content: space-between; }
.preview-vote-btn { background: var(--gradient); color: white; border: none; padding: 8px 20px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.preview-vote-count { font-size: 0.8rem; color: var(--text2); }

/* ─── Review Preview ─── */
.review-preview {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.review-item { margin-bottom: 12px; }
.review-label { font-size: 0.75rem; color: var(--text3); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 2px; }
.review-value { font-size: 0.95rem; color: var(--text); }

/* Viral Score */
.viral-score-container {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.viral-score-container h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; }
.viral-score-bar { height: 12px; background: var(--surface3); border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.vs-fill { height: 100%; background: var(--gradient); border-radius: 6px; transition: width 1s ease; }
.vs-details { font-size: 0.8rem; color: var(--text2); }

/* AI Tips */
.ai-tips {
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.ai-tips h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; color: var(--primary-light); }
.ai-tips ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ai-tips li { font-size: 0.85rem; color: var(--text2); display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.ai-tips li::before { content: '→'; color: var(--primary); flex-shrink: 0; }

/* Checkbox */
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox-label input { margin-top: 3px; accent-color: var(--primary); cursor: pointer; }
.checkbox-label span { font-size: 0.875rem; color: var(--text2); line-height: 1.5; }
.link { color: var(--primary-light); text-decoration: underline; }

/* ─── Auth Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  transform: translateY(24px);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.modal-close:hover { background: var(--accent); border-color: var(--accent); color: white; }

.auth-modal    { max-width: 440px; width: 100%; }
.campaign-modal{ max-width: 700px; width: 100%; }
.share-modal   { max-width: 500px; width: 100%; }

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
  width: 100%;
  box-sizing: border-box;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-align: center;
}

.auth-tab.active { background: var(--primary); color: white; }

.auth-form { display: none; width: 100%; box-sizing: border-box; }
.auth-form.active { display: flex; flex-direction: column; gap: 0; }

.auth-header { text-align: center; margin-bottom: 24px; }
.auth-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.auth-header h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.auth-header p { color: var(--text2); font-size: 0.9rem; }

/* Fix form groups inside auth */
.auth-form .form-group { margin-bottom: 16px; width: 100%; }
.auth-form .form-input { width: 100%; box-sizing: border-box; }
.auth-form .btn-full { width: 100%; box-sizing: border-box; margin-top: 8px; }

.auth-social { text-align: center; margin-top: 20px; width: 100%; }
.auth-social p { color: var(--text3); font-size: 0.8rem; margin-bottom: 12px; }
.social-btns { display: flex; gap: 8px; width: 100%; }

.social-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  touch-action: manipulation;
}

.social-btn:hover { transform: translateY(-2px); }
.social-btn.google:hover { background: rgba(234,67,53,0.1); border-color: rgba(234,67,53,0.4); }
.social-btn.github:hover { background: rgba(255,255,255,0.05); }

.demo-hint {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text2);
  width: 100%;
  box-sizing: border-box;
}

/* Password strength bar full width */
.password-strength { width: 100%; margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.strength-bar { flex: 1; height: 4px; background: var(--surface3); border-radius: 2px; overflow: hidden; }
.strength-fill { height: 100%; width: 0; border-radius: 2px; transition: all 0.3s; }
.strength-label { font-size: 0.75rem; font-weight: 600; min-width: 40px; }

/* Username check */
.username-check { font-size: 0.75rem; margin-top: 4px; font-weight: 600; }
.username-check.valid { color: #10b981; }
.username-check.invalid { color: #ef4444; }

/* Campaign Modal */
.cm-image {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.cm-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.cm-type { background: rgba(99,102,241,0.15); color: var(--primary-light); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.cm-date { font-size: 0.8rem; color: var(--text3); }

.cm-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.cm-hook { font-size: 1.05rem; font-style: italic; color: var(--primary-light); margin-bottom: 16px; padding: 12px; background: rgba(99,102,241,0.08); border-left: 3px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.cm-desc { color: var(--text2); line-height: 1.7; margin-bottom: 20px; }

.cm-author { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--surface2); border-radius: var(--radius-sm); margin-bottom: 20px; }
.cm-author-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; font-size: 1.1rem; }
.cm-author-name { font-weight: 700; margin-bottom: 2px; }
.cm-author-sub { font-size: 0.8rem; color: var(--text2); }

.cm-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Comments */
.cm-comments { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 20px; }
.cm-comments h4 { font-weight: 700; margin-bottom: 16px; }
.comment-input-row { display: flex; gap: 8px; margin-bottom: 16px; }
.comment-input-row input { flex: 1; background: var(--surface2); border: 1px solid var(--border); color: var(--text); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; outline: none; }
.comment-input-row input:focus { border-color: var(--primary); }
.comment-list { display: flex; flex-direction: column; gap: 12px; }
.comment-item { background: var(--surface2); border-radius: var(--radius-sm); padding: 12px; }
.comment-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.comment-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: white; }
.comment-user { font-size: 0.85rem; font-weight: 600; }
.comment-time { font-size: 0.75rem; color: var(--text3); }
.comment-text { font-size: 0.85rem; color: var(--text2); line-height: 1.5; }

/* Share Modal */
.share-modal { max-width: 480px; }
.share-content { text-align: center; }
.share-content h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.share-content p { color: var(--text2); margin-bottom: 20px; }

.share-link-box { display: flex; gap: 8px; margin-bottom: 24px; }
.share-link-box .form-input { flex: 1; text-align: left; }

.share-platforms { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }

.share-platform {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: white;
}

.share-platform:hover { transform: translateY(-2px); }
.share-platform.twitter { background: #1da1f2; }
.share-platform.instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.share-platform.linkedin { background: #0077b5; }
.share-platform.whatsapp { background: #25d366; }
.share-platform.reddit { background: #ff4500; }

.qr-container { margin-top: 16px; }
.qr-placeholder { width: 120px; height: 120px; background: var(--surface2); border-radius: var(--radius-sm); margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.qr-animation { width: 60px; height: 60px; background: repeating-linear-gradient(0deg, var(--primary) 0px, var(--primary) 4px, transparent 4px, transparent 8px), repeating-linear-gradient(90deg, var(--primary) 0px, var(--primary) 4px, transparent 4px, transparent 8px); opacity: 0.6; }
.qr-placeholder p { font-size: 0.7rem; color: var(--text3); }

/* ─── Footer ─── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px max(24px, calc((100vw - 1400px) / 2)) 24px;
  margin-top: auto;
}

.footer-content {
  display: flex;
  gap: 60px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand { max-width: 240px; }
.footer-brand p { color: var(--text2); font-size: 0.875rem; margin-top: 8px; line-height: 1.5; }

.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 16px; letter-spacing: 0.5px; }
.footer-col a { display: block; color: var(--text2); font-size: 0.875rem; margin-bottom: 10px; cursor: pointer; transition: var(--transition); text-decoration: none; }
.footer-col a:hover { color: var(--primary-light); }
.footer-col a i { margin-right: 6px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p { color: var(--text3); font-size: 0.8rem; }

/* ─── Animations ─── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes floatUp {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-80px); opacity: 0; }
}

@keyframes fillBar {
  from { width: 0; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes countUp { }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-in { animation: fadeIn 0.6s ease forwards; opacity: 0; }
.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.2s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.4s; }
.animate-in:nth-child(5) { animation-delay: 0.5s; }

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface3) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .create-layout { grid-template-columns: 1fr; }
  .preview-panel { position: relative; top: 0; }
  .hero { flex-direction: column; text-align: center; padding-top: 60px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 12px; flex-direction: column; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .btn-nav-cta { display: none; }
  .live-counter { display: none; }
  .hero-visual { display: none; }
  .steps-grid { overflow-x: auto; }
  .step-connector { display: none; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .podium-container { flex-direction: column; align-items: stretch; }
  .podium-pedestal { display: none; }
  .charts-row { grid-template-columns: 1fr; }
  .create-layout { padding: 0 16px 60px; }
  .form-card { padding: 20px; }
  .type-selector { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 40px 16px; }
  .section-block { padding: 40px 16px; }
  .modal { padding: 24px; }
  .analytics-grid { grid-template-columns: 1fr 1fr; }
  .footer-content { flex-direction: column; gap: 32px; }
  .footer-links { gap: 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-badge { font-size: 0.7rem; }
  .analytics-grid { grid-template-columns: 1fr; }
  .trending-grid, .campaigns-grid { grid-template-columns: 1fr; }
  .search-box input { width: 140px; }
  .filter-tabs { overflow-x: auto; }
  .hero-actions { flex-direction: column; }
}

/* ─── Misc ─── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text3); }
.empty-state-icon { font-size: 4rem; display: block; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; font-weight: 700; color: var(--text2); margin-bottom: 8px; }

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* Canvas chart bars (simple) */
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 200px; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.bar-fill { width: 100%; border-radius: 4px 4px 0 0; background: var(--gradient); transition: height 1s cubic-bezier(0.4,0,0.2,1); min-height: 4px; margin-top: auto; }
.bar-label { font-size: 0.7rem; color: var(--text3); white-space: nowrap; }
.bar-value { font-size: 0.7rem; color: var(--text2); font-weight: 600; }

/* Donut chart simulation */
.donut-chart {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.donut-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(
    #6366f1 0deg 144deg,
    #f59e0b 144deg 230deg,
    #ef4444 230deg 288deg,
    #10b981 288deg 360deg
  );
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.donut-ring::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: var(--surface);
  border-radius: 50%;
}

.donut-legend { display: flex; flex-direction: column; gap: 8px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Notification badge */
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

/* Reaction bar */
.reaction-bar {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.reaction-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.reaction-btn:hover { transform: scale(1.1); border-color: var(--primary); }
.reaction-btn.active { background: rgba(99,102,241,0.15); border-color: var(--primary); }
.reaction-count { font-size: 0.75rem; font-weight: 600; color: var(--text2); }
/* ═══════════════════════════════════════════════════════════════
   NEW FEATURES — Velocity, Battle, AI Analyzer, Activity Feed
═══════════════════════════════════════════════════════════════ */

/* ─── Nav Badge ─── */
.nav-badge {
  display: inline-block;
  background: var(--gradient);
  color: white;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

/* ─── Live Pill ─── */
.live-pill {
  display: inline-block;
  background: rgba(16,185,129,0.15);
  color: #10b981;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  letter-spacing: 1px;
  vertical-align: middle;
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ─── Velocity List ─── */
.velocity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 900px;
}
.velocity-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.velocity-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gradient);
  border-radius: 2px 0 0 2px;
}
.velocity-row:hover { border-color: var(--primary); transform: translateX(4px); }
.velocity-rank-num { font-size: 1.1rem; font-weight: 800; color: var(--text3); min-width: 28px; }
.velocity-emoji { font-size: 1.8rem; }
.velocity-info { flex: 1; min-width: 0; }
.velocity-title { font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.velocity-author { font-size: 0.75rem; color: var(--text3); }
.velocity-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: #10b981;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.velocity-badge .vb-arrow { font-size: 0.9rem; }
.velocity-total { font-size: 0.78rem; color: var(--text3); text-align: right; min-width: 70px; }

/* ─── AI Analyzer ─── */
.ai-analyzer-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.btn-analyze {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s;
}
.btn-analyze:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(99,102,241,0.4); }
.btn-analyze:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.hook-score-display { display: flex; align-items: center; gap: 10px; }
.hook-score-ring {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0deg, var(--surface3) 0deg);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 800;
  position: relative;
}
.hook-score-ring::after {
  content: '';
  position: absolute;
  width: 38px; height: 38px;
  background: var(--surface);
  border-radius: 50%;
}
#hookScoreNum { position: relative; z-index: 1; font-size: 0.85rem; }
.hook-score-text { font-size: 0.8rem; color: var(--text2); max-width: 180px; line-height: 1.4; }
.ai-feedback-box {
  margin-top: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(236,72,153,0.08));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.83rem;
  line-height: 1.7;
  color: var(--text2);
}
.ai-feedback-box .ai-section { margin-bottom: 8px; }
.ai-feedback-box strong { color: var(--text); }

/* ─── Share Card ─── */
.share-card-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.share-card-section h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
#shareCardPreview img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ─── Battle Mode ─── */
.battle-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .battle-arena { grid-template-columns: 1fr; }
  .battle-vs { display: none; }
}
.battle-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.battle-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(99,102,241,0.2); }
.battle-card.winner { border-color: #10b981; box-shadow: 0 0 30px rgba(16,185,129,0.3); }
.battle-card.loser { opacity: 0.5; }
.battle-card-emoji { font-size: 3.5rem; text-align: center; }
.battle-card-type { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--primary-light); letter-spacing: 1px; }
.battle-card-title { font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.battle-card-hook { font-size: 0.83rem; color: var(--text2); font-style: italic; line-height: 1.5; }
.battle-card-author { font-size: 0.75rem; color: var(--text3); }
.battle-vote-btn {
  margin-top: auto;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}
.battle-vote-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99,102,241,0.4); }
.battle-vote-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.battle-vote-count { text-align: center; font-size: 0.85rem; color: var(--text3); font-weight: 600; }
.battle-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
}
.battle-vs-text {
  background: var(--gradient);
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; color: white;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.battle-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.battle-progress-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.battle-progress-bar {
  flex: 1;
  height: 10px;
  background: var(--surface3);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
}
.battle-bar-a { background: #6366f1; height: 100%; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
.battle-bar-b { background: #ec4899; height: 100%; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
.battle-bar-label { font-size: 0.75rem; font-weight: 700; color: var(--text2); white-space: nowrap; }
.battle-history { margin-top: 8px; }
.battle-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 0.82rem;
}
.battle-winner-tag { background: rgba(16,185,129,0.15); color: #10b981; padding: 2px 8px; border-radius: 4px; font-weight: 700; font-size: 0.72rem; }

/* ─── Activity Ticker ─── */
.activity-ticker {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 36px;
  background: rgba(10,10,20,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 8888;
  overflow: hidden;
}
.ticker-label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #10b981;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.08);
  height: 100%;
  flex-shrink: 0;
}
.ticker-track {
  display: flex;
  gap: 48px;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.77rem;
  color: rgba(255,255,255,0.65);
}
.ticker-item .ti-emoji { font-size: 0.9rem; }
.ticker-item .ti-highlight { color: #a5b4fc; font-weight: 600; }
.ticker-item .ti-action { color: rgba(255,255,255,0.4); }

/* ─── Leaderboard Velocity in table ─── */
.lb-velocity {
  font-size: 0.73rem;
  color: #10b981;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 70px;
}
.lb-velocity.hot { color: #f59e0b; }
.lb-velocity.fire { color: #ef4444; animation: glow-red 1.5s infinite; }
@keyframes glow-red {
  0%,100% { text-shadow: none; }
  50% { text-shadow: 0 0 8px rgba(239,68,68,0.8); }
}

/* Adjust footer to clear ticker */
.footer { padding-bottom: 52px; }

/* ═══════════════════════════════════════════════════════════════
   SCROLL STOPPER SIMULATOR
═══════════════════════════════════════════════════════════════ */
.simulator-wrap {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1000px;
  padding: 0 max(24px, calc((100vw - 1400px) / 2));
  padding-bottom: 60px;
}
@media (max-width: 900px) { .simulator-wrap { grid-template-columns: 1fr; } }

.sim-phone {
  width: 280px;
  height: 560px;
  background: #0a0a14;
  border-radius: 36px;
  border: 4px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}
.sim-phone-notch {
  width: 100px; height: 24px;
  background: #0a0a14;
  border-radius: 0 0 16px 16px;
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 10; border: 2px solid rgba(255,255,255,0.08);
  border-top: none;
}
.sim-phone-home {
  width: 80px; height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
}
.sim-feed {
  width: 100%; height: 100%;
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.sim-loading { text-align: center; }
.sim-post {
  position: absolute;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  padding: 32px 16px 24px;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
}
.sim-post.filler { background: linear-gradient(180deg, #1a1a2e, #16213e); }
.sim-post.campaign { background: linear-gradient(180deg, #0d0d1a, #12122a); }
.sim-post-avatar { width: 36px; height: 36px; border-radius: 50%; margin-bottom: 8px; display: flex; align-items:center; justify-content:center; font-size:1rem; font-weight:700; }
.sim-post-username { font-size: 0.78rem; font-weight: 700; color: white; margin-bottom: 4px; }
.sim-post-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.sim-post-emoji { font-size: 3.5rem; }
.sim-post-text { font-size: 0.8rem; color: rgba(255,255,255,0.7); line-height: 1.5; }
.sim-post-actions { display: flex; gap: 16px; justify-content: center; margin-top: 8px; }
.sim-action { display: flex; flex-direction: column; align-items: center; gap: 2px; color: rgba(255,255,255,0.5); font-size: 0.65rem; }
.sim-action i { font-size: 1.1rem; }
.sim-campaign-ring {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: 36px;
  pointer-events: none;
  transition: border-color 0.3s;
}
.sim-campaign-ring.active { border-color: #10b981; box-shadow: 0 0 30px rgba(16,185,129,0.4); }
.stop-overlay {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: rgba(16,185,129,0.95);
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 10px 20px;
  border-radius: 24px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 20;
  white-space: nowrap;
}
.stop-overlay.show { opacity: 1; }

.sim-campaign-picker { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; }
.sim-pick-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s;
  font-size: 0.84rem;
}
.sim-pick-item:hover { border-color: var(--primary); }
.sim-pick-item.selected { border-color: var(--primary); background: rgba(99,102,241,0.1); }
.sim-pick-emoji { font-size: 1.4rem; }
.sim-pick-title { font-weight: 700; font-size: 0.82rem; }
.sim-pick-author { font-size: 0.72rem; color: var(--text3); }
.sim-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 20px; }
.sim-stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.sim-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.sim-stat-label { font-size: 0.7rem; color: var(--text3); margin-top: 4px; }
.sim-verdict {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.6;
  border: 1px solid rgba(99,102,241,0.2);
  background: rgba(99,102,241,0.06);
}

/* ═══════════════════════════════════════════════════════════════
   AI INSIGHTS
═══════════════════════════════════════════════════════════════ */
.insights-wrap { 
  max-width: 1100px; 
  padding: 0 max(24px, calc((100vw - 1400px) / 2));
  padding-bottom: 60px;
}
.insights-picker-wrap { margin-bottom: 28px; }
.insights-picker-wrap h3 { 
  font-weight: 700; 
  margin-bottom: 12px; 
  font-size: 1rem;
  color: var(--text);
}
.insights-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.insights-pick-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: 24px; cursor: pointer; transition: all 0.2s;
  font-size: 0.82rem; font-weight: 600;
}
.insights-pick-btn:hover { border-color: var(--primary); }
.insights-pick-btn.active { border-color: var(--primary); background: rgba(99,102,241,0.12); color: var(--primary); }

.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 800px) { .insights-grid { grid-template-columns: 1fr; } }
.insight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text);
}
.insight-title { font-size: 0.95rem; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.insight-title i { color: var(--primary); }

/* Radar chart */
.radar-wrap { display: flex; justify-content: center; margin-bottom: 12px; }
#radarCanvas { max-width: 100%; }
.dna-labels { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.dna-label-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 700;
  background: rgba(99,102,241,0.15); color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.25);
}
.dna-score { font-size: 0.9rem; font-weight: 800; color: #c4b5fd; }

/* Timeline */
#timelineCanvas { max-width: 100%; border-radius: 8px; background: rgba(99,102,241,0.04); }
.timeline-legend { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.tl-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text2); }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; }

/* Why It Works */
.why-content { min-height: 160px; }
.why-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 160px; }
.why-loading p { color: var(--text2); }
.why-point {
  display: flex; gap: 12px; margin-bottom: 16px;
  padding: 12px 14px;
  background: rgba(99,102,241,0.08);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}
.why-icon { font-size: 1.3rem; flex-shrink: 0; }
.why-text { font-size: 0.83rem; line-height: 1.6; color: #cbd5e1; }
.why-text strong { color: #f1f5f9; display: block; margin-bottom: 2px; font-size: 0.88rem; }
.why-verdict {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}
.why-verdict.strong { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.why-verdict.medium { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.why-verdict.weak { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }

/* India Heatmap */
.india-map-wrap { position: relative; background: rgba(99,102,241,0.04); border-radius: 8px; }
#indiaMapSvg { width: 100%; max-height: 260px; }
.city-dot { cursor: pointer; transition: r 0.3s; }
.city-dot:hover { r: 14; }
.city-label { font-size: 8px; fill: rgba(255,255,255,0.8); font-family: Inter, sans-serif; pointer-events: none; font-weight: 600; }
.heatmap-cities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.city-pill {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700;
  background: rgba(99,102,241,0.12); color: #cbd5e1;
  border: 1px solid rgba(99,102,241,0.2);
}
.city-pill .cp-dot { width: 7px; height: 7px; border-radius: 50%; }

/* Insights picker buttons */
.insights-pick-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--surface2); border: 2px solid var(--border);
  border-radius: 24px; cursor: pointer; transition: all 0.2s;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text2);
}
.insights-pick-btn:hover { border-color: var(--primary); color: var(--text); }
.insights-pick-btn.active { border-color: var(--primary); background: rgba(99,102,241,0.15); color: #a5b4fc; }

/* Insights CTA */
.insights-cta {
  width: 100%;
  text-align: center;
  padding: 0px 20px 40px;
  margin-top: -40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.insights-cta h3 { color: var(--text); font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.insights-cta p { color: var(--text3); font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════════
   ONBOARDING TOUR
═══════════════════════════════════════════════════════════════ */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,10,0.85);
  backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.onboarding-modal {
  background: var(--surface);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 24px;
  padding: 40px 36px 28px;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(99,102,241,0.1);
  overflow: hidden;
}
.onboarding-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
}

.onboarding-skip {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text3);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.onboarding-skip:hover { border-color: var(--primary); color: var(--primary); }

.onboarding-steps { min-height: 300px; position: relative; }

.ob-step {
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: obSlideIn 0.35s cubic-bezier(0.4,0,0.2,1);
}
.ob-step.active { display: flex; }
@keyframes obSlideIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes obSlideBack {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ob-step.slide-back { animation: obSlideBack 0.35s cubic-bezier(0.4,0,0.2,1); }

.ob-icon {
  font-size: 3.2rem;
  line-height: 1;
  margin-bottom: 4px;
}
.ob-tag {
  display: inline-block;
  background: rgba(99,102,241,0.12);
  color: var(--primary-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
}
.ob-title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}
.ob-desc {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.7;
  margin: 0;
}
.ob-desc strong { color: var(--text); }

.ob-demo { margin-top: 4px; }
.ob-demo-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
  padding: 14px 18px;
}
.ob-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.ob-pill {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--primary-light);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}
.ob-cta {
  margin-top: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  width: 100%;
  justify-content: center;
}

/* Dots */
.ob-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 16px;
}
.ob-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s;
}
.ob-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* Nav */
.ob-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ob-btn-prev, .ob-btn-next {
  display: flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.ob-btn-next { background: var(--gradient); color: white; border-color: transparent; }
.ob-btn-prev:hover { border-color: var(--primary); color: var(--primary); }
.ob-btn-next:hover { transform: translateX(2px); }
.ob-step-label { font-size: 0.78rem; color: var(--text3); }

/* ═══════════════════════════════════════════════════════════════
   MOBILE TOUCH FIX — All buttons clickable on touch devices
═══════════════════════════════════════════════════════════════ */

/* Hide custom cursor on touch devices — it blocks taps */
@media (hover: none), (pointer: coarse) {
  .custom-cursor,
  .cursor-trail {
    display: none !important;
  }
  /* Ensure canvas never blocks touch */
  #particleCanvas {
    pointer-events: none !important;
    touch-action: none !important;
  }
  /* Make all interactive elements tappable */
  button, a, [onclick],
  .campaign-card, .type-card, .vote-btn,
  .nav-link, .filter-tab, .lb-row,
  .velocity-row, .sim-pick-item,
  .insights-pick-btn, .battle-card,
  .battle-vote-btn, .ob-btn-next,
  .ob-btn-prev, .ob-dot,
  .share-platform, .reaction-btn,
  .card-action-btn, .type-option,
  .color-swatch, .platform-opt {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(99,102,241,0.2);
    touch-action: manipulation;
  }
  /* Fix mix-blend-mode blocking touches */
  .custom-cursor { mix-blend-mode: normal; }
  /* Ticker area shouldn't block taps */
  .activity-ticker { pointer-events: none; }
  .ticker-track { pointer-events: none; }
  /* Fix modal close on mobile */
  .modal-overlay { touch-action: manipulation; }
  /* Ensure onboarding buttons work */
  .onboarding-modal button { touch-action: manipulation; }
  /* Simulator and insights pickers */
  .sim-campaign-picker { touch-action: pan-y; }
  .insights-picker { touch-action: pan-x; }
}

/* Extra small mobile fixes */
@media (max-width: 480px) {
  .simulator-wrap { grid-template-columns: 1fr; }
  .sim-phone { width: 240px; height: 480px; }
  .battle-arena { grid-template-columns: 1fr; gap: 12px; }
  .battle-vs { display: none; }
  .ob-title { font-size: 1.1rem; }
  .onboarding-modal { padding: 28px 20px 20px; }
  .insights-grid { grid-template-columns: 1fr; }
  .sim-stats { grid-template-columns: repeat(3,1fr); gap: 6px; }
  .sim-stat-num { font-size: 1.1rem; }
  .velocity-badge { display: none; }
  .activity-ticker { height: 30px; font-size: 0.7rem; }
}

/* ─── Battle Wrap ─── */
.battle-wrap {
  padding: 0 max(24px, calc((100vw - 1400px) / 2));
  padding-bottom: 60px;
  max-width: 1100px;
}

/* ─── Fix cursor dot showing on desktop ─── */
.custom-cursor {
  mix-blend-mode: normal;
  pointer-events: none;
}

/* ─── Cursor restored ─── */

/* ═══════════════════════════════════════════════════════════════
   TAG WORD CLOUD
═══════════════════════════════════════════════════════════════ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 80px;
}
.tag-cloud-item {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  transform: translateY(8px);
  transition: all 0.2s;
  letter-spacing: -0.2px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
}
.tag-cloud-item:hover {
  transform: translateY(-3px) scale(1.08);
  filter: brightness(1.3);
  background: rgba(255,255,255,0.08);
}

/* ═══════════════════════════════════════════════════════════════
   BRING PEOPLE IN COUNTER
═══════════════════════════════════════════════════════════════ */
.bring-people-block {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(236,72,153,0.08));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius);
  padding: 32px;
}
.bring-people-wrap {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.bring-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-light);
  margin-bottom: 8px;
}
.bring-count {
  font-size: 3.5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.bring-sub {
  font-size: 0.82rem;
  color: var(--text3);
  max-width: 240px;
}
.bring-people-right {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.bring-stat {
  text-align: center;
}
.bring-stat span {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.bring-stat div {
  font-size: 0.72rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════════
   RANK CHANGE ANIMATIONS
═══════════════════════════════════════════════════════════════ */
.lb-row {
  position: relative;
  transition: background 0.4s;
}
.lb-row.rank-up {
  background: rgba(16,185,129,0.08) !important;
  border-color: rgba(16,185,129,0.3) !important;
}
.rank-change-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  animation: rankBadgePop 2s ease forwards;
}
.rank-change-badge.up {
  background: rgba(16,185,129,0.2);
  color: #10b981;
}
@keyframes rankBadgePop {
  0% { opacity: 0; transform: translateY(-50%) scale(0.5); }
  20% { opacity: 1; transform: translateY(-50%) scale(1.2); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-80%) scale(0.9); }
}

/* ═══════════════════════════════════════════════════════════════
   FEATURED CAMPAIGN BADGE
═══════════════════════════════════════════════════════════════ */
.card-featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE NAV POLISH
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(10,10,20,0.98);
    backdrop-filter: blur(20px);
    padding: 16px;
    gap: 4px;
    z-index: 9998;
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav-links.open .nav-link {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
  }
  .bring-people-wrap { gap: 24px; }
  .bring-count { font-size: 2.5rem; }
  .bring-people-right { gap: 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   SOCIAL PROOF TOAST
═══════════════════════════════════════════════════════════════ */
.social-proof-toast {
  position: fixed;
  bottom: 52px;
  left: 20px;
  background: rgba(15,15,25,0.97);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 8887;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateX(-120%);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  backdrop-filter: blur(12px);
}
.social-proof-toast.show { transform: translateX(0); }
.sp-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: white;
  flex-shrink: 0;
}
.sp-text { font-size: 0.78rem; line-height: 1.4; color: var(--text2); }
.sp-text strong { color: var(--text); display: block; margin-bottom: 1px; }
.sp-text em { color: var(--primary-light); font-style: normal; }

/* ═══════════════════════════════════════════════════════════════
   CREATOR SPOTLIGHT
═══════════════════════════════════════════════════════════════ */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .spotlight-grid { grid-template-columns: 1fr; } }

.spotlight-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.spotlight-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.spotlight-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}
.spotlight-crown { font-size: 2rem; margin-bottom: 12px; }
.spotlight-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: white;
  margin: 0 auto 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.spotlight-name { font-size: 1.05rem; font-weight: 800; margin-bottom: 2px; }
.spotlight-handle { font-size: 0.78rem; color: var(--text3); margin-bottom: 8px; }
.spotlight-label {
  display: inline-block;
  background: rgba(99,102,241,0.15);
  color: var(--primary-light);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.spotlight-stats {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 12px;
}
.sp-stat-num { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.sp-stat-label { font-size: 0.68rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }
.spotlight-top {
  font-size: 0.75rem;
  color: var(--text3);
  line-height: 1.4;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
}
.spotlight-top em { color: var(--text2); font-style: normal; }

/* ═══════════════════════════════════════════════════════════════
   COUNTDOWN TIMER
═══════════════════════════════════════════════════════════════ */
.hero-countdown {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.cd-label-top {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text3);
}
.countdown-timer {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 52px;
}
.cd-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-label {
  font-size: 0.6rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 3px;
}
.cd-sep {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text3);
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   KEYBOARD SHORTCUTS
═══════════════════════════════════════════════════════════════ */
.kbd-hint-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text3);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.kbd-hint-btn:hover { border-color: var(--primary); color: var(--primary); }

.keyboard-help-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.keyboard-help-modal.show { opacity: 1; }
.kbd-modal-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  min-width: 320px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.kbd-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.kbd-modal-header h3 { font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.kbd-grid { display: flex; flex-direction: column; gap: 8px; }
.kbd-row { display: flex; align-items: center; gap: 12px; }
.kbd-key {
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: monospace;
  color: var(--primary-light);
  min-width: 40px;
  text-align: center;
  box-shadow: 0 2px 0 rgba(0,0,0,0.3);
}
.kbd-label { font-size: 0.85rem; color: var(--text2); }

/* ═══════════════════════════════════════════════════════════════
   FINAL POLISH
═══════════════════════════════════════════════════════════════ */

/* Nav notification badge */
.nav-notif {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: white;
  font-size: 0.58rem;
  font-weight: 800;
  width: 16px; height: 16px;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
  animation: badgePop 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes badgePop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* Chart cards equal height */
.charts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 900px) { .charts-row { grid-template-columns: 1fr; } }

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.chart-card h3 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text2);
}
.chart-container {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chart-container canvas { max-height: 220px; }

/* Reaction float animation */
.reaction-btn {
  transition: transform 0.2s;
  position: relative;
}
.reaction-btn.active {
  background: rgba(99,102,241,0.15);
  border-color: var(--primary);
}

/* Campaign card NEW badge */
.card-new-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: #10b981;
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Smooth section transitions */
.section {
  animation: sectionFadeIn 0.3s ease;
}
@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Better empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
}
.empty-state-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text2); }
.empty-state p { font-size: 0.85rem; }

/* Fix charts-row on analytics page to be 3 columns */
#analyticsSection .charts-row {
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 1000px) {
  #analyticsSection .charts-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  #analyticsSection .charts-row { grid-template-columns: 1fr; }
}

/* Pulse on velocity badge when updated */
@keyframes velocityPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; box-shadow: 0 0 10px rgba(16,185,129,0.6); }
}
.velocity-badge.updated { animation: velocityPulse 1s ease; }

/* Light mode improvements */
body.light-mode .sim-phone { background: #f8f9ff; border-color: rgba(0,0,0,0.15); }
body.light-mode .sim-post-username { color: #1a1a2e; }
body.light-mode .social-proof-toast { background: rgba(255,255,255,0.97); border-color: rgba(99,102,241,0.3); }
body.light-mode .social-proof-toast .sp-text { color: #444; }
body.light-mode .activity-ticker { background: rgba(240,240,255,0.98); border-color: rgba(99,102,241,0.15); }
body.light-mode .ticker-item { color: rgba(0,0,0,0.65); }
body.light-mode .kbd-modal-inner { background: #fff; }
body.light-mode .kbd-key { background: #f0f0f8; color: #6366f1; }

/* ─── Navbar medium screen fix ───────────────────────────────── */
@media (max-width: 1100px) {
  .nav-link i { display: none; }
  .nav-badge { display: none; }
  .kbd-hint-btn { display: none; }
  .live-counter { display: none; }
}
@media (max-width: 960px) {
  .nav-link { font-size: 0.72rem; padding: 5px 6px; }
}

/* ─── User Rank Banner ───────────────────────────────────────── */
.user-rank-banner {
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(236,72,153,0.07));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  flex-wrap: wrap;
  margin-bottom: 16px;
  animation: sectionFadeIn 0.4s ease;
}

/* ─── Loader tagline transition ───────────────────────────────── */
.loader-tagline {
  transition: opacity 0.2s;
}

/* ─── Campaign of the Day hover ───────────────────────────────── */
.cotd-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

/* ─── DNA mini circles in modal ──────────────────────────────── */
#campaignModal .cm-dna-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}