/*
 * DEAREST — Wizard CSS
 * Estilos específicos do wizard de criação de páginas (criar.html).
 * Requer: design-tokens.css, global.css
 */

/* ─── Body do Wizard ──────────────────────────────── */

body.wizard-page {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255,77,122,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(139,10,36,0.12) 0%, transparent 50%),
    #0C0A0F;
  min-height: 100dvh;
}

/* ─── Layout do Wizard ─────────────────────────────── */

.wizard-root {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--theme-bg, linear-gradient(160deg, var(--obsidian) 0%, var(--deep-rose) 50%, var(--obsidian) 100%));
  position: relative;
  overflow-x: hidden;
}

/* canvas de partículas atrás de tudo */
.wizard-root > canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.wizard-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: var(--wizard-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--page-padding) var(--space-16);
  position: relative;
  z-index: var(--z-base);
}

/* ─── Barra de Progresso ───────────────────────────── */

.wizard-topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(12, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 var(--page-padding);
}

.wizard-topbar-inner {
  max-width: var(--wizard-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 64px;
}

.wizard-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  letter-spacing: var(--tracking-wide);
  flex-shrink: 0;
}

/* Steps indicator */

.wizard-steps {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  max-width: 400px;
}

.wizard-step-dot {
  display: flex;
  align-items: center;
  flex: 1;
}

.wizard-step-dot:last-child {
  flex: none;
}

.step-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  /* DES2-05: mínimo 44px de touch target (WCAG 2.5.5) — era 32px */
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  border: 1.5px solid rgba(255, 255, 255, 0.30);
  color: rgba(250, 247, 242, 0.60);
  background: transparent;
  transition: all var(--dur-med) var(--ease-spring);
}

.wizard-step-dot.is-active .step-bubble {
  background: var(--hot-rose);
  border-color: var(--hot-rose);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255,77,122,0.25), 0 4px 16px rgba(255,77,122,0.40);
  transform: scale(1.1);
}

.wizard-step-dot.is-done .step-bubble {
  background: rgba(255, 77, 122, 0.18);
  border-color: rgba(255, 77, 122, 0.60);
  color: var(--hot-rose-light);
}

.step-connector {
  flex: 1;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
  margin: 0 var(--space-1);
}

.step-connector-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-block: 0; /* progressive enhancement */
  left: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--hot-rose-dark), var(--hot-rose), var(--hot-rose-light));
  transition: width var(--dur-slow) var(--ease-silk);
}

.wizard-step-dot.is-done + .wizard-step-dot .step-connector-fill,
.wizard-step-dot.is-done .step-connector-fill {
  width: 100%;
}

/* Progress bar linear (mobile) */

.wizard-progress-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.wizard-progress-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-block: 0; /* progressive enhancement */
  left: 0;
  background: linear-gradient(90deg, var(--hot-rose-dark), var(--hot-rose), var(--hot-rose-light));
  background-size: 200% 100%;
  animation: border-flow 2s linear infinite;
  transition: width var(--dur-slow) var(--ease-silk);
  box-shadow: 0 0 8px rgba(255,77,122,0.50);
}

@media (max-width: 599px) {
  .wizard-steps { display: none; }
}

/* ─── Painel de Passo ──────────────────────────────── */

.wizard-panel {
  padding-top: var(--space-10);
}

.wizard-step {
  display: none;
  animation: fade-in-up var(--dur-med) var(--ease-drift) both;
}

.wizard-step.is-active {
  display: block;
}

.wizard-step.slide-left {
  animation: slide-in-right var(--dur-med) var(--ease-drift) reverse both;
}

.wizard-step.slide-right {
  animation: slide-in-right var(--dur-med) var(--ease-drift) both;
}

.step-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.step-eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--hot-rose-light);
  margin-bottom: var(--space-2);
}

.step-title {
  font-family: var(--font-head);
  font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
  color: var(--ivory);
  font-weight: 400;
  text-align: center;
}

.step-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgba(250, 247, 242, 0.55);
  margin-top: var(--space-2);
  font-style: italic;
  text-align: center;
  max-width: 100%; /* sobrescreve global p { max-width: 68ch } */
}

/* Card interno de campos */
.wizard-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md), var(--shadow-inset);
}

@media (max-width: 768px) {
  .wizard-card {
    padding: var(--space-5);
    border-radius: var(--radius-lg);
  }
}

/* ─── Grid de Temas ────────────────────────────────── */

.themes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 480px) {
  .themes-grid {
    grid-template-columns: 1fr;
  }
}

.theme-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--glass-border);
  cursor: pointer;
  min-height: 160px;
  aspect-ratio: 4 / 3;
  transition: transform var(--dur-med) var(--ease-spring),
              border-color var(--dur-med) var(--ease-silk),
              box-shadow var(--dur-med) var(--ease-silk);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.theme-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.theme-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.theme-card.is-selected {
  border-color: var(--hot-rose);
  box-shadow: 0 0 0 1px rgba(255,77,122,0.20), 0 0 32px rgba(255,77,122,0.30), 0 0 64px rgba(255,77,122,0.15);
}

.theme-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--dur-slow) var(--ease-drift);
}

.theme-card:hover .theme-card-bg {
  transform: scale(1.05);
}

/* Backgrounds de prévia por tema */
.theme-card[data-theme-preview="eternal"] .theme-card-bg {
  background: linear-gradient(160deg, #0C0A0F 0%, #1A0D14 50%, #0C0A0F 100%);
}

.theme-card[data-theme-preview="cosmic"] .theme-card-bg {
  background: linear-gradient(160deg, #050A1A 0%, #0A1628 60%, #050A1A 100%);
}

.theme-card[data-theme-preview="bloom"] .theme-card-bg {
  background: linear-gradient(160deg, #FFCCE0 0%, #FFB8D2 50%, #FFCCE0 100%);
}

.theme-card[data-theme-preview="velvet"] .theme-card-bg {
  background: linear-gradient(160deg, #280810 0%, #3D0E18 50%, #280810 100%);
}

.theme-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
}

.theme-card-name {
  font-family: var(--font-head);
  font-size: var(--text-lg);
  color: var(--ivory);
  font-weight: 400;
}

.theme-card-desc {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(250, 247, 242, 0.65);
  margin-top: 2px;
}

/* Badge "selecionado" */
.theme-check {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--hot-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--dur-fast) var(--ease-spring),
              transform var(--dur-fast) var(--ease-spring);
  box-shadow: 0 4px 12px rgba(255,77,122,0.50);
}

.theme-card.is-selected .theme-check {
  opacity: 1;
  transform: scale(1);
}

/* ─── Dropzone de Foto ─────────────────────────────── */

.dropzone {
  position: relative;
  border: 2px dashed rgba(255, 77, 122, 0.35);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-silk),
              background var(--dur-fast) var(--ease-silk),
              box-shadow var(--dur-fast) var(--ease-silk);
  background: rgba(255, 77, 122, 0.02);
  -webkit-tap-highlight-color: transparent;
}

/* Borda tracejada animada */
.dropzone::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(
    90deg,
    rgba(212,175,55,0.6) 0%,
    transparent 25%,
    transparent 75%,
    rgba(212,175,55,0.6) 100%
  );
  background-size: 200% 100%;
  animation: border-flow 3s linear infinite;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-silk);
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
}

.dropzone:hover::before,
.dropzone.is-dragging::before {
  opacity: 1;
}

.dropzone:hover,
.dropzone.is-dragging {
  border-color: var(--hot-rose);
  background: rgba(255, 77, 122, 0.06);
  box-shadow: 0 0 0 4px rgba(255,77,122,0.08), 0 0 32px rgba(255, 77, 122, 0.15);
}

.dropzone:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.dropzone-icon {
  font-size: 40px;
  margin-bottom: var(--space-3);
  display: block;
  animation: float 4s var(--ease-drift) infinite;
}

.dropzone-text {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  color: var(--champagne);
  margin-bottom: var(--space-1);
}

.dropzone-hint {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(250, 247, 242, 0.40);
}

.dropzone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* Prévia da imagem dentro da dropzone */
.dropzone-preview {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius-lg) - 2px);
  overflow: hidden;
  display: none;
}

.dropzone-preview.has-image {
  display: block;
}

.dropzone-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropzone-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 15, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-silk);
}

.dropzone:hover .dropzone-preview-overlay {
  opacity: 1;
}

.dropzone-remove {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--ivory);
  background: rgba(196, 30, 58, 0.75);
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 20px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

/* ─── Textarea com Contador ────────────────────────── */

.textarea-wrapper {
  position: relative;
}

.textarea-counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(250, 247, 242, 0.35);
  pointer-events: none;
  transition: color var(--dur-fast) var(--ease-silk);
}

.textarea-counter.is-warning {
  color: rgba(245, 166, 35, 0.80);
}

/* DES4-06: prefixo ⚠ para não depender somente de cor (WCAG 1.4.1) */
.textarea-counter.is-warning::before {
  content: '⚠️ ';
  font-size: 10px;
}

.textarea-counter.is-limit {
  color: rgba(196, 30, 58, 0.80);
}

.textarea-counter.is-limit::before {
  content: '⛔ ';
  font-size: 10px;
}

textarea.input-field.has-counter {
  padding-bottom: var(--space-8);
}

/* ─── Preview ao Vivo ──────────────────────────────── */

/* Mobile: botão flutuante que abre um painel */

.preview-fab {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-5);
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 20px;
  background: var(--hot-rose);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,77,122,0.45), var(--shadow-md);
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast) var(--ease-silk);
  -webkit-tap-highlight-color: transparent;
}

.preview-fab:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(255,77,122,0.60), var(--shadow-lg);
}

.preview-fab:active { transform: scale(0.96); }

.preview-fab:focus-visible {
  outline: 2px solid var(--hot-rose-light);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .preview-fab { display: none; }
}

/* Drawer de preview mobile */

.preview-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  background: var(--midnight);
  transform: translateY(100%);
  transition: transform var(--dur-med) var(--ease-spring);
}

.preview-drawer.is-open {
  transform: translateY(0);
}

.preview-drawer-handle {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-4);
  flex-shrink: 0;
  gap: var(--space-3);
}

.preview-drawer-pill {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-full);
}

.preview-drawer-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;   /* DES4-08: era 36px — mínimo WCAG 2.5.5 é 44px */
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: rgba(250, 247, 242, 0.60);
  font-size: 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.preview-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--page-padding) var(--space-8);
}

/* Desktop: sidebar fixa */

.preview-sidebar {
  display: none;
}

@media (min-width: 768px) {
  .preview-sidebar {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 80px;
    height: calc(100dvh - 100px);
    overflow: hidden;
  }

  .preview-sidebar-inner {
    flex: 1;
    overflow-y: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    animation: slide-in-right var(--dur-slow) var(--ease-drift) both;
  }

  .preview-sidebar-title {
    padding: var(--space-5) var(--space-5) 0;
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: rgba(250, 247, 242, 0.40);
    margin-bottom: var(--space-4);
  }
}

/* ─── Navegação dos Passos ─────────────────────────── */

.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--glass-border);
}

.wizard-nav-left,
.wizard-nav-right {
  display: flex;
  gap: var(--space-3);
}

.wizard-step-indicator {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(250, 247, 242, 0.35);
  align-self: center;
  letter-spacing: var(--tracking-wide);
}

/* ─── Resumo do Pedido ─────────────────────────────── */

.order-summary {
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.order-summary-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--glass-border);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.45);
}

.order-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--glass-border);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: rgba(250, 247, 242, 0.70);
}

.order-line-name { flex: 1; }

.order-line-price {
  font-weight: 500;
  color: var(--champagne);
}

.order-line.is-discount .order-line-price {
  color: #4CAF50;
}

.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-head);
  font-size: var(--text-xl);
  color: var(--ivory);
}

.order-total-price {
  color: var(--hot-rose-light);
}

/* Campo de cupom */
.coupon-row {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--glass-border);
}

.coupon-row .input-field {
  flex: 1;
  font-size: var(--text-sm);
  min-height: 44px;
}

.coupon-row .btn-ghost {
  min-height: 44px;
  padding: 0 var(--space-4);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.coupon-feedback {
  padding: 0 var(--space-6) var(--space-4);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  display: none;
}

.coupon-feedback.is-valid {
  display: block;
  color: #4CAF50;
}

.coupon-feedback.is-invalid {
  display: block;
  color: rgba(196, 30, 58, 0.90);
}

/* ─── Acessibilidade ───────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .wizard-step,
  .wizard-step.is-active,
  .wizard-step.slide-left,
  .wizard-step.slide-right {
    animation: none !important;
  }

  .wizard-progress-fill {
    animation: none !important;
  }

  .dropzone::before {
    animation: none !important;
  }

  .dropzone-icon {
    animation: none !important;
  }

  .theme-card {
    transition: border-color var(--dur-fast) var(--ease-silk) !important;
    transform: none !important;
  }

  .theme-card.is-selected {
    animation: none !important;
  }

  .preview-drawer {
    transition: none !important;
  }
}

/* ─── Mobile responsividade ────────────────────────── */

@media (max-width: 768px) {
  .wizard-topbar-inner {
    height: 56px;
  }

  .step-header {
    margin-bottom: var(--space-5);
  }

  .wizard-nav {
    margin-top: var(--space-5);
  }

  .themes-grid {
    gap: var(--space-3);
  }
}

/* ─────────────────────────────────────────────────────────
 * Multi-upload de fotos — Step 3
 * ───────────────────────────────────────────────────────── */

.fotos-counter {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.5);
  text-align: right;
  margin-bottom: var(--space-3);
}

.fotos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-height: 100px;
}

@media (min-width: 480px) {
  .fotos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Thumb de foto adicionada */
.foto-thumb {
  position: relative;
  min-height: 100px;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}

.foto-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Botão de remoção */
.foto-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(12, 10, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--ivory);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background var(--dur-fast) var(--ease-silk),
              transform var(--dur-fast) var(--ease-silk);
  padding: 0;
}

.foto-thumb-remove:hover {
  background: rgba(248, 113, 113, 0.9);
  border-color: transparent;
  transform: scale(1.1);
}

/* Badge "Principal" na primeira foto */
.foto-thumb-main {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(12, 10, 15, 0.85), transparent);
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px 4px 4px;
}

/* Slot de adicionar foto */
.foto-add-slot {
  min-height: 100px;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1.5px dashed rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-silk),
              background var(--dur-fast) var(--ease-silk);
}

.foto-add-slot:hover,
.foto-add-slot:focus-visible {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  outline: none;
}

.foto-add-icon {
  font-size: 28px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.7;
  font-weight: 300;
  font-family: var(--font-ui);
}

.foto-add-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.7);
  text-align: center;
}

/* Hint de formato */
.fotos-hint {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(250, 247, 242, 0.35);
  text-align: center;
  margin-top: var(--space-3);
  line-height: var(--leading-normal);
}

/* ── Drag & drop — estados visuais ─────────────────────── */

/* Grid inteiro como zona de drop de arquivo */
.fotos-grid.drag-over {
  outline: 2px dashed var(--hot-rose);
  outline-offset: 4px;
  border-radius: 12px;
  background: rgba(255, 77, 122, 0.05);
}

/* Slot de adicionar como zona de drop */
.foto-add-slot.drag-over {
  border-color: var(--hot-rose);
  background: rgba(255, 77, 122, 0.10);
  transform: scale(1.03);
}

/* Thumbnail sendo arrastada */
.foto-thumb[draggable="true"] {
  cursor: grab;
}
.foto-thumb[draggable="true"]:active {
  cursor: grabbing;
}
.foto-thumb.is-dragging {
  opacity: 0.35;
  transform: scale(0.95);
  box-shadow: none;
}

/* Thumbnail alvo de drop (reordenação) */
.foto-thumb.drag-target {
  outline: 2px solid var(--hot-rose);
  outline-offset: 3px;
  background: rgba(255, 77, 122, 0.08);
}

/* Hint de arrastar para reordenar */
.fotos-reorder-hint {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(250, 247, 242, 0.30);
  text-align: center;
  margin-top: var(--space-2);
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .foto-thumb-remove,
  .foto-add-slot,
  .foto-thumb {
    transition: none !important;
    transform: none !important;
  }
}

/* ─────────────────────────────────────────────────────────
 * Wizard Premium 2026 — upgrades visuais
 * ───────────────────────────────────────────────────────── */

/* Fundo do wizard com gradiente melhorado */
.wizard-root {
  background: radial-gradient(ellipse at 20% 20%, rgba(232,57,93,0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(212,175,55,0.07) 0%, transparent 50%),
              radial-gradient(ellipse at 60% 10%, rgba(139,10,36,0.15) 0%, transparent 45%),
              var(--obsidian);
}

/* Step bubbles melhorados */
.wizard-step-dot.is-active .step-bubble {
  background: var(--grad-rose);
  border-color: transparent;
  box-shadow: var(--shadow-rose);
  transform: scale(1.15);
}

.wizard-step-dot.is-done .step-bubble {
  background: rgba(232,57,93,0.15);
  border-color: var(--hot-rose);
  color: var(--hot-rose-light);
}

.step-connector-fill {
  background: linear-gradient(90deg, var(--hot-rose-dark), var(--hot-rose-light));
}

/* Wizard card premium */
.wizard-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.018) 100%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 5vw, var(--space-8));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  transition: border-color var(--dur-med);
}

.wizard-card:focus-within {
  border-color: rgba(232,57,93,0.25);
}

/* Inputs premium */
.form-input,
.form-textarea,
.form-select {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-5);
  width: 100%;
  min-height: 52px;
  transition: border-color var(--dur-fast) var(--ease-silk),
              background var(--dur-fast) var(--ease-silk),
              box-shadow var(--dur-fast) var(--ease-silk);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--hot-rose-dark);
  background: rgba(232,57,93,0.04);
  box-shadow: 0 0 0 3px rgba(232,57,93,0.12);
}

@media (forced-colors: active) {
  .form-input:focus,
  .form-textarea:focus,
  .form-select:focus {
    outline: 2px solid ButtonText;
    outline-offset: 2px;
    box-shadow: none;
  }
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(250,247,242,0.3);
}

/* Plan cards no wizard (step 1) */
.plan-option {
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  transition: border-color var(--dur-med), background var(--dur-med), transform var(--dur-fast) var(--ease-spring);
  background: rgba(255,255,255,0.025);
  position: relative;
  overflow: hidden;
}

.plan-option:hover {
  border-color: rgba(232,57,93,0.3);
  background: rgba(232,57,93,0.04);
  transform: translateY(-2px);
}

.plan-option.is-selected {
  border-color: var(--hot-rose-dark);
  background: rgba(232,57,93,0.08);
  box-shadow: var(--shadow-rose);
}

.plan-option.is-selected::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(232,57,93,0.12) 0%, transparent 70%);
}

/* Temas no wizard */
.theme-option {
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-xl);
  transition: border-color var(--dur-med), transform var(--dur-fast) var(--ease-spring);
  overflow: hidden;
}

.theme-option:hover { transform: translateY(-3px) scale(1.02); }
.theme-option.is-selected {
  border-color: var(--hot-rose);
  box-shadow: var(--shadow-rose);
}

/* ═══════════════════════════════════════════════════════════
   STEP 6 — EXTRAS PREMIUM
   ═══════════════════════════════════════════════════════════ */

/* Card de extras (usa base .wizard-card) */
.extras-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

/* Header: ícone + info + badge */
.extras-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.extras-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.extras-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.extras-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.extras-card-desc {
  font-size: 0.82rem;
  color: var(--text-subtle);
  margin: 0;
  line-height: 1.45;
}

/* Badges de plano */
.extras-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge--romantic {
  background: rgba(255, 120, 170, 0.18);
  color: #e06090;
  border: 1px solid rgba(255, 120, 170, 0.35);
}

.badge--premium {
  background: rgba(212, 175, 55, 0.18);
  color: #c9a227;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

/* Wrapper badge + preço do plano */
.extras-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.extras-badge-price {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-subtle);
  white-space: nowrap;
  opacity: 0.70;
}

/* Toggle switch */
.extras-toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.extras-toggle-track {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background: rgba(255,255,255,0.22);
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.35);
  transition: background var(--dur-med);
  flex-shrink: 0;
}

.extras-toggle-label input:checked ~ .extras-toggle-track {
  background: var(--hot-rose);
  border-color: var(--hot-rose);
}

.extras-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--dur-fast) var(--ease-spring);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.extras-toggle-label input:checked ~ .extras-toggle-track::after {
  transform: translateX(20px);
}

.extras-toggle-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Date picker surpresa */
.extras-surpresa-date {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.extras-surpresa-date.is-hidden { display: none; }

/* Formulários inline (timeline / quiz) */
.extras-inline-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ─── Checkout — Trust & Métodos de Pagamento ────────── */

/* Área do botão + trust juntos */
.checkout-pay-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}

.checkout-pay-area .btn-cta {
  width: 100%;
  max-width: 280px;
}

/* Barra de confiança abaixo do botão */
.payment-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: rgba(250, 247, 242, 0.45);
  white-space: nowrap;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.payment-trust-lock {
  font-size: 12px;
  flex-shrink: 0;
}

.payment-method-sep {
  color: rgba(250, 247, 242, 0.25);
}

.payment-method-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pix-badge {
  background: rgba(50, 205, 150, 0.15);
  color: #32CD96;
  border: 1px solid rgba(50, 205, 150, 0.30);
}

.card-badge {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(250, 247, 242, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Responsivo — trust bar full width em mobile */
@media (max-width: 640px) {
  .checkout-pay-area {
    width: 100%;
    align-items: stretch;
  }

  .checkout-pay-area .btn-cta {
    max-width: none;
  }

  .payment-trust {
    justify-content: center;
  }

  .wizard-nav.wizard-nav-checkout {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .wizard-nav.wizard-nav-checkout .btn-ghost {
    flex: 0 0 auto;
  }
}

.extras-inline-form.is-hidden { display: none; }

.extras-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

/* Lista de itens (eventos / perguntas) */
.extras-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.extras-item-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.extras-item-date {
  font-size: 0.72rem;
  font-family: var(--font-ui);
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

.extras-item-title {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.extras-item-desc {
  font-size: 0.78rem;
  color: var(--text-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botão de remover */
.btn-extras-remove {
  background: none;
  border: none;
  color: var(--text-subtle);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: color var(--dur-fast), background var(--dur-fast);
  line-height: 1;
}

.btn-extras-remove:hover {
  color: var(--hot-rose);
  background: rgba(232,57,93,0.10);
}

/* Botão de adicionar (dashed) */
.btn-extras-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-lg);
  border: 1.5px dashed rgba(255,255,255,0.30);
  background: transparent;
  color: rgba(250, 247, 242, 0.55);
  font-size: 0.85rem;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}

.btn-extras-add:hover {
  color: var(--hot-rose);
  border-color: var(--hot-rose);
  background: rgba(232,57,93,0.06);
}

/* Empty state */
.extras-empty {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-subtle);
  padding: 8px 0;
  margin: 0;
}

/* Quiz: opções com radio */
.qz-option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.qz-radio {
  accent-color: var(--hot-rose);
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.qz-option-letter {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-subtle);
  min-width: 16px;
}

.qz-opt-input { flex: 1; }

/* Quiz opções no preview */
.extras-quiz-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.extras-quiz-opt {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.06);
  color: var(--text-subtle);
  border: 1px solid rgba(255,255,255,0.1);
}

.extras-quiz-opt.is-correct {
  background: rgba(72, 199, 142, 0.15);
  color: #48c78e;
  border-color: rgba(72, 199, 142, 0.35);
}

/* URL personalizada */
.slug-custom-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.slug-prefix {
  padding: 0 12px;
  font-size: 0.8rem;
  color: var(--text-subtle);
  font-family: var(--font-ui);
  white-space: nowrap;
  background: rgba(255,255,255,0.04);
  border-right: 1px solid rgba(255,255,255,0.10);
  height: 44px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.slug-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding-left: 12px !important;
  font-size: 0.88rem;
}

.slug-input:focus {
  box-shadow: none !important;
  outline: none !important;
}

.slug-custom-wrap:focus-within {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.07);
}

/* Estado: verificando */
.slug-custom-wrap.is-checking {
  border-color: rgba(255, 255, 255, 0.22);
}

/* Estado: disponível */
.slug-custom-wrap.is-available {
  border-color: rgba(72, 199, 142, 0.50);
  box-shadow: 0 0 0 2px rgba(72, 199, 142, 0.12);
}

/* Estado: indisponível */
.slug-custom-wrap.is-taken {
  border-color: rgba(232, 57, 93, 0.50);
  box-shadow: 0 0 0 2px rgba(232, 57, 93, 0.12);
}

/* Indicador de status abaixo do campo */
.slug-status {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  min-height: 1.2em;
  margin-top: 4px;
  transition: color 0.2s;
}

.slug-status--idle    { color: transparent; }
.slug-status--checking { color: var(--text-subtle); animation: slug-blink 0.8s ease infinite; }
.slug-status--available { color: #48c78e; }
.slug-status--taken   { color: #e8395d; }

@keyframes slug-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ─── Modal de Downgrade de Plano ────────────────────── */

#downgrade-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 640px) {
  #downgrade-modal {
    align-items: center;
    padding: var(--space-4);
  }
}

.downgrade-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 0, 8, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.downgrade-dialog {
  position: relative;
  background: var(--midnight, #130F1A);
  border: 1px solid rgba(255, 200, 0, 0.25);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-8) var(--space-6);
  width: 100%;
  max-width: 480px;
  max-height: 80dvh;
  overflow-y: auto;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
  animation: slide-in-up 0.3s var(--ease-spring, cubic-bezier(.34,1.56,.64,1)) both;
}

@media (min-width: 640px) {
  .downgrade-dialog {
    border-radius: var(--radius-xl);
    animation: scale-in 0.25s var(--ease-spring, cubic-bezier(.34,1.56,.64,1)) both;
  }
}

.downgrade-icon {
  font-size: 32px;
  text-align: center;
  margin-bottom: var(--space-3);
}

.downgrade-title {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  color: var(--ivory);
  text-align: center;
  font-weight: 400;
  margin-bottom: var(--space-3);
}

.downgrade-desc {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: rgba(250, 247, 242, 0.65);
  text-align: center;
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.downgrade-lost-list {
  background: rgba(255, 77, 122, 0.06);
  border: 1px solid rgba(255, 77, 122, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.downgrade-lost-list li {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: rgba(250, 247, 242, 0.80);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.downgrade-persuasion {
  background: linear-gradient(135deg, rgba(212,175,55,0.10) 0%, rgba(255,77,122,0.08) 100%);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: rgba(250, 247, 242, 0.80);
  text-align: center;
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.downgrade-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.downgrade-btn-keep {
  width: 100%;
  font-size: var(--text-base);
  padding: 14px 24px;
}

.downgrade-btn-confirm {
  width: 100%;
  font-size: var(--text-sm);
  opacity: 0.7;
  text-align: center;
  padding: 12px 24px;
}

/* ─── Aviso inline de features bloqueadas (Step 8) ───── */
.plan-locked-warning {
  display: flex;
  gap: var(--space-3);
  background: rgba(255, 180, 0, 0.08);
  border: 1px solid rgba(255, 180, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
  animation: fadeInUp 0.25s var(--ease-drift) both;
}
.plan-locked-warning-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}
.plan-locked-warning-body {
  flex: 1;
  min-width: 0;
}
.plan-locked-warning-title {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--theme-text);
  margin-bottom: var(--space-2);
}
.plan-locked-warning-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-2);
}
.plan-locked-warning-list li {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(250,247,242,0.75);
  padding: 2px 0;
}
.plan-locked-warning-cta {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(255, 180, 0, 0.85);
  font-style: italic;
}

/* ─── Badge de plano exigido (Step 7 revisão) ──────────── */
.plan-req-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c8a96e;
  background: rgba(200, 169, 110, 0.12);
  border: 1px solid rgba(200, 169, 110, 0.3);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: middle;
}
.plan-req-badge--premium {
  color: #b07fff;
  background: rgba(176, 127, 255, 0.12);
  border-color: rgba(176, 127, 255, 0.3);
}
