/* ─── Onboarding intro modal (Stage 7) ─── */
body.ob-open { overflow: hidden; }

.ob-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
/* The base rule sets display:flex, which would otherwise override the [hidden]
 * attribute — this makes hidden actually hide the overlay (open/close + the
 * "only show once, only when signed in" logic all rely on toggling hidden). */
.ob-overlay[hidden] { display: none; }
.ob-backdrop {
  position: absolute; inset: 0;
  background: rgba(13, 31, 10, 0.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.ob-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  background: var(--bg-card); border-radius: 22px;
  padding: 38px 30px 26px;
  box-shadow: 0 24px 70px rgba(13, 31, 10, 0.30);
  text-align: center;
  animation: ob-pop 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ob-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.ob-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 26px; line-height: 1;
  color: var(--text-muted); cursor: pointer; padding: 2px 9px; border-radius: 8px;
  transition: all 0.2s;
}
.ob-close:hover { color: var(--text-main); background: var(--green-bg); }

.ob-step[hidden] { display: none; }
.ob-icon {
  width: 78px; height: 78px; margin: 4px auto 18px; border-radius: 50%;
  background: var(--green-bg); color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.ob-icon svg { width: 38px; height: 38px; }

.ob-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 700; color: var(--green-dark);
  margin: 0 0 10px; line-height: 1.15;
}
.ob-body {
  font-size: 15px; line-height: 1.55; color: var(--text-secondary);
  margin: 0 auto; max-width: 320px;
}

.ob-dots { display: flex; gap: 8px; justify-content: center; margin: 24px 0 22px; }
.ob-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-strong); transition: all 0.25s;
}
.ob-dot.is-active { background: var(--green); width: 22px; border-radius: 5px; }

.ob-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ob-skip {
  background: none; border: none; color: var(--text-muted);
  font-size: 14px; font-weight: 600; cursor: pointer; padding: 10px 6px;
  font-family: 'Inter', sans-serif; transition: color 0.2s;
}
.ob-skip:hover { color: var(--text-main); }
.ob-nav { display: flex; gap: 10px; }
.ob-btn {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px;
  border-radius: 30px; padding: 11px 24px; cursor: pointer;
  transition: all 0.2s; border: 1px solid var(--border-strong);
}
.ob-next, .ob-finish { background: var(--green); color: #F4F9F2; border-color: var(--green); }
.ob-next:hover, .ob-finish:hover { background: var(--green-light); border-color: var(--green-light); }
.ob-back { background: transparent; color: var(--text-secondary); }
.ob-back:hover { background: var(--green-bg); }
.ob-btn[hidden] { display: none; }

@media (max-width: 480px) {
  .ob-card { padding: 32px 22px 22px; border-radius: 18px; }
  .ob-title { font-size: 24px; }
  .ob-body { font-size: 14px; }
}
