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

body {
  background: #08081a;
  background-image: 
    radial-gradient(ellipse at 20% 0%, rgba(124,58,237,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(6,182,212,0.06) 0%, transparent 50%);
  min-height: 100vh;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(124,58,237,0.3); }
  50% { border-color: rgba(6,182,212,0.5); }
}

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(124,58,237,0.2), 0 0 40px rgba(6,182,212,0.1); }
  50% { box-shadow: 0 0 30px rgba(124,58,237,0.35), 0 0 60px rgba(6,182,212,0.2); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

.animate-pulse-border {
  animation: pulse-border 2s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

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

.animate-glow {
  animation: glow-pulse 3s ease-in-out infinite;
}

.gradient-text {
  background: linear-gradient(135deg, #7c3aed, #06b6d4, #7c3aed);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.glass-card {
  background: rgba(26,26,46,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(42,42,74,0.6);
}

.generate-btn {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.generate-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.4), 0 4px 16px rgba(6,182,212,0.3);
}

.generate-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.generate-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  transition: 0.5s;
}

.generate-btn:hover:not(:disabled)::after {
  left: 100%;
}

.style-chip {
  background: rgba(42,42,74,0.5);
  border: 1px solid rgba(42,42,74,0.8);
  transition: all 0.25s ease;
  cursor: pointer;
}

.style-chip:hover {
  border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.1);
}

.style-chip.active {
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(6,182,212,0.15));
  border-color: rgba(124,58,237,0.6);
  box-shadow: 0 0 12px rgba(124,58,237,0.2);
}

.dropzone {
  border: 2px dashed rgba(42,42,74,0.8);
  transition: all 0.3s ease;
}

.dropzone:hover, .dropzone.drag-over {
  border-color: rgba(124,58,237,0.6);
  background: rgba(124,58,237,0.05);
}

.result-card {
  transition: all 0.3s ease;
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.result-card:hover img {
  transform: scale(1.03);
}

.slider-thumb {
  cursor: ew-resize;
  touch-action: none;
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(124,58,237,0.5);
}

.range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px rgba(124,58,237,0.5);
}

.toast-enter {
  animation: fadeInUp 0.3s ease-out forwards;
}

.comparison-slider {
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}

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

::-webkit-scrollbar-track {
  background: rgba(26,26,46,0.3);
}

::-webkit-scrollbar-thumb {
  background: rgba(42,42,74,0.8);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124,58,237,0.5);
}