/* ==========================================================================
   UIverse Premium Switches & Toggles Stylesheet
   Architecture Paradigm: Low-Latency Glassmorphic Neo-SaaS Design Matrix
   ========================================================================== */

/* --- CORE SYSTEM DESIGN TOKENS --- */
:root {
  /* Layout Dimension Controls */
  --sidebar-w: 260px;
  --navbar-h: 82px;
  
  /* Color Vector Architecture */
  --bg-dark-core: #070913;
  --bg-surface-glass: rgba(15, 22, 42, 0.65);
  --bg-surface-card: #121829;
  --border-glass-subtle: rgba(255, 255, 255, 0.06);
  --border-glass-strong: rgba(255, 255, 255, 0.14);
  
  /* Core Text Systems */
  --text-vibrant: #ffffff;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  
  /* Gradient Wave Palettes */
  --accent-orange: #ff7a3d;
  --accent-purple: #7b61ff;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-pink: #ec4899;
  --accent-red: #ef4444;

  /* Kinetic Transitions & Scaling Shapes */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --transition-cubic: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-matrix: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --hardware-acceleration: translate3d(0, 0, 0);
}

/* --- LIGHT THEME CONTEXT VARIABLE MODULATION --- */
body.light-theme {
  --bg-dark-core: #f8fafc;
  --bg-surface-glass: rgba(255, 255, 255, 0.75);
  --bg-surface-card: #ffffff;
  --border-glass-subtle: rgba(15, 23, 42, 0.08);
  --border-glass-strong: rgba(15, 23, 42, 0.16);
  --text-vibrant: #0f172a;
  --text-muted: #475569;
  --text-dark: #94a3b8;
  --shadow-matrix: 0 20px 40px -20px rgba(15, 23, 42, 0.12);
}

/* --- STRUCTURE RESET & INTERFACES FOUNDATION --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(180deg, #050714 0%, #0b0f21 100%);
  color: var(--text-vibrant);
  font-family: 'DM Sans', -apple-system, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  transition: var(--transition-cubic);
}

body.light-theme {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  background: var(--accent-purple);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  z-index: 99999;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 24px; }

/* --- PREMIUM SIDEBAR CANVASES --- */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: #090d1a;
  border-right: 1px solid var(--border-glass-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  transition: var(--transition-cubic);
}
body.light-theme .sidebar { background: #ffffff; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  border-bottom: 1px solid var(--border-glass-subtle);
}

.brand-icon {
  font-size: 24px;
  color: var(--accent-orange);
  animation: logoPulse 4s infinite ease-in-out;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,122,61,0)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 8px rgba(255,122,61,0.4)); }
}

.brand-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-vibrant);
  letter-spacing: -0.5px;
}

.v2-badge {
  font-size: 10px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-purple));
  color: white;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 800;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 4px 10px rgba(235,104,53,0.25);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 20px 14px;
  scrollbar-width: thin;
}

.sidebar-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-cubic);
}

.sidebar-nav li a i {
  width: 20px;
  text-align: center;
  font-size: 16px;
  transition: var(--transition-cubic);
}

.sidebar-nav li a:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-vibrant);
  transform: translateX(4px);
}
body.light-theme .sidebar-nav li a:hover { background: rgba(0, 0, 0, 0.02); }

.sidebar-nav li.active a {
  background: rgba(123, 97, 255, 0.08);
  color: var(--accent-purple);
  font-weight: 600;
}
.sidebar-nav li.active a i { color: var(--accent-purple); }

.sidebar-socials {
  padding: 24px;
  border-top: 1px solid var(--border-glass-subtle);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-socials a {
  flex: 1;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-cubic);
}
.sidebar-socials a:hover {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

/* Sidebar Backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 14, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1040;
}
/* ============================================================
   LEGACY ALIASES — original switch/slider class names
   ============================================================ */

/* .switch → maps to base-switch behaviour */
.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 32px;
  user-select: none;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.switch .slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-glass-subtle);
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-cubic);
}
.switch .slider::before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition-cubic);
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
.switch input:checked + .slider {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  box-shadow: 0 0 16px rgba(123,97,255,0.35);
}
.switch input:checked + .slider::before {
  transform: translateX(24px);
}

/* .icon-switch → icon-based sun/moon toggle */
.icon-switch {
  position: relative;
  display: inline-block;
  width: 68px;
  height: 34px;
  user-select: none;
}
.icon-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.icon-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass-subtle);
  cursor: pointer;
  transition: var(--transition-cubic);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}
.icon-slider i {
  font-size: 12px;
  z-index: 2;
  transition: var(--transition-cubic);
}
.icon-slider .fa-sun { color: var(--accent-orange); opacity: 0.4; }
.icon-slider .fa-moon { color: #a78bfa; opacity: 1; }
.icon-slider::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--accent-purple), #4f46e5);
  border-radius: 50%;
  left: 3px;
  top: 3px;
  transition: cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
  z-index: 1;
  box-shadow: 0 3px 10px rgba(123,97,255,0.4);
}
.icon-switch input:checked + .icon-slider::before {
  transform: translateX(34px);
  background: linear-gradient(135deg, var(--accent-orange), #f97316);
  box-shadow: 0 3px 10px rgba(255,122,61,0.4);
}
.icon-switch input:checked + .icon-slider .fa-sun { opacity: 1; }
.icon-switch input:checked + .icon-slider .fa-moon { opacity: 0.4; }

/* .ios-switch → smooth mobile-style toggle */
.ios-switch {
  position: relative;
  display: inline-block;
  width: 58px;
  height: 32px;
  user-select: none;
}
.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.ios-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #242936;
  cursor: pointer;
  transition: var(--transition-cubic);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}
.ios-slider::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  top: 3px;
  left: 3px;
  background: white;
  border-radius: 50%;
  transition: cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}
.ios-switch input:checked + .ios-slider {
  background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
  box-shadow: 0 0 14px rgba(59,130,246,0.35);
}
.ios-switch input:checked + .ios-slider::before {
  transform: translateX(26px);
}

/* ============================================================
   GRADIENT ICON CARD COLOUR HELPERS (aliases without -gradient)
   ============================================================ */
.card-icon.purple  { background: linear-gradient(135deg, #7b61ff, #9a84ff); }
.card-icon.orange  { background: linear-gradient(135deg, #ff7a3d, #ff9e75); }
.card-icon.blue    { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.card-icon.green   { background: linear-gradient(135deg, #10b981, #34d399); }
.card-icon.pink    { background: linear-gradient(135deg, #ec4899, #f472b6); }
.card-icon.cyan    { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.card-icon.red     { background: linear-gradient(135deg, #ef4444, #f87171); }
/* --- INTEGRATED TOP CONTROL NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(5, 7, 18, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass-subtle);
  z-index: 999;
  transition: var(--transition-cubic);
}
body.light-theme .navbar { background: rgba(248, 250, 252, 0.75); }

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-vibrant);
  font-size: 20px;
  cursor: pointer;
}

.search-bar {
  width: 460px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass-subtle);
  transition: var(--transition-cubic);
}
.search-bar:focus-within {
  border-color: var(--accent-purple);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 20px rgba(123, 97, 255, 0.15);
}
body.light-theme .search-bar { background: rgba(0,0,0,0.02); }

.search-bar i { color: var(--text-dark); font-size: 15px; }
.search-bar input {
  width: 100%;
  border: none;
  outline: none;
  background: none;
  color: var(--text-vibrant);
  font-size: 14px;
}
.search-bar input::placeholder { color: var(--text-dark); }

.nav-actions { display: flex; gap: 16px; }

.outline-btn, .primary-btn {
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-cubic);
}

.outline-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass-subtle);
  color: var(--text-vibrant);
}
.outline-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--border-glass-strong); }

.primary-btn {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-purple));
  color: white;
  box-shadow: 0 6px 20px rgba(123, 97, 255, 0.25);
}
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(123, 97, 255, 0.35);
}

/* --- MAIN HERO EXPOSURE CANVAS --- */
.main-home {
  margin-left: var(--sidebar-w);
  padding: calc(var(--navbar-h) + 60px) 40px 80px 40px;
  transition: var(--transition-cubic);
}

.hero-section {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 72px auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(123, 97, 255, 0.06);
  border: 1px solid rgba(123, 97, 255, 0.15);
  color: #a78bfa;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
}

.hero-section h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(40px, 6vw, 78px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-section h1 span {
  background: linear-gradient(135deg, var(--accent-orange) 10%, var(--accent-purple) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-section p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- ADAPTIVE COMPONENT TILES MATRIX --- */
.switch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.large-card {
  grid-column: span 2;
}

.switch-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-glass-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-matrix);
  transition: var(--transition-cubic);
  position: relative;
  overflow: hidden;
}
.switch-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass-strong);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.card-label {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass-subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

/* Semantic Icon Color Vectors */
.purple-gradient { background: linear-gradient(135deg, #7b61ff, #9a84ff); }
.orange-gradient { background: linear-gradient(135deg, #ff7a3d, #ff9e75); }
.blue-gradient   { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.green-gradient  { background: linear-gradient(135deg, #10b981, #34d399); }
.pink-gradient   { background: linear-gradient(135deg, #ec4899, #f472b6); }
.cyan-gradient   { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.red-gradient    { background: linear-gradient(135deg, #ef4444, #f87171); }
.dynamic-gradient{ background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan)); }

.switch-card h2 {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.switch-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 36px;
}

.switch-demo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255,255,255,0.01);
  border-radius: var(--radius-md);
  padding: 20px;
}
body.light-theme .switch-demo { background: rgba(0,0,0,0.02); }

/* --- SWITCH ARCHITECTURE ENGINEERING CORNER --- */

/* UNIVERSAL ACCESSIBILITY RESET LAYER */
.base-switch, .gradient-switch, .neon-switch, .power-switch, .status-switch, .modern-icon-switch, .elastic-ios-switch {
  position: relative;
  display: inline-block;
  transform: var(--hardware-acceleration);
  user-select: none;
}

.base-switch input, .gradient-switch input, .neon-switch input, .power-switch input, .status-switch input, .modern-icon-switch input, .elastic-ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

/* 1. MASTER STANDARD MINIMALIST LAYER */
.base-switch { width: 56px; height: 32px; }
.base-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass-subtle);
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-cubic);
}
.base-slider::before {
  content: "";
  position: absolute;
  height: 24px; width: 24px;
  left: 3px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition-cubic);
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
.base-switch input:checked + .base-slider {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
}
.base-switch input:checked + .base-slider::before {
  transform: translateX(24px);
}
.base-switch input:focus-visible + .base-slider {
  outline: 2px solid var(--accent-purple);
  outline-offset: 3px;
}

/* 2. CHROMATIC DYNAMIC GRADIENT RELAY */
.gradient-switch { width: 76px; height: 40px; }
.gradient-slider {
  position: absolute;
  inset: 0;
  background: #16192b;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--border-glass-subtle);
  transition: var(--transition-cubic);
}
.gradient-slider::before {
  content: "";
  position: absolute;
  width: 32px; height: 32px;
  left: 3px; top: 3px;
  border-radius: 50%;
  background: white;
  transition: cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.gradient-switch input:checked + .gradient-slider {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  border-color: transparent;
  box-shadow: 0 0 25px rgba(123, 97, 255, 0.4);
}
.gradient-switch input:checked + .gradient-slider::before {
  transform: translateX(36px);
}

/* 3. HARD PHOTON NEON RELAY LAYER */
.neon-switch { width: 78px; height: 38px; }
.neon-slider {
  position: absolute;
  inset: 0;
  background: #0b0f19;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid #1e293b;
  transition: var(--transition-cubic);
}
.neon-slider::before {
  content: "";
  position: absolute;
  width: 28px; height: 28px;
  left: 4px; top: 4px;
  background: var(--accent-cyan);
  border-radius: 50%;
  transition: cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s;
  box-shadow: 0 0 15px var(--accent-cyan), 0 0 30px var(--accent-cyan);
}
.neon-switch input:checked + .neon-slider {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}
.neon-switch input:checked + .neon-slider::before {
  transform: translateX(40px);
  background: #fff;
  box-shadow: 0 0 15px #fff, 0 0 30px var(--accent-cyan);
}

/* 4. TACTILE BREAKER SYSTEM RELAY */
.power-switch { width: 84px; height: 44px; }
.power-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #14151f;
  border: 1px solid rgba(255,255,255,0.04);
  padding: 4px;
  cursor: pointer;
  transition: var(--transition-cubic);
}
.power-slider i {
  width: 34px; height: 34px;
  background: var(--accent-red);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
}
.power-switch input:checked + .power-slider {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}
.power-switch input:checked + .power-slider i {
  transform: translateX(40px);
  background: var(--accent-green);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
}

/* 5. MULTI-STATE REPLICATOR LAYER WITH LABELS */
.status-switch { width: 104px; height: 40px; }
.status-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #1e2133;
  border: 1px solid var(--border-glass-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-cubic);
}
.status-slider::before {
  content: "";
  position: absolute;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: white;
  left: 3px; top: 2px;
  transition: cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
  z-index: 1;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
.status-text {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  z-index: 2;
  pointer-events: none;
  transition: var(--transition-cubic);
}
.status-text.on { color: var(--accent-green); opacity: 0.4; }
.status-text.off { color: var(--accent-red); opacity: 1; }

.status-switch input:checked + .status-slider {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}
.status-switch input:checked + .status-slider::before {
  transform: translateX(62px);
}
.status-switch input:checked + .status-slider .status-text.on { opacity: 1; }
.status-switch input:checked + .status-slider .status-text.off { opacity: 0.4; }

/* 6. ADVANCED VIEWPORT THEME LIGHT ENGINE */
.modern-icon-switch { width: 68px; height: 34px; }
.modern-icon-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass-subtle);
  cursor: pointer;
  transition: var(--transition-cubic);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}
.modern-icon-slider i {
  font-size: 12px;
  z-index: 2;
  transition: var(--transition-cubic);
}
.icon-sun { color: var(--accent-orange); opacity: 0.4; }
.icon-moon { color: #a78bfa; opacity: 1; }

.modern-icon-slider::before {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--accent-purple), #4f46e5);
  border-radius: 50%;
  left: 3px; top: 3px;
  transition: cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
  z-index: 1;
  box-shadow: 0 3px 10px rgba(123,97,255,0.4);
}
.modern-icon-switch input:checked + .modern-icon-slider::before {
  transform: translateX(34px);
  background: linear-gradient(135deg, var(--accent-orange), #f97316);
  box-shadow: 0 3px 10px rgba(255,122,61,0.4);
}
.modern-icon-switch input:checked + .modern-icon-slider .icon-sun { opacity: 1; }
.modern-icon-switch input:checked + .modern-icon-slider .icon-moon { opacity: 0.4; }

/* 7. ELASTIC INTERACTION SPEC */
.elastic-ios-switch { width: 58px; height: 34px; }
.elastic-ios-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #242936;
  cursor: pointer;
  transition: var(--transition-cubic);
}
.elastic-ios-slider::before {
  content: "";
  position: absolute;
  width: 28px; height: 28px;
  top: 3px; left: 3px;
  background: white;
  border-radius: 50%;
  transition: cubic-bezier(0.68, -0.6, 0.32, 1.6) 0.4s;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}
.elastic-ios-switch input:checked + .elastic-ios-slider {
  background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
}
.elastic-ios-switch input:checked + .elastic-ios-slider::before {
  transform: translateX(24px);
}

/* --- DEEP NESTED CONFIGURATION GROUPS --- */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.02);
  transition: var(--transition-cubic);
}
.setting-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-glass-subtle);
}

.setting-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.setting-item strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-vibrant);
}

.setting-item span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

/* --- HIGH-DENSITY GLOBAL FOOTER PLATFORM MATRIX --- */
.footer {
  background: #090b11;
  border-top: 1px solid var(--border-glass-subtle);
  margin-left: var(--sidebar-w);
  padding: 80px 40px 30px 40px;
  transition: var(--transition-cubic);
}
body.light-theme .footer { background: #ffffff; }

.footer-container {
  max-width: 1580px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.8fr) 1.4fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-glass-subtle);
}

.footer-col-brand .footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-vibrant);
  margin-bottom: 16px;
}

.footer-col-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.footer-social-strip { display: flex; gap: 12px; }
.footer-social-strip a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  transition: var(--transition-cubic);
}
.footer-social-strip a:hover {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
  transform: translateY(-3px);
}

.footer-col h3 {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-vibrant);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-cubic);
}
.footer-col ul li a:hover {
  color: var(--accent-purple);
  padding-left: 4px;
}

.newsletter-col p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: var(--transition-cubic);
}
.newsletter-form input:focus { border-color: var(--accent-purple); }
body.light-theme .newsletter-form input { background: #f1f5f9; color: #000; }

.newsletter-form button {
  padding: 12px 20px;
  background: var(--accent-purple);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-cubic);
}
.newsletter-form button:hover { background: #6366f1; }

.footer-bottom {
  max-width: 1580px;
  margin: 0 auto;
  padding-top: 30px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dark);
}

/* --- PLATFORM LAYER RESPONSIVE RESPONSIVENESS OVERRIDES --- */
@media (max-width: 1300px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col-brand, .newsletter-col {
    grid-column: span 2;
  }
}

@media (max-width: 1100px) {
  .large-card { grid-column: span 1; }
}

@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.visible { transform: translateX(0); }
  .sidebar-backdrop.visible { display: block; }
  
  .navbar, .main-home, .footer { margin-left: 0; left: 0; }
  .menu-toggle { display: block; }
}

@media (max-width: 680px) {
  .navbar {
    padding: 16px 24px;
    height: auto;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    position: absolute;
  }
  .search-bar { width: 100%; }
  .nav-actions { width: 100%; justify-content: space-between; }
  .outline-btn, .primary-btn { flex: 1; justify-content: center; }
  
  .main-home { padding-top: 220px; padding-left: 20px; padding-right: 20px; }
  .hero-section h1 { font-size: 38px; }
  
  .setting-item { flex-direction: column; align-items: flex-start; }
  .footer-container { grid-template-columns: 1fr; }
  .footer-col-brand, .newsletter-col { grid-column: span 1; }
}