:root {
  --bg-dark: #050505;
  --bg-card: rgba(18, 18, 18, 0.8);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --text-main: #f5f5f5;
  --text-muted: #a0a0a0;
  
  --accent-gemini-start: #ffffff;
  --accent-gemini-end: #888888;
  --accent-flow-start: #777777;
  --accent-flow-end: #222222;
  
  --btn-primary: #ffffff;
  --btn-primary-hover: #e5e5e5;
  --btn-primary-text: #000000;
  
  --box-shadow-glow: 0 0 20px rgba(255, 255, 255, 0.12);
  --transition-smooth: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
  font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  /* Prevent copying across the page */
  -webkit-user-select: none;
  user-select: none;
}

/* Ambient glow backdrops */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(125px);
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
  top: -100px;
  right: -100px;
  animation: floatGlow 15s ease-in-out infinite alternate;
}

.bg-glow-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
  bottom: -50px;
  left: -100px;
  animation: floatGlow 12s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 30px) scale(1.05); }
}

/* App Container Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  position: relative;
  z-index: 1;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bg-card-border);
  flex-wrap: wrap;
  gap: 16px;
}

.btn-theme-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text .brand-name {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, #999999 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.logo-text .brand-name span {
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-gemini-start), var(--accent-gemini-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Hero Section Styles */
.hero-section {
  text-align: center;
  padding: 32px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.2px;
  background: linear-gradient(135deg, #ffffff 40%, #a3a3a3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  margin: 0;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 30px;
    letter-spacing: -0.8px;
  }
  .hero-subtitle {
    font-size: 13px;
  }
}

.privacy-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
}

/* Supported Platforms Bar */
.platforms-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--bg-card-border);
  padding: 10px 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  white-space: nowrap;
}

.platforms-bar::-webkit-scrollbar {
  height: 4px;
}

.platforms-bar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
}

.p-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.p-badges {
  display: flex;
  gap: 12px;
}

.p-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-main);
}

.pb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.color-gemini { background: #ffffff; }
.color-vids { background: #cccccc; }
.color-flow { background: #aaaaaa; }
.color-sora { background: #888888; }
.color-runway { background: #666666; }
.color-luma { background: #444444; }

/* Cards & Stages */
.step-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 24px;
  display: none;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
}

.step-card.active {
  display: block;
  animation: fadeIn 0.3s ease-out forwards;
}

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

/* STEP 1: Upload Zone */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 30px;
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.04);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.08) inset;
}

.pulse-icon {
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
  border-radius: 50%;
  color: var(--text-muted);
  margin-bottom: 16px;
  transition: var(--transition-smooth);
}

.upload-zone:hover .pulse-icon {
  color: #a78bfa;
  transform: scale(1.08);
  background: rgba(124, 58, 237, 0.12);
}

.upload-zone h3 {
  font-size: 19px;
  margin-bottom: 6px;
  font-weight: 600;
}

.upload-hint {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 20px;
}

/* Feature grid in Upload */
.feature-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 800px;
  margin-top: 36px;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.f-icon {
  font-size: 20px;
}

.feature-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.feature-item p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Buttons */
.btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.btn-primary {
  background: var(--btn-primary);
  color: var(--btn-primary-text);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #f87171;
  transform: translateY(-1px);
}

.btn-large {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
}

.btn-glow {
  position: relative;
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, #ffffff, #666666);
  border-radius: 8px;
  z-index: -1;
  opacity: 0;
  transition: var(--transition-smooth);
}

.btn-glow:hover::after {
  opacity: 0.4;
  filter: blur(8px);
}

/* STEP 2: Workspace Editor */
.workspace-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

.viewport-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Video Container */
.video-container {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--bg-card-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 440px;
  aspect-ratio: 16/9;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Playback Controls */
.playback-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.btn-icon {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-icon:hover {
  color: #a78bfa;
  transform: scale(1.08);
}

.time-slider-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

#video-seekbar {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

#video-seekbar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7c3aed;
  cursor: pointer;
  transition: var(--transition-smooth);
}

#video-seekbar::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 6px rgba(124, 58, 237, 0.5);
}

.time-display {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Settings Column styling */
.settings-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card details (Video metadata) */
.card-details {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
}

.card-details h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 6px;
}

.details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.detail-label {
  color: var(--text-muted);
}

.detail-value {
  color: var(--text-main);
  font-weight: 500;
}

/* Automation alert card */
.automation-badge {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
  border-radius: 10px;
}

.badge-icon {
  font-size: 18px;
}

.badge-text h4 {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.badge-text p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.sparkle-icon {
  animation: rotateSparkle 4s linear infinite;
}

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

#change-video-btn {
  margin-top: -6px;
}

/* STEP 3: Processing Screen & Status Steps */
.processing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.loader-ring {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 20px;
}

.ring-gradient {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 20%, #ffffff 100%);
  animation: spin 1.5s linear infinite;
}

.ring-core {
  position: absolute;
  inset: 6px;
  background: #090a0f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
}

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

.processing-content h2 {
  font-size: 20px;
  margin-bottom: 6px;
  font-weight: 600;
}

.processing-sub {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 20px;
}

/* Automated Process Steps Checklist */
.status-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
  text-align: left;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  transition: var(--transition-smooth);
}

.status-marker {
  display: inline-block;
  width: 20px;
  text-align: center;
}

.status-item.waiting {
  color: var(--text-muted);
  opacity: 0.4;
}

.status-item.loading {
  color: #a78bfa;
  font-weight: 500;
  text-shadow: 0 0 6px rgba(167, 139, 250, 0.25);
}

.status-item.done {
  color: #34d399;
}

.render-preview-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16/9;
  background: black;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--bg-card-border);
  margin-bottom: 20px;
}

#processing-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(239, 68, 68, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.progress-bar-container {
  width: 100%;
  max-width: 480px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #333333 0%, #888888 50%, #ffffff 100%);
  transition: width 0.1s linear;
}

.processing-metrics {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 24px;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.m-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.m-val {
  font-size: 15px;
  font-weight: 600;
  color: white;
}

/* STEP 4: Success & Download Comparison */
.export-workspace {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.export-workspace h2 {
  font-size: 22px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.export-sub {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

/* Comparison slider container */
.comparison-slider-container {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--bg-card-border);
  margin-bottom: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.comparison-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.comparison-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: black;
}

/* SECURED VIEWPORT STYLING */
#result-clean-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: black;
}

/* Block select, clicks, drag and drop on media files inside the slider */
.comparison-slider-container video, 
.comparison-slider-container canvas {
  pointer-events: none;
  -webkit-user-drag: none;
}

.clean-wrapper {
  z-index: 2;
  clip-path: inset(0 0 0 50%);
}

.comp-tag {
  position: absolute;
  top: 14px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none; /* Block tags right click */
}

.comp-tag-original {
  left: 14px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
}

.comp-tag-clean {
  right: 14px;
  background: rgba(16, 185, 129, 0.6);
  color: white;
}

/* Dynamic handle for comparison slider */
.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: white;
  z-index: 10;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1px;
  width: 2px;
  background: rgba(255, 255, 255, 0.5);
}

.handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
  color: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  border: 3px solid #ffffff;
  transition: transform 0.1s ease;
}

.comparison-slider-container:hover .handle-button {
  transform: translate(-50%, -50%) scale(1.08);
}

.export-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 720px;
  align-items: center;
}

.export-actions #comp-play-pause {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.export-actions #comp-play-pause:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255,255,255,0.15);
}

/* Razorpay Payment Gate Card */
.payment-gate-card, .download-unlocked-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideIn 0.3s ease-out;
}

.download-unlocked-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

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

.lock-header, .unlock-header {
  display: flex;
  gap: 16px;
  align-items: center;
}

.lock-emoji, .unlock-emoji {
  font-size: 24px;
}

.lock-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.unlock-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.lock-header p, .unlock-header p {
  font-size: 12px;
  color: var(--text-muted);
}

.receipt-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.receipt-row.total {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 8px;
  margin-top: 4px;
  font-weight: 700;
  color: var(--text-main);
  font-size: 14px;
}

.receipt-row.total span {
  color: var(--text-main);
}

.receipt-row.total span:nth-child(2) {
  color: #ffffff;
}

/* History logs section */
.history-section {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 12px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.history-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.history-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  min-width: 600px; /* Force scrollable bounds on mobile */
}

.history-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.history-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.empty-msg {
  text-align: center;
  color: var(--text-muted);
  padding: 24px !important;
}

/* Status badges */
.badge-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.badge-status.success {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.badge-status.processing {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cccccc;
}

/* Footer */
.app-footer {
  margin-top: auto;
  text-align: center;
  padding: 24px 0 16px;
  color: var(--text-muted);
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hidden {
  display: none !important;
}

/* ========================================= */
/* COMPREHENSIVE RESPONSIVE STYLING (MEDIA QUERIES) */
/* ========================================= */

@media (max-width: 992px) {
  .workspace-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .app-container {
    padding: 16px 12px;
  }
  
  .app-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
  }
  
  .privacy-badge {
    align-self: flex-start;
  }

  .step-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
  
  .upload-zone {
    padding: 36px 16px;
  }
  
  .feature-info {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
  }
  
  .feature-item {
    align-items: center;
    text-align: center;
  }
  
  .video-container {
    max-height: 300px;
  }
  
  .platforms-bar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px;
    white-space: normal;
  }

  .platforms-bar::-webkit-scrollbar {
    display: none;
  }

  .platforms-bar {
    scrollbar-width: none;
  }
  
  .p-title {
    font-size: 10px;
    text-align: center;
  }

  .p-badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .p-badge {
    padding: 6px 10px;
    font-size: 11px;
  }

  .comparison-slider-container {
    border-radius: 12px;
  }
  
  .handle-button {
    width: 34px;
    height: 34px;
  }
  
  .payment-gate-card, .download-unlocked-card {
    padding: 16px;
  }
  
  .lock-header, .unlock-header {
    gap: 10px;
  }
  
  .history-section {
    padding: 16px;
    margin-top: 24px;
  }
  
  .history-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .history-header h2 {
    font-size: 14px;
  }

  .history-header #clear-history-btn {
    padding: 6px 12px;
    font-size: 11px;
    white-space: nowrap;
  }

  .history-table {
    min-width: unset;
    font-size: 11px;
  }

  .history-table th,
  .history-table td {
    padding: 8px 10px;
  }

  .history-table th:nth-child(5),
  .history-table td:nth-child(5),
  .history-table th:nth-child(6),
  .history-table td:nth-child(6) {
    display: none;
  }
}

@media (max-width: 480px) {
  .logo-text h1 {
    font-size: 20px;
  }
  
  .logo-text p {
    font-size: 10px;
  }

  .playback-controls {
    padding: 6px 10px;
    gap: 10px;
  }
  
  .time-display {
    font-size: 10px;
  }
  
  .processing-metrics {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    padding: 16px;
  }
  
  .metric {
    align-items: center;
  }

  .comp-tag {
    font-size: 9px;
    padding: 2px 6px;
    top: 8px;
  }
  
  .comp-tag-original {
    left: 8px;
  }
  
  .comp-tag-clean {
    right: 8px;
  }

  .history-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .history-table th,
  .history-table td {
    padding: 6px 8px;
    font-size: 10px;
  }
}

/* LIGHT MODE STYLING OVERRIDES */
body.light-mode {
  --bg-dark: #fcfcfc;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-border: rgba(0, 0, 0, 0.08);
  --text-main: #111111;
  --text-muted: #666666;
  
  --accent-gemini-start: #000000;
  --accent-gemini-end: #666666;
  --accent-flow-start: #333333;
  --accent-flow-end: #888888;
  
  --btn-primary: #000000;
  --btn-primary-hover: #222222;
  --btn-primary-text: #ffffff;
  
  --box-shadow-glow: 0 0 20px rgba(0, 0, 0, 0.05);
}

body.light-mode .bg-glow-1 {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0) 70%);
}

body.light-mode .bg-glow-2 {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0) 70%);
}

body.light-mode .btn-theme-toggle {
  background: rgba(0, 0, 0, 0.04);
  color: #111111;
}

body.light-mode .btn-theme-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
}

body.light-mode .logo-text h1 {
  background: linear-gradient(135deg, #000000 30%, #555555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .btn-glow::after {
  background: linear-gradient(135deg, #000000, #888888);
}

body.light-mode .comparison-handle {
  background: #000000;
}

body.light-mode .handle-button {
  background: #ffffff;
  border: 3px solid #000000;
  color: #000000;
}

body.light-mode .handle-line {
  background: rgba(0, 0, 0, 0.3);
}

body.light-mode .playback-controls {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-mode #video-seekbar {
  background: rgba(0, 0, 0, 0.08);
}

body.light-mode .btn-secondary {
  background: rgba(0, 0, 0, 0.03);
  color: #111111;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .platforms-bar {
  background: rgba(0, 0, 0, 0.01);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-mode .p-badge {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  color: #111111;
}

body.light-mode .color-gemini { background: #000000; }
body.light-mode .color-vids { background: #333333; }
body.light-mode .color-flow { background: #666666; }
body.light-mode .color-sora { background: #888888; }
body.light-mode .color-runway { background: #aaaaaa; }
body.light-mode .color-luma { background: #cccccc; }

body.light-mode .status-list {
  background: rgba(0, 0, 0, 0.01);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-mode .history-table-wrapper {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .history-table th {
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .history-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  color: #111111;
}

body.light-mode .history-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.01);
}

body.light-mode .badge-status.success {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #000000;
}

body.light-mode .badge-status.processing {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #555555;
}

body.light-mode .receipt-box {
  background: rgba(0, 0, 0, 0.01);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-mode .receipt-row.total {
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

/* Premium SEO & FAQ Section Styles */
.seo-faq-section {
  margin-top: 48px;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.seo-container {
  max-width: 1000px;
  margin: 0 auto;
}

.seo-heading {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 40%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.seo-intro-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.seo-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.seo-feat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 24px;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.seo-feat-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.seo-feat-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main);
}

.seo-feat-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.seo-subheading {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-main);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.01);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  user-select: none;
}

.faq-arrow {
  font-size: 10px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: rgba(255, 255, 255, 0.005);
}

.faq-answer p {
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* Open accordion state */
.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* Light mode styles */
body.light-mode .seo-faq-section {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .seo-heading {
  background: linear-gradient(135deg, #111111 40%, #555555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .seo-feat-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

body.light-mode .seo-feat-card:hover {
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .faq-item {
  border-color: rgba(0, 0, 0, 0.04);
}

body.light-mode .faq-item:hover {
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .faq-question {
  background: rgba(0, 0, 0, 0.005);
}

body.light-mode .faq-answer p {
  border-top-color: rgba(0, 0, 0, 0.01);
}

