/* =========================================================
   InmoPro — Design System
   ========================================================= */

:root {
  --bg-primary:    #0a0a0a;
  --bg-secondary:  #111111;
  --bg-card:       #161616;
  --bg-input:      #141414;
  --gold:          #C9A84C;
  --gold-light:    #E2C16B;
  --gold-dark:     #A8862D;
  --gold-bg:       rgba(201, 168, 76, 0.08);
  --gold-border:   rgba(201, 168, 76, 0.35);
  --text-primary:  #FFFFFF;
  --text-secondary:#999999;
  --text-muted:    #555555;
  --border:        #252525;
  --border-hover:  #333333;
  --error:         #e05252;
  --success:       #4caf76;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-pill:   999px;
  --font-serif:    'Playfair Display', Georgia, serif;
  --font-sans:     'Inter', 'Segoe UI', system-ui, sans-serif;
  --transition:    0.18s ease;
  --shadow-gold:   0 4px 24px rgba(201, 168, 76, 0.2);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ─────────────────────────────────────────────── */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 80px;
}

.container {
  width: 100%;
  max-width: 860px;
}

/* ── Logo / Brand ───────────────────────────────────────── */
.brand {
  text-align: center;
  margin-bottom: 40px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Step Indicators ────────────────────────────────────── */
.step-indicators {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 56px;
  gap: 0;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.3;
  transition: opacity var(--transition);
  min-width: 80px;
}

.step-indicator.active  { opacity: 1; }
.step-indicator.completed { opacity: 0.7; }

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.step-indicator.active .step-number {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.1);
}

.step-indicator.completed .step-number {
  border-color: var(--gold);
  background: var(--gold);
  color: #000;
}

.step-indicator.completed .step-number::after {
  content: '✓';
  font-size: 0.85rem;
  font-weight: 700;
}

.step-indicator.completed .step-number span { display: none; }

.step-label {
  font-size: 0.68rem;
  text-align: center;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 72px;
  line-height: 1.3;
}

.step-indicator.active .step-label { color: var(--gold); }

.step-connector {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 21px 8px 0;
  max-width: 80px;
}

/* ── Step Header ────────────────────────────────────────── */
.step-header {
  text-align: center;
  margin-bottom: 48px;
}

.step-label-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.step-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 8px;
}

.step-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ── Form Fields ────────────────────────────────────────── */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid-1 { display: grid; gap: 20px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.field-label .req { color: var(--gold); margin-left: 2px; }

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 14px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

input.error, select.error, textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.1);
}

.error-msg {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 2px;
}

/* Select custom arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A84C' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

select option {
  background: #1a1a1a;
  color: var(--text-primary);
}

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* ── Price Input with EUR Badge ─────────────────────────── */
.input-with-badge {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-badge {
  position: absolute;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--gold-bg);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
}

.input-with-badge input {
  padding-left: 84px;
}

/* ── Number Stepper ─────────────────────────────────────── */
.stepper {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-input);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.stepper:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.stepper-btn {
  width: 44px;
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}

.stepper-btn:hover { background: var(--gold-bg); }
.stepper-btn:active { background: rgba(201, 168, 76, 0.15); }

.stepper input[type="number"] {
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-radius: 0;
  text-align: center;
  width: 70px;
  flex-shrink: 0;
  box-shadow: none !important;
  background: transparent;
}

.stepper input[type="number"]:focus { outline: none; }

/* ── Amenidades Grid ────────────────────────────────────── */
.amenidades-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.amenidad-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--bg-input);
  user-select: none;
}

.amenidad-label:hover {
  border-color: var(--border-hover);
  background: #1a1a1a;
}

.amenidad-label:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-bg);
}

.amenidad-label input[type="checkbox"] { display: none; }

.amenidad-checkmark {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-hover);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  background: transparent;
}

.amenidad-label:has(input:checked) .amenidad-checkmark {
  background: var(--gold);
  border-color: var(--gold);
}

.amenidad-checkmark::after {
  content: '';
  display: none;
  width: 5px;
  height: 9px;
  border: 2px solid #000;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.amenidad-label:has(input:checked) .amenidad-checkmark::after { display: block; }

.amenidad-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.3;
  transition: color var(--transition);
}

.amenidad-label:has(input:checked) .amenidad-text { color: var(--gold); }

/* ── File Upload Zone ───────────────────────────────────── */
.upload-zone {
  border: 1.5px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  background: var(--bg-input);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.upload-zone:hover {
  border-color: var(--gold-border);
  background: var(--gold-bg);
}

.upload-zone.has-file {
  border-color: var(--gold);
  border-style: solid;
  background-size: cover;
  background-position: center;
  padding: 0;
  min-height: 200px;
}

.upload-zone.has-file .upload-content { display: none; }

.upload-zone.has-file::after {
  content: '✓ Foto cargada';
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.upload-icon { font-size: 2rem; line-height: 1; }

.upload-title {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.upload-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Additional photos zone — smaller */
.upload-zone-sm {
  padding: 24px;
  min-height: 90px;
}

.upload-zone-sm .upload-icon { font-size: 1.5rem; }
.upload-zone-sm .upload-title { font-size: 0.82rem; }

/* ── Agent Card Fields ──────────────────────────────────── */
.agent-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}

/* ── Navigation Buttons ─────────────────────────────────── */
.form-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  color: #000;
  border: none;
  border-radius: var(--radius-pill);
  padding: 15px 36px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.4);
}

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  border-color: var(--gold-border);
  color: var(--gold);
  background: var(--gold-bg);
}

/* ── Error Banner ───────────────────────────────────────── */
.error-banner {
  background: rgba(224, 82, 82, 0.1);
  border: 1px solid rgba(224, 82, 82, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #f08080;
  font-size: 0.88rem;
  margin-bottom: 32px;
  text-align: center;
}

/* ── Section Separator ──────────────────────────────────── */
.section-sep {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

/* ── Loading Overlay ────────────────────────────────────── */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

.loading-card {
  text-align: center;
  padding: 48px 56px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 360px;
}

.loading-spinner {
  width: 52px;
  height: 52px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}

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

.loading-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.loading-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.loading-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

/* ── Results Page ───────────────────────────────────────── */
.results-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

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

.portada-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: block;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.sidebar-card-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.agent-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.agent-contact {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.spec-row:last-child { border-bottom: none; padding-bottom: 0; }

.spec-key {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spec-val {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

.spec-val.gold { color: var(--gold); font-weight: 700; }

/* Content cards */
.results-main { display: flex; flex-direction: column; gap: 20px; }

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.content-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.content-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.btn-copy {
  background: var(--gold-bg);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
}

.btn-copy:hover {
  background: var(--gold);
  color: #000;
}

.btn-copy.copied {
  background: rgba(76, 175, 118, 0.15);
  color: var(--success);
  border-color: rgba(76, 175, 118, 0.3);
}

.content-text {
  padding: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  white-space: pre-wrap;
}

/* Additional photos strip */
.photos-strip-section { margin-bottom: 28px; }

.photos-strip-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.photos-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.photos-strip img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  border: 1px solid var(--border);
}

/* Results actions */
.results-actions {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

/* Results header */
.results-header {
  text-align: center;
  margin-bottom: 40px;
}

.results-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(76, 175, 118, 0.12);
  border: 1px solid rgba(76, 175, 118, 0.25);
  color: var(--success);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 760px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .amenidades-grid { grid-template-columns: repeat(2, 1fr); }
  .results-layout { grid-template-columns: 1fr; }
  .agent-fields { grid-template-columns: 1fr; }
  .step-label { display: none; }
  .step-connector { max-width: 40px; }
  .step-indicator { min-width: 42px; }
  .page-wrapper { padding: 24px 16px 60px; }
}

@media (max-width: 480px) {
  .amenidades-grid { grid-template-columns: repeat(2, 1fr); }
  .form-nav { flex-direction: column-reverse; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════
   Results Page — Tab Layout
   ═══════════════════════════════════════════════════════════ */

/* ── Results Hero (dark header) ─────────────────────────── */
.results-hero {
  background: linear-gradient(160deg, #1e1408 0%, #130e05 55%, #0a0a0a 100%);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  text-align: center;
  padding: 44px 32px 0;
}

.hero-check {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #000;
  box-shadow: 0 0 0 8px rgba(201, 168, 76, 0.12);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 32px;
}

/* ── Tab Navigation ─────────────────────────────────────── */
.tab-nav {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 4px;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 18px 12px;
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  bottom: -1px;
}

.tab-btn:hover:not([disabled]) {
  color: var(--text-secondary);
}

.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.tab-btn[disabled],
.tab-btn.tab-soon {
  opacity: 0.28;
  cursor: not-allowed;
}

/* ── Tab Icon Boxes ─────────────────────────────────────── */
.tab-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tab-icon-pdf  { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.tab-icon-mail { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.tab-icon-video{ background: rgba(255,255,255,0.08); color: var(--text-muted); }

.tab-icon-ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.tab-btn.active .tab-icon-pdf,
.tab-btn.active .tab-icon-mail,
.tab-btn.active .tab-icon-video {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
}

.tab-label-text { line-height: 1; }

/* ── Tab Panels ─────────────────────────────────────────── */
.tab-panels {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  min-height: 360px;
}

.tab-panel {
  padding: 40px 36px;
}

.hidden { display: none !important; }

/* ── Panel Header ───────────────────────────────────────── */
.panel-header {
  margin-bottom: 28px;
}

.panel-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.panel-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ── PDF Download Card ──────────────────────────────────── */
.download-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.download-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.download-card-info { flex: 1; min-width: 180px; }

.download-card-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.download-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.download-btn { flex-shrink: 0; text-decoration: none; }

/* ── Instagram Preview ──────────────────────────────────── */
.ig-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.ig-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.ig-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #ffffff;
}

.ig-logo-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ig-card-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: #111;
  font-family: var(--font-sans);
}

.ig-preview-img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.ig-no-preview {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: #888;
  font-size: 0.88rem;
}

.ig-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ig-size-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ── Coming Soon ────────────────────────────────────────── */
.coming-soon {
  text-align: center;
  padding: 80px 40px;
  opacity: 0.45;
}

.coming-soon-icon {
  font-size: 3.2rem;
  margin-bottom: 18px;
  line-height: 1;
}

.coming-soon h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.coming-soon p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ── Responsive overrides ───────────────────────────────── */
@media (max-width: 760px) {
  .results-hero { padding: 32px 20px 0; }
  .tab-panel    { padding: 28px 20px; }
  .tab-btn      { padding: 12px 10px 10px; font-size: 0.52rem; }
  .download-card { flex-direction: column; align-items: flex-start; }
  .download-btn  { width: 100%; text-align: center; justify-content: center; }
  .ig-card       { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   Instagram Post — Unified Card + Actions
   ═══════════════════════════════════════════════════════════ */

/* ── Unified image + caption card ───────────────────────────── */
.igp-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 52px rgba(0, 0, 0, 0.42);
  max-width: 480px;
  margin: 0 auto;
}

.igp-img-section { line-height: 0; }

.igp-img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.igp-no-image {
  aspect-ratio: 1 / 1;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.88rem;
}

/* Caption area — same card, below image */
.igp-caption-section {
  border-top: 1px solid #efefef;
  max-height: 140px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.igp-caption-text {
  padding: 14px 16px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  outline: none;
  min-height: 88px;
  white-space: pre-wrap;
  word-break: break-word;
  cursor: text;
  transition: background 0.15s;
}

.igp-caption-text:focus { background: #fffef6; }

.igp-caption-text:empty::before {
  content: attr(data-placeholder);
  color: #aaa;
  pointer-events: none;
}

/* ── Action row ─────────────────────────────────────────────── */
.igp-actions {
  max-width: 480px;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.igp-actions-left,
.igp-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Dark pill button — Descargar / Caption */
.btn-dark-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #1c1c1e;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}
.btn-dark-pill:hover  { background: #2c2c2e; transform: translateY(-1px); }
.btn-dark-pill:active { transform: translateY(0); }

/* Publish button */
.btn-publish {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #e83840;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}
.btn-publish:hover  { background: #cc2a32; transform: translateY(-1px); }
.btn-publish:active { transform: translateY(0); }

/* Account selector */
.igp-acct-wrap    { position: relative; }

.igp-acct-btn {
  padding: 10px 14px;
  font-weight: 500;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#igp-acct-arrow {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.igp-acct-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: #1c1c1e;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 200;
}

.igp-acct-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  font-size: 0.82rem;
  color: #ffffff;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.12s;
}
.igp-acct-option:hover           { background: rgba(255, 255, 255, 0.08); }
.igp-acct-option.igp-acct-selected {
  background: #2563eb;
}
.igp-acct-option.igp-acct-selected:hover { background: #1d4ed8; }

/* Toast feedback */
.igp-toast {
  display: none;
  text-align: center;
  max-width: 480px;
  margin: 12px auto 0;
  padding: 8px 20px;
  font-size: 0.8rem;
  color: var(--success);
  background: rgba(76, 175, 118, 0.1);
  border: 1px solid rgba(76, 175, 118, 0.25);
  border-radius: var(--radius-pill);
  animation: igpFadeIn 0.2s ease;
}

@keyframes igpFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* Publish feedback */
.publish-feedback {
  max-width: 480px;
  margin: 14px auto 0;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.83rem;
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.22s ease;
  line-height: 1.5;
}
.publish-feedback a { color: inherit; font-weight: 700; margin-left: 8px; text-decoration: underline; }
.publish-feedback--loading { background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.3); color: var(--gold); }
.publish-feedback--success { background: rgba(76,175,118,0.12); border: 1px solid rgba(76,175,118,0.3); color: var(--success); }
.publish-feedback--error   { background: rgba(224,82,82,0.1); border: 1px solid rgba(224,82,82,0.3); color: var(--error); text-align: left; }

/* Config hint (when Upload Post is not configured) */
.publish-config-hint { max-width: 480px; margin: 14px auto 0; font-size: 0.76rem; color: var(--text-muted); text-align: center; line-height: 1.6; }
.publish-config-hint code { background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-size: 0.72rem; color: var(--gold); font-family: 'Courier New', monospace; }

/* Responsive */
@media (max-width: 540px) {
  .igp-card    { max-width: 100%; border-radius: 10px; }
  .igp-actions { max-width: 100%; }
  .igp-actions-left,
  .igp-actions-right { gap: 6px; }
  .btn-dark-pill,
  .btn-publish { padding: 9px 14px; font-size: 0.78rem; }
  .igp-acct-btn { max-width: 140px; }
}

/* ═══════════════════════════════════════════════════════════════
   IMAGES STEP — photos layout (form step 4)
   ═══════════════════════════════════════════════════════════════ */
.photos-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}
@media (max-width: 680px) { .photos-layout { grid-template-columns: 1fr; } }

.photos-badge-label {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .07em;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.photos-col-label { margin-bottom: 10px; }
.photos-col-hint  { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* Portada preview */
.portada-preview-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portada-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.portada-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.65);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.portada-remove-btn:hover { background: rgba(220,38,38,.85); }

/* Extra thumbs grid */
.extras-thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.extras-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: grab;
  border: 2px solid transparent;
  transition: border-color .15s, opacity .15s;
}
.extras-thumb.dragging   { opacity: .45; cursor: grabbing; }
.extras-thumb.drag-over  { border-color: var(--gold); }
.extras-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.extras-thumb-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}
.extras-thumb-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0,0,0,.6);
  border: none;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: .72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s, background .15s;
}
.extras-thumb:hover .extras-thumb-remove { opacity: 1; }
.extras-thumb-remove:hover { background: rgba(220,38,38,.85); }

/* Format toggle buttons (Story / Carrusel checkboxes) */
.formats-section { margin-top: 6px; }
.formats-title   { font-size: .78rem; font-weight: 600; color: var(--text-muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.format-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 14px 18px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
  transition: border-color .15s, background .15s;
}
.format-toggle input[type=checkbox] { display: none; }
.format-toggle-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  transition: border-color .15s, background .15s, color .15s;
}
.format-toggle:hover { border-color: rgba(201,168,76,.4); }
.format-toggle.active {
  border-color: var(--gold);
  background: rgba(201,168,76,.07);
}
.format-toggle.active .format-toggle-check {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}
.format-toggle-text { font-size: .9rem; font-weight: 500; color: var(--text-primary); }

/* Submit button CTA style */
.btn-submit-cta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  padding: 15px 30px;
}
.submit-timing-note {
  text-align: center;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   STORY TAB — mobile phone mockup
   ═══════════════════════════════════════════════════════════════ */
.story-mockup-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 8px auto 0;
}
.story-mockup-phone {
  background: #fff;
  border-radius: 32px;
  padding: 12px 10px 10px;
  box-shadow: 0 4px 32px rgba(0,0,0,.28);
  width: 280px;
  position: relative;
}
.story-mockup-notch {
  width: 50px;
  height: 6px;
  background: #ccc;
  border-radius: 3px;
  margin: 0 auto 8px;
}
.story-mockup-screen {
  border-radius: 14px;
  overflow: hidden;
  background: #111;
}
.story-mockup-topbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  background: #111;
}
.story-mockup-img {
  width: 100%;
  aspect-ratio: 9/16;
  display: block;
  object-fit: cover;
}
.story-mockup-dim {
  font-size: .73rem;
  color: var(--text-muted);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   CAROUSEL TAB — draggable slides strip
   ═══════════════════════════════════════════════════════════════ */
.carousel-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,.3) transparent;
}
.carousel-strip::-webkit-scrollbar { height: 4px; }
.carousel-strip::-webkit-scrollbar-thumb { background: rgba(201,168,76,.35); border-radius: 2px; }

.carousel-slide-thumb {
  position: relative;
  flex: 0 0 200px;
  width: 200px;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: grab;
  border: 2px solid var(--border);
  transition: border-color .15s, transform .15s, opacity .15s;
  user-select: none;
}
.carousel-slide-thumb:hover  { border-color: rgba(201,168,76,.5); }
.carousel-slide-thumb.dragging   { opacity: .4; cursor: grabbing; transform: scale(.97); }
.carousel-slide-thumb.drag-over  { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.carousel-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.carousel-slide-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(10,15,30,.8);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  pointer-events: none;
}

.carousel-scrollbar {
  height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  margin: 2px 0 6px;
  overflow: hidden;
}
.carousel-scrollbar-track {
  height: 100%;
  width: 60%;
  background: var(--gold);
  border-radius: 2px;
  opacity: .65;
}

.carousel-drag-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .77rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   EMAIL TAB — browser mockup preview
   ═══════════════════════════════════════════════════════════════ */
.email-mockup-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f0ece6;
}

.email-mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e0dbd4;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.email-mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.email-mockup-title {
  flex: 1;
  text-align: center;
  font-size: .8rem;
  color: #666;
  font-family: var(--font-sans);
}

.email-mockup-body {
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   GUIÓN STEP — Script scene cards
   ═══════════════════════════════════════════════════════════════ */

/* Loading spinner */
.script-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(201,168,76,.18);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Scene card */
.scene-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color .2s;
}
.scene-card:focus-within {
  border-color: rgba(201,168,76,.45);
}

.scene-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.scene-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scene-emoji {
  font-size: 1.3rem;
  line-height: 1;
}

.scene-name {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.scene-badge {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Card body — two columns */
.scene-card-body {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 16px;
  padding: 16px 20px 14px;
  align-items: start;
}

/* Textarea column */
.scene-text-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scene-textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: .92rem;
  line-height: 1.6;
  padding: 12px 14px;
  resize: vertical;
  min-height: 90px;
  transition: border-color .2s;
  font-family: var(--font-sans);
}
.scene-textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.scene-textarea--over {
  border-color: var(--error) !important;
}

.scene-meta {
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}
.scene-meta-sep { opacity: .4; }
.scene-wordcount--over { color: var(--error); font-weight: 600; }

/* Photo upload column */
.scene-photo-col { display: flex; flex-direction: column; }

.scene-photo-zone {
  width: 100%;
  aspect-ratio: 4/3;
  border: 1.5px dashed rgba(255,255,255,.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, background .2s;
  background: rgba(255,255,255,.03);
}
.scene-photo-zone:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,.05);
}
.scene-photo-zone--filled {
  border-style: solid;
  border-color: rgba(201,168,76,.35);
}

.scene-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: .78rem;
}

.scene-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scene-photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,.7);
  border: none;
  color: #fff;
  font-size: .75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
}
.scene-photo-remove:hover { background: var(--error); }

/* Summary bar */
.script-summary-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(201,168,76,.06);
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 12px;
  margin-top: 8px;
}
.script-summary-item {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: .88rem;
  color: var(--text-sub);
}
.script-summary-value {
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
}
.script-summary-label { font-size: .78rem; }
.script-summary-sep { color: var(--border); }

@media (max-width: 580px) {
  .scene-card-body {
    grid-template-columns: 1fr;
  }
  .scene-photo-zone {
    aspect-ratio: 16/7;
  }
}

/* ── VIDEO TAB ─────────────────────────────────────────────────────────────── */
.video-state         { display: block; }
.video-state.hidden  { display: none !important; }

/* Rendering — centred loading card */
.video-render-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 48px;
  text-align: center;
}
.video-clap-icon {
  font-size: 3.2rem;
  line-height: 1;
  margin-bottom: 18px;
}
.video-clap-anim {
  animation: videoClap 1.5s ease-in-out infinite alternate;
}
@keyframes videoClap {
  from { transform: scale(1) rotate(-5deg); }
  to   { transform: scale(1.14) rotate(5deg); }
}
.video-render-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.video-render-msg {
  color: var(--text-secondary);
  font-size: .88rem;
  margin: 0 0 20px;
  min-height: 1.4em;
}
.video-progress-track {
  width: 100%;
  max-width: 420px;
  height: 7px;
  background: var(--bg-input);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 10px;
}
.video-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold), #e2c16b);
  border-radius: 100px;
  transition: width .5s ease;
}
.video-progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 420px;
  justify-content: space-between;
}
.video-progress-pct {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}
.video-render-note {
  color: var(--text-sub);
  font-size: .78rem;
  text-align: right;
  flex: 1;
}

/* Done — phone mockup reuses .story-mockup-* styles already defined */
/* Error */
.video-error-msg {
  color: #e87070;
  font-size: .9rem;
  max-width: 380px;
  margin: 0 auto 4px;
}
