/* Wizard / Typeform - Refonte Hit Factory */

.wizard-view {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.wizard-location-badge {
  position: fixed;
  right: 22px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.83rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 120;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* Scénario label - contexte narratif */
.wizard-scenario {
  display: none;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.wizard-scenario--home { color: rgba(29, 185, 84, 0.8); }
.wizard-scenario--design { color: rgba(34, 197, 94, 0.9); }
.wizard-scenario--studio { color: rgba(139, 92, 246, 0.9); }
.wizard-scenario--producer { color: rgba(239, 84, 102, 0.9); }

/* Step container - typeform full screen */
.wizard-step {
  display: none;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
  min-height: 60vh;
  animation: wizardFadeIn 0.3s ease-out;
}

.wizard-step.is-active {
  display: flex;
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Écran pré-histoire (avant l'aventure) */
.wizard-step--prestory .wizard-question {
  margin-bottom: 1rem;
}

.wizard-step--prestory .wizard-question-sub {
  margin-bottom: 1.35rem;
}

.wizard-question--prestory {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.wizard-next--cta {
  padding: 0.85rem 1.2rem;
  font-size: 0.98rem;
  min-height: 44px;
  box-shadow: 0 4px 16px rgba(29, 185, 84, 0.28);
}

.wizard-next--cta:hover {
  box-shadow: 0 6px 22px rgba(29, 185, 84, 0.34);
}

button.wizard-next {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Écran cinématique (transition façon film) */
.wizard-step--cinematic {
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.78) 0%, rgba(2, 3, 6, 0.92) 100%);
  min-height: 80vh;
}

.wizard-cinematic-content {
  max-width: 600px;
  text-align: center;
  margin-bottom: 2.5rem;
}

.wizard-cinematic-location {
  position: absolute;
  right: 28px;
  bottom: 26px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.wizard-cinematic-text {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
  font-weight: 400;
  animation: wizardFadeIn 0.6s ease-out;
}

.wizard-cinematic-text.hidden {
  visibility: hidden;
}

.wizard-cinematic-text--highlight {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: #ffffff;
}

.wizard-input--title {
  margin-bottom: 0.5rem;
}

.wizard-input.is-loading {
  opacity: 0.8;
}

/* Question / titre typeform */
.wizard-question {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  max-width: 600px;
  margin-bottom: 2rem;
  color: #ffffff;
}

.wizard-question-sub {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.75rem;
  margin-bottom: 1.4rem;
  max-width: 720px;
  text-align: center;
}

/* Groupe input + bouton intégré (typeform unifié) */
.wizard-input-group {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.wizard-input-group--framed {
  margin-top: 0.35rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(10, 14, 22, 0.36);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.wizard-style-block {
  width: min(92vw, 760px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.8rem 0 1rem;
}

.wizard-style-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.wizard-style-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.wizard-style-chip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
}

.wizard-style-chip.is-selected {
  border-color: #1DB954;
  background: rgba(29, 185, 84, 0.18);
}

.wizard-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #1DB954 50%), linear-gradient(135deg, #1DB954 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1em + 4px), calc(100% - 14px) calc(1em + 4px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.wizard-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.wizard-input-grid--pair {
  grid-template-columns: 1fr 1fr;
}

.wizard-input-wrap {
  width: 100%;
}

.wizard-input-hint {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

/* Input arrondi */
.wizard-input {
  width: 100%;
  padding: 0.82rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.wizard-input--large {
  padding: 1rem 1.1rem;
  font-size: 1.05rem;
}

.wizard-input:hover {
  background: rgba(255, 255, 255, 0.08);
}

.wizard-input:focus {
  outline: none;
  border-color: #1DB954;
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.wizard-input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

/* Textarea : arrondi mais adapté (coins arrondis, pas pill) */
.wizard-textarea {
  min-height: 156px;
  resize: vertical;
  border-radius: 14px;
  padding: 0.88rem 1rem;
}

/* Input large (step 0) - bien visible */
.wizard-input-row--large {
  max-width: 600px;
}

.wizard-input-row--large .wizard-input {
  padding: 0.9rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.wizard-input-row--large .wizard-next {
  padding: 0.9rem 1.15rem;
  font-size: 0.98rem;
}

/* Ligne input + bouton côte à côte */
.wizard-input-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  max-width: 520px;
  margin-bottom: 0.5rem;
}

.wizard-input-row .wizard-input {
  flex: 1;
  min-width: 0;
  border-radius: 14px;
  margin-bottom: 0;
}

.wizard-input-row .wizard-next {
  flex-shrink: 0;
  margin: 0;
  padding: 1rem 1.25rem;
}

@media (max-width: 540px) {
  .wizard-input-row {
    flex-direction: column;
  }
  .wizard-input-row .wizard-next {
    width: 100%;
  }
}

/* Bouton suivant intégré */
.wizard-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.15rem;
  font-size: 0.96rem;
  font-weight: 600;
  color: #000;
  background: #1DB954;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.wizard-next--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 700px) {
  .wizard-input-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) and (min-width: 701px) {
  .wizard-input-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.wizard-next:hover {
  background: #1ed760;
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(29, 185, 84, 0.35);
}

.wizard-next:active {
  transform: scale(0.98);
}

.wizard-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.wizard-next.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.wizard-next .enter-key-hint {
  margin-left: 0.45rem;
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(0, 0, 0, 0.22);
  color: rgba(0, 0, 0, 0.78);
}

.wizard-input--error {
  animation: wizardShake 0.4s ease;
  border-color: rgba(239, 68, 68, 0.8) !important;
}

@keyframes wizardShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Alignement homogène pour les steps avec input */
.wizard-step .wizard-input-group .wizard-next {
  align-self: stretch;
  width: 100%;
}

/* Step lyrics bouton Suivant */
#wizard-lyrics-result-wrap .wizard-next {
  margin-top: 0.5rem;
}

/* Choix Pôle Design / Studio */
.wizard-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 560px;
  margin: 2rem 0;
}

@media (max-width: 640px) {
  .wizard-choice-grid {
    grid-template-columns: 1fr;
  }
}

.wizard-choice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.wizard-choice-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.wizard-choice-card--design {
  border-color: rgba(34, 197, 94, 0.4);
}

.wizard-choice-card--design:hover {
  border-color: #22c55e;
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.2);
}

.wizard-choice-card--studio {
  border-color: rgba(139, 92, 246, 0.4);
}

.wizard-choice-card--studio:hover {
  border-color: #8B5CF6;
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2);
}

.wizard-choice-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.wizard-choice-card--design .wizard-choice-icon {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.wizard-choice-card--studio .wizard-choice-icon {
  background: rgba(139, 92, 246, 0.2);
  color: #8B5CF6;
}

.wizard-choice-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.wizard-choice-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* Bureau du producteur - vue plein écran */
.wizard-producer-office {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.wizard-producer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.wizard-producer-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
}

.wizard-producer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.wizard-producer-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.wizard-producer-card:hover {
  border-color: rgba(29, 185, 84, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.wizard-producer-cover {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 3rem;
}

.wizard-producer-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.25);
}

.wizard-producer-info {
  padding: 1rem;
}

.wizard-producer-track {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.wizard-producer-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Packaging + final player */
.wizard-step--packaging {
  min-height: 100vh;
  justify-content: flex-start;
  padding: 5.75rem 1.5rem 2rem;
  overflow: hidden;
}

#wizard-step-10 > #wizard-step-10-package-save {
  display: none;
}

#wizard-step-10 .wizard-question {
  width: min(96vw, 1180px);
  margin: 0 auto 1rem;
  text-align: left;
}

.wizard-packaging {
  width: min(96vw, 1180px);
  height: calc(100vh - 14.5rem);
  min-height: 560px;
  max-height: 760px;
}

.wizard-pack-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1rem;
}

.wizard-pack-shell-head {
  padding: 0 0.15rem;
}

.wizard-pack-shell-copy {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.wizard-pack-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1rem;
}

.wizard-pack-preview-panel,
.wizard-pack-selectors {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(20, 20, 25, 0.78), rgba(10, 10, 15, 0.92));
  border-radius: 22px;
  padding: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 24px 48px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.wizard-pack-preview-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 1rem;
  min-height: 0;
}

.wizard-pack-selectors {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1rem;
  min-height: 0;
}

.wizard-pack-selector-block {
  display: grid;
  grid-template-rows: auto minmax(0, auto);
  gap: 0.8rem;
}

.wizard-pack-selector-block--music {
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

.wizard-pack-main-cover {
  position: relative;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  aspect-ratio: 1;
  max-height: 100%;
}

.wizard-pack-main-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 10, 0.08), rgba(4, 6, 10, 0.18) 45%, rgba(4, 6, 10, 0.78) 100%);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.wizard-pack-main-cover-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: rgba(0, 0, 0, 0.35);
}

.wizard-pack-main-cover-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 2.1rem;
}

.wizard-pack-cover-player {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.wizard-pack-main-cover:hover::after,
.wizard-pack-main-cover:focus-within::after,
.wizard-pack-main-cover.is-playing::after {
  opacity: 1;
}

.wizard-pack-main-cover:hover .wizard-pack-cover-player,
.wizard-pack-main-cover:focus-within .wizard-pack-cover-player,
.wizard-pack-main-cover.is-playing .wizard-pack-cover-player {
  opacity: 1;
}

.wizard-pack-main-cover.controls-idle .wizard-pack-cover-player {
  opacity: 1;
}

.wizard-pack-cover-player.is-disabled {
  pointer-events: none;
}

.wizard-pack-play-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.36);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  backdrop-filter: blur(10px);
  opacity: 1;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.24s ease;
  z-index: 3;
}

.wizard-pack-play-toggle,
.wizard-pack-cover-transport {
  transition: opacity 0.28s ease, transform 0.32s ease, filter 0.28s ease;
}

.wizard-pack-main-cover.controls-idle:not(:hover):not(:focus-within) .wizard-pack-play-toggle {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  filter: blur(2px);
  pointer-events: none;
}

.wizard-pack-play-toggle:hover {
  transform: translate(-50%, -50%) scale(1.04);
  background: rgba(0, 0, 0, 0.58);
  border-color: rgba(255, 255, 255, 0.55);
}

.wizard-pack-play-toggle.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wizard-pack-cover-transport {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(8, 10, 14, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.wizard-pack-main-cover.controls-idle:not(:hover):not(:focus-within) .wizard-pack-cover-transport {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(3px);
  pointer-events: none;
}

.wizard-pack-time {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.84);
  font-family: 'Outfit', sans-serif;
}

.wizard-pack-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.wizard-pack-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #1ed760;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.16);
  cursor: pointer;
}

.wizard-pack-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #1ed760;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.16);
  cursor: pointer;
}

.wizard-pack-title--covers {
  margin-top: 0.1rem;
}

.wizard-pack-title {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.wizard-pack-subhint {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
}

.wizard-pack-selector-head {
  display: flex;
  flex-direction: column;
}

.wizard-pack-covers-grid {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(29, 185, 84, 0.78) rgba(255, 255, 255, 0.08);
}

.wizard-pack-covers-grid::-webkit-scrollbar {
  height: 10px;
}

.wizard-pack-covers-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.wizard-pack-covers-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(29, 185, 84, 0.72), rgba(30, 215, 96, 0.95));
  border-radius: 999px;
  border: 2px solid rgba(8, 10, 14, 0.22);
}

.wizard-pack-covers-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, rgba(30, 215, 96, 0.9), rgba(37, 227, 108, 1));
}

.wizard-pack-covers-grid .wizard-pack-cover {
  flex: 0 0 116px;
}

.wizard-pack-musics-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.wizard-pack-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
  text-align: left;
}

.wizard-pack-item:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.wizard-pack-item.is-selected {
  border-color: #1DB954;
  box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.25);
}

.wizard-pack-cover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  background: rgba(0, 0, 0, 0.25);
}

.wizard-pack-preview-copy {
  min-width: 0;
}

.wizard-pack-preview-eyebrow {
  display: inline-flex;
  margin-bottom: 0.45rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.wizard-pack-preview-title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.08;
  color: #fff;
  overflow-wrap: anywhere;
}

.wizard-pack-preview-meta {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.wizard-pack-confirm-btn {
  width: 100%;
  justify-content: center;
}

.wizard-pack-music {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.88rem 0.9rem;
}

.wizard-pack-music-index {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.wizard-pack-music-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wizard-pack-music-label {
  font-size: 0.92rem;
  font-weight: 650;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wizard-pack-music-meta {
  margin-top: 0.18rem;
  font-size: 0.74rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.54);
}

.wizard-pack-music-state {
  color: rgba(255, 255, 255, 0.18);
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.wizard-pack-music.is-selected .wizard-pack-music-index {
  background: rgba(29, 185, 84, 0.16);
  color: rgba(29, 185, 84, 0.98);
}

.wizard-pack-music.is-selected .wizard-pack-music-state {
  color: rgba(29, 185, 84, 0.98);
  transform: scale(1.05);
}

.wizard-pack-empty {
  padding: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.wizard-final-player {
  width: 100%;
  max-width: 1120px;
}

.wizard-final-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
  width: min(96vw, 1200px);
  margin: 0 auto;
}

.wizard-final-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(145deg, rgba(20, 20, 25, 0.8), rgba(10, 10, 15, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 30px 60px -15px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.wizard-final-cover-wrap {
  width: min(100%, 600px);
}

.wizard-final-cover-stage {
  width: 100%;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.wizard-final-download-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 10, 14, 0.5);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.wizard-final-download-icon:hover {
  transform: translateY(-1px) scale(1.03);
  background: rgba(8, 10, 14, 0.72);
  border-color: rgba(29, 185, 84, 0.45);
}

.wizard-final-cover-stage.is-static::after,
.wizard-final-cover-stage.is-static .wizard-pack-cover-player {
  display: none;
}

.wizard-final-cover-stage .wizard-pack-cover-player {
  padding: 1.15rem;
}

.wizard-final-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 14px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.35);
}

.wizard-final-cover--placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 2.2rem;
  background: rgba(255, 255, 255, 0.05);
}

.wizard-final-meta {
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.wizard-final-actions {
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.wizard-final-download-btn {
  min-height: 62px;
  min-width: 290px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  border-radius: 20px;
  border: 1px solid rgba(29, 185, 84, 0.34);
  background:
    linear-gradient(180deg, rgba(29, 185, 84, 0.2), rgba(29, 185, 84, 0.08)),
    rgba(255, 255, 255, 0.03);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.9rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.wizard-final-download-btn:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(29, 185, 84, 0.28), rgba(29, 185, 84, 0.12)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(29, 185, 84, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 42px rgba(0, 0, 0, 0.26);
}

.wizard-final-action-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(6, 8, 12, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.wizard-final-action-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.wizard-final-action-label {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.1;
}

.wizard-final-action-sub {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.wizard-final-share-btn {
  min-height: 62px;
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  padding: 0.9rem 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.wizard-final-share-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.26);
}

.wizard-final-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.wizard-final-artist {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: rgba(29, 185, 84, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.wizard-final-lyrics-panel {
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 700px;
}

.wizard-final-lyrics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.wizard-final-lyrics-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.wizard-final-lyrics-icon:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(29, 185, 84, 0.34);
}

.wizard-final-lyrics {
  margin-top: 1rem;
  white-space: pre-line;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e2e8f0;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 0.25rem;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(29, 185, 84, 0.7) rgba(255, 255, 255, 0.06);
}

.wizard-final-lyrics.is-empty {
  color: rgba(255, 255, 255, 0.55);
}

.wizard-pack-badge {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 880px) {
  .wizard-step--packaging {
    overflow: auto;
    padding-bottom: 2rem;
  }
  .wizard-packaging {
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .wizard-pack-workspace {
    grid-template-columns: 1fr;
  }
  .wizard-pack-covers-grid {
    padding-bottom: 0.2rem;
  }
  .wizard-pack-main-cover {
    max-height: 68vw;
  }
  .wizard-final-stage {
    grid-template-columns: 1fr;
  }
  .wizard-final-lyrics {
    max-height: none;
  }
  .wizard-final-actions {
    justify-content: stretch;
  }
  .wizard-final-lyrics-head {
    align-items: flex-start;
  }
  .wizard-final-download-btn,
  .wizard-final-share-btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .wizard-step--packaging {
    padding-inline: 1rem;
  }
  #wizard-step-10 .wizard-question {
    width: 100%;
    margin-bottom: 0.8rem;
  }
  .wizard-packaging {
    width: 100%;
  }
  .wizard-pack-preview-panel,
  .wizard-pack-selectors {
    padding: 0.85rem;
    border-radius: 18px;
  }
  .wizard-pack-covers-grid {
    gap: 0.6rem;
  }
  .wizard-pack-covers-grid .wizard-pack-cover {
    flex-basis: 92px;
  }
  .wizard-pack-play-toggle {
    width: 86px;
    height: 86px;
    font-size: 1.7rem;
  }
  .wizard-pack-cover-player {
    padding: 0.75rem;
  }
  .wizard-pack-cover-transport {
    gap: 0.55rem;
    padding: 0.6rem 0.7rem;
  }
  .wizard-final-actions {
    flex-direction: column;
  }
  .wizard-final-lyrics-head {
    flex-direction: column;
    align-items: stretch;
  }
  .wizard-final-download-btn,
  .wizard-final-share-btn {
    width: 100%;
  }
}

/* Progress bar typeform */
.wizard-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 100;
}

.wizard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1DB954, #22c55e);
  border-radius: 0 4px 4px 0;
  transition: width 0.4s ease;
}

/* Loading state */
.wizard-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem;
}

.wizard-loading.hidden {
  display: none !important;
}

.wizard-loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #1DB954;
  border-radius: 50%;
  animation: wizardSpin 0.8s linear infinite;
}

@keyframes wizardSpin {
  to { transform: rotate(360deg); }
}

.wizard-loading-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.wizard-dynamic-line {
  margin-top: 0.45rem;
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: rgba(29, 185, 84, 0.92);
  letter-spacing: 0.01em;
  opacity: 0.9;
  transition: opacity 220ms ease, transform 220ms ease;
}

.wizard-dynamic-line.is-changing {
  opacity: 0.25;
  transform: translateY(3px);
}

.wizard-dynamic-line--ambient {
  width: min(92vw, 1060px);
  margin: 0.2rem auto 0.8rem;
  text-align: left;
}

.wizard-dynamic-line--overlay {
  margin-top: 0.65rem;
  text-align: center;
}

/* Lyrics result in wizard */
#wizard-lyrics-result-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#wizard-step-4 #wizard-lyrics-result-wrap .wizard-question {
  width: min(92vw, 1060px);
  margin: 0 auto 0.85rem;
  text-align: left;
}

.wizard-lyrics-result {
  width: 100%;
  max-width: none;
  max-height: 58vh;
  overflow-y: auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  white-space: pre-wrap;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

.wizard-lyrics-layout {
  width: min(92vw, 1060px);
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.wizard-lyrics-main,
.wizard-lyrics-side {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.1rem;
}

.wizard-regen-card {
  width: 100%;
  margin-bottom: 0;
}

.wizard-title-picks {
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.1rem;
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.08) 0%, rgba(29, 185, 84, 0.02) 100%);
  border: 1px solid rgba(29, 185, 84, 0.25);
  border-radius: 16px;
}

.wizard-title-picks-label {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
}

.wizard-title-picks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.wizard-dynamic-line--titles {
  margin-top: 0.75rem;
  min-height: 1.4rem;
}

.wizard-title-pick {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 12px;
  padding: 0.65rem 1.1rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  transition: all 0.2s ease;
}

.wizard-title-pick:hover {
  border-color: rgba(29, 185, 84, 0.6);
  background: rgba(29, 185, 84, 0.18);
  transform: translateY(-1px);
}

.wizard-title-pick.is-selected {
  border-color: #1DB954;
  background: rgba(29, 185, 84, 0.28);
  box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.35);
}

.wizard-title-picks-regen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wizard-title-picks-regen:hover {
  border-color: rgba(29, 185, 84, 0.5);
  background: rgba(29, 185, 84, 0.12);
  color: #fff;
}

.wizard-title-picks-regen.hidden {
  display: none;
}

.wizard-lyrics-side .wizard-regen-card .wizard-next {
  width: 100%;
}

.wizard-lyrics-next {
  width: auto;
  min-width: 210px;
  margin-top: 0 !important;
}

.wizard-lyrics-actions {
  width: min(92vw, 1060px);
  margin-top: 0.95rem;
  display: flex;
  justify-content: flex-end;
}

.wizard-cover-compose {
  width: 100%;
  margin-top: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.wizard-cover-compose.is-locked {
  opacity: 0.62;
  position: relative;
  overflow: hidden;
}

.wizard-cover-compose.is-locked .wizard-input,
.wizard-cover-compose.is-locked .wizard-next,
.wizard-cover-compose.is-locked .wizard-cover-example {
  pointer-events: none;
}

.wizard-cover-compose.is-locked::after {
  content: attr(data-lock-message);
  position: absolute;
  inset: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 14px;
  background: rgba(6, 8, 12, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.01em;
  pointer-events: none;
}

.wizard-cover-workspace {
  width: min(100%, 1220px);
  margin: 0.35rem auto 0;
}

.wizard-cover-workspace:not(.has-source) .wizard-cover-result-wrap {
  display: none;
}

.wizard-cover-flow {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 1rem;
  align-items: start;
}

.wizard-cover-flow:not(.has-source) #wizard-cover-compose {
  display: none;
}

.wizard-cover-flow:not(.has-source) {
  width: 100%;
  grid-template-columns: 1fr;
}

.wizard-cover-flow:not(.has-source) .wizard-cover-flow-block:first-child {
  padding: 1.35rem;
  position: static;
  top: auto;
}

.wizard-cover-flow:not(.has-source) #wizard-cover-step-1-head {
  gap: 0;
  margin-bottom: 0.95rem;
}

.wizard-cover-flow:not(.has-source) #wizard-cover-step-1-index {
  display: none;
}

.wizard-cover-flow:not(.has-source) #wizard-cover-step-1-head .wizard-cover-step-index {
  width: 44px;
  height: 44px;
  font-size: 0.86rem;
  border-radius: 12px;
}

.wizard-cover-flow:not(.has-source) #wizard-cover-step-1-head .wizard-stage-title {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.wizard-cover-flow:not(.has-source) #wizard-cover-step-1-head .wizard-stage-sub {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
  max-width: none;
  white-space: normal;
}

.wizard-cover-workspace.has-source {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 520px));
  gap: 1rem;
  align-items: start;
  justify-content: center;
}

.wizard-cover-flow.has-source {
  width: 100%;
  grid-template-columns: 1fr;
  min-width: 0;
}

.wizard-cover-flow.has-source .wizard-cover-flow-block:first-child {
  position: static;
  top: auto;
}

.wizard-cover-flow.has-source .wizard-cover-source-wrap {
  margin-top: 0;
}

.wizard-cover-result-wrap {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.wizard-cover-result-empty {
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.85rem;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
  padding: 2rem 1.25rem;
}

.wizard-cover-result-empty i {
  font-size: 1.5rem;
  color: rgba(29, 185, 84, 0.88);
}

.wizard-cover-result-empty p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

.wizard-cover-flow-block {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 0.95rem;
}

.wizard-cover-flow-block:first-child {
  position: sticky;
  top: 96px;
}

.wizard-cover-flow-head {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
}

.wizard-cover-step-index {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0f2d19;
  background: linear-gradient(145deg, #1DB954, #51d980);
  box-shadow: 0 8px 22px rgba(29, 185, 84, 0.24);
  flex-shrink: 0;
}

.wizard-cover-flow-separator {
  display: none;
}

.wizard-cover-flow-separator::before {
  content: none;
}

.wizard-cover-primary-btn {
  width: 100%;
  min-height: 66px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.96);
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.wizard-cover-primary-btn i {
  color: #1DB954;
  font-size: 1.05rem;
}

.wizard-cover-primary-btn:hover {
  border-color: rgba(29, 185, 84, 0.55);
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

.wizard-cover-primary-btn:active {
  transform: translateY(0);
}

.wizard-cover-upload-help {
  margin: 0.9rem 0 0;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  max-width: 40ch;
}

.wizard-cover-upload-card.has-image .wizard-cover-primary-btn,
.wizard-cover-upload-card.has-image .wizard-cover-upload-help {
  display: none;
}

.wizard-cover-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 14, 0.4);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  padding: 1.75rem;
  pointer-events: auto;
}

.wizard-cover-picker-card {
  position: relative;
  width: min(92vw, 620px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)),
    radial-gradient(140% 160% at 0% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(14, 18, 24, 0.72) 72%);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  padding: 1.9rem 1.9rem 1.75rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.wizard-cover-picker-card .wizard-stage-title {
  font-size: 1.08rem;
  margin-bottom: 0.42rem;
  padding-right: 3rem;
}

.wizard-cover-picker-card .wizard-stage-sub {
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.1rem;
  max-width: 46ch;
}

.wizard-cover-upload-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.wizard-cover-upload-actions--modal {
  margin-top: 1.15rem;
}

.wizard-cover-upload-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  min-height: 50px;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wizard-cover-upload-btn--secondary {
  background: rgba(255, 255, 255, 0.06);
}

.wizard-cover-upload-btn i {
  color: #1DB954;
  font-size: 1rem;
}

.wizard-cover-upload-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.wizard-cover-picker-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.94);
  padding: 0;
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wizard-cover-picker-close i {
  font-size: 0.95rem;
}

.wizard-cover-picker-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .wizard-cover-picker-modal {
    padding: 1rem;
  }

  .wizard-cover-picker-card {
    padding: 1.35rem 1.1rem 1.15rem;
  }

  .wizard-cover-upload-actions {
    grid-template-columns: 1fr;
  }

  .wizard-cover-upload-btn {
    min-height: 48px;
  }
}

.wizard-stage-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.18rem;
}

.wizard-stage-sub {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 0.55rem;
}

.wizard-cover-source-wrap {
  width: 100%;
  margin-top: 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  position: relative;
  background: radial-gradient(120% 160% at 10% 0%, rgba(35, 46, 68, 0.3) 0%, rgba(8, 10, 16, 0.92) 70%);
  min-height: 236px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 2.6rem;
}

.wizard-cover-source-toolbar {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
}

.wizard-cover-source-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 12, 18, 0.72);
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.wizard-cover-source-action:hover {
  border-color: rgba(29, 185, 84, 0.55);
  background: rgba(12, 18, 22, 0.86);
}

.wizard-cover-source-caption {
  position: absolute;
  top: 0.8rem;
  left: 0.95rem;
  right: 5.8rem;
  z-index: 1;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

.wizard-cover-source-img {
  width: 100%;
  height: 236px;
  object-fit: contain;
  object-position: center;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.wizard-cover-source-wrap.is-processing .wizard-cover-source-img {
  filter: blur(5px) saturate(0.8);
  transform: scale(1.02);
}

.wizard-cover-source-processing {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: rgba(5, 8, 14, 0.42);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 600;
}

.wizard-cover-compose-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.wizard-cover-generate-btn {
  width: 100%;
  margin-top: 0;
}

.wizard-cover-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0.75rem;
  align-items: stretch;
  margin-top: 0.85rem;
}

.wizard-cover-action-row .wizard-next {
  width: 100%;
}

@media (max-width: 680px) {
  .wizard-cover-action-row {
    grid-template-columns: 1fr;
  }
}

.wizard-cover-examples {
  margin-top: 0.65rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.45rem 0.6rem;
}

.wizard-cover-examples[open] {
  border-style: solid;
}

.wizard-cover-examples-summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  list-style: none;
}

.wizard-cover-examples-summary::-webkit-details-marker {
  display: none;
}

.wizard-cover-examples-summary::after {
  content: "＋";
  float: right;
  color: rgba(29, 185, 84, 0.9);
  font-weight: 700;
}

.wizard-cover-examples[open] .wizard-cover-examples-summary::after {
  content: "－";
}

.wizard-cover-examples-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.wizard-cover-example {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  font-size: 0.86rem;
  line-height: 1.35;
  transition: all 0.2s ease;
  cursor: pointer;
}

.wizard-cover-example:hover {
  border-color: rgba(29, 185, 84, 0.55);
  background: rgba(29, 185, 84, 0.16);
}

.wizard-cover-example-label {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.2rem;
}

.wizard-cover-example-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.wizard-cover-prompt-status {
  margin-top: 0.55rem;
  color: rgba(29, 185, 84, 0.95);
  font-size: 0.86rem;
}

.wizard-cover-guidance {
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.wizard-cover-result-img {
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  max-height: min(54vh, 520px);
  object-fit: contain;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 0.9rem;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  cursor: zoom-in;
}

.wizard-cover-view-large {
  position: absolute;
  top: 1.7rem;
  right: max(calc((100% - min(100%, 520px)) / 2 + 0.7rem), 1.65rem);
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.42);
  color: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  z-index: 2;
}

.wizard-cover-view-large:hover {
  transform: scale(1.04);
  background: rgba(14, 18, 24, 0.58);
  border-color: rgba(255, 255, 255, 0.24);
}

.wizard-cover-result-wrap.is-ready .wizard-cover-result-img {
  animation: wizardCoverReveal 420ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.wizard-cover-result-actions {
  width: min(100%, 520px);
  margin-top: 0.35rem;
}

.wizard-cover-attempts {
  width: min(100%, 520px);
}

.wizard-cover-flow.has-source .wizard-cover-flow-block {
  padding: 1rem;
}

@keyframes wizardCoverReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wizard-cover-attempts {
  margin-bottom: 1rem;
}

.wizard-cover-attempts-title {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.5rem;
}

.wizard-cover-attempts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.6rem;
}

.wizard-cover-attempt {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.25rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.wizard-cover-attempt img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  background: rgba(0, 0, 0, 0.25);
}

.wizard-cover-attempt:hover {
  border-color: rgba(29, 185, 84, 0.6);
  transform: translateY(-1px);
}

.wizard-cover-attempt.is-selected {
  border-color: #1DB954;
  box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.25);
}

/* --- WIZARD STUDIO PRO REFACTOR --- */

.wizard-step--home {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
}

.wizard-step--welcome {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
}

.wizard-step--welcome::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/welcome-splash.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(8px);
  transform: scale(1.07);
  z-index: -2;
}

.wizard-step--welcome::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: -1;
}

.wizard-step--home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/home-splash.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(8px);
  transform: scale(1.07);
  z-index: -2;
}

.wizard-step--home::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: -1;
}

.wizard-step--design-pro {
  padding: 3.2rem 1.5rem;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
}

.wizard-step--design-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/graphiste-splash.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(12px);
  transform: scale(1.06);
  z-index: -2;
}

.wizard-step--design-pro::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: -1;
}

.wizard-step--studio-pro {
  padding: 4rem 1.5rem;
  background-image: url('images/studio-splash.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
}

.wizard-step--studio-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65); /* A dark overlay to keep the text and console legible */
  z-index: -1;
}

.wizard-studio-header {
  max-width: 800px;
  margin: 0 auto 2.25rem;
}

.wizard-step--final-hit {
  padding-top: 2.4rem;
}

.wizard-final-header {
  margin-bottom: 1rem;
}

.wizard-studio-console {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  width: min(96vw, 1200px);
  margin: 0 auto;
  align-items: auto; /* Allow auto height based on content */
}

.wizard-studio-pane {
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  max-height: 700px; /* Don't grow infinitely */
}

.wizard-studio-pane-header {
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wizard-studio-pane-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.wizard-studio-pane-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.wizard-studio-pane-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Important for internal scrollbar */
}

.wizard-music-lyrics-content {
  white-space: pre-wrap;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e2e8f0;
  overflow-y: auto;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  height: 100%;
}

.enhanced-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.enhanced-scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.enhanced-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(29, 185, 84, 0.5);
  border-radius: 4px;
}
.enhanced-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(29, 185, 84, 0.8);
}

/* DECK */
.wizard-studio-deck {
  background: linear-gradient(145deg, rgba(20, 20, 25, 0.8), rgba(10, 10, 15, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 30px 60px -15px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
}

.wizard-style-list--pro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
}

.wizard-style-list--pro.wizard-style-list--music {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-height: min(56vh, 520px);
  overflow-y: auto;
  padding-right: 0.4rem;
  align-content: start;
}

.wizard-style-list--pro.wizard-style-list--music::-webkit-scrollbar {
  width: 8px;
}

.wizard-style-list--pro.wizard-style-list--music::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.wizard-style-list--pro.wizard-style-list--music::-webkit-scrollbar-thumb {
  background: rgba(29, 185, 84, 0.45);
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

.wizard-style-list--pro.wizard-style-list--music::-webkit-scrollbar-thumb:hover {
  background: rgba(29, 185, 84, 0.72);
}

.wizard-style-list--pro .wizard-style-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  min-height: 84px;
  padding: 0.9rem 0.85rem;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 10px 22px rgba(0,0,0,0.22);
  text-align: left;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.wizard-style-list--pro .wizard-style-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0) 45%),
    radial-gradient(100% 100% at 100% 100%, rgba(29, 185, 84, 0.16) 0%, rgba(29, 185, 84, 0) 45%);
  pointer-events: none;
}

.wizard-style-list--pro .wizard-style-chip:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.24);
  color: white;
  transform: translateY(-2px) scale(1.005);
}

.wizard-style-list--pro .wizard-style-chip.is-selected {
  background:
    linear-gradient(180deg, rgba(44, 214, 114, 0.22), rgba(29, 185, 84, 0.1)),
    rgba(10, 16, 12, 0.48);
  border-color: rgba(54, 225, 126, 0.9);
  color: white;
  box-shadow:
    0 0 0 1px rgba(54, 225, 126, 0.28),
    0 14px 24px rgba(8, 12, 10, 0.28),
    inset 0 0 18px rgba(29, 185, 84, 0.1);
  text-shadow: 0 0 12px rgba(29, 185, 84, 0.18);
}

.wizard-style-list--pro .wizard-style-chip--music {
  min-height: 118px;
  padding: 0;
  align-items: stretch;
}

.wizard-style-list--pro .wizard-style-chip--music::before {
  background:
    linear-gradient(180deg, rgba(3, 6, 10, 0.08) 0%, rgba(3, 6, 10, 0.48) 38%, rgba(3, 6, 10, 0.9) 100%),
    radial-gradient(120% 120% at 0% 0%, rgba(139, 92, 246, 0.16) 0%, rgba(139, 92, 246, 0) 45%),
    radial-gradient(100% 100% at 100% 100%, rgba(29, 185, 84, 0.16) 0%, rgba(29, 185, 84, 0) 45%);
  z-index: 1;
  transition: background 0.25s ease;
}

.wizard-style-chip--music .wizard-style-chip__image,
.wizard-style-chip--music .wizard-style-chip__content {
  position: relative;
  z-index: 2;
}

.wizard-style-chip--music .wizard-style-chip__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0.7;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.wizard-style-chip--music .wizard-style-chip__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.2rem;
  min-height: 118px;
  padding: 0.78rem;
  transition: transform 0.25s ease;
}

.wizard-style-chip--music .wizard-style-chip__title {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.72);
  transition: text-shadow 0.25s ease;
}

.wizard-style-chip--music .wizard-style-chip__description {
  display: block;
  font-size: 0.72rem;
  line-height: 1.28;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.68);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.wizard-style-chip--music:hover::before {
  background:
    linear-gradient(180deg, rgba(3, 6, 10, 0.1) 0%, rgba(3, 6, 10, 0.62) 34%, rgba(3, 6, 10, 0.98) 100%),
    radial-gradient(120% 120% at 0% 0%, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0) 45%),
    radial-gradient(100% 100% at 100% 100%, rgba(29, 185, 84, 0.22) 0%, rgba(29, 185, 84, 0) 45%);
}

.wizard-style-chip--music:hover .wizard-style-chip__image {
  transform: scale(1.04);
  opacity: 0.6;
}

.wizard-style-chip--music:hover .wizard-style-chip__content {
  transform: translateY(-1px);
}

.wizard-style-chip--music:hover .wizard-style-chip__title {
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9);
}

.wizard-style-chip--music:hover .wizard-style-chip__description {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.84);
}

.wizard-style-chip--music.is-text-only {
  padding: 0.95rem;
}

.wizard-style-chip--music.is-text-only .wizard-style-chip__content {
  min-height: 120px;
  padding: 0;
}

.wizard-style-chip--music.is-text-only::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    radial-gradient(120% 120% at 0% 0%, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0) 45%),
    radial-gradient(100% 100% at 100% 100%, rgba(29, 185, 84, 0.14) 0%, rgba(29, 185, 84, 0) 45%);
}

.wizard-studio-generate-btn {
  border: 1px solid rgba(54, 225, 126, 0.32);
  border-radius: 14px;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(31, 189, 88, 0.18), rgba(19, 120, 57, 0.14)),
    rgba(10, 16, 12, 0.72);
  color: white;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wizard-studio-generate-btn:hover {
  background:
    linear-gradient(180deg, rgba(31, 189, 88, 0.24), rgba(19, 120, 57, 0.18)),
    rgba(12, 18, 14, 0.82);
  border-color: rgba(54, 225, 126, 0.52);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.wizard-studio-generate-btn:active {
  transform: translateY(0);
}

.wizard-studio-deck-action {
  display: flex;
  align-items: stretch;
  gap: 0.8rem;
}

.wizard-studio-deck-action .wizard-studio-generate-btn {
  flex: 1 1 auto;
}

.wizard-studio-deck-action > button {
  min-height: 58px;
}

.wizard-studio-generate-btn__content {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 1rem;
}

.wizard-studio-generate-btn__label {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.wizard-studio-generate-btn__content i {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

/* PLAYER MODULE */
.wizard-studio-player-module {
  animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wizard-step--studio-pro.has-docked-player {
  padding-bottom: 15rem;
}

.wizard-studio-player-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  margin: 0;
  padding: 0.9rem 1.5rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
  z-index: 40;
}

.wizard-studio-player-dock .wizard-studio-player-header {
  margin-bottom: 0.7rem;
  padding: 0;
}

.wizard-studio-player-dock .wizard-music-player {
  background:
    linear-gradient(180deg, rgba(10, 14, 18, 0.92), rgba(8, 10, 14, 0.96)),
    rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px 20px 0 0;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.wizard-music-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
}

.wizard-music-main {
  min-width: 0;
}

.wizard-music-control-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.wizard-music-progress-wrap {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.wizard-music-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.wizard-music-player-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 0.9rem;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* EQ REMOVED */

.wizard-pro-range {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}

.wizard-pro-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
  transition: transform 0.1s;
}

.wizard-pro-range::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.wizard-pro-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
  transition: transform 0.1s;
}

.wizard-pro-range::-moz-range-thumb:hover {
  transform: scale(1.3);
}

.wizard-music-cover {
  width: 64px;
  height: 64px;
}

.wizard-music-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
}

.wizard-next--pro-studio {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: 999px;
  color: white;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.wizard-next--pro-studio i {
  margin: 0;
}

.wizard-next--pro-studio:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
  transform: translateX(4px);
  color: white;
}

.wizard-next--pro-studio-inline {
  flex: 0 0 auto;
  min-width: 198px;
  padding: 0.45rem 0.5rem 0.45rem 0.85rem;
  border-radius: 14px;
  justify-content: space-between;
}

.wizard-next--pro-studio-inline .font-bold {
  font-size: 0.84rem;
}

.wizard-next--pro-studio-inline .w-8 {
  width: 2rem;
  height: 2rem;
}

.wizard-music-audio {
  display: none;
}

/* Loading States */
#wizard-step-8.is-loading .wizard-studio-deck {
  pointer-events: none;
  opacity: 0.6;
  filter: saturate(0.5);
  animation: pulse-deck 2s infinite alternate;
}

@keyframes pulse-deck {
  from { box-shadow: 0 0 20px rgba(29, 185, 84, 0.1); }
  to { box-shadow: 0 0 40px rgba(29, 185, 84, 0.3); }
}

@media (max-width: 1024px) {
  .wizard-studio-console {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wizard-step--studio-pro.has-docked-player {
    padding-bottom: 18rem;
  }

  .wizard-studio-deck {
    padding: 1.5rem;
  }

  .wizard-studio-deck-action {
    flex-direction: column;
  }

  .wizard-next--pro-studio-inline {
    width: 100%;
    min-width: 0;
  }

  .wizard-studio-player-dock {
    padding: 0.75rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  .wizard-studio-player-dock .wizard-music-player {
    padding: 1rem;
  }

  .wizard-music-shell {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .wizard-music-control-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .wizard-music-progress-wrap {
    width: 100%;
  }

  .wizard-music-side {
    justify-content: stretch;
  }

  .wizard-music-side .wizard-music-volume {
    width: 100%;
  }

  .wizard-music-player-actions .wizard-next--pro-studio {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
}

.wizard-music-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(8, 10, 14, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.wizard-music-loading-card {
  width: min(92vw, 520px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)),
    radial-gradient(140% 140% at 0% 0%, rgba(29, 185, 84, 0.12) 0%, rgba(18, 22, 28, 0.74) 58%);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255,255,255,0.1);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.wizard-music-loading-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wizard-music-loading-icons::before {
  content: "\f001";
  position: absolute;
  right: -0.02em;
  bottom: -0.18em;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: clamp(8rem, 22vw, 11rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  transform: rotate(-18deg);
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.wizard-music-loading-icons i {
  display: none;
}

.wizard-music-loading-card > * {
  position: relative;
  z-index: 1;
}

.wizard-music-loading-card > p:first-of-type {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
}

@media (max-width: 960px) {
  .wizard-music-layout {
    grid-template-columns: 1fr;
  }
  .wizard-music-lyrics-content {
    max-height: 32vh;
  }
}

.wizard-regen-label {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.wizard-textarea--small {
  min-height: 130px;
  margin-bottom: 0.7rem;
}

.wizard-regen-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.7rem;
  color: rgba(29, 185, 84, 0.95);
  font-size: 0.88rem;
}

.wizard-regen-help {
  margin: 0 0 0.95rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.wizard-regen-help-icon {
  flex: 0 0 auto;
  margin-top: 0.05rem;
  color: rgba(255, 255, 255, 0.82);
}

.wizard-mini-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(29, 185, 84, 0.28);
  border-top-color: #1DB954;
  border-radius: 50%;
  animation: wizardSpin 0.8s linear infinite;
}

.wizard-lyrics-result.is-regenerating {
  pointer-events: none;
}

.wizard-lyrics-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  animation: lyricsFadeIn 180ms ease;
}

.wizard-lyrics-skeleton-line {
  display: block;
  width: var(--w, 100%);
  height: 0.95rem;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.18) 35%, rgba(255, 255, 255, 0.08) 70%);
  background-size: 200% 100%;
  animation: lyricsShimmer 1.2s ease-in-out infinite;
}

@keyframes lyricsShimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@keyframes lyricsFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .wizard-lyrics-layout {
    grid-template-columns: 1fr;
  }
  .wizard-lyrics-result {
    max-height: 44vh;
  }
  .wizard-lyrics-actions {
    justify-content: stretch;
  }
  .wizard-lyrics-next {
    width: 100%;
  }
  .wizard-cover-compose-row {
    grid-template-columns: 1fr;
  }
  .wizard-cover-flow {
    grid-template-columns: 1fr;
  }
}

#wizard-lyrics-result-wrap.hidden {
  display: none !important;
}

.wizard-lyrics-result::-webkit-scrollbar {
  width: 8px;
}

.wizard-lyrics-result::-webkit-scrollbar-thumb {
  background: rgba(29, 185, 84, 0.4);
  border-radius: 4px;
}

.wizard-lyrics-marker {
  color: #1DB954;
  font-weight: 700;
}

/* Header compact pour wizard */
.wizard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.wizard-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.wizard-logo span {
  color: #1DB954;
}

.wizard-cover-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8, 10, 14, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.wizard-cover-loading-card {
  width: min(92vw, 460px);
  padding: 1.5rem 1.4rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)),
    radial-gradient(140% 140% at 0% 0%, rgba(29, 185, 84, 0.12) 0%, rgba(18, 22, 28, 0.74) 58%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255,255,255,0.1);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.wizard-cover-loading-card > p:first-of-type {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
}

@media (max-width: 680px) {
  .wizard-cover-workspace.has-source {
    grid-template-columns: 1fr;
  }

  .wizard-cover-flow-block:first-child {
    position: static;
  }
  .wizard-cover-upload-actions {
    grid-template-columns: 1fr;
  }
  .wizard-cover-source-img {
    height: 220px;
  }
}
