:root {
  --bg-primary: #030712;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-purple: #a855f7;
  --accent-blue: #6366f1;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --gradient-main: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 50%, rgba(236, 72, 153, 0.1) 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.3);
  --shadow-neon-purple: 0 0 60px rgba(168, 85, 247, 0.4), 0 0 120px rgba(168, 85, 247, 0.15);
  --shadow-neon-blue: 0 0 60px rgba(99, 102, 241, 0.4), 0 0 120px rgba(99, 102, 241, 0.15);
  --shadow-neon-pink: 0 0 60px rgba(236, 72, 153, 0.4), 0 0 120px rgba(236, 72, 153, 0.15);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --blur-sm: blur(10px);
  --blur-md: blur(20px);
  --blur-lg: blur(40px);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
}

button, a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#particlesCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-gradient {
  position: fixed;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 10% 10%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 90% 90%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
  animation: bgGradientDrift 30s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes bgGradientDrift {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(3%, -2%) scale(1.02); }
  50% { transform: translate(-2%, 3%) scale(0.98); }
  75% { transform: translate(2%, 1%) scale(1.01); }
  100% { transform: translate(-1%, -2%) scale(1); }
}

.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle 30vw at 15% 25%, rgba(99, 102, 241, 0.12) 0%, transparent 100%),
    radial-gradient(circle 25vw at 75% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 100%),
    radial-gradient(circle 35vw at 50% 70%, rgba(236, 72, 153, 0.08) 0%, transparent 100%),
    radial-gradient(circle 20vw at 85% 75%, rgba(6, 182, 212, 0.1) 0%, transparent 100%),
    radial-gradient(circle 28vw at 30% 90%, rgba(16, 185, 129, 0.06) 0%, transparent 100%);
  z-index: 0;
  pointer-events: none;
  animation: meshMorph 25s ease-in-out infinite alternate;
  opacity: 0.8;
  will-change: transform, opacity;
}

@keyframes meshMorph {
  0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  33% { transform: scale(1.05) rotate(1deg); opacity: 0.6; }
  66% { transform: scale(0.97) rotate(-1deg); opacity: 0.9; }
  100% { transform: scale(1.03) rotate(0.5deg); opacity: 0.7; }
}

.aurora {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora__layer {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(100px);
  will-change: transform;
}

.aurora__layer--1 {
  width: 140vw;
  height: 70vh;
  top: -30vh;
  left: -20vw;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.18) 0%, rgba(168, 85, 247, 0.22) 30%, rgba(236, 72, 153, 0.15) 60%, rgba(6, 182, 212, 0.1) 100%);
  animation: auroraShift1 18s ease-in-out infinite alternate;
}

.aurora__layer--2 {
  width: 100vw;
  height: 60vh;
  top: -10vh;
  right: -20vw;
  background: linear-gradient(120deg, rgba(168, 85, 247, 0.15) 0%, rgba(99, 102, 241, 0.2) 40%, rgba(236, 72, 153, 0.12) 80%);
  animation: auroraShift2 22s ease-in-out infinite alternate;
}

.aurora__layer--3 {
  width: 80vw;
  height: 50vh;
  bottom: -20vh;
  left: 10%;
  background: linear-gradient(200deg, rgba(236, 72, 153, 0.12) 0%, rgba(168, 85, 247, 0.15) 50%, rgba(6, 182, 212, 0.1) 100%);
  animation: auroraShift3 25s ease-in-out infinite alternate;
}

.aurora__layer--4 {
  width: 60vw;
  height: 40vh;
  top: 40%;
  left: 20%;
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.12) 0%, rgba(16, 185, 129, 0.08) 40%, transparent 70%);
  animation: auroraShift4 20s ease-in-out infinite alternate;
  filter: blur(120px);
}

@keyframes auroraShift1 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.6; }
  33% { transform: translate(8vw, 5vh) rotate(3deg) scale(1.08); opacity: 0.8; }
  66% { transform: translate(-5vw, -3vh) rotate(-2deg) scale(0.95); opacity: 0.7; }
  100% { transform: translate(3vw, 8vh) rotate(1deg) scale(1.05); opacity: 0.65; }
}

@keyframes auroraShift2 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.5; }
  50% { transform: translate(-10vw, 6vh) rotate(-4deg) scale(1.1); opacity: 0.75; }
  100% { transform: translate(5vw, -4vh) rotate(2deg) scale(0.98); opacity: 0.55; }
}

@keyframes auroraShift3 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  50% { transform: translate(6vw, -5vh) scale(1.12); opacity: 0.65; }
  100% { transform: translate(-4vw, 3vh) scale(0.95); opacity: 0.5; }
}

@keyframes auroraShift4 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.3; }
  33% { transform: translate(-8vw, 5vh) scale(1.15) rotate(-3deg); opacity: 0.55; }
  66% { transform: translate(5vw, -8vh) scale(0.9) rotate(2deg); opacity: 0.4; }
  100% { transform: translate(-3vw, 3vh) scale(1.08) rotate(-1deg); opacity: 0.5; }
}

.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
  top: 50%;
  right: -150px;
  animation-delay: -5s;
  animation-duration: 25s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
  bottom: -100px;
  left: 30%;
  animation-delay: -10s;
  animation-duration: 30s;
}

.orb-4 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
  top: 30%;
  left: 50%;
  animation-delay: -15s;
  animation-duration: 22s;
}

.orb-5 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  bottom: 20%;
  right: 20%;
  animation-delay: -8s;
  animation-duration: 28s;
}

.orb-6 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
  top: 60%;
  left: 10%;
  animation-delay: -12s;
  animation-duration: 35s;
}

.orb-7 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
  top: 10%;
  right: 30%;
  animation-delay: -18s;
  animation-duration: 32s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -50px) scale(1.1);
  }
  50% {
    transform: translate(-30px, 30px) scale(0.95);
  }
  75% {
    transform: translate(40px, 20px) scale(1.05);
  }
}

.edge-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
}

.edge-glow--top {
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(99, 102, 241, 0) 10%,
    rgba(99, 102, 241, 0.6) 30%,
    rgba(168, 85, 247, 0.8) 50%,
    rgba(236, 72, 153, 0.6) 70%,
    rgba(236, 72, 153, 0) 90%,
    transparent 100%
  );
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.3), 0 0 80px rgba(99, 102, 241, 0.15);
  animation: edgePulse 4s ease-in-out infinite alternate;
}

.edge-glow--left {
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(99, 102, 241, 0) 15%,
    rgba(99, 102, 241, 0.4) 35%,
    rgba(168, 85, 247, 0.5) 50%,
    rgba(236, 72, 153, 0.3) 70%,
    transparent 100%
  );
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.2), 0 0 60px rgba(168, 85, 247, 0.1);
  animation: edgePulse 5s ease-in-out infinite alternate;
  animation-delay: -1s;
}

.edge-glow--right {
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(236, 72, 153, 0) 15%,
    rgba(236, 72, 153, 0.4) 40%,
    rgba(168, 85, 247, 0.5) 55%,
    rgba(99, 102, 241, 0.3) 75%,
    transparent 100%
  );
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.2), 0 0 60px rgba(168, 85, 247, 0.1);
  animation: edgePulse 6s ease-in-out infinite alternate;
  animation-delay: -2s;
}

.edge-glow--bottom {
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(236, 72, 153, 0) 10%,
    rgba(236, 72, 153, 0.5) 35%,
    rgba(168, 85, 247, 0.6) 50%,
    rgba(99, 102, 241, 0.4) 70%,
    transparent 100%
  );
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.25), 0 0 80px rgba(168, 85, 247, 0.1);
  animation: edgePulse 4.5s ease-in-out infinite alternate;
  animation-delay: -0.5s;
}

@keyframes edgePulse {
  0% { opacity: 0.4; }
  50% { opacity: 0.8; }
  100% { opacity: 0.5; }
}

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
  animation: gridPulse 8s ease-in-out infinite alternate;
}

@keyframes gridPulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

.bg-noise {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  animation: noiseShift 0.5s steps(2) infinite;
}

@keyframes noiseShift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-5%, -5%); }
  100% { transform: translate(5%, 5%); }
}

.bg-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 40%, rgba(3, 7, 18, 0.4) 100%);
  z-index: 0;
  pointer-events: none;
}

.floating-lights {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-light {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

.fl-1 {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.9) 0%, rgba(99, 102, 241, 0) 70%);
  box-shadow: 0 0 20px 4px rgba(99, 102, 241, 0.3);
  top: 15%;
  left: 10%;
  animation: floatLight1 18s ease-in-out infinite, lightPulse 3s ease-in-out infinite;
}

.fl-2 {
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.9) 0%, rgba(168, 85, 247, 0) 70%);
  box-shadow: 0 0 15px 3px rgba(168, 85, 247, 0.3);
  top: 35%;
  left: 80%;
  animation: floatLight2 22s ease-in-out infinite, lightPulse 4s ease-in-out infinite;
  animation-delay: -3s;
}

.fl-3 {
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.8) 0%, rgba(236, 72, 153, 0) 70%);
  box-shadow: 0 0 25px 5px rgba(236, 72, 153, 0.25);
  top: 60%;
  left: 25%;
  animation: floatLight3 20s ease-in-out infinite, lightPulse 5s ease-in-out infinite;
  animation-delay: -7s;
}

.fl-4 {
  width: 5px;
  height: 5px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.9) 0%, rgba(6, 182, 212, 0) 70%);
  box-shadow: 0 0 18px 3px rgba(6, 182, 212, 0.3);
  top: 80%;
  left: 60%;
  animation: floatLight4 25s ease-in-out infinite, lightPulse 3.5s ease-in-out infinite;
  animation-delay: -10s;
}

.fl-5 {
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.9) 0%, rgba(16, 185, 129, 0) 70%);
  box-shadow: 0 0 12px 2px rgba(16, 185, 129, 0.3);
  top: 25%;
  left: 45%;
  animation: floatLight5 19s ease-in-out infinite, lightPulse 4.5s ease-in-out infinite;
  animation-delay: -5s;
}

.fl-6 {
  width: 5px;
  height: 5px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.8) 0%, rgba(99, 102, 241, 0) 70%);
  box-shadow: 0 0 16px 3px rgba(99, 102, 241, 0.25);
  top: 70%;
  left: 90%;
  animation: floatLight6 23s ease-in-out infinite, lightPulse 3.8s ease-in-out infinite;
  animation-delay: -12s;
}

.fl-7 {
  width: 7px;
  height: 7px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.7) 0%, rgba(168, 85, 247, 0) 70%);
  box-shadow: 0 0 22px 4px rgba(168, 85, 247, 0.2);
  top: 45%;
  left: 15%;
  animation: floatLight7 21s ease-in-out infinite, lightPulse 5.5s ease-in-out infinite;
  animation-delay: -8s;
}

.fl-8 {
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.85) 0%, rgba(236, 72, 153, 0) 70%);
  box-shadow: 0 0 14px 3px rgba(236, 72, 153, 0.25);
  top: 10%;
  left: 70%;
  animation: floatLight8 17s ease-in-out infinite, lightPulse 4.2s ease-in-out infinite;
  animation-delay: -2s;
}

.fl-9 {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.75) 0%, rgba(6, 182, 212, 0) 70%);
  box-shadow: 0 0 20px 4px rgba(6, 182, 212, 0.2);
  top: 55%;
  left: 50%;
  animation: floatLight9 26s ease-in-out infinite, lightPulse 3.2s ease-in-out infinite;
  animation-delay: -15s;
}

.fl-10 {
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.9) 0%, rgba(99, 102, 241, 0) 70%);
  box-shadow: 0 0 10px 2px rgba(99, 102, 241, 0.3);
  top: 90%;
  left: 35%;
  animation: floatLight10 24s ease-in-out infinite, lightPulse 5s ease-in-out infinite;
  animation-delay: -6s;
}

.fl-11 {
  width: 5px;
  height: 5px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.8) 0%, rgba(16, 185, 129, 0) 70%);
  box-shadow: 0 0 16px 3px rgba(16, 185, 129, 0.25);
  top: 5%;
  left: 90%;
  animation: floatLight11 28s ease-in-out infinite, lightPulse 4.8s ease-in-out infinite;
  animation-delay: -11s;
}

.fl-12 {
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.85) 0%, rgba(168, 85, 247, 0) 70%);
  box-shadow: 0 0 14px 3px rgba(168, 85, 247, 0.3);
  top: 75%;
  left: 5%;
  animation: floatLight12 16s ease-in-out infinite, lightPulse 3.6s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes floatLight1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(80px, -60px); }
  50% { transform: translate(40px, 80px); }
  75% { transform: translate(-50px, 30px); }
}

@keyframes floatLight2 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-70px, 50px); }
  50% { transform: translate(60px, -40px); }
  75% { transform: translate(-30px, -80px); }
}

@keyframes floatLight3 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(90px, 70px); }
  50% { transform: translate(-60px, 50px); }
  75% { transform: translate(40px, -90px); }
}

@keyframes floatLight4 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-50px, -70px); }
  50% { transform: translate(80px, -30px); }
  75% { transform: translate(-40px, 60px); }
}

@keyframes floatLight5 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(60px, 40px); }
  50% { transform: translate(-40px, -60px); }
  75% { transform: translate(70px, -20px); }
}

@keyframes floatLight6 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-80px, -50px); }
  50% { transform: translate(50px, 70px); }
  75% { transform: translate(-60px, -30px); }
}

@keyframes floatLight7 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(70px, -80px); }
  50% { transform: translate(-50px, 40px); }
  75% { transform: translate(30px, 70px); }
}

@keyframes floatLight8 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-40px, 60px); }
  50% { transform: translate(70px, 30px); }
  75% { transform: translate(-80px, -50px); }
}

@keyframes floatLight9 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(50px, -40px); }
  50% { transform: translate(-70px, -60px); }
  75% { transform: translate(40px, 80px); }
}

@keyframes floatLight10 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-60px, 50px); }
  50% { transform: translate(40px, -70px); }
  75% { transform: translate(-30px, 40px); }
}

@keyframes floatLight11 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-50px, -40px); }
  50% { transform: translate(60px, 60px); }
  75% { transform: translate(-70px, -30px); }
}

@keyframes floatLight12 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(40px, 70px); }
  50% { transform: translate(-60px, -50px); }
  75% { transform: translate(80px, 40px); }
}

@keyframes lightPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

.depth-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.depth-layer--near {
  background:
    radial-gradient(circle 20vw at 10% 30%, rgba(99, 102, 241, 0.06) 0%, transparent 100%),
    radial-gradient(circle 15vw at 85% 60%, rgba(168, 85, 247, 0.05) 0%, transparent 100%);
  animation: depthNear 35s ease-in-out infinite alternate;
  will-change: transform;
}

.depth-layer--far {
  background:
    radial-gradient(circle 40vw at 50% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 100%),
    radial-gradient(circle 30vw at 20% 80%, rgba(236, 72, 153, 0.03) 0%, transparent 100%),
    radial-gradient(circle 25vw at 80% 20%, rgba(6, 182, 212, 0.03) 0%, transparent 100%);
  animation: depthFar 45s ease-in-out infinite alternate;
  filter: blur(40px);
  will-change: transform;
}

@keyframes depthNear {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, -3%) scale(1.05); }
  100% { transform: translate(-3%, 5%) scale(0.97); }
}

@keyframes depthFar {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3%, 5%) scale(1.03); }
  100% { transform: translate(4%, -4%) scale(0.98); }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  padding-left: calc(24px + env(safe-area-inset-left, 0px));
  padding-right: calc(24px + env(safe-area-inset-right, 0px));
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  padding-left: calc(24px + env(safe-area-inset-left, 0px));
  padding-right: calc(24px + env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-cart {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-cart:hover {
  border-color: var(--border-glass-hover);
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-login {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--gradient-main);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.main-content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-top: calc(80px + env(safe-area-inset-top, 0px));
}

.hero {
  padding: 80px 24px 60px;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeIn 0.8s ease-out 0.3s both;
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.categories-section {
  padding: 20px 0 40px;
  position: sticky;
  top: 72px;
  z-index: 100;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  animation: fadeIn 0.8s ease-out 0.5s both;
}

.tabs-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  padding: 0 4px;
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.tabs-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  width: fit-content;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  min-height: 44px;
  flex-shrink: 0;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
  transition: left 0.6s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.tab-btn:hover::before {
  left: 100%;
}

.tab-btn.active {
  color: white;
  box-shadow: var(--shadow-glow);
  position: relative;
  background: transparent;
  border: none;
}

.tab-btn.active::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  padding: 1px;
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899, #6366f1);
  background-size: 300% 300%;
  animation: gradientBorder 3s linear infinite;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: source-over;
  z-index: -1;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.85), rgba(168, 85, 247, 0.85), rgba(236, 72, 153, 0.85));
  background-size: 300% 300%;
  animation: gradientBorder 3s linear infinite;
  z-index: -2;
}

.tab-btn.active .tab-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: shimmer 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

@keyframes gradientBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tab-icon {
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.tab-btn.active span {
  position: relative;
  z-index: 1;
}

.products-section {
  padding: 20px 0 80px;
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.products-count {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  perspective: 1000px;
}

.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(17, 24, 39, 0.65) 0%,
    rgba(15, 20, 35, 0.7) 50%,
    rgba(17, 24, 39, 0.6) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  animation: fadeInUp 0.6s ease-out both;
  transform-origin: center center;
  will-change: transform;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  box-shadow:
    0 4px 24px -4px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.12) 0%,
    rgba(168, 85, 247, 0.18) 25%,
    rgba(236, 72, 153, 0.22) 50%,
    rgba(168, 85, 247, 0.18) 75%,
    rgba(99, 102, 241, 0.12) 100%
  );
  background-size: 300% 300%;
  animation: gradientBorder 4s linear infinite;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: source-over;
  opacity: 0.6;
  transition: opacity 0.5s ease;
  z-index: 3;
  pointer-events: none;
}

.product-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(168, 85, 247, 0.18) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-16px) scale(1.03) rotateX(2deg);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow:
    0 35px 100px -15px rgba(0, 0, 0, 0.65),
    0 0 60px -10px rgba(168, 85, 247, 0.3),
    0 0 120px -20px rgba(99, 102, 241, 0.2),
    0 0 0 1px rgba(168, 85, 247, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover::after {
  opacity: 1;
}

.glass-refraction {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 30%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

.product-card:hover .glass-refraction {
  opacity: 1;
}

.glass-refraction::after {
  content: '';
  position: absolute;
  top: 8%;
  left: 12%;
  width: 76%;
  height: 35%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.01) 40%,
    transparent 60%
  );
  border-radius: 50%;
  filter: blur(12px);
}

.glass-refraction::before {
  content: '';
  position: absolute;
  top: 2%;
  left: 20%;
  width: 60%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 30%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.08) 70%,
    transparent 100%
  );
  border-radius: 50%;
  filter: blur(2px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.25s; }
.product-card:nth-child(5) { animation-delay: 0.3s; }
.product-card:nth-child(6) { animation-delay: 0.35s; }
.product-card:nth-child(7) { animation-delay: 0.4s; }
.product-card:nth-child(8) { animation-delay: 0.45s; }
.product-card:nth-child(9) { animation-delay: 0.5s; }
.product-card:nth-child(10) { animation-delay: 0.55s; }
.product-card:nth-child(11) { animation-delay: 0.6s; }
.product-card:nth-child(12) { animation-delay: 0.65s; }
.product-card:nth-child(13) { animation-delay: 0.7s; }
.product-card:nth-child(14) { animation-delay: 0.75s; }
.product-card:nth-child(15) { animation-delay: 0.8s; }
.product-card:nth-child(16) { animation-delay: 0.85s; }

.product-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(168, 85, 247, 0.12) 50%,
    rgba(236, 72, 153, 0.08) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    rgba(168, 85, 247, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.product-card:hover .product-image-wrapper::before {
  opacity: 1.5;
}

.product-image {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.product-card:hover .product-image {
  transform: scale(1.3) rotate(6deg) translateY(-4px);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(168, 85, 247, 0.25),
    0 0 80px rgba(99, 102, 241, 0.1);
  border-color: rgba(168, 85, 247, 0.35);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
}

.product-tags {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.product-tag {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tag-auto {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 182, 212, 0.2) 100%);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow:
    0 2px 8px rgba(16, 185, 129, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tag-recommend {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(236, 72, 153, 0.2) 100%);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow:
    0 2px 8px rgba(168, 85, 247, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.product-info {
  padding: 24px;
  position: relative;
  z-index: 1;
}

.product-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.product-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.product-price {
  font-size: 1.625rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 40%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.3));
  position: relative;
}

.product-price-original {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.7;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.product-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.product-meta-icon {
  font-size: 0.875rem;
}

.product-btn {
  width: 100%;
  padding: 14px;
  margin-top: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  letter-spacing: 0.01em;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.product-btn:hover {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  border-color: transparent;
  transform: scale(1.03) translateY(-2px);
  box-shadow:
    0 8px 24px rgba(168, 85, 247, 0.35),
    0 0 40px rgba(168, 85, 247, 0.15);
  letter-spacing: 0.02em;
}

.product-btn:hover::before {
  left: 100%;
}

.product-btn:active {
  transform: scale(0.98);
  box-shadow:
    0 4px 12px rgba(168, 85, 247, 0.2),
    0 0 20px rgba(168, 85, 247, 0.1);
}

.product-card:active {
  transform: translateY(-8px) scale(1.01);
  transition-duration: 0.1s;
}

.loading-spinner {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  gap: 16px;
}

.loading-spinner.active {
  display: flex;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-glass);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-spinner p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-glass);
  background: rgba(3, 7, 18, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.75rem;
}

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .categories-section {
    top: 64px;
  }

  .fl-7, .fl-8, .fl-9, .fl-10 {
    display: none;
  }
}

@media (max-width: 600px) {
  :root {
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
  }

  html {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero {
    padding: 48px 16px 32px;
    padding-top: calc(48px + env(safe-area-inset-top, 0px));
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
  }

  .hero-description {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 5px 14px;
    margin-bottom: 20px;
  }

  .categories-section {
    top: 56px;
    padding: 12px 0 16px;
  }

  .tabs-container {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    padding: 3px;
    border-radius: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 0.8125rem;
    min-height: 40px;
  }

  .tab-icon {
    font-size: 0.875rem;
  }

  .products-header {
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .products-count {
    font-size: 0.8125rem;
  }

  .product-card {
    border-radius: 18px;
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
  }

  .product-card:hover {
    transform: translateY(-4px) scale(1.01);
  }

  .product-card:active {
    transform: scale(0.985);
    transition-duration: 0.08s;
  }

  .product-image-wrapper {
    height: 160px;
  }

  .product-image {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    font-size: 2.25rem;
  }

  .product-card:hover .product-image {
    transform: scale(1.15) rotate(4deg) translateY(-2px);
  }

  .product-tags {
    top: 10px;
    left: 10px;
    right: 10px;
    gap: 6px;
  }

  .product-tag {
    padding: 4px 10px;
    font-size: 0.625rem;
  }

  .product-info {
    padding: 16px;
  }

  .product-title {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .product-desc {
    font-size: 0.75rem;
    margin-bottom: 14px;
    line-height: 1.4;
  }

  .product-price-row {
    margin-bottom: 12px;
  }

  .product-price {
    font-size: 1.375rem;
  }

  .product-price-original {
    font-size: 0.75rem;
  }

  .product-meta {
    padding-top: 10px;
  }

  .product-meta-item {
    font-size: 0.6875rem;
    gap: 4px;
  }

  .product-meta-icon {
    font-size: 0.75rem;
  }

  .product-btn {
    padding: 12px;
    margin-top: 14px;
    font-size: 0.8125rem;
    min-height: 44px;
    border-radius: 12px;
  }

  .navbar {
    padding: 12px 0;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }

  .nav-container {
    padding: 0 16px;
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .logo-icon svg {
    width: 28px;
    height: 28px;
  }

  .btn-cart {
    width: 38px;
    height: 38px;
  }

  .btn-login {
    padding: 7px 16px;
    font-size: 0.8125rem;
  }

  .main-content {
    padding-top: 64px;
    padding-top: calc(64px + env(safe-area-inset-top, 0px));
  }

  .products-section {
    padding: 12px 0 60px;
  }

  .footer {
    padding: 32px 0;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer-links a {
    font-size: 0.8125rem;
  }

  .footer-copyright {
    font-size: 0.6875rem;
  }

  .edge-glow {
    display: none;
  }

  .orb {
    opacity: 0.2;
    filter: blur(60px);
  }

  .orb-4, .orb-5, .orb-6, .orb-7 {
    display: none;
  }

  .fl-1, .fl-2, .fl-3, .fl-4 {
    opacity: 0.5;
  }

  .fl-5, .fl-6, .fl-7, .fl-8, .fl-9, .fl-10, .fl-11, .fl-12 {
    display: none;
  }

  .aurora__layer {
    filter: blur(60px);
  }

  .aurora__layer--3,
  .aurora__layer--4 {
    display: none;
  }

  .bg-noise {
    display: none;
  }

  .bg-grid {
    background-size: 40px 40px;
  }

  .depth-layer--near,
  .depth-layer--far {
    animation-duration: 60s;
  }

  .floating-light {
    will-change: auto;
  }
}

@media (max-width: 375px) {
  html {
    font-size: 14px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .product-info {
    padding: 14px;
  }

  .product-image-wrapper {
    height: 140px;
  }

  .tab-btn {
    padding: 7px 12px;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-gradient,
  .bg-mesh,
  .bg-grid,
  .bg-noise,
  .aurora__layer,
  .orb,
  .floating-light,
  .depth-layer,
  .edge-glow {
    animation: none !important;
  }

  .floating-light {
    opacity: 0.4;
  }

  .product-card {
    animation: none !important;
  }

  .product-card:hover {
    transform: translateY(-4px) scale(1.01);
    transition-duration: 0.15s;
  }
}

@keyframes breathe {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

.orb {
  animation: float 20s ease-in-out infinite, breathe 8s ease-in-out infinite;
}

::selection {
  background: rgba(168, 85, 247, 0.3);
  color: white;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-glass-hover);
}
