/* ── Welcome Intro screen ─────────────────────────────────── */
.welcome-screen {
  padding-top: 20px;
}
.welcome-screen .wizard-sub {
  font-size: 1.05rem;
  line-height: 1.75;
}

/* wizard.css — layered on top of theme.css variables; no redefines */

.wizard-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.wizard-progress {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.wizard-page h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 10px;
  line-height: 1.15;
}

.wizard-sub {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 40px;
  line-height: 1.6;
}

.wizard-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
}

.wizard-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
  width: 100%;
}

.wizard-input:focus {
  outline: none;
  border-color: var(--accent);
}

.wizard-input::placeholder { color: var(--muted); }

.wizard-input.input-error { border-color: #ef4444; }

textarea.wizard-input {
  resize: vertical;
  min-height: 80px;
}

.hook-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hook-count {
  font-size: 0.78rem;
  color: var(--muted);
}

.field-error {
  font-size: 0.82rem;
  color: #ef4444;
  min-height: 1.2em;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.section-heading {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.optional-badge {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px 10px;
}

.social-group label {
  color: var(--muted);
  font-weight: 500;
}

.wizard-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  border-radius: 12px;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .wizard-form { padding: 28px 20px; }
  .wizard-page { padding: 40px 16px 80px; }
}

/* ── Photo upload (Step 3) ───────────────────────────────── */

.photo-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.photo-upload-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  align-self: flex-start;
}

.photo-drop-zone {
  width: 100%;
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
  text-align: center;
}

.photo-drop-zone:hover,
.photo-drop-zone.drag-over {
  border-color: var(--accent);
}

.photo-drop-zone svg {
  width: 40px;
  height: 40px;
  color: var(--muted);
  flex-shrink: 0;
}

.photo-drop-zone-text {
  font-size: 0.9rem;
  color: var(--muted);
}

.photo-drop-zone-text strong {
  color: var(--accent);
  font-weight: 600;
}

.photo-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#photo-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  display: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}

#photo-preview.visible {
  display: block;
}

.remove-photo-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--font-body);
  padding: 4px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.remove-photo-btn:hover { border-color: #ef4444; color: #ef4444; }

.photo-hint {
  font-size: 0.78rem;
  color: var(--muted);
  align-self: flex-start;
}

.btn-skip {
  background: none;
  border: 2px solid var(--border);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  padding: 14px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  width: 100%;
}
.btn-skip:hover { border-color: var(--accent); color: var(--accent); }

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.instrument-row {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.instrument-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.instrument-name-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
}

.instrument-remove-wrap { margin-left: auto; }

.instrument-name-input {
  font-size: 1.05rem;
  font-weight: 500;
}

.tiers-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: start;
}

.tier-row .wizard-input { margin-bottom: 0; }

.tier-header-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  padding-bottom: 2px;
}

.remove-tier-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color 0.2s;
  margin-top: 2px;
}
.remove-tier-btn:hover { color: #ef4444; }

.add-tier-btn {
  background: none;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  font-family: var(--font-body);
  padding: 5px 14px;
  border-radius: 8px;
  cursor: pointer;
  width: fit-content;
  transition: border-color 0.2s, color 0.2s;
}
.add-tier-btn:hover { border-color: var(--accent); color: var(--accent); }

.remove-instrument-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--font-body);
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
  width: fit-content;
  transition: border-color 0.2s, color 0.2s;
}
.remove-instrument-btn:hover { border-color: #ef4444; color: #ef4444; }
.remove-instrument-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.remove-instrument-btn:disabled:hover { border-color: var(--border); color: var(--muted); }

.add-instrument-wrap {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.add-instrument-btn {
  background: none;
  border: 2px dashed var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--font-body);
  padding: 11px 28px;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  width: 100%;
}
.add-instrument-btn:hover { border-color: var(--accent); color: var(--accent); }

.back-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}
.back-link:hover { color: var(--fg); }

@media (max-width: 540px) {
  .tier-row { grid-template-columns: 1fr 1fr; }
  .remove-tier-btn { grid-column: 1 / -1; justify-self: start; padding-left: 0; margin-top: 0; }
  .wizard-submit { font-size: 0.95rem; padding: 14px; }
}

/* ── Placeholder card (Steps 6–9) ─────────────────────────── */
.placeholder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.lock-icon {
  width: 32px;
  height: 32px;
  color: var(--muted);
  flex-shrink: 0;
}

/* ── Reviews (Step 6) ────────────────────────────────────── */
.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-card-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
}

.remove-review-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--font-body);
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.remove-review-btn:hover { border-color: #ef4444; color: #ef4444; }

.star-row {
  display: flex;
  gap: 2px;
  align-items: center;
}

.star-row-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-right: 6px;
}

.star-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--border);
  padding: 2px 3px;
  line-height: 1;
  transition: color 0.15s;
}
.star-btn.active { color: #f59e0b; }
.star-btn:hover  { color: #f59e0b; }

.add-review-btn {
  background: none;
  border: 2px dashed var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--font-body);
  padding: 11px 28px;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  width: 100%;
}
.add-review-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Studio Photos Gallery (Step 7) ─────────────────────── */
.studio-gallery-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.gallery-drop-zone {
  width: 100%;
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
  text-align: center;
}
.gallery-drop-zone:hover,
.gallery-drop-zone.drag-over { border-color: var(--accent); }

.gallery-drop-zone svg { width: 36px; height: 36px; color: var(--muted); }
.gallery-drop-zone-text { font-size: 0.88rem; color: var(--muted); }
.gallery-drop-zone-text strong { color: var(--accent); font-weight: 600; }

.gallery-count {
  font-size: 0.8rem;
  color: var(--muted);
  align-self: flex-start;
}

#gallery-previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.gallery-thumb-wrap {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.remove-gallery-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.65);
  border: none;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.remove-gallery-btn:hover { background: #ef4444; }

/* ── Color Theme (Step 8) ─────────────────────────────── */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.theme-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: center;
  user-select: none;
}

.theme-tile:hover {
  border-color: var(--accent);
}

.theme-tile.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.theme-swatch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.theme-tile-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}

.theme-tile.selected .theme-tile-name {
  color: var(--accent);
}

.custom-color-wrap {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-color-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-color-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

#custom_color_input {
  width: 48px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  padding: 2px;
}

.custom-color-wrap.disabled {
  opacity: 0.4;
  pointer-events: none;
}

@media (max-width: 480px) {
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Celebration page (wizard/complete) ───────────────────── */

.celebration-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  box-sizing: border-box;
  text-align: center;
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.url-display-box {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 520px;
  margin-bottom: 32px;
}

.url-display-input {
  flex: 1;
  background: var(--bg-alt);
  border: 1.5px solid var(--accent);
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: 14px 18px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.copy-btn {
  background: var(--accent);
  color: #0a0f1e;
  border: none;
  border-radius: 0 10px 10px 0;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.copy-btn:hover { background: #fbbf24; }
.copy-btn:active { transform: scale(0.97); }
.copy-btn.copied { background: #10b981; color: #fff; }

.celebration-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 480px) {
  .url-display-box { flex-direction: column; }
  .url-display-input {
    border-right: 1.5px solid var(--accent);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    text-align: center;
  }
  .copy-btn {
    border-radius: 0 0 10px 10px;
    width: 100%;
    text-align: center;
  }
  .celebration-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
  .btn-see-page,
  .btn-dashboard {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}
