.sa-tour-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2147482000;
}

.sa-tour-root--active {
  opacity: 1;
}

.sa-tour-lock {
  overflow: hidden;
}

.sa-tour-dim {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 25, 0.55);
  pointer-events: auto;
}

.sa-tour-spotlight {
  position: fixed;
  border-radius: 16px;
  border: 2px solid rgba(124, 142, 253, 0.9);
  box-shadow: 0 0 45px rgba(18, 25, 74, 0.5);
  pointer-events: none;
  transition: all 0.2s ease;
}

.sa-tour-popover {
  position: fixed;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  background: #0f142f;
  color: #f6f7ff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(7, 11, 28, 0.55);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sa-tour-popover__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.75;
}

.sa-tour-close {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.sa-tour-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.sa-tour-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.sa-tour-actions {
  margin-top: 4px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.sa-tour-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
}

.sa-tour-btn.primary {
  background: linear-gradient(135deg, #6f7dff, #a178ff);
  color: #fff;
}

.sa-tour-btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sa-tour-btn.subtle {
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
}

.sa-tour-progress {
  font-weight: 600;
}

.sa-tour-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2147483645;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sa-tour-launcher--visible {
  opacity: 1;
  transform: translateY(0);
}

.sa-tour-launcher__button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: #151b3c;
  box-shadow: 0 10px 25px rgba(10, 15, 40, 0.55);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.sa-tour-launcher__icon svg {
  width: 48px;
  height: 48px;
}

.sa-tour-launcher__icon,
.sa-tour-launcher__fallback {
  width: 48px;
  height: 48px;
}

.sa-tour-launcher__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
}

.sa-tour-launcher__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff5c7c;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
}

.sa-tour-launcher__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  max-width: 140px;
  background: rgba(21, 27, 60, 0.75);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sa-tour-launcher__label--hidden {
  opacity: 0;
  transform: translateY(6px);
}

.sa-tour-launcher--pulse .sa-tour-launcher__button::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(130, 144, 255, 0.8);
  animation: saTourPulse 1.6s ease-out infinite;
}

.sa-tour-launcher--done .sa-tour-launcher__button {
  background: #1e8e3e;
}

@keyframes saTourPulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .sa-tour-launcher {
    right: 12px;
    bottom: 12px;
  }
}
