/* 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-body);
  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-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 {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active {
  background: var(--color-primary-active);
  transform: translateY(0);
}

.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-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

/* ===== 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: 700;
  font-size: var(--text-lg);
}

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

.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);
}

.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: 800px;
  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: var(--text-3xl);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.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-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

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

.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 ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  counter-reset: step;
}

.step-card {
  text-align: center;
  position: relative;
  counter-increment: step;
}

.step-number {
  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 auto var(--space-5);
  position: relative;
}

.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 2px;
  background: var(--color-divider);
}

.step-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

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

/* ===== BEFORE/AFTER SHOWCASE ===== */
.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: 200;
  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);
}

.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);
}

.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;
}

@keyframes loadingDots {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

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

.dashboard.active {
  display: block;
}

/* 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-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 h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

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

/* 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);
}

.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; }
}

/* 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);
}

/* 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;
}

.progress-bar-container.active {
  display: block;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

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

.progress-bar {
  height: 8px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #e6b84a);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.5s var(--ease-out);
}

/* ===== 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;
}

/* ===== 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: var(--text-2xl); }

  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step-card:not(:last-child)::after { display: none; }

  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-section { padding: var(--space-8); margin-inline: 0; }

  .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 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* ===== 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);
}

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

.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: linear-gradient(90deg, var(--color-primary), var(--color-success));
  transition: width 0.5s ease;
}

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

/* 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-body);
  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);
  z-index: 300;
  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);
}

/* ===== 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;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0 var(--space-5) var(--space-4);
}

.property-card-actions .btn {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-3);
}

/* Open button always takes full width */
.property-card-actions .btn-open {
  flex: 1 1 100%;
}

/* Icon-only utility buttons share the remaining row equally */
.property-card-actions .btn-download-photos,
.property-card-actions .btn-download-video,
.property-card-actions .btn-delete {
  flex: 1;
  min-width: 0;
}

/* 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-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);
  }
}
