/* ═══════════════════════════════════════════════
   ONBOARDING — Scoped styles (ob- prefix)
   ═══════════════════════════════════════════════ */

/* ── Wrapper: full viewport centering ── */
.ob-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  padding: 24px;
  padding-top: 60px;
  position: relative;
  overflow-y: auto;
}

/* ── Screens: only one visible at a time ── */
.ob-screen {
  display: none;
  width: 100%;
  max-width: 520px;
  animation: obFadeIn .4s ease both;
}

.ob-screen.ob-active {
  display: block;
}

@keyframes obFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* ── Welcome Screen ── */
.ob-welcome-card {
  text-align: center;
  padding: 48px 32px;

}

.ob-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a96e 0%, #a67c4a 100%);
  color: #111;
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(201, 169, 110, .25);
}

.ob-logo-done {
  background: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
  font-size: 28px;
}

.ob-welcome-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-1, #9e723b);
  margin: 0 0 12px;
  letter-spacing: -.02em;

}

.ob-welcome-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted, #9a9084);
  margin: 0 0 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.ob-welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* ── Buttons ── */
.ob-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
  line-height: 1;
}

.ob-btn-primary {
  background: linear-gradient(135deg, #c9a96e 0%, #b8944f 100%);
  color: #111;
  min-width: 160px;
  box-shadow: 0 4px 16px rgba(201, 169, 110, .2);
}

.ob-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201, 169, 110, .3);
}

.ob-btn-finish {
  background: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
}

.ob-btn-finish:hover {
  box-shadow: 0 6px 24px rgba(110, 231, 183, .3);
}

.ob-btn-secondary {
  background: var(--surface-2, #1e1e1e);
  color: var(--text-1, #e8e0d6);
}

.ob-btn-secondary:hover {
  background: var(--surface-3, #2a2a2a);
}

.ob-btn-outline {
  background: var(--surface-2, #5f5e5e);
  border: 1px solid var(--border, #2a2724);
  color: var(--text-1, #e8e0d6);
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
}

.ob-btn-outline:hover {
  background: var(--surface-2, #1e1e1e);
  border-color: var(--accent, #c9a96e);
}

.ob-btn-ghost {
  background: transparent;
  color: var(--muted, #9a9084);
  padding: 10px 20px;
}

.ob-btn-ghost:hover {
  color: var(--text-1, #b78f5f);
}

.ob-btn-icon {
  font-size: 16px;
}

/* ── Progress Bar ── */
.ob-progress {
  margin-bottom: 24px;
}

.ob-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ob-progress-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1, #e8e0d6);
}

.ob-progress-pct {
  font-size: 13px;
  color: var(--muted, #9a9084);
}

.ob-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: var(--surface-2, #1e1e1e);
  overflow: hidden;
}

.ob-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  background: linear-gradient(90deg, #c9a96e, #e0c98a);
  transition: width .5s cubic-bezier(.4, 0, .2, 1);
}

/* ── Step Cards ── */
.ob-steps {
  position: relative;
  overflow: hidden;
}

.ob-card {
  display: none;
  padding: 36px 32px;
  background: var(--surface-1, #eae8e8);
  border: 1px solid var(--border, #a7a6a6);
  border-radius: 16px;
  animation: obSlideIn .35s ease both;
}

.ob-card.ob-active {
  display: block;
}

@keyframes obSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

.ob-card-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a96e, #765d31);
  color: #111;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ob-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1, #996f3c);
  margin: 0 0 10px;
  letter-spacing: -.01em;
}

.ob-card-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted, #424140);
  margin: 0 0 24px;
}

.ob-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

/* ── Virtual Preview Page ── */
.ob-preview-card {
  margin-top: 50px;
  padding: 28px;
  background: var(--surface-1, #161412);
  border: 1px solid var(--border, #2a2724);
  border-radius: 16px;
  animation: obFadeIn .3s ease both;
}

.ob-preview-header {
  margin-bottom: 16px;
}

.ob-preview-icon {
  display: inline-flex;
  font-size: 28px;
  margin-bottom: 12px;
}

.ob-preview-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1, #e8e0d6);
  margin: 0 0 8px;
}

.ob-preview-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted, #9a9084);
  margin: 0 0 16px;
}

.ob-preview-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.ob-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.ob-feature-icon {
  flex-shrink: 0;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.ob-feature-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-1, #e8e0d6);
}

.ob-preview-footer {
  text-align: center;
  margin-top: 8px;
}

/* ── Responsive ── */
@media(max-width:560px) {
  .ob-wrapper {
    padding: 16px;
  }

  .ob-welcome-card {
    padding: 32px 20px;
  }

  .ob-card {
    padding: 28px 20px;
  }

  .ob-preview-card {
    padding: 24px 16px;
  }

  .ob-welcome-title {
    font-size: 24px;
  }

  .ob-card-title {
    font-size: 19px;
  }

  .ob-card-actions {
    flex-direction: column;
  }
}