/* ============================================
   AUTO-NOM SHARED CSS - VISUALLY STUNNING MODERN DESIGN
   FIXED VERSION: Text visibility in dark mode, no pink colors, CSP compatible
   ============================================ */

/* CSS Variables for Advanced Theme System */
:root {
  /* Light Theme (Default) */
  --theme-bg: #ffffff;
  --theme-bg-secondary: #f8fafc;
  --theme-bg-tertiary: #f1f5f9;
  --theme-surface: #ffffff;
  --theme-surface-secondary: #f8fafc;

  --theme-header-bg: rgba(255, 255, 255, 0.92);
  --theme-footer-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

  --theme-card-bg: rgba(255, 255, 255, 0.72);
  --theme-card-border: rgba(226, 232, 240, 0.4);
  --theme-card-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

  --theme-text: #0f172a;
  --theme-text-secondary: #475569;
  --theme-text-tertiary: #64748b;
  --theme-heading: #0f172a;

  --theme-primary: #dc2626; /* Professional red */
  --theme-primary-rgb: 220, 38, 38;
  --theme-primary-light: rgba(220, 38, 38, 0.12);
  --theme-primary-dark: #b91c1c;

  --theme-secondary: #059669; /* Professional green */
  --theme-secondary-rgb: 5, 150, 105;
  --theme-secondary-light: rgba(5, 150, 105, 0.12);

  --theme-accent: #059669; /* Changed from purple to green (no pink) */
  --theme-accent-rgb: 5, 150, 105;

  --theme-success: #059669;
  --theme-warning: #d97706;
  --theme-error: #dc2626;
  --theme-info: #2563eb;

  /* NEW: Additional button colors (no pink) */
  --button-danger: #dc2626;
  --button-success: #059669;
  --button-info: #2563eb;
  --button-warning: #d97706;

  /* Font Families */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Glassmorphism Properties */
  --glass-blur: blur(24px);
  --glass-blur-heavy: blur(32px);
  --glass-border: rgba(255, 255, 255, 0.24);
  --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  --glass-inset-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15);

  /* Gradients - NO PINK */
  --primary-gradient: linear-gradient(135deg, #dc2626 0%, #059669 100%); /* Red to Green */
  --secondary-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --accent-gradient: linear-gradient(135deg, #059669 0%, #3b82f6 100%); /* Green to Blue */
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);

  /* NEW: Form specific variables */
  --theme-border: rgba(15, 23, 42, 0.1);
  --form-placeholder-color: var(--theme-text-tertiary);
  --newsletter-input-bg: rgba(15, 23, 42, 0.05);
  --newsletter-input-border: rgba(15, 23, 42, 0.1);
  --footer-link-hover: var(--theme-primary);

  /* Animations */
  --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-snappy: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Typography */
  --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;
  --font-size-5xl: 3rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
}

[data-theme="dark"] {
  /* Dark Theme - FIXED text colors */
  --theme-bg: #0f172a;
  --theme-bg-secondary: #1e293b;
  --theme-bg-tertiary: #334155;
  --theme-surface: #1e293b;
  --theme-surface-secondary: #0f172a;

  --theme-header-bg: rgba(15, 23, 42, 0.92);
  --theme-footer-bg: linear-gradient(135deg, #020617 0%, #0f172a 100%);

  --theme-card-bg: rgba(30, 41, 59, 0.72);
  --theme-card-border: rgba(71, 85, 105, 0.3);
  --theme-card-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);

  --theme-text: #f8fafc;
  --theme-text-secondary: #e2e8f0;
  --theme-text-tertiary: #94a3b8; /* Brighter for dark mode */
  --theme-heading: #f8fafc;

  --theme-primary: #ef4444;
  --theme-primary-rgb: 239, 68, 68;
  --theme-primary-light: rgba(239, 68, 68, 0.18);
  --theme-primary-dark: #dc2626;

  --theme-secondary: #10b981;
  --theme-secondary-rgb: 16, 185, 129;
  --theme-secondary-light: rgba(16, 185, 129, 0.18);

  --theme-accent: #10b981; /* Brighter green for dark mode */
  --theme-accent-rgb: 16, 185, 129;

  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  --glass-inset-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);

  --primary-gradient: linear-gradient(135deg, #ef4444 0%, #10b981 100%);
  --secondary-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #60a5fa 100%);
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

  /* NEW: Dark mode specific variables */
  --theme-border: rgba(255, 255, 255, 0.1);
  --form-placeholder-color: rgba(255, 255, 255, 0.6);
  --newsletter-input-bg: rgba(255, 255, 255, 0.1);
  --newsletter-input-border: rgba(255, 255, 255, 0.2);
  --footer-link-hover: #ffffff;
}

/* ============================================
   BASE RESET & TYPOGRAPHY
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: light dark;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--theme-text);
  background: var(--bg-gradient);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
  overflow-x: hidden;
}

/* Floating Gradient Orbs */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
  background:
    radial-gradient(circle at 20% 30%, rgba(var(--theme-primary-rgb), 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(var(--theme-accent-rgb), 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(var(--theme-secondary-rgb), 0.08) 0%, transparent 50%);
}

/* Orb Animations */
@keyframes float-orb-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

@keyframes float-orb-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 20px) scale(1.03); }
}

@keyframes float-orb-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, 40px) scale(0.97); }
}

@media (prefers-reduced-motion: no-preference) {
  body::before {
    animation: float-orb-1 20s ease-in-out infinite,
               float-orb-2 25s ease-in-out infinite reverse,
               float-orb-3 30s ease-in-out infinite;
  }
}

/* Typography Scale with Fluid Clamp */
h1, .h1 {
  font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
  font-weight: 900;
  line-height: 1.2;
  color: var(--theme-heading);
  letter-spacing: -0.025em;
}

h2, .h2 {
  font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
  font-weight: 800;
  line-height: 1.25;
  color: var(--theme-heading);
  letter-spacing: -0.02em;
}

h3, .h3 {
  font-size: clamp(var(--font-size-xl), 3vw, var(--font-size-3xl));
  font-weight: 700;
  line-height: 1.3;
  color: var(--theme-heading);
}

h4, .h4 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  line-height: 1.4;
  color: var(--theme-heading);
}

h5, .h5 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  line-height: 1.5;
  color: var(--theme-heading);
}

h6, .h6 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  line-height: 1.6;
  color: var(--theme-heading);
}

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

.lead {
  font-size: clamp(var(--font-size-lg), 2.5vw, var(--font-size-xl));
  font-weight: 500;
  line-height: 1.6;
  color: var(--theme-text);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  background: var(--primary-gradient);
  color: white;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.3s ease;
  border: 2px solid transparent;
}

.skip-link:focus {
  top: var(--space-md);
  outline: 3px solid var(--theme-primary);
  outline-offset: 2px;
}

/* Focus Styles */
:focus-visible {
  outline: 3px solid var(--theme-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.keyboard-navigation :focus-visible {
  outline-width: 3px;
  outline-style: solid;
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --theme-border: #000000;
    --glass-border: #000000;
    --theme-text: #000000;
    --theme-text-secondary: #000000;
  }

  [data-theme="dark"] {
    --theme-border: #ffffff;
    --glass-border: #ffffff;
    --theme-text: #ffffff;
    --theme-text-secondary: #ffffff;
  }
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 480px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-2xl);
  }
}

/* Content Wrapper */
.content-wrapper {
  flex: 1 0 auto;
  padding-top: 90px;
  min-height: calc(100vh - 400px);
  position: relative;
  z-index: 1;
}

#main-content {
  outline: none;
  padding: var(--space-xl) 0;
}

/* ============================================
   NAVIGATION - GLASS HEADER
   ============================================ */

#mainHeader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--theme-header-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--theme-card-shadow);
  transition: var(--transition-smooth);
  padding: var(--space-sm) 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 !important;
  height: 70px;
}

/* Logo */
.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.navbar-brand img {
  height: 48px;
  width: auto;
  transition: var(--transition-smooth);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

[data-theme="dark"] .navbar-brand img {
  filter: brightness(0) invert(1) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.navbar-brand:hover img {
  transform: scale(1.08);
}

/* Nav Links */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--theme-text) !important;
  text-decoration: none;
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  position: relative;
  background: transparent;
  border: 2px solid transparent;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 70%;
}

.nav-link:hover,
.nav-link:focus {
  background: var(--theme-primary-light);
  border-color: transparent;
  transform: translateY(-2px);
}

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

/* Theme Toggle - Modern Glass Switch */
.theme-toggle-wrapper {
  position: relative;
  margin-left: var(--space-sm);
}

.theme-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80px;
  height: 40px;
  padding: 0 var(--space-sm);
  background: var(--theme-card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--theme-card-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.theme-toggle-label::before {
  content: '';
  position: absolute;
  left: var(--space-xs);
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  z-index: 1;
}

.theme-toggle-input:checked + .theme-toggle-label::before {
  transform: translate(36px, -50%);
}

.theme-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
  transition: var(--transition-smooth);
}

.sun-icon {
  color: #f59e0b;
}

.moon-icon {
  color: #cbd5e1;
}

.theme-toggle-label:hover {
  border-color: var(--theme-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(var(--theme-primary-rgb), 0.2);
}

/* Mobile Menu Toggle */
.navbar-toggler {
  display: none;
  background: transparent;
  border: 2px solid var(--theme-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.navbar-toggler:hover {
  background: var(--theme-primary-light);
  border-color: var(--theme-primary);
}

.toggle-icon {
  width: 24px;
  height: 2px;
  background: var(--theme-text);
  position: relative;
  transition: var(--transition-smooth);
}

.toggle-icon::before,
.toggle-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--theme-text);
  transition: var(--transition-smooth);
}

.toggle-icon::before {
  top: -6px;
}

.toggle-icon::after {
  bottom: -6px;
}

.navbar-toggler[aria-expanded="true"] .toggle-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .toggle-icon::before {
  transform: rotate(45deg) translate(4px, 4px);
}

.navbar-toggler[aria-expanded="true"] .toggle-icon::after {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================================
   GLASS CARDS & SURFACES
   ============================================ */

.glass-card {
  background: var(--theme-card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--theme-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-inset-shadow);
  z-index: 1;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(var(--theme-primary-rgb), 0.3);
}

[data-theme="dark"] .glass-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.glass-card-primary {
  background: rgba(var(--theme-primary-rgb), 0.08);
  border-color: rgba(var(--theme-primary-rgb), 0.2);
}

.glass-card-secondary {
  background: rgba(var(--theme-secondary-rgb), 0.08);
  border-color: rgba(var(--theme-secondary-rgb), 0.2);
}

/* ============================================
   BUTTONS - GLASS MORPHISM (NO PINK)
   ============================================ */

.glass-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-xl);
  background: var(--theme-card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--theme-card-border);
  border-radius: var(--radius-md);
  color: var(--theme-text);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.5;
  min-height: 48px;
}

.glass-button::before {
  content: '';
  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.6s ease;
}

.glass-button:hover::before {
  left: 100%;
}

.glass-button:hover,
.glass-button:focus {
  background: rgba(var(--theme-primary-rgb), 0.1);
  border-color: rgba(var(--theme-primary-rgb), 0.3);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(var(--theme-primary-rgb), 0.15);
}

.glass-button:active {
  transform: translateY(-1px);
  transition: var(--transition-snappy);
}

/* Button Variants - NO PINK */
.glass-button-primary {
  background: var(--primary-gradient);
  color: white;
  border: none;
  box-shadow: 0 10px 20px rgba(var(--theme-primary-rgb), 0.3);
}

.glass-button-primary:hover,
.glass-button-primary:focus {
  background: var(--primary-gradient);
  filter: brightness(1.1);
  box-shadow: 0 20px 40px rgba(var(--theme-primary-rgb), 0.4);
  transform: translateY(-3px);
}

.glass-button-secondary {
  background: var(--secondary-gradient);
  color: white;
  border: none;
  box-shadow: 0 10px 20px rgba(var(--theme-secondary-rgb), 0.3);
}

.glass-button-outline {
  background: transparent;
  border: 2px solid var(--theme-primary);
  color: var(--theme-primary);
}

.glass-button-outline:hover {
  background: var(--theme-primary);
  color: white;
}

/* NEW: Professional button variants */
.glass-button-success {
  background: var(--secondary-gradient);
  color: white;
  border: none;
}

.glass-button-info {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: white;
  border: none;
}

.glass-button-warning {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: white;
  border: none;
}

.glass-button-danger {
  background: var(--primary-gradient);
  color: white;
  border: none;
}

.glass-button-lg {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--font-size-lg);
  min-height: 56px;
}

.glass-button-sm {
  padding: var(--space-xs) var(--space-lg);
  font-size: var(--font-size-sm);
  min-height: 40px;
}

/* Button Group */
.glass-button-group {
  display: inline-flex;
  gap: var(--space-xs);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.glass-button-group .glass-button {
  border-radius: 0;
  margin: 0;
}

.glass-button-group .glass-button:first-child {
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.glass-button-group .glass-button:last-child {
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.glass-form-control {
  width: 100%;
  padding: var(--space-md);
  background: var(--theme-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--theme-border);
  border-radius: var(--radius-md);
  color: var(--theme-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  transition: var(--transition-smooth);
  line-height: 1.5;
}

.glass-form-control:focus {
  outline: none;
  border-color: var(--theme-primary);
  background: rgba(var(--theme-primary-rgb), 0.05);
  box-shadow: 0 0 0 4px rgba(var(--theme-primary-rgb), 0.1);
}

.glass-form-control::placeholder {
  color: var(--form-placeholder-color);
}

[data-theme="dark"] .glass-form-control {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .glass-form-control::placeholder {
  color: #94a3b8;
}

.glass-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  background-size: 16px;
  padding-right: var(--space-2xl);
}

/* ============================================
   BADGES & TAGS
   ============================================ */

.glass-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--theme-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--theme-card-border);
  border-radius: var(--radius-full);
  color: var(--theme-text);
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1;
  transition: var(--transition-smooth);
}

.glass-badge:hover {
  transform: translateY(-2px);
  border-color: var(--theme-primary);
}

.glass-badge-primary {
  background: rgba(var(--theme-primary-rgb), 0.12);
  color: var(--theme-primary);
  border-color: rgba(var(--theme-primary-rgb), 0.3);
}

.glass-badge-secondary {
  background: rgba(var(--theme-secondary-rgb), 0.12);
  color: var(--theme-secondary);
  border-color: rgba(var(--theme-secondary-rgb), 0.3);
}

[data-theme="dark"] .glass-badge {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   TABLES - MODERN DESIGN
   ============================================ */

.glass-table {
  width: 100%;
  background: var(--theme-card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--theme-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.glass-table thead {
  background: rgba(var(--theme-primary-rgb), 0.08);
}

.glass-table th {
  padding: var(--space-md);
  text-align: left;
  font-weight: 600;
  color: var(--theme-heading);
  border-bottom: 1px solid var(--theme-border);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.glass-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--theme-border);
  color: var(--theme-text-secondary);
}

.glass-table tbody tr {
  transition: var(--transition-smooth);
}

.glass-table tbody tr:hover {
  background: rgba(var(--theme-primary-rgb), 0.05);
}

.glass-table tbody tr:last-child td {
  border-bottom: none;
}

[data-theme="dark"] .glass-table td {
  color: #cbd5e1;
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(var(--theme-primary-rgb), 0);
  }
  50% {
    box-shadow: 0 0 40px rgba(var(--theme-primary-rgb), 0.4);
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-in-right {
  animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.value-changing {
  animation: value-change 0.3s ease-in-out;
}

/* Staggered Animation for Lists */
.stagger-animate > * {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* ============================================
   FOOTER - GLASS DESIGN (FIXED TEXT VISIBILITY)
   ============================================ */

.site-footer {
  background: var(--theme-footer-bg);
  color: var(--theme-text-secondary);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: auto;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--theme-border);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--theme-primary), transparent);
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: var(--space-lg);
  transition: var(--transition-smooth);
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.site-footer h5 {
  color: white;
  margin-bottom: var(--space-lg);
  font-weight: 600;
}

.site-footer a {
  color: var(--theme-text-tertiary);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-block;
  padding: var(--space-xs) 0;
}

.site-footer a:hover {
  color: var(--footer-link-hover);
  transform: translateX(5px);
}

.site-footer p {
  color: var(--theme-text-tertiary);
}

.site-footer li {
  color: var(--theme-text-tertiary);
}

.social-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: white;
  text-decoration: none;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.social-link:hover {
  background: var(--theme-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(var(--theme-primary-rgb), 0.3);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.newsletter-form .newsletter-input {
  flex: 1;
  padding: var(--space-md);
  background: var(--newsletter-input-bg);
  border: 1px solid var(--newsletter-input-border);
  border-radius: var(--radius-md);
  color: var(--theme-text);
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
}

.newsletter-form .newsletter-input:focus {
  outline: none;
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.2);
}

.newsletter-form .newsletter-input::placeholder {
  color: var(--form-placeholder-color);
}

.newsletter-form .newsletter-button {
  background: var(--secondary-gradient);
  color: white;
  border: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.newsletter-form .newsletter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(var(--theme-secondary-rgb), 0.3);
}

/* Legal Disclaimer */
.legal-disclaimer {
  background: rgba(var(--theme-primary-rgb), 0.1);
  color: var(--theme-text);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--theme-border);
  font-size: var(--font-size-sm);
  text-align: center;
  margin-top: var(--space-xl);
}

.legal-disclaimer strong {
  color: var(--theme-primary);
}

[data-theme="dark"] .legal-disclaimer {
  background: rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .legal-disclaimer strong {
  color: #f87171;
}

/* ============================================
   DARK MODE SPECIFIC FIXES
   ============================================ */

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

[data-theme="dark"] .site-footer a {
  color: #cbd5e1;
}

[data-theme="dark"] .site-footer a:hover {
  color: #ffffff;
}

[data-theme="dark"] .site-footer p {
  color: #94a3b8;
}

[data-theme="dark"] .site-footer li {
  color: #cbd5e1;
}

/* Ensure proper text visibility in all elements */
[data-theme="dark"] {
  color-scheme: dark;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile First (320px+) */
@media (max-width: 767px) {
  /* Navigation Mobile */
  .navbar-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-collapse {
    position: fixed;
    top: 70px;
    left: 1rem;
    right: 1rem;
    background: var(--theme-header-bg);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border: 1px solid var(--theme-card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: 0;
    box-shadow: var(--glass-shadow);
    z-index: 999;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
  }

  .navbar-collapse.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar-nav {
    flex-direction: column;
    gap: var(--space-xs);
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: center;
    padding: var(--space-md);
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-card-border);
  }

  .theme-toggle-wrapper {
    width: 100%;
    margin: var(--space-md) 0 0;
    justify-content: center;
  }

  /* Footer Mobile */
  .site-footer {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  /* Typography Adjustments */
  h1, .h1 {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
  }

  h2, .h2 {
    font-size: clamp(1.25rem, 6vw, 2rem);
  }

  .glass-table {
    font-size: var(--font-size-sm);
  }

  .glass-table th,
  .glass-table td {
    padding: var(--space-sm);
  }
}

/* Tablet (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .content-wrapper {
    padding-top: 80px;
  }
}

/* Desktop Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding: 0 var(--space-xl);
  }

  .navbar-nav {
    gap: var(--space-xs);
  }

  .nav-link {
    padding: var(--space-sm);
  }

  .glass-button-group {
    flex-direction: column;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  html {
    scroll-padding-top: 80px;
  }

  #mainHeader {
    padding: 0;
  }

  .navbar {
    height: 80px;
  }

  .navbar-brand img {
    height: 56px;
  }

  .navbar-nav {
    gap: var(--space-xs);
  }

  .nav-link {
    padding: var(--space-sm) var(--space-md);
  }

  .content-wrapper {
    padding-top: 80px;
  }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
}

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

/* Spacing */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-xs) !important; }
.mt-2 { margin-top: var(--space-sm) !important; }
.mt-3 { margin-top: var(--space-md) !important; }
.mt-4 { margin-top: var(--space-lg) !important; }
.mt-5 { margin-top: var(--space-xl) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-xs) !important; }
.mb-2 { margin-bottom: var(--space-sm) !important; }
.mb-3 { margin-bottom: var(--space-md) !important; }
.mb-4 { margin-bottom: var(--space-lg) !important; }
.mb-5 { margin-bottom: var(--space-xl) !important; }

/* Text Colors */
.text-primary { color: var(--theme-primary) !important; }
.text-secondary { color: var(--theme-secondary) !important; }
.text-success { color: var(--theme-success) !important; }
.text-warning { color: var(--theme-warning) !important; }
.text-error { color: var(--theme-error) !important; }
.text-info { color: var(--theme-info) !important; }

/* Background Colors */
.bg-primary { background: var(--theme-primary) !important; }
.bg-secondary { background: var(--theme-secondary) !important; }
.bg-success { background: var(--theme-success) !important; }
.bg-warning { background: var(--theme-warning) !important; }
.bg-error { background: var(--theme-error) !important; }
.bg-info { background: var(--theme-info) !important; }

/* Glass Backgrounds */
.bg-glass { background: var(--theme-card-bg) !important; }
.bg-glass-primary { background: rgba(var(--theme-primary-rgb), 0.1) !important; }
.bg-glass-secondary { background: rgba(var(--theme-secondary-rgb), 0.1) !important; }

/* Display */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }

/* Flex */
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.align-center { align-items: center !important; }

/* Text Alignment */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

/* Visibility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Print Styles */
@media print {
  .glass-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }

  .glass-button,
  .theme-toggle-label,
  .navbar-toggler {
    display: none !important;
  }
}
