/* ============================================================================
   Capi Cândia Pro — Wizard v3 (full-screen takeover) · Liquid Glass refinado
   ============================================================================ */

/* ─── View Transitions cross-document ───
   IMPORTANTE: o opt-in `@view-transition { navigation: auto }` foi movido
   para wizard-v3-transitions.css (carregado apenas pelas páginas do wizard).
   Quando aplicado globalmente, qualquer navegação a partir do index/dashboard
   dispara `AbortError: Transition was skipped` no destino sem snapshot.
   Os `view-transition-name` e `::view-transition-*` abaixo permanecem inertes
   até que o opt-in seja carregado pelas páginas do wizard. */

/* Anima só a área de conteúdo central, não a chrome (topbar/footer) */
.ft-top, .ft-foot {
  view-transition-name: ft-chrome-fixed;
}
.ft-main {
  view-transition-name: ft-main-content;
}

::view-transition-old(ft-main-content) {
  animation: ftSlideOut 240ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
::view-transition-new(ft-main-content) {
  animation: ftSlideIn 280ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
/* Topbar e footer NÃO animam — ficam ancorados, dando sensação de espaço contínuo */
::view-transition-old(ft-chrome-fixed),
::view-transition-new(ft-chrome-fixed) {
  animation: none;
  mix-blend-mode: normal;
}

@keyframes ftSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-14px); }
}
@keyframes ftSlideIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes dsModalScaleIn {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.ft {
  position: fixed; inset: 0; z-index: 100;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(212,160,23,0.10) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(212,160,23,0.04) 0%, transparent 60%),
    #0a0a0a;
  display: flex; flex-direction: column;
}

/* ─── Topbar liquid glass ─── */
.ft-top {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
  padding: 0 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025) 0%, transparent 100%),
    rgba(10,10,10,0.60);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  gap: 16px;
  position: relative;
}
.ft-top::after {
  content: ''; position: absolute;
  bottom: -1px; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
  pointer-events: none;
}

.ft-top-eyebrow {
  font-family: var(--ds-font-mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ds-text-muted);
}
.ft-top-progress {
  font-family: var(--ds-font-mono);
  font-size: 11px;
  color: var(--ds-text-2);
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 12px;
}
.ft-top-progress .ft-step-dots {
  display: inline-flex; gap: 4px; align-items: center;
}
.ft-top-progress .ft-step-dots .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.10);
  transition: all .2s ease;
}
.ft-top-progress .ft-step-dots .dot.done {
  background: var(--ds-gold);
  opacity: 0.5;
  box-shadow: 0 0 6px rgba(212,160,23,0.35);
}
.ft-top-progress .ft-step-dots .dot.active {
  background: var(--ds-gold);
  width: 22px; border-radius: 3px;
  box-shadow: 0 0 10px rgba(212,160,23,0.50);
}
.ft-top-progress b { color: var(--ds-text); font-weight: 600; }

.ft-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--ds-text-muted);
  width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .12s ease;
}
.ft-close:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.16);
  color: var(--ds-text);
}
.ft-close svg { width: 16px; height: 16px; }

/* ─── Main com scroll invisível ─── */
.ft-main {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ft-main::-webkit-scrollbar { width: 0; height: 0; display: none; }

.ft-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 40px 32px;
}
.ft-container-sm {
  max-width: 660px;
  margin: 0 auto;
  padding: 48px 32px 32px;
}

/* ─── Hero ─── */
.ft-hero {
  text-align: center;
  margin-bottom: 36px;
}
.ft-hero-eyebrow {
  display: inline-block;
  font-family: var(--ds-font-mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ds-gold);
  margin-bottom: 14px;
  opacity: 0.85;
}
.ft-hero h1 {
  font-family: var(--ds-font-display);
  font-size: 28px; font-weight: 600;
  color: var(--ds-text);
  margin: 0 0 8px;
  letter-spacing: -0.025em;
  line-height: 1.18;
}
.ft-hero h1 b { color: var(--ds-gold); font-weight: 600; }
.ft-hero p {
  font-size: 14px;
  color: var(--ds-text-2);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.55;
}
.ft-hero.is-large h1 { font-size: 36px; }
.ft-hero.is-large p { font-size: 15px; max-width: 520px; }

/* ─── Search liquid glass ─── */
.ft-search-wrap {
  max-width: 480px;
  margin: 22px auto 0;
  position: relative;
}
.ft-search-wrap svg {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  color: var(--ds-text-muted);
  pointer-events: none;
  z-index: 1;
}
.ft-search-wrap input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%),
    rgba(20,18,15,0.45);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--ds-text);
  font-family: var(--ds-font-sans);
  font-size: 13.5px;
  outline: none;
  transition: all .15s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.ft-search-wrap input:focus {
  border-color: rgba(212,160,23,0.45);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 60%),
    rgba(28,24,18,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 4px rgba(212,160,23,0.08);
}
.ft-search-wrap input::placeholder { color: var(--ds-text-muted); }

/* ─── Filter pills ─── */
.ft-filters {
  display: flex; align-items: center; gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 28px;
}
.ft-filter {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ds-text-muted);
  border-radius: 999px;
  font-family: var(--ds-font-sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
}
.ft-filter:hover {
  color: var(--ds-text-2);
  background: rgba(255,255,255,0.03);
}
.ft-filter.active {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%),
    rgba(212,160,23,0.10);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-color: rgba(212,160,23,0.30);
  color: var(--ds-gold);
}
.ft-filter-count {
  font-family: var(--ds-font-mono);
  font-size: 10px;
  opacity: 0.6;
  margin-left: 4px;
}

/* ─── Cards liquid glass (step 1) ─── */
.ft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ft-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.045) 0%, transparent 55%),
    rgba(20,18,15,0.45);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
  display: flex; flex-direction: column;
  text-align: left;
  font-family: var(--ds-font-sans);
  color: var(--ds-text);
  box-shadow:
    0 8px 20px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}
/* Rim light no topo */
.ft-card::after {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.20), transparent);
  pointer-events: none;
}
.ft-card:hover {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 55%),
    rgba(28,24,18,0.55);
  border-color: rgba(212,160,23,0.30);
}
.ft-card.selected {
  border-color: var(--ds-gold);
  background:
    linear-gradient(135deg, rgba(212,160,23,0.10) 0%, transparent 55%),
    rgba(28,24,18,0.55);
  box-shadow:
    0 8px 20px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(212,160,23,0.30);
}
.ft-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
  position: relative;
}
.ft-card-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(212,160,23,0.18) 0%, transparent 70%),
    rgba(212,160,23,0.08);
  border: 1px solid rgba(212,160,23,0.22);
  color: var(--ds-gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.ft-card-icon svg { width: 16px; height: 16px; }
.ft-card-cat {
  font-family: var(--ds-font-mono);
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ds-text-muted);
}
.ft-card-title {
  font-family: var(--ds-font-display);
  font-size: 14px; font-weight: 600;
  color: var(--ds-text);
  margin: 0 0 4px;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.ft-card-desc {
  font-size: 12px;
  color: var(--ds-text-2);
  line-height: 1.45;
  margin: 0 0 12px;
  flex: 1;
}
.ft-card-meta {
  font-family: var(--ds-font-mono);
  font-size: 10.5px;
  color: var(--ds-text-muted);
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ft-card-meta svg { width: 10px; height: 10px; }

/* ─── Form fields ─── */
.ft-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.ft-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.ft-label {
  font-family: var(--ds-font-mono);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ds-text-muted);
}
.ft-label-row {
  display: flex; align-items: center; justify-content: space-between;
}
.ft-label-row .opt {
  color: var(--ds-text-muted);
  opacity: 0.5;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 10px;
}

.ft-input,
.ft-textarea {
  width: 100%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%),
    rgba(20,18,15,0.40);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  color: var(--ds-text);
  font-family: var(--ds-font-sans);
  font-size: 13.5px;
  padding: 11px 12px;
  outline: none;
  transition: all .15s ease;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.ft-input:focus,
.ft-textarea:focus {
  border-color: rgba(212,160,23,0.40);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%),
    rgba(28,24,18,0.50);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 4px rgba(212,160,23,0.08);
}
.ft-input::placeholder,
.ft-textarea::placeholder { color: var(--ds-text-muted); opacity: 0.65; }

.ft-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.55;
}

.ft-hint {
  font-family: var(--ds-font-mono);
  font-size: 10.5px;
  color: var(--ds-text-muted);
  letter-spacing: 0.02em;
  opacity: 0.7;
  margin-top: 2px;
}

/* ─── Sections liquid glass (steps 2-5) ─── */
.ft-section {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.035) 0%, transparent 55%),
    rgba(20,18,15,0.40);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 12px;
  box-shadow:
    0 8px 20px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}
.ft-section::after {
  content: ''; position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
  pointer-events: none;
}
.ft-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.ft-section-title {
  font-family: var(--ds-font-display);
  font-size: 13px; font-weight: 600;
  color: var(--ds-text);
  letter-spacing: -0.003em;
}
.ft-section-edit {
  background: transparent;
  border: none;
  color: var(--ds-text-muted);
  padding: 0;
  font-family: var(--ds-font-sans);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color .12s ease;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.ft-section-edit:hover { color: var(--ds-gold); }
.ft-section-edit svg { width: 11px; height: 11px; }

/* ─── Dropzone liquid glass ─── */
.ft-dropzone {
  position: relative;
  background:
    linear-gradient(135deg, rgba(212,160,23,0.08) 0%, transparent 70%),
    rgba(20,18,15,0.35);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1.5px dashed rgba(212,160,23,0.30);
  border-radius: 14px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all .18s ease;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.ft-dropzone::after {
  content: ''; position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
  pointer-events: none;
}
.ft-dropzone:hover,
.ft-dropzone.dragover {
  border-color: var(--ds-gold);
  background:
    linear-gradient(135deg, rgba(212,160,23,0.12) 0%, transparent 70%),
    rgba(28,24,18,0.50);
}
.ft-dropzone-icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(212,160,23,0.22) 0%, transparent 70%),
    rgba(212,160,23,0.10);
  border: 1px solid rgba(212,160,23,0.30);
  color: var(--ds-gold);
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}
.ft-dropzone-icon svg { width: 20px; height: 20px; }
.ft-dropzone-title {
  font-family: var(--ds-font-display);
  font-size: 14px; font-weight: 600;
  color: var(--ds-text);
  margin-bottom: 4px;
}
.ft-dropzone-sub {
  font-family: var(--ds-font-mono);
  font-size: 11px;
  color: var(--ds-text-muted);
  letter-spacing: 0.04em;
}
.ft-dropzone-sub b { color: var(--ds-text-2); font-weight: 500; }

/* ─── Upload list ─── */
.ft-upload-list { display: flex; flex-direction: column; gap: 6px; }
.ft-upload-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.025) 0%, transparent 60%),
    rgba(20,18,15,0.35);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}
.ft-upload-item.ok { border-color: rgba(74,222,128,0.20); }
.ft-upload-item.processing { border-color: rgba(212,160,23,0.25); }
.ft-upload-item.error { border-color: rgba(248,113,113,0.25); }
.ft-upload-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 70%),
    rgba(255,255,255,0.03);
  color: var(--ds-text-muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.ft-upload-item.ok .ft-upload-icon { color: var(--ds-gold); }
.ft-upload-icon svg { width: 14px; height: 14px; }
.ft-upload-meta { flex: 1; min-width: 0; }
.ft-upload-name {
  font-size: 12.5px; font-weight: 500;
  color: var(--ds-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ft-upload-status {
  font-family: var(--ds-font-mono);
  font-size: 10px;
  color: var(--ds-text-muted);
  letter-spacing: 0.04em;
  margin-top: 1px;
}
.ft-upload-status.ok { color: var(--ds-success); }
.ft-upload-status.error { color: var(--ds-error); }
.ft-upload-remove {
  background: transparent; border: none;
  color: var(--ds-text-muted);
  width: 24px; height: 24px; border-radius: 5px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .12s ease;
}
.ft-upload-remove:hover { color: var(--ds-error); background: rgba(248,113,113,0.10); }
.ft-upload-remove svg { width: 12px; height: 12px; }

/* ─── Tip · liquid glass dourado sutil ─── */
.ft-tip {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(212,160,23,0.10) 0%, transparent 70%),
    rgba(20,18,15,0.30);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(212,160,23,0.22);
  border-radius: 10px;
  margin: 12px 0;
  font-size: 12.5px;
  color: var(--ds-text-2);
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.ft-tip-icon {
  width: 14px; height: 14px;
  color: var(--ds-gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.ft-tip b { color: var(--ds-gold); font-weight: 600; }

/* ─── Checkbox ─── */
.ft-check {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ds-text-2);
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}
.ft-check input[type="checkbox"] {
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  position: relative;
  transition: all .12s ease;
}
.ft-check input[type="checkbox"]:checked {
  background: var(--ds-gold);
  border-color: var(--ds-gold);
}
.ft-check input[type="checkbox"]:checked::after {
  content: ''; position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 8px;
  border: solid #1a1200;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ─── 2-col ─── */
.ft-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* ─── Revisão row ─── */
.ft-rev-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 10px 0;
  font-size: 13px;
  align-items: start;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ft-rev-row:last-child { border-bottom: none; padding-bottom: 0; }
.ft-rev-row:first-child { padding-top: 0; }
.ft-rev-label {
  font-family: var(--ds-font-mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ds-text-muted);
  padding-top: 1px;
}
.ft-rev-value {
  color: var(--ds-text);
  line-height: 1.5;
}
.ft-rev-value.empty { color: var(--ds-text-muted); font-style: italic; }

/* ─── Footer liquid glass ─── */
.ft-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 14px 24px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.025) 100%),
    rgba(10,10,10,0.60);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  position: relative;
}
.ft-foot::before {
  content: ''; position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
  pointer-events: none;
}
.ft-foot-left,
.ft-foot-right { display: flex; gap: 8px; align-items: center; }
.ft-foot-hint {
  font-family: var(--ds-font-mono);
  font-size: 10.5px;
  color: var(--ds-text-muted);
  letter-spacing: 0.04em;
}
.ft-foot-hint kbd {
  display: inline-block;
  padding: 1px 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 3px;
  font-family: var(--ds-font-mono);
  font-size: 9.5px;
  color: var(--ds-text-2);
}
.ft-foot-hint b { color: var(--ds-gold); font-weight: 500; }

/* ─── CTA (step 5) · sólido refinado ─── */
.ft-cta-big {
  background: var(--ds-gold);
  color: #1a1200;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: var(--ds-font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .12s ease, box-shadow .15s ease;
  box-shadow: 0 4px 12px rgba(212,160,23,0.25);
}
.ft-cta-big:hover {
  background: var(--ds-gold-hover);
  box-shadow: 0 6px 16px rgba(212,160,23,0.35);
}
.ft-cta-big svg { width: 13px; height: 13px; }

/* ─── Responsivo ─── */
@media (max-width: 900px) {
  .ft-hero h1 { font-size: 24px; }
  .ft-hero.is-large h1 { font-size: 28px; }
  .ft-two-col { grid-template-columns: 1fr; gap: 0; }
  .ft-field-row { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ft-container, .ft-container-sm { padding: 32px 20px 24px; }
  .ft-top { padding: 0 16px; }
  .ft-top-eyebrow { display: none; }
  .ft-foot { padding: 12px 16px; }
  .ft-grid { grid-template-columns: 1fr; }
  .ft-rev-row { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; }
}

/* ============================================================================
   OVERRIDES — Aplica visual v3 no modal openWizard() do index.html
   Mantém TODO o JS (renderStep*, wizardData, fetch backend) intacto.
   Modal centralizado (não mais full-screen takeover) — X solto no canto,
   step indicator centralizado, scroll interno invisivel.
   ============================================================================ */

/* ── Shell: overlay com backdrop escuro + blur ── */
.wizard-overlay {
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}
.wizard-overlay.open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

/* ── Container: modal compact v1 (Linear/Stripe vibe) ── */
.wizard-container {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%),
    rgba(18,16,14,0.95);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  width: 100%;
  max-width: 760px;
  max-height: min(calc(100vh - 40px), 720px);
  max-height: min(calc(100dvh - 40px), 720px);
  height: auto;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.55),
    0 12px 32px rgba(0,0,0,0.40),
    inset 0 1px 0 rgba(255,255,255,0.08);
  animation: dsModalScaleIn 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Mobile: bottom-sheet vibe */
@media (max-width: 700px) {
  .wizard-overlay.open { padding: 12px; align-items: flex-end; }
  .wizard-container {
    max-width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 14px 14px 0 0;
  }
}

/* ── Header: visivel, icon + title + sub + close ── */
.wizard-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  background: transparent !important;
  flex-shrink: 0;
  position: relative;
}
.wizard-header-left {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.wizard-header-icon {
  width: 36px !important; height: 36px !important;
  border-radius: 10px !important;
  background: var(--ds-gold-dim) !important;
  border: 1px solid var(--ds-gold-border) !important;
  color: var(--ds-gold) !important;
  display: flex !important; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wizard-header-icon svg { width: 18px; height: 18px; stroke: var(--ds-gold) !important; }
.wizard-header-text { min-width: 0; }
.wizard-header-text h3 {
  font-family: var(--ds-font-display) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--ds-text) !important;
  margin: 0 !important;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.wizard-header-text span {
  font-family: var(--ds-font-mono) !important;
  font-size: 10.5px !important;
  color: var(--ds-text-muted) !important;
  letter-spacing: 0.05em;
  display: block;
  margin-top: 2px;
}

/* ── Close: dentro do header, ao lado direito ── */
.wizard-close {
  position: static;
  width: 32px !important; height: 32px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 8px;
  color: var(--ds-text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .12s ease;
  flex-shrink: 0;
}
.wizard-close:hover {
  color: var(--ds-text);
  background: rgba(255,255,255,0.06) !important;
}

/* ── Progress: dots numerados com labels (v1) ── */
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px !important;
  background: rgba(0,0,0,0.20) !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  position: relative;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.wizard-progress::-webkit-scrollbar { display: none; }
/* Dot vira "linha" inline-flex: pseudo ::before = circulo com numero, span .wizard-step-label = texto ao lado.
   Texto cru "1" do markup eh suprimido via font-size:0 (so o pseudo e o span renderizam). */
.wizard-progress .wizard-step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: auto; height: auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 0;
  color: var(--ds-text-muted);
  transition: color .15s ease;
  flex-shrink: 0;
  position: relative;
}
.wizard-progress .wizard-step-dot::before {
  content: attr(data-step);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--ds-text-muted);
  font-family: var(--ds-font-mono);
  font-size: 10px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .15s ease;
}
.wizard-progress .wizard-step-dot.active::before {
  background: var(--ds-gold);
  border-color: var(--ds-gold);
  color: #1a1200;
  box-shadow: 0 0 0 4px rgba(212,160,23,0.12);
}
.wizard-progress .wizard-step-dot.done::before {
  background: var(--ds-gold-dim);
  border-color: var(--ds-gold-border);
  color: var(--ds-gold);
}
.wizard-progress .wizard-step-label {
  display: inline-block !important;
  position: static;
  font-family: var(--ds-font-mono) !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--ds-text-muted) !important;
  white-space: nowrap;
}
.wizard-progress .wizard-step-dot.active .wizard-step-label { color: var(--ds-gold) !important; }
.wizard-progress .wizard-step-line {
  flex: 1; min-width: 16px;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 2px;
}
.wizard-progress .wizard-step-line.done { background: rgba(212,160,23,0.35); }

@media (max-width: 480px) {
  .wizard-progress .wizard-step-label { display: none !important; }
}

/* ── Body: fill remaining, scroll interno ── */
.wizard-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px !important;
  max-width: none;
  width: auto;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.10) transparent;
  -ms-overflow-style: auto;
  min-height: 0;
}
.wizard-body::-webkit-scrollbar { width: 6px; display: block; }
.wizard-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 6px; }
.wizard-body::-webkit-scrollbar-thumb:hover { background: rgba(212,160,23,0.30); }

/* Header interno (title + sub) renderizado pelo JS dentro do body */
.wizard-body > div:first-child[style*="margin-bottom"] {
  text-align: left;
  margin-bottom: 0 !important;
}
.wizard-body > div:first-child[style*="margin-bottom"] > div:first-child {
  font-family: var(--ds-font-display) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--ds-text) !important;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.wizard-body > div:first-child[style*="margin-bottom"] > div:nth-child(2) {
  font-size: 12.5px !important;
  color: var(--ds-text-2) !important;
  margin-top: 4px !important;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* ── Step 1: category chips → ft-filter pills ── */
.wizard-category-chips {
  display: flex; align-items: center; gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.wizard-category-chip {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ds-text-muted);
  border-radius: 999px;
  font-family: var(--ds-font-sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
}
.wizard-category-chip:hover {
  color: var(--ds-text-2);
  background: rgba(255,255,255,0.03);
}
.wizard-category-chip.active {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%),
    rgba(212,160,23,0.10);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-color: rgba(212,160,23,0.30);
  color: var(--ds-gold);
}

/* ── Step 1: type cards → ft-grid + ft-card ── */
.wizard-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.wizard-type-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.045) 0%, transparent 55%),
    rgba(20,18,15,0.45);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
  display: flex; flex-direction: column;
  align-items: flex-start;
  text-align: left;
  font-family: var(--ds-font-sans);
  color: var(--ds-text);
  box-shadow:
    0 6px 16px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  gap: 8px;
}
.wizard-type-card::after {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.20), transparent);
  pointer-events: none;
}
.wizard-type-card:hover {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 55%),
    rgba(28,24,18,0.55);
  border-color: rgba(212,160,23,0.30);
}
.wizard-type-card.selected {
  border-color: var(--ds-gold);
  background:
    linear-gradient(135deg, rgba(212,160,23,0.10) 0%, transparent 55%),
    rgba(28,24,18,0.55);
  box-shadow:
    0 6px 16px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(212,160,23,0.30);
}
.wizard-type-card .wizard-type-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(212,160,23,0.18) 0%, transparent 70%),
    rgba(212,160,23,0.08);
  border: 1px solid rgba(212,160,23,0.22);
  color: var(--ds-gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  font-size: 0;
}
.wizard-type-card .wizard-type-icon svg { width: 15px; height: 15px; }
.wizard-type-card .wizard-type-name {
  font-family: var(--ds-font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-text);
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.wizard-type-card.wizard-type-other input {
  margin-top: 6px;
  width: 100%;
  padding: 7px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: var(--ds-text);
  font-family: var(--ds-font-sans);
  font-size: 12.5px;
  outline: none;
}
.wizard-type-card.wizard-type-other input:focus {
  border-color: rgba(212,160,23,0.40);
}

/* ── Step 2: dropzone → ft-dropzone ── */
.wizard-dropzone {
  position: relative;
  background:
    linear-gradient(135deg, rgba(212,160,23,0.08) 0%, transparent 70%),
    rgba(20,18,15,0.35);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1.5px dashed rgba(212,160,23,0.30);
  border-radius: 12px;
  padding: 28px 22px;
  text-align: center;
  cursor: pointer;
  transition: all .18s ease;
  margin: 0 auto 12px;
  max-width: 540px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.wizard-dropzone:hover,
.wizard-dropzone.dragover {
  border-color: var(--ds-gold);
  background:
    linear-gradient(135deg, rgba(212,160,23,0.12) 0%, transparent 70%),
    rgba(28,24,18,0.50);
}
.wizard-dropzone > div:first-child {
  display: inline-flex;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(212,160,23,0.22) 0%, transparent 70%),
    rgba(212,160,23,0.10);
  border: 1px solid rgba(212,160,23,0.30);
  color: var(--ds-gold) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  margin-bottom: 10px;
}
.wizard-dropzone > div:first-child svg { width: 18px !important; height: 18px !important; }
.wizard-dropzone > div:nth-child(2) {
  font-family: var(--ds-font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ds-text);
  margin-top: 0 !important;
}
.wizard-dropzone > div:nth-child(3) {
  font-family: var(--ds-font-mono);
  font-size: 10.5px;
  color: var(--ds-text-muted) !important;
  letter-spacing: 0.04em;
  margin-top: 4px !important;
}

/* ── Step 2: upload items → ft-upload-item ── */
.wizard-upload-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.025) 0%, transparent 60%),
    rgba(20,18,15,0.35);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  margin-bottom: 6px;
}
.wizard-upload-item.processing { border-color: rgba(212,160,23,0.25); }
.wizard-upload-item .upload-name {
  font-size: 12.5px; font-weight: 500;
  color: var(--ds-text);
}
.wizard-upload-item .upload-status {
  font-family: var(--ds-font-mono);
  font-size: 10px;
  color: var(--ds-text-muted);
  letter-spacing: 0.04em;
  margin-top: 1px;
}
.wizard-upload-item .upload-status.ok { color: var(--ds-success); }
.wizard-upload-item .upload-remove {
  background: transparent; border: none;
  color: var(--ds-text-muted);
  width: 22px; height: 22px; border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all .12s ease;
}
.wizard-upload-item .upload-remove:hover {
  color: var(--ds-error);
  background: rgba(248,113,113,0.10);
}

/* ── Steps 3 & 4: form fields → ft-field ── */
.wizard-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.wizard-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.wizard-field label {
  font-family: var(--ds-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-text-muted);
}
.wizard-field .field-hint {
  font-family: var(--ds-font-mono);
  font-size: 10px;
  color: var(--ds-text-muted);
  letter-spacing: 0.02em;
  opacity: 0.7;
  margin-top: 2px;
}
.wizard-field input[type="text"],
.wizard-field textarea,
.wizard-body input[type="text"]:not(.wizard-type-other input),
.wizard-body textarea {
  width: 100%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%),
    rgba(20,18,15,0.40);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--ds-text);
  font-family: var(--ds-font-sans);
  font-size: 13px;
  padding: 9px 11px;
  outline: none;
  transition: all .15s ease;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.wizard-field input[type="text"]:focus,
.wizard-field textarea:focus,
.wizard-body input[type="text"]:focus,
.wizard-body textarea:focus {
  border-color: rgba(212,160,23,0.40);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 4px rgba(212,160,23,0.08);
}
.wizard-field textarea,
.wizard-body textarea {
  resize: vertical;
  line-height: 1.5;
}

.wizard-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.wizard-check {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  color: var(--ds-text-2);
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}
.wizard-check input[type="checkbox"] {
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  position: relative;
  transition: all .12s ease;
}
.wizard-check input[type="checkbox"]:checked {
  background: var(--ds-gold);
  border-color: var(--ds-gold);
}
.wizard-check input[type="checkbox"]:checked::after {
  content: ''; position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 8px;
  border: solid #1a1200;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ── Step 5: review sections → ft-section + ft-rev-row pattern ── */
.wizard-review-section {
  position: relative;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  transition: border-color .15s ease, background .15s ease;
}
.wizard-review-section:hover {
  border-color: rgba(212,160,23,0.22);
  background: rgba(255,255,255,0.035);
}
.wizard-review-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
  gap: 12px;
}
.wizard-review-title {
  font-family: var(--ds-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-text-muted);
}
.wizard-review-edit-btn {
  background: transparent;
  border: none;
  color: var(--ds-text-muted);
  padding: 0;
  font-family: var(--ds-font-sans);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: color .12s ease;
  display: inline-flex; align-items: center; gap: 4px;
}
.wizard-review-edit-btn:hover { color: var(--ds-gold); }
.wizard-review-edit-btn svg { width: 10px; height: 10px; }
.wizard-review-value {
  font-size: 13px;
  color: var(--ds-text);
  line-height: 1.5;
}
.wizard-review-edit-area input,
.wizard-review-edit-area textarea {
  width: 100%;
  margin-bottom: 6px;
}
.wizard-review-edit-actions {
  display: flex; gap: 6px; justify-content: flex-end;
}
.wizard-review-cancel,
.wizard-review-save {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--ds-font-sans);
  cursor: pointer;
  transition: all .12s ease;
}
.wizard-review-cancel {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--ds-text-2);
}
.wizard-review-cancel:hover {
  border-color: rgba(255,255,255,0.20);
  color: var(--ds-text);
}
.wizard-review-save {
  background: var(--ds-gold);
  border: none;
  color: #1a1200;
}
.wizard-review-save:hover { background: var(--ds-gold-hover); }

/* ── Footer legado → liquid glass v3 ── */
.wizard-footer {
  background:
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.025) 100%),
    rgba(10,10,10,0.60);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 12px 24px;
  position: relative;
}
.wizard-footer::before {
  content: ''; position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
  pointer-events: none;
}
.wizard-btn-back,
.wizard-btn-draft {
  background: rgba(255,255,255,0.025) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: var(--ds-text-2) !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  font-family: var(--ds-font-sans) !important;
  box-shadow: none !important;
  transition: all .12s ease !important;
}
.wizard-btn-back:hover,
.wizard-btn-draft:hover {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.18) !important;
  color: var(--ds-text) !important;
  transform: none !important;
}
.wizard-btn-next {
  background: var(--ds-gold) !important;
  color: #1a1200 !important;
  border: none !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: var(--ds-font-sans) !important;
  box-shadow: 0 4px 12px rgba(212,160,23,0.25) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: background .12s ease, box-shadow .15s ease !important;
}
.wizard-btn-next:hover {
  background: var(--ds-gold-hover) !important;
  transform: none !important;
  box-shadow: 0 6px 16px rgba(212,160,23,0.35) !important;
}
.wizard-btn-next:disabled {
  opacity: .45 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* ── CTA gerar peça final → ft-cta-big ── */
.wizard-btn-generate {
  background: var(--ds-gold) !important;
  color: #1a1200 !important;
  border: none !important;
  padding: 11px 26px !important;
  border-radius: 9px !important;
  font-family: var(--ds-font-sans) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer !important;
  box-shadow: 0 6px 18px rgba(212,160,23,0.30) !important;
  transition: background .12s ease, box-shadow .15s ease !important;
  overflow: visible !important;
}
.wizard-btn-generate::after { display: none !important; }
.wizard-btn-generate:hover {
  background: var(--ds-gold-hover) !important;
  box-shadow: 0 8px 22px rgba(212,160,23,0.40) !important;
}

/* ── Draft banner ── */
.wizard-draft-banner {
  margin: 0 24px 4px;
  padding: 10px 14px;
  background:
    linear-gradient(135deg, rgba(212,160,23,0.10) 0%, transparent 70%),
    rgba(20,18,15,0.40);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(212,160,23,0.22);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--ds-text-2);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.wizard-draft-banner strong { color: var(--ds-gold); font-weight: 600; }
.wizard-draft-discard,
.wizard-draft-resume {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.wizard-draft-discard {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--ds-text-2);
}
.wizard-draft-resume {
  background: var(--ds-gold);
  color: #1a1200;
}

/* ── Responsivo ── */
@media (max-width: 900px) {
  .wizard-type-grid { grid-template-columns: repeat(2, 1fr); }
  .wizard-two-col { grid-template-columns: 1fr; gap: 0; }
  .wizard-field-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wizard-type-grid { grid-template-columns: 1fr; }
  .wizard-body { padding: 14px 16px; }
  .wizard-footer { padding: 10px 16px; }
}


/* ============================================================================
   LIGHT MODE — Modal wizard mantem legibilidade no tema claro
   ============================================================================ */
body:not(.dark-mode) .wizard-overlay {
  background: rgba(20,18,15,0.45);
}
body:not(.dark-mode) .wizard-container {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.02) 0%, transparent 60%),
    #f5f3ef;
  border-color: rgba(0,0,0,0.10);
  color: #1a1a1a;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.25),
    0 12px 32px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.6);
}
body:not(.dark-mode) .wizard-header { border-bottom-color: rgba(0,0,0,0.06) !important; }
body:not(.dark-mode) .wizard-header-text h3 { color: #1a1a1a !important; }
body:not(.dark-mode) .wizard-header-text span { color: rgba(0,0,0,0.55) !important; }
body:not(.dark-mode) .wizard-close { color: rgba(0,0,0,0.55); }
body:not(.dark-mode) .wizard-close:hover { background: rgba(0,0,0,0.05) !important; color: #1a1a1a; }
body:not(.dark-mode) .wizard-progress {
  background: rgba(0,0,0,0.025) !important;
  border-bottom-color: rgba(0,0,0,0.04) !important;
}
body:not(.dark-mode) .wizard-progress .wizard-step-dot { color: rgba(0,0,0,0.55); }
body:not(.dark-mode) .wizard-progress .wizard-step-dot::before {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.10);
  color: rgba(0,0,0,0.55);
}
body:not(.dark-mode) .wizard-progress .wizard-step-label { color: rgba(0,0,0,0.55) !important; }
body:not(.dark-mode) .wizard-footer {
  background: rgba(0,0,0,0.02) !important;
  border-top-color: rgba(0,0,0,0.06) !important;
}
body:not(.dark-mode) .wizard-type-card {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.02) 0%, transparent 60%),
    rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.08);
  color: #1a1a1a;
}
body:not(.dark-mode) .wizard-type-card .wizard-type-name { color: #1a1a1a; }
body:not(.dark-mode) .wizard-category-chip { color: rgba(0,0,0,0.55); }
body:not(.dark-mode) .wizard-category-chip:hover { background: rgba(0,0,0,0.03); color: #1a1a1a; }

/* Step 5 review — light */
body:not(.dark-mode) .wizard-review-section {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
body:not(.dark-mode) .wizard-review-section:hover {
  background: #FFFDF7;
  border-color: rgba(212,160,23,0.30);
}
body:not(.dark-mode) .wizard-review-title { color: rgba(0,0,0,0.50); }
body:not(.dark-mode) .wizard-review-value { color: #1a1a1a; }
body:not(.dark-mode) .wizard-review-edit-btn { color: rgba(0,0,0,0.45); }
body:not(.dark-mode) .wizard-review-edit-btn:hover { color: var(--ds-gold); }
body:not(.dark-mode) .wizard-review-cancel {
  background: transparent;
  border-color: rgba(0,0,0,0.12);
  color: rgba(0,0,0,0.60);
}
body:not(.dark-mode) .wizard-review-cancel:hover {
  border-color: rgba(0,0,0,0.22);
  color: #1a1a1a;
}
