* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background: #0f172a; color: #f8fafc; display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.app-container { width: 100%; max-width: 480px; background: #1e293b; padding: 24px; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.step { display: none; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.step.active { display: flex; }
.hidden { display: none !important; }

/* Buttons & Checkboxes */
.btn { background: #3b82f6; color: white; border: none; padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; width: 100%; transition: background 0.2s; }
.btn:hover { background: #2563eb; }
.btn:disabled { background: #475569; cursor: not-allowed; }
.btn-secondary { background: #334155; }
.btn-secondary:hover { background: #475569; }

.checkbox-container { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; text-align: left; }

/* Gender Selection */
.gender-selection { width: 100%; margin-top: 10px; }
.gender-selection h3 { font-size: 14px; margin-bottom: 8px; color: #94a3b8; }
.gender-buttons { display: flex; gap: 12px; width: 100%; }
.btn-gender { flex: 1; padding: 12px; background: #334155; border: 2px solid transparent; color: white; border-radius: 8px; font-weight: bold; cursor: pointer; }
.btn-gender.selected { border-color: #3b82f6; background: #1e40af; }

/* Preloader & Loaders */
.spinner { border: 4px solid #334155; border-top: 4px solid #3b82f6; border-radius: 50%; width: 36px; height: 36px; animation: spin 1s linear infinite; }
.spinner.large { width: 60px; height: 60px; border-width: 6px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.progress-bar-container {
  width: 100%;
  height: 18px;
  background-color: #334155;
  border-radius: 9px;
  overflow: hidden;
  margin: 16px 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  width: 0%;
  transition: width 0.3s ease-in-out;
}

#processing-status-text {
  font-size: 15px;
  font-weight: 600;
  color: #38bdf8;
}


/* Media Box */
.media-input-box { width: 100%; min-height: 200px; background: #0f172a; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; position: relative; padding: 12px; }
#photo-preview, #camera-stream { width: 100%; max-height: 250px; object-fit: contain; border-radius: 8px; }
.action-buttons { display: flex; gap: 8px; width: 100%; margin-top: 12px; }

.video-container { width: 100%; border-radius: 12px; overflow: hidden; background: #000; }
.output-actions { display: flex; gap: 12px; width: 100%; }
.checkmark { font-size: 48px; color: #22c55e; margin-bottom: 12px; }