[data-theme="dark"] {
  --color-background: #000000;
  --color-surface: #1c1c1e;
  --color-surface-elevated: #2c2c2e;
  --color-on-accent: #ffffff;

  --color-glass: rgba(28, 28, 30, 0.72);
  --color-glass-strong: rgba(44, 44, 46, 0.85);
  --color-glass-panel: rgba(28, 28, 30, 0.78);
  --color-glass-tile: rgba(44, 44, 46, 0.92);
  --color-section-alt: rgba(255, 255, 255, 0.03);
  --color-footer-bg: rgba(22, 22, 24, 0.96);
  --color-upload-bg: rgba(28, 28, 30, 0.55);

  --color-text-primary: #f5f5f7;
  --color-text-secondary: #a1a1a6;
  --color-text-muted: #86868b;

  --color-accent: #ff4a50;
  --color-accent-hover: #ff7a7e;
  --color-accent-cta: #e31c23;
  --color-accent-soft: rgba(227, 28, 35, 0.18);
  --color-accent-muted: rgba(227, 28, 35, 0.26);
  --color-accent-glow: rgba(227, 28, 35, 0.24);
  --color-accent-ring-1: rgba(227, 28, 35, 0.22);
  --color-accent-ring-2: rgba(227, 28, 35, 0.16);
  --color-accent-ring-3: rgba(255, 255, 255, 0.12);
  --color-accent-border-hover: rgba(255, 74, 80, 0.4);

  --color-success-soft: rgba(52, 199, 89, 0.16);
  --color-error-soft: rgba(255, 59, 48, 0.16);
  --color-warning-soft: rgba(255, 149, 0, 0.16);

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.12);
  --color-border-glass: rgba(255, 255, 255, 0.1);
  --color-border-tile: rgba(255, 255, 255, 0.12);

  --color-overlay: rgba(0, 0, 0, 0.55);
  --color-overlay-heavy: rgba(0, 0, 0, 0.65);
  --color-hover-subtle: rgba(255, 255, 255, 0.06);
  --color-hover-medium: rgba(255, 255, 255, 0.08);
  --color-hover-strong: rgba(255, 255, 255, 0.1);
  --color-selection: rgba(66, 165, 245, 0.3);
  --color-scrollbar: rgba(255, 255, 255, 0.2);

  --color-tint-red: rgba(255, 59, 48, 0.16);
  --color-tint-blue: rgba(10, 132, 255, 0.16);
  --color-tint-green: rgba(52, 199, 89, 0.16);
  --color-tint-orange: rgba(255, 149, 0, 0.16);
  --color-tint-pink: rgba(255, 45, 85, 0.16);
  --color-tint-purple: rgba(175, 82, 222, 0.16);
  --color-tint-violet: rgba(139, 92, 246, 0.16);
  --color-tint-teal: rgba(20, 184, 166, 0.16);
  --color-tint-cyan: rgba(6, 182, 212, 0.16);
  --color-tint-rose: rgba(236, 72, 153, 0.16);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glass: 0 4px 24px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  --shadow-tile: 0 8px 24px rgba(66, 165, 245, 0.18), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-primary: 0 4px 14px rgba(227, 28, 35, 0.38);
  --shadow-primary-lg: 0 8px 28px rgba(227, 28, 35, 0.3);
  --shadow-primary-hover: 0 6px 20px rgba(255, 82, 82, 0.4), 0 12px 40px rgba(227, 28, 35, 0.28);
  --shadow-hero-glow: 0 12px 40px rgba(227, 28, 35, 0.22), 0 0 60px rgba(227, 28, 35, 0.16);
  --shadow-hero-glow-strong: 0 16px 56px rgba(227, 28, 35, 0.28), 0 0 80px rgba(227, 28, 35, 0.2);
  --shadow-nav: 0 2px 8px rgba(0, 0, 0, 0.45);
  --shadow-ring: 0 0 24px rgba(227, 28, 35, 0.16);

  --gradient-accent: linear-gradient(180deg, #ff6b70 0%, #ff4a50 55%, #e31c23 100%);
  --gradient-page:
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(227, 28, 35, 0.14) 0%, transparent 55%),
    linear-gradient(180deg, var(--color-background) 0%, var(--color-surface) 100%);
  --gradient-hero: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(227, 28, 35, 0.12) 0%, transparent 65%);

  --focus-ring: 0 0 0 4px rgba(227, 28, 35, 0.34);
}

[data-theme="dark"] .section--alt {
  background: var(--color-section-alt);
}

[data-theme="dark"] .footer,
[data-theme="dark"] .footer--extended {
  background: rgba(22, 22, 24, 0.96);
  border-top-color: rgba(255, 255, 255, 0.12);
  color: #c7c7cc;
}

[data-theme="dark"] .footer__heading {
  color: #f5f5f7;
}

[data-theme="dark"] .footer__links a {
  color: #c7c7cc;
}

[data-theme="dark"] .footer__links a:hover {
  color: #ff9447;
}

[data-theme="dark"] .footer .text-muted,
[data-theme="dark"] .footer--extended .text-muted,
[data-theme="dark"] .footer__desc {
  color: #aeaeb2;
}

[data-theme="dark"] .footer__bottom {
  border-top-color: rgba(255, 255, 255, 0.12);
  color: #aeaeb2;
}

[data-theme="dark"] .footer__lang {
  background: #2c2c2e;
  border-color: rgba(255, 255, 255, 0.18);
  color: #f5f5f7;
}

[data-theme="dark"] .footer__lang:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

[data-theme="dark"] .footer .navbar__brand-name {
  color: #f5f5f7;
}

[data-theme="dark"] .footer .navbar__brand-tag {
  color: #aeaeb2;
}

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

[data-theme="dark"] .home-upload .upload-zone__drop {
  background: var(--color-glass-strong);
  border-color: var(--color-accent-border-hover);
}

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