/* ============================================
   ContentHub Setup Wizard
   Refined editorial aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --wz-bg: #0c1220;
  --wz-bg-subtle: #111827;
  --wz-card: #ffffff;
  --wz-card-border: rgba(0,0,0,0.06);
  --wz-text: #111827;
  --wz-text-secondary: #6b7280;
  --wz-text-muted: #9ca3af;
  --wz-accent: #2563eb;
  --wz-accent-hover: #1d4ed8;
  --wz-accent-light: #eff6ff;
  --wz-accent-ring: rgba(37, 99, 235, 0.18);
  --wz-success: #059669;
  --wz-success-bg: #ecfdf5;
  --wz-error: #dc2626;
  --wz-error-bg: #fef2f2;
  --wz-warning: #d97706;
  --wz-warning-bg: #fffbeb;
  --wz-border: #e5e7eb;
  --wz-border-focus: #2563eb;
  --wz-input-bg: #f9fafb;
  --wz-radius: 12px;
  --wz-radius-sm: 8px;
  --wz-radius-lg: 16px;
  --wz-font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wz-font-display: 'Bricolage Grotesque', 'DM Sans', sans-serif;
  --wz-font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  --wz-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08);
  --wz-shadow-lg: 0 4px 12px rgba(0,0,0,0.08), 0 20px 60px rgba(0,0,0,0.15);
  --wz-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }

/* ---- Full Page ---- */
.wizard-body {
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  font-family: var(--wz-font);
  background: var(--wz-bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Container ---- */
.wizard-container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* ---- Progress Bar ---- */
.wizard-progress {
  margin-bottom: 28px;
  padding: 0 4px;
}

.wizard-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.wizard-progress-step {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.wizard-progress-count {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  font-variant-numeric: tabular-nums;
}

.wizard-progress-track {
  display: flex;
  gap: 3px;
  height: 4px;
}

.wizard-progress-seg {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  transition: background var(--wz-transition);
  position: relative;
  overflow: hidden;
}

.wizard-progress-seg.done {
  background: var(--wz-success);
}

.wizard-progress-seg.active {
  background: var(--wz-accent);
  animation: segPulse 2s ease-in-out infinite;
}

.wizard-progress-seg.skipped {
  background: var(--wz-warning);
  opacity: 0.7;
}

@keyframes segPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ---- Card ---- */
.wizard-card {
  background: var(--wz-card);
  border-radius: var(--wz-radius-lg);
  padding: 44px 40px;
  box-shadow: var(--wz-shadow-lg);
  border: 1px solid var(--wz-card-border);
  animation: cardIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

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

/* ---- Step Header ---- */
.wizard-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 20px;
  background: var(--wz-accent-light);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.wizard-title {
  font-family: var(--wz-font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--wz-text);
  text-align: center;
  margin: 0 0 6px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.wizard-subtitle {
  font-size: 14px;
  color: var(--wz-text-secondary);
  text-align: center;
  margin: 0 0 32px;
  line-height: 1.5;
}

/* ---- Form Groups ---- */
.wz-field {
  margin-bottom: 22px;
  position: relative;
}

.wz-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wz-text);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.wz-label .wz-required {
  color: var(--wz-error);
  font-weight: 400;
}

.wz-label .wz-optional {
  color: var(--wz-text-muted);
  font-weight: 400;
  font-size: 12px;
}

.wz-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.wz-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--wz-font);
  border: 1.5px solid var(--wz-border);
  border-radius: var(--wz-radius-sm);
  background: var(--wz-input-bg);
  color: var(--wz-text);
  transition: border-color var(--wz-transition), box-shadow var(--wz-transition), background var(--wz-transition);
  outline: none;
}

.wz-input::placeholder {
  color: var(--wz-text-muted);
  font-weight: 400;
}

.wz-input:hover {
  border-color: #d1d5db;
  background: #fff;
}

.wz-input:focus {
  border-color: var(--wz-border-focus);
  box-shadow: 0 0 0 3px var(--wz-accent-ring);
  background: #fff;
}

.wz-input.is-error {
  border-color: var(--wz-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
  background: var(--wz-error-bg);
}

.wz-input.is-valid {
  border-color: var(--wz-success);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.wz-input.is-mono {
  font-family: var(--wz-font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* Password toggle */
.wz-input[type="password"],
.wz-input.has-toggle {
  padding-right: 48px;
}

.wz-pw-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: var(--wz-text-muted);
  transition: color var(--wz-transition), background var(--wz-transition);
  padding: 0;
}

.wz-pw-toggle:hover {
  color: var(--wz-text-secondary);
  background: rgba(0,0,0,0.04);
}

.wz-pw-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Field hint & error */
.wz-hint {
  font-size: 12px;
  color: var(--wz-text-muted);
  margin-top: 5px;
  line-height: 1.4;
}

.wz-field-error {
  font-size: 12px;
  color: var(--wz-error);
  margin-top: 5px;
  display: none;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
}

.wz-field-error::before {
  content: '';
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: var(--wz-error);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wz-field.has-error .wz-field-error {
  display: flex;
}

.wz-field.has-error .wz-hint {
  display: none;
}

.wz-field.has-error .wz-input {
  border-color: var(--wz-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Password strength meter */
.wz-pw-strength {
  display: flex;
  gap: 3px;
  margin-top: 8px;
  height: 3px;
}

.wz-pw-strength-seg {
  flex: 1;
  border-radius: 2px;
  background: var(--wz-border);
  transition: background 0.3s;
}

.wz-pw-strength.str-1 .wz-pw-strength-seg:nth-child(1) { background: var(--wz-error); }
.wz-pw-strength.str-2 .wz-pw-strength-seg:nth-child(-n+2) { background: var(--wz-warning); }
.wz-pw-strength.str-3 .wz-pw-strength-seg:nth-child(-n+3) { background: #eab308; }
.wz-pw-strength.str-4 .wz-pw-strength-seg { background: var(--wz-success); }

.wz-pw-strength-text {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wz-pw-strength-text.str-1 { color: var(--wz-error); }
.wz-pw-strength-text.str-2 { color: var(--wz-warning); }
.wz-pw-strength-text.str-3 { color: #eab308; }
.wz-pw-strength-text.str-4 { color: var(--wz-success); }

/* ---- Select ---- */
.wz-select {
  appearance: none;
  width: 100%;
  padding: 11px 36px 11px 14px;
  font-size: 14px;
  font-family: var(--wz-font);
  border: 1.5px solid var(--wz-border);
  border-radius: var(--wz-radius-sm);
  background: var(--wz-input-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
  color: var(--wz-text);
  cursor: pointer;
  transition: border-color var(--wz-transition), box-shadow var(--wz-transition);
  outline: none;
}

.wz-select:focus {
  border-color: var(--wz-border-focus);
  box-shadow: 0 0 0 3px var(--wz-accent-ring);
}

/* ---- Buttons ---- */
.wz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--wz-font);
  border-radius: var(--wz-radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--wz-transition);
  text-decoration: none;
  line-height: 1.3;
  position: relative;
  white-space: nowrap;
}

.wz-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Primary */
.wz-btn-primary {
  background: var(--wz-accent);
  color: #fff;
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
}

.wz-btn-primary:hover:not(:disabled) {
  background: var(--wz-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.wz-btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* Outline / test */
.wz-btn-outline {
  background: #fff;
  color: var(--wz-accent);
  border: 1.5px solid var(--wz-accent);
  padding: 10px 20px;
}

.wz-btn-outline:hover:not(:disabled) {
  background: var(--wz-accent-light);
}

/* Ghost / skip */
.wz-btn-skip {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 10px;
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--wz-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--wz-transition);
  font-family: var(--wz-font);
}

.wz-btn-skip:hover {
  color: var(--wz-text-secondary);
}

/* Loading spinner */
.wz-btn.is-loading {
  color: transparent !important;
  pointer-events: none;
}

.wz-btn.is-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: wzSpin 0.5s linear infinite;
}

.wz-btn-primary.is-loading::after {
  border-color: #fff;
  border-right-color: transparent;
}

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

/* ---- Button Row ---- */
.wz-actions {
  margin-top: 28px;
}

.wz-actions-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

/* ---- Connection Status ---- */
.wz-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  transition: all 0.3s;
}

.wz-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wz-status.idle {
  background: #f3f4f6;
  color: var(--wz-text-muted);
}

.wz-status.idle .wz-status-dot {
  background: var(--wz-text-muted);
}

.wz-status.testing {
  background: var(--wz-accent-light);
  color: var(--wz-accent);
}

.wz-status.testing .wz-status-dot {
  background: var(--wz-accent);
  animation: wzSpin 1s linear infinite;
  border-radius: 0;
  border: 2px solid var(--wz-accent);
  border-right-color: transparent;
  width: 10px;
  height: 10px;
}

.wz-status.pass {
  background: var(--wz-success-bg);
  color: var(--wz-success);
}

.wz-status.pass .wz-status-dot {
  background: var(--wz-success);
}

.wz-status.fail {
  background: var(--wz-error-bg);
  color: var(--wz-error);
}

.wz-status.fail .wz-status-dot {
  background: var(--wz-error);
}

/* ---- Instructions ---- */
.wz-instructions {
  background: #f8fafc;
  border: 1px solid var(--wz-border);
  border-radius: var(--wz-radius);
  padding: 18px 22px;
  margin-bottom: 24px;
}

.wz-instructions ol {
  list-style: none;
  counter-reset: wizStep;
  padding: 0;
  margin: 0;
}

.wz-instructions ol li {
  counter-increment: wizStep;
  position: relative;
  padding: 9px 0 9px 38px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--wz-text);
  border-bottom: 1px solid #f1f5f9;
}

.wz-instructions ol li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wz-instructions ol li:first-child {
  padding-top: 0;
}

.wz-instructions ol li::before {
  content: counter(wizStep);
  position: absolute;
  left: 0;
  top: 9px;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--wz-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wz-instructions ol li:first-child::before {
  top: 0;
}

.wz-link {
  display: inline-block;
  background: var(--wz-accent-light);
  color: var(--wz-accent);
  padding: 2px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: background var(--wz-transition);
}

.wz-link:hover {
  background: #dbeafe;
}

/* ---- Section Heading (within a step) ---- */
.wz-section-title {
  font-family: var(--wz-font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--wz-text);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.wz-divider {
  height: 1px;
  background: var(--wz-border);
  margin: 28px 0;
}

/* ---- Welcome Page ---- */
.wz-welcome { text-align: center; }

.wz-welcome-title {
  font-family: var(--wz-font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--wz-text);
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.wz-welcome-sub {
  font-size: 15px;
  color: var(--wz-text-secondary);
  margin: 0 0 32px;
  line-height: 1.6;
}

.wz-stats {
  display: flex;
  gap: 1px;
  background: var(--wz-border);
  border-radius: var(--wz-radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.wz-stat {
  flex: 1;
  background: #f9fafb;
  padding: 16px 12px;
  text-align: center;
}

.wz-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--wz-text);
  font-variant-numeric: tabular-nums;
}

.wz-stat span {
  font-size: 12px;
  color: var(--wz-text-muted);
  font-weight: 500;
}

.wz-steps-map {
  text-align: left;
  margin-bottom: 28px;
}

.wz-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: var(--wz-radius-sm);
  font-size: 14px;
  color: var(--wz-text);
  font-weight: 500;
  transition: background var(--wz-transition);
}

.wz-step-item:hover {
  background: #f9fafb;
}

.wz-step-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--wz-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Product Cards ---- */
.wz-product {
  border: 1.5px solid var(--wz-border);
  border-radius: var(--wz-radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--wz-transition);
}

.wz-product.is-active {
  border-color: var(--wz-accent);
}

.wz-product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fafbfc;
  border-bottom: 1px solid var(--wz-border);
  cursor: pointer;
}

.wz-product-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wz-text);
}

.wz-product-name span.emoji {
  font-size: 18px;
}

.wz-product-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  background: #f1f5f9;
  color: var(--wz-text-secondary);
  text-transform: capitalize;
}

/* Toggle switch */
.wz-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.wz-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.wz-toggle-track {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.25s;
}

.wz-toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.25s;
}

.wz-toggle input:checked + .wz-toggle-track {
  background: var(--wz-accent);
}

.wz-toggle input:checked + .wz-toggle-track::after {
  transform: translateX(20px);
}

.wz-product-config {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wz-product-config .wz-field {
  margin-bottom: 0;
}

.wz-product-config .wz-field.full {
  grid-column: 1 / -1;
}

/* Checkbox group */
.wz-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wz-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1.5px solid var(--wz-border);
  background: #fff;
  cursor: pointer;
  transition: all var(--wz-transition);
  user-select: none;
}

.wz-chip input { display: none; }

.wz-chip:has(input:checked) {
  background: var(--wz-accent-light);
  border-color: var(--wz-accent);
  color: var(--wz-accent);
}

.wz-chip:hover {
  border-color: #c7d2fe;
}

/* ---- Complete Page ---- */
.wz-complete {
  text-align: center;
  padding: 20px 0;
}

.wz-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--wz-success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: checkPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.wz-checkmark svg {
  width: 40px;
  height: 40px;
  stroke: var(--wz-success);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}

/* ---- Checklist ---- */
.wz-checklist-group {
  margin-bottom: 24px;
}

.wz-checklist-group-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--wz-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--wz-border);
}

.wz-checklist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--wz-text);
}

.wz-checklist-row .status-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.wz-checklist-row .title { flex: 1; }

.wz-checklist-row a {
  color: var(--wz-accent);
  font-size: 12px;
  text-decoration: none;
}

.wz-checklist-row .date {
  font-size: 12px;
  color: var(--wz-text-muted);
}

/* ---- Alert / Toast ---- */
.wz-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 13px 20px 13px 16px;
  border-radius: var(--wz-radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--wz-font);
  color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  z-index: 9999;
  transform: translateX(calc(100% + 24px));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wz-toast.show {
  transform: translateX(0);
}

.wz-toast.success { background: #059669; }
.wz-toast.error { background: #dc2626; }
.wz-toast.info { background: #2563eb; }

.wz-toast-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.9;
}

/* ---- Inline Alert ---- */
.wz-alert {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--wz-radius-sm);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.wz-alert.show { display: flex; }

.wz-alert.error {
  background: var(--wz-error-bg);
  color: #991b1b;
  border: 1px solid #fecaca;
}

.wz-alert.success {
  background: var(--wz-success-bg);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.wz-alert-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- Responsive ---- */
@media (max-width: 680px) {
  .wizard-body {
    padding: 16px;
    align-items: flex-start;
    padding-top: 32px;
  }

  .wizard-card {
    padding: 28px 22px;
    border-radius: var(--wz-radius);
  }

  .wz-welcome-title { font-size: 26px; }
  .wizard-title { font-size: 24px; }
  .wz-stats { flex-direction: column; gap: 0; }
  .wz-stat { border-bottom: 1px solid var(--wz-border); }
  .wz-stat:last-child { border-bottom: none; }

  .wz-product-config {
    grid-template-columns: 1fr;
  }

  .wz-actions-row {
    flex-direction: column;
  }

  .wz-actions-row .wz-btn {
    width: 100%;
  }

  .wz-toast {
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .wizard-card { padding: 24px 18px; }
  .wz-icon { width: 48px; height: 48px; font-size: 22px; }
}
