* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#root {
  position: relative;
  z-index: 1;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0c0618;
}
::-webkit-scrollbar-thumb {
  background: #1a0a2e;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00d4ff44;
}

.glass {
  background: rgba(26, 10, 46, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.glass-strong {
  background: rgba(26, 10, 46, 0.65);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.15), inset 0 0 20px rgba(0, 212, 255, 0.05); }
  50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.3), inset 0 0 30px rgba(0, 212, 255, 0.1); }
}

@keyframes border-dance {
  0% { border-color: rgba(0, 212, 255, 0.3); }
  33% { border-color: rgba(255, 0, 110, 0.3); }
  66% { border-color: rgba(57, 255, 20, 0.3); }
  100% { border-color: rgba(0, 212, 255, 0.3); }
}

.upload-zone {
  animation: pulse-glow 3s ease-in-out infinite, border-dance 6s linear infinite;
}

.upload-zone:hover {
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.4), inset 0 0 40px rgba(0, 212, 255, 0.15);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-btn {
  background: linear-gradient(90deg, #00d4ff, #ff006e, #39ff14, #00d4ff);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.float-in {
  animation: float-in 0.6s ease-out forwards;
}

.float-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.float-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.float-in-delay-3 { animation-delay: 0.3s; opacity: 0; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
}

input[type="range"]::-webkit-slider-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #00d4ff33, #ff006e33);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00d4ff;
  box-shadow: 0 0 12px #00d4ff88, 0 0 24px #00d4ff44;
  margin-top: -7px;
  transition: box-shadow 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 20px #00d4ffcc, 0 0 40px #00d4ff66;
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #00d4ff33, #ff006e33);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00d4ff;
  box-shadow: 0 0 12px #00d4ff88;
  border: none;
}

@keyframes progress-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.progress-active {
  animation: progress-pulse 1s ease-in-out infinite;
}

.noise-chart-bar {
  transition: height 0.3s ease-out;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-slow {
  animation: spin-slow 4s linear infinite;
}