/*
 * MMT Budget Day Response Suite - Professional Design System
 * "Activist Editorial" aesthetic - credible journalism meets grassroots energy
 * Inspired by Full Fact, Bellingcat, and modern campaign platforms
 */

/* ============================================
   FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================
   CSS VARIABLES - ACTIVIST EDITORIAL PALETTE
   ============================================ */
:root {
  /* Neutrals - warm, professional palette */
  --color-background: #faf7f2;
  --color-surface: #f5f1eb;
  --color-surface-elevated: #ffffff;
  --color-border: #e2dbd0;
  --color-text-primary: #1a202c;
  --color-text-secondary: #4a5568;
  --color-text-tertiary: #718096;

  /* Primary - deep navy for trust & authority */
  --color-primary: #1a365d;
  --color-primary-light: #2c5282;
  --color-primary-dark: #0f2942;
  --color-primary-pale: #e8eef5;

  /* Accent - warm orange for action & urgency */
  --color-accent: #dd6b20;
  --color-accent-hover: #c65d1a;
  --color-accent-light: rgba(221, 107, 32, 0.12);
  --color-accent-pale: #feebc8;

  /* Secondary - teal for variety */
  --color-secondary: #319795;
  --color-secondary-light: #38b2ac;
  --color-secondary-pale: #e6fffa;

  /* Card hover - subtle warm tint */
  --color-card-hover: #f0ebe3;

  /* Semantic colors - vibrant but balanced */
  --color-success: #38a169;
  --color-success-light: #c6f6d5;
  --color-warning: #d69e2e;
  --color-warning-light: #fefcbf;
  --color-error: #e53e3e;
  --color-error-light: #fed7d7;
  --color-info: #3182ce;
  --color-info-light: #bee3f8;

  /* Special: Bingo Game - playful indigo */
  --color-playful: #5a67d8;
  --color-playful-hover: #4c51bf;
  --color-playful-light: rgba(90, 103, 216, 0.12);

  /* ============================================
     VERTICAL THEME COLORS - Campaign Areas
     ============================================ */

  /* Social Media - Indigo (digital connectivity) */
  --vertical-social: #4f46e5;
  --vertical-social-light: #6366f1;
  --vertical-social-dark: #4338ca;
  --vertical-social-pale: rgba(79, 70, 229, 0.1);
  --vertical-social-text: #4f46e5;

  /* YouTube - Red (brand consistency) */
  --vertical-youtube: #dc2626;
  --vertical-youtube-light: #ef4444;
  --vertical-youtube-dark: #b91c1c;
  --vertical-youtube-pale: rgba(220, 38, 38, 0.1);
  --vertical-youtube-text: #dc2626;

  /* Articles - Emerald (journalism, truth) */
  --vertical-articles: #059669;
  --vertical-articles-light: #10b981;
  --vertical-articles-dark: #047857;
  --vertical-articles-pale: rgba(5, 150, 105, 0.1);
  --vertical-articles-text: #059669;

  /* Complaints - Amber (action, urgency) */
  --vertical-complaints: #d97706;
  --vertical-complaints-light: #f59e0b;
  --vertical-complaints-dark: #b45309;
  --vertical-complaints-pale: rgba(217, 119, 6, 0.1);
  --vertical-complaints-text: #d97706;

  /* Bluesky Campaign - Blue (sky/social) */
  --vertical-bluesky: #3b82f6;
  --vertical-bluesky-light: #60a5fa;
  --vertical-bluesky-dark: #2563eb;
  --vertical-bluesky-pale: rgba(59, 130, 246, 0.1);
  --vertical-bluesky-text: #3b82f6;

  /* Spacing scale - tighter for app-like feel */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;

  /* Typography - Editorial system */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-family: var(--font-body);

  --font-size-xs: 13px;
  --font-size-sm: 14px;
  --font-size-base: 15px;
  --font-size-lg: 17px;
  --font-size-xl: 19px;
  --font-size-2xl: 22px;
  --font-size-3xl: 26px;
  --font-size-4xl: 32px;
  --font-size-5xl: 40px;
  --font-size-6xl: 48px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;

  /* Shadows - warmer tones */
  --shadow-sm: 0 1px 2px rgba(26, 32, 44, 0.05);
  --shadow-md: 0 2px 4px rgba(26, 32, 44, 0.08);
  --shadow-lg: 0 4px 12px rgba(26, 32, 44, 0.12);
  --shadow-xl: 0 8px 24px rgba(26, 32, 44, 0.16);
  --shadow-accent: 0 4px 14px rgba(221, 107, 32, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headlines use editorial serif font */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

/* Smaller headings use body font */
h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--font-size-5xl);
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

.text-small {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.text-meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Monospace for data/stats */
.text-mono, .mono {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' 1;
}

/* Display text - for hero sections */
.text-display {
  font-family: var(--font-display);
  font-size: var(--font-size-6xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ============================================
   BUTTONS
   ============================================ */

/* Base button styles */
.btn, [class*="btn-"] {
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

/* Primary CTA - use sparingly (max 1-2 per view) */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: var(--font-size-base);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
  text-decoration: none;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-pale);
}

/* Accent button - for urgent CTAs */
.btn-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: var(--font-size-base);
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
  color: white;
  text-decoration: none;
}

.btn-accent:active {
  transform: translateY(0);
}

.btn-accent:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-accent-pale);
}

/* Secondary - most buttons should be this */
.btn-secondary {
  background: white;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  padding: 11px 23px;
  font-size: var(--font-size-base);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-pale);
  text-decoration: none;
}

.btn-secondary:active {
  background: var(--color-surface);
}

.btn-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-pale);
}

/* Ghost button - subtle, no background */
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: none;
  padding: 11px 23px;
  font-size: var(--font-size-base);
}

.btn-ghost:hover {
  background: var(--color-surface);
  color: var(--color-text-primary);
  text-decoration: none;
}

/* Text button - for tertiary actions */
.btn-text {
  background: none;
  border: none;
  color: var(--color-primary);
  padding: 8px 12px;
  font-size: var(--font-size-base);
}

.btn-text:hover {
  color: var(--color-primary-light);
  text-decoration: underline;
}

/* Small button variant */
.btn-sm {
  padding: 8px 14px;
  font-size: var(--font-size-sm);
}

/* Large button variant */
.btn-lg {
  padding: 14px 28px;
  font-size: var(--font-size-lg);
}

/* Keyboard shortcuts hint button */
.shortcuts-hint {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.shortcuts-hint:hover {
  color: var(--color-text-primary);
  border-color: var(--color-text-tertiary);
}

.shortcuts-hint kbd {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
}

/* Success variant */
.btn-success {
  background: linear-gradient(135deg, var(--color-success) 0%, #2f855a 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: var(--font-size-base);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(56, 161, 105, 0.3);
  color: white;
  text-decoration: none;
}

/* Danger variant */
.btn-danger {
  background: linear-gradient(135deg, var(--color-error) 0%, #c53030 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: var(--font-size-base);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(229, 62, 62, 0.3);
  color: white;
  text-decoration: none;
}

/* Icon-only button */
.btn-icon {
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}

/* Button with icon */
.btn-primary svg, .btn-secondary svg, .btn-accent svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-interactive {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-interactive:hover {
  background: var(--color-card-hover);
  transform: translateY(-2px);
}

.card-interactive a.btn-secondary {
  margin-top: auto;
}

.card-header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin: 0;
}

.card-body {
  padding: var(--space-md) 0;
}

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

/* Status card variant */
.card-status {
  border-left: 4px solid var(--color-border);
}

.card-status.status-success {
  border-left-color: var(--color-success);
}

.card-status.status-warning {
  border-left-color: var(--color-warning);
}

.card-status.status-error {
  border-left-color: var(--color-error);
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  background: white;
  transition: border-color 0.15s ease;
  font-family: var(--font-family);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-help {
  margin-top: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.form-error {
  margin-top: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--color-error);
}

/* ============================================
   TABLES
   ============================================ */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
  background: white;
}

thead {
  border-bottom: 2px solid var(--color-border);
}

th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

tr:hover {
  background: var(--color-surface);
}

/* ============================================
   NAVIGATION
   ============================================ */
.header-professional {
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.nav-professional {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.nav-professional a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: 500;
  transition: color 0.15s ease;
  padding: var(--space-sm) 0;
}

.nav-professional a:hover,
.nav-professional a.active {
  color: var(--color-text-primary);
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */
.alert {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  border-left: 4px solid;
}

.alert-success {
  background: var(--color-success-light);
  border-color: var(--color-success);
  color: #155724;
}

.alert-warning {
  background: var(--color-warning-light);
  border-color: var(--color-warning);
  color: var(--color-warning);
}

.alert-error {
  background: var(--color-error-light);
  border-color: var(--color-error);
  color: #721c24;
}

.alert-info {
  background: var(--color-info-light);
  border-color: var(--color-info);
  color: #0c5460;
}

/* ============================================
   BADGES & LABELS
   ============================================ */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background: var(--color-success-light);
  color: var(--color-success);
}

.badge-warning {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.badge-error {
  background: var(--color-error-light);
  color: var(--color-error);
}

.badge-info {
  background: var(--color-info-light);
  color: var(--color-info);
}

.badge-neutral {
  background: var(--color-surface);
  color: var(--color-text-secondary);
}

/* ============================================
   STATS & METRICS
   ============================================ */
.stat-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.stat-number {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--color-text-primary);
  display: block;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   BINGO GAME - PLAYFUL VARIANT
   ============================================ */
.bingo-square {
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: var(--font-size-sm);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bingo-square:hover {
  transform: scale(1.02);
  border-color: var(--color-playful);
  box-shadow: var(--shadow-md);
}

.bingo-square.marked {
  background: linear-gradient(135deg, var(--color-playful) 0%, #667eea 100%);
  color: white;
  border-color: var(--color-playful);
}

.bingo-square.free {
  background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
  color: white;
  border-color: #6b7280;
}

.bingo-card-container {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero-professional {
  padding: var(--space-lg) 0 var(--space-xl) 0;
  text-align: center;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ============================================
   UTILITIES
   ============================================ */
.container-professional {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-spacing {
  padding: var(--space-2xl) 0;
}

.divider {
  border-top: 1px solid var(--color-border);
  margin: var(--space-xl) 0;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

/* Small screens (mobile phones) */
@media (max-width: 640px) {
  :root {
    --font-size-5xl: 24px;
    --font-size-4xl: 20px;
    --font-size-3xl: 18px;
    --font-size-2xl: 16px;
    --font-size-xl: 15px;
    --space-xl: 16px;
    --space-2xl: 24px;
    --space-3xl: 32px;
  }

  .container-professional,
  .container-narrow,
  .container-form {
    padding: 0 var(--space-sm);
  }

  .section-spacing {
    padding: var(--space-lg) 0;
  }

  .card {
    padding: var(--space-sm);
    border-radius: var(--radius-md);
  }

  .btn-primary,
  .btn-secondary,
  .btn-success {
    padding: 12px 16px;
    min-height: 44px;
  }

  .btn-sm {
    padding: 8px 12px;
    min-height: 36px;
  }

  /* Touch-friendly form inputs */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="url"],
  input[type="number"],
  textarea,
  select {
    padding: 12px;
    font-size: 16px; /* Prevents iOS zoom on input focus */
    min-height: 44px;
  }

  /* Smaller stat numbers on mobile */
  .stat-number {
    font-size: var(--font-size-2xl);
  }

  /* Compact bingo squares */
  .bingo-square {
    padding: var(--space-xs);
    font-size: 11px;
    min-height: 60px;
    border-radius: var(--radius-sm);
  }

  /* Ensure tables can scroll */
  table {
    font-size: var(--font-size-xs);
  }

  th, td {
    padding: 8px 10px;
  }

  /* Hero adjustments */
  .hero-professional {
    padding: var(--space-md) 0 var(--space-lg) 0;
  }

  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-sm);
  }
}

/* Medium screens (tablets) */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 28px;
    --font-size-4xl: 24px;
    --font-size-3xl: 22px;
  }

  .container-professional,
  .container-narrow,
  .container-form {
    padding: 0 var(--space-md);
  }

  .section-spacing {
    padding: var(--space-2xl) 0;
  }

  .card {
    padding: var(--space-md);
  }

  .nav-professional {
    gap: var(--space-md);
  }

  .bingo-square {
    padding: var(--space-sm);
    font-size: var(--font-size-xs);
    min-height: 80px;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  /* Remove hover effects that don't make sense on touch */
  .card-interactive:hover {
    transform: none;
  }

  /* Add active states for touch feedback */
  .card-interactive:active {
    background: var(--color-card-hover);
    transform: scale(0.98);
  }

  .btn-primary:active,
  .btn-secondary:active {
    transform: scale(0.98);
    opacity: 0.9;
  }

  /* Ensure adequate touch targets */
  a, button {
    min-height: 44px;
    min-width: 44px;
  }

  /* Add visual feedback for touch */
  .list-professional li:active {
    background: var(--color-card-hover);
  }
}

/* ============================================
   LOADING STATES & SKELETONS
   ============================================ */
.spinner {
  border: 3px solid var(--color-surface);
  border-top: 3px solid var(--color-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

.spinner.accent {
  border-top-color: var(--color-accent);
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.spinner-lg {
  width: 64px;
  height: 64px;
  border-width: 4px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Skeleton loading animation */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface) 25%, #e9ecef 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

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

/* Skeleton variants */
.skeleton-text {
  height: 1em;
  margin-bottom: var(--space-sm);
}

.skeleton-text-sm {
  height: 0.875em;
}

.skeleton-title {
  height: 1.5em;
  width: 60%;
  margin-bottom: var(--space-md);
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-avatar-sm {
  width: 32px;
  height: 32px;
}

.skeleton-avatar-lg {
  width: 64px;
  height: 64px;
}

.skeleton-button {
  height: 40px;
  width: 120px;
  border-radius: var(--radius-md);
}

.skeleton-card {
  height: 200px;
  border-radius: var(--radius-lg);
}

.skeleton-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
}

/* ============================================
   HTMX LOADING INDICATORS
   ============================================ */
/* Default htmx indicator (hidden until request) */
.htmx-indicator {
  display: none;
  opacity: 0;
  transition: opacity 200ms ease-in;
}

/* Show indicator during request */
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: inline-flex;
  opacity: 1;
}

/* Fade content during HTMX request */
.htmx-request.htmx-settling,
.htmx-request:not(.htmx-indicator) {
  opacity: 0.7;
  transition: opacity 200ms ease-in;
}

/* Loading overlay for sections */
.htmx-loading-overlay {
  position: relative;
}

.htmx-loading-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: inherit;
}

.htmx-loading-overlay.htmx-request::after {
  display: flex;
}

/* Pulse animation for processing states */
.pulse {
  animation: pulse 2s ease-in-out infinite;
}

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

/* Button loading state */
button.htmx-request,
.btn-primary.htmx-request,
.btn-secondary.htmx-request {
  pointer-events: none;
  opacity: 0.7;
}

/* Disabled state for elements during request */
[hx-disabled-elt].htmx-request,
button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Inline spinner for buttons */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: var(--space-sm);
  vertical-align: middle;
}

/* ============================================
   FOCUS STATES (ACCESSIBILITY)
   ============================================ */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============================================
   LINK STYLES
   ============================================ */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
  text-decoration: underline;
}

/* Accent links for CTAs */
a.link-accent {
  color: var(--color-accent);
}

a.link-accent:hover {
  color: var(--color-accent-hover);
}

/* ============================================
   LIST STYLES
   ============================================ */
.list-professional {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-professional li {
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s ease;
}

.list-professional li:hover {
  background: var(--color-surface);
}

.list-professional li:last-child {
  border-bottom: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-professional {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) 0 var(--space-lg) 0;
  margin-top: var(--space-3xl);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.footer-copyright {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  text-align: center;
  margin-top: var(--space-lg);
}

/* ============================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================ */

/* Fade in animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Fade in up animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scale in animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide in from right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Counter tick animation */
@keyframes countUp {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

/* Animation utility classes */
.animate-fade-in {
  animation: fadeIn var(--transition-base) ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp var(--transition-slow) ease-out;
}

.animate-scale-in {
  animation: scaleIn var(--transition-base) ease-out;
}

.animate-slide-in-right {
  animation: slideInRight var(--transition-slow) ease-out;
}

/* Staggered animations for card grids */
.stagger-children > * {
  animation: fadeInUp var(--transition-slow) ease-out both;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }

/* Hover lift effect */
.hover-lift {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   ENHANCED STAT CARDS
   ============================================ */
.stat-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.stat-card:hover {
  border-color: var(--color-accent-light);
  box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: var(--font-size-4xl);
  font-weight: 600;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-xs);
  line-height: 1;
}

.stat-number.accent {
  color: var(--color-accent);
}

.stat-number.success {
  color: var(--color-success);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Stat card variants */
.stat-card-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border: none;
  color: white;
}

.stat-card-primary .stat-number {
  color: white;
}

.stat-card-primary .stat-label {
  color: rgba(255, 255, 255, 0.85);
}

.stat-card-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  border: none;
  color: white;
}

.stat-card-accent .stat-number {
  color: white;
}

.stat-card-accent .stat-label {
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   ENHANCED SKELETONS
   ============================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-surface) 25%,
    var(--color-background) 50%,
    var(--color-surface) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

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

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress-bar {
  height: 8px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-sm);
  transition: width var(--transition-slow) ease-out;
}

.progress-bar-fill.accent {
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
}

.progress-bar-fill.success {
  background: linear-gradient(90deg, var(--color-success), #48bb78);
}

/* Large progress bar */
.progress-bar-lg {
  height: 12px;
  border-radius: var(--radius-md);
}

/* Progress with label */
.progress-with-label {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.progress-with-label .progress-bar {
  flex: 1;
}

.progress-with-label .progress-label {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  min-width: 50px;
  text-align: right;
}

/* ============================================
   LEADERBOARD STYLES
   ============================================ */
.leaderboard-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.leaderboard-item:hover {
  background: var(--color-card-hover);
  border-color: var(--color-primary-pale);
}

.leaderboard-rank {
  font-family: var(--font-mono);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-tertiary);
  min-width: 32px;
  text-align: center;
}

.leaderboard-rank.gold {
  color: #d69e2e;
}

.leaderboard-rank.silver {
  color: #718096;
}

.leaderboard-rank.bronze {
  color: #c05621;
}

.leaderboard-user {
  flex: 1;
  font-weight: 500;
}

.leaderboard-score {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-primary);
}

.leaderboard-bar {
  flex: 1;
  max-width: 200px;
}

/* ============================================
   ACTIVITY FEED
   ============================================ */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.activity-item:hover {
  background: var(--color-card-hover);
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.activity-icon.success {
  background: var(--color-success-light);
  color: var(--color-success);
}

.activity-icon.info {
  background: var(--color-info-light);
  color: var(--color-info);
}

.activity-icon.accent {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.activity-time {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
}

/* ============================================
   HERO SECTION ENHANCEMENTS
   ============================================ */
.hero-professional {
  padding: var(--space-2xl) 0 var(--space-3xl) 0;
  text-align: center;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-background) 100%);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.hero-professional::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, var(--color-accent-pale) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, var(--color-primary-pale) 0%, transparent 50%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--font-size-5xl);
  font-weight: 400;
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
  position: relative;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================
   IMPACT STATS STRIP
   ============================================ */
.impact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  margin: var(--space-xl) 0;
}

.impact-stat {
  text-align: center;
  color: white;
}

.impact-stat-number {
  font-family: var(--font-mono);
  font-size: var(--font-size-3xl);
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-xs);
}

.impact-stat-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

/* ============================================
   ACCESSIBILITY: REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .stagger-children > * {
    animation: none;
  }

  .hover-lift:hover {
    transform: none;
  }
}

/* ============================================
   SECTION THEMING
   ============================================
   Each app section gets its own accent color
   for visual distinction and identity
   ============================================ */

/* Section theme variables - applied via data-section attribute on body */
[data-section="factcheck"] {
  --section-accent: #5a67d8;           /* Indigo - playful, game-like */
  --section-accent-hover: #4c51bf;
  --section-accent-light: rgba(90, 103, 216, 0.12);
  --section-accent-pale: #e0e7ff;
  --section-gradient: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
}

[data-section="social_critique"] {
  --section-accent: #0891b2;           /* Cyan - social/tech feel */
  --section-accent-hover: #0e7490;
  --section-accent-light: rgba(8, 145, 178, 0.12);
  --section-accent-pale: #cffafe;
  --section-gradient: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
}

[data-section="article_critique"] {
  --section-accent: #7c3aed;           /* Purple - editorial authority */
  --section-accent-hover: #6d28d9;
  --section-accent-light: rgba(124, 58, 237, 0.12);
  --section-accent-pale: #ede9fe;
  --section-gradient: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

[data-section="complaints"] {
  --section-accent: #d97706;           /* Amber - urgency, action */
  --section-accent-hover: #b45309;
  --section-accent-light: rgba(217, 119, 6, 0.12);
  --section-accent-pale: #fef3c7;
  --section-gradient: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
}

[data-section="bingo"] {
  --section-accent: #ec4899;           /* Pink - fun, celebratory */
  --section-accent-hover: #db2777;
  --section-accent-light: rgba(236, 72, 153, 0.12);
  --section-accent-pale: #fce7f3;
  --section-gradient: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
}

[data-section="campaign"] {
  --section-accent: #059669;           /* Emerald - growth, community */
  --section-accent-hover: #047857;
  --section-accent-light: rgba(5, 150, 105, 0.12);
  --section-accent-pale: #d1fae5;
  --section-gradient: linear-gradient(135deg, #059669 0%, #34d399 100%);
}

/* Section-themed sidebar */
[data-section] .sidebar-link.active {
  background: var(--section-accent, var(--color-accent));
  color: white;
}

[data-section] .sidebar-link:hover:not(.active) {
  background: var(--section-accent-light, var(--color-accent-light));
  color: var(--section-accent, var(--color-accent));
}

/* Section-themed mobile bottom nav */
[data-section] .mobile-nav-link.active {
  color: var(--section-accent, var(--color-accent));
}

/* Section-themed primary buttons */
[data-section] .btn-section {
  background: var(--section-gradient, var(--color-accent));
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: var(--font-size-base);
  box-shadow: var(--shadow-md);
}

[data-section] .btn-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--section-accent) 40%, transparent);
  color: white;
  text-decoration: none;
}

/* Section-themed stat cards */
[data-section] .stat-card::before {
  background: var(--section-gradient, linear-gradient(90deg, var(--color-accent), var(--color-secondary)));
}

[data-section] .stat-number.section-color {
  color: var(--section-accent, var(--color-primary));
}

/* Section-themed badges */
[data-section] .badge-section {
  background: var(--section-accent-light, var(--color-accent-light));
  color: var(--section-accent, var(--color-accent));
}

/* Section header bar - colored stripe at top of sidebar */
[data-section] .sidebar-nav .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--section-gradient, var(--color-accent));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

[data-section] .sidebar-nav .card {
  position: relative;
  overflow: hidden;
}

/* Section label with accent line */
.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--section-accent, var(--color-accent));
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-sm);
}

.section-label::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  background: currentColor;
}

/* ============================================
   ENHANCED HERO SECTION - HOME PAGE
   ============================================ */
.hero-home {
  position: relative;
  padding: var(--space-xl) 0 var(--space-lg) 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-background) 100%);
}

/* Animated dot grid background */
.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--color-border) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.5;
  animation: dotGridDrift 20s linear infinite;
}

@keyframes dotGridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

/* Floating gradient orbs */
.hero-home::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(90, 103, 216, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 80% 70%, rgba(221, 107, 32, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 60% 20%, rgba(8, 145, 178, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: orbFloat 15s ease-in-out infinite alternate;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-20px, 10px) scale(1.05); }
}

/* Hero content wrapper */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--space-lg);
}

/* Stacked headline with animated underline */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.hero-headline-accent {
  display: block;
  position: relative;
  color: var(--color-accent);
}

.hero-headline-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  animation: underlineExpand 1s ease-out 0.5s forwards;
}

@keyframes underlineExpand {
  to { width: 100%; }
}

/* Hero tagline */
.hero-tagline {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-md);
  line-height: 1.5;
}

/* Live counter strip */
.hero-live-counter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.hero-live-counter .live-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-live-counter .counter-number {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-text-primary);
}

/* Quick action cards */
.hero-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.hero-action-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.hero-action-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--card-accent-pale, var(--color-accent-pale)) 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.hero-action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--card-accent, var(--color-accent));
  text-decoration: none;
}

.hero-action-card:hover::before {
  opacity: 1;
}

.hero-action-card[data-tool="social"] {
  --card-accent: #0891b2;
  --card-accent-pale: #cffafe;
}

.hero-action-card[data-tool="article"] {
  --card-accent: #7c3aed;
  --card-accent-pale: #ede9fe;
}

.hero-action-card[data-tool="complaint"] {
  --card-accent: #d97706;
  --card-accent-pale: #fef3c7;
}

.hero-action-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: var(--card-accent-pale, var(--color-surface));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-fast);
}

.hero-action-card:hover .hero-action-icon {
  transform: scale(1.1);
}

.hero-action-title {
  font-weight: 600;
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
  position: relative;
  z-index: 1;
}

.hero-action-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  position: relative;
  z-index: 1;
  margin: 0;
}

/* Hero CTA for logged-out users */
.hero-cta-box {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2c5282 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-xl);
  color: white;
  text-align: center;
  margin-top: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.hero-cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translate(-30%, -30%); }
  50% { transform: translate(30%, 30%); }
}

.hero-cta-box h2 {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-sm);
  position: relative;
  color: white;
}

.hero-cta-box p {
  font-size: var(--font-size-base);
  opacity: 0.9;
  margin-bottom: var(--space-md);
  position: relative;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.hero-cta-buttons .btn-cta-primary {
  background: white;
  color: var(--color-primary);
  padding: 10px 24px;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 2px solid white;
}

.hero-cta-buttons .btn-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-decoration: none;
}

.hero-cta-buttons .btn-cta-secondary {
  background: transparent;
  color: white;
  padding: 10px 24px;
  font-weight: 600;
  border: 2px solid white;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.hero-cta-buttons .btn-cta-secondary:hover {
  background: rgba(255,255,255,0.15);
  text-decoration: none;
}

.hero-cta-buttons .btn-cta-blue {
  background: #1e3a5f;
  color: white;
  padding: 10px 24px;
  font-weight: 600;
  border: 2px solid #1e3a5f;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.hero-cta-buttons .btn-cta-blue:hover {
  background: #152a45;
  border-color: #152a45;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Responsive hero adjustments */
@media (max-width: 640px) {
  .hero-home {
    padding: var(--space-xl) 0;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: var(--font-size-base);
  }

  .hero-actions-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  .hero-action-card {
    padding: var(--space-lg);
  }

  .hero-cta-box {
    padding: var(--space-lg);
  }
}

/* ============================================
   ANIMATED STATS SYSTEM
   ============================================
   Count-up animations, sparklines, trend indicators
   ============================================ */

/* Animated counter wrapper */
.stat-animated {
  position: relative;
}

/* Count-up number animation */
.stat-number[data-count-to] {
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.stat-number.counting {
  color: var(--section-accent, var(--color-accent));
}

/* Trend indicators */
.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: var(--space-xs);
}

.stat-trend.up {
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
}

.stat-trend.down {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

.stat-trend.neutral {
  color: var(--color-text-tertiary);
  background: var(--color-surface);
}

.stat-trend svg {
  width: 12px;
  height: 12px;
}

/* Mini sparkline chart (CSS-only using gradients) */
.stat-sparkline {
  height: 24px;
  width: 100%;
  max-width: 80px;
  margin: var(--space-sm) auto 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 10%,
    var(--sparkline-color, var(--color-primary)) 10%,
    var(--sparkline-color, var(--color-primary)) 12%,
    transparent 12%,
    transparent 20%,
    var(--sparkline-color, var(--color-primary)) 20%,
    var(--sparkline-color, var(--color-primary)) 22%,
    transparent 22%,
    transparent 30%,
    var(--sparkline-color, var(--color-primary)) 30%,
    var(--sparkline-color, var(--color-primary)) 32%,
    transparent 32%,
    transparent 40%,
    var(--sparkline-color, var(--color-primary)) 40%,
    var(--sparkline-color, var(--color-primary)) 42%,
    transparent 42%,
    transparent 50%,
    var(--sparkline-color, var(--color-primary)) 50%,
    var(--sparkline-color, var(--color-primary)) 52%,
    transparent 52%,
    transparent 60%,
    var(--sparkline-color, var(--color-primary)) 60%,
    var(--sparkline-color, var(--color-primary)) 62%,
    transparent 62%,
    transparent 70%,
    var(--sparkline-color, var(--color-primary)) 70%,
    var(--sparkline-color, var(--color-primary)) 72%,
    transparent 72%,
    transparent 80%,
    var(--sparkline-color, var(--color-primary)) 80%,
    var(--sparkline-color, var(--color-primary)) 82%,
    transparent 82%,
    transparent 90%,
    var(--sparkline-color, var(--color-primary)) 90%,
    var(--sparkline-color, var(--color-primary)) 92%,
    transparent 92%
  );
  background-size: 100% 100%;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24'%3E%3Cpath d='M0 20 L10 16 L20 18 L30 12 L40 14 L50 8 L60 10 L70 4 L80 6 L90 2 L100 4 L100 24 L0 24 Z' fill='black'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24'%3E%3Cpath d='M0 20 L10 16 L20 18 L30 12 L40 14 L50 8 L60 10 L70 4 L80 6 L90 2 L100 4 L100 24 L0 24 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  opacity: 0.6;
  border-radius: 2px;
}

/* Sparkline variants */
.stat-sparkline.rising {
  --sparkline-color: #059669;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24'%3E%3Cpath d='M0 20 L10 18 L20 16 L30 17 L40 14 L50 12 L60 10 L70 8 L80 6 L90 4 L100 2 L100 24 L0 24 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24'%3E%3Cpath d='M0 20 L10 18 L20 16 L30 17 L40 14 L50 12 L60 10 L70 8 L80 6 L90 4 L100 2 L100 24 L0 24 Z' fill='black'/%3E%3C/svg%3E");
}

.stat-sparkline.falling {
  --sparkline-color: #dc2626;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24'%3E%3Cpath d='M0 4 L10 6 L20 5 L30 8 L40 10 L50 12 L60 14 L70 16 L80 15 L90 18 L100 20 L100 24 L0 24 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24'%3E%3Cpath d='M0 4 L10 6 L20 5 L30 8 L40 10 L50 12 L60 14 L70 16 L80 15 L90 18 L100 20 L100 24 L0 24 Z' fill='black'/%3E%3C/svg%3E");
}

/* Active users dot indicator */
.stat-active-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: var(--space-sm);
}

.stat-active-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
}

.stat-active-dots .dot.active {
  background: var(--color-success);
  animation: dotPulse 2s ease-in-out infinite;
}

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

/* Enhanced stat card with animation support */
.stat-card-enhanced {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.stat-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--stat-accent, linear-gradient(90deg, var(--color-primary), var(--color-primary-light)));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease-out;
}

.stat-card-enhanced.in-view::before {
  transform: scaleX(1);
}

.stat-card-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   CARD SYSTEM 2.0
   ============================================
   Elevated cards, tool cards, stacked effect
   ============================================ */

/* Elevated card - stacked paper effect */
.card-elevated {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.card-elevated::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: -6px;
  bottom: -6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.card-elevated::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  z-index: -2;
  opacity: 0.5;
}

.card-elevated:hover {
  transform: translateY(-4px) translateX(-2px);
  box-shadow: var(--shadow-xl);
}

/* Tool card with icon header */
.tool-card-v2 {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--tool-accent, var(--color-primary));
}

.tool-card-header {
  background: var(--tool-gradient, linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%));
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.tool-card-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.tool-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--tool-accent, var(--color-primary));
}

.tool-card-header-text {
  color: white;
}

.tool-card-header-text h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin: 0 0 2px 0;
  color: white;
}

.tool-card-header-text p {
  font-size: var(--font-size-sm);
  opacity: 0.9;
  margin: 0;
}

.tool-card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tool-card-body p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  flex: 1;
}

.tool-card-body .btn {
  margin-top: auto;
}

/* Tool card color variants */
.tool-card-v2[data-tool="social"] {
  --tool-accent: #0891b2;
  --tool-gradient: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
}

.tool-card-v2[data-tool="article"] {
  --tool-accent: #7c3aed;
  --tool-gradient: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

.tool-card-v2[data-tool="complaint"] {
  --tool-accent: #d97706;
  --tool-gradient: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
}

.tool-card-v2[data-tool="youtube"] {
  --tool-accent: #dc2626;
  --tool-gradient: linear-gradient(135deg, #dc2626 0%, #f87171 100%);
}

.tool-card-v2[data-tool="factcheck"] {
  --tool-accent: #5a67d8;
  --tool-gradient: linear-gradient(135deg, #5a67d8 0%, #818cf8 100%);
}

.tool-card-v2[data-tool="bingo"] {
  --tool-accent: #ec4899;
  --tool-gradient: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
}

/* Glass card effect */
.card-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

/* Feature card with icon */
.feature-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-fast);
}

.feature-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}

.feature-card-icon {
  width: 56px;
  height: 56px;
  background: var(--color-accent-pale);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  transition: transform var(--transition-fast);
}

.feature-card:hover .feature-card-icon {
  transform: scale(1.1);
}

.feature-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.feature-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* ============================================
   MOBILE BOTTOM NAV 2.0
   ============================================
   Enhanced with FAB and native app feel
   ============================================ */

/* Enhanced mobile bottom nav */
.mobile-nav-v2 {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-md);
  padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom));
  z-index: 50;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1023px) {
  .mobile-nav-v2 {
    display: flex;
    align-items: center;
    justify-content: space-around;
  }

  body {
    padding-bottom: 80px;
  }
}

/* Nav items */
.mobile-nav-v2 .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  color: var(--color-text-tertiary);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
  min-width: 56px;
}

.mobile-nav-v2 .nav-item:active {
  transform: scale(0.95);
}

.mobile-nav-v2 .nav-item.active {
  color: var(--section-accent, var(--color-accent));
}

.mobile-nav-v2 .nav-item.active::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--section-accent, var(--color-accent));
  border-radius: 50%;
}

.mobile-nav-v2 .nav-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-v2 .nav-icon svg {
  width: 22px;
  height: 22px;
}

/* Floating Action Button (FAB) */
.mobile-fab {
  position: relative;
  margin: 0 var(--space-sm);
}

.mobile-fab .fab-button {
  width: 56px;
  height: 56px;
  background: var(--section-gradient, linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(221, 107, 32, 0.35);
  transition: all var(--transition-fast);
  position: relative;
  top: -16px;
  text-decoration: none;
}

.mobile-fab .fab-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(221, 107, 32, 0.45);
}

.mobile-fab .fab-button:active {
  transform: scale(0.95);
}

.mobile-fab .fab-button svg {
  width: 28px;
  height: 28px;
}

.mobile-fab .fab-label {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
}

/* FAB ripple effect */
.mobile-fab .fab-button::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  transition: transform 0.3s ease;
}

.mobile-fab .fab-button:active::after {
  transform: scale(1);
  opacity: 0;
}

/* Pull-to-refresh indicator (visual only) */
.pull-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  background: white;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: var(--space-sm) var(--space-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  z-index: 100;
  transition: transform 0.3s ease;
}

.pull-indicator.visible {
  transform: translateX(-50%) translateY(var(--space-md));
}

.pull-indicator .spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

/* Swipe action hints on list items */
.swipe-action-item {
  position: relative;
  overflow: hidden;
}

.swipe-action-item::before {
  content: attr(data-swipe-left);
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: var(--color-error);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transform: translateX(100%);
  transition: transform 0.2s ease;
}

.swipe-action-item::after {
  content: attr(data-swipe-right);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: var(--color-success);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
}

/* Haptic feedback simulation */
@keyframes hapticBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.97); }
}

.haptic-feedback:active {
  animation: hapticBounce 0.1s ease;
}

/* Safe area handling for notched devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-nav-v2 {
    padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom));
  }

  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

/* ============================================
   LOGO STYLING
   ============================================ */
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-text {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-accent {
  color: var(--color-accent);
  font-weight: 800;
}

/* Mobile logo sizing */
@media (max-width: 640px) {
  .logo-text {
    font-size: 22px;
  }
}

/* ============================================
   DARK MODE TOGGLE BUTTON
   ============================================ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text-secondary);
}

.theme-toggle:hover {
  background: var(--color-card-hover);
  color: var(--color-text-primary);
  border-color: var(--color-primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

/* Mobile theme toggle */
.theme-toggle-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.theme-toggle-mobile svg {
  width: 18px;
  height: 18px;
}

.theme-toggle-mobile .icon-sun {
  display: none;
}

.theme-toggle-mobile .icon-moon {
  display: block;
}

/* ============================================
   APP CARDS - Apps Page
   ============================================ */

.app-card {
  --card-accent: var(--color-primary);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.app-card__accent {
  height: 4px;
  background: var(--card-accent);
}

.app-card__content {
  padding: var(--space-xl);
  flex: 1;
}

.app-card__icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  filter: grayscale(0);
}

.app-card__title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.app-card__description {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.app-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-card__features li {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  padding: var(--space-xs) 0;
  padding-left: var(--space-md);
  position: relative;
}

.app-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--card-accent);
  opacity: 0.6;
}

.app-card__footer {
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.app-card__badge {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-text-tertiary);
  background: var(--color-background);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

.app-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--card-accent);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--card-accent);
  transition: all 0.15s ease;
  margin-left: auto;
}

.app-card__cta:hover {
  background: var(--card-accent);
  color: white;
}

.app-card__cta svg {
  transition: transform 0.15s ease;
}

.app-card__cta:hover svg {
  transform: translateX(2px);
}

/* Color variants */
.app-card--purple {
  --card-accent: #7c3aed;
}

.app-card--orange {
  --card-accent: #ea580c;
}

.app-card--teal {
  --card-accent: #0d9488;
}

.app-card--blue {
  --card-accent: #2563eb;
}

.app-card--pink {
  --card-accent: #db2777;
}

/* ============================================
   TYPOGRAPHY BOOST
   ============================================ */

/* Display headlines - extra bold */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Gradient text effect */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section headers with line */
.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin: 0;
  white-space: nowrap;
}

.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--color-border), transparent);
}

/* Highlighted text */
.text-highlight {
  background: linear-gradient(180deg, transparent 60%, var(--color-accent-pale) 60%);
  padding: 0 4px;
}

/* Lead paragraph */
.text-lead {
  font-size: var(--font-size-lg);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* ============================================
   MICROINTERACTIONS
   ============================================ */

/* Button press effect */
.btn-press {
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-press:active {
  transform: scale(0.97);
}

/* Link underline animation */
.link-animated {
  position: relative;
  text-decoration: none;
}

.link-animated::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.2s ease;
}

.link-animated:hover::after {
  width: 100%;
}

/* Card shine effect on hover */
.card-shine {
  position: relative;
  overflow: hidden;
}

.card-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.card-shine:hover::before {
  left: 100%;
}

/* Icon bounce on hover */
.icon-bounce {
  transition: transform 0.2s ease;
}

.icon-bounce:hover {
  animation: iconBounce 0.4s ease;
}

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

/* Checkbox/toggle animation */
.toggle-animated {
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.toggle-animated:checked {
  animation: togglePop 0.2s ease;
}

@keyframes togglePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Focus ring animation */
.focus-ring {
  transition: box-shadow 0.15s ease;
}

.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-accent-light);
  animation: focusPulse 0.3s ease;
}

@keyframes focusPulse {
  0% { box-shadow: 0 0 0 0 var(--color-accent-light); }
  100% { box-shadow: 0 0 0 3px var(--color-accent-light); }
}

/* Success checkmark animation */
.success-check {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: drawCheck 0.3s ease forwards;
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

/* Notification badge pulse */
.badge-pulse {
  position: relative;
}

.badge-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: badgePulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 0; }
}

/* Skeleton wave (enhanced) */
.skeleton-wave {
  position: relative;
  overflow: hidden;
}

.skeleton-wave::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: skeletonWave 1.5s ease-in-out infinite;
}

@keyframes skeletonWave {
  100% { left: 100%; }
}

/* Toast slide in */
.toast-enter {
  animation: toastSlideIn 0.3s ease forwards;
}

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

.toast-exit {
  animation: toastSlideOut 0.2s ease forwards;
}

@keyframes toastSlideOut {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ============================================
   DARK MODE - CLASS-BASED TOGGLE
   ============================================ */

/* Dark mode variables - applied via .dark class on html */
html.dark,
[data-theme="dark"] {
  --color-background: #0f172a;
  --color-surface: #1e293b;
  --color-surface-elevated: #334155;
  --color-border: #475569;
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-text-tertiary: #64748b;
  --color-card-hover: #334155;

  /* Adjusted accent colors for dark mode */
  --color-primary-pale: rgba(59, 130, 246, 0.15);
  --color-accent-pale: rgba(251, 191, 36, 0.15);
  --color-accent-light: rgba(251, 191, 36, 0.2);

  /* Adjusted semantic colors */
  --color-success-light: rgba(34, 197, 94, 0.15);
  --color-warning-light: rgba(234, 179, 8, 0.15);
  --color-error-light: rgba(239, 68, 68, 0.15);
  --color-info-light: rgba(59, 130, 246, 0.15);

  /* Shadows for dark mode */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.6);

  /* Vertical theme colors - adjusted for dark mode */
  --vertical-social-pale: rgba(99, 102, 241, 0.2);
  --vertical-social-text: #818cf8;
  --vertical-youtube-pale: rgba(239, 68, 68, 0.2);
  --vertical-youtube-text: #f87171;
  --vertical-articles-pale: rgba(16, 185, 129, 0.2);
  --vertical-articles-text: #34d399;
  --vertical-complaints-pale: rgba(245, 158, 11, 0.2);
  --vertical-complaints-text: #fbbf24;
  --vertical-bluesky-pale: rgba(96, 165, 250, 0.2);
  --vertical-bluesky-text: #93c5fd;
}

/* Dark mode toggle button state */
html.dark .theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

html.dark .theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Dark mode mobile toggle button state */
html.dark .theme-toggle-mobile .icon-sun,
[data-theme="dark"] .theme-toggle-mobile .icon-sun {
  display: block;
}

html.dark .theme-toggle-mobile .icon-moon,
[data-theme="dark"] .theme-toggle-mobile .icon-moon {
  display: none;
}

html.dark .theme-toggle-mobile,
[data-theme="dark"] .theme-toggle-mobile {
  background: var(--color-surface);
  border-color: var(--color-border);
}

/* Dark mode component overrides */
html.dark,
[data-theme="dark"] {
  color-scheme: dark;
}

html.dark body,
[data-theme="dark"] body {
  background-color: var(--color-background);
}

html.dark .card,
html.dark .stat-card,
html.dark .stat-card-enhanced,
html.dark .leaderboard-item,
html.dark .card-elevated,
html.dark .tool-card-v2,
html.dark .feature-card,
[data-theme="dark"] .card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .stat-card-enhanced,
[data-theme="dark"] .leaderboard-item,
[data-theme="dark"] .card-elevated,
[data-theme="dark"] .tool-card-v2,
[data-theme="dark"] .feature-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}

html.dark .card-elevated::before,
[data-theme="dark"] .card-elevated::before {
  background: var(--color-surface-elevated);
  border-color: var(--color-border);
}

html.dark .card-elevated::after,
[data-theme="dark"] .card-elevated::after {
  background: var(--color-background);
  border-color: var(--color-border);
}

html.dark .btn-secondary,
[data-theme="dark"] .btn-secondary {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

html.dark .btn-secondary:hover,
[data-theme="dark"] .btn-secondary:hover {
  background: var(--color-surface-elevated);
  border-color: var(--color-primary);
}

html.dark .header-professional,
[data-theme="dark"] .header-professional {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--color-border);
}

html.dark .mobile-nav-v2,
[data-theme="dark"] .mobile-nav-v2 {
  background: var(--color-surface);
  border-color: var(--color-border);
}

html.dark .sidebar-nav .card,
[data-theme="dark"] .sidebar-nav .card {
  background: var(--color-surface);
}

html.dark .sidebar-link:hover:not(.active),
[data-theme="dark"] .sidebar-link:hover:not(.active) {
  background: var(--color-surface-elevated);
}

html.dark .footer-professional,
[data-theme="dark"] .footer-professional {
  background: var(--color-surface);
  border-color: var(--color-border);
}

html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="password"],
html.dark input[type="url"],
html.dark input[type="number"],
html.dark textarea,
html.dark select,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

html.dark .skeleton,
[data-theme="dark"] .skeleton {
  background: linear-gradient(
    90deg,
    var(--color-surface) 25%,
    var(--color-surface-elevated) 50%,
    var(--color-surface) 75%
  );
}

html.dark .hero-home,
[data-theme="dark"] .hero-home {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-background) 100%);
}

html.dark .hero-home::before,
[data-theme="dark"] .hero-home::before {
  background-image: radial-gradient(circle at 1px 1px, var(--color-border) 1px, transparent 0);
  opacity: 0.3;
}

html.dark .hero-action-card,
[data-theme="dark"] .hero-action-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}

html.dark .hero-live-counter,
[data-theme="dark"] .hero-live-counter {
  background: var(--color-surface);
  border-color: var(--color-border);
}

html.dark .alert,
[data-theme="dark"] .alert {
  background: var(--color-surface);
}

html.dark .alert-success,
[data-theme="dark"] .alert-success {
  background: var(--color-success-light);
}

html.dark .alert-error,
[data-theme="dark"] .alert-error {
  background: var(--color-error-light);
}

html.dark .alert-warning,
[data-theme="dark"] .alert-warning {
  background: var(--color-warning-light);
}

html.dark .alert-info,
[data-theme="dark"] .alert-info {
  background: var(--color-info-light);
}

html.dark table,
[data-theme="dark"] table {
  background: var(--color-surface);
}

html.dark tr:hover,
[data-theme="dark"] tr:hover {
  background: var(--color-surface-elevated);
}

html.dark .theme-toggle,
[data-theme="dark"] .theme-toggle {
  background: var(--color-surface-elevated);
  border-color: var(--color-border);
}

/* Dark mode card shine uses dark gradient */
html.dark .card-shine::before,
[data-theme="dark"] .card-shine::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
}

/* Dark mode app cards */
html.dark .app-card,
[data-theme="dark"] .app-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}

html.dark .app-card__footer,
[data-theme="dark"] .app-card__footer {
  background: var(--color-surface-elevated);
  border-color: var(--color-border);
}

html.dark .app-card__badge,
[data-theme="dark"] .app-card__badge {
  background: var(--color-surface);
  border-color: var(--color-border);
}

/* Dark mode keyboard shortcuts modal */
html.dark #keyboard-shortcuts-modal .shortcuts-content,
[data-theme="dark"] #keyboard-shortcuts-modal .shortcuts-content {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

html.dark #keyboard-shortcuts-modal .shortcuts-header,
[data-theme="dark"] #keyboard-shortcuts-modal .shortcuts-header {
  border-color: var(--color-border);
}

html.dark #keyboard-shortcuts-modal .shortcuts-header h2,
[data-theme="dark"] #keyboard-shortcuts-modal .shortcuts-header h2 {
  color: var(--color-text-primary);
}

html.dark #keyboard-shortcuts-modal .shortcuts-close,
[data-theme="dark"] #keyboard-shortcuts-modal .shortcuts-close {
  color: var(--color-text-secondary);
}

html.dark #keyboard-shortcuts-modal .shortcuts-close:hover,
[data-theme="dark"] #keyboard-shortcuts-modal .shortcuts-close:hover {
  color: var(--color-text-primary);
}

html.dark #keyboard-shortcuts-modal .shortcuts-section h3,
[data-theme="dark"] #keyboard-shortcuts-modal .shortcuts-section h3 {
  color: var(--color-text-secondary);
}

html.dark #keyboard-shortcuts-modal .shortcut-item,
[data-theme="dark"] #keyboard-shortcuts-modal .shortcut-item {
  background: var(--color-surface-elevated);
}

html.dark #keyboard-shortcuts-modal .shortcut-item kbd,
[data-theme="dark"] #keyboard-shortcuts-modal .shortcut-item kbd {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

html.dark #keyboard-shortcuts-modal .shortcut-item span,
[data-theme="dark"] #keyboard-shortcuts-modal .shortcut-item span {
  color: var(--color-text-secondary);
}

html.dark #keyboard-shortcuts-modal .shortcuts-footer,
[data-theme="dark"] #keyboard-shortcuts-modal .shortcuts-footer {
  border-color: var(--color-border);
}

html.dark #keyboard-shortcuts-modal .shortcuts-footer kbd,
[data-theme="dark"] #keyboard-shortcuts-modal .shortcuts-footer kbd {
  background: var(--color-surface-elevated);
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

/* ============================================
   DASHBOARD ACTION CARDS
   ============================================ */
.dashboard-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.dashboard-action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.dashboard-action-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.dashboard-action-arrow {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  opacity: 0;
  color: var(--color-text-tertiary);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dashboard-action-card:hover .dashboard-action-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* Dark mode dashboard action cards */
html.dark .dashboard-action-card,
[data-theme="dark"] .dashboard-action-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}

html.dark .dashboard-action-card:hover,
[data-theme="dark"] .dashboard-action-card:hover {
  background: var(--color-surface-elevated);
}

/* ============================================
   VERTICAL THEME BUTTONS
   ============================================ */
.btn-vertical {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #ffffff !important;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  position: relative;
  overflow: hidden;
}

.btn-vertical:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  color: #ffffff !important;
}

.btn-vertical:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.95);
}

/* Social Media Button */
.btn-vertical-social {
  background: linear-gradient(135deg, var(--vertical-social) 0%, var(--vertical-social-light) 100%);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-vertical-social:hover {
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* YouTube Button */
.btn-vertical-youtube {
  background: linear-gradient(135deg, var(--vertical-youtube) 0%, var(--vertical-youtube-light) 100%);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-vertical-youtube:hover {
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* Articles Button */
.btn-vertical-articles {
  background: linear-gradient(135deg, var(--vertical-articles) 0%, var(--vertical-articles-light) 100%);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.btn-vertical-articles:hover {
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* Complaints Button */
.btn-vertical-complaints {
  background: linear-gradient(135deg, var(--vertical-complaints) 0%, var(--vertical-complaints-light) 100%);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-vertical-complaints:hover {
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

/* Bluesky Button */
.btn-vertical-bluesky {
  background: linear-gradient(135deg, var(--vertical-bluesky) 0%, var(--vertical-bluesky-light) 100%);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-vertical-bluesky:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* System preference fallback (if no JS or toggle hasn't been used) */
@media (prefers-color-scheme: dark) {
  html:not(.light):not([data-theme="light"]) {
    --color-background: #0f172a;
    --color-surface: #1e293b;
    --color-surface-elevated: #334155;
    --color-border: #475569;
    --color-text-primary: #f1f5f9;
    --color-text-secondary: #94a3b8;
    --color-text-tertiary: #64748b;
    --color-card-hover: #334155;
  }
}

/* ========================================
   Dark Mode Overrides for Tailwind Classes
   ======================================== */

/* Override bg-white in dark mode */
html.dark .bg-white,
[data-theme="dark"] .bg-white {
  background-color: var(--color-surface) !important;
}

/* Override bg-gray-50 in dark mode */
html.dark .bg-gray-50,
[data-theme="dark"] .bg-gray-50 {
  background-color: var(--color-background) !important;
}

/* Override bg-gray-100 in dark mode */
html.dark .bg-gray-100,
[data-theme="dark"] .bg-gray-100 {
  background-color: var(--color-surface-elevated) !important;
}

/* Override bg-gray-200 in dark mode */
html.dark .bg-gray-200,
[data-theme="dark"] .bg-gray-200 {
  background-color: var(--color-surface-elevated) !important;
}

/* Override text-gray-500 in dark mode */
html.dark .text-gray-500,
[data-theme="dark"] .text-gray-500 {
  color: var(--color-text-tertiary) !important;
}

/* Override text-gray-600 in dark mode */
html.dark .text-gray-600,
[data-theme="dark"] .text-gray-600 {
  color: var(--color-text-secondary) !important;
}

/* Override text-gray-700 in dark mode */
html.dark .text-gray-700,
[data-theme="dark"] .text-gray-700 {
  color: var(--color-text-primary) !important;
}

/* Override text-gray-800 in dark mode */
html.dark .text-gray-800,
[data-theme="dark"] .text-gray-800 {
  color: var(--color-text-primary) !important;
}

/* Override text-gray-900 in dark mode */
html.dark .text-gray-900,
[data-theme="dark"] .text-gray-900 {
  color: var(--color-text-primary) !important;
}

/* Override border-gray-* in dark mode */
html.dark .border-gray-100,
html.dark .border-gray-200,
html.dark .border-gray-300,
[data-theme="dark"] .border-gray-100,
[data-theme="dark"] .border-gray-200,
[data-theme="dark"] .border-gray-300 {
  border-color: var(--color-border) !important;
}

/* Override hover:bg-gray-* in dark mode */
html.dark .hover\:bg-gray-50:hover,
[data-theme="dark"] .hover\:bg-gray-50:hover {
  background-color: var(--color-surface) !important;
}

html.dark .hover\:bg-gray-100:hover,
[data-theme="dark"] .hover\:bg-gray-100:hover {
  background-color: var(--color-surface) !important;
}

html.dark .hover\:bg-gray-200:hover,
[data-theme="dark"] .hover\:bg-gray-200:hover {
  background-color: var(--color-surface) !important;
}

html.dark .hover\:bg-gray-300:hover,
[data-theme="dark"] .hover\:bg-gray-300:hover {
  background-color: var(--color-surface-elevated) !important;
}

/* Override hover:text-gray-* in dark mode */
html.dark .hover\:text-gray-700:hover,
html.dark .hover\:text-gray-900:hover,
[data-theme="dark"] .hover\:text-gray-700:hover,
[data-theme="dark"] .hover\:text-gray-900:hover {
  color: var(--color-text-primary) !important;
}

/* Override hover:border-gray-* in dark mode */
html.dark .hover\:border-gray-300:hover,
[data-theme="dark"] .hover\:border-gray-300:hover {
  border-color: var(--color-border) !important;
}

/* Semantic color badges - ensure contrast in dark mode */
html.dark .bg-indigo-100,
[data-theme="dark"] .bg-indigo-100 {
  background-color: rgba(99, 102, 241, 0.2) !important;
}

html.dark .text-indigo-700,
[data-theme="dark"] .text-indigo-700 {
  color: #a5b4fc !important;
}

html.dark .bg-blue-50,
[data-theme="dark"] .bg-blue-50 {
  background-color: rgba(59, 130, 246, 0.15) !important;
}

html.dark .text-blue-600,
[data-theme="dark"] .text-blue-600 {
  color: #93c5fd !important;
}

html.dark .bg-red-100,
[data-theme="dark"] .bg-red-100 {
  background-color: rgba(239, 68, 68, 0.2) !important;
}

html.dark .text-red-800,
[data-theme="dark"] .text-red-800 {
  color: #fca5a5 !important;
}

html.dark .bg-purple-100,
[data-theme="dark"] .bg-purple-100 {
  background-color: rgba(168, 85, 247, 0.2) !important;
}

html.dark .text-purple-800,
[data-theme="dark"] .text-purple-800 {
  color: #d8b4fe !important;
}

html.dark .bg-green-100,
[data-theme="dark"] .bg-green-100 {
  background-color: rgba(34, 197, 94, 0.2) !important;
}

html.dark .text-green-800,
[data-theme="dark"] .text-green-800 {
  color: #86efac !important;
}

html.dark .bg-yellow-100,
[data-theme="dark"] .bg-yellow-100 {
  background-color: rgba(234, 179, 8, 0.2) !important;
}

html.dark .text-yellow-800,
[data-theme="dark"] .text-yellow-800 {
  color: #fde047 !important;
}

html.dark .bg-amber-100,
html.dark .bg-amber-50,
[data-theme="dark"] .bg-amber-100,
[data-theme="dark"] .bg-amber-50 {
  background-color: rgba(245, 158, 11, 0.15) !important;
}

html.dark .border-amber-200,
[data-theme="dark"] .border-amber-200 {
  border-color: rgba(245, 158, 11, 0.3) !important;
}

/* Shadow adjustments for dark mode */
html.dark .shadow,
html.dark .shadow-sm,
html.dark .shadow-md,
html.dark .shadow-lg,
[data-theme="dark"] .shadow,
[data-theme="dark"] .shadow-sm,
[data-theme="dark"] .shadow-md,
[data-theme="dark"] .shadow-lg {
  --tw-shadow-color: rgba(0, 0, 0, 0.5);
}

/* Mobile overflow protection */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Ensure mobile navigation doesn't cause horizontal scroll */
.mobile-nav-v2 {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Bluesky campaign navbar dark mode */
html.dark nav.rounded-lg.shadow,
[data-theme="dark"] nav.rounded-lg.shadow {
  background-color: var(--color-surface) !important;
  border: 1px solid var(--color-border);
}

/* Campaign nav link active state dark mode */
html.dark .campaign-nav-link:not(.active),
[data-theme="dark"] .campaign-nav-link:not(.active) {
  color: var(--color-text-secondary);
}

html.dark .campaign-nav-link:hover:not(.active),
[data-theme="dark"] .campaign-nav-link:hover:not(.active) {
  background-color: var(--color-surface-elevated);
  color: var(--color-text-primary);
}

/* Mobile menu border in dark mode */
html.dark .border-t.border-gray-200,
[data-theme="dark"] .border-t.border-gray-200 {
  border-color: var(--color-border) !important;
}

/* Card-like containers with shadow need border in dark mode */
html.dark .rounded-lg.shadow,
html.dark .rounded-lg.shadow-lg,
html.dark .rounded-lg.shadow-sm,
html.dark .rounded-xl.shadow,
html.dark .rounded-xl.shadow-sm,
[data-theme="dark"] .rounded-lg.shadow,
[data-theme="dark"] .rounded-lg.shadow-lg,
[data-theme="dark"] .rounded-lg.shadow-sm,
[data-theme="dark"] .rounded-xl.shadow,
[data-theme="dark"] .rounded-xl.shadow-sm {
  border: 1px solid var(--color-border);
}

/* Text colors for common text elements */
html.dark p,
html.dark li,
html.dark span:not([class*="text-"]),
[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] span:not([class*="text-"]) {
  color: var(--color-text-primary);
}

/* Fix code/pre elements */
html.dark pre,
html.dark code,
[data-theme="dark"] pre,
[data-theme="dark"] code {
  background-color: var(--color-surface-elevated);
  color: var(--color-text-primary);
}

/* Form labels */
html.dark label,
[data-theme="dark"] label {
  color: var(--color-text-primary);
}

/* Links in dark mode - ensure visibility */
html.dark a:not([class*="btn"]):not([class*="nav"]):not(.campaign-nav-link),
[data-theme="dark"] a:not([class*="btn"]):not([class*="nav"]):not(.campaign-nav-link) {
  color: #93c5fd;
}

html.dark a:not([class*="btn"]):not([class*="nav"]):not(.campaign-nav-link):hover,
[data-theme="dark"] a:not([class*="btn"]):not([class*="nav"]):not(.campaign-nav-link):hover {
  color: #bfdbfe;
}

/* Fix headings */
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--color-text-primary);
}

/* Dividers and hr */
html.dark hr,
[data-theme="dark"] hr {
  border-color: var(--color-border);
}

/* Placeholder text */
html.dark ::placeholder,
[data-theme="dark"] ::placeholder {
  color: var(--color-text-tertiary);
}

/* ============================================
   CAMPAIGN CARDS - MOBILE ACCORDION
   ============================================ */

/* Show content when card is expanded (mobile) */
.campaign-card.expanded .campaign-content {
  display: block !important;
}

/* Rotate chevron when expanded */
.campaign-card.expanded .campaign-chevron {
  transform: rotate(180deg);
}

/* Hide item count when expanded */
.campaign-card.expanded .campaign-count {
  display: none;
}
