/* Art direction: Real Estate Photography SaaS → Professional, sleek, premium
   Palette: Dark base with warm amber/gold accent — evokes luxury real estate
   Typography: General Sans (body) + Cabinet Grotesk (display) — modern, clean
   Density: spacious for landing, balanced for app */

/* ===== FONTS ===== */
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@300,400,500,600,700&f[]=cabinet-grotesk@500,700,800&display=swap');

:root {
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;

  /* ===== TYPE SCALE ===== */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* ===== SPACING (4px) ===== */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ===== RADIUS ===== */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;

  /* ===== TRANSITIONS ===== */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  /* ===== CONTENT WIDTHS ===== */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ===== LIGHT MODE ===== */
:root,
[data-theme="light"] {
  --color-bg: #fafaf8;
  --color-surface: #ffffff;
  --color-surface-2: #f5f5f2;
  --color-surface-offset: #eeedea;
  --color-surface-dynamic: #e4e3df;
  --color-divider: #dddcd8;
  --color-border: #d0cfcb;

  --color-text: #1a1a18;
  --color-text-muted: #6b6b66;
  --color-text-faint: #a3a29e;
  --color-text-inverse: #fafaf8;

  /* Amber/Gold primary — luxury real estate feel */
  --color-primary: #b8860b;
  --color-primary-hover: #9a7209;
  --color-primary-active: #7c5c07;
  --color-primary-light: #fdf6e3;
  --color-primary-highlight: #f5ecd4;

  --color-success: #2d8a4e;
  --color-error: #c4342e;

  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.12);
  --shadow-xl: 0 24px 48px oklch(0.2 0.01 80 / 0.16);
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --color-bg: #0e0e0c;
  --color-surface: #161614;
  --color-surface-2: #1e1e1b;
  --color-surface-offset: #252522;
  --color-surface-dynamic: #2e2e2a;
  --color-divider: #333330;
  --color-border: #44443f;

  --color-text: #e8e8e4;
  --color-text-muted: #9a9a95;
  --color-text-faint: #5e5e59;
  --color-text-inverse: #0e0e0c;

  --color-primary: #daa520;
  --color-primary-hover: #e6b84a;
  --color-primary-active: #c89418;
  --color-primary-light: #1e1b10;
  --color-primary-highlight: #2a2618;

  --color-success: #4ade80;
  --color-error: #f87171;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  --shadow-xl: 0 24px 48px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0e0e0c;
    --color-surface: #161614;
    --color-surface-2: #1e1e1b;
    --color-surface-offset: #252522;
    --color-surface-dynamic: #2e2e2a;
    --color-divider: #333330;
    --color-border: #44443f;
    --color-text: #e8e8e4;
    --color-text-muted: #9a9a95;
    --color-text-faint: #5e5e59;
    --color-text-inverse: #0e0e0c;
    --color-primary: #daa520;
    --color-primary-hover: #e6b84a;
    --color-primary-active: #c89418;
    --color-primary-light: #1e1b10;
    --color-primary-highlight: #2a2618;
    --color-success: #4ade80;
    --color-error: #f87171;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
    --shadow-xl: 0 24px 48px oklch(0 0 0 / 0.5);
  }
}

/* ===== GLOBAL STYLES ===== */
body {
  font-family: var(--font-display);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-lg);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition-interactive);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0e0e0c;
  border: none;
  position: relative;
  overflow: hidden;

  /* Animated gradient — matches hero CTA */
  background: linear-gradient(
    110deg,
    #c89418 0%,
    #e6b84a 35%,
    #f5d06a 50%,
    #e6b84a 65%,
    #c89418 100%
  );
  background-size: 250% 100%;
  background-position: 0% center;
  animation: heroCtaShimmer 3.5s ease-in-out infinite;

  box-shadow:
    0 0 18px rgba(200, 148, 18, 0.35),
    0 3px 14px rgba(200, 148, 18, 0.2);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 0 32px rgba(200, 148, 18, 0.55),
    0 6px 20px rgba(200, 148, 18, 0.35);
}

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

/* Disabled: same gold family, flatter & dimmer — still yellow, clearly inactive */
.btn-primary:disabled,
.btn-primary[disabled] {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  animation: none;
  color: rgba(14, 14, 12, 0.58);
  background: linear-gradient(
    110deg,
    #9e8020 0%,
    #b89434 35%,
    #c9a244 50%,
    #b89434 65%,
    #9e8020 100%
  );
  background-size: 100% 100%;
  background-position: center;
}

.btn-primary:disabled::before,
.btn-primary[disabled]::before {
  display: none;
}

/* Gloss sweep on nav primary button */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  background-position: 120% center;
  animation: heroCtaGloss 3.5s ease-in-out infinite;
  pointer-events: none;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

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

.btn-ghost:hover {
  background: var(--color-surface-2);
}

.btn-danger {
  background: #b91c1c;
  color: #fff;
  border: 1px solid #991b1b;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(185, 28, 28, 0.4);
}

/* Confirm delete modal */
.confirm-delete-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(185, 28, 28, 0.15);
  border: 1px solid rgba(185, 28, 28, 0.35);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

/* ── Generate confirm modal ── */
.confirm-generate-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(200, 148, 18, 0.14);
  border: 1px solid rgba(200, 148, 18, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  color: var(--color-primary);
  box-shadow: 0 0 24px rgba(200, 148, 18, 0.25);
  animation: confirmGenIconPop 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes confirmGenIconPop {
  0%   { opacity: 0; transform: scale(0.5) rotate(-10deg); }
  65%  { opacity: 1; transform: scale(1.12) rotate(4deg); }
  85%  { transform: scale(0.96) rotate(-1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.confirm-generate-breakdown {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
  text-align: left;
}

.confirm-generate-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: 5px 0;
}

.confirm-generate-line span:last-child {
  white-space: nowrap;
  flex-shrink: 0;
}

.confirm-generate-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  padding-top: var(--space-3);
  margin-top: var(--space-2);
  border-top: 1px solid var(--color-border);
}

.confirm-generate-total-value {
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.confirm-generate-balance {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
}

/* Smaller buttons scoped to confirm delete modal only */
#confirmDeleteModal .btn {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
}

.confirm-delete-modal .confirm-delete-message {
  margin: 0;
  padding: 0 0 var(--space-8);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.confirm-delete-modal .confirm-delete-actions {
  padding-top: var(--space-6);
}

/* Slightly translucent panel — shows overlay behind */
#confirmDeleteModal .confirm-delete-modal.modal {
  background: color-mix(in oklch, var(--color-surface) 68%, transparent);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border: 1px solid color-mix(in oklch, var(--color-border) 55%, transparent);
  box-shadow:
    var(--shadow-xl),
    inset 0 1px 0 color-mix(in oklch, var(--color-text-inverse) 5%, transparent);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: color-mix(in oklch, var(--color-bg) 80%, transparent);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--color-divider);
  transition: background 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: -0.03em;
}

.nav-logo svg {
  width: 50px;
  height: 50px;
}

.nav-logo-text {
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: -0.03em;
}

.logo-stage {
  color: var(--color-text);
}

.logo-lyt {
  color: var(--color-primary);
}


.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition-interactive);
}

.nav-links a:hover {
  color: var(--color-text);
}

#navBuyCreditsBtn {
  color: var(--color-primary);
}

#navBuyCreditsBtn:hover {
  color: var(--color-primary);
  background: color-mix(in oklch, var(--color-primary) 10%, transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-hamburger {
  display: none;
  width: 24px;
  height: 24px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: all 0.3s var(--ease-out);
}

/* ===== HERO ===== */
.hero {
  padding-top: calc(64px + var(--space-20));
  padding-bottom: var(--space-20);
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: var(--color-primary-light);
  border: 1px solid color-mix(in oklch, var(--color-primary) 20%, transparent);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 9rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);

  /* Radial edge-fade mask — matches chapter-title style */
  -webkit-mask-image: radial-gradient(
    ellipse 92% 80% at 50% 50%,
    black 30%,
    transparent 90%
  );
  mask-image: radial-gradient(
    ellipse 92% 80% at 50% 50%,
    black 30%,
    transparent 90%
  );
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--color-primary), #e6b84a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 420px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
  opacity: 0.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Premium shimmer CTA button ──────────────────────────────────────── */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 52px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #0e0e0c;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;

  /* Animated gradient fill — amber → bright gold → amber */
  background: linear-gradient(
    110deg,
    #c89418 0%,
    #e6b84a 35%,
    #f5d06a 50%,
    #e6b84a 65%,
    #c89418 100%
  );
  background-size: 250% 100%;
  background-position: 0% center;
  animation: heroCtaShimmer 3.5s ease-in-out infinite;

  /* Warm ambient glow */
  box-shadow:
    0 0 28px rgba(200, 148, 18, 0.38),
    0 4px 20px rgba(200, 148, 18, 0.22);

  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

/* Gloss overlay sweep on top */
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  background-position: 120% center;
  animation: heroCtaGloss 3.5s ease-in-out infinite;
  pointer-events: none;
}

.hero-cta:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 0 60px rgba(200, 148, 18, 0.62),
    0 8px 32px rgba(200, 148, 18, 0.45);
}

.hero-cta:active {
  transform: translateY(-1px) scale(1.01);
}

.hero-cta svg {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

.hero-cta:hover svg {
  transform: rotate(20deg) scale(1.15);
}

@keyframes heroCtaShimmer {
  0%, 100% { background-position: 0% center; }
  50%       { background-position: 100% center; }
}

@keyframes heroCtaGloss {
  0%, 35% { background-position: 120% center; }
  65%     { background-position: -20% center; }
  100%    { background-position: 120% center; }
}

.hero-bg-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, color-mix(in oklch, var(--color-primary) 12%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===== SECTIONS ===== */
section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header .section-desc {
  margin-inline: auto;
}

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #e6b84a);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklch, var(--color-primary) 30%, var(--color-border));
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-primary);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ===== HOW IT WORKS — VERTICAL ZIGZAG TIMELINE ===== */
.steps-grid {
  display: flex;
  flex-direction: column;
  position: relative;
  counter-reset: step;
  max-width: 860px;
  margin-inline: auto;
  gap: 0;
}

/* Vertical golden spine running behind all bubbles */
.steps-grid::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(var(--space-10) + 28px);
  bottom: calc(var(--space-10) + 28px);
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--color-primary),
    color-mix(in oklch, var(--color-primary) 20%, transparent)
  );
  z-index: 0;
  border-radius: 1px;
}

.step-card {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  column-gap: var(--space-8);
  align-items: start;
  position: relative;
  counter-increment: step;
  padding-block: var(--space-10);
  text-align: left;
}

/* Remove old horizontal connector */
.step-card:not(:last-child)::after {
  display: none;
}

/* Step number bubble — always in center column */
.step-number {
  grid-column: 2;
  grid-row: 1;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  margin: 0;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--color-bg),
              0 0 0 6px color-mix(in oklch, var(--color-primary) 30%, transparent),
              var(--shadow-md);
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.step-card:hover .step-number {
  transform: scale(1.08);
  box-shadow: 0 0 0 4px var(--color-bg),
              0 0 0 10px color-mix(in oklch, var(--color-primary) 40%, transparent),
              var(--shadow-lg);
}

/* Odd steps (1, 3, 5): content in right column */
.step-card:nth-child(odd) h3,
.step-card:nth-child(odd) p {
  grid-column: 3;
}

/* Even steps (2, 4): content in left column, right-aligned */
.step-card:nth-child(even) h3,
.step-card:nth-child(even) p {
  grid-column: 1;
  text-align: right;
}

.step-card h3 {
  grid-row: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
  padding-top: 14px;
}

.step-card p {
  grid-row: 2;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 300px;
  margin: 0;
}

.step-card:nth-child(even) p {
  margin-left: auto;
  margin-right: 0;
}

/* 5th stagger delay */
.stagger.visible > *:nth-child(5) {
  transition-delay: 240ms;
}

/* ===== DARK SHOWCASE SECTION ===== */
.showcase-dark-section {
  position: relative;
  background: var(--color-bg);
  padding: var(--space-24) 0;
  overflow: hidden;
}

.showcase-dark-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse, color-mix(in oklch, var(--color-primary) 14%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section-title-large {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: var(--space-4);

  /* Radial mask: sharp center, soft blurred edges — matches chapter-title */
  -webkit-mask-image: radial-gradient(
    ellipse 88% 72% at 50% 50%,
    black 28%,
    transparent 88%
  );
  mask-image: radial-gradient(
    ellipse 88% 72% at 50% 50%,
    black 28%,
    transparent 88%
  );

  /* Initial state: driven by initScrollTitleParallax, same as chapter-title */
  opacity: 0;
  transform: scale(0.06) translateY(80px);
  filter: blur(22px);
  will-change: transform, opacity, filter;
  transition: none;
}

/* Safety fallback: show when JS is disabled */
.no-js .section-title-large {
  opacity: 1;
  transform: none;
  filter: none;
}

.section-title-accent {
  background: linear-gradient(135deg, var(--color-primary), #e6b84a 60%, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.showcase-dark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.showcase-panel-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.showcase-drone-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid color-mix(in oklch, var(--color-primary) 28%, transparent);
}

.showcase-drone-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-drone-badge {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px var(--space-3);
  background: oklch(0.1 0.04 85 / 0.88);
  border: 1px solid color-mix(in oklch, var(--color-primary) 45%, transparent);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

/* ===== DARK PRICING SECTION ===== */
.pricing-dark-section {
  position: relative;
  background: var(--color-bg);
  padding: var(--space-24) 0;
  overflow: hidden;
}

.pricing-dark-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse, color-mix(in oklch, var(--color-primary) 14%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.pricing-dark-section .pricing-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.pricing-dark-section .pricing-card.popular {
  border-color: var(--color-primary);
  box-shadow: 0 0 40px color-mix(in oklch, var(--color-primary) 15%, transparent),
              0 0 0 1px var(--color-primary);
}

/* ===== BEFORE/AFTER SHOWCASE (legacy) ===== */
.showcase-section {
  background: var(--color-surface-2);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  margin-inline: var(--space-6);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.showcase-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.showcase-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  background: var(--color-surface-dynamic);
}

.showcase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-img .label {
  position: absolute;
  bottom: var(--space-2);
  left: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.showcase-img .label-before {
  background: oklch(0.3 0 0 / 0.7);
  color: #fff;
}

.showcase-img .label-after {
  background: oklch(0.5 0.15 85 / 0.8);
  color: #fff;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.pricing-card.popular {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-lg);
}

.pricing-card.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-4);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-plan {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.pricing-price .currency {
  font-size: var(--text-lg);
  vertical-align: super;
}

.pricing-price .period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 400;
}

.pricing-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing-features li {
  font-size: var(--text-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card .btn {
  width: 100%;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0 0 0 / 0.5);
  backdrop-filter: blur(4px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  max-width: 440px;
  width: 100%;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.4s var(--ease-out);
  box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

/* Full-screen download preparation (matches re-edit overlay band) */
.download-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: oklch(0 0 0 / 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-4);
}

/* ── Quick Confirm Modal animations ── */
@keyframes qcPanelIn {
  0%   { opacity: 0; transform: scale(0.88) translateY(24px); filter: blur(4px); }
  60%  { opacity: 1; transform: scale(1.02) translateY(-3px); filter: blur(0); }
  80%  { transform: scale(0.99) translateY(1px); }
  100% { transform: scale(1) translateY(0); }
}

@keyframes qcIconPop {
  0%   { opacity: 0; transform: scale(0.5) rotate(-10deg); }
  65%  { opacity: 1; transform: scale(1.15) rotate(3deg); }
  82%  { transform: scale(0.95) rotate(-1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

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

@keyframes qcGlow {
  0%   { box-shadow: 0 32px 80px oklch(0 0 0 / 0.65), 0 0 0 1px oklch(1 0 0 / 0.04) inset, 0 0 0 0 oklch(0.65 0.2 55 / 0); }
  50%  { box-shadow: 0 32px 80px oklch(0 0 0 / 0.65), 0 0 0 1px oklch(1 0 0 / 0.04) inset, 0 0 48px 0 oklch(0.65 0.2 55 / 0.10); }
  100% { box-shadow: 0 32px 80px oklch(0 0 0 / 0.65), 0 0 0 1px oklch(1 0 0 / 0.04) inset, 0 0 0 0 oklch(0.65 0.2 55 / 0); }
}

/* Panel + content all arrive together — tiny micro-stagger only */
#quickConfirmModal.active > div {
  transform: scale(1) translateY(0) !important;
  animation: qcPanelIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both,
             qcGlow 1.4s ease-out 0.2s both;
}

.quick-confirm-video-tabs {
  display: none;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 16px;
  box-sizing: border-box;
}

.quick-confirm-video-tabs.is-visible {
  display: block;
}

/* Sliding pill control — gold thumb moves between options */
.quick-confirm-slider-track {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, oklch(0.2 0.02 260 / 0.5) 0%, oklch(0.08 0.02 260 / 0.95) 100%);
  border: 1px solid oklch(1 0 0 / 0.1);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.06),
    0 8px 28px oklch(0 0 0 / 0.35);
  overflow: hidden;
  min-height: 48px;
}

.quick-confirm-slider-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 6px);
  border-radius: 12px;
  background: linear-gradient(
    155deg,
    oklch(0.9 0.16 92) 0%,
    oklch(0.82 0.15 78) 45%,
    oklch(0.76 0.14 72) 100%
  );
  box-shadow:
    0 4px 18px oklch(0.55 0.16 75 / 0.45),
    0 0 32px oklch(0.72 0.14 85 / 0.2),
    inset 0 1px 0 oklch(1 0.05 95 / 0.55);
  /* Default: Cinematic (right segment) — matches _quickConfirmVideoKind = 'cinematic' */
  transform: translateX(calc(100% + 4px));
  transition: transform 0.5s cubic-bezier(0.34, 1.25, 0.64, 1);
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.quick-confirm-video-tabs.qc-kind-slideshow .quick-confirm-slider-thumb {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .quick-confirm-slider-thumb {
    transition-duration: 0.12s;
  }
}

.quick-confirm-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0;
  padding: 12px 10px;
  border: none;
  border-radius: 12px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.28s ease, text-shadow 0.28s ease;
  font-family: inherit;
  line-height: 1.25;
}

.quick-confirm-tab[aria-selected="true"] {
  color: oklch(0.16 0.03 260);
  text-shadow: 0 1px 0 oklch(1 0.05 95 / 0.25);
}

.quick-confirm-tab[aria-selected="false"]:hover:not(.disabled) {
  color: oklch(0.88 0.02 260 / 0.95);
}

.quick-confirm-tab.disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

.quick-confirm-tab:focus {
  outline: none;
}

.quick-confirm-tab:focus-visible {
  outline: 2px solid oklch(0.78 0.14 85 / 0.75);
  outline-offset: 2px;
  z-index: 2;
}

#quickConfirmModal.active .quick-confirm-video-tabs {
  animation: qcFadeUp 0.35s var(--ease-out) 0.04s both;
}

#quickConfirmModal.active #quickConfirmIcon {
  animation: qcIconPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.04s both;
}

#quickConfirmModal.active #quickConfirmTitle {
  animation: qcFadeUp 0.35s var(--ease-out) 0.08s both;
}

#quickConfirmModal.active #quickConfirmDesc {
  animation: qcFadeUp 0.35s var(--ease-out) 0.13s both;
}

#quickConfirmModal.active #quickConfirmCredits {
  animation: qcFadeUp 0.3s var(--ease-out) 0.17s both;
}

#quickConfirmModal.active #quickConfirmBalance {
  animation: qcFadeUp 0.3s var(--ease-out) 0.20s both;
}

#quickConfirmModal.active .btn {
  animation: qcFadeUp 0.35s var(--ease-out) 0.23s both;
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: all var(--transition-interactive);
}

.modal-close:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

/* ── Announcement Banner ─────────────────────────────────────────── */

.announcement-banner {
  position: fixed;
  top: 72px; /* below the nav */
  left: 0;
  right: 0;
  z-index: 900;
  background: linear-gradient(135deg, var(--color-primary), #9a7209);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: 0 4px 12px oklch(0.2 0.1 80 / 0.25);
  animation: slideDownBanner 0.3s var(--ease-out);
}

@keyframes slideDownBanner {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.announcement-banner-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
}

.announcement-dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  transition: color var(--transition-interactive), background var(--transition-interactive);
  flex-shrink: 0;
}

.announcement-dismiss:hover {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

.modal h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.modal p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-5) 0;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-divider);
}

.btn-social {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  cursor: pointer;
  transition: all var(--transition-interactive);
}

.btn-social:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-social svg {
  width: 20px;
  height: 20px;
}

/* OTP Code Input */
#otpCode {
  text-align: center;
  font-size: var(--text-xl, 1.25rem);
  letter-spacing: 0.4em;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  padding: var(--space-4);
}

#otpCode::placeholder {
  letter-spacing: 0.4em;
  opacity: 0.3;
}

#otpStep,
#emailStep {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ===== LOADING SCREEN ===== */
#loadingScreen {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease;
}

#loadingScreen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  animation: loadingFadeIn 0.6s ease both;
}

@keyframes loadingFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-logo-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-logo {
  animation: loadingFloat 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px color-mix(in oklch, var(--color-primary) 40%, transparent));
}

@keyframes loadingFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.loading-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  opacity: 0;
  animation: loadingPulse 1.5s ease-out infinite;
}

@keyframes loadingPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.loading-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.loading-bar {
  width: 180px;
  height: 3px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--color-primary), #e6b84a);
  border-radius: var(--radius-full);
  animation: loadingShimmer 1.4s ease-in-out infinite;
}

@keyframes loadingShimmer {
  0% {
    transform: translateX(-200%);
  }

  100% {
    transform: translateX(400%);
  }
}

.loading-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  animation: loadingDots 1.5s ease-in-out infinite;
}

.loading-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  font-style: italic;
  margin-top: calc(-1 * var(--space-2));
  opacity: 0.8;
}

.loading-title .logo-stage {
  color: var(--color-text);
}

.loading-title .logo-lyt {
  color: var(--color-primary);
}

/* SVG draw animations for loading logo */
.logo-anim-house {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: svgDraw 0.8s ease-out 0.1s forwards, loadingFloat 2s ease-in-out 1s infinite;
}

.logo-anim-camera {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: svgDraw 0.5s ease-out 0.9s forwards, loadingFloat 2s ease-in-out 1s infinite;
}

.logo-anim-lens {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: svgDraw 0.4s ease-out 1.4s forwards, loadingFloat 2s ease-in-out 1s infinite;
}

.logo-anim-lens-dot {
  opacity: 0;
  animation: svgFadeIn 0.3s ease-out 1.8s forwards, loadingFloat 2s ease-in-out 1s infinite;
}

@keyframes svgDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes svgFadeIn {
  to {
    opacity: 1;
  }
}


@keyframes loadingDots {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* ===== DASHBOARD (Post-Auth) ===== */
.dashboard {
  display: none;
}

.dashboard.active {
  display: block;
}

/* Clear fixed navbar on all dash-header pages */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: 72px;
  margin-bottom: var(--space-6);
}

/* Welcome banner */
.dash-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-8);
  margin-top: 72px;
  margin-bottom: var(--space-5);
  background: linear-gradient(135deg, color-mix(in oklch, var(--color-primary) 8%, var(--color-surface-1)), var(--color-surface-1));
  border: 1px solid color-mix(in oklch, var(--color-primary) 15%, var(--color-border));
  border-radius: var(--radius-2xl);
  animation: dashWelcomeIn 0.6s var(--ease-out) both;
}

@keyframes dashWelcomeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dash-welcome-text h1 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
}

/* Stats bar */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  animation: dashStatsIn 0.6s var(--ease-out) 0.15s both;
}

@keyframes dashStatsIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dash-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-3);
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: border-color 0.2s ease;
}

.dash-stat:hover {
  border-color: var(--color-primary);
}

.dash-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}

.dash-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.dash-stat-action {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px dashed var(--color-border);
}

.dash-stat-action:hover {
  border-color: var(--color-primary);
  border-style: solid;
}

.dash-section-title {
  margin-bottom: var(--space-4);
  animation: dashStatsIn 0.6s var(--ease-out) 0.3s both;
}

.dash-section-title h2 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .dash-welcome {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
  }

  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.credits-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-light);
  border: 1px solid color-mix(in oklch, var(--color-primary) 20%, transparent);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  background: var(--color-surface);
  position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.upload-zone .upload-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--color-primary);
  transition: all 0.3s var(--ease-out);
}

.upload-zone:hover .upload-icon {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.05);
}

.upload-zone .upload-zone-hero-title {
  font-size: clamp(1.5rem, 0.85rem + 2.5vw, 2.35rem);
  margin-bottom: var(--space-3);
}

.upload-zone .upload-zone-hero-sub {
  font-size: var(--text-sm);
  max-width: none;
  text-align: center;
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--color-surface-2);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.photo-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* Existing-photo cards shown in append-mode — not interactive */
.photo-card-existing {
  cursor: default;
  opacity: 0.7;
}

.photo-card-existing:hover {
  transform: none;
  box-shadow: none;
}

.existing-photo-lock {
  position: absolute;
  bottom: var(--space-2);
  left: var(--space-2);
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: oklch(0.2 0 0 / 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  backdrop-filter: blur(4px);
}


.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card .status-badge {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.status-original {
  background: oklch(0.3 0 0 / 0.6);
  color: #fff;
}

.status-edited {
  background: oklch(0.5 0.15 85 / 0.8);
  color: #fff;
}

.status-processing {
  background: oklch(0.5 0.1 250 / 0.8);
  color: #fff;
  animation: pulse-badge 1.5s ease-in-out infinite;
}

.status-queued {
  background: oklch(0.4 0.05 260 / 0.6);
  color: #fff;
}

@keyframes pulse-badge {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* ===== RETRY OVERLAY (failed enhancement) ===== */
.retry-overlay {
  position: absolute;
  inset: 0;
  background: oklch(0.08 0.04 15 / 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  cursor: pointer;
  border-radius: var(--radius-lg);
}

.retry-overlay:hover .retry-icon {
  transform: scale(1.12);
  background: oklch(0.28 0.07 15 / 0.95);
  border-color: oklch(0.75 0.12 15 / 0.9);
}

.retry-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: oklch(0.18 0.06 15 / 0.88);
  border: 2px solid oklch(0.65 0.12 15 / 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  animation: retry-pulse 2s ease-in-out infinite;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

@keyframes retry-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 oklch(0.6 0.18 15 / 0.55);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px oklch(0.6 0.18 15 / 0);
    transform: scale(1.07);
  }
}

/* Actions toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  margin-top: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.toolbar .info-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

#continueToOptionsBtn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.2);
}

/* Progress bar */
.progress-bar-container {
  margin-top: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: none;
  position: relative;
  overflow: hidden;
}

.progress-bar-container.active {
  display: block;
  animation: progressContainerGlow 2.5s ease-in-out infinite;
}

/* Subtle scan line sweeping across the container */
.progress-bar-container.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.04), transparent);
  animation: containerScan 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes progressContainerGlow {

  0%,
  100% {
    border-color: var(--color-border);
    box-shadow: none;
  }

  50% {
    border-color: rgba(212, 160, 23, 0.35);
    box-shadow: 0 0 24px rgba(212, 160, 23, 0.07);
  }
}

@keyframes containerScan {
  0% {
    left: -60%;
  }

  100% {
    left: 110%;
  }
}

/* ── Header row ── */
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.progress-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.progress-label {
  font-size: var(--text-sm);
  font-weight: 600;
}

.progress-percent {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  min-width: 60px;
  text-align: right;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ── Pulsing AI wand icon ── */
.progress-ai-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
  animation: aiIconPulse 1.6s ease-in-out infinite;
}

@keyframes aiIconPulse {

  0%,
  100% {
    transform: scale(1);
    background: rgba(212, 160, 23, 0.12);
    box-shadow: none;
  }

  50% {
    transform: scale(1.12);
    background: rgba(212, 160, 23, 0.22);
    box-shadow: 0 0 10px rgba(212, 160, 23, 0.3);
  }
}

/* ── AI message typewriter ticker ── */
.progress-ai-ticker {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  height: 22px;
  overflow: hidden;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-cursor {
  display: inline-block;
  color: var(--color-primary);
  animation: cursorBlink 0.85s step-end infinite;
  margin-left: 1px;
  font-size: 10px;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ── Progress track & fill ── */
.progress-bar {
  height: 14px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  overflow: visible;
  position: relative;
  border: 1px solid var(--color-border);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #c8960f, var(--color-primary), #f0d060);
  background-size: 200% 100%;
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fillGradientShift 3s linear infinite;
  box-shadow: 0 0 12px color-mix(in oklch, var(--color-primary) 40%, transparent);
}

/* Moving shimmer on the fill */
.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: fillShimmer 1.8s ease-in-out infinite;
  border-radius: inherit;
}

@keyframes fillGradientShift {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

@keyframes fillShimmer {
  0% {
    left: -80%;
  }

  100% {
    left: 120%;
  }
}

/* Glowing spark dot at the leading edge */
.progress-spark {
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--color-primary), 0 0 10px 3px rgba(212, 160, 23, 0.6);
  animation: sparkPulse 0.9s ease-in-out infinite;
  z-index: 2;
}

@keyframes sparkPulse {

  0%,
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 2px var(--color-primary), 0 0 10px 3px rgba(212, 160, 23, 0.6);
  }

  50% {
    opacity: 0.7;
    transform: translateY(-50%) scale(1.5);
    box-shadow: 0 0 0 2px var(--color-primary), 0 0 16px 5px rgba(212, 160, 23, 0.4);
  }
}

/* Hide spark when bar is empty or complete */
.progress-fill.complete .progress-spark,
.progress-fill[style*="width: 0"] .progress-spark {
  display: none;
}

/* ── Meta stats row ── */
.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--color-divider);
  padding: var(--space-12) 0 var(--space-8);
  margin-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-3);
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer ul a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-interactive);
}

.footer ul a:hover {
  color: var(--color-text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

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

.footer-bottom a:hover {
  color: var(--color-primary);
}

/* ===== ANIMATIONS ===== */
@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to {
    opacity: 1;
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger>* {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.stagger.visible>*:nth-child(1) {
  transition-delay: 0ms;
}

.stagger.visible>*:nth-child(2) {
  transition-delay: 60ms;
}

.stagger.visible>*:nth-child(3) {
  transition-delay: 120ms;
}

.stagger.visible>*:nth-child(4) {
  transition-delay: 180ms;
}

.stagger.visible>* {
  opacity: 1;
  transform: translateY(0);
}

/* Floating animation for decorative elements */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.shimmer-bg {
  background: linear-gradient(90deg,
      transparent 0%,
      color-mix(in oklch, var(--color-primary) 8%, transparent) 50%,
      transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

/* ===== MOBILE DRAWER ===== */
.mobile-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: oklch(0 0 0 / 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 900;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.mobile-drawer-backdrop.open {
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  z-index: 901;
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-6) var(--space-8);
  gap: var(--space-6);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 32px oklch(0 0 0 / 0.25);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive), background var(--transition-interactive);
  line-height: 0;
}

.mobile-drawer-close:hover {
  color: var(--color-text);
  background: var(--color-border);
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-3);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive), background var(--transition-interactive), transform 0.2s var(--ease-out);
}

.mobile-drawer-link:hover {
  color: var(--color-text);
  background: var(--color-border);
  transform: translateX(4px);
}

.mobile-drawer-link-icon {
  font-size: 0.6em;
  color: var(--color-primary);
  opacity: 0.7;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.mobile-drawer-signin,
.mobile-drawer-cta {
  width: 100%;
  justify-content: center;
}

/* Hamburger → X animation */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .btn-login {
    display: none;
  }

  #signupBtn {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-4);
  }

  .hero h1 {
    font-size: clamp(2.4rem, 7vw, 6rem);
  }

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

  /* Steps timeline: collapse to left-aligned single column at tablet */
  .steps-grid::before {
    left: 28px;
    transform: none;
    top: calc(var(--space-10) + 28px);
    bottom: calc(var(--space-10) + 28px);
  }

  .step-card {
    grid-template-columns: 56px 1fr;
    column-gap: var(--space-5);
  }

  .step-card:nth-child(odd) h3,
  .step-card:nth-child(odd) p,
  .step-card:nth-child(even) h3,
  .step-card:nth-child(even) p {
    grid-column: 2;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .step-card h3 { grid-column: 2; }
  .step-card p  { grid-column: 2; max-width: 100%; }
  .step-number  { grid-column: 1; grid-row: 1; }

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

  .showcase-section {
    padding: var(--space-8);
    margin-inline: 0;
  }

  .showcase-dark-grid {
    grid-template-columns: 1fr;
  }

  .section-title-large {
    font-size: clamp(2.2rem, 9vw, 5rem);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-step-connector {
    width: 40px;
  }

  .wizard-step-label {
    font-size: 10px;
  }

  .step2-actions {
    flex-direction: column;
  }

  .step3-actions {
    flex-direction: column;
  }

  .lightbox-content img {
    max-height: 70vh;
  }

  .lightbox-bottom-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-inner {
    padding: 0 var(--space-3);
  }
}

@media (max-width: 480px) {
  .steps-grid::before { left: 24px; }

  .step-card {
    grid-template-columns: 48px 1fr;
    column-gap: var(--space-4);
    padding-block: var(--space-8);
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: var(--text-base);
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta {
    padding: 16px 40px;
    font-size: 0.95rem;
  }
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-interactive);
  color: var(--color-text-muted);
}

.theme-toggle:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

/* ===== SLIDESHOW PREVIEW ===== */
.slideshow-preview {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-top: var(--space-6);
  display: none;
}

.slideshow-preview.active {
  display: block;
}

/* Video settings always visible in step 3 */
#step3Panel .video-settings-panel {
  display: block !important;
  margin-top: var(--space-4);
  margin-bottom: 0;
}

.slideshow-viewport {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: var(--space-4);
}

.slideshow-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slideshow-viewport img.active {
  opacity: 1;
}

.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slideshow-controls .btn-group {
  display: flex;
  gap: var(--space-2);
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toast {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  min-width: 300px;
  animation: slide-up 0.4s var(--ease-out);
}

.toast.success {
  border-left: 3px solid var(--color-success);
}

.toast.error {
  border-left: 3px solid var(--color-error);
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== HEIC PLACEHOLDER ===== */
.heic-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-surface-offset);
  gap: var(--space-2);
  padding: var(--space-4);
  text-align: center;
}

.heic-placeholder svg {
  display: inline-block !important;
  max-width: 40px;
  height: auto;
}

.heic-filename {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heic-label {
  font-size: 10px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ===== RE-EDIT BUTTON & INPUT ===== */
.reedit-btn {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: oklch(0.35 0.05 250 / 0.85);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  z-index: 5;
}

.reedit-btn:hover {
  background: oklch(0.4 0.08 250 / 0.95);
  transform: translateY(-1px);
}

.reedit-input-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 4px;
  padding: var(--space-2);
  background: oklch(0.15 0 0 / 0.9);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.reedit-input {
  flex: 1;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
}

.reedit-input:focus {
  border-color: var(--color-primary);
}

.reedit-submit-btn {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-bg);
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.reedit-submit-btn:hover {
  filter: brightness(1.1);
}

.reedit-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== VIDEO SETTINGS PANEL ===== */
.video-settings-panel {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.setting-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.setting-row label {
  font-size: var(--text-sm);
  font-weight: 500;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.setting-row input[type="range"] {
  flex: 1;
  max-width: 200px;
  accent-color: var(--color-primary);
}

.setting-row input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
}

.setting-value {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  min-width: 30px;
}

/* ===== WIZARD STEPS ===== */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-8);
  padding: var(--space-4) 0;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.35;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.wizard-step.active {
  opacity: 1;
}

.wizard-step.completed {
  opacity: 0.8;
}

.wizard-step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface-2);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.wizard-step.active .wizard-step-circle {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.15);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--color-primary) 20%, transparent);
}

/* Radiating pulse rings on the active step */
.wizard-step.active .wizard-step-circle::before,
.wizard-step.active .wizard-step-circle::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  animation: stepRadiate 2.2s ease-out infinite;
  pointer-events: none;
}

.wizard-step.active .wizard-step-circle::after {
  animation-delay: 1.1s;
}

@keyframes stepRadiate {
  0%   { transform: scale(1);   opacity: 0.75; }
  100% { transform: scale(2.4); opacity: 0;    }
}

/* Step 5 when active — suppress rings, just solid gold */
[data-step="5"].wizard-step.active .wizard-step-circle::before,
[data-step="5"].wizard-step.active .wizard-step-circle::after {
  animation: none;
  opacity: 0;
}

.wizard-step.completed .wizard-step-circle {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.wizard-step-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color 0.3s;
}

.wizard-step.active .wizard-step-number,
.wizard-step.completed .wizard-step-number {
  color: #fff;
}

.wizard-step-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: color 0.3s;
}

.wizard-step.active .wizard-step-label {
  color: var(--color-primary);
}

.wizard-step-connector {
  width: 80px;
  height: 2px;
  background: var(--color-border);
  margin: 0 var(--space-2);
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}

.wizard-step-connector::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--color-primary);
  transition: width 0.5s ease;
}

.wizard-step-connector.filled::after {
  width: 100%;
}

/* Property wizard — slightly tighter page gutters */
#dashboard.container {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* All wizard panels share the same narrow column width as the step indicator */
@media (min-width: 560px) {
  #wizardPanel1,
  #wizardPanel2,
  #wizardPanel3,
  #wizardPanel4,
  #wizardPanel5 {
    max-width: var(--content-narrow);
    margin-left: auto;
    margin-right: auto;
  }
}

#wizardPanel1,
#wizardPanel2,
#wizardPanel3,
#wizardPanel4,
#wizardPanel5 {
  width: 100%;
  box-sizing: border-box;
}

#wizardPanel2 .credit-estimator--compact {
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

#wizardPanel2 .pitch-input-section--compact {
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

/* Wizard panels */
.wizard-panel {
  display: none;
  animation: panelSlideIn 0.35s ease-out;
}

.wizard-panel.active {
  display: block;
}

@keyframes panelSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Step 2 actions bar */
.step2-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

/* Step 3 actions & config */
.video-config-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.video-title-section {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-family: var(--font-display);
  color: var(--color-text);
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border: 1px solid color-mix(in oklch, var(--color-primary) 20%, transparent);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-interactive);
}

.btn-inline:hover {
  background: var(--color-primary);
  color: #fff;
}

.step3-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-5);
  gap: var(--space-3);
}

/* ===== LIGHTBOX ===== */
/* ── Payment Modal ─────────────────────────────────────────────── */
.payment-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0 0 0 / 0.85);
  /* Above upload/lightbox viewers (500–600), re-edit spinner (10000), download (10001) */
  z-index: 11000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.payment-overlay.active {
  display: flex;
  opacity: 1;
}

.payment-modal {
  background: var(--card-bg, oklch(0.18 0.01 250));
  border-radius: 1.25rem;
  border: 1px solid oklch(1 0 0 / 0.08);
  padding: 2.5rem;
  max-width: 720px;
  width: 95%;
  position: relative;
  transform: translateY(20px);
  animation: paymentSlideUp 0.35s ease forwards;
}

@keyframes paymentSlideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.payment-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: color 0.2s;
}

.payment-close:hover {
  color: var(--text-primary);
}

.payment-header {
  text-align: center;
  margin-bottom: 2rem;
}

.payment-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: oklch(from var(--color-primary) l c h / 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.payment-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.payment-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.payment-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.plan-card {
  background: oklch(0 0 0 / 0.2);
  border: 1.5px solid oklch(1 0 0 / 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.2s;
}

.plan-card:hover {
  border-color: oklch(from var(--color-primary) l c h / 0.4);
  transform: translateY(-2px);
}

.plan-card-highlight {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px oklch(from var(--color-primary) l c h / 0.15);
}

.plan-badge {
  position: absolute;
  top: -0.65rem;
  left: 1.25rem;
  background: var(--color-primary);
  color: var(--bg-base);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
}

.plan-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.plan-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
}

.plan-btn {
  width: 100%;
  padding: 0.65rem;
  font-size: 0.9rem;
}

.payment-footer-text {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
}

@media (max-width: 600px) {
  .payment-plans {
    grid-template-columns: 1fr;
  }

  .payment-modal {
    padding: 1.5rem;
  }
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0 0 0 / 0.92);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: #fff;
  background: oklch(0.3 0 0 / 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.lightbox-close:hover {
  background: oklch(0.4 0 0 / 0.7);
  transform: scale(1.1);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.lightbox-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: oklch(0.15 0 0 / 0.8);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  flex-wrap: wrap;
  min-width: 300px;
}

.lightbox-filename {
  font-size: var(--text-sm);
  color: oklch(0.8 0 0);
  font-weight: 500;
}

.lightbox-toggle {
  display: flex;
  gap: 2px;
  background: oklch(0.2 0 0 / 0.6);
  border-radius: var(--radius-full);
  padding: 2px;
}

.lightbox-toggle-btn {
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  color: oklch(0.7 0 0);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.lightbox-toggle-btn.active {
  background: var(--color-primary);
  color: #fff;
}

.lightbox-toggle-btn:hover:not(.active) {
  color: #fff;
}

.lightbox-reedit {
  display: flex;
  gap: 4px;
  flex: 1;
  min-width: 200px;
}

.lightbox-reedit .reedit-input {
  flex: 1;
  background: oklch(0.2 0 0 / 0.6);
  border-color: oklch(0.3 0 0);
  color: #fff;
}

.lightbox-reedit .reedit-input::placeholder {
  color: oklch(0.5 0 0);
}

/* ── Enhanced viewer (drone-style) additions ── */
.enhanced-viewer-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Lightbox AI re-edit dock (scoped — do not affect grid / property viewer re-edit) */
.lightbox-reedit-bar {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  padding: var(--space-4) var(--space-6) var(--space-5);
  border-top: 1px solid color-mix(in oklch, var(--color-primary) 35%, oklch(0.35 0 0));
  background: linear-gradient(
    180deg,
    oklch(0.14 0 0 / 0.92) 0%,
    oklch(0.08 0 0 / 0.96) 100%
  );
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 -8px 32px oklch(0 0 0 / 0.35);
}

.lightbox-reedit-bar-inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Space between header row (label + credit) and input + Generate row */
#lightboxReeditGenerateSection {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.lightbox-reedit-bar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.lightbox-reedit-bar-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.72);
}

.lightbox-reedit-bar-credit {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: color-mix(in oklch, var(--color-primary) 14%, transparent);
  border: 1px solid color-mix(in oklch, var(--color-primary) 32%, transparent);
}

.lightbox-reedit-bar-row {
  display: flex;
  align-items: stretch;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.lightbox-reedit-bar .lightbox-reedit-input {
  flex: 1;
  min-width: min(100%, 240px);
  max-width: none;
  padding: 12px 16px;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  background: oklch(0.12 0 0 / 0.85);
  border: 1px solid oklch(0.38 0 0);
  color: #fff;
  outline: none;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.lightbox-reedit-bar .lightbox-reedit-input::placeholder {
  color: oklch(0.55 0 0);
}

.lightbox-reedit-bar .lightbox-reedit-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-primary) 28%, transparent);
}

.lightbox-reedit-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-5);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-bg);
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}

.lightbox-reedit-apply-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

.lightbox-reedit-apply-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.lightbox-reedit-apply-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lightbox-reedit-apply-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.lightbox-reedit-confirm-row {
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-3);
  margin-top: var(--space-1);
  border-top: 1px solid oklch(0.38 0 0 / 0.5);
}

.lightbox-reedit-confirm-row.is-solo {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.lightbox-reedit-confirm-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: oklch(1 0 0 / 0.85);
  flex: 1 1 auto;
  min-width: 0;
}

.lightbox-reedit-confirm-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .lightbox-reedit-confirm-row {
    flex-wrap: wrap;
  }
  .lightbox-reedit-confirm-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
  }
}

.lightbox-reedit-confirm-actions .btn {
  min-height: 40px;
  border-radius: var(--radius-full);
}

.lightbox-reedit-discard-btn {
  color: oklch(0.85 0 0) !important;
}

.lightbox-reedit-keep-btn {
  font-weight: 700;
}

.enhanced-viewer-reedit-btn {
  font-size: var(--text-sm);
  gap: var(--space-1);
}

.enhanced-viewer-reedit-btn.active {
  color: var(--color-primary);
  background: oklch(0.6 0.15 80 / 0.12);
}

/* ===== PROPERTIES DASHBOARD ===== */
#propertiesDashboard.active {
  display: block !important;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.property-card {
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), border-color var(--transition-interactive);
  animation: propertyCardIn 0.4s var(--ease-out) both;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px oklch(0 0 0 / 0.15);
  border-color: var(--color-primary);
}

@keyframes propertyCardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.property-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--color-surface-2);
  overflow: hidden;
}

.property-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.property-card:hover .property-card-thumb img {
  transform: scale(1.05);
}

.property-card-thumb .property-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: var(--space-2);
  color: var(--color-text-muted);
}

.property-status-pill {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.property-status-pill.draft {
  background: oklch(0.3 0 0 / 0.75);
  color: oklch(0.7 0 0);
}

.property-status-pill.enhanced {
  background: oklch(0.25 0.08 85 / 0.85);
  color: oklch(0.85 0.12 85);
}

.property-status-pill.completed {
  background: oklch(0.25 0.08 145 / 0.85);
  color: oklch(0.8 0.15 145);
}

.property-card-body {
  padding: var(--space-4) var(--space-5);
}

.property-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-card-address {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: var(--space-3);
}

.property-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.property-card-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.property-card-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4) var(--space-4);
  border-top: 1px solid var(--color-divider);
}

.property-card-actions .btn {
  font-size: var(--text-xs);
  font-weight: 600;
  height: 34px;
}

/* Primary CTA — pill shape, fills remaining width */
.property-card-actions .btn-open {
  flex: 1;
  border-radius: var(--radius-full);
  padding: 0 var(--space-5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.property-card-actions .btn-open:hover {
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-primary) 25%, transparent),
              var(--shadow-md);
}

/* Icon-only utility buttons — fixed compact squares */
.property-card-actions .btn-download-photos,
.property-card-actions .btn-download-video,
.property-card-actions .btn-delete {
  flex: 0 0 34px;
  width: 34px;
  padding: 0;
  border-radius: var(--radius-md);
}

.property-card-actions .btn-download-photos:hover,
.property-card-actions .btn-download-video:hover {
  background: var(--color-surface-offset);
  color: var(--color-primary);
  border-color: color-mix(in oklch, var(--color-primary) 40%, var(--color-border));
  transform: none;
  box-shadow: none;
}

/* Delete: quiet at rest, danger affordance on hover */
.property-card-actions .btn-delete {
  color: var(--color-text-muted);
  border: 1px solid transparent;
}

.property-card-actions .btn-delete:hover {
  background: color-mix(in oklch, var(--color-error) 12%, transparent);
  color: var(--color-error);
  border-color: color-mix(in oklch, var(--color-error) 30%, transparent);
  transform: none;
  box-shadow: none;
}

/* Empty state */
.properties-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-20) var(--space-4);
  text-align: center;
  gap: var(--space-4);
}

.properties-empty h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
}

.properties-empty p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-2xl);
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Delete confirm overlay on property card */
.property-delete-confirm {
  position: absolute;
  inset: 0;
  background: oklch(0.1 0 0 / 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  z-index: 5;
  animation: fadeIn 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.property-delete-confirm p {
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 500;
}

.property-delete-confirm .btn-row {
  display: flex;
  gap: var(--space-2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Back button in wizard */
.btn-sm {
  padding: var(--space-2);
  min-width: auto;
}

@media (max-width: 640px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }

  #propertiesDashboard .dash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

/* ===== MISC ===== */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.gap-3 {
  gap: var(--space-3);
}

/* ===== COMPLETION STEP ===== */
.completion-section {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  max-width: 600px;
  margin: 0 auto;
}

.completion-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: oklch(0.5 0.15 85 / 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  animation: completionPop 0.5s var(--ease-out);
}

@keyframes completionPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  60% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.completion-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
}

.completion-desc {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-8);
}

.completion-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  margin-bottom: var(--space-8);
}

.completion-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.completion-stat-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
}

.completion-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.completion-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

@media (max-width: 600px) {
  .completion-actions {
    flex-direction: column;
  }

  .completion-stats {
    gap: var(--space-6);
  }
}

/* ===== PROPERTY DETAIL VIEW ===== */
.detail-media-shell {
  margin-bottom: var(--space-8);
}

.detail-media-shell .detail-photos-section,
.detail-media-shell .detail-video-section {
  margin-bottom: 0;
}

.detail-media-header-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: nowrap;
  min-height: 48px;
}

.detail-media-tablist-wrap {
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 420px;
}

.detail-media-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-left: auto;
  flex: 0 0 auto;
}

/* Match detail-gen-strip icons — gold / primary stroke */
.detail-media-actions .btn svg,
.detail-media-actions .btn i {
  color: var(--color-primary);
}

.detail-media-tablist {
  width: 100%;
  max-width: 420px;
}

.detail-media-slider-track {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 3px;
  padding: 5px;
  border-radius: 999px;
  /* Anchored “tray” — sits on surface instead of floating */
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 color-mix(in oklch, var(--color-text) 4%, transparent);
  overflow: hidden;
  min-height: 48px;
}

.detail-media-slider-thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  /* Matches two flex slots: pad 5+5, gap 3 */
  width: calc((100% - 13px) / 2);
  border-radius: 999px;
  background: linear-gradient(
    155deg,
    color-mix(in oklch, var(--color-primary) 18%, oklch(0.92 0.08 85)) 0%,
    color-mix(in oklch, var(--color-primary) 35%, oklch(0.78 0.14 78)) 50%,
    color-mix(in oklch, var(--color-primary) 28%, oklch(0.72 0.13 75)) 100%
  );
  box-shadow:
    0 2px 10px color-mix(in oklch, var(--color-primary) 35%, oklch(0 0 0 / 0.35)),
    inset 0 1px 0 oklch(1 0.05 95 / 0.4);
  transform: translateX(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.25, 0.64, 1);
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.detail-media-slider-track--video .detail-media-slider-thumb {
  transform: translateX(calc(100% + 3px));
}

/* ── Three-tab layout (when Reported tab is visible) ────── */
.detail-media-slider-track--three-tabs .detail-media-slider-thumb {
  width: calc((100% - 16px) / 3);
}
.detail-media-slider-track--three-tabs.detail-media-slider-track--video .detail-media-slider-thumb {
  transform: translateX(calc(100% + 3px));
}
.detail-media-slider-track--three-tabs.detail-media-slider-track--reported .detail-media-slider-thumb {
  transform: translateX(calc(200% + 6px));
}
.detail-media-tablist-wrap--three-tabs,
.detail-media-tablist--three-tabs {
  max-width: 560px;
}

/* ── Reported tab panel ─────────────────────────────────── */
.detail-reported-section { margin-bottom: var(--space-8); }

/* Same grid as photos tab */
.detail-reported-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
}

.detail-reported-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-10) var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ── Reported photo card — matches detail-photo-card ────── */
.reported-photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-2);
  cursor: pointer;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
  border: 2px solid transparent;
}
.reported-photo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(0 0 0 / 0.25);
}
.reported-photo-card.selected {
  box-shadow: 0 0 0 2px var(--color-primary), 0 8px 24px oklch(0 0 0 / 0.25);
}
.reported-photo-card--reported    { border-color: oklch(0.72 0.13 75 / 0.5); }
.reported-photo-card--in_review   { border-color: oklch(0.55 0.18 250 / 0.5); }
.reported-photo-card--in_progress { border-color: oklch(0.65 0.15 55 / 0.5); }
.reported-photo-card--resolved    { border-color: oklch(0.55 0.14 155 / 0.5); }
.reported-photo-card--rejected    { border-color: oklch(0.55 0.18 20 / 0.5); }

.reported-photo-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

/* Status badge — always visible, top-right corner */
.reported-photo-status {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 2;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.reported-photo-status--reported    { background: oklch(0.97 0.04 85 / 0.92);  color: oklch(0.50 0.15 75); }
.reported-photo-status--in_review   { background: oklch(0.95 0.03 250 / 0.92); color: oklch(0.35 0.18 250); }
.reported-photo-status--in_progress { background: oklch(0.97 0.04 55 / 0.92);  color: oklch(0.42 0.16 55); }
.reported-photo-status--resolved    { background: oklch(0.94 0.06 155 / 0.92); color: oklch(0.32 0.14 155); }
.reported-photo-status--rejected    { background: oklch(0.96 0.03 20 / 0.92);  color: oklch(0.38 0.18 20); }

/* Hover overlay — filename + reason at bottom */
.reported-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0 0 0 / 0.72) 0%, oklch(0 0 0 / 0.18) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-3);
  pointer-events: none;
}
.reported-photo-card:hover .reported-photo-overlay { opacity: 1; }
.reported-photo-overlay-filename {
  font-size: var(--text-xs);
  font-weight: 600;
  color: oklch(1 0 0);
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: var(--space-1);
}
.reported-photo-overlay-reason {
  font-size: 11px;
  color: oklch(0.92 0 0 / 0.88);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reported-photo-overlay-date {
  font-size: 10px;
  color: oklch(0.8 0 0 / 0.7);
  margin-top: var(--space-1);
}

/* ── Expand panel (below grid, full width) ──────────────── */
.reported-expand-panel {
  grid-column: 1 / -1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  animation: expandIn 0.22s ease;
}
@keyframes expandIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reported-expand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.reported-expand-filename {
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: monospace;
  color: var(--color-text);
}
.reported-expand-close {
  background: none;
  border: none;
  color: var(--color-text-faint);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}
.reported-expand-close:hover { color: var(--color-text); }
.reported-expand-reason {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}
.reported-expand-meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.reported-expand-admin-note {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-border);
  margin-top: var(--space-3);
}
.reported-expand-admin-note-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-1);
}
.reported-expand-admin-note-text {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
  margin: 0;
}

/* ── Before/after comparison (expand panel, resolved) ───── */
.reported-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.reported-before-after-col { display: flex; flex-direction: column; gap: var(--space-2); }
.reported-before-after-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
}
.reported-before-after-col img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}
@media (max-width: 560px) {
  .reported-before-after { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .detail-media-slider-thumb {
    transition-duration: 0.12s;
  }
}

.detail-media-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0;
  padding: 12px 10px;
  border: none;
  border-radius: 12px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  font-family: inherit;
  line-height: 1.25;
}

.detail-media-tab[aria-selected="true"] {
  /* Dark type on gold thumb — works in light + dark */
  color: oklch(0.2 0.04 260);
  text-shadow: 0 1px 0 oklch(1 0.05 95 / 0.35);
}

.detail-media-tab[aria-selected="true"] .detail-photo-count {
  color: oklch(0.38 0.03 260);
  font-weight: 600;
}

.detail-media-tab[aria-selected="false"]:hover {
  color: var(--color-text);
}

.detail-media-tab:focus {
  outline: none;
}

.detail-media-tab:focus-visible {
  outline: 2px solid oklch(0.78 0.14 85 / 0.75);
  outline-offset: 2px;
  z-index: 2;
}

.detail-media-tab:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 640px) {
  .detail-media-header-row {
    flex-wrap: wrap;
  }

  .detail-media-tablist-wrap {
    max-width: none;
    flex: 1 1 100%;
  }

  .detail-media-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

  .detail-media-tablist {
    max-width: none;
  }

  .detail-media-tab {
    padding: 10px 6px;
    font-size: var(--text-xs);
  }
}

.detail-video-section {
  margin-bottom: var(--space-8);
}

.detail-video-player {
  width: 100%;
  max-height: 500px;
  border-radius: var(--radius-lg);
  background: oklch(0.15 0 0);
}

.detail-photos-section {
  margin-bottom: var(--space-8);
}

.detail-photo-count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 400;
  margin-left: var(--space-2);
}

.detail-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
}

.detail-photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-2);
  cursor: pointer;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}

.detail-photo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(0 0 0 / 0.25);
}

.detail-photo-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.detail-photo-card .photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0 0 0 / 0.6), transparent 50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: flex-end;
  padding: var(--space-3);
}

.detail-photo-card:hover .photo-overlay {
  opacity: 1;
}

.detail-photo-card .photo-name {
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-16);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .detail-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-3);
  }
}

/* ===== PROPERTY DETAIL HERO ===== */
.detail-hero {
  background:
    linear-gradient(to left, oklch(0.68 0.19 85 / 0.28) 0%, oklch(0.68 0.19 85 / 0.28) 28%, oklch(0.5 0.15 85 / 0.06) 55%, transparent 72%),
    var(--color-surface);
  border: 1px solid oklch(0.5 0.15 85 / 0.22);
  border-radius: var(--radius-2xl);
  padding: var(--space-6) var(--space-8);
  margin-top: 72px;
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
  overflow: hidden;
}

/* Micro-pixel dot texture — solid on right, fades from center leftward */
.detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, oklch(0.88 0.22 85 / 0.22) 1px, transparent 1px);
  background-size: 3px 3px;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.9) 28%, rgba(0,0,0,0.3) 55%, transparent 72%);
  mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.9) 28%, rgba(0,0,0,0.3) 55%, transparent 72%);
  pointer-events: none;
}

.detail-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  transition: color 0.2s, background 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}

.detail-back-btn:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.detail-status-pill {
  position: static;
  flex-shrink: 0;
}

.detail-hero-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.detail-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--color-primary);
}

.detail-hero-address {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin: 0;
}

/* ===== DETAIL SECTION HEADER ===== */
.detail-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.detail-section-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  background: oklch(0.5 0.15 85 / 0.12);
  border: 1px solid oklch(0.5 0.15 85 / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.detail-section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0;
  flex: 1;
}

@media (max-width: 640px) {
  .detail-hero {
    padding: var(--space-5);
    gap: var(--space-4);
  }

  .detail-hero-title {
    font-size: 1.5rem;
  }

}


.prop-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: oklch(0 0 0 / 0.92);
  backdrop-filter: blur(12px) saturate(0.8);
  -webkit-backdrop-filter: blur(12px) saturate(0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}

.prop-viewer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Close button */
.prop-viewer-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: oklch(1 0 0 / 0.1);
  border: 1px solid oklch(1 0 0 / 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  z-index: 10;
}

.prop-viewer-close:hover {
  background: oklch(1 0 0 / 0.2);
  transform: scale(1.08);
}

/* Arrows */
.prop-viewer-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: oklch(1 0 0 / 0.1);
  border: 1px solid oklch(1 0 0 / 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  z-index: 10;
}

.prop-viewer-arrow:hover {
  background: oklch(1 0 0 / 0.22);
  transform: translateY(-50%) scale(1.08);
}

.prop-viewer-prev {
  left: var(--space-5);
}

.prop-viewer-next {
  right: var(--space-5);
}

/* Image area */
.prop-viewer-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 160px);
  max-height: calc(100vh - 160px);
  flex: 1;
}

.prop-viewer-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px oklch(0 0 0 / 0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: block;
}

.prop-viewer-img.loading {
  opacity: 0;
  transform: scale(0.97);
}

.prop-viewer-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: oklch(1 0 0 / 0.5);
}

.prop-viewer-loading.visible {
  display: flex;
}

/* Bottom bar */
.prop-viewer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(to top, oklch(0 0 0 / 0.8) 0%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.prop-viewer-bar-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
}

.prop-viewer-filename {
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.prop-viewer-counter {
  color: oklch(1 0 0 / 0.5);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.prop-viewer-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.prop-viewer-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: oklch(1 0 0 / 0.12);
  border: 1px solid oklch(1 0 0 / 0.2);
  border-radius: var(--radius-lg);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.prop-viewer-btn:hover {
  background: oklch(1 0 0 / 0.22);
  border-color: oklch(1 0 0 / 0.35);
}

.prop-viewer-btn-reedit.active {
  background: oklch(var(--color-primary) / 0.25);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Re-edit panel */
.prop-viewer-reedit-panel {
  position: absolute;
  bottom: 68px;
  left: 0;
  right: 0;
  padding: var(--space-1) var(--space-6) var(--space-3);
  display: none;
}

.prop-viewer-reedit-panel.open {
  display: block;
}

.prop-viewer-reedit-inner {
  background: oklch(0.1 0 0 / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid oklch(1 0 0 / 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

#propViewerReeditPanel #propViewerReeditGenerateSection {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

#propViewerReeditPanel .prop-viewer-reedit-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

#propViewerReeditPanel .prop-viewer-reedit-meta-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.72);
}

#propViewerReeditPanel .prop-viewer-reedit-credit {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: color-mix(in oklch, var(--color-primary) 14%, transparent);
  border: 1px solid color-mix(in oklch, var(--color-primary) 32%, transparent);
}

.prop-viewer-reedit-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.55);
  font-weight: 500;
}

.prop-viewer-reedit-row {
  display: flex;
  gap: var(--space-3);
  align-items: stretch;
  flex-wrap: wrap;
}

#propViewerReeditPanel .prop-viewer-reedit-row .reedit-input,
#propViewerReeditPanel .prop-viewer-reedit-row .prop-viewer-reedit-input {
  flex: 1;
  min-width: min(100%, 200px);
  padding: 12px 16px;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  background: oklch(0.12 0 0 / 0.85);
  border: 1px solid oklch(0.38 0 0);
  color: #fff;
}

#propViewerReeditPanel .prop-viewer-reedit-row .reedit-input::placeholder,
#propViewerReeditPanel .prop-viewer-reedit-row .prop-viewer-reedit-input::placeholder {
  color: oklch(0.55 0 0);
}

#propViewerReeditPanel .prop-viewer-reedit-row .reedit-input:focus,
#propViewerReeditPanel .prop-viewer-reedit-row .prop-viewer-reedit-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-primary) 28%, transparent);
  outline: none;
}

#uploadViewerReEditPanel .prop-viewer-reedit-row {
  align-items: center;
}

#uploadViewerReEditPanel .prop-viewer-reedit-row .reedit-input {
  flex: 1;
  background: oklch(1 0 0 / 0.06);
  border-color: oklch(1 0 0 / 0.15);
  color: #fff;
}

#uploadViewerReEditPanel .prop-viewer-reedit-row .reedit-input::placeholder {
  color: oklch(1 0 0 / 0.35);
}

#uploadViewerReEditPanel .prop-viewer-reedit-row .reedit-input:focus {
  border-color: var(--color-primary);
  background: oklch(1 0 0 / 0.1);
  outline: none;
  box-shadow: none;
}

#propViewerReeditPanel .prop-viewer-reedit-generate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-5);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-bg);
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}

#propViewerReeditPanel .prop-viewer-reedit-generate-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

#propViewerReeditPanel .prop-viewer-reedit-generate-btn:active:not(:disabled) {
  transform: scale(0.98);
}

#propViewerReeditPanel .prop-viewer-reedit-generate-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#propViewerReeditPanel .prop-viewer-reedit-generate-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

#propViewerReeditPanel .prop-viewer-reedit-confirm-row {
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-3);
  margin-top: var(--space-1);
  border-top: 1px solid oklch(0.38 0 0 / 0.5);
}

#propViewerReeditPanel .prop-viewer-reedit-confirm-row.is-solo {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

#propViewerReeditPanel .prop-viewer-reedit-confirm-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: oklch(1 0 0 / 0.85);
  flex: 1 1 auto;
  min-width: 0;
}

#propViewerReeditPanel .prop-viewer-reedit-confirm-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  flex-shrink: 0;
}

#propViewerReeditPanel .prop-viewer-reedit-confirm-actions .btn {
  min-height: 40px;
  border-radius: var(--radius-full);
}

#propViewerReeditPanel .prop-viewer-reedit-discard-btn {
  color: oklch(0.85 0 0) !important;
}

#propViewerReeditPanel .prop-viewer-reedit-keep-btn {
  font-weight: 700;
}

@media (max-width: 520px) {
  #propViewerReeditPanel .prop-viewer-reedit-confirm-row {
    flex-wrap: wrap;
  }
  #propViewerReeditPanel .prop-viewer-reedit-confirm-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
  }
}

/* ===== UPLOAD VIEWER — BEFORE/AFTER COMPARE SLIDER ===== */
.uv-compare {
  position: relative;
  /* inline-block so the container sizes to the image, not the full flex parent */
  display: inline-block;
  cursor: ew-resize;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px oklch(0 0 0 / 0.6);
  /* Match the single image size constraints */
  max-width: calc(100vw - 160px);
  max-height: calc(100vh - 160px);
}

/* The "after" (enhanced) image sets the container size */
.uv-compare-img {
  display: block;
  max-width: calc(100vw - 160px);
  max-height: calc(100vh - 160px);
  object-fit: contain;
}

/* The "before" (original) sits absolutely on top, clipped to reveal left portion */
.uv-compare-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* clip-path updated via JS: inset(0 <right>% 0 0) */
  clip-path: inset(0 50% 0 0);
}

.uv-compare-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: #fff;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}

.uv-compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px oklch(0 0 0 / 0.35);
  pointer-events: none;
}

.uv-compare-badge {
  position: absolute;
  top: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: oklch(0.3 0 0 / 0.7);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  z-index: 5;
  pointer-events: none;
}

.uv-compare-badge-before { left: var(--space-3); }
.uv-compare-badge-after {
  right: var(--space-3);
  background: oklch(0.5 0.15 85 / 0.85);
}

/* Viewer entry animation */
.prop-viewer-img-wrap {
  animation: none;
}

.prop-viewer-overlay.active .prop-viewer-img-wrap {
  animation: viewerImgIn 0.35s var(--ease-out) forwards;
}

@keyframes viewerImgIn {
  from {
    transform: scale(0.94);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== UPLOAD DELETE BUTTON ===== */
.photo-delete-btn {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: oklch(0.15 0 0 / 0.75);
  border: 1px solid oklch(1 0 0 / 0.2);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.15s ease;
  z-index: 5;
  padding: 0;
}

.photo-card:hover .photo-delete-btn {
  opacity: 1;
}

.photo-delete-btn:hover {
  background: oklch(0.55 0.2 25 / 0.9);
  transform: scale(1.1);
}

@media (hover: none) {

  /* Touch devices: always show delete button */
  .photo-delete-btn {
    opacity: 1;
  }
}

/* Responsive tweaks for viewer */
@media (max-width: 768px) {
  .prop-viewer-img-wrap {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 200px);
  }

  .prop-viewer-img {
    max-height: calc(100vh - 200px);
  }

  .prop-viewer-arrow {
    width: 40px;
    height: 40px;
  }

  .prop-viewer-prev {
    left: var(--space-3);
  }

  .prop-viewer-next {
    right: var(--space-3);
  }

  .prop-viewer-filename {
    max-width: 120px;
  }

  .prop-viewer-bar {
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
  }
}

/* ===== DRAG HANDLE — wizard & detail grids ===== */
.photo-drag-handle {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 26px;
  height: 26px;
  border-radius: var(--radius-md);
  background: oklch(0.15 0 0 / 0.72);
  border: 1px solid oklch(1 0 0 / 0.18);
  color: oklch(1 0 0 / 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.15s ease;
  z-index: 5;
}

.photo-card:hover .photo-drag-handle,
.detail-photo-card:hover .photo-drag-handle {
  opacity: 1;
}

.photo-drag-handle:hover {
  background: oklch(0.3 0 0 / 0.85);
}

.photo-drag-handle:active {
  cursor: grabbing;
}

@media (hover: none) {
  .photo-drag-handle {
    opacity: 1;
  }
}

/* ===== DRAG STATES ===== */
.photo-card.dragging,
.detail-photo-card.dragging {
  opacity: 0.4;
  box-shadow: none;
}

.photo-card.drag-over,
.detail-photo-card.drag-over {
  outline: 2px solid var(--color-primary, oklch(0.65 0.2 250));
  outline-offset: 2px;
  transform: scale(1.02);
}

/* ===== DETAIL PHOTO DELETE BUTTON ===== */
.detail-delete-btn {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: oklch(0.15 0 0 / 0.75);
  border: 1px solid oklch(1 0 0 / 0.2);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.15s ease;
  z-index: 5;
  padding: 0;
}

.detail-photo-card:hover .detail-delete-btn {
  opacity: 1;
}

.detail-delete-btn:hover {
  background: oklch(0.55 0.2 25 / 0.9);
  transform: scale(1.1);
}

@media (hover: none) {
  .detail-delete-btn {
    opacity: 1;
  }
}

/* Deleting in progress — blocks repeat clicks until API completes */
.detail-photo-card.detail-photo-deleting {
  pointer-events: none;
  cursor: default;
}

.detail-photo-card.detail-photo-deleting:hover {
  transform: none;
  box-shadow: none;
}

.detail-photo-deleting-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: oklch(0.12 0 0 / 0.62);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 500;
}

.detail-photo-deleting-spinner,
.detail-photo-deleting-overlay svg {
  width: 28px;
  height: 28px;
  animation: spin 1s linear infinite;
}

.detail-photo-deleting-label {
  text-shadow: 0 1px 2px oklch(0 0 0 / 0.5);
}

/* ===== RESHUFFLE HIGHLIGHT PULSE ===== */
@keyframes reshuffleHighlight {
  0%   { box-shadow: 0 0 0 0 oklch(0.65 0.2 250 / 0.6); transform: scale(1); }
  50%  { box-shadow: 0 0 0 6px oklch(0.65 0.2 250 / 0.2); transform: scale(1.025); }
  100% { box-shadow: 0 0 0 0 oklch(0.65 0.2 250 / 0); transform: scale(1); }
}

.photo-card.reshuffle-highlight,
.detail-photo-card.reshuffle-highlight {
  animation: reshuffleHighlight 0.6s ease-out forwards;
}

/* ===== VIDEO TYPE CHOICE MODAL ===== */
.video-type-modal .modal {
  max-width: 520px;
}

.video-type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

@media (max-width: 480px) {
  .video-type-cards {
    grid-template-columns: 1fr;
  }
}

.video-type-card {
  background: oklch(0.16 0.02 260);
  border: 1.5px solid oklch(0.28 0.04 260);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
}

.video-type-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  background: oklch(0.19 0.04 260);
}

.video-type-card.cinematic-card:hover {
  border-color: oklch(0.75 0.18 80);
}

.video-type-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.video-type-card-icon.slideshow-icon {
  background: oklch(0.22 0.06 260);
  color: var(--color-primary);
}

.video-type-card-icon.cinematic-icon {
  background: oklch(0.22 0.06 80);
  color: oklch(0.75 0.18 80);
}

.video-type-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.video-type-card-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.video-type-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.video-type-card-badge.badge-free {
  background: oklch(0.22 0.06 150);
  color: oklch(0.75 0.18 150);
}

.video-type-card-badge.badge-credits {
  background: oklch(0.22 0.06 80);
  color: oklch(0.75 0.18 80);
}

.video-type-card-meta {
  font-size: var(--text-xs);
  color: oklch(0.55 0.02 260);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid oklch(0.24 0.03 260);
}

.video-type-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== VIDEO GENERATION OVERLAY ===== */
/* === Video Generation Overlay — matches the app loading screen style === */

@keyframes vgo-success-pop {
  0%   { transform: scale(0.6); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

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

#videoGenOverlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(14, 14, 12, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#videoGenOverlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Content wrapper mirrors .loading-content */
.vgo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
  max-width: 340px;
  width: 100%;
  animation: loadingFadeIn 0.4s ease both;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-6);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

/* Title — same style as .loading-title */
.vgo-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  margin: 0;
}

/* Message — same style as .loading-subtitle */
.vgo-message {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  min-height: 1.4em;
  transition: opacity 0.3s ease;
  margin: 0;
  animation: loadingDots 1.5s ease-in-out infinite;
}

/* Gold pulse ring variant for cinematic mode */
.vgo-pulse.cinematic {
  border-color: oklch(0.75 0.18 80);
}

/* Progress bar — same track/fill as .loading-bar */
.vgo-progress-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.vgo-bar {
  width: 200px;
  height: 3px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.vgo-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary), #e6b84a);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 30%;
}

/* Indeterminate (slideshow) — identical to .loading-bar-fill animation */
.vgo-progress-fill.indeterminate {
  width: 30% !important;
  animation: loadingShimmer 1.4s ease-in-out infinite;
}

/* Cinematic (determinate) — gold gradient, width set by JS */
.vgo-progress-fill.cinematic {
  background: linear-gradient(90deg, oklch(0.6 0.18 80), oklch(0.75 0.18 60));
  animation: none;
}

/* Clip counter below the bar */
.vgo-progress-label {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

/* Timer */
.vgo-timer {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

/* Success / Error state icons inside .loading-logo-wrap */
.vgo-state-icon {
  display: none;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  animation: vgo-success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Hide logo + pulse ring on terminal states */
.vgo-content.state-success .loading-logo,
.vgo-content.state-error .loading-logo {
  display: none;
}

.vgo-content.state-success .vgo-pulse,
.vgo-content.state-error .vgo-pulse {
  animation: none !important;
  opacity: 0 !important;
}

.vgo-content.state-success .vgo-state-success {
  display: flex;
  background: oklch(0.2 0.06 150);
  border: 1.5px solid oklch(0.4 0.14 150);
  color: oklch(0.72 0.18 150);
}

.vgo-content.state-error .vgo-state-error {
  display: flex;
  background: oklch(0.2 0.06 25);
  border: 1.5px solid oklch(0.4 0.14 25);
  color: oklch(0.7 0.18 25);
}

/* On success/error the title adopts text color (not primary gold) */
.vgo-content.state-success .vgo-title,
.vgo-content.state-error .vgo-title {
  color: var(--color-text);
  font-size: var(--text-lg);
  letter-spacing: 0;
}

/* On success/error stop the subtitle pulse and unhide message */
.vgo-content.state-success .vgo-message,
.vgo-content.state-error .vgo-message {
  animation: none;
}

/* Hide progress + timer on terminal states */
.vgo-content.state-success .vgo-progress-wrap,
.vgo-content.state-error .vgo-progress-wrap,
.vgo-content.state-success .vgo-timer,
.vgo-content.state-error .vgo-timer {
  display: none;
}

/* Action buttons */
.vgo-actions {
  display: none;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
}

.vgo-content.state-success .vgo-actions,
.vgo-content.state-error .vgo-actions {
  display: flex;
}

/* Cancel link */
.vgo-cancel-link {
  display: none;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  opacity: 0.5;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
  margin-top: calc(-1 * var(--space-2));
}

.vgo-cancel-link:hover {
  opacity: 0.8;
}

/* ===== DRONE REVIEW OVERLAY ===== */
.drone-review-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: oklch(0.06 0 0);
  backdrop-filter: blur(16px) saturate(0.8);
  -webkit-backdrop-filter: blur(16px) saturate(0.8);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}

.drone-review-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drone-review-header {
  text-align: center;
  padding: var(--space-5) var(--space-5) var(--space-3);
  flex-shrink: 0;
}

.drone-review-title {
  color: #fff;
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.drone-review-subtitle {
  display: block;
  width: 100%;
  margin: var(--space-1) auto 0;
  color: oklch(1 0 0 / 0.5);
  font-size: var(--text-sm);
  text-align: center;
}

.drone-review-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-8);
  min-height: 0;
  overflow: hidden;
}

.drone-review-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  max-height: calc(100vh - 320px);
}

.drone-review-img {
  max-width: 100%;
  max-height: calc(100vh - 320px);
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px oklch(0 0 0 / 0.6);
  transition: opacity 0.25s ease;
}

.drone-review-img.loading {
  opacity: 0;
}

.drone-review-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: oklch(1 0 0 / 0.5);
}

.drone-review-loading.visible {
  display: flex;
}

.drone-review-angle-label {
  position: absolute;
  top: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  background: oklch(0 0 0 / 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Thumbnail strip */
.drone-review-thumbs {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  padding: var(--space-3) var(--space-5);
  flex-shrink: 0;
}

.drone-review-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s, transform 0.15s;
}

.drone-review-thumb:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.drone-review-thumb.active {
  opacity: 1;
  border-color: var(--color-primary);
}

/* Bottom actions */
.drone-review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-6) var(--space-5);
  flex-shrink: 0;
}

.drone-review-counter {
  color: oklch(1 0 0 / 0.5);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Responsive: stack thumbnails smaller on mobile */
@media (max-width: 640px) {
  .drone-review-thumb {
    width: 60px;
    height: 45px;
  }
  .drone-review-preview {
    max-height: calc(100vh - 360px);
  }
  .drone-review-img {
    max-height: calc(100vh - 360px);
  }
}

/* ==========================================================================
   IMMERSIVE LANDING EXPERIENCE
   Hero wave canvas + full-viewport chapter storytelling
   ========================================================================== */

/* ── Hero wave canvas ──────────────────────────────────────────────────── */
#heroWave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Chapters section wrapper ──────────────────────────────────────────── */
.chapters-section {
  padding-block: 0 !important;
}

/* ── Single chapter (100vh slide) ──────────────────────────────────────── */
.chapter {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(64px + var(--space-16)) var(--space-8) var(--space-20);
}

/* Warm golden glow at center of each chapter */
.chapter::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, color-mix(in oklch, var(--color-primary) 12%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Alternate subtle background tint to break monotony */
.chapter:nth-child(even) {
  background: color-mix(in oklch, var(--color-bg) 97%, var(--color-primary));
}

/* ── Intro chapter wave canvas ─────────────────────────────────────────── */
.chapter-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── Background giant number ───────────────────────────────────────────── */
.chapter-bg-num {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18rem, 40vw, 38rem);
  line-height: 1;
  color: var(--color-text);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  filter: blur(3px);
  z-index: 0;
  transition: opacity 0.6s ease;
}

[data-theme="dark"] .chapter-bg-num {
  opacity: 0.055;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .chapter-bg-num {
    opacity: 0.055;
  }
}

/* intro chapters use a decorative star symbol */
.chapter-intro .chapter-bg-num {
  font-size: clamp(20rem, 45vw, 44rem);
  opacity: 0.03;
}

/* ── Chapter inner content ─────────────────────────────────────────────── */
.chapter-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
  max-width: 1100px;
  width: 100%;
}

/* ── Section pill (intro chapters) ────────────────────────────────────── */
.chapter-section-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: var(--color-primary-light);
  border: 1px solid color-mix(in oklch, var(--color-primary) 25%, transparent);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;

  /* animation start state */
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.45s var(--ease-out), transform 0.5s var(--ease-out);
}

/* ── Feature label (non-intro chapters) ───────────────────────────────── */
.chapter-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.07em;
  text-transform: uppercase;

  /* animation start state */
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.45s var(--ease-out), transform 0.5s var(--ease-out);
}

/* ── Chapter title — the BIG fill-the-page heading ────────────────────── */
.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 12vw, 11rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--color-text);

  /* Radial mask: sharp center, soft blurred edges */
  -webkit-mask-image: radial-gradient(
    ellipse 88% 72% at 50% 50%,
    black 28%,
    transparent 88%
  );
  mask-image: radial-gradient(
    ellipse 88% 72% at 50% 50%,
    black 28%,
    transparent 88%
  );

  /* Initial state: tiny dot far below. JS (initScrollTitleParallax) owns
     transform, opacity, and filter every frame — no CSS transitions here. */
  opacity: 0;
  transform: scale(0.06) translateY(80px);
  filter: blur(22px);
  will-change: transform, opacity, filter;
  transition: none;
}

/* Accent span inside intro chapter titles (gradient like hero) */
.chapter-title-accent {
  background: linear-gradient(135deg, var(--color-primary), #e6b84a 60%, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Chapter description ───────────────────────────────────────────────── */
.chapter-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 520px;
  line-height: 1.75;
  max-width: 72ch;

  /* animation start state */
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: 0.28s;
}

/* ── Visible state — triggered by IntersectionObserver in landing.js ───── */
.chapter.is-visible .chapter-section-pill,
.chapter.is-visible .chapter-label {
  opacity: 1;
  transform: translateY(0);
}

/* Safety fallback: if JS is disabled or hasn't run yet, show title when chapter is visible */
.no-js .chapter.is-visible .chapter-title,
.chapter.is-visible .chapter-title:not([style]) {
  opacity: 1;
  transform: none;
  filter: none;
}

.chapter.is-visible .chapter-desc {
  opacity: 1;
  transform: translateY(0);
}

/* Background number drifts in subtly when chapter becomes visible */
.chapter.is-visible .chapter-bg-num {
  opacity: 0.05;
}
.chapter-intro.is-visible .chapter-bg-num {
  opacity: 0.035;
}

/* ── Progress dots panel (fixed right side) ───────────────────────────── */
.chapter-dots {
  position: fixed;
  right: clamp(var(--space-4), 2.5vw, var(--space-8));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.chapter-dots.visible {
  opacity: 1;
  pointer-events: auto;
}

.chapter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-faint);
  padding: 0;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  position: relative;
  flex-shrink: 0;
}

.chapter-dot:hover {
  background: var(--color-text-muted);
  transform: scale(1.4);
}

.chapter-dot.active {
  background: var(--color-primary);
  transform: scale(1.65);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-primary) 22%, transparent);
}

/* Tooltip on hover */
.chapter-dot::after {
  content: attr(title);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: var(--shadow-md);
}

.chapter-dot:hover::after {
  opacity: 1;
}

/* ── Scroll cue micro-animation ───────────────────────────────────────── */
.scroll-cue {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 5;
  cursor: default;
}

.scroll-cue.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Mouse outline */
.scroll-cue-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--color-text-faint);
  border-radius: 13px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 6px;
}

/* Scrolling dot inside mouse */
.scroll-cue-dot {
  width: 4px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: scrollDotMove 1.7s ease-in-out infinite;
}

@keyframes scrollDotMove {
  0%   { opacity: 1; transform: translateY(0); }
  60%  { opacity: 0.2; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(18px); }
}

.scroll-cue-text {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--color-text-faint);
  text-transform: lowercase;
  font-weight: 500;
}

/* Arrow variant (last chapter of each section) */
.scroll-cue-next .scroll-cue-arrow {
  color: var(--color-primary);
  animation: bounceCue 1.5s ease-in-out infinite;
}

@keyframes bounceCue {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ── Responsive adjustments ───────────────────────────────────────────── */

/* Tablet */
@media (max-width: 900px) {
  .chapter-title {
    font-size: clamp(2.8rem, 11vw, 8rem);
  }

  .chapter-bg-num {
    font-size: clamp(14rem, 38vw, 30rem);
  }

  .chapter-dots {
    right: var(--space-3);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .chapter {
    padding: calc(56px + var(--space-6)) var(--space-5) var(--space-8);
    min-height: 75svh;
    justify-content: flex-start;
  }

  .chapter-title {
    font-size: clamp(2.6rem, 14vw, 6rem);
    letter-spacing: -0.02em;
    width: 100%;
    clip-path: inset(0);
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 12%,
      black 88%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 12%,
      black 88%,
      transparent 100%
    );
  }

  .chapter-bg-num {
    font-size: clamp(10rem, 45vw, 18rem);
    opacity: 0.05;
  }

  .chapter-inner {
    gap: var(--space-6);
  }

  .chapter-desc {
    font-size: var(--text-sm);
  }

  /* Hide progress dots on small mobile — too cramped */
  .chapter-dots {
    display: none;
  }

  .scroll-cue {
    bottom: var(--space-6);
  }
}

/* Reduced motion: disable all chapter animations */
@media (prefers-reduced-motion: reduce) {
  .chapter-section-pill,
  .chapter-label,
  .chapter-title,
  .chapter-desc {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  .scroll-cue-dot,
  .scroll-cue-arrow {
    animation: none !important;
  }

  #heroWave {
    display: none;
  }
}
/* ===================================================================
   PHASE 1 — NEW COMPONENT CLASSES (LuxFrame Redesign)
   All classes are additive — no existing selectors modified.
   =================================================================== */

/* ── Section Wave Canvas ─────────────────────────────────────────── */
.section-wave-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  width: 100%;
  height: 100%;
}

/* ── 1.1 Dashboard Hero ──────────────────────────────────────────── */
.dashboard-hero {
  position: relative;
  background:
    linear-gradient(to left, oklch(0.68 0.19 85 / 0.28) 0%, oklch(0.68 0.19 85 / 0.28) 28%, oklch(0.5 0.15 85 / 0.06) 55%, transparent 72%),
    var(--color-surface);
  border: 1px solid oklch(0.5 0.15 85 / 0.22);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-8);
  margin-top: 72px;
  margin-bottom: var(--space-8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, oklch(0.88 0.22 85 / 0.18) 1px, transparent 1px);
  background-size: 3px 3px;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.9) 28%, rgba(0,0,0,0.3) 55%, transparent 72%);
  mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.9) 28%, rgba(0,0,0,0.3) 55%, transparent 72%);
  pointer-events: none;
}

.dashboard-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.dashboard-hero-greeting {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.1;
}

.dashboard-hero-greeting span {
  color: var(--color-primary);
}

.dashboard-hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.dashboard-stat-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.dashboard-stat-pill .stat-value {
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-display);
}

/* ── 1.2 Property Card v2 ────────────────────────────────────────── */
.properties-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

.property-card-v2 {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: pointer;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
}

.property-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px oklch(0.65 0.15 80 / 0.18);
  border-color: oklch(0.65 0.15 80 / 0.6);
}

.property-card-v2 .card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-surface-2);
  flex-shrink: 0;
}

.property-card-v2 .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 320ms var(--ease-out);
}

.property-card-v2:hover .card-thumb img {
  transform: scale(1.05);
}

.card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  gap: var(--space-2);
  font-size: var(--text-xs);
}

.card-thumb-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, oklch(0.08 0 0 / 0.85) 0%, transparent 100%);
  pointer-events: none;
}

.property-card-v2 .card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  z-index: 2;
}

.card-info .card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: #fff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-info .card-address {
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: var(--space-2);
}

.card-badges {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.card-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.card-status-badge.draft { background: oklch(0.4 0 0 / 0.65); color: oklch(0.75 0 0); }
.card-status-badge.enhanced { background: oklch(0.5 0.14 80 / 0.7); color: oklch(0.95 0.1 80); }
.card-status-badge.has-video { background: oklch(0.35 0.12 260 / 0.75); color: oklch(0.85 0.1 260); }

.card-asset-icons {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  color: oklch(1 0 0 / 0.6);
  font-size: var(--text-xs);
}

.card-asset-icons span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.property-card-v2 .card-actions-hover {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: flex;
  gap: var(--space-2);
  opacity: 0;
  transition: opacity 200ms;
  z-index: 3;
}

.property-card-v2:hover .card-actions-hover {
  opacity: 1;
}

.card-action-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: oklch(0.1 0 0 / 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid oklch(1 0 0 / 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 150ms;
}

.card-action-btn:hover { background: oklch(0.65 0.15 80 / 0.9); }
.card-action-btn.danger:hover { background: oklch(0.5 0.2 27 / 0.9); }

.property-card-v2 .card-footer {
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.card-footer-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.card-footer-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-open-btn {
  font-size: 12px;
  padding: 4px 12px;
  height: auto;
  line-height: 1.5;
}

/* ── 1.3 Option Cards (Step 2) — Premium Redesign ───────────────────── */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

@media (max-width: 580px) {
  .options-grid { grid-template-columns: 1fr; }
}

/* ── Base card ── */
.option-card {
  position: relative;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 20px;
  padding: 28px 24px 22px;
  cursor: pointer;
  transition:
    border-color 350ms var(--ease-out),
    box-shadow 350ms var(--ease-out),
    transform 350ms var(--ease-out),
    background 350ms var(--ease-out);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  user-select: none;
  overflow: hidden;
  min-height: 188px;
}

/* ── Shimmer sweep (runs across card on hover) ── */
.option-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 25%,
    rgba(200, 148, 18, 0.10) 50%,
    transparent 75%
  );
  background-size: 250% 100%;
  background-position: 200% center;
  transition: background-position 700ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

.option-card:hover::before {
  background-position: -80% center;
}

/* ── Ambient radial glow (emanates from icon area on hover) ── */
.option-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 70% at 50% 35%,
    rgba(200, 148, 18, 0.09) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 450ms var(--ease-out);
  pointer-events: none;
  z-index: 0;
}

.option-card:hover::after,
.option-card.selected::after {
  opacity: 1;
}

/* ── Hover state ── */
.option-card:hover {
  border-color: rgba(200, 148, 18, 0.55);
  box-shadow:
    0 0 0 1px rgba(200, 148, 18, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.28),
    0 0 50px rgba(200, 148, 18, 0.08);
  transform: translateY(-6px);
}

/* ── Selected state ── */
.option-card.selected {
  border-color: var(--color-primary);
  background: color-mix(in oklch, var(--color-primary) 5%, var(--color-surface));
  animation: cardSelectedPulse 3s ease-in-out infinite;
}

@keyframes cardSelectedPulse {
  0%, 100% {
    box-shadow:
      inset 0 2px 0 var(--color-primary),
      0 0 0 1px rgba(200, 148, 18, 0.25),
      0 8px 32px rgba(0, 0, 0, 0.22),
      0 0 40px rgba(200, 148, 18, 0.10);
  }
  50% {
    box-shadow:
      inset 0 2px 0 var(--color-primary),
      0 0 0 1px rgba(200, 148, 18, 0.35),
      0 8px 32px rgba(0, 0, 0, 0.22),
      0 0 60px rgba(200, 148, 18, 0.22);
  }
}

/* ── Disabled ── */
.option-card.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Checkmark badge ── */
.option-checkmark {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), #e6b84a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  opacity: 0;
  transform: scale(0.3) rotate(-20deg);
  transition: opacity 220ms var(--ease-out), transform 280ms var(--ease-out);
  z-index: 3;
  box-shadow: 0 2px 10px rgba(200, 148, 18, 0.5);
}

.option-card.selected .option-checkmark {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* ── Icon container ── */
.option-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: oklch(0.65 0.15 80 / 0.1);
  border: 1px solid oklch(0.65 0.15 80 / 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
  transition:
    transform 350ms var(--ease-out),
    box-shadow 350ms var(--ease-out),
    background 350ms var(--ease-out),
    border-color 350ms var(--ease-out);
  position: relative;
  z-index: 2;
}

.option-card:hover .option-card-icon {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 6px 24px rgba(200, 148, 18, 0.35), 0 0 0 1px rgba(200, 148, 18, 0.3);
  background: oklch(0.65 0.15 80 / 0.18);
  border-color: oklch(0.65 0.15 80 / 0.45);
}

.option-card.selected .option-card-icon {
  box-shadow: 0 4px 20px rgba(200, 148, 18, 0.40);
  background: oklch(0.65 0.15 80 / 0.15);
}

.option-card-icon svg {
  width: 22px;
  height: 22px;
  transition: transform 350ms var(--ease-out);
}

.option-card:hover .option-card-icon svg {
  transform: rotate(-5deg) scale(1.05);
}

/* ── Title ── */
.option-card-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.option-card:hover .option-card-title,
.option-card.selected .option-card-title {
  background: linear-gradient(125deg, #e8e8e4 20%, #e6b84a 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Description ── */
.option-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  position: relative;
  z-index: 2;
  flex: 1;
}

/* ── Cost pill ── */
.option-card-cost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  background: oklch(0.65 0.15 80 / 0.1);
  border: 1px solid oklch(0.65 0.15 80 / 0.25);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  align-self: center;
  position: relative;
  z-index: 2;
  transition: background 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
}

.option-card:hover .option-card-cost {
  background: oklch(0.65 0.15 80 / 0.18);
  box-shadow: 0 0 12px rgba(200, 148, 18, 0.2);
}

/* ── 1.4 Credit Estimator ────────────────────────────────────────── */
.credit-estimator {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
}

.credit-estimator--compact {
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-3);
}

.credit-estimator-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.credit-estimator--compact .credit-estimator-title {
  margin-bottom: 6px;
}

.credit-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-1) 0;
}

.credit-estimator--compact .credit-line {
  font-size: var(--text-xs);
  padding: 2px 0;
}

.credit-line + .credit-line {
  border-top: 1px solid var(--color-divider);
}

.credit-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  padding-top: var(--space-3);
  margin-top: var(--space-2);
  border-top: 2px solid var(--color-border);
}

.credit-estimator--compact .credit-total-row {
  font-size: var(--text-sm);
  padding-top: 8px;
  margin-top: 6px;
  border-top-width: 1px;
}

.credit-total-value { color: var(--color-primary); font-family: var(--font-display); }

.credit-balance-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.credit-estimator--compact .credit-balance-hint {
  margin-top: 6px;
  line-height: 1.35;
}

/* ── 1.5 Processing Stages ───────────────────────────────────────── */
.processing-stages-wrap {
  max-width: 100%;
  margin: 0 auto var(--space-8);
}

.processing-stages {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.processing-stage {
  display: flex;
  flex-direction: column;
  padding: var(--space-5) var(--space-6);
  background: color-mix(in oklch, var(--color-surface) 96%, transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  transition: border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
  position: relative;
  overflow: hidden;
  animation: psCardIn 0.5s var(--ease-out) calc(var(--ps-i, 0) * 120ms) both;
  backdrop-filter: blur(20px) saturate(1.2);
}

/* Top row: icon + label + status */
.ps-main-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Inline progress block inside stage card */
.ps-inline-progress {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid color-mix(in oklch, var(--color-primary) 15%, transparent);
}

.ps-inprog-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.ps-inprog-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-inprog-pct {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1rem + 1.5vw, 2.25rem);
  font-weight: 800;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: var(--space-4);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ps-inprog-meta {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-1);
  font-size: 10px;
  color: var(--color-text-faint);
}

/* Enhanced photo thumbnails shown after enhancement completes */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ps-enhance-results {
  max-width: 520px;
  margin: 0 auto var(--space-6);
  animation: fadeSlideUp 0.35s var(--ease-out);
}

.ps-enhance-results-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ps-enhance-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: var(--space-2);
}

.ps-result-thumb {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-2);
}

.ps-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 200ms var(--ease-out);
}

.ps-result-thumb:hover img { transform: scale(1.05); }

.processing-stage.ps-active {
  border-color: var(--color-primary);
  animation:
    psCardIn 0.5s var(--ease-out) calc(var(--ps-i, 0) * 120ms) both,
    psGlowPulse 2.4s ease-in-out infinite;
}

/* Scan line sweep overlay on active card */
.processing-stage.ps-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--color-primary) 8%, transparent), transparent);
  animation: psScanSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

.processing-stage.ps-done {
  border-color: oklch(0.55 0.15 145 / 0.6);
}

.ps-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: background 250ms, border-color 250ms, color 250ms;
  position: relative;
}

.processing-stage.ps-active .ps-icon {
  background: color-mix(in oklch, var(--color-primary) 12%, transparent);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--color-primary) 12%, transparent);
  animation: none;
}

/* Spinning orbit ring around active icon */
.processing-stage.ps-active .ps-icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--color-primary);
  border-right-color: color-mix(in oklch, var(--color-primary) 40%, transparent);
  animation: psOrbitRing 1.4s linear infinite;
}

.processing-stage.ps-done .ps-icon {
  background: oklch(0.55 0.15 145 / 0.1);
  border-color: oklch(0.55 0.15 145 / 0.7);
  color: oklch(0.55 0.15 145);
}

@keyframes ps-pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.65 0.15 80 / 0.45); }
  50% { box-shadow: 0 0 0 8px oklch(0.65 0.15 80 / 0); }
}

.ps-text { flex: 1; }

.ps-label {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.ps-sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: 3px;
}

.processing-stage.ps-pending .ps-label,
.processing-stage.ps-pending .ps-sub { color: var(--color-text-faint); }

.ps-status {
  font-size: var(--text-xs);
  font-weight: 700;
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.processing-stage.ps-active .ps-status {
  color: #0e0e0c;
  background: linear-gradient(110deg, #c89418 0%, #e6b84a 35%, #f5d06a 50%, #e6b84a 65%, #c89418 100%);
  background-size: 250% 100%;
  background-position: 0% center;
  animation: heroCtaShimmer 3.5s ease-in-out infinite;
  border-color: transparent;
}

.processing-stage.ps-done .ps-status {
  color: oklch(0.55 0.15 145);
  background: oklch(0.55 0.15 145 / 0.1);
  border-color: oklch(0.55 0.15 145 / 0.3);
}

@keyframes psCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes psScanSweep {
  0%   { left: -60%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}
@keyframes psOrbitRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes psGlowPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 color-mix(in oklch, var(--color-primary) 0%, transparent), 0 8px 32px oklch(0 0 0 / 0.18);
  }
  50% {
    box-shadow: 0 0 0 6px color-mix(in oklch, var(--color-primary) 14%, transparent), 0 0 40px color-mix(in oklch, var(--color-primary) 20%, transparent), 0 8px 32px oklch(0 0 0 / 0.18);
  }
}
@keyframes psBadgePing {
  0%   { transform: scale(1); opacity: 0.8; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ── 1.6 Review Grid ─────────────────────────────────────────────── */
.review-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

/* Match processing hero (h2.ps-hero-title) — scaled for the review row + optional count */
.review-section-header .ps-hero-title.review-section-hero-title {
  margin-bottom: 0;
  font-size: clamp(2rem, 1rem + 3vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  animation: none;
  flex: 1;
  min-width: 0;
}

#enhancedReviewSection .review-section-intro--centered {
  text-align: center;
  margin-bottom: var(--space-8);
}

#enhancedReviewSection .review-section-intro--centered .review-section-header {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-3);
}

#enhancedReviewSection .review-section-intro--centered .ps-hero-title.review-section-hero-title {
  flex: none;
  width: 100%;
  display: flex;
  justify-content: center;
}

#enhancedReviewSection .review-section-intro--centered .review-section-title-inner {
  justify-content: center;
}

#enhancedReviewSection .review-section-intro-desc {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
  animation: none;
}

.review-section-title-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.review-section-title-icon {
  width: clamp(22px, 0.55em + 10px, 36px);
  height: clamp(22px, 0.55em + 10px, 36px);
  flex-shrink: 0;
  color: var(--color-primary);
}

.review-section-title-copy {
  display: inline;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

@media (max-width: 480px) {
  .review-grid { grid-template-columns: repeat(2, 1fr); }
}

.review-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-surface-2);
  cursor: grab;
}

.review-card:active { cursor: grabbing; }

.review-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 200ms var(--ease-out);
}

.review-card:hover:not(.review-card--dragging) .review-card-img { transform: scale(1.04); }

.review-card-overlay {
  position: absolute;
  inset: 0;
  background: oklch(0.08 0 0 / 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  opacity: 0;
  transition: opacity 160ms;
}

.review-card:hover .review-card-overlay { opacity: 1; }

.rc-action {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: oklch(1 0 0 / 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid oklch(1 0 0 / 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 140ms;
}

.rc-action:hover { background: oklch(1 0 0 / 0.22); }
.rc-action.rc-delete:hover { background: oklch(0.5 0.22 27 / 0.85); }

.review-card-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

.rcb-enhanced { background: oklch(0.6 0.15 80 / 0.85); color: oklch(0.1 0 0); }
.rcb-drone { background: oklch(0.4 0.15 260 / 0.85); color: #fff; }
.rcb-original { background: oklch(0.3 0 0 / 0.75); color: oklch(0.75 0 0); }

.review-card-num {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: oklch(0.08 0 0 / 0.75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ── Drag grip handle ── */
.review-card-grip {
  position: absolute;
  top: 50%;
  right: var(--space-2);
  transform: translateY(-50%);
  color: oklch(1 0 0 / 0.55);
  opacity: 0;
  transition: opacity 160ms;
  pointer-events: none;
}
.review-card:hover .review-card-grip { opacity: 1; }

/* ── Drag states ── */
.review-card--dragging {
  opacity: 0.35;
  transform: scale(0.96);
  transition: opacity 120ms, transform 120ms;
}

.review-card--drag-over {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  transform: scale(1.02);
  transition: transform 120ms var(--ease-out);
}

/* ── One-shot drag hint animation ── */
@keyframes review-drag-hint {
  0%   { transform: translateY(0)    rotate(0deg);    box-shadow: none; }
  25%  { transform: translateY(-7px) rotate(-1.8deg); box-shadow: 0 14px 30px oklch(0 0 0 / 0.32); }
  55%  { transform: translateY(-7px) rotate(-1.8deg); box-shadow: 0 14px 30px oklch(0 0 0 / 0.32); }
  80%  { transform: translateY(0)    rotate(0deg);    box-shadow: none; }
  100% { transform: translateY(0)    rotate(0deg);    box-shadow: none; }
}

.review-card--drag-hint {
  animation: review-drag-hint 1.1s var(--ease-out) forwards;
  z-index: 2;
}

.drone-review-section {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
  margin-top: var(--space-4);
}

.review-actions-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.review-nav-btn {
  min-width: 130px;
  justify-content: center;
}

/* ── 1.7 Video Preview ───────────────────────────────────────────── */
.video-preview-section {
  max-width: 720px;
  margin: 0 auto var(--space-6);
}

.video-player-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
  margin-bottom: var(--space-5);
}

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

.video-confirm-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 1.8 Download Complete Panel ─────────────────────────────────── */
.download-complete {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  padding: var(--space-12) 0 var(--space-8);
}

.download-complete-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: oklch(0.65 0.15 80 / 0.1);
  border: 2px solid oklch(0.65 0.15 80 / 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin: 0 auto var(--space-6);
}

.download-complete .download-complete-hero-title {
  margin-bottom: var(--space-3);
}

.download-complete-desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.download-stats-grid {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.download-stat-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6);
  min-width: 110px;
  text-align: center;
}

.download-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
}

.download-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  display: block;
}

.wizard-panel2-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

/* Pitch/sales input */
.pitch-input-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.pitch-input-section--compact {
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
  border-radius: var(--radius-lg);
}

.pitch-input-section label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.pitch-input-section--compact label {
  font-size: var(--text-xs);
  margin-bottom: var(--space-2);
}

.pitch-input-section textarea {
  width: 100%;
  min-height: 90px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-text);
  resize: vertical;
  box-sizing: border-box;
}

.pitch-input-section--compact textarea {
  min-height: 64px;
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-3);
}

/* Back link at bottom of complete panel */
.back-to-dash-link {
  display: inline-block;
  margin-top: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-to-dash-link:hover { color: var(--color-text); }

/* ── Detail View Generation Strip ────────────────────────────────── */
.detail-gen-strip {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.detail-gen-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 150ms, box-shadow 150ms, background 150ms;
  white-space: nowrap;
}

.detail-gen-btn:hover {
  border-color: oklch(0.65 0.15 80 / 0.6);
  box-shadow: 0 0 0 3px oklch(0.65 0.15 80 / 0.08);
  background: var(--color-surface-2);
}

.detail-gen-btn svg,
.detail-gen-btn i { color: var(--color-primary); }

/* Upload step continue button area */
.upload-continue-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* Processing header */
.processing-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.processing-header-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.processing-header-sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── Hero header (panel3Processing only) ───────────────────────── */
.ps-hero-header {
  margin-bottom: var(--space-10);
  position: relative;
  padding-top: var(--space-6);
}

.ps-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 16px;
  background: color-mix(in oklch, var(--color-primary) 10%, transparent);
  border: 1px solid color-mix(in oklch, var(--color-primary) 28%, transparent);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  animation: psCardIn 0.5s var(--ease-out) both;
}

.ps-hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  position: relative;
  flex-shrink: 0;
}

.ps-hero-badge-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-primary);
  animation: psBadgePing 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ps-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1rem + 4vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  animation: psCardIn 0.55s var(--ease-out) 0.08s both;
}

.ps-hero-title-gradient {
  background: linear-gradient(135deg, var(--color-primary), #e6b84a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ps-hero-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: 0;
  animation: psCardIn 0.6s var(--ease-out) 0.15s both;
}

#panel3Processing,
#panel4VideoGen {
  position: relative;
}

.ps-section-glow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  margin-top: -200px;
  background: radial-gradient(ellipse, color-mix(in oklch, var(--color-primary) 9%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.processing-stages-wrap {
  position: relative;
  z-index: 1;
}

/* ── Admin View-as-User Mode ─────────────────────────────────────── */

.admin-view-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #c4342e;
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  height: 36px;
}

body.admin-view-mode .btn-primary,
body.admin-view-mode .btn-danger,
body.admin-view-mode #logoutBtn,
body.admin-view-mode #navBuyCreditsBtn,
body.admin-view-mode #navManageSubBtn {
  pointer-events: none;
  opacity: 0.4;
}

body.admin-view-mode .nav {
  top: 36px; /* push nav below admin banner */
}

body.admin-view-mode .detail-delete-btn,
body.admin-view-mode .photo-drag-handle {
  display: none !important;
}

/* Admin property detail — original vs enhanced */
.admin-detail-compare {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
  grid-column: 1 / -1;
}

.admin-detail-compare-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.admin-detail-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}

.admin-detail-pair:last-child {
  border-bottom: none;
}

.admin-detail-pair-col {
  min-width: 0;
}

.admin-detail-pair-col img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  border: 1px solid var(--color-border);
}

.admin-detail-asset-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  word-break: break-all;
}

.admin-detail-pair-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border);
  text-align: center;
}

.admin-detail-pair-drone {
  font-style: italic;
}

.admin-detail-enhanced-card {
  cursor: pointer;
}

a.admin-original-download {
  margin-top: var(--space-2);
  display: inline-flex;
}
