/* ───── Wizard модал ───── */
.wiz-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: wizFade 0.2s ease;
}
@keyframes wizFade { from { opacity: 0; } to { opacity: 1; } }

.wiz-modal {
  background: #0f1419;
  color: #e5e7eb;
  border-radius: 16px;
  max-width: 640px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  border: 1px solid rgba(255, 193, 7, 0.2);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
  display: flex; flex-direction: column;
  animation: wizSlide 0.25s ease;
  position: relative;
}
@keyframes wizSlide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.wiz-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06); color: #fff;
  border: 0; cursor: pointer; font-size: 22px; line-height: 1;
  z-index: 2;
  transition: all 0.2s;
}
.wiz-close:hover { background: rgba(239,68,68,0.4); transform: rotate(90deg); }

.wiz-header {
  padding: 24px 28px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,193,7,0.06), transparent);
}
.wiz-header h2 {
  margin: 0 0 14px;
  font-size: 20px; font-weight: 800; color: #fff;
}

/* Step indicator */
.wiz-steps {
  display: flex; gap: 4px; align-items: center;
  padding: 0;
}
.wiz-step {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  position: relative;
}
.wiz-step:not(:last-child)::after {
  content: '';
  position: absolute; top: 14px; left: 60%; right: -40%;
  height: 2px; background: rgba(255,255,255,0.08);
  z-index: 0;
}
.wiz-step.done:not(:last-child)::after { background: #FFC107; }

.wiz-step__num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #94a3b8;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  border: 2px solid transparent;
  position: relative; z-index: 1;
  transition: all 0.2s;
}
.wiz-step.active .wiz-step__num {
  background: #FFC107; color: #000; border-color: #FFC107;
  box-shadow: 0 0 0 4px rgba(255,193,7,0.2);
}
.wiz-step.done .wiz-step__num {
  background: #FFC107; color: #000;
}
.wiz-step__label {
  font-size: 11px; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.5px;
  font-weight: 600;
}
.wiz-step.active .wiz-step__label { color: #FFC107; }
.wiz-step.done .wiz-step__label { color: #cbd5e1; }

/* Body */
.wiz-body {
  padding: 24px 28px;
  flex: 1;
}
.wiz-title {
  margin: 0 0 6px;
  font-size: 19px; font-weight: 700; color: #fff;
}
.wiz-hint {
  color: #94a3b8; font-size: 13px;
  margin-bottom: 20px; line-height: 1.5;
}
.wiz-label {
  display: block;
  margin: 14px 0 6px;
  font-size: 12px; color: #cbd5e1;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.wiz-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid #1f2937;
  color: #fff;
  border-radius: 9px;
  font-family: inherit; font-size: 14px;
  transition: border 0.15s, background 0.15s;
}
.wiz-input:focus {
  outline: none;
  border-color: #FFC107;
  background: rgba(255,255,255,0.07);
}
.wiz-input-big {
  font-size: 22px !important; font-weight: 700;
  text-align: center; padding: 16px !important;
}
.wiz-tip {
  font-size: 12px; color: #6b7280;
  margin: 6px 0 0; line-height: 1.5;
}

/* Big tile choice */
.wiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.wiz-card {
  background: rgba(255,255,255,0.03);
  border: 1.5px solid #1f2937;
  border-radius: 12px;
  padding: 16px 12px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  color: #e5e7eb;
  transition: all 0.18s;
}
.wiz-card:hover {
  background: rgba(255,193,7,0.06);
  border-color: rgba(255,193,7,0.5);
  transform: translateY(-2px);
}
.wiz-card.active {
  background: rgba(255,193,7,0.1);
  border-color: #FFC107;
  box-shadow: 0 6px 18px rgba(255,193,7,0.15);
}
.wiz-card__icon {
  font-size: 28px; line-height: 1;
  margin-bottom: 8px;
}
.wiz-card__title {
  font-size: 15px; font-weight: 700; color: #fff;
  margin-bottom: 4px;
}
.wiz-card__sub {
  font-size: 11px; color: #94a3b8;
}
.wiz-card__sub code {
  background: rgba(255,255,255,0.06);
  padding: 1px 5px; border-radius: 3px; font-size: 10px;
}

/* Colors palette */
.wiz-colors {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}
.wiz-color {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.wiz-color:hover { transform: scale(1.1); }
.wiz-color.active {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

/* Summary */
.wiz-summary {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,193,7,0.2);
  border-radius: 12px;
  padding: 18px;
}
.wiz-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.wiz-summary-row:last-child { border-bottom: 0; }
.wiz-summary-row span { color: #94a3b8; }
.wiz-summary-row strong { color: #fff; }
.wiz-summary-row code {
  background: rgba(255,193,7,0.1); color: #FFC107;
  padding: 2px 8px; border-radius: 5px;
}

/* Error */
.wiz-error {
  margin-top: 12px; padding: 10px 14px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  border-radius: 8px;
  font-size: 13px;
}

/* Footer */
.wiz-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; gap: 8px; align-items: center;
  background: rgba(0,0,0,0.3);
}
.wiz-btn {
  padding: 11px 22px;
  border-radius: 9px; border: 0;
  font-family: inherit; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: all 0.15s;
}
.wiz-btn-yellow { background: #FFC107; color: #000; }
.wiz-btn-yellow:hover { background: #B8860B; color: #fff; box-shadow: 0 4px 14px rgba(255,193,7,0.4); }
.wiz-btn-ghost { background: transparent; color: #cbd5e1; border: 1px solid rgba(255,255,255,0.1); }
.wiz-btn-ghost:hover { background: rgba(255,255,255,0.06); }

@media (max-width: 600px) {
  .wiz-step__label { display: none; }
  .wiz-step:not(:last-child)::after { left: 70%; right: -50%; }
}
