/* ==========================================================================
   INTERACTIVE SPOTLIGHT PRODUCT TOUR (OPTION 2) & PERSONA SANDBOX
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Floating Tour Trigger Dock
   -------------------------------------------------------------------------- */
.demo-dock-trigger {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, hsl(222, 47%, 16%) 0%, hsl(222, 47%, 9%) 100%);
  color: #ffffff;
  padding: 0.75rem 1.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
}

.demo-dock-trigger:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--color-accent-entitled);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.3), 0 0 0 2px rgba(16, 185, 129, 0.35);
}

.demo-pulse-beacon {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent-entitled);
}

.demo-pulse-beacon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.5);
  animation: demoPulseRing 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes demoPulseRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* --------------------------------------------------------------------------
   2. First-Time Welcome Modal
   -------------------------------------------------------------------------- */
.demo-welcome-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  max-width: 640px;
  width: 100%;
}

.demo-welcome-banner {
  background: linear-gradient(135deg, hsl(222, 47%, 15%) 0%, hsl(222, 47%, 8%) 100%);
  color: #ffffff;
  padding: 2.25rem 2rem;
  text-align: center;
  position: relative;
}

.demo-welcome-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-accent-entitled);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.demo-welcome-heading {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.demo-welcome-desc {
  color: hsl(215, 20%, 82%);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 500px;
}

.demo-welcome-actions {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-slate);
  align-items: center;
}

.demo-welcome-actions-row {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.demo-personas-bar {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
  width: 100%;
}

.demo-personas-group {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.demo-persona-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border-light);
  background: var(--bg-muted);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s;
}

.demo-persona-btn:hover {
  border-color: var(--color-accent-entitled);
  background: hsl(158, 64%, 96%);
  color: var(--color-accent-entitled);
}

/* --------------------------------------------------------------------------
   3. Interactive Spotlight Focus Mask & Tooltip Card
   -------------------------------------------------------------------------- */
.spotlight-backdrop-canvas {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: auto;
}

.spotlight-svg-mask {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9001;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-interactive-card {
  position: fixed;
  z-index: 99999 !important;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(16, 185, 129, 0.35);
  padding: 1.6rem 1.75rem;
  max-width: 460px;
  width: calc(100vw - 2.5rem);
  animation: popInSpotlight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: top 0.35s cubic-bezier(0.16, 1, 0.3, 1), left 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-interactive-card.docked-bottom {
  top: auto !important;
  bottom: 2rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  max-width: 540px !important;
}

@keyframes popInSpotlight {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.spotlight-step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.spotlight-pill-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-entitled);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.spotlight-dots-track {
  display: flex;
  gap: 0.35rem;
}

.spotlight-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-light);
  transition: all 0.25s;
}

.spotlight-bullet.active {
  width: 22px;
  border-radius: 9999px;
  background: var(--color-accent-entitled);
}

.tour-highlight-beacon {
  outline: 3px solid var(--color-accent-entitled) !important;
  outline-offset: 4px !important;
  border-radius: var(--radius-md) !important;
  animation: beaconPulse 1.5s infinite !important;
}

@keyframes beaconPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
