.bg-remover-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.uploader-box {
  width: 100%;
  max-width: 600px;
  padding: 50px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, #4c1d95 0%, #1e1b4b 100%);
  box-shadow: 0 20px 50px rgba(76, 29, 149, 0.4);
  text-align: center;
  border: 2px dashed rgba(167, 139, 250, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.uploader-box.drag-over {
  border-color: #a78bfa;
  background: linear-gradient(135deg, #5b21b6 0%, #2e1065 100%);
  transform: scale(1.02);
  box-shadow: 0 30px 60px rgba(139, 92, 246, 0.6);
}

.upload-icon {
  font-size: 72px;
  background: linear-gradient(135deg, #c084fc, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  filter: drop-shadow(0 10px 15px rgba(139, 92, 246, 0.5));
}

.uploader-box h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.uploader-box p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 35px;
  font-size: 15px;
}

.btn-upload {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #ffffff;
  border: none;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(109, 40, 217, 0.6), inset 0 0 0 2px rgba(255,255,255,0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-upload:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.7), inset 0 0 0 2px #ffffff;
}

.btn-upload:active {
  transform: translateY(0) scale(0.98);
}

.formats-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 25px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Loader */
.loader-circle {
  width: 64px;
  height: 64px;
  border: 4px solid rgba(167, 139, 250, 0.2);
  border-top-color: #a78bfa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
}

.progress-bar-container {
  width: 100%;
  height: 10px;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  margin-top: 25px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #c084fc);
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.8);
}

/* Preview & Slider */
.preview-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  margin-bottom: 25px;
  border: 1px solid rgba(255,255,255,0.1);
}

.checkered-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(45deg, #1e1b4b 25%, transparent 25%),
    linear-gradient(-45deg, #1e1b4b 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1e1b4b 75%),
    linear-gradient(-45deg, transparent 75%, #1e1b4b 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  z-index: 1;
}

.img-preview {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
}

#imgOriginal {
  z-index: 2;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

#imgResult {
  z-index: 3;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.slider-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: #ffffff;
  z-index: 10;
  transform: translateX(-50%);
  cursor: ew-resize;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.slider-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.6);
  pointer-events: none;
  font-size: 16px;
}

.result-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.result-actions button {
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.5);
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border: none;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(109, 40, 217, 0.6), inset 0 0 0 1px rgba(255,255,255,0.2);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.7), inset 0 0 0 2px #ffffff;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.mt-4 { margin-top: 25px; }
