/* ========================================
   GUIDED TOUR
   ======================================== */

.cc-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-tour-overlay);
  background: rgba(15, 23, 42, 0.42);
  pointer-events: auto;
}

.cc-tour-popover {
  position: fixed;
  z-index: var(--z-tour-card);
  width: min(360px, calc(100vw - 2rem));
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg, 0 20px 40px rgba(15, 23, 42, 0.28));
  padding: 0.9rem;
  pointer-events: auto;
}

.cc-tour-popover__step {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 0 0 0.35rem;
}

.cc-tour-popover__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.cc-tour-popover__text {
  margin: 0.45rem 0 0.8rem;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.45;
}

.cc-tour-popover__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.cc-tour-popover__nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cc-tour-target {
  position: relative;
  z-index: var(--z-tour-hl) !important;
  outline: 2px solid rgba(59, 130, 246, 0.65);
  outline-offset: 4px;
  border-radius: 10px;
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.16);
}

/* ── Sidebar tour toggle ── */
.cc-tour-switch-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
}

.cc-tour-switch-row i {
  font-size: 0.78rem;
  opacity: 0.65;
  flex-shrink: 0;
}

.cc-tour-switch-row > span {
  flex: 1;
}

.cc-tour-switch {
  position: relative;
  width: 2.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--border, #e2e8f0);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.2s ease;
}

.cc-tour-switch[aria-checked="true"] {
  background: var(--accent, #6366f1);
}

.cc-tour-switch__knob {
  position: absolute;
  top: 0.175rem;
  left: 0.175rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
  pointer-events: none;
}

.cc-tour-switch[aria-checked="true"] .cc-tour-switch__knob {
  transform: translateX(1rem);
}

@media (max-width: 720px) {
  .cc-tour-popover {
    width: calc(100vw - 1rem);
    left: 0.5rem !important;
  }
}
