/* =============================================================
   SALOTT-IT — Guided Tour (first-connection onboarding)
   ============================================================= */

.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 89, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: var(--z-tour, 1060);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.tour-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.tour-spotlight {
  position: fixed;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(11, 37, 89, 0.55), 0 0 0 4px var(--accent, #FF6B35);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: calc(var(--z-tour, 1060) + 1);
  pointer-events: none;
}

.tour-popover {
  position: fixed;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 50px rgba(11, 37, 89, 0.25);
  padding: 22px 24px 18px;
  width: min(380px, calc(100vw - 32px));
  z-index: calc(var(--z-tour, 1060) + 2);
  font-family: var(--font, system-ui, sans-serif);
  color: var(--dark, #1a1a2e);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.tour-popover.is-active {
  opacity: 1;
  transform: translateY(0);
}

.tour-popover__step {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #FF6B35);
  margin-bottom: 6px;
}
.tour-popover__title {
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.25;
  color: var(--primary, #0b2559);
}
.tour-popover__body {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #2a2a3e;
  margin: 0 0 18px;
}

.tour-popover__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tour-popover__dots {
  display: flex;
  gap: 6px;
}
.tour-popover__dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8dde6;
  transition: all 0.2s;
}
.tour-popover__dots span.is-current {
  background: var(--accent, #FF6B35);
  width: 22px;
  border-radius: 4px;
}
.tour-popover__buttons {
  display: flex;
  gap: 8px;
}
.tour-btn {
  border: 0;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.86rem;
  transition: all 0.2s;
  font-family: inherit;
}
.tour-btn--ghost {
  background: transparent;
  color: var(--gray, #6c757d);
}
.tour-btn--ghost:hover { color: var(--dark, #1a1a2e); }
.tour-btn--primary {
  background: var(--accent, #FF6B35);
  color: #fff;
}
.tour-btn--primary:hover {
  background: var(--accent-dark, #e55a2b);
  transform: translateY(-1px);
}

.tour-popover__skip {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--gray, #6c757d);
  font-size: 1.1rem;
  padding: 4px;
  line-height: 1;
}
.tour-popover__skip:hover { color: var(--dark, #1a1a2e); }

/* Re-launch chip in footer/header */
.tour-relaunch {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--primary, #0b2559);
  color: #fff;
  border: 0;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 16px rgba(11, 37, 89, 0.25);
  z-index: var(--z-sticky, 1020);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.tour-relaunch:hover {
  background: var(--accent, #FF6B35);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .tour-popover {
    width: calc(100vw - 24px);
    left: 12px !important;
    right: 12px;
    bottom: 12px !important;
    top: auto !important;
    padding: 18px 18px 14px;
  }
  .tour-spotlight { display: none; }
  .tour-relaunch {
    bottom: 80px;
    left: 12px;
    padding: 8px 12px;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-overlay, .tour-spotlight, .tour-popover { transition: none; }
}
