/* Onboarding tour popup shown to new users after first login (replayable via account drawer) */

.onb-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 14, 23, 0.56);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.onb-overlay.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.onb-card {
  width: min(100%, 420px);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 18px);
  box-shadow: var(--shadow-md, 0 28px 80px rgba(0, 0, 0, 0.24));
  padding: 24px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.onb-overlay.is-open .onb-card {
  transform: scale(1);
}

.onb-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--muted-fg, var(--fg));
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.onb-close:hover {
  background: var(--border);
}

.onb-step {
  display: none;
}

.onb-step--active {
  display: block;
}

.onb-step-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #0d9488 0%, #2563eb 100%);
}

.onb-step-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.onb-step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--fg);
}

.onb-step-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-fg, var(--fg));
  margin: 0 0 12px;
}

.onb-step-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.onb-step-link:hover {
  text-decoration: underline;
}

.onb-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 20px;
}

.onb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.onb-dot--active {
  background: var(--primary);
  transform: scale(1.25);
}

.onb-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.onb-actions-right {
  display: flex;
  gap: 8px;
}

.onb-btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.onb-btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted-fg, var(--fg));
}

.onb-btn--ghost:hover {
  background: var(--border);
}

.onb-btn--primary {
  background: var(--primary);
  color: #fff;
}

.onb-btn--primary:hover {
  opacity: 0.9;
}

@media (max-width: 480px) {
  .onb-card {
    padding: 20px;
  }
}
