/* ===================================
   ANATOMYQUEST - MODERN UI SYSTEM
   Updated Design for Enhanced User Experience
   =================================== */

/* ===================================
   LANDING PAGE STYLES
   =================================== */

/* Modern Hero Section */
.modern-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s infinite linear;
}

.hero-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(255,255,255,0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 8px 20px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.badge-icon {
  font-size: 16px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: white;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

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

.hero-trust {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.trust-text {
  position: relative;
  padding-left: 20px;
}

.trust-text::before {
  content: "🎓";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 2;
}

.anatomy-showcase {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
}

.anatomy-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.anatomy-card.active {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.02);
}

.anatomy-card .card-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

.anatomy-card .card-title {
  flex: 1;
  color: white;
  font-weight: 600;
  margin-bottom: 8px;
}

.progress-bar {
  background: rgba(255, 255, 255, 0.2);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  font-size: 2rem;
  animation: float 6s infinite ease-in-out;
  opacity: 0.7;
}

.floating-element:nth-child(1) { animation-delay: 0s; }
.floating-element:nth-child(2) { animation-delay: 1.5s; }
.floating-element:nth-child(3) { animation-delay: 3s; }
.floating-element:nth-child(4) { animation-delay: 4.5s; }

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

/* Features Section */
.features-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.section-header {
  margin-bottom: 80px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--gray-600);
  max-width: 800px;
  margin: 0 auto;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.feature-category {
  text-align: center;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 32px;
  position: relative;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  text-align: left;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.free-feature {
  border-color: var(--success);
}

.premium-feature {
  border-color: var(--primary);
}

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

.feature-icon {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--gray-50);
}

.free-feature .feature-icon {
  background: var(--success);
  color: white;
}

.premium-feature .feature-icon {
  background: var(--primary);
  color: white;
}

.feature-badge {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.premium-badge {
  background: var(--primary);
  color: white;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.feature-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.feature-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-benefits li {
  padding: 8px 0;
  color: var(--gray-700);
  position: relative;
  padding-left: 24px;
}

.feature-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 600;
}

/* Social Proof Section */
.social-proof-section {
  padding: 120px 0;
  background: var(--gray-50);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 24px;
  font-style: italic;
}

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

.author-avatar {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 50%;
}

.author-name {
  font-weight: 600;
  color: var(--gray-900);
}

.author-title {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.testimonial-rating {
  font-size: 1.25rem;
}

.stats-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  overflow: hidden;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cta-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(255,255,255,0.1) 100%);
}

.cta-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s infinite linear;
}

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

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 8px 20px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: white;
  margin-bottom: 24px;
}

.cta-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.cta-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px 32px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.guarantee-icon {
  font-size: 2rem;
  color: #fbbf24;
}

.guarantee-text {
  color: white;
  text-align: left;
}

.guarantee-text strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.cta-features {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.feature-check {
  color: #4ade80;
  font-weight: 600;
}

/* Modern Footer */
.modern-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 80px 0 40px;
}

.footer-content {
  margin-bottom: 40px;
}

.footer-brand {
  margin-bottom: 32px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-icon {
  font-size: 2rem;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.brand-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-800);
  border-radius: 8px;
  color: var(--gray-300);
  text-decoration: none;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-section {
  margin-bottom: 32px;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

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

.copyright,
.made-with-love {
  margin: 0;
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* Enhanced Button Styles */
.btn-xl {
  padding: 16px 32px;
  font-size: 1.125rem;
  font-weight: 600;
}

.btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.modern-btn:hover .btn-shimmer {
  left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-stats {
    gap: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .features-row {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-features {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

:root {
  /* Modern Color Palette */
  --primary: #1e40af;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #0d9488;
  --secondary-hover: #0f766e;
  --accent: #059669;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Neutral Colors */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Dark Theme */
  --dark-bg: #0f1419;
  --dark-surface: #1a1f2e;
  --dark-surface-hover: #252a3a;
  --dark-border: #2d3748;
  --dark-text: #f7fafc;
  --dark-text-secondary: #cbd5e1;
  
  /* Dynamic Theme Variables */
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-secondary: #64748b;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.3s ease;
}

/* ===================================
   BASE STYLES
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--gray-700);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.dark-mode {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
  color: var(--dark-text);
  
  /* Override dynamic theme variables for dark mode */
  --surface: var(--dark-surface);
  --border: var(--dark-border);
  --text: var(--dark-text);
  --text-secondary: var(--dark-text-secondary);
}

/* Enhanced universal transitions for theme switching */
*, *::before, *::after {
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   THEME TOGGLE BUTTON
   =================================== */

.theme-toggle {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 9999 !important;
  background: var(--surface, #ffffff) !important;
  border: 2px solid var(--border, #e2e8f0) !important;
  border-radius: var(--radius-full, 50%) !important;
  width: 60px !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-size: 24px !important;
  color: var(--text, #1e293b) !important;
  pointer-events: auto !important;
  user-select: none !important;
  box-shadow: var(--shadow-lg);
  font-size: 1.8rem;
  backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.theme-toggle:active {
  transform: translateY(0) scale(0.95);
  transition: transform 0.1s ease;
}

.dark-mode .theme-toggle {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  color: var(--dark-text);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.dark-mode .theme-toggle:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Theme toggle animation */
#theme-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.theme-toggle:hover #theme-icon {
  transform: rotate(180deg);
}

/* Engaging pulse effect */
.theme-toggle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}

/* Engaging theme transition effects */
.theme-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(30, 64, 175, 0.1) 0%, transparent 70%);
  transition: opacity 0.3s ease;
}

.theme-transition-overlay.active {
  opacity: 1;
  animation: themeRipple 0.6s ease-out;
}

@keyframes themeRipple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Color shift animation for theme changes */
.theme-changing {
  animation: colorShift 0.4s ease-in-out;
}

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

/* Staggered animation for cards during theme switch */
.dark-mode .modern-card {
  animation: darkModeSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Light mode entrance animation */
body:not(.dark-mode) .modern-card {
  animation: lightModeSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Enhanced glow effects for dark mode */
.dark-mode .theme-toggle:hover {
  box-shadow: 0 0 20px rgba(30, 64, 175, 0.5),
              0 8px 25px rgba(0,0,0,0.4);
}

.dark-mode .modern-btn-primary:hover {
  box-shadow: 0 0 15px rgba(30, 64, 175, 0.4),
              0 4px 15px rgba(0,0,0,0.3);
}

.dark-mode .modern-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.4),
              0 0 20px rgba(30, 64, 175, 0.1);
}

/* Subtle animations for navbar in dark mode */
.dark-mode .modern-navbar {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Theme-aware scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

.dark-mode ::-webkit-scrollbar-track {
  background: var(--dark-surface);
}

.dark-mode ::-webkit-scrollbar-thumb {
  background: var(--dark-border);
}

.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: var(--dark-text-secondary);
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-800);
  margin-bottom: var(--space-4);
}

.dark-mode h1, .dark-mode h2, .dark-mode h3, 
.dark-mode h4, .dark-mode h5, .dark-mode h6 {
  color: var(--dark-text);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--space-4);
  color: var(--gray-600);
}

.dark-mode p {
  color: var(--dark-text-secondary);
}

.text-large { font-size: var(--font-size-lg); }
.text-small { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }

.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ===================================
   LAYOUT COMPONENTS
   =================================== */

.container-modern {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Ensure Bootstrap containers are also centered */
.container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
  margin-left: auto !important;
  margin-right: auto !important;
}

.page-header {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-8) 0;
  margin-bottom: var(--space-8);
}

.dark-mode .page-header {
  background: var(--dark-surface);
  border-bottom-color: var(--dark-border);
}

.page-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.dark-mode .page-title {
  color: var(--dark-text);
}

.page-subtitle {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  margin-top: var(--space-2);
}

.dark-mode .page-subtitle {
  color: var(--dark-text-secondary);
}

/* ===================================
   MODERN CARDS
   =================================== */

.card-modern {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  padding: var(--space-6);
  transition: var(--transition);
}

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

.dark-mode .card-modern {
  background: var(--dark-surface);
  border-color: var(--dark-border);
}

.card-modern-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--gray-200);
}

.dark-mode .card-modern-header {
  border-bottom-color: var(--dark-border);
}

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

.dark-mode .card-modern-title {
  color: var(--dark-text);
}

.card-modern-icon {
  font-size: var(--font-size-2xl);
  opacity: 0.8;
}

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

.modern-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  min-height: 44px; /* Accessibility */
}

.modern-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

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

.modern-btn-primary {
  background: var(--primary);
  color: white;
}

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

.modern-btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.modern-btn-secondary:hover {
  background: var(--gray-200);
}

.modern-btn-light {
  background: white;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.modern-btn-light:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

/* Badge styles */
.modern-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  line-height: 1;
  vertical-align: middle;
}

.premium-badge {
  background: var(--warning);
  color: var(--gray-900);
  border: 1px solid var(--warning);
}

.upgrade-badge {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  transition: var(--transition);
}

.upgrade-badge:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

/* Profile badge */
.modern-profile-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

.modern-profile-badge:hover {
  background: var(--gray-200);
  color: var(--primary);
  text-decoration: none;
}

.profile-stat {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Dropdown enhancements */
.modern-dropdown {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  margin-top: var(--space-2);
}

.modern-dropdown-item {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  transition: var(--transition);
  color: var(--text);
}

.modern-dropdown-item:hover {
  background: var(--gray-100);
  color: var(--primary);
  text-decoration: none;
}

/* Dark mode support for new components */
.dark-mode .modern-badge {
  background: var(--dark-surface);
  color: var(--dark-text);
}

.dark-mode .modern-profile-badge {
  background: var(--dark-surface);
  color: var(--dark-text);
}

.dark-mode .modern-profile-badge:hover {
  background: var(--dark-surface-hover);
}

.dark-mode .modern-dropdown {
  background: var(--dark-surface);
  border-color: var(--dark-border);
}

.dark-mode .modern-dropdown-item {
  color: var(--dark-text);
}

.dark-mode .modern-dropdown-item:hover {
  background: var(--dark-surface-hover);
}

/* Enhanced dark mode support for all components */
.dark-mode .modern-navbar {
  background: rgba(15, 20, 25, 0.95) !important;
  border-bottom-color: var(--dark-border);
  backdrop-filter: blur(20px);
}

.dark-mode .modern-card {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.dark-mode .modern-btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.dark-mode .modern-btn-secondary {
  background: var(--dark-surface-hover);
  color: var(--dark-text);
  border-color: var(--dark-border);
}

.dark-mode .modern-btn-secondary:hover {
  background: var(--dark-border);
}

.dark-mode .modern-btn-light {
  background: var(--dark-surface);
  color: var(--dark-text);
  border-color: var(--dark-border);
}

.dark-mode .modern-btn-light:hover {
  background: var(--dark-surface-hover);
  color: var(--primary);
  border-color: var(--primary);
}

/* Dashboard dark mode */
.dark-mode .dashboard-card {
  background: var(--dark-surface);
  border-color: var(--dark-border);
}

.dark-mode .dashboard-title {
  color: var(--dark-text);
}

.dark-mode .card-title {
  color: var(--dark-text);
}

.dark-mode .modern-select {
  background: var(--dark-surface);
  color: var(--dark-text);
  border-color: var(--dark-border);
}

.dark-mode .modern-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

/* Form dark mode */
.dark-mode .form-control,
.dark-mode .modern-input {
  background: var(--dark-surface);
  color: var(--dark-text);
  border-color: var(--dark-border);
}

.dark-mode .form-control:focus,
.dark-mode .modern-input:focus {
  background: var(--dark-surface);
  color: var(--dark-text);
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

.dark-mode .form-label {
  color: var(--dark-text);
}

/* Alert dark mode */
.dark-mode .modern-alert {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  color: var(--dark-text);
}

.dark-mode .modern-alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.dark-mode .modern-alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

.dark-mode .modern-alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--warning);
  color: var(--warning);
}

/* Feature cards dark mode */
.dark-mode .feature-card {
  background: var(--dark-surface);
  border-color: var(--dark-border);
}

.dark-mode .feature-title {
  color: var(--dark-text);
}

.dark-mode .feature-description {
  color: var(--dark-text-secondary);
}

/* Hero section dark mode */
.dark-mode .modern-hero,
.dark-mode .premium-hero {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
  color: var(--dark-text);
}

.dark-mode .hero-title {
  color: var(--dark-text);
}

.dark-mode .hero-subtitle {
  color: var(--dark-text-secondary);
}

/* Section dark mode */
.dark-mode .modern-section {
  background: var(--dark-bg);
  color: var(--dark-text);
}

.dark-mode .section-title {
  color: var(--dark-text);
}

/* Footer dark mode */
.dark-mode .modern-footer {
  background: var(--dark-surface);
  border-color: var(--dark-border);
}

.dark-mode .footer-text {
  color: var(--dark-text-secondary);
}

.btn-lg-modern {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
}

.btn-sm-modern {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
}

/* ===================================
   NAVIGATION IMPROVEMENTS
   =================================== */

/* Fix Bootstrap navbar integration - High specificity to override Bootstrap */
.navbar.modern-navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-4) 0 !important;
  min-height: 80px;
}

.dark-mode .modern-navbar {
  background: rgba(26, 31, 46, 0.95);
  border-bottom-color: var(--dark-border);
}

/* Ensure navbar layout works properly - High specificity */
.navbar.modern-navbar .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

.navbar.modern-navbar .navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: var(--space-3);
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.navbar.modern-navbar .navbar-nav.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.navbar.modern-navbar .navbar-nav.align-items-center {
  align-items: center !important;
}

.navbar.modern-navbar .nav-item {
  list-style: none !important;
  margin: 0 !important;
}

.navbar.modern-navbar .navbar-collapse {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

.navbar.modern-navbar .navbar-collapse.collapse {
  display: flex !important;
}

.modern-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.modern-nav-link:hover {
  background: var(--gray-100);
  color: var(--primary);
  text-decoration: none;
}

.dark-mode .modern-nav-link {
  color: var(--dark-text-secondary);
}

.dark-mode .modern-nav-link:hover {
  background: var(--dark-surface-hover);
  color: var(--primary-light);
}

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

.dark-mode .modern-nav-link.active {
  background: var(--primary);
  color: white;
}

/* Brand styling */
.modern-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.modern-brand:hover {
  color: var(--primary-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.brand-icon {
  font-size: 1.8rem;
}

.nav-icon {
  font-size: 1rem;
}

/* Navbar toggler for mobile */
.modern-navbar .navbar-toggler {
  display: none;
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius);
}

.modern-navbar .navbar-toggler:hover {
  background: var(--gray-100);
}

.modern-navbar .navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

/* Bootstrap navbar collapse functionality - fix the collapse issue */
@media (min-width: 992px) {
  .navbar.modern-navbar .navbar-collapse.collapse {
    display: flex !important;
    flex-basis: auto;
  }
  
  .navbar.modern-navbar .navbar-toggler {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .navbar.modern-navbar .navbar-collapse.collapse:not(.show) {
    display: none !important;
  }
}

/* Responsive navbar for smaller screens */
@media (max-width: 991.98px) {
  .navbar.modern-navbar .navbar-toggler {
    display: block !important;
  }
  
  .navbar.modern-navbar .navbar-collapse {
    flex-direction: column !important;
    width: 100% !important;
    margin-top: 1rem !important;
    background: rgba(255, 255, 255, 0.98) !important;
    padding: var(--space-4) !important;
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--border) !important;
  }
  
  .dark-mode .navbar.modern-navbar .navbar-collapse {
    background: rgba(26, 31, 46, 0.98) !important;
    border-color: var(--dark-border) !important;
  }
  
  .navbar.modern-navbar .navbar-collapse.show {
    display: flex !important;
  }
  
  .navbar.modern-navbar .navbar-nav {
    flex-direction: column !important;
    gap: var(--space-2) !important;
    width: 100% !important;
  }
  
  .navbar.modern-navbar .navbar-nav.mx-auto {
    margin: var(--space-4) 0 !important;
  }
  
  .navbar.modern-navbar .modern-nav-link {
    padding: var(--space-3) var(--space-4) !important;
    border-radius: var(--radius) !important;
    width: 100% !important;
  }
}

/* ===================================
   FORM IMPROVEMENTS
   =================================== */

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

.form-label-modern {
  display: block;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.dark-mode .form-label-modern {
  color: var(--dark-text);
}

.form-input-modern {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-base);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  background: white;
  color: var(--gray-900);
  transition: var(--transition);
}

.form-input-modern:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.dark-mode .form-input-modern {
  background: var(--dark-surface-hover);
  border-color: var(--dark-border);
  color: var(--dark-text);
}

.dark-mode .form-input-modern:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.3);
}

/* ===================================
   ALERTS & NOTIFICATIONS
   =================================== */

.alert-modern {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.alert-success-modern {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.alert-warning-modern {
  background: #fffbeb;
  border: 1px solid #fed7aa;
  color: #ea580c;
}

.alert-error-modern {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.alert-info-modern {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
}

/* Dark mode alerts */
.dark-mode .alert-success-modern {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.dark-mode .alert-warning-modern {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.dark-mode .alert-error-modern {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.dark-mode .alert-info-modern {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

/* ===================================
   DASHBOARD IMPROVEMENTS
   =================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.stat-card {
  background: white;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: var(--transition);
}

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

.dark-mode .stat-card {
  background: var(--dark-surface);
  border-color: var(--dark-border);
}

.stat-icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-2);
  opacity: 0.9;
}

.stat-value {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--primary);
  margin: var(--space-2) 0;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  font-weight: 500;
}

.dark-mode .stat-label {
  color: var(--dark-text-secondary);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
  .container-modern {
    padding: 0 var(--space-4);
  }
  
  .page-header {
    padding: var(--space-6) 0;
    margin-bottom: var(--space-6);
  }
  
  .page-title {
    font-size: var(--font-size-2xl);
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
  }
  
  .card-modern {
    padding: var(--space-4);
  }
  
  .btn-modern {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .page-title {
    font-size: var(--font-size-xl);
    flex-direction: column;
    gap: var(--space-2);
  }
}

/* ===================================
   ANIMATIONS
   =================================== */

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.animate-fade-in-scale {
  animation: fadeInScale 0.4s ease forwards;
}

.animate-stagger > * {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.5s; }

/* ===================================
   SUBSCRIPTION/PAYMENT STYLES
   =================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin: var(--space-8) 0;
}

.pricing-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gray-200);
  padding: var(--space-8);
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.dark-mode .pricing-card {
  background: var(--dark-surface);
  border-color: var(--dark-border);
}

.pricing-plan-name {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.pricing-amount {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--primary);
  margin: var(--space-4) 0;
}

.pricing-period {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  margin-left: var(--space-2);
}

.dark-mode .pricing-period {
  color: var(--dark-text-secondary);
}

.pricing-features {
  list-style: none;
  margin: var(--space-6) 0;
  padding: 0;
}

.pricing-features li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.dark-mode .pricing-features li {
  border-bottom-color: var(--dark-border);
}

.feature-check {
  color: var(--success);
  font-weight: bold;
}

/* ===================================
   LOADING STATES
   =================================== */

.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.no-scroll {
  overflow: hidden;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }

/* ==========================================================================
   INTERACTIVE ELEMENTS & ANIMATIONS
   ========================================================================== */

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

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

/* Modern Tooltips */
.modern-tooltip {
  position: absolute;
  background: var(--gray-900);
  color: white;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  font-size: 0.875rem;
  transform: translateX(-50%) translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
  white-space: nowrap;
}

.modern-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--gray-900);
}

.modern-tooltip.visible {
  opacity: 1;
}

/* Progress Indicators */
.progress-indicator {
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-2);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Notification System */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.modern-notification {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 300px;
  transform: translateX(400px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.modern-notification.show {
  transform: translateX(0);
}

.modern-notification-success {
  border-left: 4px solid var(--success);
}

.modern-notification-error {
  border-left: 4px solid var(--danger);
}

.modern-notification-warning {
  border-left: 4px solid var(--warning);
}

.modern-notification-info {
  border-left: 4px solid var(--info);
}

.notification-content {
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.notification-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.notification-message {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text);
}

.notification-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.notification-close:hover {
  background: var(--gray-100);
  color: var(--text);
}

/* Form Enhancements */
.form-group.focused .form-label {
  color: var(--primary);
  transform: translateY(-2px);
}

.form-group.has-error .form-control {
  border-color: var(--danger);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-group.has-success .form-control {
  border-color: var(--success);
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Scroll Animations */
.animate-prepare {
  opacity: 0;
  transform: translateY(30px);
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

/* Enhanced Loading States */
.modern-btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.modern-btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1200px) {
  .dashboard-content .row {
    gap: 1rem;
  }
  
  .modern-card {
    padding: 1.5rem;
  }
}

@media (max-width: 992px) {
  .modern-navbar .container {
    padding: 0 1rem;
  }
  
  .dashboard-content .col-md-6 {
    margin-bottom: 2rem;
  }
  
  .chart-wrapper {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .modern-navbar {
    padding: 0.5rem 0;
  }
  
  .modern-navbar .navbar-nav {
    padding-top: 1rem;
    gap: 0.5rem;
  }
  
  .modern-navbar .navbar-nav .nav-item {
    margin-bottom: 0.5rem;
  }
  
  .modern-brand {
    font-size: 1.3rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .modern-card {
    margin-bottom: 1rem;
    padding: 1.25rem;
  }
  
  .dashboard-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .card-title {
    font-size: 1.3rem;
  }
  
  .chart-selector, 
  .timeframe-selector {
    margin-bottom: 1rem;
  }
  
  .modern-select {
    font-size: 0.9rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .modern-container {
    padding: 0 1rem;
  }
  
  .dashboard-header {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .dashboard-title {
    font-size: 1.8rem;
  }
  
  .modern-card {
    padding: 1rem;
  }
  
  .card-header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
  
  .chart-wrapper {
    height: 250px;
  }
  
  .modern-btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .hero-content {
    padding: 2rem 1rem;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  .feature-title {
    font-size: 1.2rem;
  }
}
.shadow-lg { box-shadow: var(--shadow-lg); }