/* ───────────────────────────────────────────────────
   GSO IQ — Guided Tour Overlay Styles
   ─────────────────────────────────────────────────── */

/* Backdrop overlay */
.tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  transition: opacity .3s ease;
}
.tour-backdrop.active { pointer-events: auto; }

/* SVG overlay with cutout hole */
.tour-backdrop svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Spotlight glow ring around highlighted element */
.tour-spotlight {
  position: fixed;
  z-index: 9999;
  border-radius: 8px;
  box-shadow: 0 0 0 4px rgba(250,131,52,.55),
              0 0 24px 4px rgba(250,131,52,.25);
  pointer-events: none;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}

/* Tooltip card */
.tour-tooltip {
  position: fixed;
  z-index: 10000;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(3,29,68,.18),
              0 0 0 1px rgba(250,131,52,.15);
  overflow: hidden;
  animation: tourSlideIn .35s cubic-bezier(.4,0,.2,1);
  font-family: system-ui, -apple-system, sans-serif;
}
.dark .tour-tooltip {
  background: #0a2540;
  box-shadow: 0 20px 60px rgba(0,0,0,.4),
              0 0 0 1px rgba(250,131,52,.25);
}

@keyframes tourSlideIn {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Tooltip arrow */
.tour-tooltip::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  transform: rotate(45deg);
  z-index: -1;
}
.dark .tour-tooltip::before { background: #0a2540; }

.tour-tooltip[data-pos="bottom"]::before {
  top: -6px;
  left: 50%;
  margin-left: -7px;
  box-shadow: -1px -1px 0 rgba(250,131,52,.15);
}
.tour-tooltip[data-pos="top"]::before {
  bottom: -6px;
  left: 50%;
  margin-left: -7px;
  box-shadow: 1px 1px 0 rgba(250,131,52,.15);
}
.tour-tooltip[data-pos="left"]::before {
  right: -6px;
  top: 50%;
  margin-top: -7px;
  box-shadow: 1px -1px 0 rgba(250,131,52,.15);
}
.tour-tooltip[data-pos="right"]::before {
  left: -6px;
  top: 50%;
  margin-top: -7px;
  box-shadow: -1px 1px 0 rgba(250,131,52,.15);
}

/* Center mode (no arrow for welcome/finish screens) */
.tour-tooltip[data-pos="center"]::before { display: none; }

/* Tooltip header stripe */
.tour-tooltip-header {
  background: linear-gradient(135deg, #FA8334, #e5732b);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tour-tooltip-header .tour-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tour-tooltip-header .tour-icon svg { width: 20px; height: 20px; color: #fff; }
.tour-tooltip-header h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}
.tour-tooltip-header .tour-step-badge {
  margin-left: auto;
  background: rgba(255,255,255,.25);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

/* Navigation breadcrumb (e.g. "Data → Awards") */
.tour-nav-crumb {
  padding: 7px 20px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FA8334;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  background: #FFF5EC;
  border-bottom: 1px solid rgba(250,131,52,.1);
}
.dark .tour-nav-crumb {
  background: rgba(250,131,52,.06);
  border-bottom-color: rgba(250,131,52,.12);
}
.tour-nav-crumb svg { color: #FA8334; }
.tour-nav-crumb span { padding-bottom: 6px; }

/* Tooltip body */
.tour-tooltip-body {
  padding: 16px 20px;
}
.tour-tooltip-body p {
  color: #374151;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 8px;
}
.dark .tour-tooltip-body p { color: #c5d1e0; }

.tour-tooltip-body .tour-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  background: #FFF5EC;
  border-radius: 10px;
  border: 1px solid rgba(250,131,52,.15);
}
.dark .tour-tooltip-body .tour-tip {
  background: rgba(250,131,52,.08);
  border-color: rgba(250,131,52,.2);
}
.tour-tip svg { width: 16px; height: 16px; color: #FA8334; flex-shrink: 0; margin-top: 1px; }
.tour-tip span { font-size: 13px; color: #6b7280; line-height: 1.5; }
.dark .tour-tip span { color: #8ba3bf; }

/* Tooltip footer */
.tour-tooltip-footer {
  padding: 12px 20px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Progress dots */
.tour-dots {
  display: flex;
  gap: 5px;
  flex: 1;
}
.tour-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5e7eb;
  transition: all .2s ease;
}
.dark .tour-dots span { background: #1b4a75; }
.tour-dots span.active {
  background: #FA8334;
  width: 20px;
  border-radius: 4px;
}

/* Buttons */
.tour-btn {
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  border: none;
  outline: none;
}
.tour-btn-secondary {
  background: #f3f4f6;
  color: #374151;
}
.dark .tour-btn-secondary { background: #1b4a75; color: #c5d1e0; }
.tour-btn-secondary:hover { background: #e5e7eb; }
.dark .tour-btn-secondary:hover { background: #0a3058; }

.tour-btn-primary {
  background: linear-gradient(135deg, #FA8334, #e5732b);
  color: #fff;
  box-shadow: 0 2px 8px rgba(250,131,52,.3);
}
.tour-btn-primary:hover {
  box-shadow: 0 4px 16px rgba(250,131,52,.4);
  transform: translateY(-1px);
}

.tour-btn-skip {
  background: none;
  color: #9ca3af;
  padding: 8px 12px;
  font-size: 12px;
}
.tour-btn-skip:hover { color: #6b7280; }

/* Welcome screen (centered, no target element) */
.tour-welcome {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.tour-welcome-card {
  width: 480px;
  max-width: 100%;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(3,29,68,.2),
              0 0 0 1px rgba(250,131,52,.12);
  overflow: hidden;
  animation: tourSlideIn .4s cubic-bezier(.4,0,.2,1);
}
.dark .tour-welcome-card {
  background: #0a2540;
  box-shadow: 0 24px 80px rgba(0,0,0,.5),
              0 0 0 1px rgba(250,131,52,.2);
}
.tour-welcome-hero {
  background: linear-gradient(135deg, #FA8334 0%, #e5732b 50%, #c45f20 100%);
  padding: 32px 28px;
  text-align: center;
}
.tour-welcome-hero h2 {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
}
.tour-welcome-hero p {
  color: rgba(255,255,255,.8);
  font-size: 14px;
  margin: 0;
}
.tour-welcome-body {
  padding: 24px 28px;
  text-align: center;
}
.tour-welcome-body p {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.dark .tour-welcome-body p { color: #8ba3bf; }
.tour-welcome-body .tour-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  text-align: left;
}
.tour-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f9fafb;
  border-radius: 10px;
  font-size: 13px;
  color: #374151;
}
.dark .tour-feature { background: rgba(250,131,52,.06); color: #c5d1e0; }
.tour-feature svg { width: 16px; height: 16px; color: #FA8334; flex-shrink: 0; }

/* Responsive */
@media (max-width: 640px) {
  .tour-tooltip { width: 320px; }
  .tour-welcome-card { width: 360px; }
  .tour-welcome-body .tour-features {
    grid-template-columns: 1fr;
  }
}
