/* ============================================================
   CarDealerStudio — Landing Page Stylesheet
   Visual system: graphite #0A0B0D · showroom blue #4AA3F0
   Glass surfaces · Outfit / Geist / Geist Mono · Lucide icons
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --bg: #0A0B0D;
  --bg-raised: #0E1013;
  --bg-section: #0B0D0E;

  /* Glass */
  --glass-fill: rgba(255, 255, 255, 0.035);
  --glass-fill-hover: rgba(255, 255, 255, 0.06);
  --glass-stroke: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.08);

  /* Text */
  --text-hi: #F4F6F8;
  --text-mid: #C9CFD6;
  --text-body: #98A0A8;
  --text-dim: #7B838C;
  --text-faint: #666E76;

  /* Accent — showroom electric blue */
  --accent: #4AA3F0;
  --accent-soft: rgba(74, 163, 240, 0.15);
  --accent-stroke: rgba(74, 163, 240, 0.45);
  --accent-text: #8FC4F2;
  --accent-grad: linear-gradient(180deg, #4FABF5 0%, #307CCB 100%);

  /* Depth */
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.28);
  --shadow-deep: 0 28px 60px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(16, 26, 40, 0.4);
  --shadow-btn: 0 6px 20px rgba(74, 163, 240, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.28);

  /* Geometry */
  --r-card: 18px;
  --r-inner: 14px;
  --r-btn: 11px;

  /* Type */
  --font-display: "Outfit", sans-serif;
  --font-body: "Geist", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  /* Layout */
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }

/* Lucide sizing */
.lucide { width: 1em; height: 1em; stroke-width: 2; }

/* ---------- Reusable: eyebrow / titles ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow.center { text-align: center; }

.section { padding: 96px 0; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-hi);
  letter-spacing: -0.01em;
}
.section-title.center { text-align: center; }

.section-sub {
  margin-top: 14px;
  max-width: 680px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
}
.section-sub.center { margin-inline: auto; text-align: center; }

.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 14.5px;
  border-radius: var(--r-btn);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  color: #fff;
  background: var(--accent-grad);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(74, 163, 240, 0.45), inset 0 1px 2px rgba(255,255,255,0.28); }

.btn-ghost {
  color: var(--text-mid);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }

.btn-lg { padding: 14px 28px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; height: 48px; min-height: 48px; flex-shrink: 0; }

.btn:disabled,
.btn.btn-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(40%);
  transform: none !important;
  box-shadow: none !important;
}

.btn.is-generating {
  opacity: 0.88 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: none !important;
  background: rgba(74, 163, 240, 0.25) !important;
  border-color: rgba(74, 163, 240, 0.55) !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(74, 163, 240, 0.28) !important;
}

/* ---------- Glass card ---------- */
.card {
  background: #0f1217;
  border: 1px solid var(--glass-stroke);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card), inset 0 1px 2px var(--glass-highlight);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: #14181f;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 72px;
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.navbar.scrolled { background: rgba(10, 11, 13, 0.9); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); }

.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text-hi); }
.brand-mark { color: var(--accent); display: grid; place-items: center; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.brand-dot { font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--accent); align-self: flex-end; padding-bottom: 2px; }

.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-mid);
  position: relative; padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--text-hi); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 22px; }
.signin { font-size: 14px; font-weight: 500; color: var(--text-mid); transition: color 0.2s; }
.signin:hover { color: var(--text-hi); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 136px 0 36px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 1040px; height: 560px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(74, 163, 240, 0.13), transparent 70%);
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--text-mid);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}
.hero-badge .lucide { width: 14px; height: 14px; color: var(--accent); }

.hero-title {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text-hi);
}

.hero-sub { margin-top: 22px; max-width: 780px; font-size: 19px; line-height: 1.6; color: var(--text-body); }

.hero-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-subnote {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-mid);
  letter-spacing: 0.01em;
}

.hero-subnote .subnote-accent {
  color: var(--accent);
  font-weight: 500;
}

.hero-subnote .subnote-hi {
  color: var(--text-hi);
  font-weight: 500;
}

.hero-subnote .subnote-sep {
  color: rgba(255, 255, 255, 0.22);
  user-select: none;
}

/* ---------- Before / After slider ---------- */
.compare { position: relative; margin-top: 52px; width: min(1160px, 100%); }

.compare-frame {
  position: relative;
  aspect-ratio: 1440 / 864;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-deep);
  user-select: none;
  -webkit-user-select: none;
}

.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.compare-before {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.compare-before .compare-img { clip-path: none; }
.compare-before::after { /* right edge emphasis */
  content: ""; position: absolute; top: 0; bottom: 0; right: 0;
  width: 2px; background: rgba(255, 255, 255, 0.35);
}

.compare-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; background: #fff; transform: translateX(-1px);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.compare-handle {
  position: absolute; top: 50%; left: 50%;
  width: 48px; height: 48px; border-radius: 999px;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  background: rgba(74, 163, 240, 0.98);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 16px rgba(74, 163, 240, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.35);
  color: #fff;
  transition: transform 0.2s ease;
}
.compare-handle .lucide { width: 14px; height: 14px; }
.compare-frame:hover .compare-handle { transform: translate(-50%, -50%) scale(1.06); }

.chip {
  position: absolute; top: 20px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  backdrop-filter: blur(10px);
}
.chip .lucide { width: 12px; height: 12px; color: var(--accent); }
.chip-before { left: 20px; color: var(--text-mid); background: rgba(8, 9, 10, 0.62); border: 1px solid rgba(255, 255, 255, 0.14); }
.chip-after { right: 20px; color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-stroke); }

/* Invisible range input stacked on top for pointer + keyboard control */
.compare-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize;
  margin: 0;
}
.compare-range:focus-visible + * .compare-handle,
.compare-range:focus-visible ~ .compare-divider { outline: none; }
.compare-range:focus-visible ~ .compare-divider .compare-handle {
  box-shadow: 0 0 0 4px rgba(74, 163, 240, 0.35), 0 4px 16px rgba(74, 163, 240, 0.55);
}

/* ---------- Compare preset switcher (Option A) ---------- */
.compare-preset-bar {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.compare-preset-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-preset-pills {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 3px;
  gap: 4px;
}

.compare-pill {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-mid);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  user-select: none;
}

.compare-pill:hover {
  color: var(--text-hi);
  background: rgba(255, 255, 255, 0.06);
}

.compare-pill.active {
  color: #fff;
  background: rgba(74, 163, 240, 0.22);
  border-color: rgba(74, 163, 240, 0.5);
  box-shadow: 0 2px 10px rgba(74, 163, 240, 0.22);
  font-weight: 600;
}

/* ---------- Trust / Platforms bar ---------- */
.trust {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 820px;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 32px;
  color: var(--text-mid);
}
.trust-logos span {
  opacity: 0.65;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.trust-logos span:hover {
  opacity: 1;
  color: var(--text-hi);
}
.logo-mono { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; }
.logo-outfit-semibold { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; }
.logo-outfit-light { font-family: var(--font-display); font-size: 15px; font-weight: 400; }
.logo-eb { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.logo-regular { font-size: 13.5px; font-weight: 500; }

/* ============================================================
   WORKBENCH
   ============================================================ */
.workbench {
  padding: 56px 0 96px;
  background: linear-gradient(180deg, #0B0D0F 0%, #0A0C0D 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bento { margin-top: 44px; display: grid; grid-template-columns: 660fr 520fr; gap: 20px; align-items: start; }
.bento-left, .bento-right { display: flex; flex-direction: column; gap: 20px; }

.step-card { padding: 24px; }

.step-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.step-title-wrap { display: flex; align-items: center; gap: 10px; }
.step-num {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: #7FBCEF;
  background: var(--accent-soft);
  border: 1px solid var(--accent-stroke);
}
.step-head h3 { font-size: 17px; font-weight: 600; color: var(--text-hi); }
.step-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); }

.pill-badge {
  padding: 4px 9px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em;
  color: #7FBCEF; background: var(--accent-soft);
}

/* Dropzone */
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 34px 24px; border-radius: var(--r-inner);
  background: rgba(74, 163, 240, 0.04);
  border: 1.5px dashed var(--accent-stroke);
  color: var(--accent);
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.dragover {
  background: rgba(74, 163, 240, 0.09);
  border-color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}
.dropzone .lucide { width: 30px; height: 30px; }
.dz-main { font-size: 15.5px; font-weight: 600; color: var(--text-mid); }
.dz-sub { font-size: 12.5px; color: var(--text-dim); }

/* Thumbs */
.thumbs {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 64px;
}
.thumb {
  position: relative;
  width: 94px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.thumb:hover .thumb-remove {
  opacity: 1;
  transform: scale(1);
}
.thumb-remove:hover {
  background: rgba(239, 68, 68, 0.9);
  border-color: #ef4444;
}
.thumb-remove .lucide {
  width: 10px;
  height: 10px;
}
.thumb-badge {
  position: absolute;
  bottom: 3px;
  left: 3px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.65);
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--text-mid);
}

.thumb-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 94px; height: 64px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.thumb-add:hover {
  background: rgba(74, 163, 240, 0.08);
  border-color: var(--accent);
  color: var(--text-hi);
}
.thumb-add .lucide { width: 14px; height: 14px; }
.thumb-add span { font-family: var(--font-mono); font-size: 10px; font-weight: 500; }

/* Presets */
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.preset {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.preset:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.22); }
.preset img {
  width: 100%;
  aspect-ratio: 1440 / 864;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.preset > span { font-size: 12.5px; font-weight: 500; color: var(--text-mid); padding: 0 2px; }
.preset.selected {
  background: rgba(74, 163, 240, 0.08);
  border: 1.5px solid var(--accent-stroke);
  box-shadow: inset 0 0 6px rgba(74, 163, 240, 0.18), 0 4px 16px rgba(74, 163, 240, 0.22);
}
.preset.selected > span { color: var(--text-hi); font-weight: 600; }
.preset-name-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.preset-check { display: none; width: 14px; height: 14px; color: var(--accent); }
.preset.selected .preset-check { display: inline-block; }

.hint {
  margin-top: 16px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-dim);
}
.hint .lucide { width: 13px; height: 13px; flex-shrink: 0; }

/* Vanity plate */
.plate {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 20px 24px;
  border-radius: 10px;
  margin-bottom: 16px;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

/* Plate theme: Classic White */
.plate.theme-classic {
  background: linear-gradient(180deg, #F8F9FA 0%, #E9ECEF 100%);
  border: 2px solid #CED4DA;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 2px 4px rgba(0, 0, 0, 0.12);
  color: #1A1D20;
}
.plate.theme-classic .plate-region { color: #1B4FA0; }
.plate.theme-classic .plate-number { color: #111418; }
.plate.theme-classic .plate-footer { color: #495057; font-weight: 600; }

/* Plate theme: Matte Black (Stealth) */
.plate.theme-matte {
  background: linear-gradient(180deg, #1C1E22 0%, #111215 100%);
  border: 2px solid #3A3F47;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}
.plate.theme-matte .plate-region { color: #E5A93C; }
.plate.theme-matte .plate-number { color: #FFFFFF; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); }
.plate.theme-matte .plate-footer { color: #9AA0A6; font-weight: 500; }

/* Plate theme: Carbon Fiber */
.plate.theme-carbon {
  background: repeating-linear-gradient(45deg, #1E2126 0, #1E2126 4px, #15181C 4px, #15181C 8px);
  border: 2px solid #4A505A;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.7), inset 0 0 12px rgba(0, 0, 0, 0.5);
  color: #E2E8F0;
}
.plate.theme-carbon .plate-region { color: #7FBCEF; }
.plate.theme-carbon .plate-number { color: #F1F5F9; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85); }
.plate.theme-carbon .plate-footer { color: #8892B0; font-weight: 500; }

.plate-region { font-size: 11px; font-weight: 700; letter-spacing: 0.3em; }
.plate-number {
  font-family: var(--font-body);
  font-size: clamp(22px, 3vw, 30px); font-weight: 800;
  letter-spacing: 0.14em; line-height: 1.15;
}
.plate-footer { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; }

/* Plate text editor inputs */
.plate-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.plate-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.plate-input-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.plate-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-hi);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.plate-input:focus {
  outline: none;
  background: rgba(74, 163, 240, 0.06);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(74, 163, 240, 0.2);
}

.plate-desc { font-size: 13px; line-height: 1.55; color: var(--text-body); margin-bottom: 16px; }

.plate-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plate-style {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 8px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 10.5px; font-weight: 500; color: var(--text-mid);
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.plate-style:hover { border-color: rgba(255, 255, 255, 0.28); }
.plate-style.selected {
  background: rgba(74, 163, 240, 0.09);
  border: 1.5px solid var(--accent-stroke);
  color: var(--text-hi); font-weight: 600;
}
.swatch { width: 44px; height: 24px; border-radius: 4px; border: 1.5px solid; }
.swatch-classic { background: #F5F5F2; border-color: #BFBFBF; }
.swatch-matte { background: #16181C; border-color: #666A70; }
.swatch-carbon { background: repeating-linear-gradient(45deg, #2A2D33 0 4px, #232629 4px 8px); border-color: #808590; }

/* Generate bar */
.gen-bar { padding: 16px 20px; display: flex; align-items: center; gap: 14px; }
.gen-bar .btn { flex: 1; }
.gen-cost { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 120px; }
.gen-cost strong { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--text-hi); }
.gen-cost span { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }

/* Progress card */
.progress-card { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.progress-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.progress-head h4 { font-size: 14.5px; font-weight: 600; color: var(--text-hi); line-height: 1.3; }
.progress-head-meta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.progress-pct { font-family: var(--font-mono); font-size: 14.5px; font-weight: 700; color: var(--accent); }

.progress-track {
  position: relative; height: 6px; border-radius: 999px;
  background: #1D2126; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #4FABF5 0%, #6BBFFA 100%);
  box-shadow: 0 0 6px rgba(74, 163, 240, 0.5);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-meta { display: flex; align-items: center; font-size: 12px; }
.progress-meta > span:first-child { font-family: var(--font-mono); color: var(--text-dim); }

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3.5px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  color: #7FBCEF; background: rgba(74, 163, 240, 0.12);
  border: 1px solid rgba(74, 163, 240, 0.25);
  line-height: 1.2;
  transition: all 0.25s ease;
}
.status-pill.status-ready {
  color: #4ADE80; background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
}
.status-pill.status-error {
  color: #F87171; background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}
.status-dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 4px rgba(74, 163, 240, 0.9);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ============================================================
   RESULTS
   ============================================================ */
.results-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 32px;
}
.results-head .section-sub { max-width: 640px; }

.results-head-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.gallery-nav-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-arrow-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-arrow-btn:hover {
  background: rgba(74, 163, 240, 0.12);
  border-color: rgba(74, 163, 240, 0.35);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

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

.gallery-arrow-btn i,
.gallery-arrow-btn svg {
  width: 20px;
  height: 20px;
}

.result-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 24px;
  margin-inline: -4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.result-grid::-webkit-scrollbar {
  height: 6px;
}

.result-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}

.result-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.result-grid::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Showroom Lot Empty State */
.result-grid.is-empty {
  display: block;
  overflow: visible;
  scroll-snap-type: none;
  padding: 12px 0 24px;
  margin-inline: 0;
}

.empty-lot-card {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 44px 24px 38px;
  text-align: center;
  border-radius: var(--r-card);
  background: radial-gradient(110% 120% at 50% 0%, rgba(26, 32, 44, 0.45) 0%, rgba(13, 16, 22, 0.88) 100%);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.empty-lot-card::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 200px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(74, 163, 240, 0.14) 0%, transparent 100%);
  pointer-events: none;
}

.empty-lot-card:hover {
  border-color: rgba(74, 163, 240, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 35px rgba(74, 163, 240, 0.08);
}

.empty-lot-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  margin-bottom: 16px;
  transition: transform 0.25s ease, color 0.25s ease;
}

.empty-lot-card:hover .empty-lot-icon-wrap {
  transform: scale(1.05);
  color: #60B5FF;
}

.empty-lot-icon-wrap i,
.empty-lot-icon-wrap svg {
  width: 30px;
  height: 30px;
}

.empty-lot-title {
  font-size: 23px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 12px;
  max-width: 540px;
}

.empty-lot-sub {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 30px;
}

.empty-lot-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.empty-lot-actions .btn {
  padding: 13px 24px;
  font-size: 14px;
  cursor: pointer;
  pointer-events: auto;
}

.empty-lot-actions .btn-ghost {
  border-color: rgba(255, 255, 255, 0.14);
}
.empty-lot-actions .btn-ghost:hover {
  border-color: rgba(229, 169, 60, 0.4);
  background: rgba(229, 169, 60, 0.08);
}

@media (max-width: 640px) {
  .empty-lot-card {
    padding: 38px 20px 32px;
  }
  .empty-lot-title {
    font-size: 19px;
  }
  .empty-lot-sub {
    font-size: 13px;
  }
  .empty-lot-actions {
    flex-direction: column;
    width: 100%;
  }
  .empty-lot-actions .btn {
    width: 100%;
  }
}

.result-card {
  flex: 0 0 310px;
  width: 310px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-inner);
  background: #111419;
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.result-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}
.result-card-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 3;
  border-radius: 9px;
  overflow: hidden;
  cursor: zoom-in;
  background: #14171a;
}
.result-card-preview img,
.result-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  display: block;
  border-radius: 9px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}
.result-card-preview:hover img {
  transform: scale(1.03) translateZ(0);
}

/* Card Regeneration Overlay */
.result-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 17, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 2;
  border-radius: 9px;
}
.result-card.is-regenerating .result-card-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.result-card.is-regenerating {
  pointer-events: none;
}
.regen-spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.regen-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  text-transform: uppercase;
}
.result-card figcaption { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 2px; }
.filename { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-mid); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.filename.dim { color: var(--text-faint); }

.ractions { display: flex; gap: 4px; }
.ractions button {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.ractions button * {
  pointer-events: none;
}
.ractions button:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-hi); }
.ractions button.accent:hover { color: var(--accent); }
.ractions .lucide { width: 16px; height: 16px; }

.result-card.rendering { background: rgba(255, 255, 255, 0.02); border-color: rgba(255, 255, 255, 0.06); box-shadow: none; }
.skeleton {
  aspect-ratio: 204/150; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(100deg, #1F2226 0%, #2A2D33 40%, #1F2226 80%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner {
  width: 26px; height: 26px; border-radius: 999px;
  border: 2.5px solid #3A3F45;
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.render-status { font-family: var(--font-mono); font-size: 10.5px; color: #7FBCEF; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  background: linear-gradient(180deg, #0B0D0F 0%, #0A0C0D 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tiers {
  margin-top: 52px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: stretch;
  padding-block: 28px 20px;
}

.tier {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  box-sizing: border-box;
}
.tier-top { display: flex; align-items: center; justify-content: space-between; }
.tier-name { font-size: 15px; font-weight: 600; color: var(--text-mid); }

.tier-price { display: flex; align-items: baseline; gap: 6px; }
.tier-price strong {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 700; line-height: 1.1;
  color: var(--text-hi); letter-spacing: -0.01em;
}
.tier-price span { font-size: 14px; color: var(--text-dim); }

.tier-desc { font-size: 13px; color: var(--text-body); }
.tier-divider { border: 0; height: 1px; background: rgba(255, 255, 255, 0.07); }

.tier-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 0 auto; /* Pushes the button and footer note to bottom without squishing */
}
.tier-features li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-mid); }
.tier-features .lucide { width: 14px; height: 14px; flex-shrink: 0; color: var(--text-faint); }

/* Pricing card CTA buttons — strict uniform dimensions & radius across all tiers */
#btnTierStarter,
#btnTierPro,
#btnTierPayg {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  border-radius: var(--r-btn) !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  box-sizing: border-box !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.tier-foot-note {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-dim);
  min-height: 20px;
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tier-foot-note .billing-link-secondary {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 20px;
  transition: color 0.15s ease;
}
.tier-foot-note .billing-link-secondary:hover {
  color: var(--text-hi);
}
.tier-foot-note .pro-foot-text {
  color: rgba(74, 163, 240, 0.85);
  font-weight: 500;
}

/* Pro tier — prominent, highlighted, and taller */
.tier-pro {
  position: relative;
  padding: 38px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--accent-stroke);
  box-shadow:
    inset 0 0 10px rgba(74, 163, 240, 0.16),
    0 16px 40px rgba(74, 163, 240, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

@media (min-width: 901px) {
  .tier-pro {
    margin-top: -20px;
    margin-bottom: -20px;
  }
}

.tier-pro .tier-name { color: var(--text-hi); }
.tier-pro .tier-price strong { font-size: 44px; color: #fff; }
.tier-pro .tier-desc { color: #B7BDC4; }
.tier-pro .tier-divider { background: rgba(74, 163, 240, 0.18); }
.tier-pro .tier-features li { color: var(--text-hi); font-weight: 500; }
.tier-pro .tier-features .lucide { color: var(--accent); }

.popular-badge {
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em;
  color: #fff; background: var(--accent-grad);
}

.current-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #10B981;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.booster-header-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(74, 163, 240, 0.12);
  border: 1px solid rgba(74, 163, 240, 0.25);
}

.tier-current {
  border-color: rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.16), inset 0 0 12px rgba(16, 185, 129, 0.08) !important;
}

.btn-current-plan {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #10B981 !important;
  font-weight: 600;
  cursor: pointer;
}

.btn-current-plan:hover {
  background: rgba(16, 185, 129, 0.22) !important;
  border-color: #10B981 !important;
}

.pricing-footnote {
  margin-top: 36px; text-align: center;
  font-size: 12.5px; color: var(--text-faint);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid {
  display: grid; grid-template-columns: 360px 1fr; gap: 48px;
  align-items: start;
}
.faq-head .section-sub { margin-top: 12px; }

.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  border-radius: var(--r-inner);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.faq-item:hover { background: rgba(255, 255, 255, 0.05); }
.faq-item.open {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-stroke);
}

.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
  font-size: 15.5px; font-weight: 500; color: var(--text-mid);
  text-align: left;
  min-height: 44px; /* touch target */
  transition: color 0.2s ease;
}
.faq-q:hover { color: var(--text-hi); }
.faq-item.open .faq-q { font-weight: 600; color: var(--text-hi); }
.faq-q .lucide { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-dim); transition: transform 0.25s ease; }
.faq-item.open .faq-q .lucide { transform: rotate(180deg); color: var(--accent); }
.faq-item.open .faq-q .lucide[data-lucide="chevron-up"] { transform: rotate(0deg); }

.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-a > p { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p {
  padding: 0 22px;
  font-size: 14px; line-height: 1.7; color: var(--text-body);
}
.faq-item.open .faq-a p { padding-bottom: 22px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-top: 0;
  background: linear-gradient(180deg, #0E1011 0%, #08090B 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 64px;
  overflow: hidden;
}

.footer-main {
  display: flex; justify-content: space-between; gap: 48px;
  padding-bottom: 48px;
}
.footer-brand { max-width: 340px; }
.footer-brand .brand-word { font-size: 16px; }
.footer-tagline { margin-top: 16px; font-size: 13.5px; line-height: 1.6; color: var(--text-dim); }

.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-links h4 {
  margin-bottom: 14px;
  font-size: 12px; font-weight: 600; color: var(--text-mid);
  letter-spacing: 0.04em;
}
.footer-links a {
  display: block; padding: 5px 0;
  font-size: 13px; color: var(--text-faint);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--text-hi); }

.footer-watermark {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 118px);
  font-weight: 800; letter-spacing: 0.02em; line-height: 1;
  text-align: center;
  color: #121417;
  user-select: none; white-space: nowrap;
}

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px; color: var(--text-faint);
}
.ssl { display: inline-flex; align-items: center; gap: 7px; }
.ssl .lucide { width: 12px; height: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  z-index: 10050;
  max-width: min(480px, calc(100vw - 40px));
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-hi);
  background: #14171b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* ============================================================
   Reveal-on-scroll animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .bento { grid-template-columns: 1fr; }
  .bento-right { display: grid; grid-template-columns: 1fr 1fr; }
  .bento-right > .step-card { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .results-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .results-head-actions { width: 100%; justify-content: space-between; }
  .tiers { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; padding-block: 0; gap: 20px; }
  .tier { height: auto; }
  .tier-pro { order: -1; margin: 0; padding: 32px 24px; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .bento-right { grid-template-columns: 1fr; }
  .footer-main { flex-direction: column; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: 100px 0 36px; }
  .hero-cta .btn { width: 100%; }
  .presets { grid-template-columns: repeat(2, 1fr); }
  .result-card { flex: 0 0 270px; width: 270px; }
  .gen-bar { flex-direction: column; align-items: stretch; }
  .gen-cost { flex-direction: row; gap: 10px; justify-content: center; }
  .thumbs { flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .compare-frame { aspect-ratio: 4 / 3; }
  .chip { top: 12px; }
  .chip-before { left: 12px; }
  .chip-after { right: 12px; }
}

@media (max-width: 420px) {
  .result-card { flex: 0 0 250px; width: 250px; }
  .nav-actions .signin { display: none; }
}

/* ============================================================
   DOWNLOAD LEAD MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 7, 10, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
}

.modal-backdrop.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 34px 28px;
  border-radius: 18px;
  background: #12151a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(74, 163, 240, 0.2);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: center;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.modal-close .lucide {
  width: 15px;
  height: 15px;
}

.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #7FBCEF;
  background: var(--accent-soft);
  border: 1px solid var(--accent-stroke);
}

.modal-badge .lucide {
  width: 11px;
  height: 11px;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-hi);
  margin-top: 4px;
}

.modal-sub {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-mid);
}

.modal-form {
  margin-bottom: 18px;
}

.modal-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-hi);
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.modal-input:focus {
  outline: none;
  background: rgba(74, 163, 240, 0.06);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 163, 240, 0.2);
}

.modal-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-dim);
}

.modal-footnote .lucide {
  width: 13px;
  height: 13px;
  color: #22C55E;
}

/* ============================================================
   AUTH SYSTEM & USER NAVIGATION STATES
   ============================================================ */

/* Unauthenticated Nav */
.nav-unauth {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-signin-btn {
  background: none;
  border: none;
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-signin-btn:hover {
  color: var(--text-hi);
  background: rgba(255, 255, 255, 0.05);
}

/* Authenticated Nav */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(74, 163, 240, 0.12);
  border: 1px solid rgba(74, 163, 240, 0.28);
  color: #70B8F8;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-credit-pill .lucide {
  width: 14px;
  height: 14px;
  color: #FBBF24;
}

/* User Menu Trigger */
.user-menu-wrapper {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.user-btn:hover,
.user-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563EB, #06B6D4);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.35);
  overflow: hidden !important;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}

.user-name {
  display: none !important;
}

.user-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  transition: transform 0.2s ease;
}

.user-btn[aria-expanded="true"] .user-chevron {
  transform: rotate(180deg);
}

/* User Dropdown Menu */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: rgba(18, 21, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(74, 163, 240, 0.15);
  backdrop-filter: blur(16px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.user-dropdown-header {
  padding: 8px 10px 10px;
}

.user-dropdown-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.user-dropdown-email {
  font-size: 12px;
  color: var(--text-mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.user-dropdown-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  color: #22C55E;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.user-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: none;
  background: none;
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-align: left;
}

.user-dropdown-item .lucide {
  width: 15px;
  height: 15px;
  color: var(--text-dim);
}

.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-hi);
}

.user-dropdown-item:hover .lucide {
  color: var(--accent);
}

.user-dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
}

.user-dropdown-item.danger:hover .lucide {
  color: #F87171;
}

/* ============================================================
   AUTH MODAL & GOOGLE 1-CLICK BUTTON
   ============================================================ */
.auth-card {
  max-width: 440px;
}

.auth-oauth-group {
  margin-bottom: 16px;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  background: #FFFFFF;
  color: #1F2937;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-google:hover {
  background: #F3F4F6;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

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

.google-icon {
  flex-shrink: 0;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 18px 0;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  position: relative;
  background: #12151A;
  padding: 0 12px;
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ============================================================
   LEGAL & COMPLIANCE PAGES (.legal-hero, .legal-layout)
   ============================================================ */
.legal-hero {
  padding: 130px 0 44px;
  position: relative;
  text-align: center;
}

.legal-hero .container {
  max-width: 860px;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(74, 163, 240, 0.1);
  border: 1px solid rgba(74, 163, 240, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  color: var(--text-hi);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.legal-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 24px;
}

.legal-meta span.dot {
  opacity: 0.4;
}

/* Plain-English summary callout box */
.legal-callout {
  text-align: left;
  background: rgba(74, 163, 240, 0.06);
  border: 1px solid rgba(74, 163, 240, 0.22);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 28px 0 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.legal-callout-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #70B8F8;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.legal-callout p {
  color: #CBD5E1;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Legal Body Grid */
.legal-body {
  padding-bottom: 90px;
}

.legal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

/* Sticky TOC Sidebar */
.legal-toc {
  position: sticky;
  top: 96px;
  background: rgba(18, 21, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.legal-toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-toc-link {
  display: block;
  font-size: 13px;
  color: var(--text-mid);
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legal-toc-link:hover,
.legal-toc-link.active {
  color: #70B8F8;
  background: rgba(74, 163, 240, 0.08);
}

/* Main Content Typography */
.legal-article {
  background: rgba(18, 21, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 38px 42px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.legal-section {
  scroll-margin-top: 104px;
  margin-bottom: 44px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: -0.01em;
}

.legal-section h3 {
  font-size: 15.5px;
  font-weight: 600;
  color: #E2E8F0;
  margin: 22px 0 10px;
}

.legal-section p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #94A3B8;
  margin-bottom: 14px;
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0 16px 22px;
  color: #94A3B8;
  font-size: 14.5px;
  line-height: 1.7;
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-section strong {
  color: #F1F5F9;
  font-weight: 600;
}

.legal-section a {
  color: #70B8F8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section a:hover {
  color: #A0CEFB;
}

/* ============================================================
   CONTACT & SUPPORT PAGE (.contact-grid)
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
  align-items: start;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: rgba(18, 21, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(74, 163, 240, 0.12);
  border: 1px solid rgba(74, 163, 240, 0.25);
  color: #70B8F8;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 14px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #70B8F8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.contact-link:hover {
  color: #A0CEFB;
}

.sla-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #22C55E;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 10px;
}

.contact-form-card {
  background: rgba(18, 21, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 34px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(74, 163, 240, 0.12);
}

.contact-form-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.contact-form-sub {
  font-size: 13.5px;
  color: var(--text-mid);
  margin-bottom: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: #CBD5E1;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(74, 163, 240, 0.06);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 163, 240, 0.2);
}

.form-group select option {
  background: #14171C;
  color: #FFFFFF;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

/* Responsive queries */
@media (max-width: 900px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    display: none;
  }
  .legal-article {
    padding: 24px 20px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CHECKOUT MODAL & STRIPE PAYMENT SIMULATION (#checkoutModal)
   ============================================================ */
.checkout-card {
  max-width: 580px;
  max-height: 92vh;
  overflow-y: auto;
  margin: auto;
  padding: 28px 30px;
}

/* Plan Category Switcher (Option A Segmented Switch) */
.checkout-category-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
}

.category-switch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.category-switch-btn:hover {
  color: var(--text-hi);
  background: rgba(255, 255, 255, 0.04);
}

.category-switch-btn.active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.category-switch-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.category-switch-title i,
.category-switch-title svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.category-switch-sub {
  font-size: 10.5px;
  color: var(--text-dim);
  font-weight: 400;
}

.category-switch-btn.active .category-switch-sub {
  color: var(--text-mid);
}

/* Tier Selector Grid inside Checkout (Always 2 spacious columns) */
.checkout-tier-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.tier-pick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
}

.tier-pick-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.tier-pick-card.active {
  background: rgba(229, 90, 43, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(229, 90, 43, 0.18);
}

.tier-pick-badge {
  position: absolute;
  top: -8px;
  right: 8px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ff6b3d 0%, #e55a2b 100%);
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(229, 90, 43, 0.4);
}

.tier-pick-top {
  display: flex;
  align-items: baseline;
  gap: 4px;
  width: 100%;
  margin-bottom: 2px;
}

.tier-pick-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-hi);
}

.tier-pick-card.active .tier-pick-name {
  color: #fff;
}

.tier-pick-cadence {
  font-size: 10.5px;
  color: var(--text-dim);
}

.tier-pick-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 3px;
}

.tier-pick-card.active .tier-pick-price {
  color: var(--accent);
}

.tier-pick-sub {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.25;
}

.tier-pick-card.active .tier-pick-sub {
  color: var(--text-mid);
}

@media (max-width: 540px) {
  .checkout-category-switcher {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .checkout-tier-picker {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tier-pick-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
  }
  .tier-pick-top {
    width: auto;
    margin-bottom: 0;
  }
  .tier-pick-badge {
    top: 6px;
    right: 8px;
  }
}

.checkout-summary-box {
  background: rgba(18, 22, 30, 0.7);
  border: 1px solid rgba(74, 163, 240, 0.2);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.checkout-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-plan-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(74, 163, 240, 0.12);
  border: 1px solid rgba(74, 163, 240, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.checkout-plan-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.checkout-plan-desc {
  font-size: 13px;
  color: var(--text-dim);
}

.checkout-summary-price {
  text-align: right;
  flex-shrink: 0;
  margin-left: 12px;
}

.checkout-price-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
}

.checkout-price-cadence {
  font-size: 13px;
  color: var(--text-dim);
}

.checkout-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.checkout-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-perks i {
  width: 15px;
  height: 15px;
  color: #10B981;
  flex-shrink: 0;
}

/* Trial rollover notice inside checkout modal */
.checkout-rollover-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 10px;
  font-size: 13px;
  color: #4ADE80;
  line-height: 1.4;
  animation: fadeIn 0.25s ease-out;
}

.checkout-rollover-notice i,
.checkout-rollover-notice svg {
  width: 16px;
  height: 16px;
  color: #22C55E;
  flex-shrink: 0;
}

.checkout-switch-bar {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
}

.checkout-change-plan-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease;
}

.checkout-change-plan-btn:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.checkout-change-plan-btn i,
.checkout-change-plan-btn svg {
  width: 13px;
  height: 13px;
}

/* Payment tabs */
.payment-method-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.payment-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.payment-tab.active {
  background: rgba(74, 163, 240, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.payment-tab i {
  width: 16px;
  height: 16px;
}

/* Sandbox info banner */
.test-sandbox-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 9px 14px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #FCD34D;
  line-height: 1.4;
}

.sandbox-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(245, 158, 11, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.sandbox-badge i {
  width: 12px;
  height: 12px;
}

/* Card Inputs */
.checkout-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

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

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-field {
  flex: 1;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .modal-input {
  padding-right: 56px;
}

.font-mono {
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.05em;
}

.card-brand-badge {
  position: absolute;
  right: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  color: #FFFFFF;
}

/* Stripe Trust & Payment Methods Box */
.checkout-stripe-badge-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.checkout-stripe-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 11.5px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-stripe-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-mid);
  font-weight: 500;
}

.checkout-stripe-secure i,
.checkout-stripe-secure svg {
  width: 14px;
  height: 14px;
  color: #10B981;
}

.powered-by-stripe {
  font-size: 11px;
  color: var(--text-dim);
}

.powered-by-stripe strong {
  color: #635BFF;
  font-weight: 700;
}

.checkout-payment-logos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-logo-badge {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.04em;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text-mid);
}

.checkout-submit-btn {
  height: 48px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.checkout-submit-btn:hover {
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

.checkout-trust-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-dim);
}

.trust-item i {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

/* ============================================================
   DEALERSHIP BILLING & SUBSCRIPTION MODAL (#billingModal)
   ============================================================ */
.billing-card {
  max-width: 580px;
  padding: 32px;
}

.billing-status-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(18, 22, 30, 0.8) 100%);
  border: 1px solid rgba(74, 163, 240, 0.3);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.billing-status-main {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  padding-right: 14px;
}

.billing-tier-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
  align-self: flex-start;
}

.billing-plan-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
  text-align: left;
}

.billing-plan-sub {
  font-size: 13px;
  color: var(--text-dim);
  text-align: left;
  line-height: 1.4;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 8px;
}

/* Wallet card & meter */
.billing-wallet-card {
  background: rgba(18, 22, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 22px;
}

.wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.wallet-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.wallet-number {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
}

.wallet-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.wallet-cars-estimate {
  text-align: right;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
}

.cars-num {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #10B981;
}

.cars-label {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
}

.wallet-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.wallet-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #06B6D4 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Booster Section */
.billing-booster-section {
  margin-bottom: 22px;
  text-align: left;
}

.booster-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.booster-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

.booster-title i {
  width: 16px;
  height: 16px;
  color: #F59E0B;
}

.booster-tag {
  font-size: 11px;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.booster-desc {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 14px;
  text-align: left;
  line-height: 1.45;
}

.booster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booster-card {
  background: rgba(18, 22, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: all 0.2s ease;
}

.booster-card.featured {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(74, 163, 240, 0.35);
}

.booster-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.booster-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.booster-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
}

.booster-badge.popular {
  font-size: 10px;
  font-weight: 800;
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.booster-price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
}

.booster-cars {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.booster-credits {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 14px;
}

/* Subdued Actions Footer */
.billing-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.billing-actions-row a:last-child {
  margin-left: auto;
}

.billing-link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.billing-link-secondary:hover {
  color: rgba(255, 255, 255, 0.75);
}

.billing-link-secondary i {
  width: 13px;
  height: 13px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.billing-link-secondary:hover i {
  opacity: 1;
  transform: translate(1px, -1px);
}

@media (max-width: 600px) {
  .booster-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    flex-direction: column;
  }
}

/* ============================================================
   4K LIGHTBOX VIEWER MODAL (#lightboxModal)
   ============================================================ */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 5, 8, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}
.lightbox-backdrop.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.lightbox-container {
  width: 100%;
  max-width: 1200px;
  height: 92vh;
  max-height: 860px;
  display: flex;
  flex-direction: column;
  background: #0d1015;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform: scale(0.97) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-backdrop.open .lightbox-container {
  transform: scale(1) translateY(0);
}

/* Lightbox Header */
.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(18, 22, 28, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 16px;
  flex-shrink: 0;
}
.lightbox-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.lightbox-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(229, 90, 43, 0.12);
  border: 1px solid rgba(229, 90, 43, 0.3);
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.lightbox-badge .lucide {
  width: 12px;
  height: 12px;
}
.lightbox-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lightbox-preset {
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.lightbox-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 6px;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.lightbox-close .lucide {
  width: 18px;
  height: 18px;
}

/* Lightbox Stage */
.lightbox-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #15181f 0%, #0a0c10 100%);
  padding: 20px 72px;
  min-height: 0;
  overflow: hidden;
}
.lightbox-img-wrap {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: calc(92vh - 160px);
  object-fit: contain;
  display: block;
  border-radius: 10px;
  transition: opacity 0.22s ease, filter 0.22s ease;
}

/* Lightbox Compare (Before / After Split View) */
.lightbox-compare {
  position: relative;
  max-width: 100%;
  max-height: calc(92vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox-compare-frame {
  position: relative;
  max-width: 100%;
  max-height: calc(92vh - 160px);
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.lightbox-compare-img {
  width: 100%;
  height: 100%;
  max-height: calc(92vh - 160px);
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.lightbox-compare-before {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--lightbox-pos, 50%)) 0 0);
}

.lightbox-compare-before .lightbox-compare-img {
  clip-path: none;
}

.lightbox-compare-before::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.4);
}

.lightbox-compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--lightbox-pos, 50%);
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  z-index: 3;
}

.lightbox-compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(74, 163, 240, 0.98);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 16px rgba(74, 163, 240, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  color: #fff;
  transition: transform 0.15s ease;
}

.lightbox-compare-handle .lucide {
  width: 13px;
  height: 13px;
}

.lightbox-compare-frame:hover .lightbox-compare-handle {
  transform: translate(-50%, -50%) scale(1.08);
}

.lightbox-compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
  z-index: 4;
}

#lightboxCompareBtn.active {
  background: rgba(74, 163, 240, 0.22) !important;
  border-color: rgba(74, 163, 240, 0.6) !important;
  color: var(--accent) !important;
  box-shadow: 0 0 12px rgba(74, 163, 240, 0.25);
}

/* Lightbox Shimmer / Restaging overlay */
.lightbox-shimmer {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 5;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.lightbox-shimmer.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Stage Navigation Arrows */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(22, 26, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  z-index: 10;
}
.lightbox-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.lightbox-arrow.prev {
  left: 16px;
}
.lightbox-arrow.next {
  right: 16px;
}
.lightbox-arrow .lucide {
  width: 20px;
  height: 20px;
}

/* Lightbox Footer */
.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(14, 17, 22, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--text-dim);
  flex-shrink: 0;
}
#lightboxIndex {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-mid);
}
.lightbox-hint {
  font-size: 11px;
  color: var(--text-faint);
}

@media (max-width: 768px) {
  .lightbox-stage {
    padding: 10px 48px;
  }
  .lightbox-arrow {
    width: 36px;
    height: 36px;
  }
  .lightbox-arrow.prev { left: 8px; }
  .lightbox-arrow.next { right: 8px; }
  .lightbox-meta .lightbox-preset { display: none; }
  .lightbox-hint { display: none; }
  .lightbox-actions .btn span { display: none; }
}

/* ============================================================
   REGENERATE ANGLE CONFIRMATION MODAL & MODAL STACKING
   ============================================================ */
#regenConfirmModal {
  z-index: 10010;
}
#authModal {
  z-index: 10020;
}
#billingModal {
  z-index: 10025;
}
#checkoutModal {
  z-index: 10030;
}
/* ============================================================
   SINGLE-SHOT REGEN MODAL (Option A Streamlined)
   ============================================================ */
.regen-modal-card {
  max-width: 410px !important;
  padding: 30px 26px 26px !important;
}

.regen-compact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 16px 0 22px;
  text-align: left;
}

.regen-compact-card .regen-thumb-wrap {
  width: 82px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
  background: #14171a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.regen-compact-card .regen-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.regen-compact-card .regen-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.regen-preset-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.regen-preset-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.25;
}

#regenConfirmModal .modal-header {
  margin-bottom: 0;
}

#regenConfirmModal .modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-inline: auto;
  line-height: 1;
}

#regenConfirmModal .modal-badge svg,
#regenConfirmModal .modal-badge i {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

#regenConfirmModal .modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  width: 100%;
  margin-top: 0;
}

#regenConfirmBtn, #regenCancelBtn {
  height: 46px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 11px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#regenConfirmBtn svg,
#regenConfirmBtn i {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: inline-block;
}




