/* ==========================================================================
   HELMIGIMMICK.MY/ME - BESPOKE DYNAMIC IDENTITY & THEME ENGINE
   Engineered by Zylax
   100% Urbanist Typography • Live Auto-Contrast Engine • Liquid Glass Architecture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

:root {
  --font-main: 'Urbanist', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  
  /* Dynamic Theme Accents - Default: Titanium Noir */
  --accent-primary: #E5E7EB;
  --accent-light: #FFFFFF;
  --accent-dark: #94A3B8;
  --accent-glow: rgba(229, 231, 235, 0.22);
  --accent-subtle: rgba(255, 255, 255, 0.08);
  --accent-border: rgba(255, 255, 255, 0.22);
  --accent-contrast-text: #08090C;
  
  /* Canvas & Glass Backgrounds */
  --bg-canvas: #060709;
  --bg-wallpaper: url('../assets/wallpapers/mojave-night.jpg');
  --bg-deep: #08090D;
  --bg-orb-1: rgba(255, 255, 255, 0.06);
  --bg-orb-2: rgba(255, 255, 255, 0.03);
  
  /* Liquid Glass Surfaces - Real Apple Dark Smoked Glass */
  --glass-surface: rgba(14, 16, 22, 0.78);
  --glass-surface-hover: rgba(18, 22, 30, 0.86);
  --glass-surface-active: rgba(22, 26, 36, 0.92);
  --glass-specular-top: rgba(255, 255, 255, 0.22);
  --glass-specular-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --glass-inner-bevel: inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
  
  /* Typography Scale */
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --spring-easing: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Urbanist Enforcement */
*, *::before, *::after {
  box-sizing: border-box;
  font-family: var(--font-main) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  color-scheme: dark;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: #060709;
  background-image: var(--bg-wallpaper);
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
}

/* Ambient contrast veil for optimal readability */
body::before { display: none !important; }

/* Atmospheric Ambient Orbs */
.bg-ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.85;
  transition: background 0.5s ease, opacity 0.5s ease;
  will-change: transform;
}

.orb-primary {
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--bg-orb-1) 0%, rgba(0, 0, 0, 0) 70%);
}

.orb-secondary {
  top: 360px;
  left: -140px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--bg-orb-2) 0%, rgba(0, 0, 0, 0) 70%);
}

.orb-tertiary {
  bottom: 80px;
  right: -100px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, var(--bg-orb-1) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Dynamic Accent Helper Classes */
.text-accent {
  color: var(--accent-primary) !important;
}

.text-accent-light {
  color: var(--accent-light) !important;
}

.bg-accent {
  background-color: var(--accent-primary) !important;
}

.bg-accent-subtle {
  background-color: var(--accent-subtle) !important;
}

.border-accent {
  border-color: var(--accent-border) !important;
}

.text-accent-contrast {
  color: var(--accent-contrast-text) !important;
}

.bg-accent-contrast {
  background-color: var(--accent-contrast-text) !important;
}

.shadow-accent {
  box-shadow: 0 10px 30px -5px var(--accent-glow) !important;
}

/* Liquid Glass Card Core */
.liquid-glass {
  background: var(--glass-surface);
  backdrop-filter: blur(35px) saturate(180%);
  -webkit-backdrop-filter: blur(35px) saturate(180%);
  border: 1px solid var(--glass-specular-border);
  border-top-color: var(--glass-specular-top);
  box-shadow: var(--glass-shadow), var(--glass-inner-bevel);
  border-radius: 24px;
  transition: transform 0.25s var(--spring-easing), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.liquid-glass:hover {
  background: var(--glass-surface-hover);
  border-color: rgba(255, 255, 255, 0.16);
  border-top-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 28px 70px -15px rgba(0, 0, 0, 0.9), 0 0 15px -3px var(--accent-glow);
}

.liquid-glass:active {
  background: var(--glass-surface-active);
  transform: scale(0.985);
}

/* macOS Frosted Floating Dock */
.liquid-dock {
  background: rgba(14, 16, 22, 0.82);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-radius: 26px;
}

/* Action Buttons with Dynamic Auto-Contrast */
.btn-primary-dynamic,
.btn-mac-primary {
  background-color: var(--accent-primary) !important;
  color: var(--accent-contrast-text) !important;
  font-weight: 800;
  box-shadow: 0 8px 24px -4px var(--accent-glow);
  transition: transform 0.2s var(--spring-easing), box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-mac-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 16px;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary-dynamic:hover,
.btn-mac-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1.5px);
  box-shadow: 0 12px 30px -4px var(--accent-glow);
}

.btn-primary-dynamic:active,
.btn-mac-primary:active {
  transform: scale(0.97);
}

/* Monogram Avatar Squircle */
.avatar-squircle {
  border-radius: 36px;
  box-shadow: 0 18px 45px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.15);
  position: relative;
}

/* Pulsing Status Orb */
.status-pip {
  position: relative;
}

.status-pip::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.5;
  animation: pip-pulse 2.2s infinite var(--spring-easing);
}

@keyframes pip-pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

/* Toast Island */
.mac-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -120px) scale(0.92);
  background: rgba(18, 20, 26, 0.94);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.1);
  padding: 10px 22px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  z-index: 2000;
  transition: transform 0.4s var(--spring-easing), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.mac-toast.active {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}

/* Modal Presenter */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--spring-easing);
  padding: 18px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: rgba(18, 20, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.9), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  width: 100%;
  max-width: 440px;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s var(--spring-easing);
  overflow: hidden;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

/* ==========================================================================
   MOVABLE ACCESSIBILITY GEAR ICON MAGNETIZED TO RIGHT WALL
   ========================================================================== */
.theme-magnet-handle {
  position: fixed;
  right: 0;
  top: 38%;
  z-index: 998;
  width: 48px;
  height: 52px;
  border-radius: 18px 0 0 18px;
  background: rgba(18, 20, 26, 0.88);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-right: none;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: -6px 10px 30px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.theme-magnet-handle:active {
  cursor: grabbing;
  background: rgba(24, 28, 36, 0.96);
  box-shadow: -8px 12px 35px rgba(0, 0, 0, 0.8), 0 0 15px var(--accent-glow);
}

.theme-magnet-handle .magnet-grip {
  width: 3.5px;
  height: 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.22);
  margin-left: 3px;
  transition: background 0.2s ease;
}

.theme-magnet-handle:hover .magnet-grip {
  background: var(--accent-light);
}

.theme-magnet-handle .gear-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-primary);
  transition: transform 0.5s var(--spring-easing), color 0.3s ease;
  filter: drop-shadow(0 2px 6px var(--accent-glow));
}

.theme-magnet-handle:hover .gear-icon {
  transform: rotate(60deg);
}

.theme-magnet-handle.drawer-open .gear-icon {
  transform: rotate(90deg);
  color: var(--accent-light);
}

/* ==========================================================================
   THEME CUSTOMIZER DRAWER (LIVE AUTO-CONTRAST ENGINE)
   ========================================================================== */
.theme-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.theme-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.theme-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 92vw);
  z-index: 1050;
  background: rgba(14, 16, 22, 0.94);
  backdrop-filter: blur(35px) saturate(190%);
  -webkit-backdrop-filter: blur(35px) saturate(190%);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s var(--spring-easing), visibility 0.35s;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.theme-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.theme-drawer.active {
  transform: translateX(0);
}

/* Theme Swatch Chips */
.theme-swatch-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s var(--spring-easing);
  user-select: none;
}

.theme-swatch-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.theme-swatch-chip.active {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px -5px var(--accent-glow);
}

.theme-swatch-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

/* Live Auto-Contrast Monitor Badge */
.contrast-monitor-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px;
  margin-top: 6px;
}

.contrast-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(48, 209, 88, 0.15);
  color: #30D158;
  border: 1px solid rgba(48, 209, 88, 0.3);
}

/* Custom Color Input Styling */
.color-picker-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 8px 12px;
}

.color-picker-wrapper input[type="color"] {
  -webkit-appearance: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  background: none;
  padding: 0;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

/* Scrollbar Elegance */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

@keyframes gear-always-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.gear-spinning-always {
  animation: gear-always-spin 7s linear infinite !important;
  transform-origin: center center !important;
}

.gear-icon {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

/* ==========================================================================
   UNBLOATED QR MODAL & BULLETPROOF TOAST
   ========================================================================== */
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  z-index: 20000 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--spring-easing) !important;
  padding: 18px !important;
}

.modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-card {
  background: rgba(18, 20, 26, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.9), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  border-radius: 28px !important;
  width: 100% !important;
  max-width: 350px !important;
  transform: scale(0.92) translateY(15px);
  transition: transform 0.3s var(--spring-easing) !important;
  overflow: hidden !important;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0) !important;
}

#qr-canvas {
  width: 190px !important;
  height: 190px !important;
  max-width: 190px !important;
  max-height: 190px !important;
  display: block !important;
  border-radius: 10px !important;
}

.qr-canvas-wrapper {
  width: 210px !important;
  height: 210px !important;
  max-width: 210px !important;
  max-height: 210px !important;
  background: #FFFFFF !important;
  border-radius: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 14px auto !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Toast Notification Pill */
.mac-toast {
  position: fixed !important;
  bottom: 24px !important;
  top: auto !important;
  left: 50% !important;
  transform: translate(-50%, 60px) scale(0.92) !important;
  background: rgba(18, 20, 26, 0.95) !important;
  backdrop-filter: blur(35px) !important;
  -webkit-backdrop-filter: blur(35px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7) !important;
  padding: 10px 22px !important;
  border-radius: 9999px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  z-index: 10005 !important;
  transition: transform 0.35s var(--spring-easing), opacity 0.3s ease !important;
  opacity: 0;
  pointer-events: none;
}

.mac-toast.active {
  transform: translate(-50%, 0) scale(1) !important;
  opacity: 1 !important;
}

.theme-light .mac-toast {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.16) !important;
  color: #0F172A !important;
}

.mac-toast.active {
  display: flex !important;
  transform: translate(-50%, 0) scale(1) !important;
  opacity: 1 !important;
}

/* ==========================================================================
   AVATAR HALO & SPECULAR PLATINUM RIM
   ========================================================================== */
.avatar-halo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px !important;
  padding: 4px !important;
  background: linear-gradient(135deg, var(--accent-light) 0%, rgba(255, 255, 255, 0.4) 50%, var(--accent-dark) 100%) !important;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px -4px var(--accent-glow) !important;
  margin-left: auto;
  margin-right: auto;
}

.avatar-halo img {
  border-radius: 9999px !important;
  display: block !important;
}

/* ==========================================================================
   GLASS PILL CONTROLS (COMPETENCIES & BADGES)
   ========================================================================== */
.glass-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  transition: all 0.25s ease !important;
}

.glass-pill:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: var(--accent-border) !important;
  transform: translateY(-1px) !important;
}

.glass-pill-blue {
  background: var(--accent-subtle) !important;
  border-color: var(--accent-border) !important;
  color: var(--accent-light) !important;
}

/* ==========================================================================
   LIQUID GLASS MAC (CARD ALIAS)
   ========================================================================== */
.liquid-glass-mac {
  background: var(--glass-surface) !important;
  backdrop-filter: blur(35px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(35px) saturate(180%) !important;
  border: 1px solid var(--glass-specular-border) !important;
  border-top-color: var(--glass-specular-top) !important;
  box-shadow: var(--glass-shadow), var(--glass-inner-bevel) !important;
  border-radius: 24px !important;
  transition: transform 0.25s var(--spring-easing), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease !important;
  position: relative !important;
}

.liquid-glass-mac:hover {
  background: var(--glass-surface-hover) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  border-top-color: var(--accent-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 28px 70px -15px rgba(0, 0, 0, 0.9), 0 0 15px -3px var(--accent-glow) !important;
}

/* ==========================================================================
   ZYLAX PILL (FOOTER CREDIT)
   ========================================================================== */
.zylax-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 16px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #9BA1A6 !important;
  transition: all 0.25s ease !important;
}

.zylax-pill:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--accent-border) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================================
   2-ROW 2-WAY NEVER-STOPPING CONTINUOUS SCROLLING MARQUEE
   ========================================================================== */
.marquee-container {
  overflow: hidden !important;
  width: 100% !important;
  position: relative !important;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.marquee-track-left {
  display: flex !important;
  gap: 14px !important;
  width: max-content !important;
  will-change: transform !important;
  animation: scroll-marquee-left 36s linear infinite !important;
}

.marquee-track-right {
  display: flex !important;
  gap: 14px !important;
  width: max-content !important;
  will-change: transform !important;
  animation: scroll-marquee-right 36s linear infinite !important;
}

@keyframes scroll-marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-track-left:hover,
.marquee-track-right:hover {
  animation-play-state: paused;
}

.marquee-card {
  width: 250px !important;
  height: 180px !important;
  flex-shrink: 0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  position: relative !important;
  background: #101217 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65) !important;
  transition: transform 0.25s var(--spring-easing), border-color 0.25s ease !important;
  cursor: pointer;
}

@media (min-width: 640px) {
  .marquee-card {
    width: 280px !important;
    height: 205px !important;
  }
}

.marquee-card:hover {
  transform: translateY(-3px) scale(1.02) !important;
  border-color: var(--accent-light) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 15px var(--accent-glow) !important;
}

.marquee-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}

.marquee-card:hover img {
  transform: scale(1.06) !important;
}

.marquee-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.4) 55%, transparent 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  padding: 12px 14px !important;
  pointer-events: none !important;
}

.marquee-title {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9) !important;
}

.marquee-subtitle {
  color: #9BA1A6 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-top: 2px !important;
}


/* Dedicated 100% Fixed Viewport Wallpaper Backdrop */
.fixed-wallpaper-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background-image: url('../assets/wallpapers/mojave-night.jpg');
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  z-index: -10 !important;
  pointer-events: none !important;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  will-change: transform;
}


/* ==========================================================================
   LIGHT THEME ARCHITECTURE (OFFICIAL APPLE BLUE & WHITISH GLASS)
   Rigorous WCAG AAA Contrast Engine • Crisp Obsidian Typography
   ========================================================================== */
html.theme-light,
body.theme-light {
  color-scheme: light !important;
  --text-primary: #0F172A !important;
  --text-secondary: #334155 !important;
  --text-muted: #64748B !important;
  
  --glass-surface: rgba(255, 255, 255, 0.82) !important;
  --glass-surface-hover: rgba(255, 255, 255, 0.92) !important;
  --glass-surface-active: #FFFFFF !important;
  --glass-specular-top: rgba(255, 255, 255, 1) !important;
  --glass-specular-border: rgba(0, 0, 0, 0.09) !important;
  --glass-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(0, 0, 0, 0.05) !important;
  --glass-inner-bevel: inset 0 1px 0 0 rgba(255, 255, 255, 0.95) !important;
  
  color: #0F172A !important;
}

.theme-light .fixed-wallpaper-backdrop {
  opacity: 1 !important;
}

.theme-light .liquid-glass {
  background: var(--glass-surface) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  border-top-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.theme-light .text-white {
  color: #0F172A !important;
}

.theme-light .text-gray-100 {
  color: #0F172A !important;
}

.theme-light .text-gray-200 {
  color: #1E293B !important;
}

.theme-light .text-gray-300 {
  color: #334155 !important;
}

.theme-light .text-gray-400 {
  color: #475569 !important;
}

.theme-light .border-white\/10 {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.theme-light .border-white\/15 {
  border-color: rgba(0, 0, 0, 0.12) !important;
}

.theme-light .border-white\/20 {
  border-color: rgba(0, 0, 0, 0.15) !important;
}

.theme-light .bg-white\/\[0\.04\],
.theme-light .bg-white\/\[0\.03\],
.theme-light .bg-white\/5 {
  background-color: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.theme-light .glass-pill {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #0F172A !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.theme-light .btn-primary-dynamic {
  background-color: var(--accent-primary) !important;
  color: var(--accent-contrast-text) !important;
  box-shadow: 0 8px 24px -4px var(--accent-glow) !important;
}

/* Preserve high-contrast text on stage photo marquee overlay */
.theme-light .marquee-title {
  color: #FFFFFF !important;
}

.theme-light .marquee-subtitle {
  color: #E2E8F0 !important;
}

/* ==========================================================================
   APPEARANCE DRAWER - BULLETPROOF HIGH-CONTRAST ENGINE (LIGHT & DARK)
   ========================================================================== */

/* Dark Mode Drawer (Default Obsidian) */
#themeDrawer {
  background: rgba(12, 14, 20, 0.95) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #FFFFFF !important;
}

#themeDrawer .text-white,
#themeDrawer h2,
#themeDrawer h3,
#themeDrawer .swatch-name {
  color: #FFFFFF !important;
}

#themeDrawer .text-gray-300,
#themeDrawer .tone-button {
  color: #CBD5E1 !important;
}

#themeDrawer .text-gray-400,
#themeDrawer .swatch-desc {
  color: #94A3B8 !important;
}

#themeDrawer .border-white\/10 {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

#themeDrawer .bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.06) !important;
}

#themeDrawer .theme-swatch-chip {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

#themeDrawer .theme-swatch-chip:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

#themeDrawer .theme-swatch-chip.active {
  background: var(--accent-subtle) !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 16px -2px var(--accent-glow) !important;
}

#themeDrawer .color-picker-wrapper {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

#themeDrawer #themeHexInput {
  color: #FFFFFF !important;
}

#themeDrawer .reset-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #E2E8F0 !important;
}

#themeDrawer .reset-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
}

#themeDrawer .drawer-close-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #94A3B8 !important;
}

#themeDrawer .drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
}

/* Light Mode Drawer (Ultra-Crisp White Glassmorph Sheet) */
body.theme-light #themeDrawer,
html.theme-light #themeDrawer {
  background: rgba(255, 255, 255, 0.97) !important;
  border-left: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: -15px 0 50px rgba(15, 23, 42, 0.16) !important;
  color: #0F172A !important;
}

body.theme-light #themeDrawer .text-white,
body.theme-light #themeDrawer h2,
body.theme-light #themeDrawer h3,
body.theme-light #themeDrawer .swatch-name {
  color: #0F172A !important;
}

body.theme-light #themeDrawer .text-gray-300,
body.theme-light #themeDrawer .tone-button {
  color: #334155 !important;
}

body.theme-light #themeDrawer .text-gray-400,
body.theme-light #themeDrawer .swatch-desc {
  color: #475569 !important;
}

body.theme-light #themeDrawer .border-white\/10 {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.theme-light #themeDrawer .bg-white\/5 {
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: #1E293B !important;
}

body.theme-light #themeDrawer .theme-swatch-chip {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
}

body.theme-light #themeDrawer .theme-swatch-chip:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
}

body.theme-light #themeDrawer .theme-swatch-chip.active {
  background: rgba(0, 113, 227, 0.08) !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 16px -2px rgba(0, 113, 227, 0.25) !important;
}

body.theme-light #themeDrawer .color-picker-wrapper {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
}

body.theme-light #themeDrawer #themeHexInput {
  color: #0F172A !important;
}

body.theme-light #themeDrawer .reset-btn {
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #0F172A !important;
}

body.theme-light #themeDrawer .reset-btn:hover {
  background: rgba(0, 0, 0, 0.09) !important;
}

body.theme-light #themeDrawer .drawer-close-btn {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #475569 !important;
}

body.theme-light #themeDrawer .drawer-close-btn:hover {
  background: rgba(0, 0, 0, 0.1) !important;
  color: #0F172A !important;
}

body.theme-light #themeDrawer .btn-primary-dynamic {
  background-color: var(--accent-primary) !important;
  color: var(--accent-contrast-text) !important;
}

body.theme-light .theme-magnet-handle {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: -4px 0 16px rgba(15, 23, 42, 0.12) !important;
}

body.theme-light .theme-magnet-handle .magnet-grip {
  background: rgba(0, 0, 0, 0.2) !important;
}

.theme-light .theme-magnet-handle {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

/* Modal text inside QR card */
.theme-light #presenter-modal .liquid-glass {
  background: rgba(255, 255, 255, 0.96) !important;
}

/* Precision Light Mode Contrast & Readability Rules */
.theme-light header img[alt*="Helmi Gimmick"] {
  filter: invert(1) brightness(0.1) !important;
}

.theme-light .bg-black\/40 {
  background-color: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

.theme-light .text-emerald-400,
.theme-light .text-emerald-400\/90 {
  color: #059669 !important;
}

.theme-light .zylax-pill {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #334155 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.theme-light .zylax-pill:hover {
  background: #FFFFFF !important;
  color: #0F172A !important;
}

/* ==========================================================================
   MULTI-DEVICE RESPONSIVE OPTIMIZATIONS (ULTRA-COMPACT TO 4K RETINA)
   ========================================================================== */

/* Ultra-Compact Mobile Screens (<= 360px: iPhone SE1, Jelly, small Androids) */
@media (max-width: 360px) {
  #themeDrawer {
    width: 95vw !important;
    padding: 16px !important;
  }
  .theme-swatch-chip {
    padding: 7px 8px !important;
    gap: 6px !important;
    border-radius: 12px !important;
  }
  .theme-swatch-chip .swatch-name {
    font-size: 11px !important;
  }
  .theme-swatch-chip .swatch-desc {
    font-size: 9px !important;
  }
  .theme-swatch-dot {
    width: 14px !important;
    height: 14px !important;
  }
}

/* Large Displays & Desktop Fluid Scaling (Un-boxy Modern Bento Architecture) */
@media (min-width: 1024px) {
  main:not(.max-w-md):not(.max-w-7xl) {
    max-width: 1120px !important;
  }
  .liquid-glass {
    border-radius: 28px !important;
  }
}

@media (min-width: 1440px) {
  main:not(.max-w-md):not(.max-w-7xl) {
    max-width: 1240px !important;
  }
}

@media (min-width: 1920px) {
  main:not(.max-w-md):not(.max-w-7xl) {
    max-width: 1320px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track-left,
  .marquee-track-right,
  .gear-spinning-always {
    animation-play-state: paused !important;
  }
}

