/* ══ Onboarding v2 ══════════════════════════════════════════════ */

.onboarding-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 9000 !important;
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 16px 0;
  box-sizing: border-box;
  pointer-events: none;
}

/* ── Card ── */
.onboarding-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.13),
    0 1px 4px rgba(0, 0, 0, 0.07);
  padding: 18px 18px 16px;
  position: relative;
  box-sizing: border-box;
  pointer-events: all;
  animation: ob-drop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  border: 1px solid rgba(0,0,0,0.06);
  max-height: 85vh;
  overflow-y: auto;
}

@keyframes ob-drop {
  from { opacity: 0; transform: translateY(-24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.onboarding-card--exit {
  animation: ob-rise 0.22s cubic-bezier(0.4, 0, 1, 1) both;
}

@keyframes ob-rise {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-16px) scale(0.97); }
}

/* Accent bar */
.onboarding-card::before {
  content: "";
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 2px;
  background: linear-gradient(90deg, #1a73c8, #4f46e5);
  border-radius: 0 0 2px 2px;
}

/* ── Header row ── */
.ob-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ob-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ob-icon--blue   { background: #e6f1fb; }
.ob-icon--indigo { background: #eef2ff; }
.ob-icon--green  { background: #d1fae5; }
.ob-icon--orange { background: #fef3c7; }

.ob-icon svg { width: 16px; height: 16px; }
.ob-icon--blue   svg { fill: #1a73c8; }
.ob-icon--indigo svg { fill: #4f46e5; }
.ob-icon--green  svg { fill: #059669; }
.ob-icon--orange svg { fill: #d97706; }

.ob-title {
  font-family: "Geist", "Satoshi", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  margin: 0;
  flex: 1;
}

.ob-close {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: none;
  background: #f3f4f6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
  padding: 0;
}
.ob-close:hover { background: #e5e7eb; }
.ob-close svg { width: 12px; height: 12px; fill: #6b7280; }

/* ── Body text ── */
.ob-subtitle {
  font-family: "Geist", "Satoshi", sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 14px;
}

/* ── Action Preview (Manager CRUD mockup) ── */
.ob-action-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #f0f9ff 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  margin-bottom: 14px;
  transition: transform 0.15s;
}
.ob-action-preview:hover { transform: scale(1.01); }

.ob-action-preview__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1a73c8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ob-action-preview__icon svg { fill: #fff; }

.ob-action-preview__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ob-action-preview__label {
  font-family: "Geist", "Satoshi", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e40af;
}
.ob-action-preview__desc {
  font-family: "Geist", "Satoshi", sans-serif;
  font-size: 0.6875rem;
  color: #6b7280;
}

/* ── Tip ── */
.ob-tip {
  display: flex;
  gap: 8px;
  padding: 9px 11px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  margin-bottom: 14px;
}
.ob-tip svg { width: 13px; height: 13px; fill: #0369a1; flex-shrink: 0; margin-top: 1px; }
.ob-tip p {
  font-family: "Geist", "Satoshi", sans-serif;
  font-size: 0.75rem;
  color: #0c4a6e;
  line-height: 1.45;
  margin: 0;
}

/* ── Chips ── */
.ob-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.ob-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-family: "Geist", "Satoshi", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
}
.ob-chip svg { width: 11px; height: 11px; fill: #6b7280; }

/* ── Footer ── */
.ob-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

/* Progress dots */
.ob-progress {
  display: flex;
  gap: 4px;
  align-items: center;
}
.ob-dot {
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: #e2e8f0;
  transition: all 0.2s ease;
}
.ob-dot--active {
  background: #1a73c8;
  width: 14px;
}
.ob-dot--done { background: #bfdbfe; }

/* Buttons */
.ob-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ob-btn-primary {
  padding: 8px 18px;
  background: #1a73c8;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-family: "Geist", "Satoshi", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.ob-btn-primary:hover { background: #1565b8; box-shadow: 0 3px 10px rgba(26,115,200,0.28); }
.ob-btn-primary:active { transform: scale(0.97); }

.ob-btn-skip {
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 9px;
  font-family: "Geist", "Satoshi", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.15s;
}
.ob-btn-skip:hover { color: #6b7280; }

/* ── Step transition ── */
.ob-step-content {
  animation: ob-content-in 0.22s ease both;
}
@keyframes ob-content-in {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}
