/* Modern Professional Styling for BridgeBanks360 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* === LIGHT MODE THEME === */
  
  /* Brand Colors */
  --brand-primary: #1e40af;
  --brand-primary-light: #3b82f6;
  --brand-primary-lighter: #60a5fa;
  --brand-primary-dark: #1e3a8a;
  
  --brand-teal: #0d9488;
  --brand-teal-light: #14b8a6;
  --brand-teal-lighter: #2dd4bf;
  
  --brand-purple: #7c3aed;
  --brand-purple-light: #8b5cf6;
  --brand-purple-lighter: #a78bfa;
  
  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #1e40af 0%, #0d9488 100%);
  --gradient-brand-reverse: linear-gradient(135deg, #0d9488 0%, #1e40af 100%);
  --gradient-teal: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  --gradient-purple: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  --gradient-blue: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  --gradient-bg: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  --gradient-hero: linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(13, 148, 136, 0.95) 100%);
  
  /* Semantic Colors */
  --color-success: #059669;
  --color-success-light: #10b981;
  --color-success-bg: #d1fae5;
  
  --color-warning: #d97706;
  --color-warning-light: #f59e0b;
  --color-warning-bg: #fef3c7;
  
  --color-error: #dc2626;
  --color-error-light: #ef4444;
  --color-error-bg: #fee2e2;
  
  --color-info: #0891b2;
  --color-info-light: #06b6d4;
  --color-info-bg: #cffafe;
  
  /* Neutral Colors */
  --color-text-primary: #1f2937;
  --color-text-secondary: #6b7280;
  --color-text-tertiary: #9ca3af;
  
  --color-bg-primary: #f9fafb;
  --color-bg-secondary: #ffffff;
  --color-bg-tertiary: #f3f4f6;
  
  --color-border-light: #e5e7eb;
  --color-border-medium: #d1d5db;
  --color-border-dark: #9ca3af;
  
  /* Legacy color variables (kept for backwards compatibility) */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;
  
  --secondary-50: #f0fdf4;
  --secondary-100: #dcfce7;
  --secondary-200: #bbf7d0;
  --secondary-300: #86efac;
  --secondary-400: #4ade80;
  --secondary-500: #22c55e;
  --secondary-600: #16a34a;
  --secondary-700: #15803d;
  --secondary-800: #166534;
  --secondary-900: #14532d;
  
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  --success-500: #10b981;
  --warning-500: #f59e0b;
  --error-500: #ef4444;
  
  /* Typography */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-family-mono: 'JetBrains Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 0.75rem;
  --spacing-lg: 1rem;
  --spacing-xl: 1.5rem;
  --spacing-2xl: 2rem;
  --spacing-3xl: 3rem;
  --spacing-4xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.12);
  --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.15);
  
  /* Button shadows */
  --shadow-btn-primary: 0 4px 8px rgba(59, 130, 246, 0.25);
  --shadow-btn-primary-hover: 0 6px 12px rgba(59, 130, 246, 0.35);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === DARK MODE THEME === */
body[data-theme="dark"] {
  /* Brand Colors (Brighter for dark backgrounds) */
  --brand-primary: #60a5fa;
  --brand-primary-light: #3b82f6;
  --brand-primary-lighter: #93c5fd;
  --brand-primary-dark: #2563eb;
  
  --brand-teal: #2dd4bf;
  --brand-teal-light: #14b8a6;
  --brand-teal-lighter: #5eead4;
  
  --brand-purple: #a78bfa;
  --brand-purple-light: #8b5cf6;
  --brand-purple-lighter: #c4b5fd;
  
  /* Gradients for dark mode */
  --gradient-brand: linear-gradient(135deg, #60a5fa 0%, #2dd4bf 100%);
  --gradient-brand-reverse: linear-gradient(135deg, #2dd4bf 0%, #60a5fa 100%);
  --gradient-teal: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
  --gradient-purple: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  --gradient-blue: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  --gradient-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  --gradient-hero: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(45, 212, 191, 0.15) 100%);
  
  /* Semantic Colors (Brighter) */
  --color-success: #10b981;
  --color-success-light: #34d399;
  --color-success-bg: rgba(16, 185, 129, 0.15);
  
  --color-warning: #f59e0b;
  --color-warning-light: #fbbf24;
  --color-warning-bg: rgba(245, 158, 11, 0.15);
  
  --color-error: #ef4444;
  --color-error-light: #f87171;
  --color-error-bg: rgba(239, 68, 68, 0.15);
  
  --color-info: #06b6d4;
  --color-info-light: #22d3ee;
  --color-info-bg: rgba(6, 182, 212, 0.15);
  
  /* Neutral Colors */
  --color-text-primary: #f9fafb;
  --color-text-secondary: #d1d5db;
  --color-text-tertiary: #9ca3af;
  
  --color-bg-primary: #0f172a;
  --color-bg-secondary: #1e293b;
  --color-bg-tertiary: #334155;
  
  --color-border-light: #334155;
  --color-border-medium: #475569;
  --color-border-dark: #64748b;
  
  /* Updated gray scale for dark mode */
  --gray-50: #1e293b;
  --gray-100: #334155;
  --gray-200: #475569;
  --gray-300: #64748b;
  --gray-400: #94a3b8;
  --gray-500: #cbd5e1;
  --gray-600: #e2e8f0;
  --gray-700: #f1f5f9;
  --gray-800: #f8fafc;
  --gray-900: #ffffff;
  
  /* Shadows (with glow effect for dark mode) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.7);
  --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.8);
  
  --shadow-btn-primary: 0 4px 8px rgba(96, 165, 250, 0.3);
  --shadow-btn-primary-hover: 0 6px 12px rgba(96, 165, 250, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--gradient-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition-normal), color var(--transition-normal);
}

/* Layout Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xl);
}

.main-container {
  background: linear-gradient(to bottom, #f8fafc 0%, #f1f5f9 100%);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  overflow: visible;
  min-height: calc(100vh - 3rem);
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  color: white;
  padding: var(--spacing-3xl) var(--spacing-2xl);
  position: relative;
  overflow: visible;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="60" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="70" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.1;
  border-radius: inherit;
}

.header-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
}

.header-actions {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: flex-end;
  z-index: 12000;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1rem;
  padding: var(--spacing-lg) var(--spacing-xl);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.theme-toggle-icon {
  font-size: 1.1rem;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.theme-toggle[aria-pressed="true"] .theme-toggle-icon {
  transform: rotate(180deg);
}

.theme-toggle-text {
  font-weight: 600;
}

@media (max-width: 768px) {
  .header-actions {
    position: static;
    width: 100%;
    justify-content: flex-end;
    margin-top: var(--spacing-md);
  }
}

/* Hamburger Menu Styles */
.hamburger-menu-container {
  position: relative;
  display: inline-block;
  z-index: 9999;
}

.hamburger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hamburger-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

.hamburger-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: 15000;
  overflow: hidden;
}

.hamburger-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hamburger-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.hamburger-menu-item:hover {
  background: var(--gray-50);
}

.hamburger-menu-item:last-child {
  border-bottom: none;
}

.hamburger-menu-item .icon {
  font-size: 1.1rem;
}

/* Dark mode hamburger styles */
body[data-theme="dark"] .hamburger-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

body[data-theme="dark"] .hamburger-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

body[data-theme="dark"] .hamburger-menu {
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(10px);
}

body[data-theme="dark"] .hamburger-menu-item {
  color: #e2e8f0;
  border-bottom-color: rgba(148, 163, 184, 0.15);
}

body[data-theme="dark"] .hamburger-menu-item:hover {
  background: rgba(37, 99, 235, 0.15);
}

.header-main h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-200) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-main p {
  font-size: 1.125rem;
  opacity: 0.9;
  font-weight: 400;
}

.header-main svg,
.brand-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.user-controls {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

/* Content Area */
.content {
  padding: var(--spacing-3xl) var(--spacing-2xl);
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-3xl);
}

.feature-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card--brand {
  color: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.feature-card--brand::before {
  display: none;
}

.feature-card--brand h3 {
  color: #0f172a;
  font-weight: 700;
}

.feature-card--brand p,
.feature-card--brand ul li {
  color: #334155;
}

.feature-card--brand ul {
  color: inherit;
}

.feature-card--brand .feature-icon {
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.feature-card--privacy {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.25), rgba(13, 148, 136, 0.25));
}

.feature-card--insights {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.25), rgba(99, 102, 241, 0.25));
}

.feature-card--leak {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.25), rgba(249, 115, 22, 0.25));
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
  transform-origin: left;
}

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

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
  display: block;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--gray-900);
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

.homepage-intro {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--spacing-3xl);
  margin-bottom: var(--spacing-3xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(59, 130, 246, 0.15);
  position: relative;
  overflow: hidden;
}

.homepage-intro::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-2xl) - 2px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  pointer-events: none;
}

.homepage-intro__header {
  max-width: 680px;
  margin-bottom: var(--spacing-2xl);
}

.intro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.825rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-600);
  background: var(--primary-100);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.homepage-intro h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

.intro-lede {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.statement-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.statement-card {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.9) 0%, rgba(236, 253, 245, 0.9) 100%);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.statement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  opacity: 0.7;
}

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

.statement-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--spacing-sm);
}

.statement-card p {
  color: var(--gray-600);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: var(--spacing-md);
}

/* "How?" help link styling */
.card-help-link {
  display: inline-block;
  color: var(--primary-600);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.1);
  transition: all var(--transition-fast);
  position: relative;
  margin-top: var(--spacing-sm);
}

.card-help-link:hover {
  background: rgba(37, 99, 235, 0.2);
  color: var(--primary-700);
  transform: translateX(2px);
}

.card-help-link::after {
  content: '→';
  margin-left: 0.25rem;
  transition: transform var(--transition-fast);
}

.card-help-link:hover::after {
  transform: translateX(3px);
}

.statement-card--brand {
  color: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.statement-card--brand::before {
  opacity: 1;
  height: 4px;
}

.statement-card--brand h3 {
  color: #0f172a;
  font-weight: 700;
}

.statement-card--brand p {
  color: #334155;
}

/* Top 3 feature cards - Different color themes with consistent glass design */
.statement-card--privacy {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 197, 253, 0.2)); /* Blue */
}

.statement-card--privacy::before {
  background: linear-gradient(90deg, #3b82f6, #93c5fd);
}

.statement-card--insights {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(216, 180, 254, 0.2)); /* Purple */
}

.statement-card--insights::before {
  background: linear-gradient(90deg, #a855f7, #d8b4fe);
}

.statement-card--leak {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(251, 207, 232, 0.2)); /* Pink */
}

.statement-card--leak::before {
  background: linear-gradient(90deg, #ec4899, #fbcfe8);
}

/* Multi-bank clarity cards - Different color themes with consistent glass design */
.statement-card--stack {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(134, 239, 172, 0.2)); /* Green */
}

.statement-card--stack::before {
  background: linear-gradient(90deg, #22c55e, #86efac);
}

.statement-card--blend {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(254, 215, 170, 0.2)); /* Orange */
}

.statement-card--blend::before {
  background: linear-gradient(90deg, #f97316, #fed7aa);
}

.statement-card--gaps {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(165, 243, 252, 0.2)); /* Cyan */
}

.statement-card--gaps::before {
  background: linear-gradient(90deg, #06b6d4, #a5f3fc);
}

.statement-card--future {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.24), rgba(45, 212, 191, 0.2));
}

.statement-card--future::before {
  background: linear-gradient(90deg, #0f766e, #2dd4bf);
}

.statement-card--whatif {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.22), rgba(217, 70, 239, 0.18));
}

.statement-card--whatif::before {
  background: linear-gradient(90deg, #d946ef, #f472b6);
}

.statement-card--freedom {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.22), rgba(253, 186, 116, 0.18));
}

.statement-card--freedom::before {
  background: linear-gradient(90deg, #f59e0b, #fcd34d);
}

/* Featured Cards - Must Try */
.statement-card--featured {
  position: relative;
  border: 2px solid transparent;
  background-image: 
    linear-gradient(white, white),
    linear-gradient(135deg, #fbbf24, #f59e0b, #d946ef);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  animation: featuredGlow 3s ease-in-out infinite;
  box-shadow: 
    0 4px 20px rgba(249, 115, 22, 0.2),
    0 0 40px rgba(217, 70, 239, 0.15);
}

@keyframes featuredGlow {
  0%, 100% {
    box-shadow: 
      0 4px 20px rgba(249, 115, 22, 0.2),
      0 0 40px rgba(217, 70, 239, 0.15);
  }
  50% {
    box-shadow: 
      0 6px 30px rgba(249, 115, 22, 0.35),
      0 0 60px rgba(217, 70, 239, 0.25);
  }
}

.featured-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
  animation: badgePulse 2s ease-in-out infinite;
  white-space: nowrap;
}

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

/* Bridge Score Highlight */
.bridge-score-highlight {
  position: relative;
  background: linear-gradient(135deg, #3b82f6, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  animation: bridgeScoreShine 3s ease-in-out infinite;
}

.bridge-score-highlight::after {
  content: '✨';
  position: absolute;
  top: -8px;
  right: -20px;
  font-size: 1rem;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes bridgeScoreShine {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
}

.statement-card--bridge-score {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(14, 165, 233, 0.22));
}

.statement-card--bridge-score::before {
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
}

.timeline-footnote {
  font-size: 0.95rem;
  color: var(--gray-500);
  max-width: 760px;
}

.timeline-footnote strong {
  color: var(--gray-700);
}

/* Upload Section */
.upload-section {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-3xl);
  margin-bottom: var(--spacing-3xl);
  box-shadow: var(--shadow-md);
  border: 2px dashed var(--primary-300);
  transition: all var(--transition-normal);
  position: relative;
}

.upload-section:hover {
  border-color: var(--primary-500);
  background: var(--primary-50);
}

.upload-section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  text-align: center;
  color: var(--gray-900);
}

.upload-section > p {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: var(--spacing-2xl);
  font-size: 1.1rem;
}

/* Form Elements */
.statement-input-group {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--gray-200);
  position: relative;
}

.file-input {
  width: 100%;
  padding: var(--spacing-lg);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-family-base);
  transition: all var(--transition-fast);
  background: white;
}

.file-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.file-input:hover {
  border-color: var(--primary-400);
}

/* === BUTTON STYLES === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  font-family: var(--font-family-base);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Primary Button - Brand gradient */
.btn-primary {
  background: var(--gradient-blue);
  color: white;
  box-shadow: var(--shadow-btn-primary);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-primary-hover);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

/* Secondary Button - Outline style */
.btn-secondary {
  background: var(--color-bg-secondary);
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--primary-50);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

body[data-theme="dark"] .btn-secondary {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

body[data-theme="dark"] .btn-secondary:hover:not(:disabled) {
  background: rgba(96, 165, 250, 0.1);
}

/* Ghost Button - Minimal style */
.btn-ghost {
  background: transparent;
  color: var(--brand-primary-light);
  box-shadow: none;
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.1);
}

/* Success Button */
.btn-success {
  background: var(--gradient-teal);
  color: white;
  box-shadow: 0 4px 8px rgba(13, 148, 136, 0.25);
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(13, 148, 136, 0.35);
}

/* Danger Button */
.btn-danger {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.25);
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(220, 38, 38, 0.35);
}

/* Button Sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--text-lg);
}

/* Button with icon */
.btn .icon {
  font-size: 1.2em;
}

.btn-outline {
  background: transparent;
  color: var(--brand-primary-light);
  border: 2px solid var(--brand-primary-light);
  box-shadow: none;
}

.btn-outline:hover:not(:disabled) {
  background: var(--primary-600);
  color: white;
}

.btn:disabled {
  background: var(--gray-400);
  color: var(--gray-600);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn:disabled::before {
  display: none;
}

.config-info-card {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.config-info-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #1f2937;
}

.config-info-card p {
  margin: 0 0 6px;
  color: #4b5563;
  line-height: 1.5;
}

.remove-btn {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--error-500);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.remove-btn:hover {
  background: #dc2626;
  transform: scale(1.05);
}

/* Loading States */
.loading {
  text-align: center;
  padding: var(--spacing-4xl) var(--spacing-2xl);
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-3xl);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--gray-200);
  border-top: 4px solid var(--primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--spacing-xl);
}

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

.loading h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--gray-900);
}

.loading p {
  color: var(--gray-600);
  font-size: 1.1rem;
}

/* Results and Error States */
.results,
.error {
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  margin-bottom: var(--spacing-2xl);
  box-shadow: var(--shadow-md);
}

.results {
  background: var(--secondary-50);
  border: 1px solid var(--secondary-200);
  color: var(--secondary-900);
}

.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
  color: white;
  padding: var(--spacing-3xl) var(--spacing-2xl);
  position: relative;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-divider {
  height: 1px;
  background: var(--gray-700);
  margin: var(--spacing-xl) 0;
}

.supported-banks {
  font-size: 0.9rem;
  color: var(--gray-300);
  line-height: 1.6;
}

.supported-banks strong {
  color: white;
  font-weight: 600;
}

.bank-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-lg);
}

.bank-item {
  text-align: left;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: var(--spacing-2xl);
    max-width: 100%;
  }

  .main-container {
    border-radius: var(--radius-xl);
  }

  .header {
    padding: var(--spacing-3xl) var(--spacing-xl);
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-lg);
  }

  .header-main h1 {
    font-size: 2.25rem;
  }

  .content {
    padding: var(--spacing-3xl) var(--spacing-xl);
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .upload-section {
    padding: var(--spacing-3xl) var(--spacing-xl);
  }

  .btn {
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: var(--spacing-lg);
  }
  
  .header {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }
  
  .header-content {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  
  .header-main h1 {
    font-size: 1.9rem;
  }
  
  .content {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }
  
  .features-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-lg);
  }
  
  .upload-section {
    padding: var(--spacing-2xl);
  }
  
  .user-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  .btn {
    width: 100%;
  }
  
  .bank-list {
    flex-direction: column;
    gap: var(--spacing-lg);
    text-align: left;
  }
  
  .bank-item {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .header-main h1 {
    font-size: 1.75rem;
  }

  .header-main p {
    font-size: 1rem;
  }
  
  .btn {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.9rem;
  }
  
  .feature-card {
    padding: var(--spacing-xl);
  }
  
  .upload-section {
    padding: var(--spacing-xl);
  }

  .statement-input-group {
    padding: var(--spacing-lg);
  }

  .file-input {
    font-size: 0.95rem;
    padding: var(--spacing-md);
  }

  .footer {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }
}

body.device-tablet .container,
body.device-mobile .container {
  padding-bottom: var(--spacing-3xl);
}

body.device-tablet .header-content,
body.device-mobile .header-content {
  gap: var(--spacing-lg);
}

body.device-tablet .features-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.device-mobile .features-grid {
  display: flex;
  overflow-x: auto;
  gap: var(--spacing-lg);
  scroll-snap-type: x mandatory;
  padding-bottom: var(--spacing-lg);
}

body.device-mobile .features-grid::-webkit-scrollbar {
  height: 6px;
}

body.device-mobile .feature-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
}

body.device-mobile .btn,
body.device-mobile .file-input,
body.device-mobile .remove-btn {
  font-size: 0.95rem;
}

body.device-mobile .user-controls {
  flex-direction: column;
  align-items: stretch;
  gap: var(--spacing-sm);
}

body.device-mobile .user-controls .btn,
body.device-mobile .user-controls a {
  width: 100%;
  justify-content: center;
}

body.device-mobile .footer-content {
  padding: 0 var(--spacing-sm);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

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

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}
/* Budget Comparison Styles */
.budget-comparison-section {
    margin-top: 2rem;
}

.budget-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.budget-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.budget-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.budget-card.budget-over {
    border-left: 4px solid #ef4444;
}

.budget-card.budget-under {
    border-left: 4px solid #10b981;
}

.budget-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.budget-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
}

.budget-status {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    background: #f3f4f6;
}

.budget-card.budget-over .budget-status {
    background: #fee2e2;
    color: #dc2626;
}

.budget-card.budget-under .budget-status {
    background: #d1fae5;
    color: #059669;
}

.budget-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.budget-amount {
    display: flex;
    flex-direction: column;
}

.budget-amount .label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.budget-amount .value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.budget-amount.over .value {
    color: #dc2626;
}

.budget-amount.under .value {
    color: #059669;
}

.budget-progress {
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.progress-fill.budget-over {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.progress-fill.budget-under {
    background: linear-gradient(90deg, #10b981, #059669);
}

.progress-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.budget-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.budget-message.budget-over {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.budget-message.budget-under {
    background: #f0fdf4;
    color: #065f46;
    border: 1px solid #bbf7d0;
}

/* Budget Table Styles */
.budget-tables {
    margin: 1rem 0;
}

.budget-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin: 1rem 0;
}

.budget-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.budget-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.budget-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.budget-table td {
    padding: 0.875rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.budget-row:hover {
    background: #f8fafc;
}

.budget-row.budget-over {
    border-left: 4px solid #dc2626;
}

.budget-row.budget-under {
    border-left: 4px solid #16a34a;
}

.category-name strong {
    color: #334155;
}

.budget-amount, .actual-amount {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-weight: 500;
}

.difference-amount {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-weight: 600;
}

.difference-amount.budget-over {
    color: #dc2626;
}

.difference-amount.budget-under {
    color: #16a34a;
}

.progress-cell {
    min-width: 120px;
}

.progress-bar-small {
    width: 80px;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.progress-bar-small .progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.progress-bar-small .progress-fill.budget-over {
    background: #dc2626;
}

.progress-bar-small .progress-fill.budget-under {
    background: #16a34a;
}

.progress-text-small {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.status-cell {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Parent Category Badge Styles */
.parent-category-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.parent-category-badge.parent-needs {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.parent-category-badge.parent-wants {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.parent-category-badge.parent-savings {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.parent-category-badge.parent-unknown {
    background-color: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

@media (max-width: 768px) {
    .budget-cards {
        grid-template-columns: 1fr;
    }
    
    .budget-amounts {
        grid-template-columns: 1fr;
    }
    
    .budget-table {
        font-size: 0.8rem;
    }
    
    .budget-table th,
    .budget-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .progress-cell {
        min-width: 100px;
    }
    
    .progress-bar-small {
        width: 60px;
    }
}

/* Budget Prompt Styles for Login and Setup */
.budget-login-prompt, .budget-setup-prompt {
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.budget-prompt-content h3 {
    color: #334155;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.budget-prompt-content p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.budget-prompt-content ul {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 2rem auto;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.budget-prompt-content li {
    color: #475569;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.budget-prompt-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.budget-prompt-actions .btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.budget-prompt-actions .btn-primary {
    background: #667eea;
    color: white;
    border: 2px solid #667eea;
}

.budget-prompt-actions .btn-primary:hover {
    background: #5a67d8;
    border-color: #5a67d8;
    transform: translateY(-1px);
}

.budget-prompt-actions .btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.budget-prompt-actions .btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* Budget section header styles */
#budget-comparison-section .card-header h2 {
    color: #334155;
    margin-bottom: 0.5rem;
}

#budget-comparison-section .card-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

#budget-comparison-section .card-subtitle a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

#budget-comparison-section .card-subtitle a:hover {
    text-decoration: underline;
}

/* Budget Debug Section Styles */
.budget-debug-info {
    margin-top: 1rem;
}

.budget-debug-info h3 {
    color: var(--gray-800);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-100);
    padding-bottom: 0.5rem;
}

.debug-table-container {
    margin-bottom: 2rem;
    overflow-x: auto;
}

.debug-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.debug-table th {
    background: var(--primary-50);
    color: var(--gray-700);
    font-weight: 600;
    padding: 0.75rem;
    text-align: left;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-200);
}

.debug-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
}

.debug-table tr:hover {
    background: var(--gray-50);
}

.debug-table tr.has-budget {
    background: var(--secondary-50);
}

.debug-table tr.no-budget {
    background: var(--warning-500, #fef3c7);
}

.debug-table tr.no-spending {
    background: var(--primary-50);
    color: var(--gray-600);
}

.debug-explanation {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.debug-explanation h3 {
    color: var(--primary-700);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.debug-explanation ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.debug-explanation li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.debug-explanation a {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 500;
}

.debug-explanation a:hover {
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE MOBILE STYLES
   ======================================== */

/* Tablets and smaller */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-sm);
    }
    
    .main-container {
        border-radius: var(--radius-lg);
        min-height: calc(100vh - 1rem);
    }
    
    /* Header adjustments */
    .header {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .header-main h1 {
        font-size: 1.5rem;
    }
    
    .header-main p {
        font-size: 0.875rem;
    }
    
    /* User controls mobile layout */
    .user-controls {
        width: 100%;
    }
    
    .user-controls > div {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
    }
    
    .user-controls a,
    .user-controls button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* Content area */
    .content {
        padding: var(--spacing-lg);
    }
    
    /* Feature grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* Upload section */
    .upload-section {
        padding: var(--spacing-xl);
    }
    
    .upload-section h2 {
        font-size: 1.25rem;
    }
    
    /* Statement inputs */
    .statement-input-group {
        flex-direction: column;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .footer-content {
        font-size: 0.875rem;
    }
    
    .bank-list {
        flex-direction: column;
    }
    
    .bank-item {
        width: 100%;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 0.25rem;
    }
    
    .main-container {
        border-radius: var(--radius-md);
    }
    
    .header {
        padding: var(--spacing-lg);
    }
    
    .header-main h1 {
        font-size: 1.25rem;
    }
    
    .header-main p {
        font-size: 0.8rem;
    }
    
    .content {
        padding: var(--spacing-md);
    }
    
    .upload-section {
        padding: var(--spacing-lg);
    }
    
    .upload-section h2 {
        font-size: 1.1rem;
    }
    
    .upload-section p {
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    /* Make file inputs more mobile-friendly */
    .file-input {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    /* Adjust feature cards */
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    .feature-card h3 {
        font-size: 1rem;
    }
    
    .feature-card li {
        font-size: 0.875rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
}

/* Tag Info Modal */
.tag-info-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s;
}

.tag-info-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.2s;
}

.tag-info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.tag-info-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1e3a8a;
}

.tag-info-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.tag-info-close-btn:hover {
    background: #f3f4f6;
}

.tag-info-modal-content {
    padding: 20px;
}

.tag-info-modal-content p {
    margin: 0 0 16px 0;
    color: #374151;
}

.tag-info-modal-content h4 {
    margin: 20px 0 12px 0;
    font-size: 1rem;
    color: #1e3a8a;
}

.tag-info-modal-content ul {
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.tag-info-modal-content li {
    margin-bottom: 8px;
    color: #4b5563;
}

.tag-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.tag-example {
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.875rem;
    color: #374151;
}

.tag-info-warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px;
    border-radius: 4px;
    margin-top: 16px;
}

.tag-info-warning strong {
    color: #92400e;
}

.tag-info-icon {
    transition: opacity 0.2s;
}

.tag-info-icon:hover {
    opacity: 1 !important;
}

/* ===== Spending Challenges Styles ===== */
.challenges-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 24px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-radius: 12px 12px 0 0 !important;
    transition: all 0.3s ease;
}

.challenges-card-header:hover {
    background: linear-gradient(135deg, #5568d3 0%, #65408b 100%) !important;
}

.challenges-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.challenges-progress-badge {
    background: rgba(255, 255, 255, 0.35);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    color: white;
}

.challenges-points-display {
    color: white;
    font-size: 16px;
}

.challenges-points-display .points-earned {
    font-weight: 700;
    font-size: 24px;
}

.challenges-points-display .points-max {
    opacity: 0.85;
    font-size: 14px;
}

.expand-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
    color: white;
}

.challenges-content {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 3000px;
    }
}

/* Challenges grid similar to insights-grid */
.challenges-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* Challenge insight card - matches spending insights style */
.challenge-insight-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.challenge-insight-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.challenge-insight-card.challenge-completed {
    background: #dcfce7 !important;
    background: linear-gradient(to bottom, #dcfce7 0%, #f0fdf4 100%) !important;
    border: 3px solid #22c55e !important;
}

.challenge-insight-card.challenge-pending {
    background: #e5e7eb !important;
    background: linear-gradient(to bottom, #e5e7eb 0%, #f3f4f6 100%) !important;
    border: 3px solid #9ca3af !important;
}

/* Challenge header with emoji and status */
.challenge-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.challenge-emoji-large {
    font-size: 48px;
    line-height: 1;
}

.challenge-status-badge {
    font-size: 20px;
    line-height: 1;
}

.challenge-status-badge.status-completed {
    color: #16a34a;
}

.challenge-status-badge.status-pending {
    color: #9ca3af;
}

/* Challenge title */
.challenge-title-compact {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

/* Challenge description */
.challenge-description-compact {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

/* Challenge result box */
.challenge-result-compact {
    background: #f8fafc;
    border-left: 3px solid #667eea;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.challenge-insight-card.challenge-completed .challenge-result-compact {
    background: #f0fdf4;
    border-left-color: #16a34a;
}

.challenge-message-compact {
    color: #334155;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* Challenge footer - moved to right */
.challenge-footer-compact {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.challenge-duration-compact {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.challenge-points-badge-compact {
    background: #ede9fe;
    color: #667eea;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.challenge-points-badge-compact.points-earned {
    background: #fef3c7;
    color: #92400e;
}

/* Achievements summary card - full width with gradient */
.challenges-summary-card {
    margin-top: 32px !important;
    padding: 32px !important;
    border-radius: 12px !important;
    text-align: center;
    width: 100% !important;
    box-sizing: border-box;
}

.challenges-summary-card.has-achievements {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 50%, #fce7f3 100%) !important;
    border: 2px solid #c084fc !important;
    box-shadow: 0 4px 12px rgba(192, 132, 252, 0.2) !important;
}

.challenges-summary-card.no-achievements {
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 50%, #e9d5ff 100%) !important;
    border: 2px solid #a78bfa !important;
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.2) !important;
}

.summary-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.challenges-summary-card h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
}

.challenges-summary-card.has-achievements h3 {
    color: #7e22ce;
}

.challenges-summary-card.no-achievements h3 {
    color: #6d28d9;
}

.challenges-summary-card p {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.6;
}

.challenges-summary-card.has-achievements p {
    color: #581c87;
}

.challenges-summary-card.no-achievements p {
    color: #6d28d9;
}

.challenges-summary-card strong {
    font-weight: 700;
}

.achievement-maxed {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #7e22ce !important;
    margin-top: 12px !important;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.achievement-encourage {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #6d28d9 !important;
    margin-top: 8px !important;
    font-style: italic;
    opacity: 0.9;
}

/* Responsive design for challenges */
@media (max-width: 768px) {
    .challenges-grid {
        grid-template-columns: 1fr;
    }
    
    .challenges-card-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .challenges-points-display {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Financial Literacy CTA Section - Glass design matching top cards - Teal color */
.financial-literacy-cta {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(153, 246, 228, 0.2)); /* Teal */
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin: 3rem auto 2rem;
    max-width: 800px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.financial-literacy-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #14b8a6, #99f6e4);
    opacity: 1;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem 0;
}

.cta-content p {
    font-size: 1.1rem;
    color: #334155;
    margin: 0;
    line-height: 1.6;
}

.static-site-highlight {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(14, 165, 233, 0.12));
  border-radius: 18px;
  padding: 3rem 3.25rem;
  margin: 2rem auto 3rem;
  max-width: 960px;
  box-shadow: 0 24px 48px rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(37, 99, 235, 0.25);
  position: relative;
  overflow: hidden;
}

.static-site-highlight::before,
.static-site-highlight::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  opacity: 0.4;
}

.static-site-highlight::before {
  width: 220px;
  height: 220px;
  background: rgba(14, 165, 233, 0.35);
  top: -80px;
  right: -90px;
}

.static-site-highlight::after {
  width: 180px;
  height: 180px;
  background: rgba(59, 130, 246, 0.28);
  bottom: -70px;
  left: -60px;
}

.static-site-highlight__content {
  position: relative;
  z-index: 1;
}

.static-site-highlight__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  color: #1e3a8a;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.static-site-highlight h3 {
  font-size: 2.2rem;
  margin: 1.25rem 0 1rem;
  color: #0f172a;
}

.static-site-highlight p {
  font-size: 1.1rem;
  color: #1e293b;
  max-width: 760px;
}

.static-site-highlight__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}

.static-site-highlight__stats li {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(37, 99, 235, 0.22);
  font-weight: 500;
  color: #1e293b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.static-site-highlight__stats span {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1d4ed8;
}

.static-site-highlight__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  color: #f8fafc;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.static-site-highlight__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
  .static-site-highlight {
    padding: 2.25rem 1.75rem;
  }

  .static-site-highlight h3 {
    font-size: 1.8rem;
  }

  .static-site-highlight__stats {
    flex-direction: column;
    gap: 1rem;
  }

  .static-site-highlight__stats li {
    width: 100%;
    text-align: center;
  }
}

.cta-content p strong {
    color: #0f172a;
    font-weight: 600;
}

@media (max-width: 768px) {
    .financial-literacy-cta {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem 1.5rem;
    }
    
    .cta-content h3 {
        font-size: 1.4rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

    /* Dark mode overrides */
    body[data-theme="dark"] {
      color: var(--gray-100);
      background: radial-gradient(circle at 20% 20%, #0b1120 0%, #020617 60%, #010409 100%);
    }

    body[data-theme="dark"] .main-container {
      background: linear-gradient(180deg, rgba(2, 8, 23, 0.95) 0%, rgba(17, 24, 39, 0.98) 100%);
      box-shadow: 0 25px 45px rgba(2, 6, 23, 0.6);
    }

    body[data-theme="dark"] .header {
      background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 58, 138, 0.8) 100%);
      color: var(--gray-100);
      border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    }

    body[data-theme="dark"] .header::before {
      opacity: 0.05;
      border-radius: inherit;
    }

    body[data-theme="dark"] .header-main p,
    body[data-theme="dark"] .header p {
      color: rgba(226, 232, 240, 0.85);
    }

    body[data-theme="dark"] .header-actions {
      background: rgba(15, 23, 42, 0.4);
      padding: 0.35rem 0.6rem;
      border-radius: var(--radius-lg);
      gap: var(--spacing-sm);
    }

    body[data-theme="dark"] .theme-toggle {
      color: #e2e8f0;
      border-color: rgba(148, 163, 184, 0.5);
      background: rgba(15, 23, 42, 0.65);
    }

    body[data-theme="dark"] .theme-toggle:hover {
      border-color: rgba(96, 165, 250, 0.8);
      background: rgba(30, 64, 175, 0.35);
    }

    body[data-theme="dark"] .theme-toggle[aria-pressed="true"] .theme-toggle-icon {
      opacity: 1;
    }

    body[data-theme="dark"] .statement-card,
    body[data-theme="dark"] .feature-card,
    body[data-theme="dark"] .homepage-intro,
    body[data-theme="dark"] .upload-section,
    body[data-theme="dark"] .financial-literacy-cta,
    body[data-theme="dark"] .loading,
    body[data-theme="dark"] .results,
    body[data-theme="dark"] .error {
      background: rgba(15, 23, 42, 0.9);
      border-color: rgba(148, 163, 184, 0.25);
      box-shadow: 0 20px 40px rgba(2, 6, 23, 0.4);
      color: var(--gray-50);
    }

    body[data-theme="dark"] .statement-card--brand {
      background: linear-gradient(135deg, rgba(13, 148, 136, 0.35), rgba(37, 99, 235, 0.25));
    }

    body[data-theme="dark"] .statement-card p,
    body[data-theme="dark"] .homepage-intro p,
    body[data-theme="dark"] .upload-section p,
    body[data-theme="dark"] .financial-literacy-cta p,
    body[data-theme="dark"] .timeline-footnote {
      color: rgba(226, 232, 240, 0.78);
    }

    body[data-theme="dark"] .statement-card h3,
    body[data-theme="dark"] .homepage-intro h2,
    body[data-theme="dark"] .upload-section h2,
    body[data-theme="dark"] .financial-literacy-cta h3 {
      color: var(--gray-50);
    }

    body[data-theme="dark"] .intro-eyebrow {
      color: var(--primary-200);
      background: rgba(37, 99, 235, 0.2);
    }

    body[data-theme="dark"] .upload-section:hover {
      border-color: rgba(96, 165, 250, 0.45);
      background: rgba(15, 23, 42, 0.95);
    }

    body[data-theme="dark"] .btn-primary {
      background: linear-gradient(90deg, #2563eb, #0ea5e9);
      color: #f8fafc;
    }

    body[data-theme="dark"] .btn-primary:hover {
      background: linear-gradient(90deg, #1d4ed8, #0284c7);
    }

    body[data-theme="dark"] .btn-secondary {
      background: linear-gradient(90deg, #0f766e, #14b8a6);
      color: #f8fafc;
      border: 1px solid rgba(45, 212, 191, 0.35);
    }

    body[data-theme="dark"] .btn-secondary:hover {
      background: linear-gradient(90deg, #0d9488, #2dd4bf);
    }

    body[data-theme="dark"] .btn-outline {
      color: #e2e8f0;
      border-color: rgba(148, 163, 184, 0.45);
      background: rgba(15, 23, 42, 0.5);
    }

    body[data-theme="dark"] .btn-outline:hover {
      background: rgba(37, 99, 235, 0.25);
      border-color: rgba(96, 165, 250, 0.6);
    }

    body[data-theme="dark"] input[type="file"],
    body[data-theme="dark"] input[type="email"],
    body[data-theme="dark"] input[type="password"],
    body[data-theme="dark"] select,
    body[data-theme="dark"] textarea {
      background: rgba(17, 24, 39, 0.85);
      border: 1px solid rgba(148, 163, 184, 0.4);
      color: #f8fafc;
    }

    body[data-theme="dark"] input::placeholder,
    body[data-theme="dark"] textarea::placeholder {
      color: rgba(148, 163, 184, 0.7);
    }

    body[data-theme="dark"] .loading {
      color: #e2e8f0;
    }

    body[data-theme="dark"] .error {
      background: rgba(127, 29, 29, 0.35);
      border-color: rgba(248, 113, 113, 0.35);
    }

    body[data-theme="dark"] .financial-literacy-cta {
      background: linear-gradient(135deg, rgba(14, 116, 144, 0.4), rgba(15, 118, 110, 0.4));
    }

    body[data-theme="dark"] .financial-literacy-cta::before {
      background: linear-gradient(90deg, #0ea5e9, #2dd4bf);
    }

    body[data-theme="dark"] .statement-card--future {
      background: linear-gradient(135deg, rgba(14, 116, 144, 0.38), rgba(15, 118, 110, 0.32));
    }

    body[data-theme="dark"] .statement-card--whatif {
      background: linear-gradient(135deg, rgba(192, 132, 252, 0.35), rgba(236, 72, 153, 0.28));
    }

    body[data-theme="dark"] .statement-card--freedom {
      background: linear-gradient(135deg, rgba(249, 115, 22, 0.32), rgba(251, 191, 36, 0.28));
    }

    body[data-theme="dark"] .statement-card--featured {
      background-image: 
        linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.95)),
        linear-gradient(135deg, #fbbf24, #f59e0b, #d946ef);
      box-shadow: 
        0 4px 20px rgba(249, 115, 22, 0.3),
        0 0 40px rgba(217, 70, 239, 0.25);
    }

    body[data-theme="dark"] .featured-badge {
      background: linear-gradient(135deg, #fb923c, #fbbf24);
      box-shadow: 0 4px 12px rgba(249, 115, 22, 0.5);
    }

    body[data-theme="dark"] .bridge-score-highlight {
      background: linear-gradient(135deg, #60a5fa, #38bdf8);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    body[data-theme="dark"] .static-site-highlight {
      background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(14, 165, 233, 0.28));
      border-color: rgba(59, 130, 246, 0.45);
      box-shadow: 0 24px 48px rgba(14, 116, 144, 0.35);
    }

    body[data-theme="dark"] .static-site-highlight__tag {
      background: rgba(59, 130, 246, 0.35);
      color: #bfdbfe;
    }

    body[data-theme="dark"] .static-site-highlight h3,
    body[data-theme="dark"] .static-site-highlight p,
    body[data-theme="dark"] .static-site-highlight__stats li {
      color: #e2e8f0;
    }

    body[data-theme="dark"] .static-site-highlight__stats li {
      background: rgba(15, 23, 42, 0.55);
      border-color: rgba(148, 163, 184, 0.35);
      box-shadow: none;
    }

    body[data-theme="dark"] .static-site-highlight__stats span {
      color: #93c5fd;
    }

    body[data-theme="dark"] .statement-card--bridge-score {
      background: linear-gradient(135deg, rgba(37, 99, 235, 0.32), rgba(14, 165, 233, 0.32));
    }

    body[data-theme="dark"] .timeline-footnote strong {
      color: var(--gray-50);
    }

    body[data-theme="dark"] #by-source-container {
      color: rgba(226, 232, 240, 0.92);
    }

/* Static site promo modal */
.static-site-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.static-site-modal--visible {
  display: flex;
  animation: modalFadeIn 0.35s ease forwards;
}

.static-site-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.static-site-modal__dialog {
  position: relative;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #f8fafc;
  padding: 2.5rem 2.75rem;
  border-radius: 20px;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.35);
  max-width: 420px;
  width: calc(100% - 2rem);
  text-align: center;
  overflow: hidden;
}

.static-site-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: rgba(248, 250, 252, 0.15);
  color: #f8fafc;
  font-size: 1.25rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.static-site-modal__badge {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.18);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 600;
}

.static-site-modal__timer {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(239, 68, 68, 0.9);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: timerPulse 1s ease-in-out infinite;
  letter-spacing: 0.04em;
}

.static-site-modal__timer span {
  font-weight: 700;
  font-size: 0.8rem;
  color: #fef2f2;
}

@keyframes timerPulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
  }
}

.static-site-modal__dialog h2 {
  margin: 1.25rem 0 1rem;
  font-size: 1.6rem;
}

.static-site-modal__dialog p {
  font-size: 1rem;
  color: rgba(241, 245, 249, 0.9);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.static-site-modal__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: #f8fafc;
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.static-site-modal__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.3);
}

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

/* Privacy Modal Specific Styles */
.static-site-modal__dialog--privacy {
  max-width: 600px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.static-site-modal__dialog--privacy h2 {
  color: white;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.static-site-modal__icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  animation: lockPulse 2s ease-in-out infinite;
}

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

.privacy-modal__body {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.privacy-modal__features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.privacy-modal__features li {
  color: white;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-left: 0;
}

.privacy-modal__features li:last-child {
  margin-bottom: 0;
}

.privacy-modal__features strong {
  color: #fef3c7;
  font-weight: 600;
}

.static-site-modal__button--primary {
  background: white;
  color: #667eea;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.static-site-modal__button--primary:hover {
  background: #fef3c7;
  color: #764ba2;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 520px) {
  .static-site-modal__dialog {
    padding: 2rem 1.75rem;
  }

  .static-site-modal__dialog h2 {
    font-size: 1.35rem;
  }
  
  .static-site-modal__dialog--privacy h2 {
    font-size: 1.5rem;
  }
  
  .privacy-modal__features {
    padding: 1rem;
  }
  
  .privacy-modal__features li {
    font-size: 0.9rem;
  }
}


