/* ==========================================================================
   AstraSlot — Authentic Apple Liquid Glass (iOS 19+ / VisionOS Master Edition)
   Aesthetic: True Optical Translucency, Radiant Ambient Aurora Bleed,
   Dual-Stage Specular Light Rims, Micro-Beveled Glass Insets.
   ========================================================================== */

:root {
  --bg-deep: #050814;
  --bg-canvas: #050814;
  
  /* Apple Liquid Glass Surface System */
  --glass-surface: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(255, 255, 255, 0.02) 45%,
    rgba(255, 255, 255, 0.055) 100%
  );
  --glass-surface-hover: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.13) 0%,
    rgba(255, 255, 255, 0.035) 45%,
    rgba(255, 255, 255, 0.08) 100%
  );
  
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-highlight: rgba(255, 255, 255, 0.45);
  
  --glass-inset-bg: rgba(0, 0, 0, 0.28);
  --glass-inset-border: rgba(255, 255, 255, 0.08);
  --glass-inset-highlight: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

/* Remove native browser number input spinners */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
}

body {
  background-color: var(--bg-deep);
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  overflow-x: hidden;
  letter-spacing: -0.016em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ==========================================================================
   1. Radiant Ambient Aurora Mesh (The Light Engine Behind the Glass)
   ========================================================================== */
.ambient-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

/* Royal Sapphire Core (Top-Left / Center Bleed) */
.mesh-orb-1 {
  top: -12%;
  left: 8%;
  width: 60vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.48) 0%, rgba(29, 78, 216, 0.22) 45%, transparent 75%);
  filter: blur(100px);
  animation: floatOrb1 26s ease-in-out infinite alternate;
}

/* Electric Cyan & Sky Horizon (Right & Header Bleed) */
.mesh-orb-2 {
  top: 15%;
  right: -8%;
  width: 55vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.42) 0%, rgba(6, 182, 212, 0.18) 50%, transparent 75%);
  filter: blur(110px);
  animation: floatOrb2 30s ease-in-out infinite alternate-reverse;
}

/* Deep Emerald Aurora (Bottom-Left / Table Bleed) */
.mesh-orb-3 {
  bottom: -15%;
  left: 20%;
  width: 58vw;
  height: 52vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.32) 0%, rgba(5, 150, 105, 0.12) 50%, transparent 75%);
  filter: blur(120px);
  animation: floatOrb3 24s ease-in-out infinite alternate;
}

/* Radiant Violet Prismatic Accent (Center) */
.mesh-orb-4 {
  top: 40%;
  left: 42%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.32) 0%, rgba(79, 70, 229, 0.1) 50%, transparent 75%);
  filter: blur(115px);
  animation: floatOrb1 28s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 20px) scale(0.96); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35px, 40px) scale(1.05); }
  100% { transform: translate(25px, -30px) scale(0.95); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -45px) scale(1.06); }
  100% { transform: translate(-40px, 35px) scale(0.98); }
}

/* ==========================================================================
   2. Floating Liquid Glass Navbar
   ========================================================================== */
.navbar-glass {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.11) 0%,
    rgba(255, 255, 255, 0.035) 100%
  );
  backdrop-filter: blur(36px) saturate(220%) brightness(112%);
  -webkit-backdrop-filter: blur(36px) saturate(220%) brightness(112%);
  border: 1px solid var(--glass-border);
  border-top: 1.5px solid var(--glass-border-highlight);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 24px 50px -12px rgba(0, 0, 0, 0.7),
    0 6px 18px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 0 24px 0 rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   3. Authentic Apple Liquid Glass Cards
   ========================================================================== */
.liquid-glass-card {
  position: relative;
  background: var(--glass-surface);
  backdrop-filter: blur(40px) saturate(220%) brightness(110%);
  -webkit-backdrop-filter: blur(40px) saturate(220%) brightness(110%);
  border: 1px solid var(--glass-border);
  border-top: 1.5px solid var(--glass-border-highlight);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 28px 64px -16px rgba(0, 0, 0, 0.72),
    0 10px 24px -6px rgba(0, 0, 0, 0.42),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 0 24px 0 rgba(255, 255, 255, 0.02);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-glass-card:hover {
  background: var(--glass-surface-hover);
  border-top-color: rgba(255, 255, 255, 0.6);
  border-left-color: rgba(255, 255, 255, 0.32);
  box-shadow: 
    0 36px 72px -16px rgba(0, 0, 0, 0.8),
    0 14px 32px -6px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 28px 0 rgba(255, 255, 255, 0.04);
  transform: translateY(-2.5px);
}

/* Specular Light Reflection Bar (Top Edge Prismatic Highlight) */
.specular-shine {
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 25%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.4) 75%,
    transparent 100%
  );
  border-radius: 9999px;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.7));
}

/* Smoked Glass Insets (for radar items, table rows, badges) */
.glass-inset-card {
  background: var(--glass-inset-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-inset-border);
  border-top: 1px solid var(--glass-inset-highlight);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.glass-inset-card:hover {
  background: rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.32);
}

/* Elevated Modal Glass */
.liquid-glass-elevated {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(10, 16, 30, 0.95) 100%
  );
  backdrop-filter: blur(48px) saturate(220%);
  -webkit-backdrop-filter: blur(48px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 40px 90px -15px rgba(0, 0, 0, 0.9),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   4. Glass Button System
   ========================================================================== */
.btn-glass-subtle {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1.2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-glass-subtle:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 100%);
  border-color: rgba(255, 255, 255, 0.24);
  border-top-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.btn-brand-primary {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top: 1.5px solid rgba(255, 255, 255, 0.65);
  box-shadow: 
    0 8px 24px -4px rgba(37, 99, 235, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-brand-primary:hover {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  box-shadow: 
    0 12px 32px -4px rgba(37, 99, 235, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-1.5px);
}

/* ==========================================================================
   5. Dynamic Radar Pulse & Minimal Scrollbars
   ========================================================================== */
.pulse-emerald {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
  animation: pulseEmerald 2s infinite;
}

@keyframes pulseEmerald {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}
