/* ============================================
   GUIDED TOUR SYSTEM
   ============================================ */

.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  transition: opacity 0.3s ease;
}

.tour-spotlight {
  position: fixed;
  z-index: 10001;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
  transition: all 0.4s ease;
  pointer-events: none;
}

.tour-tooltip {
  position: fixed;
  z-index: 10002;
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 360px;
  width: calc(100vw - 32px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: tourFadeIn 0.3s ease;
}

.tour-tooltip-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.tour-tooltip-desc {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 20px;
}

.tour-tooltip-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tour-step-counter {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 500;
}

.tour-btn-next {
  background: #2563eb;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.tour-btn-next:hover {
  background: #1d4ed8;
}

.tour-btn-skip {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 4px 8px;
}

.tour-btn-skip:hover {
  color: #64748b;
}

.tour-replay-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #2563eb;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.tour-replay-btn:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.tour-progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
}

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

.tour-progress-dot.active {
  background: #2563eb;
  width: 24px;
  border-radius: 4px;
}

.tour-progress-dot.completed {
  background: #93c5fd;
}

.tour-final-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tour-btn-primary {
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}

.tour-btn-primary:hover {
  background: #1d4ed8;
}

.tour-btn-secondary {
  background: #f8fafc;
  color: #2563eb;
  border: 1px solid #e2e8f0;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.tour-btn-secondary:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

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

@media (max-width: 767px) {
  .tour-tooltip {
    max-width: calc(100vw - 24px);
    padding: 20px;
  }

  .tour-replay-btn {
    bottom: 16px;
    left: 16px;
  }
}
