/* ============================================================
   DESIGN TOKENS & LIQUID SYSTEM
   ============================================================ */
:root {
  /* Premium Dark Theme Palette */
  --bg-base: #08080b;
  --bg-surface: rgba(13, 13, 17, 0.6);
  --bg-card: rgba(255, 255, 255, 0.025);

  /* Specular Highlight Glass Borders */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-active: rgba(255, 255, 255, 0.16);

  /* Primary Apple Brand/Glow Accents */
  --accent-cyan: #FFB347;
  /* Warm Gold */
  --accent-blue: #FF8C00;
  /* Dark Orange */
  --accent-indigo: #FF6B1A;
  /* Primary Orange */
  --accent-orange: #FF6B1A;
  --accent-gold: #FFD60A;

  /* Typography & Apple Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;

  /* Radii (iOS 18 Squircle style) */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.25, 1, 0.35, 1.05);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-medium: 0.4s var(--ease-smooth);
}

/* ============================================================
   RESET & BASE SETUP
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  background: var(--bg-base);
  color: #F5F5F7;
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
}

::selection {
  background: rgba(94, 92, 230, 0.3);
  color: #FFFFFF;
}

/* Hide scrollbars for an app-like feel but allow scroll */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* ============================================================
   BACKGROUND LIQUID MESH
   ============================================================ */
.liquid-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  background: #08080b;
  pointer-events: none;
}

.liquid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  mix-blend-mode: screen;
  animation: float-blob infinite alternate ease-in-out;
}

.blob-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.15) 0%, transparent 80%);
  top: -10%;
  left: -5%;
  animation-duration: 25s;
}

.blob-2 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.12) 0%, transparent 80%);
  bottom: -15%;
  right: -10%;
  animation-duration: 32s;
  animation-delay: -8s;
}

.blob-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 214, 10, 0.08) 0%, transparent 80%);
  top: 35%;
  left: 30%;
  animation-duration: 22s;
  animation-delay: -12s;
}

.blob-4 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.06) 0%, transparent 80%);
  bottom: 20%;
  left: -10%;
  animation-duration: 18s;
  animation-delay: -4s;
}

@keyframes float-blob {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(40px, 30px) scale(1.05) rotate(30deg);
  }

  100% {
    transform: translate(-20px, -45px) scale(0.95) rotate(-30deg);
  }
}

/* ============================================================
   LIQUID GLASS UTILITIES
   ============================================================ */
.section {
  position: relative;
  padding: 140px 0;
  z-index: 1;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Specular reflection liquid glass panel */
.glass-panel {
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.25),
    0 16px 40px 0 rgba(0, 0, 0, 0.4);
  transition: border-color var(--transition-medium), background var(--transition-medium), box-shadow var(--transition-medium), transform var(--transition-medium);
}

.glass-panel-hover:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glass-active);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
    inset 0 -1.5px 0 0 rgba(0, 0, 0, 0.2),
    0 20px 48px 0 rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
}

/* Text Gradients */
.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E2E9 40%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-orange {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-orange) 50%, #FFB347 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-cyan) 50%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animations & Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* Interactive spotlight glow tracking cursor */
#spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 107, 26, 0.05) 0%, transparent 80%);
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 1001;
  pointer-events: none;
}

#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 990;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: all 0.4s var(--ease-spring);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#back-to-top:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glass-active);
  transform: translateY(-4px) scale(1.05);
}

/* ============================================================
   NAVBAR (Apple Pill Style)
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 1000;
  width: auto;
  max-width: 100%;
  transition: transform 0.4s var(--ease-spring);
}

#navbar.scrolled {
  transform: translateX(-50%) translateY(16px);
}

#navbar.unloading {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px) !important;
  transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth) !important;
  pointer-events: none;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  background: rgba(10, 10, 12, 0.65);
  border: 1px solid var(--border-glass);
  border-top: none;
  border-radius: 0 0 24px 24px;
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  box-shadow:
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.4s var(--ease-spring);
  position: relative;
}

#navbar.scrolled .nav-pill {
  background: rgba(6, 6, 8, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 8px 20px;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.55);
}

/* Liquid spring blob tracker */
.nav-blob {
  position: absolute;
  top: 50%;
  left: 0;
  height: calc(100% - 16px);
  width: 0;
  transform: translateY(-50%);
  border-radius: 100px;
  pointer-events: none;
  opacity: 0;
  will-change: left, width;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 2px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  transition: opacity 0.25s ease;
  z-index: 0;
  overflow: hidden;
}

.nav-blob-inner {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  border-radius: 100px;
  position: relative;
  z-index: 1;
}

.nav-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.nav-logo-text {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFF;
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  position: relative;
  z-index: 1;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: #8E8E93;
  padding: 8px 14px;
  border-radius: 100px;
  display: block;
}

.nav-links a:hover,
.nav-links a.active {
  color: #FFF;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s var(--ease-spring);
  position: relative;
  z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-cta:hover {
  background: #FFF;
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.nav-mobile-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #FFF;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

#nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(6, 6, 8, 0.95);
  backdrop-filter: blur(36px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

#nav-mobile-menu.open {
  display: flex;
}

#nav-mobile-menu a {
  font-size: 1.8rem;
  font-weight: 700;
  color: #8E8E93;
}

#nav-mobile-menu a:hover,
#nav-mobile-menu a.active {
  color: #FFF;
}

#nav-mobile-close {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   SETTINGS BUTTON IN NAVBAR
   ============================================================ */
.nav-settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8E8E93;
  position: relative;
  z-index: 1;
  transition: all 0.3s var(--ease-spring);
  flex-shrink: 0;
}

.nav-settings-btn:hover,
.nav-settings-btn.active {
  background: rgba(255, 107, 26, 0.15);
  border-color: rgba(255, 107, 26, 0.4);
  color: var(--accent-orange);
  transform: rotate(30deg) scale(1.1);
}

/* ============================================================
   SETTINGS DROPDOWN (macOS/iOS style popover)
   ============================================================ */
#settings-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 300px;
  padding: 22px;
  background: rgba(13, 13, 17, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(28px) saturate(130%);
  -webkit-backdrop-filter: blur(28px) saturate(130%);
  z-index: 1000;

  /* Animations */
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95) translateY(-10px);
  transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-spring);
  transform-origin: top right;
}

#settings-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

/* Position adjustment for RTL Arabic */
body.lang-ar #settings-dropdown {
  right: auto;
  left: 0;
  transform-origin: top left;
}

#settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: transparent;
  display: none;
  pointer-events: none;
}

#settings-overlay.open {
  display: block;
  pointer-events: auto;
}

/* Settings Sections */
.settings-section {
  margin-bottom: 18px;
}

.settings-section:last-child {
  margin-bottom: 0;
}

.settings-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #8E8E93;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* Segmented Controls (iOS Slider style) */
.settings-segmented {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  padding: 2px;
  overflow: hidden;
}

.segmented-blob {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc(50% - 2px);
  /* Default for 2 buttons */
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.35, 1.05);
  /* iOS-like spring animation */
  z-index: 0;
  pointer-events: none;
}

.segmented-btn {
  flex: 1;
  position: relative;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8E8E93;
  padding: 8px 12px;
  border-radius: 100px;
  text-align: center;
  z-index: 1;
  transition: color var(--transition-fast);
}

.segmented-btn.active {
  color: #FFF;
}

.segmented-flag {
  margin-right: 4px;
}

/* RTL adjustment for segmented btn spacing */
body.lang-ar .segmented-flag {
  margin-right: 0;
  margin-left: 4px;
}

.settings-option-flag {
  font-size: 1.5rem;
  line-height: 1;
}

/* ============================================================
   LIGHT THEME OVERRIDES  (comprehensive)
   ============================================================ */
body.theme-light {
  --bg-base: #D0D0D8;
  /* Solid silver-grey, unified and clean */
  --bg-surface: rgba(229, 229, 234, 0.4);
  /* Lower opacity for perfect backdrop blur */
  --bg-card: rgba(225, 225, 230, 0.3);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glass-active: rgba(0, 0, 0, 0.15);
  color: #2C2C2E;
  /* Soft charcoal instead of pure black for readability */
}

/* ── Background & blobs ── */
body.theme-light .liquid-bg {
  background: #b0b0b691;
}

body.theme-light .liquid-blob {
  opacity: 0.02;
}

/* Very faint blobs to keep look clean */

body.theme-light #spotlight {
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 107, 26, 0.06) 0%, transparent 80%);
}

/* ── Scroll progress ── */
body.theme-light #scroll-progress {
  opacity: 0.7;
}

/* ── Back to top ── */
body.theme-light #back-to-top {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1C1C1E;
}

body.theme-light #back-to-top:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* ── Navbar ── */
body.theme-light .nav-pill {
  background: rgba(229, 229, 234, 0.5);
  border-color: rgba(0, 0, 0, 0.09);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.08);
}

body.theme-light #navbar.scrolled .nav-pill {
  background: rgba(225, 225, 230, 0.95);
  border-color: rgba(0, 0, 0, 0.12);
}

body.theme-light .nav-logo-text {
  color: #2C2C2E;
}

body.theme-light .nav-divider {
  background: rgba(0, 0, 0, 0.12);
}

body.theme-light .nav-links a {
  color: #55555A;
}

body.theme-light .nav-links a:hover,
body.theme-light .nav-links a.active {
  color: #2C2C2E !important;
}

body.theme-light .nav-blob {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.425), 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.theme-light .nav-cta {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.14);
  color: #2C2C2E;
}

body.theme-light .nav-cta:hover {
  background: #2C2C2E;
  color: #FFF;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

body.theme-light .nav-settings-btn {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  color: #55555A;
}

body.theme-light .nav-settings-btn:hover,
body.theme-light .nav-settings-btn.active {
  background: rgba(255, 107, 26, 0.14);
  border-color: rgba(255, 107, 26, 0.35);
  color: var(--accent-orange);
}

body.theme-light .nav-mobile-btn span {
  background: #2C2C2E;
}

/* ── Mobile menu ── */
body.theme-light #nav-mobile-menu {
  background: rgba(245, 245, 250, 0.97);
}

body.theme-light #nav-mobile-menu a {
  color: #55555A;
}

body.theme-light #nav-mobile-menu a:hover,
body.theme-light #nav-mobile-menu a.active {
  color: #2C2C2E;
}

/* ── Hero ── */
body.theme-light .hero-video-overlay {
  background:
    radial-gradient(circle at center, rgba(184, 184, 192, 0.082) 0%, rgba(184, 184, 192, 0.425) 100%),
    linear-gradient(to bottom, transparent 40%, #d0d0d8be 100%);
}

body.theme-light .hero-title {
  color: #2C2C2E;
}

body.theme-light .hero-subtitle {
  color: #2C2C2E;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

body.theme-light .hero-glow-ring {
  background: radial-gradient(ellipse at center, rgba(255, 107, 26, 0.08) 0%, transparent 70%);
}

/* ── Glass panels ── */
body.theme-light .glass-panel {
  background: rgba(229, 229, 234, 0.45);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03),
    0 8px 24px rgba(0, 0, 0, 0.05);
}

body.theme-light .glass-panel-hover:hover {
  background: rgba(229, 229, 234, 0.55);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 16px 32px rgba(0, 0, 0, 0.08);
}

/* ── Hero console box ── */
body.theme-light .hero-glass-console {
  background: rgba(229, 229, 234, 0.45);
  border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .console-server-status {
  color: #3A3A3C;
}

body.theme-light .console-players-online {
  color: #1C1C1E;
}

body.theme-light .console-players-online span {
  color: #48484A;
}

body.theme-light .btn-glass-primary {
  background: linear-gradient(135deg, #FF6B1A, #FFB347);
  color: #FFF;
  border-color: transparent;
}

body.theme-light .btn-glass-secondary {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1C1C1E;
}

body.theme-light .btn-glass-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* ── Section headers ── */
body.theme-light .section-eyebrow {
  color: var(--accent-orange);
}

body.theme-light .section-title {
  color: #1C1C1E;
}

body.theme-light .section-subtitle {
  color: #48484A;
}

/* ── Bento cards ── */
body.theme-light .bento-card {
  background: rgba(229, 229, 234, 0.45);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

body.theme-light .bento-card:hover {
  background: rgba(229, 229, 234, 0.55);
  border-color: rgba(255, 107, 26, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 16px 32px rgba(0, 0, 0, 0.06),
    0 0 20px rgba(255, 107, 26, 0.08);
}

body.theme-light .bento-label {
  color: #636366;
}

body.theme-light .bento-title {
  color: #1C1C1E;
}

body.theme-light .bento-desc {
  color: #48484A;
}

body.theme-light .bento-badge {
  background: rgba(255, 107, 26, 0.1);
  border-color: rgba(255, 107, 26, 0.25);
  color: var(--accent-orange);
}

body.theme-light .bento-icon-wrapper {
  background: rgba(255, 107, 26, 0.1);
  border-color: rgba(255, 107, 26, 0.2);
  color: var(--accent-orange);
}

/* ── Showroom ── */
body.theme-light .showroom-container {
  background: rgba(229, 229, 234, 0.45);
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .showroom-tab-btn {
  color: #48484A;
  border-color: rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.02);
}

body.theme-light .showroom-tab-btn span {
  color: #48484A;
  background: rgba(0, 0, 0, 0.05);
}

body.theme-light .showroom-tab-btn:hover {
  color: #1C1C1E;
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

body.theme-light .showroom-tab-btn:hover span {
  color: #1C1C1E;
  background: rgba(0, 0, 0, 0.08);
}

body.theme-light .showroom-tab-btn.active {
  background: rgba(255, 107, 26, 0.1);
  border-color: rgba(255, 107, 26, 0.3);
  color: #CC4E00;
}

body.theme-light .showroom-tab-btn.active span {
  color: #FFF;
  background: #CC4E00;
}

body.theme-light .showroom-spec-item {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .showroom-car-img {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

body.theme-light .showroom-car-img:hover {
  border-color: rgba(255, 107, 26, 0.25);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

body.theme-light .showroom-car-name {
  color: #2C2C2E;
}

body.theme-light .showroom-car-class {
  color: #636366;
}

body.theme-light .showroom-spec-label {
  color: #48484A;
}

body.theme-light .showroom-spec-label span {
  color: #1C1C1E;
}

body.theme-light .showroom-progress-bg {
  background: rgba(0, 0, 0, 0.08);
}

body.theme-light .showroom-buy-container {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .showroom-tabs::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15) !important;
}

body.theme-light .showroom-tabs::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3) !important;
}

/* ── Stats ── */
body.theme-light .stat-item {
  background: rgba(229, 229, 234, 0.45);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 24px rgba(0, 0, 0, 0.04);
}

body.theme-light .stat-item:hover {
  border-color: rgba(255, 107, 26, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 16px 32px rgba(0, 0, 0, 0.06),
    0 0 20px rgba(255, 107, 26, 0.08);
}

body.theme-light .stat-number,
body.theme-light .stat-number .count {
  color: #2C2C2E;
  -webkit-text-fill-color: #2C2C2E;
}

body.theme-light .stat-label {
  color: #55555A;
}

body.theme-light .stat-unit {
  color: var(--accent-orange);
}

body.theme-light .stats-grid::before {
  background: rgba(0, 0, 0, 0.06);
}

/* ── Community / Discord card ── */
body.theme-light .discord-card {
  background: rgba(229, 229, 234, 0.4);
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .discord-badge {
  background: rgba(88, 101, 242, 0.1);
  border-color: rgba(88, 101, 242, 0.2);
  color: #5865F2;
}

body.theme-light .discord-title {
  color: #1C1C1E;
}

body.theme-light .discord-desc {
  color: #48484A;
}

body.theme-light .discord-stat-num {
  color: #1C1C1E;
}

body.theme-light .discord-stat-label {
  color: #636366;
}

/* ── FAQ ── */
body.theme-light .faq-item {
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .faq-question {
  color: #1C1C1E;
}

body.theme-light .faq-question:hover {
  color: var(--accent-orange);
}

body.theme-light .faq-answer-inner {
  color: #48484A;
}

body.theme-light .faq-chevron {
  background: rgba(0, 0, 0, 0.04);
  color: #636366;
}

body.theme-light .faq-item.open .faq-chevron {
  background: rgba(0, 0, 0, 0.08);
  color: #1C1C1E;
}

/* ── How to join steps ── */
body.theme-light .step-card:hover {
  background: rgba(229, 229, 234, 0.55);
  border-color: rgba(255, 107, 26, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 16px 32px rgba(0, 0, 0, 0.06),
    0 0 20px rgba(255, 107, 26, 0.08);
}

body.theme-light .step-title {
  color: #2C2C2E;
}

body.theme-light .step-desc {
  color: #48484A;
}

body.theme-light .step-number {
  box-shadow: 0 0 16px rgba(255, 107, 26, 0.08);
}

/* ── Text Gradients ── */
body.theme-light .text-gradient {
  background: linear-gradient(135deg, #1C1C1E 0%, #48484A 40%, rgba(28, 28, 30, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.theme-light .text-gradient-orange {
  background: linear-gradient(135deg, #CC4E00 0%, var(--accent-orange) 50%, #FFB347 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.theme-light .text-gradient-blue {
  background: linear-gradient(135deg, #005A9E 0%, var(--accent-cyan) 50%, #00F2FE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Footer ── */
body.theme-light .footer-modern {
  background: transparent;
  border-top-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .footer-logo-text {
  color: #2C2C2E;
}

body.theme-light .footer-brand-tagline {
  color: #55555A;
}

body.theme-light .footer-nav-column a {
  color: #55555A;
}

body.theme-light .footer-nav-column a:hover {
  color: #2C2C2E;
}

body.theme-light .footer-social-link {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #55555A;
}

body.theme-light .footer-social-link:hover {
  color: #2C2C2E;
  background: rgba(0, 0, 0, 0.08);
}

body.theme-light .footer-ip-badge-modern {
  background: rgba(229, 229, 234, 0.5);
  border-color: rgba(0, 0, 0, 0.08);
  color: #2C2C2E;
}

body.theme-light .footer-legal-disclaimer {
  color: #8E8E93;
}

body.theme-light .footer-legal-links a {
  color: #55555A;
}

body.theme-light .footer-legal-links a:hover {
  color: #2C2C2E;
}

body.theme-light .footer-divider {
  background: rgba(0, 0, 0, 0.07);
}

/* ── Shape divider ── */
body.theme-light .divider-stroke {
  stroke: rgba(0, 0, 0, 0.12);
}

/* ── Settings sidebar (light) ── */
/* ── Settings dropdown (light overrides) ── */
body.theme-light #settings-dropdown {
  background: rgba(229, 229, 234, 0.85);
  /* Frosty silver-glass */
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

body.theme-light .settings-section-label {
  color: #55555A;
}

body.theme-light .settings-segmented {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .segmented-blob {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.theme-light .segmented-btn {
  color: #55555A;
}

body.theme-light .segmented-btn.active {
  color: #2C2C2E;
}

body.theme-light #settings-overlay {
  background: transparent;
}

/* ============================================================
   TEXT ANIMATION FOR LANGUAGE SWITCHING
   ============================================================ */
[data-ar][data-en] {
  transition: opacity 0.3s var(--ease-smooth), filter 0.3s var(--ease-smooth), transform 0.3s var(--ease-spring);
}

.lang-animating [data-ar][data-en] {
  opacity: 0 !important;
  filter: blur(6px) !important;
  transform: translateY(4px) !important;
}

.lang-animating #settings-sidebar {
  opacity: 0 !important;
  transform: scale(0.95) !important;
}

/* ============================================================
   RTL (Arabic) DIRECTION
   ============================================================ */
body.lang-ar {
  direction: rtl;
}

body.lang-ar #settings-sidebar {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(100%);
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.05),
    -4px 0 60px rgba(0, 0, 0, 0.5);
}

body.lang-ar #settings-sidebar.open {
  transform: translateX(0);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 24px 100px;
  position: relative;
  overflow: hidden;
}

/* Background video wrap & overlay */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(6, 6, 8, 0.45) 0%, rgba(6, 6, 8, 0.85) 100%),
    linear-gradient(to bottom, transparent 60%, rgba(6, 6, 8, 0.98) 100%);
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
}

.hero-glow-ring {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow-ring::after {
  content: '';
  position: absolute;
  inset: -30px;
  border: 1px dashed rgba(255, 255, 255, 0.015);
  border-radius: 50%;
  animation: rotate-dashed 80s linear infinite;
}

@keyframes rotate-dashed {
  to {
    transform: rotate(360deg);
  }
}

.hero-content {
  text-align: center;
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.hero-ticker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  margin-bottom: 24px;
}

.ticker-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #000;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

.ticker-text {
  font-size: 0.82rem;
  color: #8E8E93;
  font-weight: 500;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFF;
  opacity: 0.9;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: #30D158;
  border-radius: 50%;
  box-shadow: 0 0 10px #30D158;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 400;
  color: #8E8E93;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 40px;
}

/* Floating Glass Console Box (Hero Card) */
.hero-glass-console {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px;
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
}

.console-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.console-left {
  text-align: left;
}

.console-server-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #8E8E93;
  margin-bottom: 6px;
}

.console-server-status .live-dot {
  width: 8px;
  height: 8px;
  background: #30D158;
  border-radius: 50%;
  box-shadow: 0 0 8px #30D158;
}

.console-players-online {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFF;
}

.console-players-online span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #8E8E93;
}

.console-right {
  display: flex;
  gap: 12px;
}

/* Glass Buttons */
.btn-glass-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFF;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 100px;
  transition: all 0.3s var(--ease-spring);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-glass-primary:hover {
  background: #FFF;
  color: #000;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 32px rgba(255, 255, 255, 0.2);
}

.btn-glass-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: #8E8E93;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 100px;
  transition: all 0.3s var(--ease-spring);
}

.btn-glass-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glass-active);
  color: #FFF;
  transform: translateY(-2px);
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #8E8E93;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-hint-mouse {
  width: 22px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.scroll-hint-mouse::before {
  content: '';
  width: 3px;
  height: 6px;
  background: #FFF;
  border-radius: 2px;
  animation: wheel 1.6s infinite;
}

@keyframes wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-indigo);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #8E8E93;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   BENTO GRID (iOS Widget Style)
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

/* Clean 2x2 equal features grid */
.features-grid-clean {
  grid-template-columns: repeat(2, 1fr) !important;
}

.features-grid-clean .bento-card {
  height: auto;
  min-height: 220px;
}

.bento-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.bento-card:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 107, 26, 0.45);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(255, 107, 26, 0.15),
    0 24px 56px 0 rgba(0, 0, 0, 0.5),
    0 0 30px rgba(255, 107, 26, 0.06);
  transform: translateY(-2px);
}

.card-span-12 {
  grid-column: span 12;
}

.card-span-8 {
  grid-column: span 8;
}

.card-span-7 {
  grid-column: span 7;
}

.card-span-5 {
  grid-column: span 5;
}

.card-span-4 {
  grid-column: span 4;
}

.bento-card-header {
  margin-bottom: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.bento-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  transition: all 0.3s;
}

.bento-card:hover .bento-icon-wrapper {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.bento-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(48, 209, 88, 0.15);
  color: #30D158;
  border: 1px solid rgba(48, 209, 88, 0.25);
}

.bento-card-body {
  margin-top: 36px;
  width: 100%;
}

.bento-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8E8E93;
  margin-bottom: 8px;
}

.bento-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFF;
  margin-bottom: 10px;
}

.bento-desc {
  font-size: 0.92rem;
  color: #8E8E93;
  line-height: 1.55;
}

/* Custom Interactive Widgets inside Bento Cards */
.bento-widget-visual {
  width: 100%;
  height: 140px;
  margin-top: 24px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

/* Dev Team (Terminal Mockup) */
.widget-terminal {
  font-family: 'Courier New', Courier, monospace;
  padding: 14px;
  font-size: 0.75rem;
  color: #30D158;
  line-height: 1.4;
  text-align: left;
}

.widget-terminal-head {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.widget-terminal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.widget-terminal-dot.red {
  background: #FF453A;
}

.widget-terminal-dot.yellow {
  background: #FFD60A;
}

.widget-terminal-dot.green {
  background: #30D158;
}

.widget-terminal-text {
  color: #8E8E93;
}

.widget-terminal-text span {
  color: #FFF;
}

/* Economy (Line Chart Mockup) */
.widget-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px 20px 10px;
  height: 100%;
}

.widget-chart-bar {
  width: 14%;
  background: linear-gradient(to top, rgba(94, 92, 230, 0.1), rgba(94, 92, 230, 0.6));
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(94, 92, 230, 0.3);
  transition: height 0.6s var(--ease-spring);
  height: 40%;
  position: relative;
}

.widget-chart-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-indigo);
  box-shadow: 0 0 6px var(--accent-indigo);
}

.widget-chart:hover .widget-chart-bar:nth-child(1) {
  height: 60%;
}

.widget-chart:hover .widget-chart-bar:nth-child(2) {
  height: 45%;
}

.widget-chart:hover .widget-chart-bar:nth-child(3) {
  height: 80%;
}

.widget-chart:hover .widget-chart-bar:nth-child(4) {
  height: 70%;
}

.widget-chart:hover .widget-chart-bar:nth-child(5) {
  height: 95%;
}

/* Map Widget Visual */
.widget-map {
  background: radial-gradient(circle at center, rgba(0, 102, 204, 0.15), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget-map-circle {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  position: absolute;
  animation: pulse-circle 4s linear infinite;
}

.widget-map-circle.c1 {
  width: 60px;
  height: 60px;
}

.widget-map-circle.c2 {
  width: 110px;
  height: 110px;
  animation-delay: 1.3s;
}

.widget-map-circle.c3 {
  width: 160px;
  height: 160px;
  animation-delay: 2.6s;
}

.widget-map-node {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  z-index: 2;
}

@keyframes pulse-circle {
  0% {
    transform: scale(0.8);
    opacity: 0.1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* ============================================================
   INTERACTIVE CAR SHOWROOM
   ============================================================ */
#showroom {
  background: transparent;
}

.showroom-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-top: 56px;
  align-items: start;
}

/* Left selectors */
.showroom-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 580px;
  overflow-y: auto;
  padding-inline-end: 6px;
}

.showroom-tabs::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.showroom-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.showroom-tabs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.showroom-tabs::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Tab Selectors */
.showroom-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  color: #8E8E93;
  font-weight: 600;
  text-align: start;
  width: 100%;
  transition: all var(--transition-medium);
}

.showroom-tab-btn span {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8E8E93;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.showroom-tab-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #FFF;
}

.showroom-tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 107, 26, 0.4);
  color: #FFF;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 16px rgba(255, 107, 26, 0.12);
}

.showroom-tab-btn.active span {
  color: #111;
  background: var(--accent-orange);
}

/* Right display panel */
.showroom-display {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  min-height: 480px;
}

.showroom-car-name,
.showroom-car-class,
.showroom-description-box,
.showroom-buy-container {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.showroom-display.active-specs .showroom-car-name {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.showroom-display.active-specs .showroom-car-class {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.showroom-display.active-specs .showroom-description-box {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.showroom-display.active-specs .showroom-buy-container {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.showroom-car-view {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.showroom-car-glow {
  position: absolute;
  width: 80%;
  height: 40%;
  background: radial-gradient(ellipse, var(--car-glow-color, rgba(94, 92, 230, 0.25)) 0%, transparent 70%);
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(40px);
  pointer-events: none;
  transition: background 0.8s;
  z-index: 0;
}

.showroom-car-img {
  width: 100%;
  max-width: 580px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  /* Keep it perfectly square to display FiveM road scenes neatly */
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  opacity: 0;
  transform: translateX(40px) scale(0.95);
  transition: transform 0.6s var(--ease-spring), opacity 0.6s ease, box-shadow 0.6s ease, border-color 0.4s ease;
}

.showroom-car-img.active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.showroom-car-img:hover {
  transform: scale(1.025) rotateY(-6deg) rotateX(3deg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 107, 26, 0.35);
}

/* Specs Panel */
.showroom-specs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.showroom-spec-header {
  margin-bottom: 10px;
}

.showroom-car-name {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFF;
  line-height: 1.1;
}

.showroom-car-class {
  display: none !important; /* Hidden visually but kept in DOM */
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-indigo);
  margin-top: 4px;
}

.showroom-tab-btn span {
  display: none !important; /* Hidden visually but kept in DOM */
}

.showroom-description-box {
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  min-height: 180px;
  max-height: 240px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #D4D4D8;
  text-align: start;
  direction: inherit;
}

.showroom-description-box::-webkit-scrollbar {
  width: 5px;
}
.showroom-description-box::-webkit-scrollbar-track {
  background: transparent;
}
.showroom-description-box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
.showroom-description-box::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

body.theme-light .showroom-description-box {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  color: #48484A;
}

body.theme-light .showroom-description-box::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

/* ============================================================
   STATS & HOW TO JOIN
   ============================================================ */
#stats {
  padding: 80px 0;
  background: transparent;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  border-color: rgba(255, 107, 26, 0.4);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(255, 107, 26, 0.12), 0 16px 40px rgba(0, 0, 0, 0.4);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #FFF 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: #8E8E93;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Steps section */
.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.step-card {
  padding: 40px 32px;
  text-align: left;
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 107, 26, 0.45);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(255, 107, 26, 0.15),
    0 24px 56px 0 rgba(0, 0, 0, 0.5),
    0 0 30px rgba(255, 107, 26, 0.06);
  transform: translateY(-3px);
}

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

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 107, 26, 0.1);
  border: 1px solid rgba(255, 107, 26, 0.35);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(255, 107, 26, 0.15);
  transition: all 0.3s ease;
}

.step-card:hover .step-number {
  background: var(--accent-orange);
  color: #FFF;
  border-color: var(--accent-orange);
  box-shadow: 0 0 24px rgba(255, 107, 26, 0.5);
  transform: scale(1.08);
}

.step-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.95rem;
  color: #8E8E93;
  line-height: 1.6;
}

.step-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 4px 10px;
  border-radius: 100px;
  margin-top: 24px;
}

/* ============================================================
   COMMUNITY & DISCORD CARD
   ============================================================ */
#community {
  padding: 100px 0;
}

.discord-card {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  padding: 64px;
  align-items: center;
}

.discord-left {
  text-align: left;
}

.discord-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.discord-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #FFF;
  margin-bottom: 18px;
}

.discord-desc {
  font-size: 1.05rem;
  color: #8E8E93;
  line-height: 1.6;
  margin-bottom: 32px;
}

.discord-meta {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

.discord-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFF;
}

.discord-stat-label {
  font-size: 0.8rem;
  color: #8E8E93;
  font-weight: 500;
}

.discord-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discord-banner-container {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.discord-banner-gif {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
#faq {
  padding: 120px 0;
}

.faq-list {
  max-width: 800px;
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.015);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--transition-medium);
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-item.open {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFF;
  text-align: left;
}

.faq-chevron {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-spring), background var(--transition-fast);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding var(--transition-medium);
  padding: 0 28px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer-inner {
  font-size: 0.95rem;
  color: #8E8E93;
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
/* ============================================================
   FOOTER (Modern & Minimal)
   ============================================================ */
.footer-modern {
  background: transparent;
  padding: 80px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-brand-column {
  max-width: 380px;
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-brand-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.footer-logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFF;
  letter-spacing: -0.01em;
}

.footer-brand-tagline {
  font-size: 0.9rem;
  color: #8E8E93;
  line-height: 1.6;
}

.footer-nav-column {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav-column a {
  font-size: 0.9rem;
  color: #8E8E93;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-nav-column a:hover {
  color: #FFF;
}

.footer-mid-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-social-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 100px;
}

.footer-social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8E8E93;
  transition: all 0.3s var(--ease-spring);
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
  transform: translateY(-2px);
}

.footer-ip-badge-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(48, 209, 88, 0.06);
  border: 1px solid rgba(48, 209, 88, 0.2);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #30D158;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-ip-badge-modern:hover {
  background: rgba(48, 209, 88, 0.12);
  border-color: rgba(48, 209, 88, 0.35);
  transform: translateY(-1px);
}

.pulse-indicator-dot {
  width: 6px;
  height: 6px;
  background-color: #30D158;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(48, 209, 88, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(48, 209, 88, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(48, 209, 88, 0);
  }
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal-disclaimer {
  font-size: 0.75rem;
  color: #636366;
  line-height: 1.5;
  max-width: 600px;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  font-size: 0.75rem;
  color: #8E8E93;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: #FFF;
}

/* ============================================================
   RESPONSIVE DESIGN (Adaptive Breakpoints)
   ============================================================ */
@media (max-width: 1024px) {
  .showroom-container {
    grid-template-columns: 1fr;
  }

  .showroom-tabs {
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
    padding-bottom: 12px;
  }

  .showroom-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .card-span-7,
  .card-span-5,
  .card-span-8,
  .card-span-4 {
    grid-column: span 6;
  }

  .discord-card {
    grid-template-columns: 1fr;
    padding: 48px;
  }

  .discord-banner-container {
    max-width: 500px;
    margin: 0 auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-divider,
  .nav-cta {
    display: none;
  }

  .nav-mobile-btn {
    display: flex;
  }

  .section {
    padding: 80px 0;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .card-span-12,
  .card-span-8,
  .card-span-7,
  .card-span-5,
  .card-span-4 {
    grid-column: span 1;
  }

  .showroom-display {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .showroom-specs {
    margin-top: 24px;
  }

  .steps-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-top-row {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .hero-glass-console {
    padding: 24px;
  }

  .console-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .console-right {
    width: 100%;
    flex-direction: column;
  }

  .btn-glass-primary,
  .btn-glass-secondary {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-mid-row,
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Shape Dividers (Windshield Glass Seams) */
.shape-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 40px;
  overflow: hidden;
  line-height: 0;
  z-index: 10;
  pointer-events: none;
}

.shape-divider svg {
  width: 100%;
  height: 40px;
  display: block;
}

.shape-divider path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1.5;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.05));
  transition: stroke 0.4s, filter 0.4s;
}

/* Soft dynamic glow on section hover */
.section:hover .shape-divider path {
  stroke: rgba(255, 107, 26, 0.35);
  filter: drop-shadow(0 0 6px rgba(255, 107, 26, 0.5));
}

/* ============================================================
   SUBPAGE STYLING (Rules, Terms, Privacy)
   ============================================================ */
.subpage-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 120px;
  position: relative;
  z-index: 10;
}

.subpage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 16px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  color: #F5F5F7;
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s var(--ease-spring);
}

.back-home-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glass-active);
  transform: translateX(-4px);
}

body.lang-ar .back-home-btn:hover {
  transform: translateX(4px);
}

.back-home-btn svg {
  transition: transform 0.3s var(--ease-spring);
}

body.lang-ar .back-home-btn svg {
  transform: scaleX(-1);
}

.subpage-lang-toggle {
  display: flex;
  padding: 4px;
  border-radius: 100px;
  background: rgba(10, 10, 12, 0.45);
}

.subpage-lang-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  color: #8E8E93;
  transition: all 0.3s var(--ease-spring);
}

.subpage-lang-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.subpage-content {
  padding: 48px;
}

@media (max-width: 768px) {
  .subpage-content {
    padding: 32px 20px;
  }
}

.subpage-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
}

body.theme-light .subpage-title {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.subpage-rich-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #D2D2D7;
}

body.theme-light .subpage-rich-text {
  color: #2C2C2E;
}

.subpage-rich-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFF;
  margin: 40px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

body.theme-light .subpage-rich-text h2 {
  color: #1C1C1E;
}

.subpage-rich-text h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--accent-orange);
  border-radius: 10px;
}

.subpage-rich-text p {
  margin-bottom: 20px;
}

.subpage-rich-text ul, .subpage-rich-text ol {
  margin: 0 0 24px 24px;
}

body.lang-ar .subpage-rich-text ul, body.lang-ar .subpage-rich-text ol {
  margin: 0 24px 24px 0;
}

.subpage-rich-text li {
  margin-bottom: 12px;
  position: relative;
}

.subpage-rich-text li strong {
  color: #FFF;
}

body.theme-light .subpage-rich-text li strong {
  color: #1C1C1E;
}

/* Light Theme subpage adjustments */
body.theme-light .back-home-btn {
  background: rgba(0, 0, 0, 0.03);
  color: #2C2C2E;
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .back-home-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}

body.theme-light .subpage-lang-toggle {
  background: rgba(229, 229, 234, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .subpage-lang-btn {
  color: #55555A;
}

body.theme-light .subpage-lang-btn.active {
  background: rgba(0, 0, 0, 0.06);
  color: #1C1C1E;
  border-color: rgba(0, 0, 0, 0.05);
}

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  z-index: 9999;
  pointer-events: none;
  opacity: 1; /* Starts opaque */
  transition: opacity 0.5s var(--ease-smooth);
}

.page-transition-overlay.loaded {
  opacity: 0;
}

/* Page wrapper transition */
#page-wrapper {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}

#page-wrapper.loaded {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#page-wrapper.unloading {
  opacity: 0;
  transform: translateY(-16px) scale(0.985);
  transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

.subpage-wrapper {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}

.subpage-wrapper.loaded {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.subpage-wrapper.unloading {
  opacity: 0;
  transform: translateY(-16px) scale(0.985);
  transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}