/* ============================================================================
   CLONY VIDEO AI — styles.css  (FINAL rebuild)
   Clean, self-contained, no external image dependencies.
   ============================================================================ */

:root {
  --bg: #0a0015;
  --bg-card: #140825;
  --bg-card-raised: #1c0f30;
  --primary: #cb11ab;
  --primary-glow: #e936c4;
  --secondary: #7b2cbf;
  --accent: #ff6ec7;
  --success: #00e5a8;
  --warning: #ffc107;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --text-dim: rgba(255, 255, 255, 0.5);
  --border: rgba(203, 17, 171, 0.2);
  --border-bright: rgba(203, 17, 171, 0.45);
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ───────────── Background mesh ─────────────
   Three large radial blobs that slowly drift. Combined with a very subtle
   grid overlay, this creates a modern "space / studio" atmosphere without
   ever needing external images. The blobs use CSS filter: blur(), which is
   cheap even on mobile GPUs. */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 30%, #1a0530 0%, #0a0015 55%);
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  will-change: transform;
}
.mesh-blob-1 {
  width: 580px; height: 580px;
  background: radial-gradient(circle, #cb11ab 0%, transparent 60%);
  top: -100px; left: -100px;
  animation: meshDrift1 22s ease-in-out infinite alternate;
}
.mesh-blob-2 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #7b2cbf 0%, transparent 60%);
  bottom: -150px; right: -150px;
  animation: meshDrift2 28s ease-in-out infinite alternate;
}
.mesh-blob-3 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, #ff6ec7 0%, transparent 60%);
  top: 40%; left: 50%;
  animation: meshDrift3 18s ease-in-out infinite alternate;
}
@keyframes meshDrift1 { to { transform: translate(180px, 120px) scale(1.15); } }
@keyframes meshDrift2 { to { transform: translate(-160px, -100px) scale(1.1); } }
@keyframes meshDrift3 { to { transform: translate(-200px, 180px) scale(0.85); } }

.bg-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(203, 17, 171, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203, 17, 171, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Mouse glow follower — subtle magenta halo following the cursor */
.mouse-glow {
  position: fixed;
  width: 28px; height: 28px;
  background: rgba(203, 17, 171, 0.6);
  border-radius: 50%;
  filter: blur(16px);
  pointer-events: none;
  z-index: 100;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

/* ───────────── App shell ───────────── */
.app { position: relative; z-index: 1; min-height: 100vh; }

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(203, 17, 171, 0.4);
}
.logo-icon svg { width: 22px; height: 22px; fill: white; }
.logo-text {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo-text span { color: var(--primary); }

.header-right { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  padding: 4px;
  background: rgba(45, 15, 70, 0.6);
  border: 1px solid var(--border);
  border-radius: 100px;
}
.lang-btn {
  padding: 6px 14px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 100px;
  transition: all 0.3s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 2px 12px rgba(203, 17, 171, 0.4);
}

.credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(45, 15, 70, 0.6);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
}
.credits-badge .icon { color: var(--warning); }

/* ───────────── Main ───────────── */
.main { max-width: 1000px; margin: 0 auto; padding: 20px 40px 80px; }
.page { display: none; }
.page.active { display: block; animation: fadeUp 0.5s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ───────────── Hero ───────────── */
.hero { text-align: center; padding: 40px 0 30px; }
.hero-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-title-static { display: block; }
.hero-title-dynamic {
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  min-height: 1.2em;
}
.hero-title-text {
  display: inline-block;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-title-text.fade-out { opacity: 0; transform: translateY(-6px); }

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
  transition: opacity 0.3s ease;
}

/* ───────────── Mode selector ───────────── */
.type-selector { padding: 20px 0 40px; }
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.type-card {
  position: relative;
  padding: 24px 18px;
  background: linear-gradient(135deg, rgba(45,15,70,0.6), rgba(30,10,50,0.7));
  border: 1px solid var(--border);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}
.type-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(203, 17, 171, 0.15);
}
.type-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(203,17,171,0.2), rgba(123,44,191,0.15));
  box-shadow: 0 0 30px rgba(203, 17, 171, 0.3);
}
.type-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.type-icon {
  width: 48px; height: 48px;
  background: rgba(203, 17, 171, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.type-icon svg { width: 24px; height: 24px; fill: var(--primary); }
.type-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.type-desc { color: var(--text-dim); font-size: 0.82rem; }

/* ───────────── Form card ───────────── */
.form-card {
  background: linear-gradient(135deg, rgba(28, 15, 48, 0.8), rgba(20, 8, 37, 0.9));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px 40px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.step-dot {
  width: 10px; height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.step-dot.active {
  width: 32px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px var(--primary);
}
.step-dot.completed { background: var(--success); }
.step-line {
  width: 30px; height: 2px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.3s ease;
}
.step-line.completed { background: var(--success); }

.form-step { display: none; }
.form-step.active { display: block; animation: fadeUp 0.4s ease; }

.step-header { margin-bottom: 28px; }
.step-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(203, 17, 171, 0.15);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-glow);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.step-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.step-desc { color: var(--text-muted); font-size: 0.95rem; }

/* ───────────── Inputs ───────────── */
.input-group { margin-bottom: 24px; }
.input-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.text-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(10, 0, 21, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.text-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(203, 17, 171, 0.15);
}
.text-input::placeholder { color: var(--text-dim); }
textarea.textarea { min-height: 100px; resize: vertical; font-family: inherit; }
select.text-input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M7 10l5 5 5-5z'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }

.hint { font-size: 0.8rem; color: var(--text-dim); margin-top: 6px; }

/* ───────────── Upload zone ───────────── */
.upload-zone {
  padding: 40px 20px;
  background: rgba(10, 0, 21, 0.4);
  border: 2px dashed var(--border);
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(203, 17, 171, 0.05);
}
.upload-zone.has-file { border-style: solid; border-color: var(--success); background: rgba(0, 229, 168, 0.05); }
.upload-text { font-size: 1rem; margin-bottom: 6px; }
.upload-text strong { color: var(--primary-glow); }
.upload-hint { color: var(--text-dim); font-size: 0.82rem; }

.upload-progress { display: none; margin-top: 14px; }
.upload-progress.show { display: block; }
.upload-progress .bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 8px;
}
.upload-progress .fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

/* ───────────── Buttons ───────────── */
.btn-group {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
  flex: 1;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 8px 24px rgba(203, 17, 171, 0.35);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(203, 17, 171, 0.5); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--border-bright); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { color: var(--text); }
.btn-full { flex: 1; width: 100%; }
.btn-small { padding: 8px 14px; font-size: 0.85rem; flex: 0 0 auto; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────────── Avatar picker ───────────── */
.avatar-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(45, 15, 70, 0.6);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-pill:hover { border-color: var(--border-bright); color: var(--text); }
.filter-pill.active {
  background: linear-gradient(135deg, rgba(203,17,171,0.25), rgba(123,44,191,0.15));
  border-color: var(--primary);
  color: var(--text);
  box-shadow: 0 0 16px rgba(203, 17, 171, 0.25);
}
.filter-pill .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 8px;
  background: rgba(203, 17, 171, 0.25);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 800;
}
.filter-pill.active .count {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}

.avatar-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}
.avatar-toolbar .text-input { flex: 1; }

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding: 4px;
}
.avatar-grid::-webkit-scrollbar { width: 8px; }
.avatar-grid::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 4px; }

.avatar-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.avatar-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1c0f30, #140825);
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
}
.avatar-tile:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.avatar-tile.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary), 0 0 24px rgba(203, 17, 171, 0.5);
}
.avatar-tile img, .avatar-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-tile video { display: none; }
.avatar-tile:hover video { display: block; }

/* Fallback placeholder for tiles with no preview image — a gradient with
   the avatar's initials, so every tile is always visually distinct. */
.avatar-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.avatar-name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 10px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  color: white;
}

.avatar-badge-mine {
  position: absolute;
  top: 8px; left: 8px;
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--success), #00c56d);
  border-radius: 100px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #05160b;
  box-shadow: 0 4px 12px rgba(0, 229, 168, 0.4);
  z-index: 2;
}
.avatar-tile.selected::after {
  content: '✓';
  position: absolute;
  top: 8px; right: 8px;
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(203, 17, 171, 0.5);
  z-index: 2;
}

/* Look row — secondary picker shown after an avatar is selected */
.look-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
}
.look-tile {
  flex: 0 0 auto;
  width: 90px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1c0f30, #140825);
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.look-tile:hover { border-color: var(--border-bright); }
.look-tile.selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.look-tile img { width: 100%; height: 100%; object-fit: cover; }
.look-tile .look-name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(203, 17, 171, 0.4), rgba(123, 44, 191, 0.3));
}

/* ───────────── Select cards (style pickers on step 3) ───────────── */
.select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}
.select-card {
  padding: 16px 14px;
  background: rgba(45, 15, 70, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.select-card:hover { border-color: var(--border-bright); }
.select-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(203, 17, 171, 0.2), rgba(123, 44, 191, 0.15));
  box-shadow: 0 0 16px rgba(203, 17, 171, 0.2);
}
.select-label { font-weight: 700; margin-bottom: 2px; font-size: 0.95rem; }
.select-desc { font-size: 0.78rem; color: var(--text-dim); }

/* ───────────── Color swatches ───────────── */
.color-palette { display: flex; gap: 10px; flex-wrap: wrap; }
.color-swatch {
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.selected {
  border-color: white;
  box-shadow: 0 0 0 2px var(--primary), 0 6px 18px rgba(203, 17, 171, 0.4);
}

/* ───────────── Toggles ───────────── */
.toggle-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(45, 15, 70, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.toggle:hover { border-color: var(--border-bright); }
.toggle input { display: none; }
.toggle-slider {
  position: relative;
  width: 40px; height: 22px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.toggle input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 12px rgba(203, 17, 171, 0.5);
}
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }
.toggle-label { font-weight: 600; font-size: 0.88rem; }
.toggle-sublabel { display: block; font-size: 0.78rem; color: var(--text-dim); margin-top: 2px; font-weight: 400; }

.toggle-highlight {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(255, 145, 0, 0.05));
  border-color: rgba(255, 193, 7, 0.3);
  padding: 16px 18px;
}
.toggle-highlight:hover { border-color: rgba(255, 193, 7, 0.5); }
.toggle-highlight input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--warning), #ff9100);
  box-shadow: 0 0 12px rgba(255, 193, 7, 0.5);
}

/* ───────────── Processing page ───────────── */
.processing-container {
  max-width: 560px;
  margin: 80px auto;
  text-align: center;
}
.sending-icon {
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plane-svg {
  width: 48px; height: 48px;
  fill: white;
  z-index: 2;
  filter: drop-shadow(0 6px 16px rgba(203, 17, 171, 0.8));
}
.ripple {
  position: absolute;
  inset: 0;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: ripple 2s ease-out infinite;
}
.ripple:nth-child(2) { animation-delay: 0.7s; }
.ripple:nth-child(3) { animation-delay: 1.4s; }
@keyframes ripple {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.processing-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 6px;
}
.processing-time {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(203, 17, 171, 0.15);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--primary-glow);
  margin-bottom: 32px;
}
.processing-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
  margin: 0 auto 32px;
  text-align: left;
}
.proc-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(45, 15, 70, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-dim);
  transition: all 0.3s ease;
}
.proc-step.active {
  color: white;
  border-color: var(--primary);
  background: rgba(203, 17, 171, 0.1);
  box-shadow: 0 0 16px rgba(203, 17, 171, 0.2);
}
.proc-step.done { color: var(--success); border-color: rgba(0, 229, 168, 0.3); }
.proc-dot {
  width: 10px; height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
}
.proc-step.active .proc-dot { background: var(--primary); box-shadow: 0 0 8px var(--primary); animation: pulseDot 1.2s ease-in-out infinite; }
.proc-step.done .proc-dot { background: var(--success); }
@keyframes pulseDot { 50% { transform: scale(1.4); } }

.processing-desc { color: var(--text-muted); max-width: 440px; margin: 0 auto; line-height: 1.5; font-size: 0.92rem; }

/* ───────────── Result page ───────────── */
.result-container { padding: 30px 0; }
.result-header { text-align: center; margin-bottom: 32px; }
.result-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 30px;
  align-items: start;
}
.video-preview {
  background: black;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.video-preview video { width: 100%; height: 100%; object-fit: cover; }

.result-side { display: flex; flex-direction: column; gap: 20px; }
.cover-card {
  padding: 16px;
  background: rgba(45, 15, 70, 0.5);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.cover-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.cover-card img { width: 100%; border-radius: 10px; margin-bottom: 10px; }

.action-row { display: flex; gap: 10px; }

/* ───────────── Notification ───────────── */
.notification {
  position: fixed;
  top: 20px; right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(28, 15, 48, 0.95);
  border: 1px solid var(--primary);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  max-width: 400px;
}
.notification.show { transform: translateX(0); }
.notification.error { border-color: #ff4444; }
.notification.success { border-color: var(--success); }
.notification-text { font-weight: 600; font-size: 0.9rem; }
.notification-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
}

/* ───────────── Mobile ───────────── */
@media (max-width: 768px) {
  .header { padding: 16px 20px; }
  .main { padding: 10px 20px 60px; }
  .header-right .credits-badge { display: none; }
  .form-card { padding: 28px 20px; border-radius: 18px; }
  .btn-group { flex-direction: column; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .result-grid { grid-template-columns: 1fr; }
  .avatar-grid { grid-template-columns: repeat(3, 1fr); }
}
