/* SeaTrack guided partner tour */
.tour-root {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
.tour-root.tour-active { pointer-events: auto; }

.tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 16, 0.55);
  transition: opacity 0.2s ease;
}

.tour-spotlight {
  position: absolute;
  border-radius: 14px;
  box-shadow:
    0 0 0 9999px rgba(4, 10, 16, 0.72),
    0 0 0 3px rgba(45, 212, 191, 0.85),
    0 8px 32px rgba(45, 212, 191, 0.25);
  background: transparent;
  transition: top 0.28s ease, left 0.28s ease, width 0.28s ease, height 0.28s ease;
  pointer-events: none;
  min-width: 24px;
  min-height: 24px;
}

.tour-card {
  position: absolute;
  width: min(340px, calc(100vw - 24px));
  background: linear-gradient(165deg, #121c26 0%, #0b1218 100%);
  border: 1px solid #243445;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(45, 212, 191, 0.08);
  color: #e8eef4;
  padding: 1rem 1.05rem 0.9rem;
  pointer-events: auto;
  transition: top 0.28s ease, left 0.28s ease, bottom 0.28s ease;
  z-index: 2;
}

.tour-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.tour-step-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.tour-progress {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fa3b8;
}

.tour-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  border: 1px solid #854d0e;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
}
.tour-badge.live {
  border-color: #0f766e;
  color: #2dd4bf;
  background: rgba(45, 212, 191, 0.12);
}
.tour-badge.demo {
  border-color: #1e3a5f;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
}

.tour-skip {
  border: none;
  background: transparent;
  color: #8fa3b8;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
}
.tour-skip:hover { color: #e8eef4; background: rgba(255,255,255,0.06); }

.tour-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e8eef4;
}
.tour-card h3 span { color: #2dd4bf; }

.tour-card p {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #8fa3b8;
}
.tour-card p strong { color: #c5d4e3; font-weight: 600; }

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

.tour-nav {
  display: flex;
  gap: 0.4rem;
}

.tour-btn {
  appearance: none;
  border: 1px solid #243445;
  background: #121c26;
  color: #e8eef4;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.tour-btn:hover { border-color: #2dd4bf; color: #2dd4bf; }
.tour-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.tour-btn.primary {
  background: #0f766e;
  border-color: #14b8a6;
  color: #ecfeff;
}
.tour-btn.primary:hover {
  background: #0d9488;
  color: #fff;
}

.tour-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 120px;
  justify-content: flex-end;
}
.tour-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #243445;
  transition: background 0.15s, transform 0.15s;
}
.tour-dot.on {
  background: #2dd4bf;
  transform: scale(1.15);
}
.tour-dot.done { background: #3d556d; }

/* Floating re-launch chip (when tour not running) */
.tour-launcher {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid #0f766e;
  background: linear-gradient(135deg, #0f766e, #134e4a);
  color: #ecfeff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(15, 118, 110, 0.45);
  font-family: inherit;
}
.tour-launcher:hover { filter: brightness(1.08); }
.tour-launcher[hidden] { display: none !important; }

.tour-disclaimer-strip {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  color: #6b8299;
  line-height: 1.4;
}

@media (max-width: 520px) {
  .tour-card {
    left: 12px !important;
    right: 12px;
    width: auto;
    bottom: 12px !important;
    top: auto !important;
  }
  .tour-launcher {
    bottom: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    justify-content: center;
  }
}
