:root {
  color-scheme: dark;
  --font-title: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --ink: #f4f4f8;
  --muted: #9a97ac;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --panel: rgba(18, 18, 26, 0.85);
  --blue: #7eb8ff;
  --violet: #9b7efd;
  --pink: #e878d8;
  --green: #3dd9a5;
  --glow-soft: 0 0 80px rgba(123, 97, 255, 0.12);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  --radius-lg: 20px;
  --radius-full: 999px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(123, 97, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(120, 200, 255, 0.06), transparent 50%);
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.topbar {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  left: max(16px, env(safe-area-inset-left));
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.auth-panel {
  max-width: min(420px, calc(100vw - 80px));
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.auth-login-form,
.auth-logged-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.auth-input {
  flex: 1 1 120px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
}

.auth-button {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(126, 184, 255, 0.2), rgba(155, 126, 253, 0.25));
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
}

.auth-button:hover {
  border-color: var(--blue);
}

.auth-button-ghost {
  background: transparent;
}

.auth-user-email {
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-status {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.auth-status.is-error {
  color: #ff8f9a;
}

.credits-panel {
  min-width: 140px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.credits-kicker,
.credits-value,
.credits-hint {
  margin: 0;
}

.credits-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.credits-value {
  margin-top: 4px;
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
}

.credits-hint {
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--muted);
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.profile-button {
  color: var(--muted);
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: max(72px, 12vh) 0 72px;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: max(72px, env(safe-area-inset-bottom));
}

/* —— Hero preview —— */
.studio-stage {
  margin-bottom: 2.25rem;
}

.preview-hero {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow), var(--glow-soft);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  max-height: min(56vh, 520px);
  margin-inline: auto;
  transition: border-color 320ms ease, box-shadow 320ms ease;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.hero-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2rem);
  text-align: center;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 60% at 50% 42%, rgba(155, 126, 253, 0.09), transparent 60%),
    radial-gradient(ellipse 50% 45% at 80% 100%, rgba(126, 184, 255, 0.06), transparent 55%),
    linear-gradient(168deg, #14141f 0%, #0c0c12 55%, #0a0a0f 100%);
}

.hero-placeholder-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 88%, rgba(126, 184, 255, 0.07), transparent 42%);
  opacity: 0.95;
  animation: hero-placeholder-breathe 10s ease-in-out infinite;
}

.hero-placeholder-frame {
  position: absolute;
  inset: 9% 10%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 48px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.hero-placeholder-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 22rem;
}

.hero-placeholder-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(200, 196, 220, 0.55);
}

.hero-placeholder-lead {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(244, 244, 248, 0.92);
  line-height: 1.2;
}

.hero-placeholder-text {
  margin: 0;
  font-size: clamp(0.8rem, 2.5vw, 0.9rem);
  font-weight: 450;
  color: rgba(154, 151, 172, 0.88);
  line-height: 1.5;
  max-width: 18rem;
}

@keyframes hero-placeholder-breathe {
  0%,
  100% {
    opacity: 0.88;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-placeholder-glow {
    animation: none;
  }
}

.preview-hero:has(.hero-video:not([hidden])) {
  border-color: rgba(155, 126, 253, 0.2);
}

/* —— Composer —— */
.composer {
  display: grid;
  justify-items: stretch;
  gap: 1.25rem;
}

h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.55rem, 5vw, 2.125rem);
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
  letter-spacing: -0.02em;
}

h1::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin: 0 auto 0.85rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink));
  opacity: 0.85;
}

h1 span {
  background: linear-gradient(100deg, var(--blue), var(--violet) 45%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.studio-tagline {
  margin: -0.35rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 450;
  line-height: 1.4;
}

.prompt-bar {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 44px 52px;
  align-items: center;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  min-height: 58px;
  padding: 6px 8px 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.prompt-bar:focus-within {
  border-color: rgba(155, 126, 253, 0.35);
  box-shadow: 0 12px 48px rgba(91, 62, 200, 0.18);
}

.add-button {
  width: 44px;
  height: 44px;
  color: var(--ink);
  border: none;
  background: transparent;
}

.prompt-bar input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(0.95rem, 3.5vw, 1.05rem);
  line-height: 1.35;
}

.prompt-bar input::placeholder {
  color: rgba(154, 151, 172, 0.75);
}

.mic-button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.mic-button.is-listening {
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(61, 217, 165, 0.35);
}

.generate-button {
  display: inline-grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--violet), var(--pink));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(155, 80, 200, 0.35);
  transition:
    transform var(--transition),
    filter var(--transition),
    opacity var(--transition);
}

.generate-button:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.generate-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.generate-button svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

/* —— Mood chips —— */
.mood-row {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  gap: 0.65rem;
}

.mood-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.mood-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.mood-chips::-webkit-scrollbar {
  height: 4px;
}

.mood-chips::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 4px;
}

.mood-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.55rem 1rem;
  min-height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow 280ms ease;
}

.mood-chip:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.mood-chip.is-active {
  border-color: rgba(155, 126, 253, 0.55);
  background: rgba(155, 126, 253, 0.14);
  color: #fff;
  box-shadow: 0 0 24px rgba(155, 126, 253, 0.12);
}

.mood-chip:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

/* —— Advanced —— */
.advanced-panel {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.advanced-summary {
  list-style: none;
  padding: 0.9rem 1rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--transition), background var(--transition);
}

.advanced-summary::-webkit-details-marker {
  display: none;
}

.advanced-summary::after {
  content: "";
  float: right;
  width: 7px;
  height: 7px;
  margin-top: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.5;
  transition: transform var(--transition);
}

details.advanced-panel[open] .advanced-summary::after {
  transform: rotate(-135deg);
  margin-top: 0.5rem;
}

.advanced-summary:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.advanced-inner {
  padding: 0 1rem 1rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.advanced-inner .channel-row,
.advanced-inner .provider-row,
.advanced-inner .voice-row,
.advanced-inner .subtitle-row,
.advanced-inner .creative-axes-row,
.advanced-inner .duration-row {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 1rem;
  margin-top: 0;
  border-top: 1px solid var(--line);
}

.advanced-inner .channel-row {
  border-top: 0;
}

.credits-market {
  display: grid;
  gap: 10px;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.credits-market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.credits-market-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd8b8;
}

.credit-packs {
  display: grid;
  gap: 8px;
}

.credit-pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.credit-pack-meta {
  display: grid;
  gap: 2px;
}

.credit-pack-title,
.credit-pack-price {
  margin: 0;
}

.credit-pack-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.credit-pack-price {
  font-size: 12px;
  color: var(--muted);
}

.credit-pack-button {
  min-width: 88px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.provider-row,
.voice-row,
.channel-row,
.subtitle-row,
.duration-row {
  width: 100%;
  max-width: 720px;
  margin: 18px auto 0;
  display: grid;
  gap: 6px;
}

.channel-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}

.duration-slider-row {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

#duration-slider {
  width: 100%;
  height: 6px;
  accent-color: var(--violet);
  cursor: pointer;
}

.duration-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}

.credit-cost-estimate {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.provider-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.provider-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.provider-option:has(input:checked) {
  border-color: rgba(155, 126, 253, 0.45);
  background: rgba(155, 126, 253, 0.1);
}

.provider-option input {
  accent-color: var(--violet);
}

.provider-option span {
  font-size: 13px;
  font-weight: 600;
}

.provider-option small {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.provider-help {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(154, 151, 172, 0.9);
}

.provider-cost-warning {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 183, 120, 0.35);
  background: rgba(255, 140, 60, 0.08);
  color: #e8c4a0;
  font-size: 12px;
  line-height: 1.5;
}

.provider-cost-warning strong {
  color: #ffd8b8;
}

.voice-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.voice-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-option.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.provider-option.is-disabled:has(input:checked) {
  box-shadow: none;
  border-color: var(--line);
}

.voice-help {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(154, 151, 172, 0.9);
}

.status-line {
  width: 100%;
  max-width: 720px;
  margin: 0.25rem auto 0;
  min-height: 22px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  transition: color var(--transition);
}

.status-line:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.progress-panel {
  width: 100%;
  max-width: 720px;
  margin: 0.75rem auto 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  padding: 1rem 1.1rem;
}

.progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.progress-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.progress-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.progress-timer {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 14px;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  margin: 12px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink));
  transition: width 280ms ease;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.progress-events-heading {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-step {
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  padding: 4px;
}

.progress-step.is-active {
  border-color: rgba(155, 126, 253, 0.4);
  color: var(--ink);
  background: rgba(155, 126, 253, 0.1);
}

.progress-step.is-done {
  border-color: rgba(61, 217, 165, 0.35);
  color: var(--green);
  background: rgba(61, 217, 165, 0.08);
}

.progress-step.is-error {
  border-color: rgba(239, 100, 100, 0.4);
  color: #ff8f8f;
  background: rgba(239, 100, 100, 0.08);
}

.progress-events {
  display: grid;
  gap: 6px;
  max-height: min(280px, 38vh);
  overflow: auto;
  padding: 10px 10px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.progress-event {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  color: rgba(230, 228, 240, 0.92);
  font-size: 11px;
  line-height: 1.35;
}

.progress-event-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.progress-event.is-error {
  color: #ff9b9b;
}

.library {
  margin: 3.5rem auto 0;
}

.library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 1rem;
}

h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.refresh-button {
  width: 40px;
  height: 40px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.video-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: border-color var(--transition);
}

.video-card:hover {
  border-color: var(--line-strong);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 13px 13px 0 0;
}

.video-card video:fullscreen {
  width: 100%;
  height: 100%;
  border-radius: 0;
  aspect-ratio: auto;
}

.video-meta {
  display: grid;
  gap: 6px;
  padding: 12px 14px 14px;
}

.video-open-external {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.video-open-external:hover {
  text-decoration: underline;
}

.video-name {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 650;
}

.video-sub {
  color: var(--muted);
  font-size: 11px;
}

.video-card-preview {
  display: grid;
  place-items: center;
  min-height: 120px;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 13px 13px 0 0;
}

.video-card-status {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.video-card.is-pending .video-card-status {
  color: #fbbf24;
}

.video-card.is-failed .video-card-status {
  color: #f87171;
}

.video-card-error {
  font-size: 11px;
  color: #fca5a5;
  line-height: 1.35;
}

.empty-state {
  min-height: 100px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
}

/* Axes créatifs */
.creative-axes-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.axis-row label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.axis-val {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 12px;
}

.axis-row input[type="range"] {
  width: 100%;
  accent-color: var(--violet);
}

@media (max-width: 640px) {
  .app-shell {
    width: calc(100% - 24px);
    padding-top: max(64px, 10vh);
  }

  .preview-hero {
    border-radius: 14px;
    max-height: min(42vh, 380px);
  }

  .composer {
    gap: 1rem;
  }

  .progress-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .progress-event {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .library {
    margin-top: 2.5rem;
  }
}

@media (min-width: 900px) {
  .mood-chips {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* —— Sprint UI-1 : Nyzora SaaS shell —— */
.brand-mark {
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--ink) 0%, var(--blue) 55%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  color: #0a0a0f;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.btn-ghost {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-soon {
  color: var(--blue);
  background: rgba(126, 184, 255, 0.12);
  border: 1px solid rgba(126, 184, 255, 0.25);
}

/* Landing publique */
.public-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.landing-main {
  flex: 1;
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 0 3rem;
}

.landing-hero {
  text-align: center;
  padding: clamp(1.5rem, 5vw, 3rem) 0 2.5rem;
}

.landing-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
}

.landing-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-title);
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.landing-lead {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.login-section {
  margin: 0 0 3rem;
}

.login-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-title);
  font-size: 1.35rem;
}

.login-sub {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-login-form-stacked {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.25rem;
}

.landing-section {
  margin-bottom: 3rem;
}

.landing-section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-title);
  font-size: 1.35rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.section-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.5;
}

.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.step-card {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.step-num {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(155, 126, 253, 0.2);
  color: var(--violet);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

.step-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.benefits-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.benefit-card {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(155, 126, 253, 0.06), transparent 55%);
}

.benefit-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.landing-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.site-footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 2rem;
}

.beta-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid rgba(126, 184, 255, 0.22);
  background: rgba(126, 184, 255, 0.1);
  color: rgba(214, 228, 255, 0.92);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-main {
  flex: 1;
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.legal-main h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.legal-lead {
  margin: 0 0 2rem;
  color: var(--muted);
  line-height: 1.55;
}

.legal-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  line-height: 1.55;
}

.legal-section ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 1.25rem;
  color: var(--blue);
  text-decoration: none;
  font-size: 0.88rem;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-placeholder {
  color: #ffd8b8;
  font-weight: 600;
}

/* App connectée */
.saas-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 1.75rem);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.app-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1;
}

.nav-link {
  padding: 0.45rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.is-active {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(155, 126, 253, 0.12);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-left: auto;
}

.header-credits {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.header-credits-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.header-credits-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--green);
}

.header-user-email {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--muted);
}

.app-main {
  flex: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.75rem 0 3rem;
}

.view-head {
  margin-bottom: 1.5rem;
}

.view-head h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.view-head-compact {
  margin-bottom: 1.25rem;
}

.view-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dash-card {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--glow-soft);
}

.dash-card-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.dash-card-value {
  margin: 0;
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.dash-card-unit {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.dash-card-meta {
  margin: 0.35rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.dash-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.dash-card p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.dash-job-status {
  min-height: 3rem;
}

.placeholder-panel {
  padding: 2rem 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.placeholder-panel p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 32rem;
  margin-inline: auto;
}

.credits-balance-card {
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.credits-page-balance {
  margin: 0;
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 800;
}

.credits-page-meta {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.credit-packs-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.credit-pack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.credit-pack-title {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
}

.credit-pack-price {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.credit-pack-meta,
.credit-pack-price,
.credit-pack-estimate {
  cursor: default;
}

.credit-pack-tax {
  cursor: help;
  text-decoration: none;
  font-size: 0.88em;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.credit-pack-button {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.78rem;
  cursor: default;
}

.credit-pack-button:not(:disabled) {
  cursor: pointer;
}

.library-hidden {
  display: none !important;
}

.credits-panel-legacy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

#view-studio .studio-stage {
  margin-bottom: 2rem;
}

@media (max-width: 720px) {
  .app-header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    margin-left: 0;
    justify-content: space-between;
  }

  .app-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
  }

  .nav-link {
    flex-shrink: 0;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dash-card-featured {
    order: -1;
  }

  .landing-hero-panel {
    padding-inline: 0.25rem;
  }

  .studio-layout {
    display: block;
  }
}

/* —— Sprint UI-1B : polish visuel —— */
.btn-lg {
  padding: 0.8rem 1.35rem;
  font-size: 0.95rem;
  border-radius: 14px;
}

.landing-hero-panel {
  position: relative;
  isolation: isolate;
  margin-bottom: 0.5rem;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1rem, 4vw, 2rem);
  border: 1px solid rgba(155, 126, 253, 0.18);
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(155, 126, 253, 0.14), transparent 62%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
}

.landing-hero-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(126, 184, 255, 0.2), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.landing-hero-panel .landing-kicker {
  display: inline-flex;
  margin-inline: auto;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(155, 126, 253, 0.28);
  background: rgba(155, 126, 253, 0.1);
}

.landing-hero-panel h1 {
  max-width: 18ch;
  margin-inline: auto;
}

.landing-hero-panel .landing-lead {
  max-width: 34rem;
  font-size: clamp(1rem, 2.5vw, 1.12rem);
}

.landing-cta-row {
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.landing-section {
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
  padding-top: 0.25rem;
}

.landing-section h2,
.landing-pricing-panel .section-head h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  letter-spacing: -0.02em;
}

.step-card {
  padding: 1.35rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  transition: border-color var(--transition), transform var(--transition);
}

.step-card:hover {
  border-color: rgba(155, 126, 253, 0.28);
  transform: translateY(-2px);
}

.step-num {
  width: 2rem;
  height: 2rem;
  font-size: 0.9rem;
}

.benefit-card {
  position: relative;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 18px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.benefit-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink));
  opacity: 0.75;
}

.benefit-card:hover {
  border-color: rgba(155, 126, 253, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.15rem;
  line-height: 1;
}

.benefit-card--speed .benefit-icon::before {
  content: "⚡";
}

.benefit-card--quality .benefit-icon::before {
  content: "✦";
}

.benefit-card--control .benefit-icon::before {
  content: "◎";
}

.landing-pricing-panel {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.login-card {
  border-color: rgba(155, 126, 253, 0.2);
  box-shadow: var(--shadow), 0 0 60px rgba(123, 97, 255, 0.08);
}

/* Dashboard */
.dashboard-grid {
  gap: 1.15rem;
}

.dash-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.3rem;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(22, 22, 32, 0.95), rgba(14, 14, 20, 0.88));
  transition: border-color var(--transition), box-shadow var(--transition);
}

.dash-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.dash-card-accent {
  border-color: rgba(61, 217, 165, 0.22);
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(61, 217, 165, 0.1), transparent 55%),
    linear-gradient(165deg, rgba(22, 22, 32, 0.95), rgba(14, 14, 20, 0.88));
}

.dash-card-accent .dash-card-value,
.dash-card-accent [data-credit-available] {
  color: var(--green);
}

.dash-card-featured {
  border-color: rgba(155, 126, 253, 0.35);
  background:
    radial-gradient(ellipse 85% 75% at 100% 0%, rgba(155, 126, 253, 0.16), transparent 58%),
    linear-gradient(160deg, rgba(28, 24, 42, 0.98), rgba(14, 14, 20, 0.9));
  box-shadow: 0 20px 50px rgba(91, 62, 200, 0.15);
}

.dash-card-featured h2 {
  font-family: var(--font-title);
  font-size: 1.25rem;
}

.dash-card-featured .btn-primary {
  margin-top: auto;
  align-self: flex-start;
}

.dash-card-job,
.dash-card-soon {
  min-height: 9.5rem;
}

.dash-card-soon {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.015);
}

@media (min-width: 900px) {
  .dashboard-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: stretch;
  }

  .dash-card-credits {
    grid-column: span 4;
  }

  .dash-card-featured {
    grid-column: span 8;
    grid-row: span 2;
    min-height: 100%;
  }

  .dash-card-job {
    grid-column: span 6;
  }

  .dash-card-soon {
    grid-column: span 6;
  }
}

/* Studio */
.studio-layout {
  display: grid;
  gap: 1.5rem;
}

.composer-panel {
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

#view-studio .preview-hero {
  border-color: rgba(155, 126, 253, 0.22);
  box-shadow: var(--shadow), 0 0 80px rgba(123, 97, 255, 0.1);
}

.prompt-bar-premium {
  max-width: 100%;
  min-height: 62px;
  padding: 8px 10px 8px 12px;
  border-color: rgba(155, 126, 253, 0.22);
  background: rgba(8, 8, 14, 0.65);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.38);
}

.prompt-bar-premium:focus-within {
  border-color: rgba(155, 126, 253, 0.45);
  box-shadow: 0 16px 52px rgba(91, 62, 200, 0.22);
}

.composer-meta-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-top: -0.15rem;
}

.credit-cost-estimate-prominent {
  margin: 0;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(61, 217, 165, 0.28);
  background: rgba(61, 217, 165, 0.08);
  color: #9ee8c8;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.progress-panel-premium {
  border-color: rgba(155, 126, 253, 0.22);
  border-radius: 18px;
  padding: 1.15rem 1.25rem 1.25rem;
  background: linear-gradient(165deg, rgba(20, 20, 30, 0.96), rgba(12, 12, 18, 0.92));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.progress-panel-premium .progress-track {
  height: 6px;
}

@media (min-width: 960px) {
  .studio-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  #view-studio .studio-stage {
    margin-bottom: 0;
    position: sticky;
    top: 5.5rem;
  }
}

/* Crédits */
.credits-balance-card-premium {
  border-color: rgba(61, 217, 165, 0.22);
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(61, 217, 165, 0.1), transparent 55%),
    var(--panel);
  box-shadow: var(--glow-soft);
}

.credits-balance-card-premium [data-credit-available] {
  color: var(--green);
}

.credits-soon-note {
  margin: 0 0 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(126, 184, 255, 0.22);
  background: rgba(126, 184, 255, 0.08);
  color: #b8d4ff;
  font-size: 0.88rem;
  line-height: 1.45;
}

.credits-billing-notice {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(126, 184, 255, 0.28);
  background: rgba(126, 184, 255, 0.1);
  color: #c8e0ff;
  font-size: 0.88rem;
  line-height: 1.45;
}

.credits-billing-notice.is-error {
  border-color: rgba(255, 143, 154, 0.35);
  background: rgba(255, 143, 154, 0.1);
  color: #ff8f9a;
}

.credits-billing-notice[hidden] {
  display: none !important;
}

.credit-packs-premium {
  gap: 1rem;
}

.credit-packs-premium .credit-pack {
  padding: 1.15rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: border-color var(--transition), transform var(--transition);
}

.credit-packs-premium .credit-pack:hover {
  border-color: rgba(155, 126, 253, 0.3);
  transform: translateY(-2px);
}

.credit-packs-premium .credit-pack-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
}

.credit-packs-premium .credit-pack-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.credit-packs-premium .credit-pack-button {
  padding: 0.55rem 0.75rem;
  border-radius: 11px;
  border-color: rgba(126, 184, 255, 0.2);
  background: rgba(126, 184, 255, 0.06);
  color: rgba(184, 212, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.credits-page-packs {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 2px);
  background: rgba(255, 255, 255, 0.015);
}

.placeholder-panel {
  border-radius: 18px;
  padding: 2.25rem 1.5rem;
}

.view-head {
  margin-bottom: 1.75rem;
}

.app-header {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.header-credits {
  transition: border-color var(--transition), background var(--transition);
}

.header-credits:hover {
  border-color: rgba(61, 217, 165, 0.35);
  background: rgba(61, 217, 165, 0.06);
}

/* UI-1C : conversion et crédibilité */
.landing-main {
  width: min(1180px, calc(100% - 2rem));
}

.landing-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.82fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3.25rem);
  text-align: left;
  padding: clamp(2rem, 5vw, 4rem);
}

.landing-hero-copy {
  position: relative;
  z-index: 1;
}

.landing-hero-copy .landing-kicker {
  margin-inline: 0;
}

.landing-hero-panel .landing-hero-copy h1 {
  max-width: 13ch;
  margin-inline: 0;
  text-align: left;
  font-size: clamp(2.35rem, 5.4vw, 4.35rem);
  letter-spacing: 0;
}

.landing-hero-copy h1::before {
  margin-left: 0;
  margin-right: 0;
}

.landing-hero-panel .landing-lead {
  max-width: 40rem;
  margin-left: 0;
  margin-right: 0;
  color: rgba(220, 218, 238, 0.84);
}

.landing-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 1.25rem 0 1.35rem;
}

.landing-flow span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(126, 184, 255, 0.18);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(244, 244, 248, 0.88);
  font-size: 0.82rem;
  font-weight: 650;
}

.landing-flow span + span::before {
  content: "→";
  margin-right: 0.45rem;
  color: rgba(126, 184, 255, 0.7);
}

.landing-hero-copy .landing-cta-row {
  justify-content: flex-start;
}

.landing-product-mock {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(61, 217, 165, 0.12), transparent 58%),
    linear-gradient(165deg, rgba(18, 18, 27, 0.96), rgba(8, 8, 14, 0.92));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.mock-prompt-card,
.mock-video-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.mock-prompt-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
}

.mock-label,
.mock-status,
.use-case-tag {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-prompt-card p {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.35;
}

.mock-status {
  color: #8ee7c3;
  letter-spacing: 0;
  text-transform: none;
}

.mock-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.mock-process span {
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(155, 126, 253, 0.2);
  border-radius: 14px;
  background: rgba(155, 126, 253, 0.08);
  color: rgba(244, 244, 248, 0.86);
  font-size: 0.82rem;
  font-weight: 650;
  text-align: center;
}

.mock-video-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.mock-video-screen {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(126, 184, 255, 0.28), transparent 24%),
    linear-gradient(170deg, #202332 0%, #11121b 52%, #08080e 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.mock-video-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
}

.mock-video-caption {
  position: absolute;
  right: 0.8rem;
  bottom: 1rem;
  left: 0.8rem;
  display: grid;
  gap: 0.35rem;
}

.mock-video-caption span {
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.mock-video-caption span:last-child {
  width: 72%;
  justify-self: center;
}

.mock-video-meta {
  display: grid;
  gap: 0.35rem;
}

.mock-video-meta strong {
  font-family: var(--font-title);
  font-size: 1.2rem;
}

.mock-video-meta span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.section-head-stacked {
  display: grid;
  gap: 0.35rem;
  align-items: start;
}

.section-kicker {
  margin: 0;
  color: var(--violet);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.use-case-card {
  min-height: 13rem;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(126, 184, 255, 0.08), transparent 62%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}

.use-case-card h3 {
  margin: 1.1rem 0 0.5rem;
  font-family: var(--font-title);
  font-size: 1.15rem;
  letter-spacing: 0;
}

.use-case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.proof-strip span {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(61, 217, 165, 0.18);
  border-radius: 14px;
  background: rgba(61, 217, 165, 0.055);
  color: #9ee8c8;
  font-weight: 750;
  text-align: center;
}

.badge-muted {
  color: rgba(220, 218, 238, 0.82);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
}

.dash-card-note {
  margin-top: auto;
  padding-top: 0.25rem;
  color: rgba(154, 151, 172, 0.88);
  font-size: 0.84rem;
}

.dash-card-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.dash-card-row h2 {
  margin-bottom: 0;
}

.dash-card-onboarding {
  border-color: rgba(126, 184, 255, 0.18);
}

.onboarding-list {
  display: grid;
  gap: 0.6rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.onboarding-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(244, 244, 248, 0.9);
  font-weight: 650;
}

.onboarding-list span {
  display: inline-grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(126, 184, 255, 0.12);
  color: var(--blue);
  font-size: 0.78rem;
}

.composer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.composer-head h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.25rem;
  letter-spacing: 0;
}

.composer-head p {
  margin: 0;
  max-width: 17rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.composer-head .dash-card-kicker {
  margin-bottom: 0.35rem;
}

.prompt-bar-premium {
  grid-template-columns: 44px minmax(0, 1fr) 40px;
  border-radius: 24px;
}

.generate-button {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin-top: 0.35rem;
  padding: 0 1rem;
  gap: 0.55rem;
  border-radius: 16px;
  color: #fff;
  font-weight: 750;
}

.generate-button span {
  white-space: nowrap;
  font-size: 0.88rem;
}

.generate-button svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
}

.composer-meta-row {
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.studio-balance-pill {
  margin: 0;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(126, 184, 255, 0.22);
  border-radius: var(--radius-full);
  background: rgba(126, 184, 255, 0.07);
  color: #b8d4ff;
  font-size: 0.8rem;
  font-weight: 650;
}

.studio-balance-pill [data-credit-available] {
  color: var(--green);
}

.advanced-hint {
  margin: 0;
  padding: 1rem 0 0;
  color: rgba(154, 151, 172, 0.9);
  font-size: 0.82rem;
  line-height: 1.45;
}

.videos-empty-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 1.5rem;
  align-items: center;
  text-align: left;
  border-style: solid;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(155, 126, 253, 0.11), transparent 58%),
    rgba(255, 255, 255, 0.02);
}

.videos-empty-copy h2 {
  margin: 0.35rem 0 0.55rem;
  font-family: var(--font-title);
  font-size: 1.35rem;
  letter-spacing: 0;
}

.videos-empty-copy p {
  margin-inline: 0;
}

.video-empty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.video-empty-grid span {
  display: block;
  aspect-ratio: 9 / 14;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.015)),
    linear-gradient(165deg, rgba(126, 184, 255, 0.08), rgba(155, 126, 253, 0.06));
}

.video-empty-grid span:nth-child(2) {
  transform: translateY(1rem);
}

.credits-trust-note {
  margin: 0 0 1rem;
  color: rgba(220, 218, 238, 0.82);
  font-size: 0.9rem;
  line-height: 1.5;
}

.credit-pack-estimate {
  margin: 0.35rem 0 0;
  color: rgba(154, 151, 172, 0.92);
  font-size: 0.84rem;
  line-height: 1.4;
}

.credit-packs-premium .credit-pack {
  min-height: 10rem;
}

@media (min-width: 900px) {
  .dash-card-featured {
    grid-row: span 1;
    min-height: 15rem;
  }

  .dash-card-onboarding {
    grid-column: span 4;
  }

  .dash-card-job {
    grid-column: span 4;
  }

  .dash-card-soon {
    grid-column: span 4;
  }
}

@media (max-width: 900px) {
  .landing-hero-panel {
    grid-template-columns: 1fr;
  }

  .landing-product-mock {
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }

  .use-case-grid,
  .proof-strip {
    grid-template-columns: 1fr;
  }

  .videos-empty-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem;
  }

  .app-header .brand-mark {
    min-width: 0;
  }

  .header-actions {
    justify-content: flex-end;
    gap: 0.45rem;
  }

  .header-user-email {
    display: none;
  }

  .header-credits-label {
    font-size: 0.68rem;
  }

  .app-nav {
    grid-column: 1 / -1;
    order: 0;
    justify-content: space-between;
  }

  .nav-link {
    flex: 1 0 auto;
    text-align: center;
  }

  .landing-main {
    width: min(100% - 1rem, 680px);
    padding-top: 1.25rem;
  }

  .landing-hero-panel {
    padding: 1.35rem;
    border-radius: 20px;
  }

  .landing-hero-panel .landing-hero-copy h1 {
    max-width: 100%;
    text-align: center;
    font-size: clamp(2rem, 10vw, 2.85rem);
  }

  .landing-hero-copy h1::before {
    margin-left: auto;
    margin-right: auto;
  }

  .landing-hero-copy,
  .landing-hero-panel .landing-lead {
    text-align: center;
  }

  .landing-hero-copy .landing-kicker,
  .landing-hero-copy .landing-cta-row {
    justify-content: center;
    margin-inline: auto;
  }

  .landing-flow {
    justify-content: center;
  }

  .mock-video-card {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .prompt-bar-premium .generate-button {
    height: 48px;
  }

  .composer-head {
    display: grid;
  }

  .composer-head p {
    max-width: none;
  }

  .video-empty-grid {
    grid-template-columns: repeat(3, minmax(74px, 1fr));
    overflow: hidden;
  }
}

@media (max-width: 430px) {
  .landing-topbar {
    gap: 0.75rem;
  }

  .landing-topbar .btn {
    padding-inline: 0.85rem;
  }

  .landing-cta-row .btn {
    width: 100%;
    justify-content: center;
  }

  .mock-video-card {
    grid-template-columns: 1fr;
  }

  .mock-video-screen {
    width: min(150px, 56vw);
    justify-self: center;
  }

  .app-main {
    width: min(100% - 1rem, 680px);
  }

  .header-actions .btn-sm {
    padding-inline: 0.6rem;
  }
}

/* UI-1D : auth modal, public/app split, real demo video */
body.auth-modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}

.auth-modal-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(126, 184, 255, 0.14), transparent 32rem),
    rgba(5, 5, 10, 0.72);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.auth-modal-card {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100vw - 2rem));
  max-height: min(760px, calc(100vh - 2rem));
  overflow: auto;
  margin: 0;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(20, 22, 34, 0.96), rgba(12, 12, 18, 0.98));
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.62);
}

.auth-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition);
}

.auth-modal-close:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.auth-modal-card .landing-kicker {
  margin-bottom: 0.55rem;
}

.auth-modal-card h2 {
  padding-right: 2.5rem;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
  margin: 1.2rem 0 1rem;
  padding: 0.28rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-mode-tab {
  min-height: 2.45rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.auth-mode-tab.is-active {
  background: var(--ink);
  color: #07070d;
}

.auth-modal-card .auth-login-form-stacked {
  gap: 0.6rem;
}

.auth-modal-card .auth-input {
  min-height: 3rem;
  width: 100%;
}

.auth-modal-card .btn-block {
  min-height: 3rem;
  margin-top: 0.25rem;
}

.auth-modal-card .auth-status {
  margin-top: 1rem;
}

.landing-product-demo {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(172px, 0.78fr) minmax(210px, 1fr);
  gap: 1rem;
  align-items: center;
  padding: clamp(1rem, 2.4vw, 1.35rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 8, 14, 0.74);
  box-shadow: var(--shadow), 0 0 80px rgba(61, 217, 165, 0.08);
  backdrop-filter: blur(18px);
}

.demo-video-shell {
  position: relative;
  display: grid;
  align-content: space-between;
  width: min(210px, 42vw);
  aspect-ratio: 9 / 16;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: #05050a;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.landing-demo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.demo-video-topline,
.demo-video-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin: 0.75rem;
}

.demo-video-topline span {
  padding: 0.38rem 0.58rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.demo-video-topline span:first-child {
  background: rgba(61, 217, 165, 0.94);
  color: #02110d;
}

.demo-video-footer {
  align-self: end;
  display: grid;
  justify-content: start;
  padding: 0.75rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  color: #fff;
}

.demo-video-footer strong {
  font-family: var(--font-title);
  font-size: 0.88rem;
}

.demo-video-footer span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.74rem;
}

.landing-product-demo .mock-prompt-card {
  align-self: end;
  min-width: 0;
}

.demo-chip-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.demo-chip-row span {
  padding: 0.55rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .landing-product-demo {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .auth-modal {
    align-items: end;
    padding: 0.85rem;
  }

  .auth-modal-card {
    width: 100%;
    max-height: calc(100vh - 1.7rem);
    border-radius: 22px;
  }

  .landing-product-demo {
    grid-template-columns: 1fr;
  }

  .demo-video-shell {
    width: min(220px, 62vw);
  }
}
