/**
 * ==========================================================================
 * ETERNIZE — WIZARD DE CRIAÇÃO (v3 — HUMAN WARMTH REDESIGN)
 * ==========================================================================
 * Paleta orgânica: Terracota, Creme, Verde-Sálvia, Marrom-Café.
 * Sem glassmorphism, sem dourado tech, sem partículas neon.
 * Superfícies sólidas, textura grain, micro-interações naturais.
 */

/* ==========================================================================
   1. LAYOUT PRINCIPAL
   ========================================================================== */
.wizard-body {
  background-color: var(--color-bg-base);
  min-height: 100vh;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Textura grain sutil sobre o wizard */
.wizard-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--texture-grain);
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: var(--z-background);
  opacity: 0.4;
}

/* Bloom quente orgânico no topo */
.wizard-body::after {
  content: '';
  position: fixed;
  top: -8%;
  left: 25%;
  width: 60vw;
  height: 50vh;
  background: radial-gradient(ellipse at center, rgba(196, 109, 59, 0.05) 0%, rgba(92, 122, 86, 0.02) 50%, transparent 80%);
  filter: blur(80px);
  pointer-events: none;
  z-index: var(--z-background);
}

/* ==========================================================================
   2. HEADER DO WIZARD
   ========================================================================== */
.wizard-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-header);
  background: rgba(247, 243, 238, 0.92);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: var(--space-sm) 0;
  transition: background var(--transition-normal);
}

.wizard-header.is-scrolled {
  background: rgba(247, 243, 238, 0.97);
  border-bottom-color: var(--color-border-terra);
}

.wizard-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  gap: var(--space-md);
}

/* Botão Voltar */
.wizard-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-card);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.wizard-back-btn:hover {
  color: var(--color-terra-600);
  border-color: var(--color-border-terra);
  background: var(--color-terra-100);
  transform: translateX(-2px);
}

/* Logo */
.wizard-brand-logo {
  display: flex;
  align-items: center;
  transition: transform var(--transition-fast);
}

.wizard-brand-logo:hover {
  transform: scale(1.03);
}

.wizard-brand-logo img {
  height: 30px;
  width: auto;
}

/* Badge Seguro */
.wizard-security-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--color-sage-500);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.wizard-security-badge .lock-icon {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}

/* ==========================================================================
   3. BARRA DE PROGRESSO (5 ETAPAS)
   ========================================================================== */
.wizard-progress-bar-wrapper {
  background: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: var(--space-lg) 0;
}

.wizard-steps-indicator {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
}

/* Trilha de fundo */
.wizard-progress-track {
  position: absolute;
  top: 20px;
  left: calc(var(--container-padding) + 20px);
  right: calc(var(--container-padding) + 20px);
  height: 2px;
  background: var(--color-border-subtle);
  z-index: 1;
  border-radius: var(--radius-full);
}

.wizard-progress-track-fill {
  height: 100%;
  background: var(--color-terra-gradient-h);
  width: 0%;
  transition: width 0.6s var(--ease-out);
  border-radius: var(--radius-full);
  position: relative;
}

/* Ponto na ponta da barra */
.wizard-progress-track-fill::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-terra-400);
  transition: opacity var(--transition-fast);
  opacity: 0;
}

.wizard-progress-track-fill[style*="width: 0%"]::after { opacity: 0; }
.wizard-progress-track-fill:not([style*="width: 0%"])::after { opacity: 1; }

/* Nó de Etapa */
.wizard-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  cursor: default;
  background: transparent;
  border: none;
  padding: 0;
  transition: var(--transition-fast);
}

.wizard-step-node[data-step] {
  cursor: pointer;
}

/* Círculo */
.wizard-step-circle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-bg-card);
  border: 2px solid var(--color-border-medium);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.4s var(--ease-bounce);
  box-shadow: var(--shadow-sm);
  position: relative;
}

/* Rótulo */
.wizard-step-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color var(--transition-fast);
}

/* Estado: ATIVO */
.wizard-step-node.is-active .wizard-step-circle {
  background: var(--color-terra-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--color-terra-glow), var(--shadow-terra);
  transform: scale(1.12);
}

.wizard-step-node.is-active .wizard-step-label {
  color: var(--color-terra-500);
}

/* Estado: COMPLETADO */
.wizard-step-node.is-completed .wizard-step-circle {
  background: var(--color-sage-100);
  border-color: var(--color-sage-400);
  color: var(--color-sage-500);
  animation: stepCompleteBounce 0.5s var(--ease-bounce) 1;
}

.wizard-step-node.is-completed .wizard-step-label {
  color: var(--color-text-secondary);
}

/* ==========================================================================
   4. ÁREA PRINCIPAL DO WIZARD
   ========================================================================== */
.wizard-main {
  flex: 1;
  padding: var(--space-2xl) 0 var(--space-4xl);
}

.wizard-container {
  max-width: var(--container-narrow-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ==========================================================================
   5. PAINÉIS DE ETAPAS — TRANSIÇÕES SUAVES
   ========================================================================== */
.step-panel {
  display: none;
  opacity: 0;
  transform: translateY(20px) scale(0.99);
}

.step-panel.is-active {
  display: block;
  animation: fadeInUp 0.5s var(--ease-out) both;
  opacity: 1;
  transform: none;
}

/* Cabeçalho da Etapa */
.step-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  padding: 0 var(--space-md);
}

.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-terra-600);
  background: var(--color-terra-100);
  border: 1px solid var(--color-border-terra);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.step-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-terra-500);
}

.step-title {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.8vw, 2.4rem);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
  font-style: italic;
}

.step-subtitle {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* ==========================================================================
   6. WIZARD CARD (SÓLIDO, QUENTE, SEM GLASSMORPHISM)
   ========================================================================== */
.wizard-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

/* Linha terracota sutil no topo do card */
.wizard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--color-terra-gradient-h);
  opacity: 0.6;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   7. FORMULÁRIOS & CAMPOS
   ========================================================================== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.01em;
}

.form-label-hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: var(--space-xs);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--color-bg-input);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-subtle);
  font-style: italic;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-terra-500);
  background: var(--color-bg-input);
  box-shadow: 0 0 0 3px var(--color-terra-glow), var(--shadow-sm);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

/* Divisor interno de card */
.card-divider {
  border: none;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-lg) 0;
}

/* ==========================================================================
   8. SELEÇÃO DE RELAÇÃO / OCASIÃO — SELECTION CARDS (5 COLUNAS)
   ========================================================================== */
.selection-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.selection-card {
  position: relative;
  background: var(--color-bg-warm);
  border: 1.5px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
}

.selection-card:hover {
  background: var(--color-terra-100);
  border-color: var(--color-border-terra);
  transform: translateY(-3px);
  box-shadow: var(--shadow-terra);
}

.selection-card.is-selected {
  background: var(--color-terra-100);
  border-color: var(--color-terra-500);
  box-shadow: 0 0 0 2px var(--color-terra-glow), var(--shadow-terra);
  transform: translateY(-2px);
}

.selection-card input[type="radio"],
.selection-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Ícones SVG inline — estilo Lucide/Feather */
.selection-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  transition: all var(--transition-fast);
  margin-bottom: 2px;
}

.selection-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-text-muted);
  fill: none;
  transition: stroke var(--transition-fast);
}

.selection-card:hover .selection-card-icon {
  background: var(--color-terra-200);
  border-color: var(--color-border-terra);
}

.selection-card:hover .selection-card-icon svg {
  stroke: var(--color-terra-600);
}

.selection-card.is-selected .selection-card-icon {
  background: var(--color-terra-gradient);
  border-color: transparent;
  box-shadow: var(--shadow-terra);
}

.selection-card.is-selected .selection-card-icon svg {
  stroke: #ffffff;
}

.selection-card-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.selection-card.is-selected .selection-card-title {
  color: var(--color-terra-600);
}

/* ==========================================================================
   9. GÊNERO MUSICAL — GENRE CARDS (ETAPA 2)
   ========================================================================== */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: var(--space-md);
}

.genre-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: left;
  overflow: hidden;
}

.genre-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-terra-gradient-h);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
  transform-origin: left;
}

.genre-card:hover {
  border-color: var(--color-border-terra);
  background: var(--color-terra-100);
  transform: translateY(-4px);
  box-shadow: var(--shadow-terra);
}

.genre-card:hover::before {
  transform: scaleX(1);
}

.genre-card.is-selected {
  border-color: var(--color-terra-500);
  background: var(--color-terra-100);
  box-shadow: 0 0 0 1px var(--color-terra-glow), var(--shadow-terra);
  transform: translateY(-2px);
}

.genre-card.is-selected::before {
  transform: scaleX(1);
}

.genre-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
}

.genre-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.genre-icon .icons8-icon {
  width: 30px;
  height: 30px;
}

/* Badge de check */
.genre-check-badge {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: transparent;
  transition: all var(--transition-fast);
}

.genre-card.is-selected .genre-check-badge {
  background: var(--color-terra-gradient);
  border-color: transparent;
  color: #ffffff;
}

.genre-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-primary);
  margin-bottom: 3px;
  transition: color var(--transition-fast);
}

.genre-card.is-selected .genre-name {
  color: var(--color-terra-600);
}

.genre-desc {
  font-size: 0.73rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Grade de VOZ e IDIOMA */
.voice-grid,
.song-lang-grid,
.selection-grid--3cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* ==========================================================================
   10. LYRIC STUDIO — EDITOR DE LETRA (ETAPA 3)
   ========================================================================== */
.lyric-studio-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.lyric-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border-subtle);
}

.lyric-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--color-terra-500);
  font-weight: 600;
}

.lyric-status-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-terra-500);
}

/* Editor de Letra */
.lyric-editor-box {
  background: var(--color-bg-warm);
  border: 1px solid var(--color-border-terra);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--color-text-primary);
  min-height: 290px;
  max-height: 440px;
  overflow-y: auto;
  white-space: pre-wrap;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.lyric-editor-box:focus {
  border-color: var(--color-terra-400);
  box-shadow: 0 0 0 3px var(--color-terra-glow), var(--shadow-sm);
}

/* Scrollbar personalizada do editor */
.lyric-editor-box::-webkit-scrollbar {
  width: 4px;
}

.lyric-editor-box::-webkit-scrollbar-track {
  background: var(--color-bg-surface);
}

.lyric-editor-box::-webkit-scrollbar-thumb {
  background: var(--color-terra-400);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   11. MUSIC STUDIO — COMPARAÇÃO A E B (ETAPA 4)
   ========================================================================== */
.music-studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.music-version-card {
  background: var(--color-bg-card);
  border: 1.5px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-xl);
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.music-version-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-border-subtle);
  transition: background var(--transition-normal);
}

.music-version-card:hover {
  border-color: var(--color-border-terra);
  transform: translateY(-4px);
  box-shadow: var(--shadow-terra);
}

.music-version-card.is-active-choice {
  border-color: var(--color-terra-500);
  background: var(--color-terra-100);
  box-shadow: 0 0 0 1px var(--color-terra-glow), var(--shadow-terra-lg);
}

.music-version-card.is-active-choice::before {
  background: var(--color-terra-gradient-h);
}

.version-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-terra-gradient);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-xs);
  align-self: flex-start;
}

.version-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.version-style-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

/* Mini-Player */
.mini-player-box {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  transition: border-color var(--transition-fast);
}

.mini-player-box:hover {
  border-color: var(--color-border-terra);
}

.mini-play-btn {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--color-terra-gradient);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-terra);
}

.mini-play-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-terra-lg);
}

.mini-play-btn:active {
  transform: scale(0.95);
}

.mini-play-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.mini-player-info {
  flex: 1;
}

.mini-player-progress-bar {
  height: 4px;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 5px;
  cursor: pointer;
  transition: height var(--transition-fast);
}

.mini-player-box:hover .mini-player-progress-bar {
  height: 6px;
}

.mini-player-progress-fill {
  height: 100%;
  background: var(--color-terra-gradient-h);
  width: 0%;
  transition: width 0.1s linear;
}

.mini-player-time {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
}

/* ==========================================================================
   12. ETAPA 5 — PRICING, UPSELL, RESUMO
   ========================================================================== */
.pricing-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.pricing-option-card {
  background: #ffffff;
  border: 2px solid #e5ded5;
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 14px rgba(44, 24, 16, 0.04);
  user-select: none;
}

.pricing-option-card:hover {
  border-color: var(--color-border-terra);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(196, 109, 59, 0.12);
}

/* Estado Selecionado com contraste inconfundível */
.pricing-option-card.is-selected {
  border: 2.5px solid var(--color-terra-500);
  background: linear-gradient(180deg, #fffcf9 0%, #fff2e8 100%);
  box-shadow: 0 14px 34px rgba(196, 109, 59, 0.22), 0 0 0 1px var(--color-terra-500);
  transform: translateY(-2px);
}

/* Cabeçalho do Card (Radio + Badge) */
.pricing-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  margin-bottom: var(--space-sm);
}

.pricing-card-radio {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #cfc4b8;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pricing-option-card.is-selected .pricing-card-radio {
  background: var(--color-terra-gradient);
  border-color: var(--color-terra-500);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(196, 109, 59, 0.35);
}

.pricing-option-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--color-terra-gradient);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(196, 109, 59, 0.25);
  margin-left: auto;
}

.pricing-option-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.pricing-option-price {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-terra-500);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.pricing-option-price span {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  display: block;
  margin-top: 2px;
}

.pricing-option-features {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
  flex-grow: 1;
  text-align: left;
  width: 100%;
  padding: 0 var(--space-xs);
}

.pricing-option-features strong {
  color: var(--color-text-primary);
}

/* Botão/Pill de Seleção Inferior */
.pricing-card-select-btn {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-border-medium);
  color: var(--color-text-secondary);
  background: transparent;
  pointer-events: none;
}

.pricing-option-card.is-selected .pricing-card-select-btn {
  background: var(--color-terra-gradient);
  border-color: transparent;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(196, 109, 59, 0.28);
}

/* ==========================================================================
   UPSELL DE VÍDEO SLIDESHOW COM FOTOS
   ========================================================================== */
.upsell-video-box {
  background: #ffffff;
  border: 2px solid #e5ded5;
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-xl);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(44, 24, 16, 0.04);
}

.upsell-video-box:hover {
  border-color: var(--color-border-terra);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(196, 109, 59, 0.1);
}

.upsell-video-box.is-active {
  background: linear-gradient(180deg, #fffcf9 0%, #fff2e8 100%);
  border: 2.5px solid var(--color-terra-500);
  box-shadow: 0 12px 28px rgba(196, 109, 59, 0.2), 0 0 0 1px var(--color-terra-500);
}

.upsell-checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
  user-select: none;
  width: 100%;
}

.upsell-checkbox-custom {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 2px solid #cfc4b8;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: transparent;
  transition: all 0.2s ease;
}

.upsell-video-box.is-active .upsell-checkbox-custom {
  background: var(--color-terra-gradient);
  border-color: var(--color-terra-500);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(196, 109, 59, 0.35);
}

.upsell-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: var(--space-md);
}

.upsell-info-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upsell-heading {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-primary);
}

.upsell-desc {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-top: 3px;
  line-height: 1.4;
}

.upsell-price-tag {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-terra-500);
  white-space: nowrap;
}

/* ==========================================================================
   DROPZONE E UPLOAD DE FOTOS
   ========================================================================== */
.photo-dropzone {
  border: 2px dashed #d6cac0;
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  background: #fffcf8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.photo-dropzone:hover,
.photo-dropzone.dragover {
  border-color: var(--color-terra-500);
  background: #fff4ec;
  transform: translateY(-2px);
}

.dropzone-icon {
  margin-bottom: var(--space-xs);
}

.dropzone-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.dropzone-subtext {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.photo-thumb-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  border: 1.5px solid var(--color-border-subtle);
  box-shadow: var(--shadow-sm);
}

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

.photo-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background var(--transition-fast);
}

.photo-thumb-remove:hover {
  background: rgba(200, 50, 50, 0.95);
}

/* Cálculo Dinâmico de Tempo */
.video-time-calculation-box {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-terra-100);
  border: 1px solid var(--color-border-terra);
  border-radius: var(--radius-sm);
  margin-top: var(--space-md);
  font-size: 0.8125rem;
  color: var(--color-terra-600);
}

/* --- Resumo do Pedido --- */
.order-summary-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-terra);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.order-summary-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-terra-gradient-h);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  padding-top: var(--space-md) !important;
  margin-top: var(--space-xs);
  border-top: 1px solid var(--color-border-medium) !important;
}

.total-price-val {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-terra-500);
}

/* ==========================================================================
   13. BOTÕES DE NAVEGAÇÃO (PREV / NEXT)
   ========================================================================== */
.wizard-actions-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-md);
}

.btn-nav-prev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-nav-prev:hover {
  color: var(--color-terra-600);
  border-color: var(--color-border-terra);
  background: var(--color-terra-100);
  transform: translateX(-2px);
}

.btn-nav-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: var(--color-terra-gradient);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-terra);
  position: relative;
  overflow: hidden;
}

.btn-nav-next:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-terra-lg);
  filter: brightness(1.05);
}

.btn-nav-next:active {
  transform: translateY(0) scale(0.98);
}

/* Botão padrão de ação */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
}

.btn--gold,
.btn--terra {
  background: var(--color-terra-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-terra);
}

.btn--gold:hover,
.btn--terra:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-terra-lg);
  filter: brightness(1.05);
}

.btn--large {
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
}

.btn--full {
  width: 100%;
}

/* ==========================================================================
   14. OVERLAY DE GERAÇÃO POR IA
   ========================================================================== */
.wizard-ai-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(247, 243, 238, 0.95);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.wizard-ai-loading-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Disco pulsante orgânico */
.ai-pulse-disc {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(196, 109, 59, 0.15) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: breathe 3s var(--ease-in-out) infinite;
}

.ai-pulse-disc::before,
.ai-pulse-disc::after {
  content: '';
  position: absolute;
  border-radius: var(--radius-full);
  border: 1px solid rgba(196, 109, 59, 0.2);
  animation: floatGentle 4s ease-in-out infinite;
}

.ai-pulse-disc::before {
  inset: -14px;
  animation-delay: 0s;
}

.ai-pulse-disc::after {
  inset: -28px;
  border-color: rgba(196, 109, 59, 0.1);
  animation-delay: 0.5s;
}

.ai-loading-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  text-align: center;
  font-style: italic;
}

.ai-loading-status {
  font-size: 0.9rem;
  color: var(--color-terra-500);
  text-align: center;
  min-height: 1.4em;
  transition: opacity var(--transition-fast);
}

/* Barra de progresso da IA */
.ai-progress-bar {
  width: 240px;
  height: 3px;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.ai-progress-fill {
  height: 100%;
  background: var(--color-terra-gradient-h);
  border-radius: var(--radius-full);
  transition: width 0.8s var(--ease-out);
}

/* ==========================================================================
   15. MODAL PIX
   ========================================================================== */
.pix-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 18, 0.6);
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

@media (min-width: 640px) {
  .pix-modal-overlay {
    align-items: center;
    padding: var(--space-xl);
  }
}

.pix-modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.pix-modal-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-terra);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-2xl) var(--space-xl);
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  text-align: center;
  position: relative;
  transform: translateY(30px);
  transition: transform var(--transition-slow);
  overflow: hidden;
}

@media (min-width: 640px) {
  .pix-modal-card {
    border-radius: var(--radius-xl);
    transform: scale(0.95) translateY(20px);
  }
}

.pix-modal-overlay.is-open .pix-modal-card {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .pix-modal-overlay.is-open .pix-modal-card {
    transform: scale(1) translateY(0);
  }
}

/* Linha terracota no topo */
.pix-modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-terra-gradient-h);
}

/* Handle de arraste (mobile) */
.pix-modal-card::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  background: var(--color-border-medium);
  border-radius: var(--radius-full);
}

.pix-qrcode-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: #ffffff;
  border-radius: var(--radius-md);
  margin: var(--space-lg) auto;
  max-width: 200px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-subtle);
}

.pix-qrcode-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   16. RESPONSIVIDADE MOBILE
   ========================================================================== */
@media (max-width: 640px) {
  .wizard-main {
    padding: var(--space-lg) 0 var(--space-3xl);
  }

  .wizard-card {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
  }

  .step-title {
    font-size: 1.55rem;
  }

  .wizard-steps-indicator {
    max-width: 100%;
  }

  .wizard-step-label {
    display: none;
  }

  /* 5 cards em 2 linhas no mobile: 3 + 2 ou scroll horizontal */
  .selection-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }

  .selection-card {
    padding: var(--space-sm) 4px;
    gap: 4px;
  }

  .selection-card-icon {
    width: 36px;
    height: 36px;
  }

  .selection-card-icon svg {
    width: 18px;
    height: 18px;
  }

  .selection-card-title {
    font-size: 0.68rem;
  }

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

  .voice-grid,
  .song-lang-grid {
    grid-template-columns: 1fr 1fr;
  }

  .music-studio-grid {
    grid-template-columns: 1fr;
  }

  .pricing-options-grid {
    grid-template-columns: 1fr;
  }

  .wizard-actions-footer {
    flex-direction: column-reverse;
    gap: var(--space-sm);
  }

  .btn-nav-next,
  .btn-nav-prev {
    width: 100%;
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .upsell-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .upsell-card-wizard {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .upsell-price-col {
    border-left: none;
    border-top: 1px solid var(--color-border-subtle);
    padding-left: 0;
    padding-top: var(--space-md);
  }

  .order-summary-box {
    padding: var(--space-lg);
  }
}

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

  .selection-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }

  .selection-card {
    padding: 6px 2px;
  }

  .selection-card-icon {
    width: 30px;
    height: 30px;
  }

  .selection-card-icon svg {
    width: 15px;
    height: 15px;
  }

  .selection-card-title {
    font-size: 0.6rem;
  }
}