/* ================================================================
   LAUNCH PROGRESS & RESULTS — append to wizard.css
   ================================================================ */

/* Progress spinner during create/launch */
.submit-progress {
  text-align: center;
  padding: 48px 24px;
}
.submit-progress h2 {
  margin: 16px 0 8px;
  font-size: 1.25rem;
}
.submit-progress p {
  color: #6b7280;
  margin-bottom: 32px;
}

.progress-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Two-step progress indicator */
.progress-steps {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #9ca3af;
}
.progress-step.step-active {
  color: #3b82f6;
  font-weight: 500;
}
.progress-step.step-done {
  color: #10b981;
}
.step-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f3f4f6;
}
.step-active .step-indicator {
  background: #dbeafe;
  color: #3b82f6;
}
.step-done .step-indicator {
  background: #d1fae5;
  color: #10b981;
}
.mini-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #93c5fd;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Per-channel launch results */
.launch-results {
  text-align: left;
  margin: 24px auto;
  max-width: 480px;
}
.launch-results h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 12px;
}
.launch-channel-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  flex-wrap: wrap;
}
.launch-channel-result.launch-status-submitted {
  border-color: #d1fae5;
  background: #f0fdf4;
}
.launch-channel-result.launch-status-pending_review {
  border-color: #fef3c7;
  background: #fffbeb;
}
.launch-channel-result.launch-status-error {
  border-color: #fecaca;
  background: #fef2f2;
}
.launch-channel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.launch-channel-name {
  font-weight: 500;
  min-width: 100px;
}
.launch-status-badge {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: auto;
}
.launch-status-badge.status-submitted {
  color: #059669;
  background: #d1fae5;
}
.launch-status-badge.status-pending_review {
  color: #d97706;
  background: #fef3c7;
}
.launch-status-badge.status-error {
  color: #dc2626;
  background: #fecaca;
}
.launch-channel-message {
  width: 100%;
  font-size: 0.8rem;
  color: #6b7280;
  padding-left: 20px;
}
.launch-external-id {
  font-size: 0.75rem;
  font-family: monospace;
  color: #9ca3af;
  padding-left: 20px;
}

/* Error state */
.submit-error {
  text-align: center;
  padding: 48px 24px;
}
.submit-error h2 {
  margin: 16px 0 8px;
  color: #dc2626;
}
.submit-error p {
  color: #6b7280;
  margin-bottom: 24px;
}
.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Status badges in results */
.status-badge.status-warning {
  background: #fef3c7;
  color: #d97706;
}

/* ================================================================
   CONFIRM LAUNCH MODAL
   ================================================================ */

.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  backdrop-filter: blur(2px);
}
.confirm-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  padding: 28px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalIn 0.2s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.confirm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.confirm-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fffbeb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.confirm-header h2 {
  font-size: 1.15rem;
  margin: 0;
}
.confirm-subtitle {
  font-size: 0.9rem;
  color: #4b5563;
  margin: 0 0 20px;
  line-height: 1.5;
}

/* Billing summary table */
.confirm-billing {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.confirm-billing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid #f3f4f6;
}
.confirm-billing-row:last-child {
  border-bottom: none;
}
.confirm-billing-sub {
  background: #f9fafb;
  padding-left: 28px;
  font-size: 0.825rem;
  color: #6b7280;
}
.confirm-billing-total {
  background: #f0f9ff;
  font-weight: 600;
  border-top: 2px solid #e5e7eb;
}
.confirm-amount {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.confirm-ch-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* Note / fine print */
.confirm-note {
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Terms checkbox */
.confirm-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 20px;
  cursor: pointer;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #374151;
}
.confirm-terms input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #3b82f6;
  cursor: pointer;
}

/* Actions */
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.confirm-actions .btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Pricing source tag (visible when client has negotiated rate) */
.confirm-pricing-source {
  color: #059669;
  font-weight: 500;
}
