.product-tour-open {
  overflow: hidden;
}

.product-tour-root {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.product-tour-root[hidden] {
  display: none;
}

.product-tour-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.64);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.product-tour-spotlight {
  position: fixed;
  z-index: 1;
  border-radius: 14px;
  border: 2px solid rgba(34, 197, 94, 0.9);
  box-shadow:
    0 0 0 9999px rgba(2, 6, 23, 0.68),
    0 0 0 2px rgba(34, 197, 94, 0.45),
    0 16px 34px rgba(2, 6, 23, 0.55);
  transition: left 160ms ease, top 160ms ease, width 160ms ease, height 160ms ease;
  pointer-events: none;
}

.product-tour-card {
  position: fixed;
  z-index: 2;
  width: min(410px, calc(100vw - 32px));
  border-radius: 16px;
  border: 1px solid var(--panel-border, rgba(148, 163, 184, 0.28));
  background: linear-gradient(
    170deg,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.92)
  );
  color: var(--text, #e2e8f0);
  box-shadow: 0 22px 46px rgba(2, 6, 23, 0.58);
  padding: 16px;
}

:root[data-theme="light"] .product-tour-card {
  background: linear-gradient(
    175deg,
    rgba(255, 255, 255, 0.98),
    rgba(248, 250, 252, 0.96)
  );
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.22);
}

.product-tour-heading {
  margin: 0 0 6px;
  font-family: var(--font-ui, "Segoe UI", sans-serif);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted, #94a3b8);
}

.product-tour-title {
  margin: 0;
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.15;
  font-family: var(--font-ui, "Segoe UI", sans-serif);
}

.product-tour-body {
  margin: 10px 0 0;
  line-height: 1.45;
  font-size: 14px;
}

.product-tour-meta {
  margin: 12px 0 0;
  font-size: 12px;
  font-family: var(--font-ui, "Segoe UI", sans-serif);
  color: var(--muted, #94a3b8);
}

.product-tour-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-tour-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-tour-skip,
.product-tour-back,
.product-tour-next {
  min-height: 36px;
}

.product-tour-target-active {
  position: relative;
  z-index: 40 !important;
}

@media (max-width: 760px) {
  .product-tour-card {
    padding: 14px;
  }

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

  .product-tour-controls {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-tour-spotlight {
    transition: none;
  }
}
