/* ═══════════════════════════════════════════════
   LIVRE-V2 — Premium Book Creator
   Bouyalabs · Mobile-first · Stepper + Live Summary
   ═══════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --lv-gold: #D4A853;
  --lv-gold-light: #E8C97D;
  --lv-gold-50: rgba(212, 168, 83, .08);
  --lv-gold-100: rgba(212, 168, 83, .15);
  --lv-gold-200: rgba(212, 168, 83, .25);
  --lv-navy: #1A2744;
  --lv-navy-light: #2A3A5C;
  --lv-ink: #1a1a1a;
  --lv-text: #3a3a3a;
  --lv-muted: #737373;
  --lv-bg: #FAF8F5;
  --lv-surface: #fff;
  --lv-border: #EBE6DE;
  --lv-border-light: #F0ECE5;
  --lv-ok: #10b981;
  --lv-err: #ef4444;
  --lv-radius: 14px;
  --lv-radius-sm: 10px;
  --lv-shadow-sm: 0 2px 8px rgba(0,0,0,.04);
  --lv-shadow: 0 4px 20px rgba(0,0,0,.06);
  --lv-shadow-lg: 0 8px 32px rgba(0,0,0,.08);
  --lv-shadow-gold: 0 4px 20px rgba(212,168,83,.2);
  --lv-font-display: 'Cormorant Garamond', Georgia, serif;
  --lv-font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --lv-transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset scope ── */
.lv2 *, .lv2 *::before, .lv2 *::after { box-sizing: border-box; }
.lv2 { font-family: var(--lv-font-body); color: var(--lv-text); }

html.is-book-result .header,
html.is-book-result .lv2-hero,
html.is-book-result .lv2-trust,
html.is-book-result .lv2-reassurance-band,
html.is-book-result .lv2-creator,
html.is-book-result .lv2-guarantees,
html.is-book-result .lv2-summary,
html.is-book-result .lv2-footer,
html.is-book-result #cookieBanner,
body.is-book-result .header,
body.is-book-result .lv2-hero,
body.is-book-result .lv2-trust,
body.is-book-result .lv2-reassurance-band,
body.is-book-result .lv2-creator,
body.is-book-result .lv2-guarantees,
body.is-book-result .lv2-summary,
body.is-book-result .lv2-footer,
body.is-book-result #cookieBanner {
  display: none;
}

/* V3 live stability: payment CTA and brand mark */
html.is-book-result,
body.is-book-result {
  background: #080e1a;
}

html.is-book-result .lv2,
body.is-book-result .lv2 {
  background: #080e1a;
}

html.is-book-result .cover-selector-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: 100% !important;
  max-width: min(820px, 100%) !important;
}

html.is-book-result .cover-style-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: none !important;
}

/* ── Animations ── */
@keyframes lv2FadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes lv2Pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}
@keyframes lv2Spin {
  to { transform: rotate(360deg); }
}
@keyframes lv2ShimmerBg {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.lv2-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 20px 42px;
  text-align: center;
  background: linear-gradient(165deg, #0a0f1a, var(--lv-navy) 50%, #182848);
}
.lv2-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(212,168,83,.1), transparent 60%),
              radial-gradient(ellipse at 30% 80%, rgba(91,164,164,.06), transparent 50%);
  pointer-events: none;
}
.lv2-hero-content {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.lv2-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .9px;
  text-transform: uppercase;
}
.lv2-badge i {
  color: var(--lv-gold);
}
.lv2-hero h1 {
  font-family: var(--lv-font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  color: #fdf8ec;
  line-height: 1.08;
  margin-bottom: 12px;
  letter-spacing: 0;
  font-weight: 600;
}
.lv2-hero h1 .accent {
  color: var(--lv-gold);
  font-style: italic;
}

@media (min-width: 901px) {
  .lv2-hero h1 {
    font-size: clamp(2.28rem, 4.6vw, 3.28rem);
    line-height: 1.06;
    margin-bottom: 12px;
  }

  .lv2-hero h1 .accent {
    display: inline-block;
    font-size: 0.88em;
    letter-spacing: 0;
    transform: translateY(-0.02em);
  }
}

.lv2-hero p {
  color: rgba(255,255,255,.68);
  font-size: 14px;
  line-height: 1.58;
  margin-bottom: 16px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.lv2-hero p strong { color: rgba(255,255,255,.85); }
.lv2-hero-price {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,168,83,.15);
  border-radius: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 24px rgba(212,168,83,.06);
}
.lv2-price-amount {
  font-family: var(--lv-font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--lv-gold);
  line-height: 1;
}
.lv2-price-detail {
  font-size: 11.5px;
  color: rgba(255,255,255,.4);
  text-align: left;
  line-height: 1.45;
}
.lv2-price-detail strong {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 12px;
}
#heroPriceDetail {
  color: var(--lv-gold);
  font-weight: 600;
}
.lv2-hero-price-note {
  display: none;
}
.lv2-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--lv-gold), var(--lv-gold-light));
  color: var(--lv-navy);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(212,168,83,.32), 0 2px 6px rgba(212,168,83,.18);
  transition: var(--lv-transition);
  margin-top: 4px;
}
.lv2-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(212,168,83,.42), 0 3px 8px rgba(212,168,83,.22);
}
.lv2-hero-cta:focus-visible {
  outline: 3px solid var(--lv-gold-light);
  outline-offset: 4px;
}

/* ═══════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════ */
.lv2-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 16px 20px;
  background: var(--lv-surface);
  border-bottom: 1px solid var(--lv-border);
}
.lv2-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(26, 39, 68, 0.10);
  background: rgba(26, 39, 68, 0.03);
  font-size: 12px;
  font-weight: 600;
  color: var(--lv-navy);
  text-align: center;
}
.lv2-trust-item i { color: var(--lv-gold); font-size: 13px; }

/* ═══════════════════════════════════════
   CREATOR LAYOUT
   ═══════════════════════════════════════ */
.lv2-creator {
  padding: 40px 20px 60px;
  background: var(--lv-bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(212,168,83,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(26,39,68,.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(212,168,83,.03) 0%, transparent 40%);
}
.lv2-creator-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}
.lv2-stepper-col {
  min-width: 0;
}

/* ── Visual sidebar (right column) ── */
.lv2-visual-col {
  position: sticky;
  top: 120px;
  align-self: start;
  padding-top: 8px;
}
.lv2-visual-card {
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #1a2744 0%, #0f1829 100%);
  box-shadow:
    0 20px 60px rgba(26,39,68,.22),
    0 8px 24px rgba(0,0,0,.08),
    inset 0 1px 0 rgba(255,255,255,.04);
  border: 1.5px solid rgba(212,168,83,.15);
  animation: lv2VisualFade .5s ease;
}
.lv2-visual-card.is-banner {
  background: linear-gradient(180deg, #f7f1e7 0%, #efe5d7 100%);
  border-color: rgba(212,168,83,.22);
}
@keyframes lv2VisualFade {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.lv2-visual-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 6s ease;
}
.lv2-visual-card.is-banner .lv2-visual-img {
  height: auto;
  object-fit: contain;
  object-position: center top;
  background: #f7f1e7;
}
/* Per-step image positioning */
[data-visual="1"] .lv2-visual-img { object-position: center 15%; }
[data-visual="2"] .lv2-visual-img { object-position: center 25%; }
[data-visual="3"] .lv2-visual-img { object-position: center 30%; }
[data-visual="4"] .lv2-visual-img { object-position: center 25%; }
[data-visual="5"] .lv2-visual-img { object-position: center 20%; }
.lv2-visual-card.is-banner[data-visual="1"] .lv2-visual-img,
.lv2-visual-card.is-banner[data-visual="5"] .lv2-visual-img { object-position: center top; }
.lv2-visual-card:hover .lv2-visual-img {
  transform: scale(1.03);
}
.lv2-visual-card.is-banner:hover .lv2-visual-img {
  transform: none;
}
.lv2-visual-caption {
  padding: 18px 22px 22px;
  border-top: 1px solid rgba(212,168,83,.1);
}
.lv2-visual-card.is-banner .lv2-visual-caption[hidden] {
  display: none !important;
}
.lv2-visual-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--lv-gold);
  background: rgba(212,168,83,.1);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.lv2-visual-tag i {
  font-size: 9px;
}
.lv2-visual-caption h3 {
  color: #fff;
  font-family: var(--lv-font-display, Georgia, 'Times New Roman', serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
}
.lv2-visual-caption p {
  color: rgba(255,255,255,.65);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

/* Responsive: collapse to single column */
@media (max-width: 900px) {
  .lv2-creator-layout {
    grid-template-columns: 1fr;
    max-width: 780px;
    gap: 0;
  }
  .lv2-visual-col {
    display: none;
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .lv2-creator-layout {
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }
  .lv2-visual-img {
    height: 340px;
  }
  .lv2-visual-caption h3 {
    font-size: 16px;
  }
  .lv2-visual-caption p {
    font-size: 12px;
  }
}

/* ── Progress bar (enhanced) ── */
.lv2-progress-wrap {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(26, 39, 68, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #fbf9f4 100%);
  box-shadow: 0 8px 24px rgba(26, 39, 68, 0.05);
}
.lv2-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.lv2-progress-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--lv-navy);
  display: flex;
  align-items: center;
  gap: 6px;
}
.lv2-progress-label i {
  color: var(--lv-gold);
  font-size: 11px;
}
.lv2-progress-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--lv-navy);
  font-variant-numeric: tabular-nums;
}
.lv2-progress {
  height: 8px;
  background: linear-gradient(180deg, rgba(26,39,68,.08) 0%, rgba(26,39,68,.12) 100%);
  border-radius: 6px;
  margin-bottom: 0;
  overflow: hidden;
  position: relative;
}
.lv2-progress-bar {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, var(--lv-gold), var(--lv-gold-light));
  border-radius: 6px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.lv2-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.4) 50%,
    transparent 100%
  );
  animation: lv2ProgressShimmer 2s ease-in-out infinite;
}
@keyframes lv2ProgressShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── Step dots nav ── */
.lv2-steps-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.lv2-step-dot {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 9px 15px;
  border: 1.5px solid var(--lv-border);
  border-radius: 12px;
  background: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 600;
  color: var(--lv-muted);
  cursor: pointer;
  transition: var(--lv-transition);
  font-family: inherit;
  box-shadow: 0 10px 24px rgba(26,39,68,.05);
}
.lv2-step-dot:hover:not(.active):not(.done) {
  border-color: var(--lv-gold-100);
  color: var(--lv-navy);
  background: #fffdf8;
}
.lv2-step-dot.available {
  border-color: rgba(212,168,83,.45);
  color: var(--lv-navy);
  background: #fffaf0;
}
.lv2-step-dot.available .dot-num {
  background: rgba(212,168,83,.18);
  color: var(--lv-navy);
}
.lv2-step-dot.locked {
  cursor: default;
  opacity: .62;
}
.lv2-step-dot .dot-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--lv-border);
  color: var(--lv-muted);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: var(--lv-transition);
}
.lv2-step-dot .dot-label { display: none; }
@media (min-width: 600px) {
  .lv2-step-dot .dot-label { display: inline; }
}
.lv2-step-dot.active {
  border-color: var(--lv-gold);
  color: var(--lv-navy);
  box-shadow: var(--lv-shadow-gold);
  background: linear-gradient(180deg, #fffdf8 0%, #fff6df 100%);
  transform: translateY(-1px);
}
.lv2-step-dot.active .dot-num {
  background: linear-gradient(135deg, var(--lv-gold), var(--lv-gold-light));
  color: var(--lv-navy);
}
.lv2-step-dot.done {
  border-color: var(--lv-ok);
  color: var(--lv-ok);
}
.lv2-step-dot.done .dot-num {
  background: var(--lv-ok);
  color: #fff;
}

/* ═══════════════════════════════════════
   PANELS
   ═══════════════════════════════════════ */
.lv2-panel {
  display: none;
}
.lv2-panel.active {
  display: block;
  animation: lv2FadeUp .4s ease;
  background: linear-gradient(180deg, #fffefb 0%, #faf7f1 100%);
  border-radius: 20px;
  border: 1.5px solid rgba(212,168,83,.18);
  padding: 40px 36px 36px;
  box-shadow: 0 8px 40px rgba(26,39,68,.06), 0 2px 6px rgba(212,168,83,.10);
  position: relative;
  overflow: hidden;
}
/* Decorative light layer behind panels */
.lv2-panel.active::before,
.lv2-panel.active::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  opacity: .45;
}
.lv2-panel.active::before {
  width: 220px;
  height: 220px;
  top: -60px;
  right: -40px;
  background: radial-gradient(circle, rgba(212,168,83,.18) 0%, transparent 70%);
}
.lv2-panel.active::after {
  width: 180px;
  height: 180px;
  bottom: -40px;
  left: -30px;
  background: radial-gradient(circle, rgba(26,39,68,.08) 0%, transparent 70%);
}
.lv2-panel.active > * {
  position: relative;
  z-index: 1;
}
@media (max-width: 600px) {
  .lv2-panel.active { padding: 28px 18px 24px; }
}
.lv2-panel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.08), rgba(26, 39, 68, 0.04));
  border: 1px solid rgba(26, 39, 68, 0.10);
  color: var(--lv-navy);
  font-size: 1.55rem;
  line-height: 1;
}
.lv2-panel-title {
  font-family: var(--lv-font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--lv-navy);
  text-align: center;
  letter-spacing: 0;
  margin-bottom: 6px;
  font-weight: 600;
}
.lv2-panel-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--lv-gold), var(--lv-gold-light));
  border-radius: 2px;
  margin: 10px auto 0;
}
.lv2-panel-sub {
  text-align: center;
  color: var(--lv-muted);
  font-size: 13.5px;
  line-height: 1.65;
  max-width: 580px;
  margin: 14px auto 28px;
}

/* ── Mini-showcase (Step 1 motivation) ── */
.lv2-mini-showcase {
  margin: 6px auto 28px;
  text-align: center;
  position: relative;
}
.lv2-mini-showcase-strip {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 10px;
  perspective: 600px;
}
.lv2-mini-showcase-strip img {
  width: 68px;
  height: 96px;
  object-fit: cover;
  border-radius: 5px;
  border: 2.5px solid #fff;
  box-shadow: 0 6px 20px rgba(26,39,68,.12), 0 2px 6px rgba(212,168,83,.08);
  transition: transform .35s cubic-bezier(.25,.8,.25,1), margin .35s ease, box-shadow .35s ease;
}
.lv2-mini-showcase-strip img:nth-child(1) {
  transform: rotate(-8deg) translateY(6px);
  margin-right: -10px;
  z-index: 1;
}
.lv2-mini-showcase-strip img:nth-child(2) {
  transform: rotate(-4deg) translateY(0px);
  margin-right: -7px;
  z-index: 2;
}
.lv2-mini-showcase-strip img:nth-child(3) {
  transform: rotate(-1deg) translateY(-3px);
  margin-right: -5px;
  z-index: 3;
}
.lv2-mini-showcase-strip img:nth-child(4) {
  transform: rotate(1deg) translateY(-3px);
  margin-left: -5px;
  z-index: 3;
}
.lv2-mini-showcase-strip img:nth-child(5) {
  transform: rotate(4deg) translateY(0px);
  margin-left: -7px;
  z-index: 2;
}
.lv2-mini-showcase-strip img:nth-child(6) {
  transform: rotate(8deg) translateY(6px);
  margin-left: -10px;
  z-index: 1;
}
.lv2-mini-showcase-strip:hover img {
  transform: rotate(0) translateY(0) scale(1.03);
  margin: 0 3px;
  box-shadow: 0 8px 24px rgba(212,168,83,.16);
}
.lv2-mini-showcase-label {
  font-size: 12px;
  color: var(--lv-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  letter-spacing: .01em;
}
.lv2-mini-showcase-label i {
  font-size: 11px;
  color: var(--lv-gold);
}

/* ── Inspiration strip (Step 2 worlds) ── */
.lv2-inspiration-strip {
  display: flex;
  gap: 10px;
  margin: 8px 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 0;
  justify-content: center;
  flex-wrap: wrap;
}
.lv2-inspiration-strip::-webkit-scrollbar { display: none; }
.lv2-inspiration-strip img {
  width: 110px;
  height: 90px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 10px;
  border: 1.5px solid rgba(212,168,83,.18);
  box-shadow: 0 4px 14px rgba(26,39,68,.07);
  flex-shrink: 0;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.lv2-inspiration-strip img:hover {
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 8px 24px rgba(212,168,83,.18);
  border-color: var(--lv-gold);
}
@media (max-width: 600px) {
  .lv2-inspiration-strip {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 4px 0;
  }
  .lv2-inspiration-strip img {
    width: 100px;
    height: 75px;
  }
}

/* ── Fields ── */
.lv2-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 500px) {
  .lv2-field-grid { grid-template-columns: 1fr; }
}
.lv2-field { display: flex; flex-direction: column; gap: 4px; }
.lv2-field.full { grid-column: 1 / -1; }
.lv2-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--lv-navy);
  letter-spacing: .01em;
}
.lv2-optional { font-weight: 400; color: var(--lv-muted); }
.lv2-field input,
.lv2-field select {
  padding: 12px 16px;
  border: 1.5px solid var(--lv-border);
  border-radius: var(--lv-radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--lv-ink);
  transition: border-color var(--lv-transition), box-shadow var(--lv-transition);
}
.lv2-field input::placeholder {
  color: #b5ad9f;
  font-style: italic;
}
.lv2-field input:focus,
.lv2-field select:focus {
  outline: none;
  border-color: var(--lv-gold);
  box-shadow: 0 0 0 3px var(--lv-gold-50);
}
.lv2-field input.lv2-error,
.lv2-field select.lv2-error {
  border-color: var(--lv-err);
}

.lv2-step4-contact-wrap {
  overflow: hidden;
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height .32s ease, opacity .24s ease, transform .24s ease, margin .24s ease;
}
.lv2-step4-contact-wrap.is-email-only {
  max-height: 86px;
}
.lv2-step4-contact-wrap.is-email-only #shippingFields {
  grid-template-columns: 1fr;
}
.lv2-step4-contact-wrap.is-email-only .lv2-field.full {
  grid-column: 1 / -1;
}

.lv2-field-spotlight {
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(212,168,83,.22);
  background:
    linear-gradient(180deg, rgba(255,252,243,.96) 0%, rgba(255,248,227,.88) 100%),
    radial-gradient(circle at top right, rgba(212,168,83,.16), transparent 48%);
  box-shadow: 0 14px 34px rgba(212,168,83,.12);
}
.lv2-field-spotlight label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.45;
}
.lv2-field-spotlight label::before {
  content: 'Tenue';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(26,39,68,.08);
  color: var(--lv-navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lv2-field-spotlight select {
  min-height: 56px;
  padding-right: 42px;
  font-size: 15px;
  font-weight: 600;
  background: rgba(255,255,255,.96);
}
.lv2-field-help {
  display: block;
  margin-top: 2px;
  max-width: 62ch;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(26,39,68,.76);
}

/* ── Field spacing helpers ── */
.lv2-field-mt { margin-top: 14px; }
.lv2-field-mt-sm { margin-top: 8px; }

/* ── Advanced options toggle ── */
.lv2-advanced-toggle {
  margin-top: 20px;
  border: 1px solid var(--lv-border-light);
  border-radius: 12px;
  background: var(--lv-bg);
  overflow: hidden;
}
.lv2-advanced-toggle summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lv-muted);
  cursor: pointer;
  list-style: none;
  transition: color var(--lv-transition);
  -webkit-user-select: none;
  user-select: none;
}
.lv2-advanced-toggle summary::-webkit-details-marker { display: none; }
.lv2-advanced-toggle summary::after {
  content: '';
  margin-left: auto;
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23737373' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform var(--lv-transition);
}
.lv2-advanced-toggle[open] summary::after {
  transform: rotate(180deg);
}
.lv2-advanced-toggle summary:hover { color: var(--lv-navy); }
.lv2-advanced-toggle summary i { color: var(--lv-gold); font-size: 12px; }
.lv2-advanced-body {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Photo upload ── */
.lv2-photo-zone { margin-top: 20px; }
.lv2-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 24px;
  border: 2px dashed rgba(212,168,83,.3);
  border-radius: 16px;
  cursor: pointer;
  transition: var(--lv-transition);
  text-align: center;
  background: linear-gradient(180deg, rgba(212,168,83,.04) 0%, rgba(255,255,255,.6) 100%);
  -webkit-user-select: none;
  user-select: none;
}
.lv2-photo-placeholder:hover {
  border-color: var(--lv-gold);
  background: linear-gradient(180deg, rgba(212,168,83,.08) 0%, rgba(255,255,255,.8) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,168,83,.14);
}
.lv2-photo-placeholder i { font-size: 1.6rem; color: var(--lv-gold); }
.lv2-photo-placeholder span { font-size: 13.5px; font-weight: 600; color: var(--lv-navy); }
.lv2-photo-placeholder small { font-size: 11.5px; color: var(--lv-muted); }
.lv2-photo-preview {
  position: relative;
  display: inline-block;
}
.lv2-photo-preview img {
  width: 100px; height: 100px;
  object-fit: cover;
  border-radius: var(--lv-radius-sm);
  border: 2px solid var(--lv-gold);
}
.lv2-photo-remove {
  position: absolute; top: -8px; right: -8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--lv-err);
  color: #fff;
  border: none;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════
   THEME CARDS
   ═══════════════════════════════════════ */
.lv2-theme-sections { margin-bottom: 8px; }

/* Free theme banner - full width */
.lv2-theme-free-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fffefb 0%, #fbf7ef 100%);
  border: 1px solid rgba(212, 168, 83, 0.34);
  border-radius: 16px;
  cursor: pointer;
  transition: var(--lv-transition);
  box-shadow: 0 8px 22px rgba(26, 39, 68, 0.04);
}
.lv2-theme-free-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(26, 39, 68, 0.08);
}
.lv2-theme-free-banner.selected {
  background: linear-gradient(180deg, #fffaf0 0%, #f9f2e0 100%);
  border-color: var(--lv-gold);
  box-shadow: 0 16px 34px rgba(212, 168, 83, 0.16);
}
.lv2-theme-free-banner .tfb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(249,244,232,.98));
  border: 1px solid rgba(212, 168, 83, 0.22);
  font-size: 1.55rem;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.lv2-theme-free-banner .tfb-content {
  flex: 1;
}
.lv2-theme-free-banner .tfb-content h4 {
  font-family: var(--lv-font-display);
  font-size: 1.14rem;
  color: var(--lv-navy);
  line-height: 1.1;
  margin: 0 0 5px;
}
.lv2-theme-free-banner .tfb-content p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--lv-muted);
  margin: 0;
}
.lv2-theme-free-banner .tfb-arrow {
  color: var(--lv-gold);
  font-size: 1rem;
  opacity: 0.6;
  transition: var(--lv-transition);
}
.lv2-theme-free-banner:hover .tfb-arrow {
  opacity: 1;
  transform: translateX(4px);
}
.lv2-cat-label {
  font-family: var(--lv-font-display);
  font-size: 1.04rem;
  color: var(--lv-gold);
  margin: 24px 0 12px;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(212, 168, 83, 0.16);
}
.lv2-cat-label span {
  font-size: .8em;
  color: var(--lv-muted);
  font-family: var(--lv-font-body);
  font-weight: 500;
}
.lv2-themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  justify-items: stretch;
}
.lv2-theme-card {
  --theme-a: #efe6d5;
  --theme-b: #dccab0;
  position: relative;
  overflow: hidden;
  min-height: 146px;
  border: 1px solid rgba(26, 39, 68, 0.12);
  border-radius: 16px;
  padding: 14px 14px 13px;
  text-align: left;
  cursor: pointer;
  transition: var(--lv-transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(250,247,240,.96) 100%);
  box-shadow: 0 8px 20px rgba(26, 39, 68, 0.04);
}
.lv2-theme-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background:
    linear-gradient(135deg, var(--theme-a) 0%, var(--theme-b) 100%);
}
.lv2-theme-card::after {
  display: none;
}
.lv2-theme-card:hover {
  border-color: var(--lv-gold);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(26, 39, 68, 0.08);
}
.lv2-theme-card.selected {
  border-color: var(--lv-gold);
  background: linear-gradient(180deg, #fffdf8 0%, #faf4e8 100%);
  box-shadow: 0 16px 32px rgba(212, 168, 83, 0.16);
}
.lv2-theme-card > * { position: relative; z-index: 1; }
.lv2-theme-card .tc-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 1.45rem;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(26, 39, 68, 0.08);
  box-shadow: 0 6px 14px rgba(26, 39, 68, 0.05);
}
.lv2-theme-card h4 {
  font-family: var(--lv-font-display);
  font-size: .98rem;
  color: var(--lv-navy);
  margin: 0;
  line-height: 1.15;
  min-height: 2.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
}
.lv2-theme-card small {
  display: -webkit-box;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--lv-muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: auto;
}
.lv2-theme-free {
  border-color: var(--lv-gold);
  background: linear-gradient(135deg, #fffdf8, #faf6ef);
}

/* Public domain theme highlight */
.lv2-cat-highlight {
  color: var(--lv-gold) !important;
  font-size: 1.05rem;
}
.lv2-cat-highlight span { color: var(--lv-muted); font-weight: 400; }
.lv2-cat-desc {
  font-size: .82rem;
  color: var(--lv-muted);
  margin: -4px 0 14px;
  line-height: 1.55;
  max-width: 680px;
}
.lv2-theme-pd {
  border-color: rgba(212,168,83,.25);
  background: linear-gradient(135deg, #fffef9, #fdf9f0);
}
.lv2-theme-pd:hover {
  border-color: var(--lv-gold);
  background: linear-gradient(135deg, #fffdf6, #faf5e8);
}
.lv2-theme-card.lv2-theme-pd {
  --theme-a: #efe1bc;
  --theme-b: #dfc48a;
  --theme-accent: rgba(120, 74, 19, 0.16);
  --theme-ink: rgba(98, 62, 23, 0.12);
}

/* Theme visual directions */
.lv2-theme-card[data-theme="jungle"],
.lv2-theme-card[data-theme="arctic-expedition"],
.lv2-theme-card[data-theme="kindness-mission"] {
  --theme-a: #8dcf8e;
  --theme-b: #2f7d53;
  --theme-accent: rgba(240, 250, 207, 0.36);
  --theme-ink: rgba(20, 73, 48, 0.18);
}
.lv2-theme-card[data-theme="space-explorers"],
.lv2-theme-card[data-theme="cyber-city"],
.lv2-theme-card[data-theme="ai-uprising"] {
  --theme-a: #1a2454;
  --theme-b: #5b6dff;
  --theme-accent: rgba(128, 217, 255, 0.34);
  --theme-ink: rgba(111, 237, 255, 0.16);
}
.lv2-theme-card[data-theme="ocean-guardians"],
.lv2-theme-card[data-theme="pd-captain-nemo"] {
  --theme-a: #0a7488;
  --theme-b: #61c0c8;
  --theme-accent: rgba(214, 248, 255, 0.28);
  --theme-ink: rgba(6, 60, 81, 0.18);
}
.lv2-theme-card[data-theme="dragon-knights"],
.lv2-theme-card[data-theme="fantasy-rebellion"],
.lv2-theme-card[data-theme="pd-king-arthur"],
.lv2-theme-card[data-theme="mythic-war"] {
  --theme-a: #5b2f69;
  --theme-b: #d18c38;
  --theme-accent: rgba(255, 230, 160, 0.28);
  --theme-ink: rgba(56, 18, 69, 0.18);
}
.lv2-theme-card[data-theme="super-heroes"],
.lv2-theme-card[data-theme="arena-champions"],
.lv2-theme-card[data-theme="special-ops"] {
  --theme-a: #173f8f;
  --theme-b: #d23b3b;
  --theme-accent: rgba(255, 211, 125, 0.22);
  --theme-ink: rgba(17, 24, 74, 0.2);
}
.lv2-theme-card[data-theme="fairy-garden"],
.lv2-theme-card[data-theme="pd-alice"],
.lv2-theme-card[data-theme="pd-classic-tales"],
.lv2-theme-card[data-theme="love-letters"] {
  --theme-a: #f1c4df;
  --theme-b: #b48be7;
  --theme-accent: rgba(255, 255, 255, 0.28);
  --theme-ink: rgba(128, 74, 143, 0.14);
}
.lv2-theme-card[data-theme="dino-world"],
.lv2-theme-card[data-theme="pd-frankenstein"] {
  --theme-a: #5f8c42;
  --theme-b: #8c5e27;
  --theme-accent: rgba(246, 214, 155, 0.26);
  --theme-ink: rgba(69, 54, 22, 0.18);
}
.lv2-theme-card[data-theme="treasure-hunters"],
.lv2-theme-card[data-theme="pd-1001-nights"],
.lv2-theme-card[data-theme="pd-phileas-fogg"],
.lv2-theme-card[data-theme="silk-road"],
.lv2-theme-card[data-theme="travel-reboot"] {
  --theme-a: #e0a65b;
  --theme-b: #91552d;
  --theme-accent: rgba(255, 239, 190, 0.24);
  --theme-ink: rgba(105, 57, 24, 0.18);
}
.lv2-theme-card[data-theme="football-dream"],
.lv2-theme-card[data-theme="esport-league"] {
  --theme-a: #1a7f58;
  --theme-b: #0f2433;
  --theme-accent: rgba(212, 255, 233, 0.28);
  --theme-ink: rgba(14, 31, 34, 0.2);
}
.lv2-theme-card[data-theme="baking-adventure"],
.lv2-theme-card[data-theme="birthday-party"],
.lv2-theme-card[data-theme="cuisine-quest"] {
  --theme-a: #f3b58f;
  --theme-b: #d96f6f;
  --theme-accent: rgba(255, 244, 215, 0.22);
  --theme-ink: rgba(124, 65, 45, 0.14);
}
.lv2-theme-card[data-theme="tiny-inventors"],
.lv2-theme-card[data-theme="startup-sprint"] {
  --theme-a: #6f9cf6;
  --theme-b: #3e4d95;
  --theme-accent: rgba(255, 222, 122, 0.22);
  --theme-ink: rgba(37, 58, 112, 0.18);
}
.lv2-theme-card[data-theme="ninja-academy"],
.lv2-theme-card[data-theme="urban-combat"],
.lv2-theme-card[data-theme="espionage"],
.lv2-theme-card[data-theme="detective-noir"],
.lv2-theme-card[data-theme="pd-sherlock-holmes"] {
  --theme-a: #33404f;
  --theme-b: #0d1116;
  --theme-accent: rgba(227, 197, 141, 0.2);
  --theme-ink: rgba(255, 255, 255, 0.08);
}
.lv2-theme-card[data-theme="circus-magic"],
.lv2-theme-card[data-theme="carnival-fiesta"] {
  --theme-a: #ff7b7b;
  --theme-b: #ffb347;
  --theme-accent: rgba(255, 245, 210, 0.25);
  --theme-ink: rgba(133, 39, 39, 0.16);
}
.lv2-theme-card[data-theme="campus-mystery"],
.lv2-theme-card[data-theme="haunted-school"],
.lv2-theme-card[data-theme="pd-dracula"],
.lv2-theme-card[data-theme="political-thriller"],
.lv2-theme-card[data-theme="courtroom-drama"] {
  --theme-a: #43335f;
  --theme-b: #15151f;
  --theme-accent: rgba(182, 160, 236, 0.18);
  --theme-ink: rgba(255, 255, 255, 0.07);
}
.lv2-theme-card[data-theme="time-travelers"],
.lv2-theme-card[data-theme="pd-wizard-of-oz"],
.lv2-theme-card[data-theme="pd-odyssey"] {
  --theme-a: #4d6be8;
  --theme-b: #f0b24b;
  --theme-accent: rgba(255, 255, 255, 0.28);
  --theme-ink: rgba(57, 70, 126, 0.18);
}
.lv2-theme-card[data-theme="eco-activists"],
.lv2-theme-card[data-theme="wellness-reset"],
.lv2-theme-card[data-theme="ramadan-nights"],
.lv2-theme-card[data-theme="pilgrimage-journey"] {
  --theme-a: #4e8f78;
  --theme-b: #d2b47a;
  --theme-accent: rgba(246, 247, 217, 0.24);
  --theme-ink: rgba(53, 77, 58, 0.16);
}
.lv2-theme-card[data-theme="street-art-crew"],
.lv2-theme-card[data-theme="art-heist"] {
  --theme-a: #ef6f56;
  --theme-b: #503ad7;
  --theme-accent: rgba(255, 244, 189, 0.2);
  --theme-ink: rgba(61, 42, 147, 0.18);
}
.lv2-theme-card[data-theme="post-apo-quest"],
.lv2-theme-card[data-theme="zombie-survival"],
.lv2-theme-card[data-theme="pirate-war"] {
  --theme-a: #7d4a3b;
  --theme-b: #2b1f1b;
  --theme-accent: rgba(255, 188, 122, 0.16);
  --theme-ink: rgba(255, 255, 255, 0.08);
}
.lv2-theme-card[data-theme="christmas-magic"],
.lv2-theme-card[data-theme="hanukkah-light"],
.lv2-theme-card[data-theme="eid-celebration"],
.lv2-theme-card[data-theme="bible-heroes"] {
  --theme-a: #0f6c5c;
  --theme-b: #caa248;
  --theme-accent: rgba(255, 248, 216, 0.26);
  --theme-ink: rgba(37, 63, 52, 0.18);
}
.lv2-theme-card[data-theme="easter-hunt"],
.lv2-theme-card[data-theme="pd-peter-pan"],
.lv2-theme-card[data-theme="pd-rapunzel"] {
  --theme-a: #9ccf6a;
  --theme-b: #f5cf7f;
  --theme-accent: rgba(255, 255, 255, 0.24);
  --theme-ink: rgba(79, 111, 48, 0.16);
}
.lv2-theme-card[data-theme="chinese-newyear"],
.lv2-theme-card[data-theme="pd-three-musketeers"],
.lv2-theme-card[data-theme="pd-robin-hood"],
.lv2-theme-card[data-theme="historical-epic"] {
  --theme-a: #9d1f2f;
  --theme-b: #d4a853;
  --theme-accent: rgba(255, 231, 169, 0.18);
  --theme-ink: rgba(101, 20, 37, 0.18);
}
.lv2-theme-card[data-theme="love-journey"],
.lv2-theme-card[data-theme="family-legacy"],
.lv2-theme-card[data-theme="jazz-nights"],
.lv2-theme-card[data-theme="wine-odyssey"] {
  --theme-a: #7c405d;
  --theme-b: #d3a06f;
  --theme-accent: rgba(255, 236, 208, 0.2);
  --theme-ink: rgba(87, 41, 64, 0.18);
}
.lv2-theme-card[data-theme="pd-greek-mythology"],
.lv2-theme-card[data-theme="pd-norse-mythology"],
.lv2-theme-card[data-theme="pd-count-of-monte-cristo"] {
  --theme-a: #2a4875;
  --theme-b: #c89d47;
  --theme-accent: rgba(238, 227, 180, 0.24);
  --theme-ink: rgba(28, 50, 84, 0.18);
}

.lv2-theme-card[data-theme="halloween-fun"] {
  --theme-a: #f58c23;
  --theme-b: #1a0e2e;
  --theme-accent: rgba(255, 180, 60, 0.24);
  --theme-ink: rgba(26, 14, 46, 0.2);
}
.lv2-theme-card[data-theme="music-band"] {
  --theme-a: #e04e7a;
  --theme-b: #2a1848;
  --theme-accent: rgba(255, 180, 220, 0.22);
  --theme-ink: rgba(42, 24, 72, 0.18);
}
.lv2-theme-card[data-theme="career-pivot"] {
  --theme-a: #3a7bd5;
  --theme-b: #1b3a5c;
  --theme-accent: rgba(180, 220, 255, 0.22);
  --theme-ink: rgba(27, 58, 92, 0.18);
}
.lv2-theme-card[data-theme="pd-red-riding-hood"] {
  --theme-a: #c0392b;
  --theme-b: #2d572c;
  --theme-accent: rgba(255, 200, 180, 0.22);
  --theme-ink: rgba(45, 87, 44, 0.18);
}
.lv2-theme-card[data-theme="pd-three-little-pigs"] {
  --theme-a: #e8a87c;
  --theme-b: #7b5e3d;
  --theme-accent: rgba(255, 230, 190, 0.24);
  --theme-ink: rgba(123, 94, 61, 0.16);
}

/* Unified theme presentation for phase reprise */
.lv2-theme-free-banner {
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.025) 0%, rgba(26, 39, 68, 0.01) 100%);
  border: 1.5px solid rgba(26, 39, 68, 0.10);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(26, 39, 68, 0.04);
}
.lv2-theme-free-banner:hover {
  transform: translateY(-2px);
  border-color: var(--lv-gold);
  box-shadow: 0 8px 28px rgba(212, 168, 83, 0.14);
}
.lv2-theme-free-banner.selected {
  background: linear-gradient(135deg, rgba(212,168,83,.10) 0%, rgba(250,244,232,1) 100%);
  border-color: var(--lv-gold);
  box-shadow: 0 8px 28px rgba(212, 168, 83, 0.18);
}
.lv2-theme-free-banner .tfb-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212,168,83,.12) 0%, rgba(212,168,83,.06) 100%);
  border: 1px solid rgba(212, 168, 83, 0.2);
  font-size: 1.3rem;
  box-shadow: none;
}
.lv2-theme-free-banner .tfb-content h4 {
  font-size: 1.05rem;
}
.lv2-theme-free-banner .tfb-content p {
  font-size: 12.5px;
}
.lv2-themes-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.lv2-theme-card,
.lv2-theme-card.lv2-theme-pd {
  --theme-a: transparent;
  --theme-b: transparent;
  min-height: 122px;
  padding: 12px 12px 11px;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(26, 39, 68, 0.1);
  border-radius: 14px;
  box-shadow: none;
}
.lv2-theme-card::before {
  display: none;
}
.lv2-theme-card:hover,
.lv2-theme-card.lv2-theme-pd:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(212, 168, 83, 0.38);
  box-shadow: 0 10px 18px rgba(26, 39, 68, 0.06);
}
.lv2-theme-card.selected,
.lv2-theme-card.lv2-theme-pd.selected {
  background: #fff9ef;
  border-color: var(--lv-gold);
  box-shadow: 0 12px 22px rgba(212, 168, 83, 0.12);
}
.lv2-theme-card .tc-icon {
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 1.3rem;
  line-height: 1;
}
.lv2-theme-card h4 {
  min-height: 0;
  font-size: .92rem;
  line-height: 1.18;
  text-wrap: pretty;
}
.lv2-theme-card small {
  margin-top: auto;
  font-size: 10.8px;
  line-height: 1.35;
  min-height: 2.7em;
  color: #7b7469;
}
.lv2-cat-label {
  margin: 22px 0 10px;
}
.lv2-cat-desc {
  margin: -2px 0 10px;
  font-size: .78rem;
  color: #7f7b74;
}

/* Auto-advance flash animation */
@keyframes lv2CardFlash {
  0% { box-shadow: 0 0 0 0 rgba(212,168,83,.4); }
  50% { box-shadow: 0 0 0 8px rgba(212,168,83,.15); }
  100% { box-shadow: 0 0 0 0 rgba(212,168,83,0); }
}
.lv2-theme-card.lv2-auto-advance,
.lv2-style-card.lv2-auto-advance,
.lv2-tone-card.lv2-auto-advance {
  animation: lv2CardFlash .5s ease;
}

/* Copyright modal overlay */
.lv2-copyright-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.lv2-copyright-modal.active { opacity: 1; visibility: visible; }
.lv2-copyright-modal-inner {
  background: #fff; border-radius: 16px; padding: 28px 24px;
  max-width: 520px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  animation: lv2FadeUp .3s ease;
}
.lv2-copyright-modal-icon {
  font-size: 2rem; text-align: center; margin-bottom: 12px;
}
.lv2-copyright-modal-title {
  font-family: var(--lv-font-display);
  font-size: 1.3rem; color: var(--lv-navy);
  text-align: center; margin-bottom: 8px;
}
.lv2-copyright-modal-msg {
  font-size: .85rem; color: var(--lv-muted);
  text-align: center; line-height: 1.6; margin-bottom: 18px;
}
.lv2-copyright-alts {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px;
}
.lv2-copyright-alt {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 2px solid var(--lv-border);
  border-radius: var(--lv-radius-sm); cursor: pointer;
  transition: var(--lv-transition); background: #fff;
}
.lv2-copyright-alt:hover {
  border-color: var(--lv-gold); background: var(--lv-gold-50);
}
.lv2-copyright-alt-icon { font-size: 1.2rem; flex-shrink: 0; }
.lv2-copyright-alt-label {
  font-size: .85rem; color: var(--lv-ink); font-weight: 600;
}
.lv2-copyright-alt-type {
  font-size: .7rem; color: var(--lv-muted); text-transform: uppercase;
  letter-spacing: .5px; margin-top: 2px;
}
.lv2-copyright-legal {
  font-size: .72rem; color: var(--lv-muted);
  text-align: center; line-height: 1.5;
  border-top: 1px solid var(--lv-border-light);
  padding-top: 12px;
}
.lv2-copyright-close {
  display: block; margin: 12px auto 0; padding: 8px 20px;
  background: none; border: 1px solid var(--lv-border);
  border-radius: 8px; color: var(--lv-muted);
  font-size: .8rem; cursor: pointer;
}

/* Voice dictation button */
.lv2-voice-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 2px solid var(--lv-border);
  border-radius: 999px; background: #fff;
  font-size: .82rem; color: var(--lv-navy);
  font-weight: 600; cursor: pointer;
  transition: var(--lv-transition);
  margin-bottom: 12px;
}
.lv2-voice-btn i { color: var(--lv-gold); font-size: 1rem; }
.lv2-voice-btn:hover {
  border-color: var(--lv-gold); background: var(--lv-gold-50);
}
.lv2-voice-btn.recording {
  border-color: var(--lv-err); background: rgba(239,68,68,.06);
  color: var(--lv-err);
}
.lv2-voice-btn.recording i { color: var(--lv-err); animation: lv2Pulse 1s infinite; }
.lv2-voice-transcript {
  font-size: .82rem; color: var(--lv-muted);
  font-style: italic; margin: 4px 0 8px; min-height: 20px;
}
.lv2-voice-actions {
  display: flex; gap: 6px; margin-bottom: 8px;
}
.lv2-voice-actions button {
  padding: 4px 10px; border: 1px solid var(--lv-border);
  border-radius: 6px; font-size: .72rem; cursor: pointer;
  background: #fff; color: var(--lv-text);
}
.lv2-voice-actions .insert-btn {
  background: var(--lv-gold); color: #fff; border-color: var(--lv-gold);
}

/* Surprise button */
.lv2-surprise-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border: 2px solid rgba(212,168,83,.25);
  border-radius: var(--lv-radius);
  background: linear-gradient(180deg, rgba(212,168,83,.06) 0%, rgba(212,168,83,.02) 100%);
  color: var(--lv-navy);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--lv-transition);
}
.lv2-surprise-btn:hover {
  background: linear-gradient(180deg, rgba(212,168,83,.12) 0%, rgba(212,168,83,.05) 100%);
  border-color: var(--lv-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,168,83,.12);
}

/* ═══════════════════════════════════════
   STYLE REFERENCE BANNER
   ═══════════════════════════════════════ */
.style-ref-banner {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, rgba(212,168,83,.10), rgba(26,39,68,.07));
  border: 1px solid rgba(212,168,83,.22);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.style-ref-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--lv-gold, #D4A853);
  box-shadow: 0 2px 8px rgba(212,168,83,.2);
  flex-shrink: 0;
}
.style-ref-text {
  display: flex; flex-direction: column; gap: 2px;
}
.style-ref-text strong {
  font-size: 13px; color: var(--lv-navy, #1A2744);
  font-family: var(--lv-font-display);
  letter-spacing: .01em;
}
.style-ref-text span {
  font-size: 11.5px; color: var(--lv-muted, #737373);
  line-height: 1.45;
}
@media (max-width: 480px) {
  .style-ref-banner { padding: 10px 12px; gap: 10px; }
  .style-ref-photo { width: 44px; height: 44px; }
  .style-ref-text strong { font-size: 12px; }
  .style-ref-text span { font-size: 10px; }
}

/* ═══════════════════════════════════════
   STYLE CARDS
   ═══════════════════════════════════════ */
.lv2-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
  justify-items: stretch;
}
.lv2-style-showcase {
  display: block;
  margin-bottom: 0;
}
.lv2-style-group {
  margin-bottom: 18px;
}
.lv2-style-group.is-favorites {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,251,243,.92), rgba(248,242,231,.96));
  border: 1px solid rgba(212,168,83,.18);
  box-shadow: 0 10px 24px rgba(26,39,68,.05);
}
.lv2-style-group.is-dynamic {
  max-width: 680px;
  margin: 0 auto 18px;
  padding: 14px 16px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(248,244,237,.92));
  border: 1px solid rgba(26,39,68,.08);
}
.lv2-style-group.is-dynamic .lv2-style-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}
.lv2-style-group.is-character {
  max-width: 860px;
  margin: 0 auto 18px;
  padding: 14px 16px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(251,248,241,.92), rgba(245,239,229,.96));
  border: 1px solid rgba(26,39,68,.08);
}
.lv2-style-group.is-character .lv2-style-group-head {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.lv2-style-group.is-character .lv2-style-group-head p {
  max-width: 620px;
  text-align: center;
}
.lv2-style-group.is-character .lv2-style-grid {
  grid-template-columns: repeat(2, minmax(250px, 360px));
  gap: 18px;
  justify-content: center;
}
.lv2-style-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.lv2-style-group-head h3 {
  margin: 0;
  font-family: var(--lv-font-display);
  font-size: 1.02rem;
  color: var(--lv-navy);
}
.lv2-style-group-head p {
  margin: 0;
  font-size: 12px;
  color: var(--lv-muted);
  max-width: 420px;
  text-align: right;
}
.lv2-style-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,252,245,.96), rgba(247,242,233,.96));
  border: 1px solid rgba(212,168,83,.18);
  font-size: 12px;
  color: var(--lv-muted);
  line-height: 1.55;
}
.lv2-style-empty {
  padding: 16px;
  text-align: center;
  border: 1px dashed var(--lv-border);
  border-radius: 12px;
  color: var(--lv-muted);
  font-size: 13px;
}
/* ── Tone selector ── */
.lv2-tone-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--lv-border);
}
.lv2-tone-title {
  font-family: var(--lv-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lv-ink);
  margin: 0 0 4px;
}
.lv2-tone-sub {
  font-size: .85rem;
  color: var(--lv-muted);
  margin: 0 0 14px;
}
.lv2-tone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 480px) {
  .lv2-tone-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.lv2-tone-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  background: #fff;
  border: 1.5px solid var(--lv-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.lv2-tone-btn:hover {
  border-color: var(--lv-gold);
  background: rgba(212,168,83,.04);
}
.lv2-tone-btn.active {
  border-color: var(--lv-gold);
  background: linear-gradient(135deg, rgba(212,168,83,.08), rgba(212,168,83,.02));
  box-shadow: 0 0 0 2px rgba(212,168,83,.18);
}
.lv2-tone-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.lv2-tone-label {
  font-weight: 700;
  font-size: .85rem;
  color: var(--lv-ink);
}
.lv2-tone-desc {
  font-size: .72rem;
  color: var(--lv-muted);
  line-height: 1.3;
}
.lv2-style-card {
  background: linear-gradient(180deg, #fff 0%, #faf7f1 100%);
  border: 1.5px solid rgba(26, 39, 68, 0.10);
  border-radius: 14px;
  padding: 12px 12px 16px;
  text-align: left;
  cursor: pointer;
  transition: var(--lv-transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(26, 39, 68, 0.05);
  overflow: hidden;
}
.lv2-style-card:hover {
  border-color: var(--lv-gold);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(26, 39, 68, 0.08);
}
.lv2-style-card.selected {
  border-color: var(--lv-gold);
  background: linear-gradient(180deg, #fffdf8 0%, #faf4e8 100%);
  box-shadow: 0 16px 32px rgba(212, 168, 83, 0.16);
}
.lv2-style-card h4 {
  font-family: var(--lv-font-display);
  font-size: 1.04rem;
  color: var(--lv-navy);
  margin: 0;
  line-height: 1.12;
}
.lv2-style-card small {
  font-size: 12px;
  color: var(--lv-muted);
  line-height: 1.45;
  min-height: 52px;
}
.style-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.style-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(212,168,83,.12);
  color: #8e6f24;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
}
.style-badge.conditional { background: rgba(26,39,68,.08); color: var(--lv-navy); }
.style-badge.recommended { background: rgba(212,168,83,.18); color: #6d5214; }
.style-accent {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  width: 100%;
  min-height: auto;
  background: none;
  overflow: hidden;
  border-radius: 10px;
}
.style-emoji {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,249,238,.95), rgba(245,239,227,.98));
  border: 1px solid rgba(26,39,68,.08);
  box-shadow: none;
  font-size: 1.05rem;
}
.style-preview-img {
  width: 100%;
  height: 214px;
  object-fit: cover;
  object-position: center 12%;
  transform: scale(1.12);
  transform-origin: center 12%;
  border-radius: 8px;
  border: 1px solid rgba(26,39,68,.08);
}
.lv2-style-group.is-character .style-preview-img {
  height: 236px;
}
.lv2-style-group.is-character .sc-pixar .style-preview-img,
.lv2-style-group.is-character .sc-storybook .style-preview-img,
.lv2-style-group.is-character .sc-cartoon .style-preview-img,
.lv2-style-group.is-character .sc-toonluxe .style-preview-img,
.lv2-style-group.is-character .sc-pastel .style-preview-img,
.lv2-style-group.is-character .sc-gouache .style-preview-img,
.lv2-style-group.is-character .sc-crayon .style-preview-img,
.lv2-style-group.is-character .sc-watercolor .style-preview-img,
.lv2-style-group.is-character .sc-editorial .style-preview-img {
  object-position: center 10%;
  transform: scale(1.15);
  transform-origin: center 10%;
}
.lv2-style-group.is-character .sc-ligne .style-preview-img,
.lv2-style-group.is-character .sc-graphic .style-preview-img,
.lv2-style-group.is-character .sc-neomanga .style-preview-img,
.lv2-style-group.is-character .sc-anime .style-preview-img,
.lv2-style-group.is-character .sc-ukiyoe .style-preview-img {
  object-position: center 11%;
  transform: scale(1.13);
  transform-origin: center 11%;
}
.lv2-style-group.is-character .sc-comicpop {
  justify-content: center;
  background: linear-gradient(180deg, rgba(249,243,233,.98), rgba(239,229,208,.98));
}
.lv2-style-group.is-character .sc-comicpop .style-preview-img {
  object-position: center 14%;
  transform: scale(1.08);
  transform-origin: center 14%;
}
.lv2-style-group.is-character .sc-minimal .style-preview-img,
.lv2-style-group.is-character .sc-papercut .style-preview-img,
.lv2-style-group.is-character .sc-darkfantasy .style-preview-img,
.lv2-style-group.is-character .sc-inkwash .style-preview-img,
.lv2-style-group.is-character .sc-cinematic .style-preview-img {
  object-position: center 13%;
  transform: scale(1.1);
  transform-origin: center 13%;
}

@media (max-width: 720px) {
  .lv2-style-group.is-favorites {
    padding: 14px;
  }
  .lv2-style-group.is-dynamic {
    max-width: none;
    padding: 12px;
  }
  .lv2-style-group.is-dynamic .lv2-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lv2-style-group.is-character {
    max-width: none;
    padding: 14px;
  }
  .lv2-style-group.is-character .lv2-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
  .lv2-style-group-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .lv2-style-group-head p {
    text-align: left;
  }
  .lv2-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .style-preview-img {
    height: 176px;
  }
  .lv2-style-group.is-character .style-preview-img {
    height: 194px;
  }
}

/* ═══════════════════════════════════════
   TONE CARDS
   ═══════════════════════════════════════ */
.lv2-tone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.lv2-tone-card {
  background: var(--lv-surface);
  border: 2px solid var(--lv-border);
  border-radius: var(--lv-radius);
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--lv-transition);
}
.lv2-tone-card:hover {
  border-color: var(--lv-gold);
  transform: translateY(-2px);
}
.lv2-tone-card.selected {
  border-color: var(--lv-gold);
  background: linear-gradient(135deg, #fffdf8, #faf6ef);
  box-shadow: var(--lv-shadow-gold);
}
.lv2-tone-card i {
  font-size: 1.4rem;
  color: var(--lv-gold);
  display: block;
  margin-bottom: 8px;
}
.lv2-tone-card h4 {
  font-family: var(--lv-font-display);
  font-size: .95rem;
  color: var(--lv-navy);
  margin: 0 0 4px;
}
.lv2-tone-card small { font-size: 10px; color: var(--lv-muted); }

/* ═══════════════════════════════════════
   NAV BUTTONS
   ═══════════════════════════════════════ */
.lv2-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}
.lv2-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--lv-transition);
}
.lv2-btn.primary {
  background: linear-gradient(135deg, var(--lv-gold), var(--lv-gold-light));
  color: var(--lv-navy);
  box-shadow: var(--lv-shadow-gold);
}
.lv2-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,168,83,.35);
}
.lv2-btn.primary:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.lv2-btn.ghost {
  background: var(--lv-surface);
  border: 1.5px solid var(--lv-border);
  color: var(--lv-muted);
}
.lv2-btn.ghost:hover {
  border-color: var(--lv-navy);
  color: var(--lv-navy);
}
.lv2-btn-pay {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  font-size: 16px;
}

/* ── France note ── */
.lv2-france-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--lv-gold-50);
  border: 1px solid var(--lv-gold-100);
  border-radius: var(--lv-radius-sm);
  font-size: 12px;
  color: var(--lv-muted);
  line-height: 1.5;
}
.lv2-france-note i { color: var(--lv-gold); margin-top: 2px; }

/* ═══════════════════════════════════════
   RECAP (Step 6)
   ═══════════════════════════════════════ */
.lv2-recap {
  background: var(--lv-surface);
  border: 1.5px solid var(--lv-border);
  border-radius: var(--lv-radius);
  padding: 4px 20px 8px;
  margin-bottom: 16px;
  overflow: hidden;
}
.lv2-recap-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--lv-border-light);
  font-size: 14px;
}
.lv2-recap-row:last-child { border: none; padding-bottom: 4px; }
.lv2-recap-label { color: var(--lv-muted); font-weight: 500; flex-shrink: 0; }
.lv2-recap-val { color: var(--lv-navy); font-weight: 600; text-align: right; word-break: break-word; }

.lv2-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--lv-navy);
  border-radius: var(--lv-radius);
  margin-bottom: 12px;
}
.lv2-total-label { color: rgba(255,255,255,.7); font-size: 13px; font-weight: 600; }
.lv2-total-sub { display: block; color: rgba(255,255,255,.4); font-size: 11px; }
.lv2-total-price {
  font-family: var(--lv-font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--lv-gold);
}
.lv2-total-reassurance {
  margin: -2px 0 14px;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: var(--lv-muted);
}

.lv2-pay-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--lv-muted);
}
.lv2-pay-note i { color: var(--lv-ok); }

.lv2-offer-box {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fdfbf7 100%);
  box-shadow: 0 6px 20px rgba(26,39,68,.04);
}
.lv2-offer-head h3 {
  margin: 0 0 5px;
  font-family: var(--lv-font-display);
  font-size: .95rem;
  color: var(--lv-navy);
  letter-spacing: 0;
}
.lv2-offer-head p {
  margin: 0 0 14px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--lv-muted);
}
.lv2-offer-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.lv2-offer-mode-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.lv2-offer-options--quantity {
  grid-template-columns: minmax(0, 1.35fr) minmax(190px, .65fr);
  align-items: stretch;
}
.lv2-offer-quantity,
.lv2-offer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  background: #fff;
}
.lv2-offer-quantity-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.lv2-offer-quantity-copy strong {
  font-size: 13px;
  line-height: 1.35;
  color: var(--lv-navy);
}
.lv2-offer-quantity-copy small,
.lv2-offer-summary span {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--lv-muted);
}
#copiesCount {
  flex: 0 0 190px;
  max-width: 100%;
  border: 1px solid rgba(26,39,68,.14);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fbfaf7;
  color: var(--lv-navy);
  font-weight: 700;
}
.lv2-offer-summary {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: #fffbf2;
  border-color: rgba(212,168,83,.26);
}
.lv2-offer-options--quantity.is-disabled,
#printQuantityControls.is-disabled {
  opacity: .62;
}
#printQuantityControls.is-disabled {
  background: #fbfaf7;
}
#printQuantityControls.is-disabled .lv2-offer-quantity-copy small {
  color: #8d877b;
}
.lv2-offer-summary strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(212,168,83,.14);
  color: #8f6720;
  font-size: 12px;
  font-weight: 800;
}
.lv2-offer-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all .2s ease;
}
.lv2-offer-card:hover {
  border-color: rgba(212,168,83,.3);
  box-shadow: 0 4px 14px rgba(26,39,68,.05);
  transform: translateY(-1px);
}
.lv2-offer-card.is-selected {
  border-color: rgba(212,168,83,.5);
  background: #fffbf2;
  box-shadow: 0 6px 18px rgba(212,168,83,.1);
}
.lv2-offer-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.lv2-offer-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.lv2-offer-card-head strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--lv-navy);
  max-width: 220px;
}
.lv2-offer-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(212,168,83,.1);
  color: #8f6720;
  font-size: 12px;
  font-weight: 700;
}
.lv2-offer-card-sub {
  display: block;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--lv-muted);
}
.lv2-offer-help {
  margin: 8px 2px 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--lv-muted);
}

.lv2-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 8px;
  padding: 12px 16px;
  background: rgba(212,168,83,.06);
  border: 1px solid rgba(212,168,83,.18);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--lv-navy);
  cursor: pointer;
}
.lv2-consent-check input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--lv-gold);
  width: 16px;
  height: 16px;
}
.lv2-consent-check a {
  color: var(--lv-gold);
  text-decoration: underline;
}
.lv2-consent-check.shake {
  animation: consentShake .4s ease;
  border-color: #e74c3c;
}
@keyframes consentShake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.lv2-help-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  color: var(--lv-gold);
  font-size: 11px;
  vertical-align: middle;
  cursor: help;
}
.lv2-help-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: min(280px, 70vw);
  padding: 10px 12px;
  border-radius: 12px;
  background: #10203d;
  color: rgba(255,255,255,.92);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 16px 28px rgba(16,32,61,.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 10;
}
.lv2-help-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #10203d;
}
.lv2-help-tip:hover .lv2-help-bubble,
.lv2-help-tip:focus-within .lv2-help-bubble,
.lv2-help-tip:focus .lv2-help-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* TTS stub */
.lv2-tts-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1.5px solid var(--lv-border);
  border-radius: var(--lv-radius-sm);
  background: var(--lv-surface);
  color: var(--lv-navy);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--lv-transition);
}
.lv2-tts-btn:hover { border-color: var(--lv-gold); }

/* Final navigation (step 6) */
.lv2-nav-final {
  margin-top: 20px;
}

/* ── Extra characters ── */
.lv2-extra-chars {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--lv-border-light);
}
.lv2-section-label {
  font-family: var(--lv-font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--lv-navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lv2-section-label i { color: var(--lv-gold); font-size: 14px; }
.lv2-panel-sub-left { text-align: left; margin: 0 0 16px; max-width: none; }
.lv2-char-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--lv-bg);
  border: 1px solid var(--lv-border-light);
  border-radius: 14px;
  transition: border-color var(--lv-transition);
}
.lv2-char-row:hover { border-color: var(--lv-gold-100); }
.lv2-char-fields {
  flex: 1;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.lv2-char-main {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lv2-char-meta {
  display: grid;
  gap: 8px;
  grid-template-columns: 90px 1fr;
}
.lv2-char-fields input,
.lv2-char-fields select {
  padding: 9px 12px;
  border: 1.5px solid var(--lv-border);
  border-radius: var(--lv-radius-sm);
  font-size: 13px;
  font-family: inherit;
  min-width: 0;
  background: var(--lv-surface);
  color: var(--lv-navy);
  transition: border-color var(--lv-transition);
}
.lv2-char-fields input:focus,
.lv2-char-fields select:focus {
  outline: none;
  border-color: var(--lv-gold);
  box-shadow: 0 0 0 2px var(--lv-gold-50);
}
.lv2-char-photo-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px;
  border: 1.5px dashed var(--lv-border);
  border-radius: var(--lv-radius-sm);
  font-size: 12px; color: var(--lv-muted);
  cursor: pointer; transition: all .2s;
  white-space: nowrap;
  background: var(--lv-surface);
}
.lv2-char-photo-btn:hover { border-color: var(--lv-gold); color: var(--lv-gold); }
.lv2-char-photo-btn.has-photo { border-color: var(--lv-gold); color: var(--lv-gold); background: rgba(212,168,83,.06); }
.lv2-char-remove {
  background: none;
  border: none;
  color: var(--lv-err, #e74c3c);
  cursor: pointer;
  padding: 8px;
  font-size: 14px;
}
@media (max-width: 600px) {
  .lv2-char-row {
    flex-wrap: wrap;
  }
  .lv2-char-main,
  .lv2-char-meta {
    grid-template-columns: 1fr;
  }
}
.lv2-btn-sm { font-size: 12px; padding: 6px 14px; }

/* ── Custom story ── */
.lv2-custom-story {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--lv-gold-50, rgba(212,168,83,.2));
  border-radius: var(--lv-radius);
  background: linear-gradient(135deg, rgba(212,168,83,.04), rgba(212,168,83,.01));
  animation: slideDown .35s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); max-height: 0; }
  to   { opacity: 1; transform: translateY(0); max-height: 500px; }
}
.lv2-gift-box {
  margin-top: 18px;
  padding: 18px 16px;
  border: 1px solid rgba(212,168,83,.24);
  border-radius: var(--lv-radius);
  background: linear-gradient(135deg, rgba(212,168,83,.06), rgba(255,255,255,.92));
}
.lv2-char-counter {
  margin-top: 8px;
  text-align: right;
  font-size: 11px;
  color: var(--lv-muted);
}
.lv2-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--lv-border);
  border-radius: var(--lv-radius-sm);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.2s;
}
.lv2-textarea:focus {
  outline: none;
  border-color: var(--lv-gold);
  box-shadow: 0 0 0 3px rgba(212,168,83,0.12);
}

/* ── Theme highlight (Personnalisé) ── */
.lv2-theme-highlight {
  border: 2px solid var(--lv-gold) !important;
  background: linear-gradient(135deg, rgba(212,168,83,0.08), rgba(212,168,83,0.02)) !important;
  position: relative;
}
.lv2-theme-highlight::after {
  content: 'Recommandé';
  position: absolute;
  top: -8px;
  right: 12px;
  background: var(--lv-gold);
  color: var(--lv-navy);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ── Preview liseuse ── */
.lv2-preview-panel {
  margin-top: 16px;
  border: 1px solid var(--lv-border);
  border-radius: var(--lv-radius);
  overflow: hidden;
  background: var(--lv-surface);
}
.lv2-preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--lv-navy);
  color: var(--lv-gold);
  font-size: 12px;
  font-weight: 600;
}
.lv2-preview-header i { font-size: 14px; }
.lv2-preview-links {
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.lv2-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--lv-radius-sm);
  background: var(--lv-gold-50, rgba(212,168,83,0.1));
  border: 1px solid rgba(212,168,83,0.25);
  color: var(--lv-navy);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.lv2-preview-link:hover {
  background: rgba(212,168,83,0.2);
  border-color: var(--lv-gold);
}

/* Generate button */
.lv2-btn-generate {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  font-size: 16px;
  background: linear-gradient(135deg, var(--lv-gold), #c89942);
  color: var(--lv-navy);
  letter-spacing: .3px;
}
.lv2-btn-generate:hover {
  background: linear-gradient(135deg, #c89942, var(--lv-gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 168, 83, .3);
}

/* Generate status */
.lv2-generate-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  margin-top: 12px;
  background: var(--lv-gold-50);
  border-radius: var(--lv-radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--lv-navy);
  flex-wrap: wrap;
}
.lv2-generate-status small {
  width: 100%;
  text-align: center;
  font-weight: 400;
}
.lv2-spinner {
  width: 20px; height: 20px;
  border: 2.5px solid var(--lv-border);
  border-top-color: var(--lv-gold);
  border-radius: 50%;
  animation: lv2Spin .7s linear infinite;
}

/* ═══════════════════════════════════════
   SUMMARY PANEL (right sticky)
   ═══════════════════════════════════════ */
.lv2-summary {
  order: -1;
}
@media (min-width: 900px) {
  .lv2-summary {
    order: 0;
  }
  .lv2-summary-inner {
    position: sticky;
    top: 90px;
  }
}
.lv2-summary-inner {
  background: var(--lv-surface);
  border: 1.5px solid var(--lv-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(26, 39, 68, 0.07);
}

/* Cover preview */
.lv2-cover-preview {
  padding: 24px 20px 18px;
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, rgba(248,245,239,.9) 0%, rgba(255,255,255,.98) 100%);
}
.lv2-cover-mock {
  width: 176px;
  display: flex;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.12));
}
.lv2-cover-spine {
  width: 8px;
  background: linear-gradient(180deg, #0F1829, var(--lv-navy));
  border-radius: 3px 0 0 3px;
}
.lv2-cover-front {
  flex: 1;
  background: linear-gradient(160deg, var(--lv-navy), #0F1829);
  border-radius: 0 4px 4px 0;
  padding: 24px 15px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 214px;
  border: 1px solid rgba(212,168,83,.08);
}
.lv2-cover-badge {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lv-gold);
  margin-bottom: 12px;
  opacity: .7;
}
.lv2-cover-title {
  font-family: var(--lv-font-display);
  font-size: 1.12rem;
  color: var(--lv-gold);
  margin: 0 0 8px;
  line-height: 1.15;
  transition: var(--lv-transition);
}
.lv2-cover-divider {
  width: 30px;
  height: 1px;
  background: var(--lv-gold-200);
  margin-bottom: 8px;
}
.lv2-cover-hero {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  margin: 0 0 auto;
  transition: var(--lv-transition);
}
.lv2-cover-pages {
  font-size: 8px;
  color: rgba(255,255,255,.3);
  margin-top: 12px;
}

/* Summary details */
.lv2-summary-details {
  padding: 0 18px 2px;
}
.lv2-sum-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--lv-border-light);
  font-size: 12px;
}
.lv2-sum-row:last-child { border: none; }
.lv2-sum-label { color: var(--lv-muted); }
.lv2-sum-val { color: var(--lv-navy); font-weight: 600; text-align: right; max-width: 58%; line-height: 1.35; }
.lv2-sum-sep { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--lv-border); }

/* Summary price */
.lv2-summary-price {
  margin: 14px 16px 12px;
  padding: 16px 14px;
  background: linear-gradient(135deg, var(--lv-navy), #0F1829);
  border-radius: var(--lv-radius-sm);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.lv2-summary.is-final-step .lv2-summary-price {
  display: none;
}
.lv2-sp-label { display: block; font-size: 11px; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.lv2-sp-amount {
  display: block;
  font-family: var(--lv-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--lv-gold);
  letter-spacing: .01em;
}
#summaryPriceAmount {
  font-size: 1.12rem;
}
.lv2-sp-detail { display: block; font-size: 10px; color: rgba(255,255,255,.35); margin-top: 2px; }

/* Summary step indicator */
.lv2-summary-step {
  padding: 12px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--lv-muted);
  border-top: 1px solid var(--lv-border-light);
  background: rgba(245,242,237,.55);
}
.lv2-summary-step strong { color: var(--lv-gold); }

/* ═══════════════════════════════════════
   GUARANTEES
   ═══════════════════════════════════════ */
.lv2-guarantees {
  padding: 44px 20px 26px;
  background: linear-gradient(180deg, var(--lv-surface) 0%, #f0ece5 100%);
  position: relative;
}
.lv2-guarantees::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lv-gold), transparent);
  opacity: .4;
}
.lv2-guarantees-inner {
  max-width: 880px;
  margin: 0 auto;
}
.lv2-guarantees h2 {
  font-family: var(--lv-font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  color: var(--lv-navy);
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: 0;
}
/* Hero row — 2 main features side by side */
.lv2-guar-hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.lv2-guar-hero {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  padding: 18px 16px;
  transition: all .25s ease;
}
.lv2-guar-hero:hover {
  border-color: rgba(212, 168, 83, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}
.lv2-guar-hero i {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212,168,83,.1), rgba(212,168,83,.05));
  font-size: 1rem;
  color: var(--lv-gold);
  flex-shrink: 0;
}
.lv2-guar-hero strong {
  display: block;
  font-size: 13px;
  color: var(--lv-navy);
  margin-bottom: 3px;
}
.lv2-guar-hero span {
  font-size: 11.5px;
  color: var(--lv-muted);
  line-height: 1.5;
}

/* Compact grid — 6 items in 3 columns */
.lv2-guar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.lv2-guar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  transition: all .2s ease;
}
.lv2-guar-item:hover {
  border-color: rgba(212, 168, 83, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.lv2-guar-item i {
  font-size: .85rem;
  color: var(--lv-gold);
  flex-shrink: 0;
  opacity: .8;
}
.lv2-guar-item span {
  font-size: 12px;
  color: var(--lv-navy);
  font-weight: 500;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .lv2-guar-hero-row { grid-template-columns: 1fr; }
  .lv2-guar-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .lv2-guar-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.lv2-footer {
  padding: 18px 20px max(14px, env(safe-area-inset-bottom));
  background: var(--lv-navy);
  text-align: center;
}
.lv2-footer-inner {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.lv2-footer-contact {
  font-size: 11px;
  color: rgba(255,255,255,.3);
}
.lv2-footer a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
}
.lv2-footer a:hover { color: var(--lv-gold); }

/* ═══════════════════════════════════════
   BOOK RESULT (after generation redirect)
   ═══════════════════════════════════════ */
.lv2-book-result {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.lv2-book-result-inner {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px 60px;
  text-align: center;
  animation: brFadeUp .6s ease-out;
}
@keyframes brFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Progress bar (full-screen dark overlay) --- */
.lv2-br-progress-wrap {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(160deg, #0a0a1a 0%, #111130 40%, #0a0a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  overflow: hidden;
}
.lv2-br-progress-inner { max-width: 500px; width: 100%; position: relative; z-index: 1; }

/* Particles */
.lv2-br-particles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.lv2-br-particles span {
  position: absolute; width: 3px; height: 3px;
  background: rgba(212,168,83,.4); border-radius: 50%;
  animation: lv2Float 8s infinite ease-in-out;
}
@keyframes lv2Float {
  0%,100% { transform: translateY(0) scale(1); opacity: .3; }
  50% { transform: translateY(-80px) scale(1.5); opacity: .8; }
}

/* Logo with spinning rings */
.lv2-br-logo-wrap {
  position: relative; width: 120px; height: 120px; margin: 0 auto 30px;
}
.lv2-br-logo-ring {
  position: absolute; inset: -10px;
  border: 2px solid transparent; border-top-color: rgba(212,168,83,.6);
  border-radius: 50%; animation: lv2Spin 2.5s linear infinite;
}
.lv2-br-logo-ring-2 { inset: -20px; border-top-color: rgba(212,168,83,.3); animation-duration: 4s; animation-direction: reverse; }
.lv2-br-logo-ring-3 { inset: -30px; border-top-color: rgba(212,168,83,.15); animation-duration: 6s; }
@keyframes lv2Spin { to { transform: rotate(360deg); } }
.lv2-br-logo-img {
  width: 120px; height: 120px; border-radius: 50%; object-fit: contain;
  padding: 6px;
  background: #fffdf8;
  border: 1.5px solid rgba(212,168,83,.62);
  animation: lv2Pulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(212,168,83,.4));
  mix-blend-mode: normal;
}
@keyframes lv2Pulse {
  0%,100% { transform: scale(1); filter: drop-shadow(0 0 30px rgba(212,168,83,.4)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 50px rgba(212,168,83,.6)); }
}

/* Standard logo variant (same as homepage loader) */
.lv2-br-logo-standard {
  width: 100px; height: 100px;
}
.lv2-br-logo-standard .lv2-br-logo-img {
  width: 100px; height: 100px; border-radius: 50%;
  animation: lv2Pulse 3s ease-in-out infinite; mix-blend-mode: normal;
  filter: drop-shadow(0 0 20px rgba(26,42,68,.15));
  box-shadow: 0 4px 24px rgba(26,42,68,.12), 0 2px 8px rgba(0,0,0,.06);
  padding: 5px;
}

/* Fun phrase */
.lv2-br-fun-phrase {
  font-size: 1em; color: rgba(255,255,255,.7); min-height: 50px;
  transition: opacity .5s; font-style: italic; line-height: 1.5; margin-top: 20px;
}
.lv2-br-fun-emoji { font-size: 1.4em; display: block; margin-bottom: 6px; }

/* Leave / email button */
.lv2-br-leave-wrap {
  margin-top: 28px;
  animation: lv2FadeUp .6s ease both;
}
.lv2-br-leave-text {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  margin-bottom: 10px;
}
.lv2-br-leave-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
}
.lv2-br-leave-btn:hover {
  border-color: rgba(212,168,83,.35);
  background: rgba(212,168,83,.1);
  color: rgba(255,255,255,.9);
}
.lv2-br-leave-btn i {
  font-size: 14px;
  color: rgba(212,168,83,.7);
}
.lv2-br-title {
  font-family: var(--lv-font-display);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 8px;
}
.lv2-br-sub {
  color: rgba(255,255,255,.6);
  font-size: .92rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}
.lv2-br-bar-container {
  width: 100%; max-width: 400px; height: 6px;
  background: rgba(255,255,255,.12);
  border-radius: 3px; margin: 0 auto 8px;
  overflow: hidden;
}
.lv2-br-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--lv-gold), #e8c97d);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.lv2-br-bar-label {
  font-size: .82rem; color: rgba(255,255,255,.5);
  font-weight: 600;
}

/* --- Floating page images during generation --- */
.br-float-imgs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.br-float-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,.55), 0 0 0 2px rgba(212,168,83,.25);
  transform: translate(calc(-50% + var(--fx)), calc(-50% + var(--fy))) rotate(var(--frot));
  animation: floatOrbit var(--fdur) var(--fdelay) ease-in-out infinite alternate;
  opacity: 0;
  animation-fill-mode: both;
}
/* Placeholder shapes shown before real images arrive */
.br-float-placeholder {
  border-radius: 8px;
  opacity: 0;
  animation: floatOrbit var(--fdur) var(--fdelay) ease-in-out infinite alternate;
  animation-fill-mode: both;
}
@keyframes floatOrbit {
  0%   { opacity: 0; transform: translate(calc(-50% + var(--fx)), calc(-50% + var(--fy))) rotate(var(--frot)) scale(.7); }
  15%  { opacity: .55; }
  85%  { opacity: .55; }
  100% { opacity: .3; transform: translate(calc(-50% + var(--fx) * 1.12), calc(-50% + var(--fy) * 1.12)) rotate(calc(var(--frot) * -1)) scale(1.05); }
}

/* --- Showroom (dark background) --- */
.lv2-br-showroom {
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(170deg, #080e1a 0%, #0f1829 35%, #1A2744 70%, #0e1525 100%);
  background-size: 42px 42px, 42px 42px, 100% 100%;
  padding: clamp(28px, 4vw, 48px) 20px 56px;
  position: relative;
  overflow: hidden;
}
.lv2-br-showroom::before {
  display: none;
}
.lv2-br-showroom-inner {
  max-width: 900px; margin: 0 auto;
  position: relative;
}

/* --- 3D Book Simulation --- */
.lv2-br-preview-note {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 14px;
  padding: 10px 14px;
  border: 1px solid rgba(212,168,83,.20);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,.62);
  letter-spacing: 0;
}
.lv2-br-preview-note i { margin-right: 4px; }
.lv2-br-book3d-wrap {
  animation: brBookEntry 1.2s cubic-bezier(.23,1,.32,1) both;
}
@keyframes brBookEntry {
  from { opacity: 0; transform: translateY(40px) scale(.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.lv2-br-book3d {
  width: 304px; height: 392px;
  margin: 0 auto;
  perspective: 1400px;
  cursor: grab;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lv2-br-book3d:active { cursor: grabbing; }
.book3d {
  width: 264px; height: 352px;
  position: relative;
  transform-style: preserve-3d;
  margin: 18px auto 14px;
  transition: transform .8s cubic-bezier(.4,0,.2,1);
  transform: rotateY(-25deg) rotateX(5deg);
}
.book3d.view-front { transform: rotateY(0deg) rotateX(0deg); }
.book3d.view-angle { transform: rotateY(-25deg) rotateX(5deg); }
.book3d.view-back { transform: rotateY(180deg) rotateX(0deg); }
@keyframes bookSpin { from { transform: rotateY(0deg) rotateX(5deg); } to { transform: rotateY(360deg) rotateX(5deg); } }
.book3d.view-spin { animation: bookSpin 5s linear infinite; }
.book3d.dragging { transition: none; }

.book3d-front, .book3d-back, .book3d-spine, .book3d-page {
  position: absolute;
}
.book3d-front {
  width: 264px; height: 352px;
  background: #1A2744; border-radius: 2px 8px 8px 2px;
  background-size: cover; background-position: center;
  box-shadow: 6px 6px 30px rgba(0,0,0,.45), 3px 3px 12px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.05);
  z-index: 3;
  transform: translateZ(5px);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.book3d-exact-surface {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.book3d-exact-surface-front::after { display: none; }
.book3d-exact-surface-front { filter: none; }
.book3d-exact-frame-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent;
}
.cover-variant-view .book3d-front::after,
.cover-variant-view .book3d-back::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  pointer-events: none;
  z-index: 4;
}
.cover-variant-view .book3d-front::after {
  left: 5px;
  background: linear-gradient(90deg, rgba(31,23,16,.24) 0px, rgba(31,23,16,.24) 1px, rgba(31,23,16,.08) 2px, rgba(255,248,232,.05) 4px, rgba(255,248,232,.01) 6px, rgba(255,248,232,0) 8px);
}
.cover-variant-view .book3d-back::after {
  right: 5px;
  background: linear-gradient(270deg, rgba(31,23,16,.24) 0px, rgba(31,23,16,.24) 1px, rgba(31,23,16,.08) 2px, rgba(255,248,232,.05) 4px, rgba(255,248,232,.01) 6px, rgba(255,248,232,0) 8px);
}
.book3d-exact-frame {
  --book3d-preview-scale: .335;
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(786px);
  height: calc(1081px);
  border: 0;
  transform: translateX(-50%) scale(var(--book3d-preview-scale));
  transform-origin: top center;
  pointer-events: none;
  background: transparent;
}
.book3d-exact-frame-back {
  --book3d-preview-scale: .335;
}
/* Front cover overlay: title at TOP + child name at BOTTOM (matches PDF) */
.book3d-front-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,.08) 44%, rgba(0,0,0,.56) 100%);
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  z-index: 2;
}
.book3d-front-title {
  font-family: var(--lv-font-display);
  font-size: 15px; font-weight: 700;
  color: #fff; line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  text-align: center;
}
.book3d-front-child {
  font-family: var(--lv-font-body);
  font-size: 10px; font-weight: 600;
  color: var(--lv-gold-light);
  letter-spacing: .5px;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  text-align: center;
}

/* Back cover */
.book3d-back {
  width: 264px; height: 352px;
  background: var(--book3d-back-bg, linear-gradient(160deg, #0c1528 0%, #162040 40%, #1A2744 70%, #0e1830 100%));
  border-radius: 8px 2px 2px 8px;
  transform: rotateY(180deg) translateZ(5px);
  box-shadow: -4px 4px 24px rgba(0,0,0,.3);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.book3d-back::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, var(--book3d-back-radial, rgba(212,168,83,.06)) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.book3d-back-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 16px 14px 12px;
  gap: 3px;
  z-index: 1;
}
/* Brand title — matches PDF .cw-back .brand */
.book3d-back-brand {
  font-family: var(--lv-font-display);
  font-size: 10px; font-weight: 700;
  color: var(--lv-gold);
  letter-spacing: 1.1px;
  margin-bottom: 4px;
  max-width: 190px;
  line-height: 1.35;
}
/* Gold rule — matches PDF .cw-back .gold-rule */
.book3d-back-rule {
  width: 36px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--lv-gold), transparent);
  margin: 4px auto;
}
/* Summary — matches PDF .cw-back .summary */
.book3d-back-summary {
  font-family: var(--lv-font-display);
  font-size: 8.5px; line-height: 1.55;
  color: rgba(255,255,255,.82);
  font-style: italic;
  max-width: 200px;
  overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 5; line-clamp: 5; -webkit-box-orient: vertical;
  margin: 2px 0;
}
/* Page 1 image — matches PDF .cw-back .back-img */
.book3d-back-page1 {
  width: 150px; height: 100px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 3px;
  margin: 5px auto 0;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
  border: 1px solid rgba(212,168,83,.2);
  flex-shrink: 0;
}
/* Logo row — matches PDF .cw-back .logo + .foot */
.book3d-back-logo {
  display: flex; align-items: center; gap: 6px;
  margin-top: 4px;
}
.book3d-back-logo img {
  width: 24px; height: 24px; border-radius: 50%;
  padding: 2px;
  background: #fffdf8;
  border: 1px solid rgba(212,168,83,.65);
  opacity: .85;
}
.book3d-back-logo span {
  font-size: 8px; color: rgba(212,168,83,.7);
  font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase;
}
/* Footer text */
.book3d-back-foot {
  font-size: 7px;
  color: rgba(255,255,255,.35);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Spine */
.book3d-spine {
  --book3d-spine-logo-size: 9px;
  --book3d-spine-logo-halo-size: 12px;
  --book3d-spine-logo-offset: 12px;
  width: 10px; height: 352px;
  background:
    url('../assets/accueil-optimise/logo-icone-new-192.webp') center calc(100% - var(--book3d-spine-logo-offset)) / var(--book3d-spine-logo-size) var(--book3d-spine-logo-size) no-repeat,
    radial-gradient(circle at center calc(100% - var(--book3d-spine-logo-offset) + 1px), rgba(255,248,232,.95) 0, rgba(255,248,232,.95) 36%, rgba(255,248,232,.18) 60%, rgba(255,248,232,0) 74%) center calc(100% - var(--book3d-spine-logo-offset) + 1px) / var(--book3d-spine-logo-halo-size) var(--book3d-spine-logo-halo-size) no-repeat,
    linear-gradient(180deg, #e8c06a, #D4A853, #b8913a, #D4A853, #e8c06a);
  transform: rotateY(-90deg);
  left: -5px; top: 0;
  transform-origin: center center;
  display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-lr;
  font-family: var(--lv-font-display);
  font-size: 8px; color: #1A2744;
  letter-spacing: 1px; font-weight: 700;
  overflow: hidden; white-space: nowrap;
  box-shadow: 2px 0 8px rgba(0,0,0,.3), -2px 0 8px rgba(0,0,0,.3);
  text-shadow: 0 1px 0 rgba(255,255,255,.3);
}

/* Pages (thickness simulation) */
.book3d-page {
  width: 252px; height: 342px;
  border-radius: 1px 6px 6px 1px;
  background-size: cover; background-position: center;
  top: 5px; left: 6px;
}
.book3d-page1 { background: #fff; transform: translateZ(4px); z-index: 2; box-shadow: 1px 0 3px rgba(0,0,0,.08); }
.book3d-page2 { background: #faf7f2; transform: translateZ(2.5px); z-index: 1; box-shadow: 1px 0 2px rgba(0,0,0,.06); }
.book3d-page3 { background: #f5f0e8; transform: translateZ(0.5px); z-index: 0; }
.book3d-page4 { background: #efe9df; transform: translateZ(-2px); z-index: 0; }
.book3d-page::after { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 12px; background: linear-gradient(90deg, rgba(0,0,0,.06), transparent); pointer-events: none; }

/* Book shadow/reflection on dark floor */
.book3d::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 10%;
  width: 80%; height: 30px;
  background: radial-gradient(ellipse, rgba(212,168,83,.12), transparent 70%);
  filter: blur(10px);
  transform: translateZ(-20px);
}

/* Controls */
.lv2-br-book3d-controls {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap; margin-top: 16px;
}
.lv2-br-3d-btn {
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--lv-radius-sm);
  background: rgba(255,255,255,.06);
  font-size: .8rem; font-weight: 600;
  color: rgba(255,255,255,.5);
  cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.lv2-br-3d-btn:hover {
  border-color: rgba(212,168,83,.4);
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.1);
}

/* Help link in showroom */
.lv2-br-help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color .2s;
}
.lv2-br-help-link:hover {
  color: rgba(212,168,83,.8);
}
.lv2-br-3d-btn.active {
  background: rgba(212,168,83,.15);
  border-color: rgba(212,168,83,.5);
  color: var(--lv-gold-light);
}

/* ═══ Cover Selector ═══ */
.cover-selector {
  margin: 0 0 20px;
  text-align: center;
}
.cover-selector-header {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-bottom: 20px;
}
.cover-selector-step {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--lv-gold), #c89942);
  color: #1a1000; font-weight: 800; font-size: .8rem;
  font-family: 'Instrument Sans', -apple-system, sans-serif;
  box-shadow: 0 2px 12px rgba(212,168,83,.3);
}
.cover-selector-text { text-align: left; }
h3.cover-selector-title,
.cover-selector-title {
  font-family: 'Instrument Sans', -apple-system, sans-serif !important;
  font-size: .92rem !important; font-weight: 700; color: rgba(255,255,255,.9);
  margin: 0 0 2px; line-height: 1.3; font-style: normal;
}
.cover-selector-hint {
  font-family: 'Instrument Sans', -apple-system, sans-serif;
  font-size: .75rem; color: rgba(255,255,255,.45); margin: 0;
  letter-spacing: .2px; font-style: normal;
}
.cover-selector-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.cover-style-card {
  cursor: pointer; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05);
  transition: all .3s ease; flex: 1; max-width: 248px;
  position: relative;
}
.cover-style-card::after {
  content: 'Choisir'; position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(8px); opacity: 0;
  background: linear-gradient(135deg, var(--lv-gold), #c89942);
  color: #1a1000; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; letter-spacing: .5px;
  transition: all .3s ease; pointer-events: none;
  box-shadow: 0 4px 16px rgba(212,168,83,.3);
}
.cover-style-card:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.cover-style-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,168,83,.5);
  box-shadow: 0 8px 30px rgba(212,168,83,.18), 0 0 0 1px rgba(212,168,83,.15);
}
.cover-style-card.active {
  border-color: var(--lv-gold);
  box-shadow: 0 8px 30px rgba(212,168,83,.25), 0 0 0 1px var(--lv-gold);
}
.cover-style-card-img {
  display: block; width: 100%; aspect-ratio: 220/296;
  position: relative;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: rgba(0,0,0,.3);
  border-radius: 8px 8px 0 0;
}
.cover-preview-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(circle at top, rgba(212,168,83,.18), transparent 48%),
    linear-gradient(180deg, rgba(16,24,42,.96) 0%, rgba(26,39,68,.94) 100%);
  color: rgba(245,230,208,.88);
  text-align: center;
}
.cover-preview-empty span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212,168,83,.35);
  background: rgba(255,255,255,.05);
  font-family: 'Instrument Sans', -apple-system, sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.cover-preview-image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #efe7db;
}
.cover-preview-image-wrap::after { display: none; }
.cover-preview-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  transform: none;
  transform-origin: center center;
  filter: none;
}
.cover-preview-frame-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(16,24,42,.92), rgba(26,39,68,.82));
}
.cover-preview-frame-wrap::after {
  content: 'Aperçu en cours';
  position: absolute;
  inset: auto 12px 12px;
  z-index: 0;
  display: flex;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.68);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: 0;
}
.cover-preview-frame {
  --cover-preview-scale: .305;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: calc(100% / var(--cover-preview-scale));
  height: calc(100% / var(--cover-preview-scale));
  border: 0;
  transform: translateX(-50%) scale(var(--cover-preview-scale));
  transform-origin: top center;
  pointer-events: none;
  background: transparent;
}
.cover-style-card-label {
  display: block; font-size: .78rem; font-weight: 600;
  color: rgba(255,255,255,.78); padding: 10px 0 8px;
  text-align: center; letter-spacing: 0; text-transform: none;
}
.cover-template {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  pointer-events: none;
}
.cover-template-main,
.cover-template-foot {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cover-template-main {
  flex: 1;
}
.cover-template-foot {
  gap: 6px;
  margin-top: auto;
}
.cover-template-main--bandeau {
  justify-content: flex-start;
  padding-top: 0;
}
.cover-template-main--classique {
  justify-content: flex-start;
  padding-top: 2%;
}
.cover-template-main--medaillon {
  justify-content: flex-start;
  padding-top: 3%;
}
.cover-template-bandeau-svg {
  max-width: 100%;
}
.cover-template-bandeau-subtitle {
  max-width: 86%;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.cover-template-publisher,
.cover-template-footline {
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,.45);
}
.cover-template-classic-title,
.cover-template-medallion-title {
  max-width: 92%;
  word-break: break-word;
}
.cover-template-classic-title {
  text-wrap: balance;
  text-shadow: 0 2px 6px rgba(0,0,0,.95), 0 0 14px rgba(0,0,0,.82), 0 0 30px rgba(0,0,0,.60), 0 0 52px rgba(0,0,0,.42);
  -webkit-text-stroke: .72px rgba(6,10,18,.70);
  paint-order: stroke fill;
  text-rendering: geometricPrecision;
}
.cover-template-classic-subtitle,
.cover-template-medallion-subtitle {
  text-shadow: 0 1px 4px rgba(0,0,0,.34);
}
.cover-template.is-classique .cover-template-classic-subtitle,
.cover-template.is-classique .cover-template-publisher {
  text-shadow: 0 1px 3px rgba(0,0,0,.88), 0 0 9px rgba(0,0,0,.62), 0 0 18px rgba(0,0,0,.38);
  -webkit-text-stroke: .2px rgba(6,10,18,.48);
  paint-order: stroke fill;
}
.cover-template-medallion {
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
  position: relative;
}
.cover-template-medallion::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: .38;
  pointer-events: none;
}
.cover-template-medallion-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}
.cover-style-card-img .cover-template {
  padding: 4% 6% 8%;
}
.cover-style-card-img .cover-template-foot {
  gap: 2px;
}

/* ── Variant browser (View 2) ── */
.cover-variant-view {
  text-align: center;
  content-visibility: auto;
  contain-intrinsic-size: 460px;
}
.cover-variant-header {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-bottom: 14px;
}
.cover-variant-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 7px 18px; cursor: pointer;
  transition: all .2s; margin-bottom: 16px;
}
.cover-variant-back:hover { color: var(--lv-gold-light); border-color: rgba(212,168,83,.4); background: rgba(212,168,83,.08); }
.cover-variant-stage {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  position: relative;
  width: min(100%, 700px);
  margin: 0 auto;
  padding-inline: 2px;
}
.cover-variant-arrow {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(212,168,83,.35); background: rgba(26,39,68,.7);
  color: var(--lv-gold-light); font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; z-index: 2;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.cover-variant-arrow:hover {
  border-color: var(--lv-gold); color: #fff;
  background: rgba(212,168,83,.25);
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(212,168,83,.3);
}
.cover-variant-center {
  flex: 0 1 320px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cover-variant-view .lv2-br-book3d {
  width: 260px;
  height: 340px;
}
.cover-variant-view .book3d {
  width: 220px;
  height: 296px;
  margin: 0 auto 8px;
}
.cover-variant-view .book3d-front,
.cover-variant-view .book3d-back {
  width: 220px;
  height: 296px;
}
.cover-variant-view .book3d-spine {
  --book3d-spine-logo-size: 8px;
  --book3d-spine-logo-halo-size: 10px;
  --book3d-spine-logo-offset: 11px;
  width: 10px;
  height: 296px;
  left: -5px;
  font-size: 7px;
}
.cover-variant-view .book3d-page {
  width: 212px;
  height: 288px;
}
.cover-variant-info { margin: 0 0 2px; }
.cover-variant-label {
  font-size: .9rem; font-weight: 700; color: rgba(255,255,255,.85);
  margin-bottom: 6px;
}
.cover-variant-dots {
  display: flex; gap: 8px; justify-content: center;
}
.cover-variant-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.18); cursor: pointer; transition: all .25s;
  border: 1px solid rgba(255,255,255,.1);
}
.cover-variant-dot:hover { background: rgba(255,255,255,.35); }
.cover-variant-dot.active {
  background: var(--lv-gold); border-color: var(--lv-gold);
  transform: scale(1.35); box-shadow: 0 0 8px rgba(212,168,83,.4);
}

/* Help button next to Validate */
.lv2-br-help-btn {
  border: 2px solid #25D366 !important; color: #25D366 !important;
  background: transparent !important;
}
.lv2-br-help-btn:hover {
  background: rgba(37,211,102,.1) !important;
  box-shadow: 0 0 12px rgba(37,211,102,.2);
}
.lv2-br-help-btn .fab { font-size: 1.1em; }

/* --- Final note --- */
.lv2-br-final-note {
  font-size: .85rem; color: var(--lv-muted);
  margin: 12px 0; display: flex; align-items: center;
  justify-content: center; gap: 6px;
}
.lv2-br-final-note i { color: var(--lv-gold); }

/* --- Edit section --- */
.lv2-br-edit-section {
  margin: 28px 0; padding: 24px;
  background: var(--lv-bg); border: 1px solid var(--lv-border);
  border-radius: var(--lv-radius); text-align: left;
}
.lv2-br-edit-title {
  font-size: 1.1rem; color: var(--lv-ink); margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.lv2-br-edit-title i { color: var(--lv-gold); }
.lv2-br-edit-desc {
  font-size: .85rem; color: var(--lv-muted); margin-bottom: 14px;
}
.lv2-br-edit-counter {
  font-size: .82rem; color: var(--lv-muted); margin-bottom: 16px;
  padding: 8px 14px; background: var(--lv-gold-50);
  border-radius: var(--lv-radius-sm); display: inline-block;
}
.lv2-br-edit-counter strong { color: var(--lv-gold); }
.lv2-br-pages-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.lv2-br-page-card {
  background: #fff; border: 1px solid var(--lv-border);
  border-radius: var(--lv-radius-sm); overflow: hidden;
  transition: box-shadow .15s;
}
.lv2-br-page-card:hover { box-shadow: var(--lv-shadow-lg); }
.lv2-br-page-card-img {
  position: relative; aspect-ratio: 210/280; overflow: hidden;
}
.lv2-br-page-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.lv2-br-page-card-img .regen-btn {
  position: absolute; bottom: 8px; right: 8px;
  padding: 6px 12px; background: rgba(26,39,68,.85);
  color: #fff; border: none; border-radius: 6px;
  font-size: .75rem; font-weight: 600; cursor: pointer;
  opacity: 0; transition: opacity .15s;
  display: inline-flex; align-items: center; gap: 5px;
}
.lv2-br-page-card-img:hover .regen-btn { opacity: 1; }
.lv2-br-page-card-img .regen-btn:disabled {
  opacity: .6; cursor: not-allowed;
  background: rgba(100,100,100,.85);
}
.lv2-br-page-card-text {
  padding: 10px;
}
.lv2-br-page-card-text textarea {
  width: 100%; min-height: 60px; border: 1px solid var(--lv-border);
  border-radius: 6px; padding: 8px; font-size: .82rem;
  font-family: inherit; resize: vertical; line-height: 1.5;
}
.lv2-br-page-card-label {
  font-size: .72rem; color: var(--lv-muted); padding: 4px 10px 0;
  font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
}

/* --- Actions --- */
.lv2-br-actions {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin: 24px 0;
}
.lv2-br-actions .lv2-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; border-radius: var(--lv-radius);
  font-weight: 700; font-size: .95rem;
  text-decoration: none; transition: all .15s;
  cursor: pointer; border: none;
}
.lv2-br-actions .lv2-btn.gold,
.lv2-br-final-actions .lv2-btn.gold {
  background: linear-gradient(135deg, var(--lv-gold), #c89942);
  color: #1a1000; box-shadow: var(--lv-shadow-gold);
}
.lv2-br-actions .lv2-btn.gold:hover,
.lv2-br-final-actions .lv2-btn.gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,168,83,.35);
}
.lv2-br-actions .lv2-btn.gold-outline,
.lv2-br-final-actions .lv2-btn.gold-outline {
  background: transparent; color: var(--lv-gold);
  border: 2px solid var(--lv-gold-200);
}
.lv2-br-actions .lv2-btn.gold-outline:hover,
.lv2-br-final-actions .lv2-btn.gold-outline:hover {
  background: var(--lv-gold-50); border-color: var(--lv-gold);
}
.lv2-br-upgrade-box {
  max-width: 720px;
  margin: 18px auto 0;
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,252,243,.98) 0%, rgba(255,248,227,.92) 100%);
  border: 1px solid rgba(212,168,83,.22);
  box-shadow: 0 12px 28px rgba(212,168,83,.10);
}
.lv2-br-upgrade-title {
  font-family: var(--lv-font-display);
  font-size: 1.35rem;
  color: var(--lv-navy);
  text-align: center;
  margin-bottom: 16px;
}
.lv2-br-upgrade-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.lv2-br-upgrade-actions .lv2-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--lv-radius);
  font-weight: 700;
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
  border: none;
}
.lv2-br-final-actions .lv2-btn.gold-outline:hover {
  background: var(--lv-gold-50); border-color: var(--lv-gold);
}
.lv2-btn-lg { font-size: 1rem; padding: 16px 40px; }

/* --- Final section --- */
.lv2-br-final {
  padding: 40px 0; animation: brFadeUp .5s ease-out;
}
.lv2-br-final-badge {
  font-size: 3rem; color: #10b981; margin-bottom: 12px;
}
.lv2-br-final-title {
  font-family: var(--lv-font-display); font-size: 1.8rem;
  color: var(--lv-ink); margin-bottom: 8px;
}
.lv2-br-final-sub {
  color: var(--lv-muted); font-size: .92rem; margin-bottom: 24px;
}
.lv2-br-final-actions {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 28px;
}
.lv2-br-final-actions .lv2-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--lv-radius);
  font-weight: 700; font-size: .9rem;
  text-decoration: none; transition: all .15s; cursor: pointer; border: none;
}
.lv2-br-info {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 440px; margin: 0 auto;
}
.lv2-br-info-item {
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; color: var(--lv-muted); text-align: left;
}
.lv2-br-info-item i { color: var(--lv-gold); font-size: 1rem; flex-shrink: 0; }

@media (max-width: 600px) {
  .lv2-br-title { font-size: 1.4rem; }
  .lv2-br-showroom { padding: 28px 10px 50px; }
  .lv2-br-book3d { width: 208px; height: 292px; }
  .book3d { width: 184px; height: 246px; margin: 12px auto; }
  .book3d-front, .book3d-back { width: 184px; height: 246px; }
  .book3d-spine { --book3d-spine-logo-size: 7px; --book3d-spine-logo-halo-size: 9px; --book3d-spine-logo-offset: 10px; width: 8px; height: 246px; transform: rotateY(-90deg); left: -4px; }
  .book3d-page { width: 174px; height: 236px; }
  .book3d-front-title { font-size: 12px; }
  .book3d-front-child { font-size: 9px; }
  .book3d-front-logo img { width: 22px; height: 22px; }
  .lv2-br-pages-grid { grid-template-columns: 1fr; }
  .lv2-br-actions { flex-direction: column; gap: 10px; }
  .lv2-br-actions .lv2-btn { padding: 12px 20px; font-size: .85rem; width: 100%; }
  .lv2-br-upgrade-box { padding: 18px 14px 14px; }
  .lv2-br-upgrade-actions { flex-direction: column; }
  .lv2-br-upgrade-actions .lv2-btn { width: 100%; justify-content: center; }
  .lv2-br-showroom { padding: 24px 12px 40px; }
  .cover-selector-grid { gap: 8px; }
  .cover-style-card { max-width: 130px; }
  .cover-preview-frame { --cover-preview-scale: .225; }
  .cover-variant-stage { gap: 6px; padding-inline: 0; }
  .cover-variant-center { max-width: 216px; }
  .cover-variant-view .lv2-br-book3d { width: 200px; height: 266px; }
  .cover-variant-view .book3d { width: 180px; height: 242px; margin: 0 auto 4px; }
  .cover-variant-view .book3d-front,
  .cover-variant-view .book3d-back { width: 180px; height: 242px; }
  .cover-variant-view .book3d-spine { --book3d-spine-logo-size: 6px; --book3d-spine-logo-halo-size: 8px; --book3d-spine-logo-offset: 9px; width: 8px; height: 242px; left: -4px; font-size: 6px; }
  .cover-variant-view .book3d-page { width: 172px; height: 234px; }
  .cover-style-card-label { font-size: .68rem; }
  .cover-variant-arrow { width: 34px; height: 34px; font-size: .9rem; }
  .cover-variant-label { font-size: .8rem; }
}

/* ═══════════════════════════════════════
   MOBILE ADJUSTMENTS
   ═══════════════════════════════════════ */
@media (max-width: 430px) {
  .cover-style-card { max-width: 118px; }
  .cover-preview-frame { --cover-preview-scale: .208; }
}

@media (max-width: 390px) {
  .cover-style-card { max-width: 112px; }
  .cover-preview-frame { --cover-preview-scale: .195; }
  .cover-style-card-label { font-size: .64rem; }
}

@media (max-width: 360px) {
  .cover-style-card { max-width: 104px; }
  .cover-preview-frame { --cover-preview-scale: .182; }
  .cover-style-card-label { font-size: .62rem; }
}

@media (max-width: 899px) {
  .lv2-summary-inner {
    display: none;
  }
  /* Show a mini floating summary on mobile */
  .lv2-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--lv-surface);
    border-top: 1px solid var(--lv-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
    padding: 0;
  }
  .lv2-summary-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .lv2-cover-preview,
  .lv2-summary-details,
  .lv2-summary-step { display: none; }
  .lv2-summary-price {
    margin: 0;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
  }
  .lv2-sp-label { display: none; }
  .lv2-sp-amount { font-size: 1.2rem; }
  .lv2-sp-detail { display: none; }

  /* Keep a small safety reserve without creating a large white gap */
  .lv2-creator { padding-bottom: max(42px, calc(26px + env(safe-area-inset-bottom))); }
  .lv2-guarantees { padding-bottom: max(28px, calc(18px + env(safe-area-inset-bottom))); }
}

/* ── Title edit (showroom) ── */
.lv2-br-title-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  text-align: center;
}
.lv2-br-title-wrap {
  text-align: center;
}
.lv2-br-book-title {
  font-family: var(--lv-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.lv2-br-book-subtitle {
  margin: 8px 0 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(255,255,255,.78);
  font-style: italic;
}
.lv2-br-title-edit-btn {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--lv-gold);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all .2s;
}
.lv2-br-title-edit-btn:hover {
  background: rgba(212,168,83,.2);
  border-color: var(--lv-gold);
}
.lv2-br-title-edit-form {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lv2-br-title-input {
  flex: 1;
  max-width: 400px;
  padding: 8px 14px;
  border: 1px solid var(--lv-gold);
  border-radius: var(--lv-radius-sm);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: var(--lv-font-display);
  font-size: 1rem;
  font-weight: 600;
}
.lv2-br-title-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212,168,83,.25);
}
.lv2-br-title-edit-form .lv2-btn-sm {
  font-size: 12px;
  padding: 6px 14px;
}
.lv2-br-title-char-counter {
  width: 100%; text-align: center;
  font-size: 11px; color: rgba(255,255,255,.4);
  margin-top: 2px; font-family: 'Instrument Sans', sans-serif;
  transition: color .2s;
}
.lv2-br-title-char-counter.near-limit { color: rgba(255,200,80,.8); }
.lv2-br-title-char-counter.at-limit { color: rgba(255,100,80,.9); font-weight: 600; }
.lv2-br-title-latency {
  width: 100%;
  margin: 2px 0 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255,255,255,.52);
}

/* ═══════════════════════════════════════
   DESIGN AUDIT ENHANCEMENTS
   ═══════════════════════════════════════ */

/* ── Social Proof Bar ── */
@media (max-width: 460px) {
  .lv2-theme-free-banner {
    gap: 12px;
    padding: 16px;
  }
  .lv2-theme-free-banner .tfb-icon {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }
  .lv2-theme-card h4,
  .lv2-style-card h4 {
    font-size: .94rem;
  }
}

/* ── Mode Express Toggle ── */
.lv2-express-toggle {
  margin-top: 24px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #D4A853 0%, #c89942 100%);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--lv-transition);
}
.lv2-express-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,168,83,.3);
}
.lv2-express-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: #1a1000;
  font-weight: 600;
}
.lv2-express-check {
  width: 20px;
  height: 20px;
  accent-color: #1A2744;
  flex-shrink: 0;
}
.lv2-express-title {
  font-size: 15px;
}
.lv2-express-desc {
  font-size: 12px;
  font-weight: 400;
  opacity: .8;
  margin-top: 2px;
}

/* ── Field margin helpers ── */
.lv2-field-mt { margin-top: 16px; }
.lv2-field-mt-sm { margin-top: 8px; }

/* ── Back buttons — more visible ── */
.lv2-btn-back {
  border-color: var(--lv-navy) !important;
  color: var(--lv-navy) !important;
  font-weight: 600;
}
.lv2-btn-back:hover {
  background: var(--lv-navy) !important;
  color: #fff !important;
}

/* ── Slide Transitions for panels ── */
@keyframes lv2SlideLeft {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes lv2SlideRight {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
.lv2-panel.active.slide-next {
  animation: lv2SlideLeft .35s ease;
}
.lv2-panel.active.slide-prev {
  animation: lv2SlideRight .35s ease;
}

/* ── Theme category accordion ── */
.lv2-theme-accordion {
  border: 1.5px solid rgba(212, 168, 83, 0.18);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #fffefb 0%, #faf8f4 100%);
  transition: border-color .25s ease, box-shadow .25s ease;
  box-shadow: 0 2px 8px rgba(26,39,68,.03);
}
.lv2-theme-accordion:hover {
  border-color: rgba(212, 168, 83, 0.35);
  box-shadow: 0 4px 16px rgba(212,168,83,.08);
}
.lv2-theme-accordion.open {
  border-color: var(--lv-gold);
  background: linear-gradient(180deg, #fffdf8 0%, #f9f5ec 100%);
  box-shadow: 0 6px 24px rgba(212,168,83,.12);
}
.lv2-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(212,168,83,.03) 0%, transparent 100%);
  border: none;
  cursor: pointer;
  font-family: var(--lv-font-body);
  color: var(--lv-text);
  -webkit-user-select: none;
  user-select: none;
  transition: background .2s ease;
}
.lv2-accordion-header:hover {
  background: rgba(26, 39, 68, 0.04);
}
.lv2-acc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(26, 39, 68, 0.06);
  color: var(--lv-navy);
  font-size: 1rem;
  flex-shrink: 0;
}
.lv2-acc-title {
  flex: 1;
  text-align: left;
  font-family: var(--lv-font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--lv-navy);
}
.lv2-acc-title small {
  display: block;
  font-size: .75em;
  font-weight: 400;
  color: var(--lv-muted);
  font-family: var(--lv-font-body);
  margin-top: 2px;
}
.lv2-acc-chevron {
  font-size: 12px;
  color: var(--lv-muted);
  transition: transform .3s ease;
  flex-shrink: 0;
}
.lv2-theme-accordion.open .lv2-acc-chevron {
  transform: rotate(180deg);
}
.lv2-acc-highlight {
  background: rgba(212, 168, 83, 0.04);
}
.lv2-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 16px;
}
.lv2-theme-accordion.open .lv2-accordion-body {
  max-height: 2000px;
  padding: 4px 16px 16px;
}
.lv2-accordion-body .lv2-cat-desc {
  margin: 0 0 12px;
}

/* Style preview overlay handled in the main swatch section above */

/* Reprise finale: gabarit unique et stable pour les themes */
.lv2-themes-grid {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
.lv2-theme-card,
.lv2-theme-card.lv2-theme-pd {
  min-height: 120px;
  padding: 14px;
  gap: 8px;
  background: linear-gradient(180deg, #fff 0%, #fdfbf7 100%) !important;
  border: 1.5px solid rgba(212, 168, 83, 0.14) !important;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(26,39,68,.04) !important;
  transform: none;
}
.lv2-theme-card::before,
.lv2-theme-card::after {
  display: none !important;
}
.lv2-theme-card:hover,
.lv2-theme-card.lv2-theme-pd:hover {
  background: #fffdf8 !important;
  border-color: var(--lv-gold) !important;
  box-shadow: 0 8px 24px rgba(212, 168, 83, 0.12) !important;
  transform: translateY(-2px);
}
.lv2-theme-card.selected,
.lv2-theme-card.lv2-theme-pd.selected {
  background: linear-gradient(180deg, #fffbf0 0%, #faf3e2 100%) !important;
  border-color: var(--lv-gold) !important;
  box-shadow: 0 8px 28px rgba(212, 168, 83, 0.18) !important;
}
.lv2-theme-card > * {
  position: relative;
  z-index: 1;
}
.lv2-theme-card .tc-icon {
  width: auto !important;
  height: auto !important;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-size: 1.3rem;
  line-height: 1;
}
.lv2-theme-card h4 {
  min-height: 0 !important;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.18;
  text-wrap: pretty;
}
.lv2-theme-card small {
  display: block;
  min-height: 0 !important;
  margin-top: auto;
  font-size: 10.8px;
  line-height: 1.35;
  color: #7b7469;
}
.lv2-cat-label {
  margin: 22px 0 10px;
}
.lv2-cat-desc {
  margin: -2px 0 10px;
  font-size: 0.78rem;
  color: #7f7b74;
}

@media (max-width: 720px) {
  .lv2-themes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .lv2-theme-card,
  .lv2-theme-card.lv2-theme-pd {
    min-height: 116px;
    padding: 11px;
  }
  .lv2-offer-options {
    grid-template-columns: 1fr;
  }
  .lv2-offer-mode-row {
    grid-template-columns: 1fr;
  }
  .lv2-offer-options--quantity {
    grid-template-columns: 1fr;
  }
  .lv2-offer-quantity {
    align-items: stretch;
    flex-direction: column;
  }
  #copiesCount {
    flex-basis: auto;
    width: 100%;
  }
  .lv2-offer-box {
    padding: 18px 16px;
  }
}

@media (max-width: 460px) {
  .lv2-theme-card h4 {
    font-size: 0.88rem;
  }
  .lv2-theme-card small {
    font-size: 10.2px;
  }
  .lv2-help-bubble {
    left: auto;
    right: -8px;
    transform: translateY(4px);
    width: min(240px, 72vw);
  }
  .lv2-help-bubble::after {
    left: auto;
    right: 12px;
    transform: none;
  }
  .lv2-help-tip:hover .lv2-help-bubble,
  .lv2-help-tip:focus-within .lv2-help-bubble,
  .lv2-help-tip:focus .lv2-help-bubble {
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE PREMIUM — 2026-03-09
   Unified mobile-first responsive overrides.
   Breakpoints: 600px (phone), 480px (small phone),
   360px (tiny phone).
   ═══════════════════════════════════════════════ */

/* ── F1: Global foundations ── */
.lv2 img { max-width: 100%; }
.lv2-visual-img,
.style-preview-img,
.style-ref-photo { max-width: 100%; }
.lv2 { overflow-x: hidden; }
.lv2-creator { overflow-x: hidden; }

/* ── F2 & F5: Tablet & large phone (≤600px) ── */
@media (max-width: 600px) {
  .lv2-hero p {
    margin-bottom: 14px;
  }

  .lv2-hero-price-note {
    display: none;
  }

  .lv2-hero-price {
    margin-bottom: 14px;
  }

  /* Nav buttons: flex-wrap + full-width on small screens */
  .lv2-nav {
    flex-wrap: wrap;
    gap: 10px;
  }
  .lv2-nav .lv2-btn {
    padding: 12px 18px;
    font-size: 13px;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }
  .lv2-nav .lv2-btn.primary {
    order: -1;
    flex-basis: 100%;
  }

  /* Step dots: ensure touch targets ≥ 44px */
  .lv2-steps-nav {
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
  }
  .lv2-steps-nav::-webkit-scrollbar { display: none; }
  .lv2-step-dot {
    min-width: 44px;
    min-height: 44px;
    padding: 6px 8px;
    flex-shrink: 0;
  }

  /* Progress bar label: prevent wrap overflow */
  .lv2-progress-header {
    flex-wrap: wrap;
    gap: 4px;
  }
  .lv2-progress-label {
    font-size: 11px;
  }
  .lv2-progress-pct {
    font-size: 11px;
  }

  /* Social proof: hidden on phone to avoid duplicate messaging */
  /* Trust bar */
  .lv2-trust {
    gap: 6px 16px;
    padding: 12px 14px;
  }
  .lv2-trust-item {
    font-size: 11px;
  }

  /* Style grid: 2 columns on phone */
  .lv2-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .style-preview-img {
    height: 164px;
  }
  .lv2-style-group.is-character .style-preview-img {
    height: 180px;
  }
  .lv2-style-card {
    padding: 10px 10px 12px;
  }
  .lv2-style-card h4 {
    font-size: .92rem;
  }
  .lv2-style-card small {
    font-size: 10.8px;
    min-height: 44px;
  }

  /* Recap rows: wrap for long values */
  .lv2-recap-row {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .lv2-recap-val {
    text-align: left;
    flex-basis: 100%;
  }
  .lv2-recap {
    padding: 4px 14px 8px;
  }

  /* Total bar */
  .lv2-total-bar {
    padding: 14px 16px;
  }
  .lv2-total-price {
    font-size: 1.5rem;
  }

  /* Extra characters: stack fields */
  .lv2-char-row {
    flex-wrap: wrap;
  }
  .lv2-char-main {
    grid-template-columns: 1fr;
  }
  .lv2-char-meta {
    grid-template-columns: 1fr;
  }

  /* Textarea style (gift message) */
  .lv2-textarea {
    width: 100%;
    font-size: 14px;
    padding: 12px;
    border: 1.5px solid var(--lv-border);
    border-radius: var(--lv-radius-sm);
    font-family: inherit;
    resize: vertical;
  }

  /* Footer */
  .lv2-footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Consent checkbox: larger touch target */
  .lv2-consent-check {
    padding: 14px 16px;
    font-size: 12.5px;
    gap: 12px;
  }
  .lv2-consent-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }

  /* Generate button: full width */
  .lv2-btn-generate {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 15px;
  }

  /* Gift box section */
  .lv2-gift-box {
    margin-top: 20px;
  }
  .lv2-section-label {
    font-size: 14px;
    flex-wrap: wrap;
  }

  /* Book result showroom */
  .lv2-br-book3d-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .lv2-br-3d-btn {
    min-height: 44px;
    padding: 10px 14px;
  }

  .lv2-creator {
    padding: 28px 16px 56px;
  }

  .lv2-progress-wrap {
    margin-bottom: 16px;
    padding: 14px 16px;
  }

  .lv2-steps-nav {
    margin-top: 8px;
    margin-bottom: 20px;
    gap: 6px;
  }

  .lv2-panel-sub {
    margin: 12px auto 22px;
  }

  /* Pages grid in edit section */
  .lv2-br-pages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cover-selector {
    margin-bottom: 14px;
  }

  .cover-selector-header,
  .cover-variant-header {
    gap: 10px;
    margin-bottom: 14px;
  }

  .cover-selector-text {
    min-width: 0;
  }

  .cover-selector-title {
    font-size: .86rem !important;
  }

  .cover-selector-hint {
    font-size: .72rem;
    line-height: 1.4;
  }

  .cover-selector-grid {
    gap: 10px;
  }

  .cover-style-card {
    max-width: none;
  }

  .cover-style-card-label {
    padding: 8px 6px 6px;
    letter-spacing: .03em;
  }

  .cover-variant-stage {
    gap: 4px;
  }

  .cover-variant-center {
    flex-basis: 228px;
    max-width: 228px;
  }
}

/* ── F3 & F4: Small phone (≤480px) ── */
@media (max-width: 480px) {

  /* Hero section */
  .lv2-hero {
    padding: 72px 16px 34px;
  }
  .lv2-badge {
    margin-bottom: 12px;
    padding: 5px 14px;
    font-size: 10px;
  }
  .lv2-hero h1 {
    font-size: 1.98rem;
    line-height: 1.06;
    margin-bottom: 10px;
  }
  .lv2-hero p {
    font-size: 13.2px;
    line-height: 1.52;
    margin-bottom: 14px;
  }
  .lv2-hero-price {
    padding: 11px 16px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 12px;
  }
  .lv2-price-amount {
    font-size: 1.4rem;
  }
  .lv2-hero-cta {
    padding: 14px 24px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
    margin-top: 2px;
  }

  .lv2-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 14px;
    gap: 8px;
  }

  .lv2-trust-item {
    padding: 10px 12px;
    line-height: 1.35;
    white-space: normal;
  }

  .lv2-progress-wrap {
    margin-bottom: 14px;
  }

  .lv2-steps-nav {
    margin-bottom: 16px;
  }

  /* Panel padding tighter */
  .lv2-panel.active {
    padding: 24px 14px 20px;
    border-radius: 16px;
  }
  .lv2-panel-icon {
    width: 56px;
    height: 56px;
    font-size: 1.35rem;
    margin-bottom: 12px;
  }

  /* Style grid: still 2 cols but tighter */
  .lv2-style-grid {
    gap: 8px;
  }
  .style-preview-img {
    height: 150px;
  }
  .lv2-style-group.is-character .style-preview-img {
    height: 166px;
  }
  .lv2-style-card {
    padding: 6px 6px 10px;
    gap: 6px;
  }
  .lv2-style-card h4 {
    font-size: .84rem;
  }
  .style-badge {
    font-size: 9px;
    padding: 3px 7px;
  }

  /* Offer cards tighter */
  .lv2-offer-card {
    padding: 12px;
  }
  .lv2-offer-card-head strong {
    font-size: 12px;
  }

  /* Guarantees */
  .lv2-guar-hero {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .lv2-guar-hero i {
    margin: 0 auto;
  }
}

/* ═══════════════════════════════════════
   STICKY CTA MOBILE — wizard conversion
   Garde les boutons Suivant/Commander toujours visibles
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
  /* Compensate for fixed nav so content doesn't hide under it */
  .lv2-panel.active {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .lv2-panel.active .lv2-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    background: rgba(255, 254, 251, 0.94);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-top: 1px solid rgba(212, 168, 83, 0.20);
    box-shadow: 0 -6px 22px rgba(26, 39, 68, 0.10);
    z-index: 60;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
  }

  /* Inner buttons: full row, primary takes more space */
  .lv2-panel.active .lv2-nav .lv2-btn {
    flex: 1 1 auto;
    padding: 14px 18px;
    font-size: 14px;
    justify-content: center;
    min-width: 0;
  }
  .lv2-panel.active .lv2-nav .lv2-btn.primary {
    flex: 2 1 auto;
    order: 0;
  }
  .lv2-panel.active .lv2-nav .lv2-btn.ghost {
    flex: 1 1 auto;
  }
}

/* ── F3: Tiny phone (≤360px) ── */
@media (max-width: 360px) {

  /* Extreme small: single column style grid */
  .lv2-style-grid {
    grid-template-columns: 1fr;
  }
  .lv2-style-group.is-character .lv2-style-grid {
    grid-template-columns: 1fr;
  }
  .style-preview-img {
    height: 224px;
  }
  .lv2-style-group.is-character .style-preview-img {
    height: 224px;
  }

  /* Hero price: fully stacked */
  .lv2-hero-price {
    flex-direction: column;
    text-align: center;
    padding: 14px 16px;
  }
  .lv2-price-detail {
    text-align: center;
  }

  /* Nav buttons: full width stacked */
  .lv2-nav {
    flex-direction: column;
  }
  .lv2-nav .lv2-btn {
    width: 100%;
  }

  /* Step dots: smaller */
  .lv2-step-dot {
    min-width: 40px;
    padding: 4px 6px;
    font-size: 11px;
  }
  .lv2-step-dot .dot-num {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  /* Themes grid: tight but readable */
  .lv2-themes-grid {
    gap: 8px;
  }
  .lv2-theme-card,
  .lv2-theme-card.lv2-theme-pd {
    min-height: 100px;
    padding: 10px;
  }
}

/* ═══════════════════════════════════════════════
   CONVERSION OVERHAUL — 2026-05-11
   Reassurance band (entre hero et wizard)
   ═══════════════════════════════════════════════ */
.lv2-reassurance-band {
  padding: 16px 20px;
  background: linear-gradient(180deg, #fffefb 0%, #fbf6ec 100%);
  border-bottom: 1px solid rgba(212, 168, 83, 0.18);
}
.lv2-reassurance-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lv2-reass-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.lv2-reass-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #1A2744;
  font-weight: 500;
  white-space: nowrap;
}
.lv2-reass-meta-item i { color: #B8923F; font-size: 12px; }
.lv2-reass-meta-item strong { color: #1A2744; font-weight: 700; }
.lv2-reass-meta-divider {
  width: 1px;
  height: 16px;
  background: rgba(26, 39, 68, 0.16);
}

@media (max-width: 768px) {
  .lv2-reassurance-band {
    padding: 14px 16px;
  }
  .lv2-reassurance-inner {
    max-width: 100%;
  }
  .lv2-reass-meta {
    justify-content: center;
    gap: 10px;
  }
  .lv2-reass-meta-divider {
    display: none;
  }
  .lv2-reass-meta-item {
    font-size: 11.6px;
  }
}

/* V3 premium direction - local draft */
body[data-bouya-page="creator"] {
  background: #f6f1e8;
}

body[data-bouya-page="creator"] .lv2,
body[data-bouya-page="creator"] .lv2 * {
  letter-spacing: 0;
}

body[data-bouya-page="creator"] .lv2 {
  background:
    linear-gradient(rgba(26,39,68,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,39,68,.035) 1px, transparent 1px),
    linear-gradient(180deg, #f8f3ea 0%, #f4efe7 48%, #fbfaf6 100%);
  background-size: 36px 36px, 36px 36px, auto;
}

body[data-bouya-page="creator"] .header {
  background: rgba(255, 252, 246, 0.92);
  border-bottom-color: rgba(26,39,68,.10);
  box-shadow: 0 14px 34px rgba(16, 24, 39, 0.10);
}

body[data-bouya-page="creator"] .lv2-hero {
  min-height: 650px;
  display: flex;
  align-items: center;
  padding: 118px 24px 58px;
  text-align: left;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(145deg, #101827 0%, #1a2744 54%, #274052 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

body[data-bouya-page="creator"] .lv2-hero-bg {
  background:
    linear-gradient(120deg, rgba(212,168,83,.12), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 48%);
}

body[data-bouya-page="creator"] .lv2-hero-content {
  width: min(1180px, 100%);
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, .88fr);
  gap: 56px;
  align-items: center;
}

body[data-bouya-page="creator"] .lv2-hero-copy {
  max-width: 590px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 520px;
}

body[data-bouya-page="creator"] .lv2-badge {
  margin-bottom: 22px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.82);
  text-transform: none;
  font-size: 12px;
}

body[data-bouya-page="creator"] .lv2-hero h1 {
  margin: 0 0 24px;
  color: #fff9ec;
  font-size: clamp(3.14rem, 4.5vw, 3.54rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.015em;
}

body[data-bouya-page="creator"] .lv2-hero-title-line {
  display: block;
  white-space: nowrap;
}

body[data-bouya-page="creator"] .lv2-hero h1 .accent {
  color: #e5c16b;
}

body[data-bouya-page="creator"] .lv2-hero p {
  margin: 0 0 24px;
  max-width: 560px;
  color: rgba(255,255,255,.72);
  font-size: 16.8px;
  line-height: 1.7;
}

body[data-bouya-page="creator"] .lv2-hero-price {
  margin: 0 0 16px;
  padding: 14px 18px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  border-radius: 12px;
  box-shadow: none;
}

body[data-bouya-page="creator"] .lv2-price-amount {
  color: #f0cd78;
  font-size: 2rem;
}

body[data-bouya-page="creator"] .lv2-hero-price-note {
  display: block;
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,.62);
}

body[data-bouya-page="creator"] .lv2-hero-digital-entry {
  margin: -4px 0 18px;
  max-width: 440px;
  color: rgba(255,255,255,.68);
  font-size: 13px;
  line-height: 1.55;
}

body[data-bouya-page="creator"] .lv2-hero-digital-entry i {
  color: #f0cd78;
  margin-right: 6px;
}

body[data-bouya-page="creator"] .lv2-hero-digital-entry a {
  color: #fff6d9;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(240,205,120,.5);
}

body[data-bouya-page="creator"] .lv2-hero-digital-entry a:hover {
  color: #f0cd78;
  border-bottom-color: #f0cd78;
}

body[data-bouya-page="creator"] .lv2-hero-cta,
body[data-bouya-page="creator"] .lv2-btn.primary,
body[data-bouya-page="creator"] .lv2-btn-generate {
  border-radius: 10px;
  background: #f0c66f;
  color: #152038;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  margin-top: auto;
  align-self: flex-start;
}

body[data-bouya-page="creator"] .lv2-hero-cta:hover,
body[data-bouya-page="creator"] .lv2-btn.primary:hover,
body[data-bouya-page="creator"] .lv2-btn-generate:hover {
  background: #ffd987;
  transform: translateY(-1px);
}

body[data-bouya-page="creator"] .lv2-hero-showcase {
  position: relative;
  min-height: 430px;
}

body[data-bouya-page="creator"] .lv2-hero-showcase::before {
  content: '';
  position: absolute;
  inset: 42px 12px 10px 58px;
  border: 1px solid rgba(255,255,255,.18);
  background:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  border-radius: 18px;
}

body[data-bouya-page="creator"] .lv2-hero-shot {
  position: absolute;
  display: block;
  width: 64%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}

body[data-bouya-page="creator"] .lv2-hero-shot-main {
  right: 0;
  top: 58px;
  width: 76%;
  z-index: 2;
}

body[data-bouya-page="creator"] .lv2-hero-shot-top {
  left: 0;
  top: 0;
  width: 44%;
  z-index: 3;
}

body[data-bouya-page="creator"] .lv2-hero-shot-bottom {
  left: 34px;
  bottom: 0;
  width: 50%;
  z-index: 4;
}

body[data-bouya-page="creator"] .lv2-trust {
  justify-content: center;
  padding: 12px 20px;
  background: #fffaf0;
  border-bottom-color: rgba(26,39,68,.08);
}

body[data-bouya-page="creator"] .lv2-trust-item {
  padding: 8px 10px;
  background: transparent;
  border: none;
  color: #34405a;
  font-size: 12px;
}

body[data-bouya-page="creator"] .lv2-reassurance-band {
  padding: 12px 20px;
  background: rgba(255,250,240,.82);
  border-bottom-color: rgba(26,39,68,.08);
}

body[data-bouya-page="creator"] .lv2-reass-meta-item {
  color: #34405a;
}

body[data-bouya-page="creator"] .lv2-creator {
  padding: 52px 24px 72px;
  background: transparent;
  background-image: none;
}

body[data-bouya-page="creator"] .lv2-creator-layout {
  gap: 28px;
}

body[data-bouya-page="creator"] .lv2-progress-wrap,
body[data-bouya-page="creator"] .lv2-panel.active,
body[data-bouya-page="creator"] .lv2-offer-box,
body[data-bouya-page="creator"] .lv2-recap {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(26,39,68,.1);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(27,36,55,.08);
  backdrop-filter: blur(10px);
}

body[data-bouya-page="creator"] .lv2-panel.active {
  padding: 34px 34px 32px;
  overflow: visible;
}

body[data-bouya-page="creator"] .lv2-panel.active::before,
body[data-bouya-page="creator"] .lv2-panel.active::after {
  display: none;
}

body[data-bouya-page="creator"] .lv2-panel-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  margin-bottom: 16px;
  background: #17243d;
  color: #f0c66f;
  border: none;
}

body[data-bouya-page="creator"] .lv2-panel-title {
  font-size: 1.7rem;
  line-height: 1.15;
}

body[data-bouya-page="creator"] .lv2-panel-title::after {
  display: none;
}

body[data-bouya-page="creator"] .lv2-panel-sub {
  margin-top: 8px;
  margin-bottom: 24px;
  color: #687082;
}

body[data-bouya-page="creator"] .lv2-step-dot,
body[data-bouya-page="creator"] .lv2-field input,
body[data-bouya-page="creator"] .lv2-field select,
body[data-bouya-page="creator"] .lv2-field textarea,
body[data-bouya-page="creator"] .lv2-theme-card,
body[data-bouya-page="creator"] .lv2-style-card,
body[data-bouya-page="creator"] .lv2-offer-card {
  border-radius: 8px;
}

body[data-bouya-page="creator"] .lv2-step-dot.active {
  background: #fff7df;
  box-shadow: 0 8px 20px rgba(212,168,83,.14);
}

body[data-bouya-page="creator"] .lv2-visual-card {
  border-radius: 10px;
  background: #17243d;
  box-shadow: 0 18px 50px rgba(27,36,55,.16);
}

body[data-bouya-page="creator"] .lv2-visual-card.is-banner .lv2-visual-img {
  transform: none;
}

body[data-bouya-page="creator"] .lv2-visual-card:hover .lv2-visual-img,
body[data-bouya-page="creator"] .lv2-visual-card.is-banner:hover .lv2-visual-img {
  transform: none;
}

body[data-bouya-page="creator"] .lv2-total-bar {
  border-radius: 10px;
  background: #17243d;
}

body[data-bouya-page="creator"] .lv2-total-reassurance,
body[data-bouya-page="creator"] .lv2-pay-note,
body[data-bouya-page="creator"] .lv2-offer-help {
  color: #687082;
}

body[data-bouya-page="creator"] .lv2-guarantees {
  background: #fbfaf6;
}

body[data-bouya-page="creator"] .lv2-guar-hero,
body[data-bouya-page="creator"] .lv2-guar-item {
  border-radius: 8px;
}

@media (max-width: 980px) {
  body[data-bouya-page="creator"] .lv2-hero {
    min-height: clamp(620px, 74svh, 760px);
    padding: 104px 18px 52px;
    text-align: center;
    display: flex;
    align-items: center;
  }

  body[data-bouya-page="creator"] .lv2-hero-content {
    display: block;
    width: min(720px, 100%);
  }

  body[data-bouya-page="creator"] .lv2-hero-copy {
    max-width: 680px;
    margin: 0 auto;
    align-items: center;
    min-height: clamp(460px, 58svh, 560px);
  }

  body[data-bouya-page="creator"] .lv2-hero h1 {
    font-size: clamp(2.7rem, 5.2vw, 3.06rem);
    line-height: 1.02;
    letter-spacing: -0.014em;
  }

  body[data-bouya-page="creator"] .lv2-hero p {
    font-size: 15.2px;
    line-height: 1.66;
    margin-left: auto;
    margin-right: auto;
  }

  body[data-bouya-page="creator"] .lv2-hero-price {
    margin-left: auto;
    margin-right: auto;
  }

  body[data-bouya-page="creator"] .lv2-hero-cta {
    align-self: center;
  }

  body[data-bouya-page="creator"] .lv2-hero-showcase {
    display: none;
  }
}

@media (max-width: 640px) {
  html,
  body[data-bouya-page="creator"] {
    max-width: 100%;
    overflow-x: hidden;
  }

  body[data-bouya-page="creator"] .lv2 {
    max-width: 100%;
    overflow-x: hidden;
  }

  body[data-bouya-page="creator"] .lv2-hero {
    min-height: clamp(700px, 84svh, 840px);
    padding: 108px 18px 48px;
  }

  body[data-bouya-page="creator"] .lv2-hero-copy,
  body[data-bouya-page="creator"] .lv2-hero-content {
    width: 100%;
    min-width: 0;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  body[data-bouya-page="creator"] .lv2-hero-copy {
    min-height: clamp(520px, 62svh, 640px);
  }

  body[data-bouya-page="creator"] .lv2-hero h1 {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.12rem, 8.3vw, 2.38rem);
    line-height: 1.03;
    font-weight: 700;
    letter-spacing: -0.016em;
  }

  body[data-bouya-page="creator"] .lv2-hero p {
    max-width: 340px;
    font-size: 14.6px;
    line-height: 1.62;
  }

  body[data-bouya-page="creator"] .lv2-hero-price {
    width: 100%;
    max-width: 330px;
    justify-content: center;
  }

  body[data-bouya-page="creator"] .lv2-hero-price-note {
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
  }

  body[data-bouya-page="creator"] .lv2-hero-digital-entry {
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
    font-size: 12.5px;
  }

  body[data-bouya-page="creator"] .lv2-hero-cta {
    width: min(100%, 336px);
  }

  body[data-bouya-page="creator"] .lv2-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 14px;
  }

  body[data-bouya-page="creator"] .lv2-trust-item {
    min-width: 0;
    padding: 9px 8px;
    white-space: normal;
    font-size: 10.8px;
    line-height: 1.3;
  }

  body[data-bouya-page="creator"] .lv2-reass-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 8px 12px;
  }

  body[data-bouya-page="creator"] .lv2-reass-meta-divider {
    display: none;
  }

  body[data-bouya-page="creator"] .lv2-reass-meta-item {
    min-width: 0;
    white-space: normal;
    justify-content: center;
    text-align: center;
    line-height: 1.35;
  }

  body[data-bouya-page="creator"] .lv2-creator {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
    padding: 28px 14px 52px;
  }

  body[data-bouya-page="creator"] .lv2-creator-layout,
  body[data-bouya-page="creator"] .lv2-stepper-col,
  body[data-bouya-page="creator"] .lv2-progress-wrap,
  body[data-bouya-page="creator"] .lv2-steps-nav,
  body[data-bouya-page="creator"] .lv2-panel.active,
  body[data-bouya-page="creator"] .lv2-field-grid,
  body[data-bouya-page="creator"] .lv2-field,
  body[data-bouya-page="creator"] .lv2-photo-zone {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body[data-bouya-page="creator"] .lv2-panel.active {
    padding: 26px 16px 22px;
  }

  body[data-bouya-page="creator"] .lv2-panel-sub {
    max-width: 28ch;
    overflow-wrap: break-word;
  }

  body[data-bouya-page="creator"] .lv2-field input,
  body[data-bouya-page="creator"] .lv2-field select,
  body[data-bouya-page="creator"] .lv2-field textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* Creator mobile scroll guard:
   keep every wizard step fully scrollable while the bottom action bar stays visible. */
@media (max-width: 900px) {
  html,
  body[data-bouya-page="creator"] {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body[data-bouya-page="creator"] .lv2,
  body[data-bouya-page="creator"] .lv2-creator,
  body[data-bouya-page="creator"] .lv2-creator-layout,
  body[data-bouya-page="creator"] .lv2-stepper-col,
  body[data-bouya-page="creator"] .lv2-progress-wrap {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow-y: visible;
  }

  body[data-bouya-page="creator"] .lv2-panel.active {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    transform: none;
    animation: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding-bottom: calc(126px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body[data-bouya-page="creator"] .lv2-panel.active .lv2-nav {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    z-index: 900;
  }
}

/* Result page mobile guardrails */
@media (max-width: 600px) {
  html.is-book-result,
  body.is-book-result {
    overflow-x: hidden;
  }

  html.is-book-result .lv2,
  body.is-book-result .lv2 {
    overflow-x: hidden;
  }

  html.is-book-result .lv2-br-showroom {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw);
    padding: 24px 12px 36px;
    overflow: hidden;
  }

  html.is-book-result .lv2-book-result {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden;
  }

  html.is-book-result .lv2-br-showroom-inner,
  html.is-book-result .lv2-book-result-inner {
    width: min(calc(100vw - 24px), 360px) !important;
    max-width: min(calc(100vw - 24px), 360px) !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  html.is-book-result .cover-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(calc(100vw - 24px), 360px) !important;
    max-width: min(calc(100vw - 24px), 360px) !important;
    gap: 8px;
  }

  html.is-book-result .cover-style-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: none;
  }

  html.is-book-result .cover-style-card::after {
    display: none;
  }

  html.is-book-result .cover-style-card-label {
    font-size: .66rem;
    padding: 8px 4px 7px;
  }

  html.is-book-result .lv2-book-result-inner {
    padding: 28px 0 52px;
  }

  html.is-book-result .lv2-br-edit-section {
    margin: 22px 0;
    padding: 20px 18px;
    border-radius: 10px;
  }

  html.is-book-result .lv2-br-pages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 370px) {
  html.is-book-result .cover-selector-grid {
    gap: 6px;
  }

  html.is-book-result .cover-style-card-label {
    font-size: .6rem;
  }

  html.is-book-result .lv2-br-pages-grid {
    grid-template-columns: 1fr;
  }
}

/* Result final mobile alignment: keep the confirmation copy centered. */
@media (max-width: 600px) {
  html.is-book-result .lv2-book-result-inner,
  body.is-book-result .lv2-book-result-inner {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html.is-book-result .lv2-br-final,
  body.is-book-result .lv2-br-final {
    width: 100%;
    max-width: 340px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 34px 14px 38px;
    text-align: center;
  }

  html.is-book-result .lv2-br-final-title,
  html.is-book-result .lv2-br-final-sub,
  body.is-book-result .lv2-br-final-title,
  body.is-book-result .lv2-br-final-sub {
    max-width: 28ch;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
  }

  html.is-book-result .lv2-br-final-actions,
  body.is-book-result .lv2-br-final-actions {
    justify-content: center;
    width: 100%;
  }

  html.is-book-result .lv2-br-final-actions .lv2-btn,
  body.is-book-result .lv2-br-final-actions .lv2-btn {
    justify-content: center;
  }
}

/* V3 live final override: payment CTA and brand mark */
.lv2-br-logo-img,
.book3d-back-logo img {
  background: #faf4f1 !important;
}

.lv2-btn-generate {
  min-width: 0;
  white-space: nowrap;
}

.lv2-btn-generate .lv2-btn-pay-label,
.lv2-btn-generate .lv2-btn-pay-price {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
}

.lv2-btn-generate .lv2-btn-pay-price {
  padding: 5px 9px;
  margin-left: 2px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(26, 39, 68, 0.10);
  color: var(--lv-navy);
  font-variant-numeric: tabular-nums;
}

.lv2-btn-generate .lv2-btn-arrow {
  margin-left: 2px;
}

@media (max-width: 900px) {
  .lv2-panel.active .lv2-nav.lv2-nav-final {
    align-items: center;
  }

  .lv2-panel.active .lv2-nav.lv2-nav-final .lv2-btn-generate {
    flex: 1.6 1 auto;
    gap: 7px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 14px;
  }

  .lv2-panel.active .lv2-nav.lv2-nav-final .lv2-btn-back {
    flex: 0 0 auto;
    min-width: 92px;
  }
}

@media (max-width: 380px) {
  .lv2-panel.active .lv2-nav.lv2-nav-final .lv2-btn-generate {
    gap: 6px;
    font-size: 13px;
  }

  .lv2-btn-generate .lv2-btn-arrow {
    display: none;
  }
}
