/* Tour Overlay Styles - Extracted from index.html lines 27021-27426 */

.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9950;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tour-overlay.tour-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.tour-overlay-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tour-cutout-live {
  transition: x 0.45s cubic-bezier(.16,1,.3,1),
              y 0.45s cubic-bezier(.16,1,.3,1),
              width 0.45s cubic-bezier(.16,1,.3,1),
              height 0.45s cubic-bezier(.16,1,.3,1),
              rx 0.45s cubic-bezier(.16,1,.3,1);
}

/* Tour Tooltip */
.tour-tooltip {
  position: fixed;
  z-index: 9970;
  width: 400px;
  max-width: 92vw;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 20px 64px rgba(0,0,0,0.22), 0 0 0 1px rgba(18,9,76,0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
}
.tour-tooltip.tour-tt-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Arrow */
.tour-tt-arrow {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--paper);
  border: 1px solid rgba(18,9,76,0.06);
  transform: rotate(45deg);
  z-index: -1;
}
.tour-tt-arrow[data-pos="top"] {
  bottom: -7px;
  left: 50%;
  margin-left: -7px;
  border-top: none;
  border-left: none;
}
.tour-tt-arrow[data-pos="bottom"] {
  top: -7px;
  left: 50%;
  margin-left: -7px;
  border-bottom: none;
  border-right: none;
}
.tour-tt-arrow[data-pos="left"] {
  right: -7px;
  top: 50%;
  margin-top: -7px;
  border-bottom: none;
  border-left: none;
}
.tour-tt-arrow[data-pos="right"] {
  left: -7px;
  top: 50%;
  margin-top: -7px;
  border-top: none;
  border-right: none;
}

/* Tooltip Header */
.tour-tt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 0;
}
.tour-tt-step-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.tour-tt-skip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px 0;
  transition: color 0.15s;
}
.tour-tt-skip:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Tooltip Body */
.tour-tt-body {
  padding: 14px 20px 8px;
}
.tour-tt-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.tour-tt-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 10px;
}
.tour-tt-desc {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  font-weight: 300;
}
.tour-tt-tip {
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.tour-tt-tip-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  margin-top: 1px;
}

/* Tooltip Footer */
.tour-tt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 16px;
  gap: 12px;
}
.tour-tt-back {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border: 1px solid var(--rule);
  background: none;
  color: var(--ink-2);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.tour-tt-back:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tour-tt-next {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 7px 18px;
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.tour-tt-next:hover {
  background: var(--accent-mid);
}

/* Progress Dots */
.tour-progress-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.tour-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rule);
  transition: all 0.3s ease;
}
.tour-dot.tour-dot-active {
  background: var(--accent);
  transform: scale(1.5);
}
.tour-dot.tour-dot-completed {
  background: var(--accent);
  opacity: 0.45;
}

/* Welcome / Completion Center Cards */
.tour-center-card {
  position: fixed;
  z-index: 9972;
  top: 50%;
  left: 50%;
  width: 500px;
  max-width: 94vw;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28), 0 0 0 1px rgba(18,9,76,0.06);
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-out, transform 0.4s ease-out, visibility 0.4s ease-out;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tour-center-card.tour-cc-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.tour-cc-banner {
  background: var(--accent);
  padding: 36px 36px 28px;
  text-align: center;
}
.tour-cc-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}
.tour-cc-heading {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: #fff;
  line-height: 1.3;
}
.tour-cc-body {
  padding: 28px 36px 32px;
  text-align: center;
}
.tour-cc-text {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 300;
}
.tour-cc-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.tour-cc-primary {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 11px 36px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.tour-cc-primary:hover {
  background: var(--accent-mid);
}
.tour-cc-secondary {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s;
}
.tour-cc-secondary:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Completion Checkmark */
.tour-checkmark-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tour-checkmark-wrap svg {
  width: 28px;
  height: 28px;
}
.tour-checkmark-wrap svg path {
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}
.tour-cc-visible .tour-checkmark-wrap svg path {
  animation: tourCheckDraw 0.5s 0.3s ease forwards;
}
@keyframes tourCheckDraw {
  to { stroke-dashoffset: 0; }
}

/* Celebration Dots */
.tour-celebration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.tour-confetti-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0;
}
.tour-cc-visible .tour-confetti-dot {
  animation: tourConfettiRise var(--dur, 2.5s) var(--delay, 0s) ease-out forwards;
}
@keyframes tourConfettiRise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  15% {
    opacity: 0.85;
    transform: translateY(-20px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-180px) scale(0.3);
  }
}

/* Mobile adjustments */
@media (max-width: 540px) {
  .tour-tooltip { width: 92vw; }
  .tour-center-card { width: 94vw; }
  .tour-cc-banner { padding: 24px 20px 20px; }
  .tour-cc-body { padding: 20px 20px 24px; }
  .tour-tt-body { padding: 12px 16px 6px; }
  .tour-tt-footer { padding: 10px 16px 14px; }
  .tour-tt-title { font-size: 18px; }
  .tour-cc-heading { font-size: 22px; }
}
