﻿/* =============================================================================
   FreePDFWorld - Dark / Light Theme System
   File: /assets/css/theme.css
   SECTIONS (Ctrl+F the title to jump):
     1.  TRANSITION HELPERS
     2.  LIGHT THEME VARIABLES
     3.  DARK THEME VARIABLES
     4.  THEME TOGGLE BUTTON
     5.  HEADER & NAV
     6.  LANGUAGE SELECTOR
     7.  DROPDOWNS & MEGA MENU
     8.  HERO SECTION
     9.  HOME PAGE CARDS & SECTIONS
    10.  CONVERTER / TOOL PAGES
    11.  ABOUT PAGE
    12.  CONTACT PAGE
    13.  FAQ PAGE
    14.  DOCUMENTATION PAGE
    15.  LEGAL PAGES
    16.  PRESS PAGE
    17.  TEAM PAGES
    18.  ERROR PAGE
    19.  FOOTER
    20.  GENERIC OVERRIDES
   =============================================================================*/
/* ---- 1. TRANSITION HELPERS ---- */
html { transition: background-color 0.25s ease, color 0.25s ease; }
html.no-transitions, html.no-transitions * { transition: none !important; }
*, *::before, *::after {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}
/* ---- 2. LIGHT THEME VARIABLES ---- */
:root {
  --theme-body-bg: #ffffff; --theme-body-color: #1a1a2e;
  --theme-bg: #ffffff; --theme-bg-secondary: #f9fafb; --theme-bg-tertiary: #f3f4f6;
  --theme-surface: #ffffff; --theme-surface-hover: #f3f4f6;
  --theme-border: #e5e7eb; --theme-border-subtle: #f3f4f6;
  --theme-text-primary: #111827; --theme-text-secondary: #374151;
  --theme-text-muted: #6b7280; --theme-text-placeholder: #9ca3af;
  --theme-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --theme-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.10);
  --theme-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.10);
  --theme-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.10);
  --theme-header-bg: #ffffff; --theme-header-border: #e5e7eb;
  --theme-nav-link-color: #374151; --theme-nav-link-hover-bg: #f3f4f6;
  --theme-nav-link-hover-color: #2563eb; --theme-mobile-menu-bg: #ffffff;
  --theme-dropdown-bg: #ffffff; --theme-dropdown-border: #e5e7eb;
  --theme-dropdown-shadow: 0 10px 15px -3px rgba(0,0,0,0.10);
  --theme-dropdown-link-color: #1f2937; --theme-dropdown-link-hover-bg: #f9fafb;
  --theme-lang-trigger-bg: linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);
  --theme-lang-trigger-border: #bfdbfe;
  --theme-lang-trigger-hover-bg: linear-gradient(135deg,#dbeafe 0%,#bfdbfe 100%);
  --theme-lang-grid-bg: #ffffff; --theme-lang-footer-bg: #f9fafb;
  --theme-lang-footer-border: #e5e7eb;
  --theme-lang-option-hover-bg: linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);
  --theme-lang-option-active-bg: linear-gradient(135deg,#dbeafe 0%,#bfdbfe 100%);
  --theme-lang-option-color: #1f2937; --theme-lang-flag-bg: #f9fafb;
  --theme-card-bg: #ffffff; --theme-card-border: #e5e7eb;
  --theme-input-bg: #ffffff; --theme-input-border: #d1d5db;
  --theme-input-color: #111827; --theme-input-focus-border: #2563eb;
  --theme-footer-bg: #0f172a; --theme-footer-text: #94a3b8;
  --theme-toggle-bg: #f3f4f6; --theme-toggle-bg-hover: #e5e7eb;
  --theme-toggle-icon-color: #374151; --theme-toggle-border: #e5e7eb;
}
/* ---- 3. DARK THEME VARIABLES ---- */
[data-theme="dark"],
html[data-theme="dark"],
:root[data-theme="dark"] {
  --theme-body-bg: #0f172a; --theme-body-color: #e2e8f0;
  --theme-bg: #0f172a; --theme-bg-secondary: #1e293b; --theme-bg-tertiary: #334155;
  --theme-surface: #1e293b; --theme-surface-hover: #334155;
  --theme-border: #334155; --theme-border-subtle: #1e293b;
  --theme-text-primary: #f1f5f9; --theme-text-secondary: #cbd5e1;
  --theme-text-muted: #94a3b8; --theme-text-placeholder: #64748b;
  --theme-shadow-sm: 0 1px 2px rgba(0,0,0,0.30);
  --theme-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.40);
  --theme-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.40);
  --theme-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.50);
  --theme-header-bg: #1e293b; --theme-header-border: #334155;
  --theme-nav-link-color: #cbd5e1; --theme-nav-link-hover-bg: #334155;
  --theme-nav-link-hover-color: #60a5fa; --theme-mobile-menu-bg: #1e293b;
  --theme-dropdown-bg: #1e293b; --theme-dropdown-border: #334155;
  --theme-dropdown-shadow: 0 10px 15px -3px rgba(0,0,0,0.50);
  --theme-dropdown-link-color: #e2e8f0; --theme-dropdown-link-hover-bg: #334155;
  --theme-lang-trigger-bg: #334155; --theme-lang-trigger-border: #475569;
  --theme-lang-trigger-hover-bg: #475569;
  --theme-lang-grid-bg: #1e293b; --theme-lang-footer-bg: #0f172a;
  --theme-lang-footer-border: #334155;
  --theme-lang-option-hover-bg: #334155;
  --theme-lang-option-active-bg: rgba(96,165,250,0.15);
  --theme-lang-option-color: #e2e8f0; --theme-lang-flag-bg: #334155;
  --theme-card-bg: #1e293b; --theme-card-border: #334155;
  --theme-input-bg: #1e293b; --theme-input-border: #334155;
  --theme-input-color: #f1f5f9; --theme-input-focus-border: #60a5fa;
  --theme-footer-bg: #020617; --theme-footer-text: #64748b;
  --theme-toggle-bg: #334155; --theme-toggle-bg-hover: #475569;
  --theme-toggle-icon-color: #fbbf24; --theme-toggle-border: #475569;
  /* Page-level vars used by inline <style> blocks - overridden by footer late-load */
  --gray-50:#1e293b; --gray-100:#334155; --gray-200:#475569; --gray-300:#64748b;
  --gray-400:#94a3b8; --gray-600:#94a3b8; --gray-700:#cbd5e1;
  --gray-800:#e2e8f0; --gray-900:#f1f5f9; --white:#1e293b;
  --primary-blue:#60a5fa; --primary-dark:#93c5fd; --accent-teal:#2dd4bf;
  --accent-orange:#fb923c; --accent-purple:#a78bfa;
}
/* ---- 4. THEME TOGGLE BUTTON ---- */
.theme-toggle-btn {
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:10px;
  border:1px solid var(--theme-toggle-border);
  background:var(--theme-toggle-bg); color:var(--theme-toggle-icon-color);
  cursor:pointer; font-size:1rem; flex-shrink:0; outline:none;
  position:relative; overflow:hidden;
  transition:background 0.2s ease,color 0.2s ease,border-color 0.2s ease,transform 0.15s ease,box-shadow 0.2s ease;
}
.theme-toggle-btn:hover { background:var(--theme-toggle-bg-hover); transform:scale(1.08); box-shadow:0 2px 8px rgba(0,0,0,0.12); }
.theme-toggle-btn:active { transform:scale(0.95); }
.theme-toggle-btn:focus-visible { outline:3px solid #2563eb; outline-offset:2px; }
.theme-toggle-btn .theme-icon-sun,
.theme-toggle-btn .theme-icon-moon {
  position:absolute; top:50%; left:50%; font-size:1rem;
  transition:transform 0.3s ease,opacity 0.3s ease;
}
.theme-toggle-btn .theme-icon-sun  { transform:translate(-50%,-50%) rotate(0)     scale(1);   opacity:1; }
.theme-toggle-btn .theme-icon-moon { transform:translate(-50%,-50%) rotate(-90deg) scale(0.5); opacity:0; }
[data-theme="dark"] .theme-toggle-btn .theme-icon-sun  { transform:translate(-50%,-50%) rotate(90deg) scale(0.5); opacity:0; }
[data-theme="dark"] .theme-toggle-btn .theme-icon-moon { transform:translate(-50%,-50%) rotate(0)     scale(1);   opacity:1; }
.theme-toggle-btn .fas,.theme-toggle-btn .far,
.theme-toggle-btn .fa-solid,.theme-toggle-btn .fa-regular {
  font-family:"Font Awesome 6 Free",sans-serif!important; font-weight:900!important;
}
/* When auto badge is active, shift the visible icon upward so it doesn't overlap */
.theme-toggle-btn.has-auto .theme-icon-sun,
.theme-toggle-btn.has-auto .theme-icon-moon { top:40%; }

/* Auto-mode badge — centered at the bottom, never overlapping the icon */
.theme-auto-badge {
  position:absolute; bottom:4px; left:50%; transform:translateX(-50%);
  font-size:0.48rem; font-weight:800; letter-spacing:0.06em;
  line-height:1; text-transform:uppercase; white-space:nowrap;
  padding:1px 4px; border-radius:3px;
  background:rgba(37,99,235,0.13); color:#2563eb;
  border:1px solid rgba(37,99,235,0.20);
  pointer-events:none; user-select:none;
}
[data-theme="dark"] .theme-auto-badge {
  background:rgba(147,197,253,0.14); color:#93c5fd;
  border-color:rgba(147,197,253,0.25);
}
/* ---- 5. HEADER & NAV ---- */
[data-theme="dark"] body { background:var(--theme-body-bg)!important; color:var(--theme-body-color)!important; }
[data-theme="dark"] .modern-header { background:var(--theme-header-bg)!important; border-bottom-color:var(--theme-header-border)!important; box-shadow:0 1px 3px rgba(0,0,0,0.4)!important; }
[data-theme="dark"] .nav-link { color:var(--theme-nav-link-color)!important; }
[data-theme="dark"] .nav-link:hover { background:var(--theme-nav-link-hover-bg)!important; color:var(--theme-nav-link-hover-color)!important; }
[data-theme="dark"] .mobile-toggle span { background:var(--theme-text-secondary)!important; }
@media (max-width:992px) {
  [data-theme="dark"] .nav-menu { background:var(--theme-mobile-menu-bg)!important; }
  [data-theme="dark"] .nav-item { border-bottom-color:var(--theme-border)!important; }
  [data-theme="dark"] .has-dropdown.active .dropdown-content { background:var(--theme-bg-secondary)!important; border-color:var(--theme-border)!important; }
}
/* ---- 6. LANGUAGE SELECTOR ---- */
/* Quick-pill trigger */
[data-theme="dark"] .language-selector-trigger { background:var(--theme-lang-trigger-bg)!important; border-color:var(--theme-lang-trigger-border)!important; }
[data-theme="dark"] .language-selector-trigger:hover { background:var(--theme-lang-trigger-hover-bg)!important; border-color:#475569!important; box-shadow:0 4px 12px rgba(0,0,0,0.3)!important; }
[data-theme="dark"] .current-language-code { color:#93c5fd!important; }
/* Dropdown panel */
[data-theme="dark"] .language-selector-menu { background:var(--theme-dropdown-bg)!important; border-color:var(--theme-dropdown-border)!important; box-shadow:var(--theme-dropdown-shadow)!important; }
[data-theme="dark"] .language-selector-grid { background:var(--theme-lang-grid-bg)!important; }
[data-theme="dark"] .language-selector-grid::-webkit-scrollbar-track { background:var(--theme-bg-tertiary)!important; }
[data-theme="dark"] .language-selector-grid::-webkit-scrollbar-thumb { background:#475569!important; }
/* Option rows */
[data-theme="dark"] .language-selector-option { color:var(--theme-lang-option-color)!important; }
[data-theme="dark"] .language-selector-option:hover { background:var(--theme-lang-option-hover-bg)!important; }
[data-theme="dark"] .language-selector-option.active { background:var(--theme-lang-option-active-bg)!important; border-left-color:#60a5fa!important; }
[data-theme="dark"] .language-selector-option .lang-flag { background:var(--theme-lang-flag-bg)!important; }
[data-theme="dark"] .language-selector-option .lang-details strong { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .language-selector-option .lang-details small  { color:var(--theme-text-muted)!important; }
[data-theme="dark"] .language-selector-option.active .lang-details strong { color:#93c5fd!important; }
/* Footer strip in language panel */
[data-theme="dark"] .language-selector-footer { background:var(--theme-lang-footer-bg)!important; border-top-color:var(--theme-lang-footer-border)!important; }
[data-theme="dark"] .language-selector-footer small { color:var(--theme-text-muted)!important; }
/* More-menu language list */
[data-theme="dark"] .language-menu::-webkit-scrollbar-track { background:var(--theme-bg-tertiary)!important; }
[data-theme="dark"] .language-menu::-webkit-scrollbar-thumb { background:#475569!important; }
[data-theme="dark"] .language-menu .submenu-link { color:var(--theme-text-secondary)!important; }
[data-theme="dark"] .language-menu .submenu-link:hover { background:var(--theme-surface-hover)!important; color:#60a5fa!important; }
[data-theme="dark"] .language-menu .submenu-link.active { background:rgba(96,165,250,0.12)!important; border-left-color:#60a5fa!important; color:#93c5fd!important; }
/* Footer language picker */
[data-theme="dark"] .footer-language-btn { background:rgba(255,255,255,0.05)!important; border-color:rgba(255,255,255,0.1)!important; color:#e2e8f0!important; }
[data-theme="dark"] .footer-language-dropdown { background:rgba(15,23,42,0.98)!important; border-color:#334155!important; }
[data-theme="dark"] .footer-lang-option { color:#cbd5e1!important; border-bottom-color:rgba(255,255,255,0.05)!important; }
[data-theme="dark"] .footer-lang-option:hover { background:rgba(96,165,250,0.1)!important; }
[data-theme="dark"] .footer-lang-option.active { background:rgba(96,165,250,0.2)!important; color:#60a5fa!important; }
/* ---- 7. DROPDOWNS & MEGA MENU ---- */
[data-theme="dark"] .dropdown-content { background:var(--theme-dropdown-bg)!important; border-color:var(--theme-dropdown-border)!important; box-shadow:var(--theme-dropdown-shadow)!important; }
[data-theme="dark"] .dropdown-link { color:var(--theme-dropdown-link-color)!important; }
[data-theme="dark"] .dropdown-link:hover { background:var(--theme-dropdown-link-hover-bg)!important; }
[data-theme="dark"] .dropdown-link.compact:hover { background:var(--theme-surface-hover)!important; }
[data-theme="dark"] .link-text strong { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .link-text small  { color:var(--theme-text-muted)!important; }
[data-theme="dark"] .mega-menu-title,
[data-theme="dark"] .category-title { background:linear-gradient(135deg,#1e293b 0%,#334155 100%)!important; color:var(--theme-text-primary)!important; border-left-color:#60a5fa!important; }
[data-theme="dark"] .mega-menu-title i,
[data-theme="dark"] .category-title i { color:#60a5fa!important; }
[data-theme="dark"] .more-menu-column { background:var(--theme-dropdown-bg)!important; border-right-color:var(--theme-border)!important; }
[data-theme="dark"] .more-menu-title { color:var(--theme-text-primary)!important; border-bottom-color:var(--theme-border)!important; }
[data-theme="dark"] .coming-soon-item { background:linear-gradient(135deg,rgba(251,191,36,0.08) 0%,rgba(217,119,6,0.08) 100%)!important; border-color:rgba(251,191,36,0.2)!important; }
[data-theme="dark"] .coming-soon-icon { background:var(--theme-bg-tertiary)!important; }
[data-theme="dark"] .coming-soon-text strong { color:#fcd34d!important; }
[data-theme="dark"] .coming-soon-text small  { color:#fbbf24!important; }
[data-theme="dark"] .team-column { background:linear-gradient(135deg,#0f1f3a 0%,#0d1b2e 100%)!important; }
[data-theme="dark"] .more-menu-column .team-member { background:var(--theme-bg-tertiary)!important; border-color:#1e3a5f!important; }
[data-theme="dark"] .more-menu-column .team-info strong { color:#93c5fd!important; }
[data-theme="dark"] .more-menu-column .team-info small  { color:var(--theme-text-muted)!important; }
[data-theme="dark"] .view-all-team { background:var(--theme-card-bg)!important; color:#60a5fa!important; border-color:#60a5fa!important; }
[data-theme="dark"] .view-all-team:hover { background:#60a5fa!important; color:#0f172a!important; }
[data-theme="dark"] .submenu-trigger { background:var(--theme-bg-tertiary)!important; color:var(--theme-text-secondary)!important; }
[data-theme="dark"] .submenu-trigger:hover { background:var(--theme-surface-hover)!important; color:var(--theme-text-primary)!important; }
[data-theme="dark"] .submenu-content { background:var(--theme-dropdown-bg)!important; border-color:var(--theme-border)!important; box-shadow:var(--theme-dropdown-shadow)!important; }
[data-theme="dark"] .submenu-link { color:var(--theme-text-secondary)!important; }
[data-theme="dark"] .submenu-link:hover { background:var(--theme-surface-hover)!important; color:#60a5fa!important; }
/* ---- 8. HERO SECTION (home.v2.css sets a light-blue gradient) ---- */
[data-theme="dark"] .home-page .hero-section { background:linear-gradient(135deg,#0f172a 0%,#1e293b 50%,#0f2040 100%)!important; }
[data-theme="dark"] .home-page .hero-section::before { background:radial-gradient(circle,rgba(96,165,250,0.08) 0%,transparent 70%)!important; }
/* Hero badge - hardcoded background:white in home.v2.css */
[data-theme="dark"] .home-page .hero-badge { background:var(--theme-card-bg)!important; color:#60a5fa!important; box-shadow:0 4px 6px -1px rgba(0,0,0,0.4)!important; }
[data-theme="dark"] .home-page .hero-title { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .home-page .hero-title .highlight { color:#60a5fa!important; }
[data-theme="dark"] .home-page .hero-description { color:var(--theme-text-secondary)!important; }
[data-theme="dark"] .home-page .stat-number { color:#60a5fa!important; }
[data-theme="dark"] .home-page .stat-label  { color:var(--theme-text-muted)!important; }
[data-theme="dark"] .home-page .stat-item { background:rgba(30,41,59,0.8)!important; border-color:rgba(96,165,250,0.15)!important; }
[data-theme="dark"] .home-page .hero-stats { background:linear-gradient(135deg,rgba(15,23,42,0.8) 0%,rgba(30,41,59,0.8) 100%)!important; border-color:rgba(96,165,250,0.15)!important; }
[data-theme="dark"] .home-page .btn-hero-secondary { background:var(--theme-card-bg)!important; color:var(--theme-text-secondary)!important; border-color:var(--theme-border)!important; }
[data-theme="dark"] .home-page .btn-hero-secondary:hover { background:var(--theme-surface-hover)!important; border-color:#60a5fa!important; color:#60a5fa!important; }
[data-theme="dark"] .home-page .hero-card-float { background:rgba(30,41,59,0.95)!important; border-color:rgba(96,165,250,0.2)!important; box-shadow:0 20px 60px rgba(0,0,0,0.5),0 0 0 1px rgba(96,165,250,0.1)!important; }
[data-theme="dark"] .home-page .hero-card-main { background:linear-gradient(135deg,rgba(30,41,59,0.98) 0%,rgba(15,23,42,0.98) 100%)!important; }
[data-theme="dark"] .home-page .hero-card-title { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .home-page .hero-card-desc  { color:var(--theme-text-muted)!important; }
[data-theme="dark"] .home-page .hero-benefit-item { background:var(--theme-card-bg)!important; border-color:var(--theme-card-border)!important; }
[data-theme="dark"] .home-page .hero-benefit-title { color:var(--theme-text-primary)!important; }
/* ---- 9. HOME PAGE CARDS & SECTIONS ---- */
[data-theme="dark"] .home-page .tools-section        { background:var(--theme-bg-secondary)!important; }
[data-theme="dark"] .home-page .how-it-works-section { background:var(--theme-bg)!important; }
[data-theme="dark"] .home-page .section-badge { background:rgba(96,165,250,0.15)!important; color:#93c5fd!important; }
[data-theme="dark"] .home-page .section-title         { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .home-page .section-description   { color:var(--theme-text-secondary)!important; }
[data-theme="dark"] .home-page .how-it-works-section h3 { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .home-page .tool-card { background:var(--theme-card-bg)!important; border-color:var(--theme-card-border)!important; color:var(--theme-text-primary)!important; }
[data-theme="dark"] .home-page .tool-card:hover { border-color:#60a5fa!important; box-shadow:var(--theme-shadow-lg)!important; }
[data-theme="dark"] .home-page .tool-title       { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .home-page .tool-description { color:var(--theme-text-secondary)!important; }
[data-theme="dark"] .home-page .tool-cta         { color:#60a5fa!important; }
[data-theme="dark"] .home-page .feature-tag { background:var(--theme-bg-tertiary)!important; color:var(--theme-text-secondary)!important; }
[data-theme="dark"] .home-page .step-card { background:var(--theme-card-bg)!important; border-color:var(--theme-card-border)!important; }
[data-theme="dark"] .home-page .step-card p { color:var(--theme-text-secondary)!important; }
/* ---- 10. CONVERTER / TOOL PAGES ---- */
[data-theme="dark"] body:has(.main-section) { background:linear-gradient(135deg,#1e1b4b 0%,#312e81 100%)!important; }
[data-theme="dark"] .main-section { background:var(--theme-card-bg)!important; box-shadow:0 20px 60px rgba(0,0,0,0.4)!important; }
[data-theme="dark"] .info-card    { background:var(--theme-card-bg)!important; box-shadow:0 10px 30px rgba(0,0,0,0.3)!important; }
[data-theme="dark"] .converter-header h1 { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .converter-header p  { color:var(--theme-text-muted)!important; }
[data-theme="dark"] .upload-zone,
[data-theme="dark"] .upload-area,
[data-theme="dark"] .drop-zone,
[data-theme="dark"] .dropzone { background:linear-gradient(135deg,#1e293b 0%,#0f172a 100%)!important; border-color:var(--theme-border)!important; }
[data-theme="dark"] .upload-zone:hover,[data-theme="dark"] .upload-zone.drag-over,
[data-theme="dark"] .upload-area:hover,[data-theme="dark"] .drop-zone:hover { background:linear-gradient(135deg,#1e3a5f 0%,#1e293b 100%)!important; border-color:#60a5fa!important; }
[data-theme="dark"] .upload-zone h3 { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .upload-zone p  { color:var(--theme-text-muted)!important; }
[data-theme="dark"] .file-item { background:var(--theme-bg-tertiary)!important; border-color:var(--theme-border)!important; }
[data-theme="dark"] .file-item,[data-theme="dark"] .file-row,[data-theme="dark"] .files-list { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .tool-panel,[data-theme="dark"] .security-panel,
[data-theme="dark"] .options-panel,[data-theme="dark"] .settings-panel { background:var(--theme-card-bg)!important; border-color:var(--theme-card-border)!important; }
[data-theme="dark"] .signing-area,[data-theme="dark"] .signature-pad,
[data-theme="dark"] .canvas-container { background:var(--theme-card-bg)!important; border-color:var(--theme-border)!important; }
/* ---- 11. ABOUT PAGE ---- */
[data-theme="dark"] .stats-section { background:var(--theme-bg-secondary)!important; border-top-color:var(--theme-border)!important; border-bottom-color:var(--theme-border)!important; }
[data-theme="dark"] .stat-card { background:var(--theme-card-bg)!important; color:var(--theme-text-primary)!important; }
[data-theme="dark"] .stat-card:hover { background:#1e3a5f!important; }
[data-theme="dark"] .value-card { background:var(--theme-card-bg)!important; border-color:var(--theme-card-border)!important; }
[data-theme="dark"] .value-card h3    { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .value-card p     { color:var(--theme-text-secondary)!important; }
[data-theme="dark"] .story-content h2 { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .story-content p  { color:var(--theme-text-secondary)!important; }
[data-theme="dark"] .btn-glow { background:var(--theme-card-bg)!important; color:var(--theme-text-primary)!important; }
/* ---- 12. CONTACT PAGE ---- */
[data-theme="dark"] .contact-card { background:var(--theme-card-bg)!important; border-color:var(--theme-card-border)!important; }
[data-theme="dark"] .contact-card h3 { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .contact-card p  { color:var(--theme-text-secondary)!important; }
[data-theme="dark"] .form-section { background:var(--theme-card-bg)!important; border-color:var(--theme-card-border)!important; box-shadow:var(--theme-shadow-xl)!important; }
[data-theme="dark"] .form-header h2 { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .form-control,[data-theme="dark"] .form-select { background:var(--theme-input-bg)!important; border-color:var(--theme-input-border)!important; color:var(--theme-input-color)!important; }
[data-theme="dark"] .form-control:focus,[data-theme="dark"] .form-select:focus { background:var(--theme-bg-secondary)!important; border-color:#60a5fa!important; box-shadow:0 0 0 4px rgba(96,165,250,0.15)!important; }
[data-theme="dark"] .form-label { color:var(--theme-text-muted)!important; background:transparent!important; }
[data-theme="dark"] .form-control:focus ~ .form-label,
[data-theme="dark"] .form-control:not(:placeholder-shown) ~ .form-label,
[data-theme="dark"] .form-select:focus ~ .form-label,
[data-theme="dark"] .form-select:valid ~ .form-label { background:var(--theme-card-bg)!important; color:#60a5fa!important; }
[data-theme="dark"] .faq-section  { background:var(--theme-bg-secondary)!important; }
[data-theme="dark"] .faq-item     { background:var(--theme-card-bg)!important; border-color:var(--theme-card-border)!important; }
[data-theme="dark"] .faq-question { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .faq-answer   { color:var(--theme-text-muted)!important; }
/* ---- 13. FAQ PAGE ---- */
[data-theme="dark"] .search-input,
[data-theme="dark"] .search-box .search-input {
  background-color:var(--theme-input-bg)!important;
  background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='2'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.35-4.35'/></svg>")!important;
  background-repeat:no-repeat!important; background-position:1.25rem center!important;
  border-color:var(--theme-input-border)!important; color:var(--theme-input-color)!important; box-shadow:none!important;
}
[data-theme="dark"] .search-input:focus { border-color:#60a5fa!important; box-shadow:0 0 0 4px rgba(96,165,250,0.15)!important; }
[data-theme="dark"] .category-card { background:var(--theme-card-bg)!important; border-color:var(--theme-card-border)!important; }
[data-theme="dark"] .category-card h3   { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .category-card span { color:var(--theme-text-muted)!important; }
[data-theme="dark"] .faq-header   { background:var(--theme-card-bg)!important; }
[data-theme="dark"] .faq-header h4 { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .toggle-icon   { color:var(--theme-text-muted)!important; }
[data-theme="dark"] .faq-body      { background:var(--theme-bg-secondary)!important; }
[data-theme="dark"] .faq-content   { color:var(--theme-text-secondary)!important; border-top-color:var(--theme-border)!important; }
[data-theme="dark"] .faq-section-title { color:var(--theme-text-primary)!important; border-bottom-color:var(--theme-border)!important; }
[data-theme="dark"] .box-success { background:rgba(52,211,153,0.1)!important;  border-color:rgba(52,211,153,0.3)!important;  color:#6ee7b7!important; }
[data-theme="dark"] .box-warning { background:rgba(251,191,36,0.1)!important;  border-color:rgba(251,191,36,0.3)!important;  color:#fcd34d!important; }
[data-theme="dark"] .box-info    { background:rgba(96,165,250,0.1)!important;  border-color:rgba(96,165,250,0.3)!important;  color:#93c5fd!important; }
/* ---- 14. DOCUMENTATION PAGE ---- */
[data-theme="dark"] .docs-sidebar { background:var(--theme-card-bg)!important; border-right-color:var(--theme-border)!important; }
[data-theme="dark"] .sidebar-title       { color:var(--theme-text-muted)!important; }
[data-theme="dark"] .sidebar-link        { color:var(--theme-text-secondary)!important; }
[data-theme="dark"] .sidebar-link:hover  { background:var(--theme-surface-hover)!important; color:#60a5fa!important; }
[data-theme="dark"] .sidebar-link.active { background:rgba(96,165,250,0.1)!important; color:#60a5fa!important; border-left-color:#60a5fa!important; }
[data-theme="dark"] .docs-header h1,[data-theme="dark"] .docs-section h2,[data-theme="dark"] .docs-section h3 { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .docs-header p,[data-theme="dark"] .docs-section p,[data-theme="dark"] .docs-section li   { color:var(--theme-text-secondary)!important; }
[data-theme="dark"] .docs-section h2 { border-bottom-color:var(--theme-border)!important; }
[data-theme="dark"] .feature-card { background:var(--theme-card-bg)!important; border-color:var(--theme-card-border)!important; }
[data-theme="dark"] .feature-card h4 { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .feature-card p  { color:var(--theme-text-muted)!important; }
[data-theme="dark"] .info-box    { background:rgba(96,165,250,0.08)!important;  border-left-color:#60a5fa!important; }
[data-theme="dark"] .info-box p,[data-theme="dark"] .info-box-title { color:var(--theme-text-secondary)!important; }
[data-theme="dark"] .warning-box { background:rgba(251,191,36,0.08)!important; border-left-color:#fbbf24!important; }
[data-theme="dark"] .warning-box p,[data-theme="dark"] .warning-box-title { color:#fcd34d!important; }
/* ---- 15. LEGAL PAGES ---- */
[data-theme="dark"] .page-hero { background:linear-gradient(135deg,#0f1f3a 0%,#0d1b2e 50%,#0a1628 100%)!important; }
[data-theme="dark"] .page-hero .hero-badge { background:var(--theme-card-bg)!important; color:#60a5fa!important; box-shadow:0 4px 6px -1px rgba(0,0,0,0.4)!important; }
[data-theme="dark"] .page-title { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .page-subtitle,[data-theme="dark"] .last-updated { color:var(--theme-text-muted)!important; }
[data-theme="dark"] .policy-container { background:var(--theme-card-bg)!important; border-color:var(--theme-card-border)!important; }
[data-theme="dark"] .policy-section h2,[data-theme="dark"] .policy-section h3 { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .section-content,[data-theme="dark"] .section-content p,[data-theme="dark"] .section-content li { color:var(--theme-text-secondary)!important; }
[data-theme="dark"] .highlight-box { background:rgba(96,165,250,0.06)!important; border-left-color:#60a5fa!important; }
[data-theme="dark"] .highlight-box strong { color:#60a5fa!important; }
[data-theme="dark"] .info-box { background:var(--theme-bg-secondary)!important; border-color:var(--theme-border)!important; }
[data-theme="dark"] .info-box-title { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .policy-table { background:transparent!important; }
[data-theme="dark"] .policy-table th { background:var(--theme-bg-tertiary)!important; color:var(--theme-text-primary)!important; border-bottom-color:var(--theme-border)!important; }
[data-theme="dark"] .policy-table td { color:var(--theme-text-secondary)!important; border-bottom-color:var(--theme-border)!important; }
[data-theme="dark"] .policy-table tr:hover td { background:var(--theme-surface-hover)!important; }
[data-theme="dark"] .quick-nav { background:var(--theme-card-bg)!important; border-color:var(--theme-card-border)!important; }
[data-theme="dark"] .quick-nav-title       { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .quick-nav-list a      { color:var(--theme-text-muted)!important; }
[data-theme="dark"] .quick-nav-list a:hover { background:var(--theme-surface-hover)!important; color:#60a5fa!important; }
/* ---- 16. PRESS PAGE ---- */
[data-theme="dark"] .press-release-card { background:var(--theme-card-bg)!important; border-color:var(--theme-card-border)!important; }
[data-theme="dark"] .release-title       { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .release-description { color:var(--theme-text-muted)!important; }
[data-theme="dark"] .media-kit { background:rgba(96,165,250,0.06)!important; border-color:rgba(96,165,250,0.3)!important; }
[data-theme="dark"] .media-kit-title       { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .media-kit-description { color:var(--theme-text-muted)!important; }
[data-theme="dark"] .media-item            { background:var(--theme-card-bg)!important; }
[data-theme="dark"] .press-stats-card,[data-theme="dark"] .award-card,
[data-theme="dark"] .quote-card,[data-theme="dark"] .coverage-card { background:var(--theme-card-bg)!important; border-color:var(--theme-card-border)!important; color:var(--theme-text-primary)!important; }
/* ---- 17. TEAM PAGES ---- */
[data-theme="dark"] .team-card,[data-theme="dark"] .team-member-card,[data-theme="dark"] .profile-card { background:var(--theme-card-bg)!important; border-color:var(--theme-card-border)!important; }
[data-theme="dark"] .team-card h3,[data-theme="dark"] .team-member-card h3 { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .team-card p,[data-theme="dark"] .team-member-card p   { color:var(--theme-text-muted)!important; }
/* ---- 18. ERROR PAGE ---- */
[data-theme="dark"] body:has(.error-content-wrapper) { background:linear-gradient(135deg,#0d1b2e 0%,#1a233a 100%)!important; }
[data-theme="dark"] .error-content-wrapper { background:rgba(30,41,59,0.97)!important; box-shadow:0 20px 60px rgba(0,0,0,0.5)!important; }
[data-theme="dark"] .error-title       { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .error-description { color:var(--theme-text-muted)!important; }
[data-theme="dark"] .error-btn-secondary { background:var(--theme-card-bg)!important; color:#60a5fa!important; border-color:#60a5fa!important; }
[data-theme="dark"] .error-btn-secondary:hover { background:#60a5fa!important; color:#0f172a!important; }
[data-theme="dark"] .helpful-links a       { color:var(--theme-text-muted)!important; }
[data-theme="dark"] .helpful-links a:hover { color:#60a5fa!important; }
/* ---- 19. FOOTER ---- */
[data-theme="dark"] .enterprise-footer { background:var(--theme-footer-bg)!important; }
[data-theme="dark"] .enterprise-footer .footer-col-title,
[data-theme="dark"] .enterprise-footer .link-column h5 { color:#e2e8f0!important; }
[data-theme="dark"] .enterprise-footer .footer-link,
[data-theme="dark"] .enterprise-footer .link-column ul li a { color:var(--theme-footer-text)!important; }
[data-theme="dark"] .enterprise-footer .footer-link:hover,
[data-theme="dark"] .enterprise-footer .link-column ul li a:hover { color:#60a5fa!important; }
[data-theme="dark"] .enterprise-footer .footer-divider  { border-color:#1e293b!important; }
[data-theme="dark"] .enterprise-footer .footer-bottom   { border-top-color:#1e293b!important; color:var(--theme-footer-text)!important; }
[data-theme="dark"] .enterprise-footer .copyright,
[data-theme="dark"] .enterprise-footer .tagline { color:var(--theme-footer-text)!important; }
/* ---- 20. GENERIC OVERRIDES ---- */
[data-theme="dark"] body { background:var(--theme-body-bg)!important; color:var(--theme-body-color)!important; }
[data-theme="dark"] .page-background { background-color:var(--theme-body-bg)!important; background-image:radial-gradient(at 0% 0%,rgba(96,165,250,0.04) 0px,transparent 50%),radial-gradient(at 100% 100%,rgba(52,211,153,0.03) 0px,transparent 50%)!important; }
[data-theme="dark"] h1,[data-theme="dark"] h2,[data-theme="dark"] h3,
[data-theme="dark"] h4,[data-theme="dark"] h5,[data-theme="dark"] h6 { color:var(--theme-text-primary)!important; }
[data-theme="dark"] p,[data-theme="dark"] li { color:var(--theme-text-secondary)!important; }
[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-link):not(.brand-logo):not(.footer-link) { color:#60a5fa; }
[data-theme="dark"] input,[data-theme="dark"] textarea,[data-theme="dark"] select { background:var(--theme-input-bg)!important; border-color:var(--theme-input-border)!important; color:var(--theme-input-color)!important; }
[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder { color:var(--theme-text-placeholder)!important; }
[data-theme="dark"] input:focus,[data-theme="dark"] textarea:focus,[data-theme="dark"] select:focus { border-color:var(--theme-input-focus-border)!important; box-shadow:0 0 0 3px rgba(96,165,250,0.2)!important; }
[data-theme="dark"] table { color:var(--theme-text-primary); }
[data-theme="dark"] th { background:var(--theme-bg-tertiary)!important; color:var(--theme-text-primary)!important; border-color:var(--theme-border)!important; }
[data-theme="dark"] td { border-color:var(--theme-border)!important; color:var(--theme-text-secondary)!important; }
[data-theme="dark"] tr:hover td { background:var(--theme-surface-hover)!important; }
[data-theme="dark"] .bg-white,[data-theme="dark"] .bg-light  { background:var(--theme-surface)!important; }
[data-theme="dark"] .text-dark,[data-theme="dark"] .text-body { color:var(--theme-text-primary)!important; }
[data-theme="dark"] .text-muted { color:var(--theme-text-muted)!important; }
[data-theme="dark"] .border,[data-theme="dark"] .border-top,[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-start,[data-theme="dark"] .border-end { border-color:var(--theme-border)!important; }
[data-theme="dark"] hr { border-color:var(--theme-border)!important; opacity:1!important; }
[data-theme="dark"] .breadcrumb { background:var(--theme-bg-secondary)!important; }
[data-theme="dark"] .breadcrumb-item a { color:#60a5fa!important; }
[data-theme="dark"] .breadcrumb-item.active { color:var(--theme-text-muted)!important; }
[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before { color:var(--theme-text-muted)!important; }
[data-theme="dark"] .alert-info    { background:rgba(96,165,250,0.1)!important;  border-color:rgba(96,165,250,0.25)!important;  color:#93c5fd!important; }
[data-theme="dark"] .alert-warning { background:rgba(251,191,36,0.1)!important;  border-color:rgba(251,191,36,0.25)!important;  color:#fcd34d!important; }
[data-theme="dark"] .alert-success { background:rgba(52,211,153,0.1)!important;  border-color:rgba(52,211,153,0.25)!important;  color:#6ee7b7!important; }
[data-theme="dark"] .alert-danger  { background:rgba(248,113,113,0.1)!important; border-color:rgba(248,113,113,0.25)!important; color:#fca5a5!important; }
[data-theme="dark"] .tools-suggestion,
[data-theme="dark"] .tools-suggestion-section { background:var(--theme-bg-secondary)!important; }
[data-theme="dark"] .suggestion-card { background:var(--theme-card-bg)!important; border-color:var(--theme-card-border)!important; }
[data-theme="dark"] .suggestion-card h4,[data-theme="dark"] .suggestion-card p { color:var(--theme-text-secondary)!important; }
[data-theme="dark"] .coming-soon-wrapper,[data-theme="dark"] .coming-soon-container { background:var(--theme-body-bg)!important; color:var(--theme-text-primary)!important; }
[data-theme="dark"] .notification-card,[data-theme="dark"] .unsubscribe-card,
[data-theme="dark"] .unsubscribe-wrapper { background:var(--theme-card-bg)!important; border-color:var(--theme-card-border)!important; }
[data-theme="dark"] ::-webkit-scrollbar             { width:8px; height:8px; }
[data-theme="dark"] ::-webkit-scrollbar-track       { background:var(--theme-bg-secondary); }
[data-theme="dark"] ::-webkit-scrollbar-thumb       { background:var(--theme-bg-tertiary); border-radius:4px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background:#475569; }
