/* ── Tour Overlay ─────────────────────────────────────────── */
.tour-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  display: none;
}

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

.tour-popover {
  position: fixed;
  z-index: 10000;
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: none;
  animation: tourSlideIn 0.3s ease;
}

.tour-popover-header {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #1a1a1a;
}

.tour-popover-body {
  font-size: 15px;
  line-height: 1.6;
  color: #4a4a4a;
  margin: 0 0 20px;
}

.tour-progress {
  font-size: 13px;
  color: #888;
  margin: 0 0 16px;
}

.tour-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.tour-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.tour-btn-skip {
  background: #e0e0e0;
  color: #666;
}
.tour-btn-skip:hover {
  background: #d0d0d0;
}

.tour-btn-next {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}
.tour-btn-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.tour-sub-highlight {
  outline: 3px solid #667eea;
  outline-offset: 4px;
  border-radius: 4px;
  animation: tourPulse 1.5s infinite;
}

@keyframes tourPulse {
  0%, 100% { outline-color: #667eea; }
  50%      { outline-color: #764ba2; }
}

.tour-restart-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line, #d0d0d0);
  border-radius: 999px;
  background: white;
  color: #4a4a4a;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition: all 0.2s;
  flex: 0 0 auto;
}
.tour-restart-btn:hover {
  background: #f5f5f5;
  border-color: #667eea;
  color: #667eea;
}

@media (max-width: 620px) {
  .tour-popover {
    left: 16px !important;
    right: 16px !important;
    max-width: none;
  }
}
