/* brand-onboarding.css — Brand onboarding wizard styles.
   Owns: stepper, panels, form fields, upload zones, summary card, success state.
   Does NOT own: sidebar, general brand-marketplace styles. */

:root {
  --bo-bg: #000;
  --bo-card: #1A1A1A;
  --bo-card-border: #2A2A2A;
  --bo-coral: #FF4D6D;
  --bo-coral-dim: rgba(255, 77, 109, 0.15);
  --bo-text: #F0F0F0;
  --bo-text-dim: #999;
  --bo-input-bg: #111;
  --bo-input-border: #333;
  --bo-radius: 12px;
  --bo-radius-sm: 8px;
}

body {
  margin: 0;
  background: var(--bo-bg);
  color: var(--bo-text);
  font-family: 'Inter', -apple-system, sans-serif;
}

/* ── Stepper ──────────────────────────────────────────────────────────────── */

.bo-stepper {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bo-card-border);
  padding: 18px 24px;
}

.bo-stepper-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}

.bo-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: default;
  opacity: 0.4;
  transition: opacity 0.25s;
}

.bo-step.active, .bo-step.completed { opacity: 1; }
.bo-step.completed { cursor: pointer; }

.bo-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bo-input-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.25s;
}

.bo-step.active .bo-step-circle {
  border-color: var(--bo-coral);
  background: var(--bo-coral-dim);
  color: var(--bo-coral);
}

.bo-step.completed .bo-step-circle {
  border-color: var(--bo-coral);
  background: var(--bo-coral);
  color: #fff;
}

.bo-step-check { display: none; }
.bo-step.completed .bo-step-num { display: none; }
.bo-step.completed .bo-step-check { display: inline; font-size: 16px; }

.bo-step-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bo-text-dim);
}

.bo-step.active .bo-step-label { color: var(--bo-coral); }
.bo-step.completed .bo-step-label { color: var(--bo-text); }

.bo-step-line {
  flex: 1;
  height: 2px;
  background: var(--bo-input-border);
  margin: 0 8px;
  margin-bottom: 22px;
  min-width: 30px;
  max-width: 80px;
  transition: background 0.25s;
}

.bo-step-line.filled { background: var(--bo-coral); }

/* ── Container & Panels ──────────────────────────────────────────────────── */

.bo-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.bo-panel {
  display: none;
  animation: bo-fade-in 0.3s ease;
}

.bo-panel.active { display: block; }

@keyframes bo-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bo-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.2;
}

.bo-subtitle {
  font-size: 15px;
  color: var(--bo-text-dim);
  margin: 0 0 32px;
}

/* ── Form ─────────────────────────────────────────────────────────────────── */

.bo-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bo-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--bo-text);
}

.bo-label-sm {
  font-size: 12px !important;
  color: var(--bo-text-dim) !important;
}

.bo-req { color: var(--bo-coral); }
.bo-optional { color: var(--bo-text-dim); font-weight: 400; font-size: 12px; }

.bo-field input[type="text"],
.bo-field input[type="url"],
.bo-field input[type="number"],
.bo-field input[type="date"],
.bo-field select,
.bo-field textarea {
  background: var(--bo-input-bg);
  border: 1px solid var(--bo-input-border);
  border-radius: var(--bo-radius-sm);
  padding: 12px 14px;
  color: var(--bo-text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.bo-field input:focus,
.bo-field select:focus,
.bo-field textarea:focus {
  border-color: var(--bo-coral);
}

.bo-field textarea { resize: vertical; min-height: 80px; }

.bo-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.bo-field-hint {
  font-size: 12px;
  color: var(--bo-text-dim);
  margin: 2px 0 0;
}

.bo-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Checkbox chips ──────────────────────────────────────────────────────── */

.bo-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bo-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--bo-input-border);
  background: var(--bo-input-bg);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.bo-chip:hover { border-color: var(--bo-coral); }
.bo-chip:has(input:checked) {
  border-color: var(--bo-coral);
  background: var(--bo-coral-dim);
  color: var(--bo-coral);
}

.bo-chip input { display: none; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.bo-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bo-coral);
  color: #fff;
  border: none;
  border-radius: var(--bo-radius-sm);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
}

.bo-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.bo-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.bo-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--bo-text-dim);
  border: 1px solid var(--bo-input-border);
  border-radius: var(--bo-radius-sm);
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}

.bo-btn-secondary:hover { border-color: var(--bo-text-dim); color: var(--bo-text); }

.bo-btn-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.bo-btn-launch svg { flex-shrink: 0; }

.bo-error {
  color: var(--bo-coral);
  font-size: 13px;
  margin: 4px 0 0;
  min-height: 18px;
}

/* ── Stripe button ───────────────────────────────────────────────────────── */

.bo-stripe-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #635BFF;
  color: #fff;
  border: none;
  border-radius: var(--bo-radius-sm);
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}

.bo-stripe-btn:hover { opacity: 0.9; }

/* ── Upload / Drop zones ─────────────────────────────────────────────────── */

.bo-drop-zone {
  border: 2px dashed var(--bo-input-border);
  border-radius: var(--bo-radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.bo-drop-zone:hover,
.bo-drop-zone.dragover {
  border-color: var(--bo-coral);
  background: rgba(255,77,109,0.05);
}

.bo-drop-icon { margin-bottom: 8px; color: var(--bo-text-dim); }
.bo-drop-text { font-size: 14px; margin: 0 0 4px; color: var(--bo-text-dim); }
.bo-drop-browse { color: var(--bo-coral); cursor: pointer; font-weight: 600; }
.bo-drop-hint { font-size: 11px; color: #666; margin: 0; }

.bo-logo-preview {
  display: none;
  max-width: 120px;
  max-height: 80px;
  margin: 12px auto 0;
  border-radius: 8px;
  object-fit: contain;
}

.bo-upload-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed var(--bo-input-border);
  border-radius: var(--bo-radius-sm);
  padding: 16px;
  cursor: pointer;
  color: var(--bo-text-dim);
  font-size: 13px;
  transition: border-color 0.2s;
}

.bo-upload-box:hover { border-color: var(--bo-coral); }

.bo-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.bo-upload-preview img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--bo-card-border);
}

/* ── Summary card ────────────────────────────────────────────────────────── */

.bo-summary-card {
  background: var(--bo-card);
  border: 1px solid var(--bo-card-border);
  border-radius: var(--bo-radius);
  padding: 24px;
  margin-bottom: 24px;
}

.bo-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--bo-card-border);
}

.bo-summary-row:last-child { border-bottom: none; }

.bo-summary-label {
  font-size: 13px;
  color: var(--bo-text-dim);
  font-weight: 500;
}

.bo-summary-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--bo-text);
  text-align: right;
}

/* ── Success state ───────────────────────────────────────────────────────── */

.bo-success-card {
  text-align: center;
  padding: 48px 20px;
}

.bo-success-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: bo-bounce 0.6s ease;
}

@keyframes bo-bounce {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.bo-success-card .bo-title { font-size: 32px; }

.bo-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

/* ── Confetti canvas ─────────────────────────────────────────────────────── */

#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .bo-container { padding: 24px 16px 60px; }
  .bo-title { font-size: 22px; }
  .bo-stepper { padding: 14px 12px; }
  .bo-step-label { font-size: 9px; }
  .bo-step-circle { width: 30px; height: 30px; font-size: 12px; }
  .bo-field-row { grid-template-columns: 1fr; }
  .bo-btn-row { flex-direction: column-reverse; }
  .bo-success-actions { flex-direction: column; }
}
