/* ── Guided Tour ── */

.tour-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9990;
  backdrop-filter: blur(2px);
}
.tour-overlay.active { display: block; }

.tour-spotlight {
  display: none;
  position: absolute;
  z-index: 9991;
  border-radius: 6px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
}
.tour-spotlight.active { display: block; }

.tour-highlight {
  position: relative;
  z-index: 9992;
}

/* ── Tooltip ── */
.tour-tooltip {
  display: none;
  position: absolute;
  z-index: 9993;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}
.tour-tooltip.active { display: block; }

.tour-tooltip-arrow {
  display: none; /* arrows are complex; skip for clean look */
}

.tour-tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 0;
}

.tour-tooltip-step {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

.tour-tooltip-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.tour-tooltip-close:hover { color: var(--text); }

.tour-tooltip-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 14px 2px;
}

.tour-tooltip-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  padding: 4px 14px 12px;
}
.tour-tooltip-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 4px;
}
.tour-tooltip-body strong {
  color: var(--text);
  font-weight: 600;
}
.tour-tooltip-body ul {
  margin: 6px 0 2px 16px;
  padding: 0;
}
.tour-tooltip-body li {
  margin-bottom: 3px;
}

.tour-tooltip-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* ── Help button (trigger) ── */
.tour-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.tour-help-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.tour-help-btn i { font-size: 13px; }
