/* Overlay */
.cbs-tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 18, 0.78);
  backdrop-filter: blur(7px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
}

/* Spotlight (positions via JS) */
.cbs-tour-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 0, rgba(0,0,0,0) 120px, rgba(0,0,0,.65) 240px);
  transition: background 220ms ease;
}

/* Panel */
.cbs-tour-panel {
  width: min(520px, 96vw);
  background: linear-gradient(145deg, #0d1022, #070a14);
  border: 1px solid rgba(124,92,255,.45);
  border-radius: 16px;
  box-shadow: 0 0 44px rgba(124,92,255,.28);
  color: rgba(255,255,255,.92);
  padding: 16px 16px 14px;
}

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

.cbs-tour-ai-dot {
  width: 10px;
  height: 10px;
  background: #7c5cff;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(124,92,255,1);
}

.cbs-tour-title {
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: .85rem;
  opacity: .95;
}

.cbs-tour-close {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.7);
  font-size: 18px;
  padding: 4px 8px;
}

.cbs-tour-stepmeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,.65);
  font-size: .82rem;
  margin-top: 10px;
}

.cbs-tour-chip {
  border: 1px solid rgba(255,255,255,.14);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}

.cbs-tour-text {
  margin-top: 10px;
  min-height: 74px;
  line-height: 1.45;
  font-size: .98rem;
}

/* typing caret */
.cbs-typing-caret {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  margin-left: 2px;
  transform: translateY(2px);
  background: linear-gradient(90deg,#7c5cff,#00e5ff);
  opacity: .9;
  animation: cbsCaretBlink 850ms infinite;
}
@keyframes cbsCaretBlink {
  0%, 40% { opacity: .9; }
  50%, 100% { opacity: .1; }
}

/* Progress */
.cbs-tour-progress {
  height: 4px;
  background: rgba(255,255,255,.10);
  margin-top: 14px;
  border-radius: 4px;
  overflow: hidden;
}
#cbsTourProgressBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,#7c5cff,#00e5ff);
  transition: width .25s ease;
}

/* Neon target frame */
.cbs-tour-target {
  position: relative;
  z-index: 10000;
  outline: 2px solid rgba(0,229,255,.55);
  box-shadow:
    0 0 0 6px rgba(124,92,255,.18),
    0 0 28px rgba(0,229,255,.22);
  border-radius: 12px;
  transition: box-shadow 220ms ease, outline 220ms ease;
}

@media (min-width: 992px) {
  .cbs-tour-overlay { align-items: center; }
}
