/* First-open welcome tour overlay. Self-contained; layered above the home UI.
   Night-mode friendly (the comfort veil tints it like everything else). */
.onb-overlay {
  position: fixed; inset: 0; z-index: 10050;
  display: grid; place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  background: rgba(9, 28, 33, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: onbFade .2s ease both;
}
.onb-overlay.onb-closing { animation: onbFade .2s ease reverse both; }
@keyframes onbFade { from { opacity: 0; } to { opacity: 1; } }

.onb-card {
  position: relative;
  width: min(400px, 100%);
  background: linear-gradient(180deg, #ffffff, #f5fafa);
  border-radius: 24px;
  padding: 30px 22px 22px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(6, 26, 31, .4);
  animation: onbPop .26s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes onbPop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .onb-overlay, .onb-card { animation: none !important; }
}

.onb-skip {
  position: absolute; inset-inline-end: 14px; top: 14px;
  border: 0; background: transparent; color: #5e6f74;
  font: 800 .74rem/1 inherit; padding: 6px;
}
.onb-icon {
  width: 74px; height: 74px; margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 22px; font-size: 2.4rem;
  background: linear-gradient(145deg, #123f48, #1b7484);
  box-shadow: 0 12px 28px rgba(18, 63, 72, .3);
}
.onb-title { margin: 0 0 8px; font-size: 1.3rem; color: #17323a; }
.onb-text { margin: 0 0 18px; color: #4a5b61; font-size: .92rem; line-height: 1.7; }

.onb-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.onb-dots i { width: 7px; height: 7px; border-radius: 50%; background: #cdd9db; transition: all .2s ease; }
.onb-dots i.on { background: #1b7484; width: 20px; border-radius: 999px; }

.onb-next {
  width: 100%; min-height: 52px; border: 0; border-radius: 15px;
  background: linear-gradient(145deg, #1b7484, #155865);
  color: #fff; font: 900 1rem/1 inherit;
  box-shadow: 0 10px 24px rgba(23, 111, 125, .3);
}
.onb-next:active { transform: translateY(1px); filter: brightness(1.05); }
