/* ═══════════════════════════════════════════════════════════════
   ONBOARDING TOUR — spotlight + tooltip overlay
   ═══════════════════════════════════════════════════════════════ */

/* Dark backdrop with a hole cut out for the highlighted element */
.tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: auto;
}

/* Spotlight ring around the target element */
.tour-spotlight {
  position: absolute;
  z-index: 9999;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75);
  transition: all 0.35s ease;
  pointer-events: none;
}

/* Tooltip */
.tour-tooltip {
  position: absolute;
  z-index: 10000;
  background: var(--surface, #1a1a2e);
  border: 2px solid var(--accent, #e94560);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  max-width: 340px;
  min-width: 260px;
  color: var(--text, #eaeaea);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: tourFadeIn 0.3s ease;
}

@keyframes tourFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tour-tooltip h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--accent, #e94560);
}

.tour-tooltip p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  color: var(--text, #eaeaea);
}

.tour-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.tour-dots {
  display: flex;
  gap: 0.35rem;
}

.tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
  transition: background 0.2s;
}

.tour-dot.active {
  background: var(--accent, #e94560);
}

.tour-dot.done {
  background: var(--green, #4ecca3);
}

.tour-btns {
  display: flex;
  gap: 0.5rem;
}

.tour-btn {
  padding: 0.45rem 0.9rem;
  border: none;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.tour-btn-skip {
  background: transparent;
  color: var(--muted, #888);
}

.tour-btn-skip:hover {
  color: var(--text, #eaeaea);
}

.tour-btn-next {
  background: var(--accent, #e94560);
  color: white;
}

.tour-btn-next:hover {
  background: var(--accent-hover, #ff6b81);
  transform: translateY(-1px);
}

.tour-btn-prev {
  background: #333;
  color: var(--text, #eaeaea);
}

.tour-btn-prev:hover {
  background: #444;
}

/* ── Welcome modal (step 0) ────────────────── */
.tour-welcome {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  animation: tourFadeIn 0.3s ease;
}

.tour-welcome-card {
  background: var(--surface, #1a1a2e);
  border: 2px solid var(--accent, #e94560);
  border-radius: 16px;
  padding: 2rem;
  max-width: 440px;
  width: 90%;
  text-align: center;
}

.tour-welcome-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--accent), #ff9a76);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tour-welcome-card p {
  font-size: 0.92rem;
  color: var(--muted, #888);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.tour-welcome-card .tour-btns {
  justify-content: center;
}

/* ── Mobile overrides ──────────────────────── */
@media (max-width: 640px) {
  .tour-tooltip {
    max-width: 290px;
    min-width: 220px;
    padding: 1rem;
  }

  .tour-tooltip h3 {
    font-size: 0.92rem;
  }

  .tour-tooltip p {
    font-size: 0.82rem;
  }

  .tour-welcome-card {
    padding: 1.5rem;
  }

  .tour-welcome-card h2 {
    font-size: 1.25rem;
  }
}
