:root {
  --bg: #07090f;
  --bg-elev: #0e1320;
  --bg-card: #121829;
  --border: rgba(255, 255, 255, 0.09);
  --border-gold: rgba(245, 184, 46, 0.55);
  --text: #f3f6fc;
  --muted: #9aa7bd;
  --gold: #f5b82e;
  --gold-soft: rgba(245, 184, 46, 0.14);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.14);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.14);
  --blue: #3b82f6;
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 20% -10%, rgba(245, 184, 46, 0.10), transparent 45%),
              radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.09), transparent 40%),
              var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* No horizontal page scroll at any width (clip keeps position: sticky working, unlike hidden) */
html, body { overflow-x: clip; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 9, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5b82e, #f97316);
  display: grid;
  place-items: center;
  color: #0b0e16;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 6px 20px rgba(245, 184, 46, 0.35);
}
.brand span em { font-style: normal; color: var(--gold); }
.nav-links { display: flex; gap: 18px; align-items: center; flex-shrink: 1; }
.nav-links a { color: var(--muted); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-user-email { font-size: 13px; color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-short { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  padding: 10px 15px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { border-color: rgba(255,255,255,0.24); transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-gold {
  background: linear-gradient(135deg, #f5b82e, #f59e0b);
  color: #090c14;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(245, 184, 46, 0.25);
}
.btn-gold:hover { background: linear-gradient(135deg, #fbbf24, #f59e0b); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 13px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
}
.pill-gold { background: var(--gold-soft); color: var(--gold); border-color: rgba(245,184,46,0.4); }
.pill-green { background: var(--green-soft); color: var(--green); border-color: rgba(34,197,94,0.35); }
.pill-red { background: var(--red-soft); color: #f87171; border-color: rgba(239,68,68,0.35); }

/* Hero */
.hero { padding: 44px 0 34px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: center;
}
.hero-copy { min-width: 0; text-align: left; }
.hero-badge { white-space: normal; text-align: left; line-height: 1.35; }
.hero h1 {
  font-size: clamp(30px, 3.7vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 16px 0 14px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 610px;
  margin: 0 0 24px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-lg { padding: 13px 18px; font-size: 14.5px; }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.metric {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  min-width: 0;
}
.metric strong { display: block; font-size: 15.5px; color: var(--text); white-space: nowrap; }
.metric span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.35; color: var(--muted); }

/* Hero showcase: dark-gold bento card with the vertical Pro demo */
.hero-showcase {
  justify-self: end;
  width: 100%;
  max-width: 420px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid var(--border-gold);
  background: radial-gradient(circle at 50% 0%, rgba(245, 184, 46, 0.20), transparent 62%),
              linear-gradient(180deg, #171d30, #0c111d);
  box-shadow: 0 30px 80px rgba(245, 184, 46, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.hero-chip-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(245, 184, 46, 0.35);
  background: rgba(245, 184, 46, 0.08);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: transform 0.12s ease, background 0.15s ease;
}
.hero-chip:hover { text-decoration: none; background: rgba(245, 184, 46, 0.17); transform: translateY(-1px); }
.hero-video-frame {
  width: 100%;
  max-width: 262px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #05070d;
  border: 1px solid rgba(245, 184, 46, 0.5);
  box-shadow: 0 0 0 5px rgba(245, 184, 46, 0.07), 0 18px 40px rgba(0, 0, 0, 0.5);
}
.hero-video-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.hero-video-cap { text-align: center; font-size: 11.5px; color: var(--muted); }

/* "All in one window" bento: 6 feature cards */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento-card {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  scroll-margin-top: 92px;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.bento-card:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.bento-card:target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.14); }
.bento-ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 13px;
  font-size: 22px;
  background: var(--gold-soft);
  border: 1px solid rgba(245, 184, 46, 0.3);
}
.bento-card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; }
.bento-card p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* Sections */
section.block { padding: 54px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 10px 0 10px; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin: 0; font-size: 16px; }

/* Free vs Pro Showcase */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.vs-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vs-card.pro {
  border-color: var(--border-gold);
  background: linear-gradient(180deg, rgba(245, 184, 46, 0.08), rgba(18, 24, 41, 0.96) 35%);
  box-shadow: 0 20px 60px rgba(245, 184, 46, 0.10);
}
.vs-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.vs-header h3 { margin: 0; font-size: 20px; }
.video-frame {
  position: relative;
  width: 100%;
  max-width: 310px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #05070d;
  border: 1px solid var(--border);
}
.vs-card.pro .video-frame { border-color: rgba(245, 184, 46, 0.45); }
.video-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
video:fullscreen, video:-webkit-full-screen { object-fit: contain !important; background: #000 !important; }
/* Status pill sits ABOVE the video (never over the frame, where it collided with the burned-in title) */
.video-tag-row { display: flex; justify-content: center; }
.video-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
}
.video-tag.free { background: rgba(15, 23, 42, 0.82); color: #cbd5e1; border: 1px solid rgba(255,255,255,0.2); }
.video-tag.pro { background: rgba(245, 184, 46, 0.92); color: #090c14; }
.vs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.vs-list li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.vs-list li.ok { color: var(--text); }
.vs-list li.no { color: #94a3b8; }

/* Competitor comparison table */
.table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
tr.highlight td { background: rgba(245, 184, 46, 0.08); font-weight: 600; }

/* Pricing: 4 spacious paid cards + dedicated Free Sandbox strip */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.free-sandbox-strip {
  margin-bottom: 18px;
  background: var(--bg-elev);
  border: 1px dashed rgba(255, 255, 255, 0.20);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.lang-select {
  width: auto !important;
  min-width: 78px;
  padding: 6px 10px !important;
  font-size: 13px !important;
  font-weight: 600;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  cursor: pointer;
}
.sticky-panel {
  position: sticky;
  top: 84px;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f3f6fc !important;
  -webkit-box-shadow: 0 0 0 1000px #090d17 inset !important;
  transition: background-color 5000s ease-in-out 0s;
}
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-card.popular {
  border-color: var(--border-gold);
  background: linear-gradient(180deg, rgba(245, 184, 46, 0.11), var(--bg-card) 32%);
  box-shadow: 0 18px 50px rgba(245, 184, 46, 0.12);
}
/* CTA pinned to the bottom so all buttons in a row share one baseline */
.plan-cta { width: 100%; margin-top: auto; min-height: 42px; white-space: normal; text-align: center; }
.btn-gold-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: rgba(245, 184, 46, 0.08);
}
.btn-gold-outline:hover { border-color: var(--gold); background: rgba(245, 184, 46, 0.16); }
.plan-card.free-plan { opacity: 0.92; border-style: dashed; }
.plan-price { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.plan-price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.plan-meta { font-size: 12px; color: var(--gold); font-weight: 600; }
.plan-features { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; gap: 7px; font-size: 12.5px; }
.plan-features li { display: flex; gap: 6px; align-items: flex-start; }
.plan-features li.no { color: #64748b; text-decoration: line-through; }

.payment-strip {
  margin-top: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* Dashboard */
.dash-shell { padding: 26px 0 64px; }
.free-limit-banner {
  background: linear-gradient(90deg, rgba(245, 184, 46, 0.16), rgba(249, 115, 22, 0.10));
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  overflow-x: auto;
}
.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

.grid-2 { display: grid; grid-template-columns: 1.45fr 0.95fr; gap: 20px; align-items: start; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.card h3 { margin: 0 0 12px; font-size: 18px; }

.scene-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 14px;
  margin-bottom: 12px;
}
.scene-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.scene-grid { display: grid; grid-template-columns: 1fr 1fr 110px; gap: 10px; margin-bottom: 10px; }

/* Brief-to-Video Studio */
.brief-textarea {
  min-height: 132px;
  font-size: 14.5px;
  line-height: 1.55;
  padding: 13px 14px;
  border-radius: 13px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}
.chip-btn:hover, .chip-btn.active {
  color: var(--text);
  border-color: var(--border-gold);
  background: var(--gold-soft);
}
.brief-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dur-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.dur-pills-6 {
  grid-template-columns: repeat(6, 1fr);
}
.dur-slider-wrap {
  margin-top: 10px;
  padding: 10px 12px 8px;
  background: #090d17;
  border: 1px solid var(--border);
  border-radius: 11px;
}
.dur-num-input {
  width: 66px !important;
  padding: 4px 8px !important;
  text-align: center;
  font-weight: 700;
  font-size: 13px !important;
  border-radius: 8px !important;
}
.dur-slider {
  width: 100%;
  margin: 10px 0 4px;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  accent-color: var(--gold);
  cursor: pointer;
  height: 6px;
}
.dur-scale-marks {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--muted);
  user-select: none;
}
.quality-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.llm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tier-card {
  background: #090d17;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 9px 11px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  transition: all 0.14s ease;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tier-card:hover { border-color: rgba(255,255,255,0.24); }
.tier-card.active {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.tier-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.tier-rate {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
.tier-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}
.upload-mini-box {
  background: var(--bg-elev);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  padding: 8px 10px;
}
.ref-upload-box {
  border-color: rgba(245, 184, 46, 0.34);
  background: rgba(245, 184, 46, 0.04);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.url-import-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.url-import-bar input {
  flex: 1;
}
.aspect-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.studio-subbox {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 12px 14px;
}
.actor-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 2px;
}
.actor-card {
  position: relative;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #090d17;
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease, border-color 0.14s ease;
}
.actor-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.28); }
.actor-card.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(245,184,46,0.28); }
.actor-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.actor-card span {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text);
  padding: 4px 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.voice-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  max-height: 195px;
  overflow-y: auto;
  padding-right: 2px;
}
.voice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  background: #090d17;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.voice-row:hover { border-color: rgba(255,255,255,0.25); }
.voice-row.active { border-color: var(--gold); background: var(--gold-soft); }
.voice-info {
  min-width: 0;
  flex: 1;
}
.voice-name {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.voice-meta {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prod-thumbs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.prod-thumb-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
}
.prod-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prod-thumb-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  line-height: 18px;
  padding: 0;
}
.progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 8px 0 4px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f5b82e, #f97316);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.wallet-hero-card {
  background: linear-gradient(135deg, rgba(245, 184, 46, 0.12), rgba(18, 24, 41, 0.96) 55%);
  border-color: var(--border-gold);
}
.wallet-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.wallet-big-num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--gold);
  line-height: 1.1;
}
.wallet-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.wallet-stat-box {
  background: rgba(9, 13, 23, 0.72);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 9px 11px;
}
.wallet-stat-box strong { display: block; font-size: 14.5px; color: var(--text); }
.wallet-stat-box span { font-size: 11px; color: var(--muted); }
.rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.rate-row:last-child { border-bottom: none; }
.clickable-pill { cursor: pointer; transition: transform 0.12s ease; }
.clickable-pill:hover { transform: translateY(-1px); }
.dur-pill {
  background: #090d17;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 10px;
  padding: 7px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.14s ease;
}
.dur-pill strong { font-size: 14px; color: var(--text); }
.dur-pill span { font-size: 11px; color: var(--muted); }
.dur-pill.active {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.dur-pill.active strong, .dur-pill.active span { color: var(--gold); }
.host-upload-box {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-elev);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 13px;
}
.host-thumb {
  width: 44px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
  flex-shrink: 0;
}
.host-file-input {
  width: auto !important;
  max-width: 215px;
  font-size: 12px !important;
  padding: 6px 8px !important;
  cursor: pointer;
}
.advanced-details {
  padding: 16px 20px;
}
.advanced-summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.advanced-summary::-webkit-details-marker { display: none; }
.advanced-summary::after { content: '▾'; font-size: 16px; transition: transform 0.15s ease; }
.advanced-details[open] .advanced-summary { color: var(--gold); }
.advanced-details[open] .advanced-summary::after { transform: rotate(180deg); }

label.field { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
input, select, textarea {
  width: 100%;
  background: #090d17;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 13.5px;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; min-height: 64px; }

.consent-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 12px;
  padding: 12px;
  font-size: 12.5px;
  color: #cbd5e1;
  margin: 14px 0;
}
.consent-box input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }

.upsell-box {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(245, 184, 46, 0.14), rgba(16, 20, 31, 0.95));
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 16px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 5, 10, 0.78);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal {
  width: 100%;
  max-width: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}
.wallet-box {
  background: #080b14;
  border: 1px dashed var(--border-gold);
  border-radius: 12px;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  word-break: break-all;
  margin: 10px 0;
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 120;
  background: #141c2e;
  border: 1px solid var(--border-gold);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  max-width: 420px;
}
.toast.err { border-color: var(--red); }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
}
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-seo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12.5px; }
.footer-seo-lbl { color: var(--muted); opacity: 0.8; }
.footer-seo a { color: var(--muted); }
.footer-seo a:hover { color: var(--gold); }

@media (max-width: 1060px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .vs-grid { grid-template-columns: minmax(0, 1fr); }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-copy { text-align: center; }
  .hero-badge { text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-showcase { justify-self: center; }
}
@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .scene-grid { grid-template-columns: 1fr; }
  .brief-controls-grid { grid-template-columns: 1fr; }
  .dur-pills-6 { grid-template-columns: repeat(3, 1fr); }
  .aspect-pills { grid-template-columns: repeat(2, 1fr); }
  .actor-grid { grid-template-columns: repeat(3, 1fr); }
  .voice-list { grid-template-columns: 1fr; }
  .quality-grid, .llm-grid { grid-template-columns: 1fr; }
  .wallet-stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Sprint 2: voice clone, re-roll, batch mode ===== */
.chip-btn.chip-gold { border-color: var(--border-gold, rgba(245,184,46,0.5)); color: var(--gold); }
.voice-clone-panel {
  margin: 0 0 12px; padding: 12px; border-radius: 12px;
  background: var(--bg-elev); border: 1px solid var(--border-gold, rgba(245,184,46,0.45));
}
.voice-row .voice-del-btn { padding: 4px 8px; margin-left: 4px; }
.reroll-box { margin-top: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; background: rgba(255,255,255,0.02); }
.reroll-box > summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--gold); list-style: none; }
.reroll-box > summary::-webkit-details-marker { display: none; }
.reroll-scene { display: grid; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.reroll-scene:last-child { border-bottom: none; }
.reroll-scene-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.reroll-scene textarea { min-height: 44px; font-size: 12.5px; }
.batch-group { border: 1px solid var(--border-gold, rgba(245,184,46,0.45)); border-radius: 16px; padding: 10px 10px 0; margin-bottom: 14px; }
.batch-group-head { font-size: 12.5px; font-weight: 700; color: var(--gold); margin: 2px 4px 10px; }
.batch-selected-row { display: flex; gap: 8px; flex-wrap: wrap; min-height: 10px; }
.batch-selected-row .batch-face { position: relative; width: 54px; height: 54px; border-radius: 10px; overflow: hidden; border: 2px solid var(--gold); }
.batch-selected-row .batch-face img { width: 100%; height: 100%; object-fit: cover; }
.batch-selected-row .batch-face button { position: absolute; top: 1px; right: 1px; border: 0; border-radius: 50%; width: 18px; height: 18px; line-height: 16px; padding: 0; background: rgba(0,0,0,0.7); color: #fff; cursor: pointer; }
.batch-actor-grid { max-height: 260px; overflow-y: auto; }
.batch-calc { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft, rgba(245,184,46,0.12)); font-weight: 700; font-size: 13.5px; }

/* ===== Sprint 3: share links, referral program, email notifications ===== */
.share-box { display: grid; gap: 6px; padding: 8px; border-radius: 12px; border: 1px solid rgba(34,197,94,0.35); background: var(--green-soft); }
.share-box .share-views { justify-self: start; font-size: 11.5px; padding: 3px 8px; }
.share-wl { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--text); cursor: pointer; white-space: nowrap; }
.share-wl input { width: 15px; height: 15px; margin: 0; flex-shrink: 0; }
.notify-toggle { display: flex; gap: 9px; align-items: center; margin-top: 14px; font-size: 13px; color: var(--text); cursor: pointer; }
.notify-toggle input { width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
.referral-card { border-color: rgba(34,197,94,0.4); }
.ref-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ref-desc { color: var(--muted); font-size: 13.5px; margin: 8px 0 12px; }
.ref-link-row { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.ref-link-row input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.ref-stat { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border); text-align: center; }
.ref-stat strong { font-size: 20px; color: var(--green); }
.ref-stat span { font-size: 12px; color: var(--muted); }
.ref-recent-h { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.ref-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ref-table td { padding: 7px 0; border-bottom: 1px solid var(--border); }
.ref-table .ref-date { color: var(--muted); text-align: center; }
.ref-table .ref-plus { color: var(--green); font-weight: 700; text-align: right; white-space: nowrap; }
.ref-empty { font-size: 13px; color: var(--muted); }
.ref-terms { font-size: 11.5px; color: var(--muted); margin-top: 12px; }
.ref-invite-badge { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green); border: 1px solid rgba(34,197,94,0.35); font-size: 13px; font-weight: 700; }
@media (max-width: 640px) {
  .ref-stats { grid-template-columns: 1fr; }
  .ref-link-row { flex-direction: column; align-items: stretch; }
}

/* ===== Design polish: market table hint, studio accordions, mobile quick-launch bar, mobile header ===== */
section.block { scroll-margin-top: 72px; }
.grid-2 > *, .vs-grid > *, .pricing-grid > * { min-width: 0; }
.vs-header { flex-wrap: wrap; }
.url-import-bar input { min-width: 0; }

.table-swipe-hint { display: none; margin: 0 0 8px; text-align: right; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
tr.highlight-extra td { padding-top: 10px; padding-bottom: 10px; font-size: 12.5px; font-weight: 600; color: var(--gold); }

/* Studio (tab 1): 5 advanced blocks collapsed by default, each with a live gold badge of the current choice */
.studio-acc-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 18px; }
.studio-acc-caption { margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.studio-acc { min-width: 0; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 13px; transition: border-color 0.15s ease; }
.studio-acc:hover { border-color: rgba(255, 255, 255, 0.2); }
.studio-acc[open] { border-color: rgba(245, 184, 46, 0.42); }
.studio-acc > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.studio-acc > summary::-webkit-details-marker { display: none; }
.studio-acc > summary::after { content: '▾'; flex-shrink: 0; font-size: 15px; color: var(--muted); transition: transform 0.15s ease; }
.studio-acc[open] > summary::after { transform: rotate(180deg); color: var(--gold); }
.acc-ico { flex-shrink: 0; font-size: 16px; }
.acc-title { flex: 1 1 auto; min-width: 0; }
.acc-badge {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 46%;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 184, 46, 0.4);
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-body { padding: 2px 14px 14px; }
.acc-body > :first-child { margin-top: 0 !important; }
.acc-body > .studio-subbox { padding: 0; border: 0; background: transparent; }
.acc-body .upload-mini-box, .acc-body .host-upload-box { background: #090d17; }

/* Mobile quick-launch bar: mirrors the price and clicks #renderProBtn (tab 1 + signed in + < 768px) */
.mobile-sticky-cta { display: none; }

@media (max-width: 767px) {
  .top-user-email { display: none; }
  .table-swipe-hint { display: block; }
  .market-table { min-width: 680px; }
  .mobile-sticky-cta.is-on {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 13, 22, 0.94);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-gold);
  }
  .msc-price { display: grid; min-width: 0; line-height: 1.25; }
  .msc-price strong { font-size: 15px; color: var(--gold); white-space: nowrap; }
  .msc-price span { font-size: 11px; color: var(--muted); white-space: nowrap; }
  .mobile-sticky-cta .btn { flex-shrink: 0; padding: 12px 18px; font-size: 14px; white-space: nowrap; }
  body.has-msc .dash-shell { padding-bottom: 112px; }
  body.has-msc .toast { bottom: 84px; }
}

@media (max-width: 640px) {
  /* Compact one-line header */
  .container { padding: 0 14px; }
  .topbar-inner { height: auto; min-height: 54px; gap: 6px; padding: 10px 12px; flex-wrap: nowrap; }
  .brand { gap: 7px; font-size: 15px; }
  .brand-mark { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
  .topbar.is-authed .brand > span { display: none; }
  .topbar-right { gap: 6px; }
  .lang-select {
    min-width: 0;
    max-width: 78px;
    padding: 6px 8px !important;
    font-size: 12px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .top-actions { gap: 6px; }
  .top-actions .btn { padding: 7px 10px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }
  .top-actions .pill { padding: 4px 8px; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
  .top-long { display: none; }
  .top-short { display: inline; }

  /* Sections */
  .btn { white-space: normal; text-align: center; }
  .hero { padding: 28px 0 22px; }
  .hero p.lead { font-size: 15px; }
  .hero-cta .btn { width: 100%; }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-showcase { padding: 14px; border-radius: 22px; }
  .hero-chip { font-size: 12px; padding: 8px 6px; }
  section.block { padding: 38px 0; }
  .section-head { margin-bottom: 24px; }
  .section-head p { font-size: 14.5px; }
  .bento-grid { grid-template-columns: 1fr; gap: 12px; }
  .bento-card { padding: 16px; }
  .vs-card { padding: 16px; }
  .card { padding: 16px; }
  .free-sandbox-strip, .payment-strip { padding: 14px; }
  th, td { padding: 11px 12px; }

  /* Dashboard tabs: one swipeable row without a visible scrollbar */
  .tabs { flex-wrap: nowrap; overflow-x: auto; gap: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn { flex-shrink: 0; padding: 11px 12px; font-size: 13px; }

  .url-import-bar { flex-wrap: wrap; }
  .url-import-bar input { flex: 1 1 100%; }
  .url-import-bar .btn { flex: 1 1 auto; }
  .acc-badge { max-width: 40%; }
  .studio-acc > summary { padding: 11px 12px; gap: 8px; font-size: 13px; }
  .acc-body { padding: 2px 12px 12px; }
}

/* Sprint A: auth modal (forgot / reset password, Google sign-in, Turnstile) + render queue pill */
.auth-link-btn { background: none; border: none; padding: 0; margin-top: 8px; color: var(--gold); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: left; }
.auth-link-btn:hover, .auth-link-btn:focus-visible { text-decoration: underline; }
.auth-done-box { margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: var(--green-soft); color: var(--green); border: 1px solid rgba(34,197,94,0.35); font-size: 13.5px; line-height: 1.5; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.google-btn-host { display: flex; justify-content: center; min-height: 44px; max-width: 100%; overflow: hidden; color-scheme: light; }
.turnstile-wrap { display: flex; justify-content: center; min-height: 65px; max-width: 100%; overflow: hidden; }
.pill-queue { background: var(--gold-soft); color: var(--gold); border-color: rgba(245,184,46,0.4); }

/* ---------- Sprint B: promo code row, PDF invoices, company details ---------- */
.co-promo { margin: 0 0 12px; }
.co-promo-row { display: flex; gap: 8px; align-items: center; }
.co-promo-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.co-promo-row input::placeholder { text-transform: none; letter-spacing: normal; }
.co-promo-row .btn { flex: none; white-space: nowrap; }
.co-promo-status { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--green); overflow-wrap: anywhere; }
.co-promo-status.err { color: #f87171; }
.ref-invite-welcome { margin: -4px 0 12px; font-size: 12.5px; font-weight: 600; color: var(--gold); }
.ref-friend { margin: -4px 0 12px; padding: 9px 12px; border-radius: 10px; background: var(--gold-soft); border: 1px solid var(--border-gold); font-size: 13px; color: var(--text); }
.inv-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.inv-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.inv-row-side { display: flex; align-items: center; gap: 6px; flex: none; }
.inv-promo { display: block; font-size: 11.5px; color: var(--green); }
.billing-profile { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.billing-profile summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--gold); }
.billing-profile .bp-hint { margin: 8px 0 4px; font-size: 12px; color: var(--muted); }
.billing-profile form { display: grid; gap: 6px; }
.billing-profile input, .billing-profile textarea { width: 100%; min-width: 0; }
.billing-profile textarea { resize: vertical; font: inherit; }
.billing-profile .btn { justify-self: start; margin-top: 6px; }

/* ===================== SPRINT C ===================== */

/* Flagship URL-to-Video bar (top of the Quick Brief tab) */
.url2video { margin: 0 0 18px; padding: 14px; border-radius: 14px; border: 1px solid var(--border-gold, rgba(245,184,46,0.45)); background: linear-gradient(135deg, rgba(245,184,46,0.10), rgba(245,184,46,0.02)); }
.url2video-title { display: block; font-size: 15px; font-weight: 800; color: var(--gold); margin-bottom: 8px; }
.url2video .url-import-bar { margin-bottom: 8px; }
.url2video .url-import-bar .btn { white-space: nowrap; }
.url2video-hint { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* TikTok / Reels / Shorts safe-zone overlay (9:16). Margins mirror SAFE_ZONES in lib/share_page.mjs */
.sz-wrap { position: relative; }
.sz-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: none; --sz-top: 13%; --sz-bottom: 22%; }
body[data-sz="tiktok"] .sz-overlay, body[data-sz="reels"] .sz-overlay, body[data-sz="shorts"] .sz-overlay { display: block; }
body[data-sz="shorts"] .sz-overlay { --sz-bottom: 20%; }
.sz-wrap.sz-disabled .sz-overlay { display: none !important; }
.sz-zone { position: absolute; background: rgba(239, 68, 68, 0.3); }
.sz-top { top: 0; left: 0; right: 0; height: var(--sz-top); border-bottom: 1px solid rgba(239, 68, 68, 0.75); }
.sz-right { right: 0; top: 45%; height: 37%; width: 16%; border-left: 1px solid rgba(239, 68, 68, 0.75); }
.sz-bottom { bottom: 0; left: 0; right: 0; height: var(--sz-bottom); border-top: 1px solid rgba(239, 68, 68, 0.75); }
.sz-safe { position: absolute; top: var(--sz-top); bottom: var(--sz-bottom); left: 4%; right: 16%; border: 1.5px dashed rgba(74, 222, 128, 0.95); border-radius: 6px; }
.sz-safe span { position: absolute; top: 6px; left: 6px; font-size: 10px; line-height: 1.2; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #4ade80; background: rgba(7, 9, 15, 0.7); padding: 2px 6px; border-radius: 4px; }
.sz-overlay.sz-mini .sz-safe span { display: none; }
.sz-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; margin: 0 0 10px; }
.sz-bar-lbl { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.sz-pill { font: inherit; font-size: 12px; font-weight: 700; color: var(--text, #f3f6fc); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.sz-pill.active { background: var(--gold); color: #07090f; border-color: var(--gold); }
.sz-bar.sz-bar-mini { gap: 4px; margin: 6px 0 0; }
.sz-bar.sz-bar-mini .sz-pill { font-size: 10px; padding: 3px 0; flex: 1 1 44%; text-align: center; }

/* €0 caption editor */
.modal.modal-wide { max-width: 620px; }
.cap-hint { color: var(--muted); font-size: 12.5px; margin: 0 0 12px; line-height: 1.5; }
.cap-scenes { display: grid; gap: 10px; max-height: 46vh; overflow-y: auto; padding-right: 2px; }
.cap-scene textarea { min-height: 58px; }
.cap-scene .field { display: flex; justify-content: space-between; gap: 8px; }
.cap-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.render-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* Custom MP4 B-roll per scene */
.cb-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 2px 0 10px; }
.cb-row .cb-upload { cursor: pointer; }
.cb-row .cb-badge { font-size: 11.5px; }

/* Client approval & timestamped comments (owner view) */
.fb-box { margin-top: 10px; border: 1px solid rgba(34, 197, 94, 0.35); border-radius: 10px; padding: 8px 10px; background: var(--green-soft, rgba(34,197,94,0.08)); }
.fb-box > summary { cursor: pointer; list-style: none; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fb-box > summary::-webkit-details-marker { display: none; }
.fb-box > summary .pill { font-size: 11.5px; padding: 3px 9px; }
.fb-list { display: grid; gap: 6px; margin-top: 8px; }
.fb-item { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 8px; padding: 7px 9px; font-size: 12.5px; }
.fb-item-head { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fb-item-head strong { word-break: break-word; }
.fb-item-date { margin-left: auto; font-size: 11px; color: var(--muted); }
.fb-item-msg { margin-top: 4px; white-space: pre-wrap; word-break: break-word; color: var(--text, #f3f6fc); line-height: 1.45; }
.fb-ts { font: inherit; font-size: 11.5px; font-weight: 800; color: #07090f; background: var(--gold); border: 0; border-radius: 6px; padding: 2px 7px; cursor: pointer; }

@media (max-width: 640px) {
  .cap-controls { grid-template-columns: 1fr; }
  .url2video .url-import-bar .btn { white-space: normal; }
}
