.wsa-tour-active {
  overflow: hidden;
}

.wsa-tour-root {
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
}

.wsa-tour-root.hidden {
  display: none;
}

.wsa-tour-scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 24, 0.72);
  backdrop-filter: blur(4px);
}

.wsa-tour-focus {
  position: fixed;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 0 9999px rgba(6, 12, 24, 0.66),
    0 22px 48px rgba(0, 0, 0, 0.32),
    0 0 0 8px rgba(99, 102, 241, 0.18);
  transition:
    left 240ms ease,
    top 240ms ease,
    width 240ms ease,
    height 240ms ease,
    opacity 180ms ease;
  pointer-events: none;
}

.wsa-tour-focus.hidden {
  opacity: 0;
}

.wsa-tour-panel {
  position: fixed;
  width: min(360px, calc(100vw - 24px));
  border-radius: 24px;
  padding: 20px 20px 18px;
  color: #e5eefc;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(10, 15, 28, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  pointer-events: auto;
  transition:
    left 240ms ease,
    top 240ms ease,
    transform 240ms ease,
    opacity 180ms ease;
}

.wsa-tour-panel.centered {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%);
}

.wsa-tour-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wsa-tour-title {
  margin-top: 14px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
  color: #f8fbff;
}

.wsa-tour-copy {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: #cdd8eb;
}

.wsa-tour-progress {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.wsa-tour-dot {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.wsa-tour-dot::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.wsa-tour-dot.active::after,
.wsa-tour-dot.done::after {
  transform: scaleX(1);
}

.wsa-tour-dot.done::after {
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
}

.wsa-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.wsa-tour-actions-left,
.wsa-tour-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wsa-tour-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 120ms ease, filter 120ms ease, opacity 120ms ease;
}

.wsa-tour-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.wsa-tour-btn:disabled {
  opacity: 0.42;
  cursor: default;
  transform: none;
}

.wsa-tour-btn.ghost {
  background: rgba(148, 163, 184, 0.12);
  color: #dbe7f6;
}

.wsa-tour-btn.primary {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  color: #fff;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35);
}

.wsa-tour-step-count {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

.wsa-tour-target {
  position: relative;
  z-index: 99999 !important;
}

@media (prefers-reduced-motion: reduce) {
  .wsa-tour-focus,
  .wsa-tour-panel,
  .wsa-tour-dot::after,
  .wsa-tour-btn {
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .wsa-tour-focus {
    border-radius: 18px;
  }

  .wsa-tour-panel {
    width: min(100vw - 16px, 340px);
    padding: 18px 16px 16px;
  }

  .wsa-tour-title {
    font-size: 20px;
  }

  .wsa-tour-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wsa-tour-actions-left,
  .wsa-tour-actions-right {
    width: 100%;
    justify-content: space-between;
  }

  .wsa-tour-btn {
    flex: 1;
    justify-content: center;
  }
}
