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

body {
  background: #0a0a10;
  overflow-x: hidden;
}

.glass {
  background: rgba(22, 22, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.12);
}

.glass-strong {
  background: rgba(22, 22, 42, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(139, 92, 246, 0.18);
}

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

.shimmer-text {
  background: linear-gradient(90deg, #fff 0%, #c4b5fd 25%, #8B5CF6 50%, #c4b5fd 75%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(139, 92, 246, 0.2); }
  50% { border-color: rgba(139, 92, 246, 0.5); }
}

.upload-zone {
  border: 2px dashed rgba(139, 92, 246, 0.3);
  transition: all 0.3s ease;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: rgba(139, 92, 246, 0.7);
  background: rgba(139, 92, 246, 0.06);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.1);
}

.upload-zone.drag-over {
  animation: pulse-border 1s ease infinite;
  transform: scale(1.01);
}

@keyframes progress-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(139, 92, 246, 0.4); }
  50% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.7); }
}

.progress-bar-fill {
  animation: progress-glow 2s ease infinite;
}

.btn-process {
  background: linear-gradient(135deg, #8B5CF6, #3B82F6);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-process:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35);
}

.btn-process:active {
  transform: translateY(0);
}

.btn-download {
  background: linear-gradient(135deg, #10B981, #059669);
  transition: all 0.3s ease;
}

.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.35);
}

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

.comparison-handle {
  width: 4px;
  background: linear-gradient(180deg, #8B5CF6, #3B82F6);
  position: absolute;
  top: 0;
  bottom: 0;
  cursor: col-resize;
  z-index: 10;
}

.comparison-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #3B82F6);
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.5);
}

.comparison-handle::after {
  content: '◀ ▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 10px;
  letter-spacing: 2px;
  z-index: 1;
  white-space: nowrap;
}

.slider-track {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(139, 92, 246, 0.15);
  outline: none;
}

.slider-track::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #3B82F6);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.slider-track::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #3B82F6);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

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

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

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

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

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

.history-thumb {
  transition: all 0.2s ease;
}

.history-thumb:hover {
  transform: scale(1.08);
  border-color: rgba(139, 92, 246, 0.6);
}

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

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

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}