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

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0f0f1a;
}
::-webkit-scrollbar-thumb {
  background: #3b3b5c;
  border-radius: 3px;
}

.glass-card {
  background: rgba(22, 22, 37, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 16px;
}

.gradient-accent {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border {
  position: relative;
}
.gradient-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6, #8b5cf6);
  background-size: 200% 100%;
  animation: shimmer 3s ease infinite;
}

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

.drop-zone {
  border: 2px dashed rgba(139, 92, 246, 0.35);
  transition: all 0.3s ease;
}
.drop-zone:hover,
.drop-zone.drag-over {
  border-color: #8b5cf6;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.15), inset 0 0 30px rgba(139, 92, 246, 0.05);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.2); }
  50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.4); }
}
.drop-zone.drag-over {
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.progress-bar-track {
  background: rgba(139, 92, 246, 0.15);
  border-radius: 100px;
  overflow: hidden;
}
.progress-bar-fill {
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  border-radius: 100px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}
.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: progress-shine 2s ease infinite;
}
@keyframes progress-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes berry-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}
.berry-pulse {
  animation: berry-bounce 1s ease-in-out infinite;
}

@keyframes confetti-fall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100px) rotate(720deg); opacity: 0; }
}
.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confetti-fall 2s ease-out forwards;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fade-in-up 0.5s ease-out;
}

@keyframes squeeze {
  0%, 100% { transform: scaleX(1) scaleY(1); }
  25% { transform: scaleX(0.9) scaleY(1.1); }
  50% { transform: scaleX(1.1) scaleY(0.9); }
  75% { transform: scaleX(0.95) scaleY(1.05); }
}
.btn-squeeze:hover {
  animation: squeeze 0.6s ease;
}

.slider-custom::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}
.slider-custom::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(139, 92, 246, 0.2);
}
.slider-custom {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

input[type="number"] {
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

video {
  border-radius: 8px;
  background: #000;
}