/* ============================================================
   WALKTHROUGH TOUR — Victoria HQ  (v4 — no overlay)
   The tour card floats over the live app with NO backdrop.
   Nav items get a purple glow ring. That's it.
   ============================================================ */

/* ── Floating tour card ───────────────────────────────────────────────────── */
#tour-card {
  position: fixed;
  z-index: 9010;
  width: 760px;
  max-width: calc(100vw - 250px);
  /* NO top/right here — set dynamically by JS based on target element */
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid hsl(265, 30%, 88%);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 20px 56px rgba(0, 0, 0, 0.16),
    0 0 0 1px hsl(265, 50%, 92%);
  overflow: hidden;
  pointer-events: auto;
  /* Smooth movement between nav items */
  transition:
    top 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    left 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.24s ease,
    transform 0.24s ease;
  opacity: 0;
  transform: translateY(8px);
}
#tour-card.tour-card-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Purple top accent bar */
#tour-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, hsl(265, 80%, 52%), hsl(285, 70%, 62%));
}

/* ── Card inner: image left (full bleed), content right ─────────────────── */
.tour-card-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 360px;
}

/* ── Illustration panel: full-bleed image, fades into white ─────────────── */
.tour-card-illus {
  position: relative;
  overflow: hidden;
  /* No background, no padding — image fills 100% */
}
.tour-card-illus img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* fills the panel completely, no letterboxing */
  object-position: center;
}
/* Gradient overlay: fades the right edge of the image into white */
.tour-card-illus::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 30%,
    rgba(255,255,255,0.6) 65%,
    #ffffff 90%
  );
  pointer-events: none;
}
/* Feather-icon fallback (shown when image fails to load) */
.tour-card-illus-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(265, 30%, 97%);
}
.tour-card-illus-icon > div {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, hsl(265,70%,56%), hsl(280,65%,64%));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px hsl(265,70%,50%/0.3);
}
.tour-card-illus-icon svg,
.tour-card-illus-icon i {
  width: 36px !important;
  height: 36px !important;
  stroke: #ffffff !important;
}

/* ── Content panel ────────────────────────────────────────────────────────── */
.tour-card-content {
  display: flex;
  flex-direction: column;
}

.tour-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 0;
}
.tour-card-step-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(265, 65%, 52%);
}
.tour-card-close {
  width: 26px; height: 26px;
  border: none;
  background: hsl(265, 20%, 94%);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(265, 15%, 55%);
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.tour-card-close:hover {
  background: hsl(265, 45%, 88%);
  color: hsl(265, 70%, 38%);
}

/* Progress bar */
.tour-card-prog {
  height: 3px;
  background: hsl(265, 25%, 91%);
  margin: 12px 20px 0;
  border-radius: 2px;
  overflow: hidden;
}
.tour-card-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, hsl(265, 80%, 52%), hsl(285, 70%, 62%));
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Text */
.tour-card-body {
  padding: 16px 20px 10px;
  flex: 1;
}
.tour-card-title {
  font-size: 18px;
  font-weight: 700;
  color: hsl(265, 22%, 16%);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.tour-card-text {
  font-size: 14px;
  line-height: 1.7;
  color: hsl(265, 8%, 38%);
  margin: 0;
}
.tour-card-text strong { color: hsl(265, 18%, 18%); font-weight: 600; }
.tour-card-text em     { color: hsl(265, 60%, 44%); font-style: normal; }

/* Step dots */
.tour-card-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 12px 20px 0;
}
.tour-dot-btn {
  width: 7px; height: 7px;
  border-radius: 4px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: hsl(265, 20%, 83%);
  transition: all 0.2s ease;
}
.tour-dot-btn:hover { background: hsl(265, 50%, 62%); transform: scale(1.4); }
.tour-dot-btn.active {
  background: linear-gradient(90deg, hsl(265, 80%, 52%), hsl(285, 70%, 62%));
  width: 20px;
}

/* Footer buttons */
.tour-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 18px;
  border-top: 1px solid hsl(265, 25%, 92%);
  margin-top: 12px;
}
.tour-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid hsl(265, 20%, 82%);
  background: transparent;
  color: hsl(265, 12%, 50%);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.tour-btn-back:hover {
  border-color: hsl(265, 45%, 62%);
  color: hsl(265, 55%, 40%);
  background: hsl(265, 45%, 96%);
}
.tour-btn-skip {
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: hsl(265, 8%, 55%);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 7px;
  transition: all 0.15s;
  font-family: inherit;
}
.tour-btn-skip:hover {
  color: hsl(265, 15%, 30%);
  background: hsl(265, 15%, 93%);
}
.tour-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border: none;
  background: linear-gradient(135deg, hsl(265, 78%, 52%), hsl(280, 70%, 60%));
  color: #fff;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px hsl(265, 78%, 45% / 0.28);
  transition: all 0.15s;
  font-family: inherit;
}
.tour-btn-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px hsl(265, 78%, 45% / 0.4);
  background: linear-gradient(135deg, hsl(265, 78%, 57%), hsl(280, 70%, 65%));
}
.tour-btn-next:active { transform: none; }
.tour-btn-finish {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border: none;
  background: linear-gradient(135deg, hsl(142, 62%, 36%), hsl(152, 58%, 43%));
  color: #fff;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px hsl(142, 62%, 26% / 0.28);
  transition: all 0.15s;
  font-family: inherit;
}
.tour-btn-finish:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px hsl(142, 62%, 26% / 0.4);
}

/* ── Nav spotlight — purple glow on the active nav item ──────────────────── */
.tour-spotlight-el {
  position: relative !important;
  z-index: 100 !important;   /* only needs to be above normal nav, no scrim to beat */
  border-radius: 8px;
  outline: 2px solid hsl(265, 80%, 62%);
  outline-offset: 3px;
  animation: tourGlow 1.8s ease-in-out infinite;
}
@keyframes tourGlow {
  0%, 100% {
    outline-color: hsl(265, 80%, 60%);
    box-shadow: 0 0 0 4px hsl(265 80% 60% / 0.15),
                0 0 16px hsl(265 80% 60% / 0.28);
  }
  50% {
    outline-color: hsl(285, 85%, 70%);
    box-shadow: 0 0 0 6px hsl(285 85% 65% / 0.2),
                0 0 28px hsl(285 85% 65% / 0.4);
  }
}

/* ── Topbar tour launch button ────────────────────────────────────────────── */
.tour-topbar-btn {
  color: #fff !important;
  background: hsla(0, 0%, 100%, 0.15) !important;
  border-color: hsla(0, 0%, 100%, 0.3) !important;
}
.tour-topbar-btn:hover {
  background: hsla(0, 0%, 100%, 0.25) !important;
  color: #fff !important;
}

/* ── Help page restart button ─────────────────────────────────────────────── */
.tour-replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid hsl(265, 50%, 75%);
  background: hsl(265, 60%, 97%);
  color: hsl(265, 65%, 45%);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}
.tour-replay-btn:hover {
  background: hsl(265, 60%, 93%);
  border-color: hsl(265, 70%, 58%);
  color: hsl(265, 75%, 38%);
  transform: translateY(-1px);
}
