/* ═══════════════════════════════════════════════════════════════
   Tour / Onboarding
   ═══════════════════════════════════════════════════════════════ */

.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, clip-path 0.45s ease;
}
.tour-overlay.tour-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Tooltip — glass transparent */
.tour-tooltip {
  position: absolute;
  z-index: 9995;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(40px) saturate(120%);
  -webkit-backdrop-filter: blur(40px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.tour-tooltip.tour-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.tour-tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}
.tour-step-counter {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tour-skip {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  transition: color 0.15s;
  outline: none;
}
.tour-skip:hover { color: rgba(255, 255, 255, 0.6); }
.tour-skip:focus { outline: none; box-shadow: none; }

.tour-tooltip-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 0.45rem 0;
  line-height: 1.3;
}
.tour-tooltip-text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.48);
  margin: 0 0 1.1rem 0;
  line-height: 1.6;
  font-weight: 400;
}

.tour-tooltip-footer {
  display: flex;
  justify-content: flex-end;
}
.tour-btn-next {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.65);
  border: none;
  border-radius: 10px;
  padding: 0.5rem 1.3rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.2px;
  outline: none;
}
.tour-btn-next:hover {
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.85);
}
.tour-btn-next:focus { outline: none; box-shadow: none; }

@media (max-width: 768px) {
  .tour-tooltip {
    width: calc(100vw - 32px);
    padding: 1.2rem 1.25rem;
    border-radius: 14px;
  }
}
