:root {
  --s360-tour-brand: #0f766e;
  --s360-tour-brand-2: #10b981;
  --s360-tour-ink: #102a43;
  --s360-tour-muted: #64748b;
  --s360-tour-card: rgba(255, 255, 255, .96);
  --s360-tour-line: rgba(15, 118, 110, .18);
  --s360-tour-overlay: rgba(8, 24, 38, .58);
  --s360-tour-shadow: 0 24px 70px rgba(2, 15, 28, .28);
}

.s360-tour-lock {
  overflow-x: hidden !important;
}

.s360-tour-overlay-piece,
.s360-tour-spotlight,
.s360-tour-card,
.s360-tour-help,
.s360-tour-loading {
  box-sizing: border-box;
  font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.s360-tour-overlay-piece {
  position: fixed;
  z-index: 2147483000;
  background: var(--s360-tour-overlay);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, top .24s ease, left .24s ease, width .24s ease, height .24s ease, visibility .2s ease;
}

.s360-tour-active .s360-tour-overlay-piece {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.s360-tour-spotlight {
  position: fixed;
  z-index: 2147483001;
  pointer-events: none;
  border: 2px solid rgba(94, 234, 212, .96);
  border-radius: 18px;
  box-shadow:
    0 0 0 5px rgba(45, 212, 191, .16),
    0 0 34px rgba(45, 212, 191, .48),
    inset 0 0 0 1px rgba(255, 255, 255, .75);
  opacity: 0;
  visibility: hidden;
  transform: scale(.98);
  transition: top .24s ease, left .24s ease, width .24s ease, height .24s ease, opacity .18s ease, transform .18s ease;
}

.s360-tour-active .s360-tour-spotlight {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.s360-tour-card {
  position: fixed;
  z-index: 2147483003;
  width: min(390px, calc(100vw - 28px));
  padding: 18px;
  color: var(--s360-tour-ink);
  background:
    linear-gradient(180deg, var(--s360-tour-card), rgba(248, 255, 253, .94)),
    radial-gradient(360px 180px at 10% 0%, rgba(153, 246, 228, .24), transparent 70%);
  border: 1px solid var(--s360-tour-line);
  border-radius: 22px;
  box-shadow: var(--s360-tour-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(.97);
  transition: opacity .2s ease, transform .2s ease, top .24s ease, left .24s ease, visibility .2s ease;
  outline: none;
}

.s360-tour-active .s360-tour-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.s360-tour-card.is-centered {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, calc(-50% + 8px)) scale(.97);
}

.s360-tour-active .s360-tour-card.is-centered {
  transform: translate(-50%, -50%) scale(1);
}

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

.s360-tour-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(204, 251, 241, .72);
  border: 1px solid rgba(15, 118, 110, .14);
  font-size: 12px;
  font-weight: 800;
}

.s360-tour-close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  color: #64748b;
  background: rgba(241, 245, 249, .88);
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}

.s360-tour-close:hover {
  transform: scale(1.04);
  color: #b42318;
  background: #fff1f2;
}

.s360-tour-title {
  margin: 0 0 7px;
  color: var(--s360-tour-ink);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.025em;
}

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

.s360-tour-progress {
  height: 5px;
  margin: 15px 0 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, .18);
}

.s360-tour-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--s360-tour-brand), var(--s360-tour-brand-2));
  transition: width .24s ease;
}

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

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

.s360-tour-btn {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.s360-tour-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

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

.s360-tour-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--s360-tour-brand), var(--s360-tour-brand-2));
  box-shadow: 0 10px 22px rgba(15, 118, 110, .22);
}

.s360-tour-btn.soft {
  color: #31536c;
  background: rgba(241, 245, 249, .9);
  border-color: rgba(148, 163, 184, .18);
}

.s360-tour-btn.link {
  padding-inline: 5px;
  color: #64748b;
  background: transparent;
}

.s360-tour-help {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147482000;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 15px;
  color: #0f5f59;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 15px 34px rgba(15, 23, 42, .14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .17s ease, box-shadow .17s ease, background .17s ease;
}

.s360-tour-help:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 20px 42px rgba(15, 23, 42, .18);
}

.s360-tour-help svg {
  width: 18px;
  height: 18px;
}

.s360-tour-loading {
  position: fixed;
  z-index: 2147483004;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 14px;
  color: #0f766e;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .22);
  font-size: 13px;
  font-weight: 750;
}

.s360-tour-loading.is-visible {
  display: inline-flex;
}

.s360-tour-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(15, 118, 110, .2);
  border-top-color: #0f766e;
  border-radius: 50%;
  animation: s360TourSpin .75s linear infinite;
}

@keyframes s360TourSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .s360-tour-card:not(.is-centered) {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    top: auto !important;
    width: auto;
    max-height: min(55vh, 430px);
    overflow: auto;
  }

  .s360-tour-card {
    padding: 16px;
    border-radius: 19px;
  }

  .s360-tour-title { font-size: 18px; }
  .s360-tour-text { font-size: 13px; }
  .s360-tour-actions { align-items: stretch; }
  .s360-tour-actions-right { margin-left: auto; }
  .s360-tour-btn { min-height: 40px; padding-inline: 11px; }

  .s360-tour-help {
    right: 12px;
    bottom: 12px;
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 15px;
  }

  .s360-tour-help span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .s360-tour-overlay-piece,
  .s360-tour-spotlight,
  .s360-tour-card,
  .s360-tour-help,
  .s360-tour-progress > span {
    transition: none !important;
    animation: none !important;
  }
}

@media (prefers-color-scheme: dark) {
  body[data-theme="dark"],
  body.dark-mode,
  body.theme-dark,
  html[data-theme="dark"] body {
    --s360-tour-card: rgba(16, 42, 67, .97);
    --s360-tour-ink: #ecfeff;
    --s360-tour-muted: #cbd5e1;
    --s360-tour-line: rgba(94, 234, 212, .22);
  }

  body[data-theme="dark"] .s360-tour-card,
  body.dark-mode .s360-tour-card,
  body.theme-dark .s360-tour-card,
  html[data-theme="dark"] body .s360-tour-card {
    background: linear-gradient(180deg, rgba(15, 42, 61, .98), rgba(10, 30, 45, .98));
  }
}
