/* ========== Tour / Demo Mode ========== */

/* ---- Start Screen ---- */
.tour-start-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 10, .92);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .5s ease;
}
.tour-start-card {
  text-align: center;
  color: #fff;
  padding: 40px 32px;
  max-width: 340px;
}
.tour-start-card .tour-logo { font-size: 64px; margin-bottom: 16px; }
.tour-start-card h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #D4A017, #F0D060);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tour-start-card .tour-sub {
  font-size: 14px;
  color: #A89878;
  margin-bottom: 32px;
}
.tour-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, #C8860A, #D4A017);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(200, 134, 10, .4);
}
.tour-start-btn:hover { transform: scale(1.04); box-shadow: 0 6px 28px rgba(200, 134, 10, .55); }
.tour-start-btn:active { transform: scale(.97); }

/* ---- Progress Bar ---- */
.tour-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(200, 134, 10, .15);
  z-index: 9000;
}
.tour-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #C8860A, #F0D060);
  transition: width .6s ease;
  border-radius: 0 2px 2px 0;
}

/* ---- Spotlight Overlay ---- */
.tour-spotlight {
  position: fixed;
  z-index: 7500;
  pointer-events: none;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(20, 16, 10, .55);
  transition: all .5s cubic-bezier(.4, 0, .2, 1);
}

/* ---- Feature Tag ---- */
.tour-tag {
  position: fixed;
  z-index: 8500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  background: rgba(20, 16, 10, .88);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  pointer-events: none;
  white-space: nowrap;
  animation: tagSlideIn .4s cubic-bezier(.22, .61, .36, 1) both;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 3px solid var(--tag-color, #D4A017);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.tour-tag.fade-out {
  animation: tagFadeOut .3s ease forwards;
}
.tour-tag .tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tag-color, #D4A017);
  flex-shrink: 0;
}
@keyframes tagSlideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes tagFadeOut {
  to { opacity: 0; transform: translateX(8px); }
}

/* Multiple tags stacked */
.tour-tag:nth-child(2) { animation-delay: .12s; }
.tour-tag:nth-child(3) { animation-delay: .24s; }

/* ---- Subtitle Bar ---- */
.tour-subtitle-bar {
  position: fixed;
  bottom: 62px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 430px;
  width: calc(100% - 24px);
  z-index: 9500;
  background: rgba(20, 16, 10, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 18px;
  min-height: 42px;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.tour-subtitle-text {
  color: #F5F0E5;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .3px;
}
.tour-cursor {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: #D4A017;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink .6s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---- Step Counter ---- */
.tour-step-counter {
  position: fixed;
  top: 52px;
  right: calc(50% - 200px);
  z-index: 9500;
  background: rgba(20, 16, 10, .8);
  color: #A89878;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
}
@media (max-width: 430px) {
  .tour-step-counter { right: 12px; }
}

/* ---- End Screen ---- */
.tour-end-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 10, .92);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .6s ease;
}
.tour-end-card {
  text-align: center;
  color: #fff;
  padding: 40px 32px;
  max-width: 360px;
}
.tour-end-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 16px 0 8px;
  background: linear-gradient(135deg, #D4A017, #F0D060);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tour-end-features {
  text-align: left;
  margin: 20px 0;
}
.tour-end-features li {
  font-size: 13px;
  color: #C8B888;
  padding: 5px 0;
}
.tour-end-features li::before {
  content: "✓ ";
  color: #2E8B57;
  font-weight: 700;
}

/* ---- Click Ripple ---- */
.tour-click-ripple {
  position: fixed;
  z-index: 8800;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px solid #D4A017;
  pointer-events: none;
  animation: clickRipple .6s ease-out forwards;
}
@keyframes clickRipple {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* ---- Title Card (Step 0) ---- */
.tour-title-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(20, 16, 10, .88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn .5s ease;
}
.tour-title-text {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #D4A017, #F0D060);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.tour-title-sub {
  font-size: 15px;
  color: #A89878;
}
