/* Tour guiado do primeiro acesso. Isolado: nada aqui afeta o portal quando o tour está desligado. */

.tour-open { overflow: hidden; }

/* Camada que captura cliques fora do holofote */
.tour-shield {
  position: fixed;
  inset: 0;
  z-index: 1100;
  cursor: default;
}

/* Holofote: o buraco de luz é feito com uma sombra gigante em volta do recorte */
.tour-spot {
  position: fixed;
  z-index: 1101;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(216, 216, 216, 0.55);
  pointer-events: none;
  opacity: 0;
  transition:
    top .42s var(--ease-out),
    left .42s var(--ease-out),
    width .42s var(--ease-out),
    height .42s var(--ease-out),
    opacity .3s ease;
}
.tour-spot.is-visible { opacity: 1; }

/* Pulso suave em volta do recorte. O metalizado continua estático, quem pulsa é a borda. */
.tour-spot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid rgba(216, 216, 216, 0.5);
  animation: tour-pulse 2.4s ease-out infinite;
}
@keyframes tour-pulse {
  0%   { transform: scale(1);    opacity: .7; }
  70%  { transform: scale(1.05); opacity: 0; }
  100% { transform: scale(1.05); opacity: 0; }
}

/* Balão */
.tour-pop {
  position: fixed;
  z-index: 1102;
  width: 320px;
  max-width: calc(100vw - 24px);
  background: var(--gray-dark);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 20px 20px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s var(--ease-out), top .42s var(--ease-out), left .42s var(--ease-out);
}
.tour-pop.is-visible { opacity: 1; transform: translateY(0); }

.tour-step-count {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--silver-dark);
  margin-bottom: 10px;
}
.tour-pop-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
  color: var(--white);
  margin: 0 0 8px;
}
.tour-pop-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--silver);
  margin: 0;
}

.tour-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.tour-dots { display: flex; gap: 6px; }
.tour-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-border);
  transition: background .25s ease, transform .25s ease;
}
.tour-dot.active { background: var(--silver-light); transform: scale(1.25); }
.tour-nav { display: flex; align-items: center; gap: 8px; }

.tour-btn {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity .2s ease, background .2s ease;
}
.tour-btn-next {
  background: var(--grad-btn);
  color: #101010;
  border: none;
}
.tour-btn-next:hover { background: var(--grad-btn-h); }
.tour-btn-ghost {
  background: transparent;
  color: var(--silver-dark);
  border-color: var(--gray-border);
}
.tour-btn-ghost:hover { color: var(--silver-light); }
.tour-skip {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--silver-dark);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tour-skip:hover { color: var(--silver); }

/* Seta do balão apontando pro holofote */
.tour-pop::before {
  content: '';
  position: absolute;
  left: var(--arrow-x, 50%);
  width: 12px;
  height: 12px;
  background: var(--gray-dark);
  border: 1px solid var(--gray-border);
  transform: translateX(-50%) rotate(45deg);
}
.tour-pop[data-side="below"]::before {
  top: -7px;
  border-right: none;
  border-bottom: none;
}
.tour-pop[data-side="above"]::before {
  bottom: -7px;
  border-left: none;
  border-top: none;
}
.tour-pop[data-side="center"]::before { display: none; }

/* Botão de rever o tour */
.tour-help {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  background: var(--gray-mid);
  border: 1px solid var(--gray-border);
  color: var(--silver);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.tour-help:hover { color: var(--white); border-color: var(--silver-dark); }
.tour-help svg { width: 15px; height: 15px; flex-shrink: 0; }
@media (max-width: 480px) {
  /* No celular fica só o ícone, pra não brigar com o conteúdo */
  .tour-help { right: 14px; bottom: 14px; padding: 12px; }
  .tour-help span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tour-spot, .tour-pop { transition: opacity .2s ease; }
  .tour-spot::after { animation: none; }
}
