/*
 * Wizard de conexão com o Instagram (/conectar).
 * Segue o design system: sem box-shadow, elevação = borda + tonalidade.
 */

.wizard { max-width: 720px; margin: 0 auto; }
.wizard__head { text-align: center; margin-bottom: 22px; }
.wizard__head h1 { margin-bottom: 2px; }
.wizard .stepper { justify-content: center; }
.wizard .stepper__dot svg { width: 16px; height: 16px; }

.wizard-card { padding: 28px; }

.wizard-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 20px; }
.wizard-actions--between { justify-content: space-between; }
.wizard-actions--start { justify-content: flex-start; margin-top: 14px; }

/* ---------- Etapa 1: ilustração de perfil (CSS + emoji) ---------- */
.wiz-illus { position: relative; display: grid; place-items: center; padding: 10px 0 24px; }
.wiz-illus__profile {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 46px;
}
.wiz-illus__profile .avatar--lg { font-size: 24px; }
.wiz-illus__name { font-weight: 700; }
.wiz-illus__stats { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-2); }
.wiz-illus__spark { position: absolute; font-size: 26px; top: 6px; right: 22%; }
.wiz-illus__spark--2 { top: auto; bottom: 26px; left: 21%; }
@media (max-width: 640px) {
  .wiz-illus__spark { display: none; }
  .wiz-illus__profile { padding: 18px 26px; }
}

/* Checklist da etapa 1 */
.wiz-checklist {
  list-style: none; margin: 0 0 16px; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.wiz-checklist li {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  padding: 12px 14px;
}
.wiz-checklist__num {
  width: 26px; height: 26px; flex: none;
  border-radius: var(--r-full);
  background: var(--primary-tonal); color: var(--primary);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
}

/* ---------- Etapa 2: cards de escolha ---------- */
.wizard-choices { align-items: stretch; }
.wizard-choice { display: flex; flex-direction: column; }
.wizard-choice h2 { margin: 12px 0 4px; font-size: 18px; }
.wizard-choice__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 42px;
}
.wizard-choice__icon {
  width: 42px; height: 42px; flex: none;
  border-radius: var(--r-md);
  display: grid; place-items: center;
}
.wizard-choice__icon svg { width: 22px; height: 22px; }
.wizard-choice__icon--green { background: var(--green-tonal); color: var(--green-strong); }
.wizard-choice__icon--ig { background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7); color: #fff; }
.wizard-choice__push { flex: 1; }
.wizard-choice__form { margin-top: auto; }

.wizard-envs { margin-top: 12px; font-size: 13.5px; }
.wizard-envs summary { cursor: pointer; font-weight: 650; color: var(--text-2); }
.wizard-envs summary:hover { color: var(--text); }
.wizard-envs ul { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.wizard-envs code {
  background: var(--surface-2);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12.5px;
}

/* ---------- Etapa 3: lista de permissões ---------- */
.perm-list {
  list-style: none; margin: 0 0 16px; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.perm-item {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  padding: 14px 16px;
}
.perm-item__icon {
  width: 40px; height: 40px; flex: none;
  border-radius: var(--r-full);
  display: grid; place-items: center;
}
.perm-item__icon svg { width: 20px; height: 20px; }
.perm-item__icon--blue { background: var(--primary-tonal); color: var(--primary); }
.perm-item__icon--green { background: var(--green-tonal); color: var(--green-strong); }
.perm-item__icon--purple { background: #f3e8ff; color: var(--purple); }
.perm-item strong { display: block; line-height: 1.3; }
.perm-item .muted { font-size: 13px; }

/* ---------- Etapa 4: sucesso ---------- */
.wizard-success { text-align: center; }
.wizard-success .avatar { margin: 0 auto 10px; }
.wizard-success__party { font-size: 36px; line-height: 1; margin-bottom: 8px; }
.wizard-success h2 { margin-bottom: 2px; }
.wizard-success__handle { font-weight: 700; margin-bottom: 8px; color: var(--text-2); }
.wizard-success__meta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap; font-size: 13.5px; margin-bottom: 4px;
}
.wizard-status-chips {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin: 12px 0 4px;
}
.wizard-status-chips .chip svg { width: 14px; height: 14px; }
.wizard-next { margin-top: 10px; }
.wizard-success__footer {
  margin-top: 24px; padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: center;
}
