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

.tour-root.is-active {
  pointer-events: auto;
}

.tour-backdrop {
  position: fixed;
  inset: 0;
  background: hsl(0 0% 0% / 0.58);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tour-root.is-active .tour-backdrop {
  opacity: 1;
}

.tour-spotlight {
  position: fixed;
  border-radius: var(--radius-xl);
  box-shadow: 0 0 0 9999px hsl(0 0% 0% / 0.58);
  border: 2px solid hsl(var(--primary) / 0.85);
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transition: top 0.28s ease, left 0.28s ease, width 0.28s ease, height 0.28s ease, opacity 0.2s ease;
  z-index: 12001;
}

.tour-root.is-active .tour-spotlight.is-visible {
  opacity: 1;
}

.tour-card {
  position: fixed;
  z-index: 12002;
  width: min(380px, calc(100vw - 32px));
  background: hsl(var(--card) / 0.98);
  border: 1px solid hsl(var(--primary) / 0.35);
  border-radius: var(--radius-xl);
  padding: 18px 18px 14px;
  box-shadow: var(--panel-shadow), 0 16px 48px hsl(0 0% 0% / 0.22);
  font-family: var(--font-body);
  color: hsl(var(--foreground));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, top 0.28s ease, left 0.28s ease;
}

.tour-root.is-active .tour-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.tour-root.is-active .tour-card.is-centered.is-visible {
  transform: translate(-50%, -50%);
}

.tour-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tour-step-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.tour-dots {
  display: flex;
  gap: 5px;
}

.tour-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: hsl(var(--border));
  transition: background 0.2s ease, transform 0.2s ease;
}

.tour-dot.is-active {
  background: var(--brand-blue);
  transform: scale(1.15);
}

.tour-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: hsl(var(--foreground));
}

.tour-body {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
}

.tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tour-actions-main {
  display: flex;
  gap: 8px;
}

.tour-btn {
  border: none;
  border-radius: var(--radius-lg);
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tour-btn-ghost {
  background: transparent;
  color: hsl(var(--muted-foreground));
}

.tour-btn-ghost:hover {
  color: hsl(var(--foreground));
}

.tour-btn-secondary {
  background: hsl(var(--surface));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.tour-btn-secondary:hover {
  border-color: hsl(var(--primary) / 0.4);
}

.tour-btn-primary {
  background: var(--brand-blue);
  color: var(--brand-black);
}

.tour-btn-primary:hover {
  background: var(--brand-blue-hover);
}

.tour-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .tour-card {
    width: calc(100vw - 24px);
    left: 12px !important;
    right: 12px;
    bottom: 16px;
    top: auto !important;
    transform: none;
  }

  .tour-root.is-active .tour-card.is-visible {
    transform: none;
  }
}
