/* ===================================================================
   TOUR GUIADO — estilos
   Holofote (buraco de luz) + balão de instrução.
   =================================================================== */

.tour-overlay {
  position: fixed;
  inset: 0;
  /* Acima de qualquer modal do painel (que chegam a 99999/100000), para o
     balão e o escurecimento ficarem sempre por cima. O "buraco" continua
     revelando o campo do modal por baixo. */
  z-index: 2000000;
  background: transparent;          /* o escurecimento vem do box-shadow do .tour-spot */
  cursor: default;
}
/* Passo sem alvo: escurece a tela inteira e some o holofote. */
.tour-overlay.tour-sem-alvo {
  background: rgba(15, 23, 42, 0.72);
}

.tour-spot {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  border-radius: 12px;
  box-shadow: 0 0 0 100vmax rgba(15, 23, 42, 0.72);
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 0;
  pointer-events: none;
  transition: top .28s cubic-bezier(.4,0,.2,1),
              left .28s cubic-bezier(.4,0,.2,1),
              width .28s cubic-bezier(.4,0,.2,1),
              height .28s cubic-bezier(.4,0,.2,1);
}

/* ── Balão ─────────────────────────────────────────────────── */
.tour-tip {
  position: fixed;
  z-index: 2000001;
  width: 330px;
  max-width: calc(100vw - 28px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 1rem 1.15rem 1.1rem;
  font-family: var(--font-family, 'Inter', sans-serif);
  color: var(--color-text, #1e293b);
  animation: tourTipIn .25s ease;
}
.tour-tip.tour-tip-centro {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  width: 380px;
}
@keyframes tourTipIn {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.tour-tip.tour-tip-centro { animation: none; }

.tour-secao {
  display: inline-block;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent, var(--color-primary, #b8860b));
  background: color-mix(in srgb, var(--color-accent, #b8860b) 12%, transparent);
  padding: .2rem .5rem;
  border-radius: 100px;
  margin-bottom: .5rem;
}

.tour-tip-head {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .55rem;
}
.tour-tip-icon { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }
.tour-tip-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--color-primary-dark, #0f172a);
  margin: 0;
  flex: 1;
  line-height: 1.2;
}
.tour-tip-text {
  font-size: .875rem;
  line-height: 1.55;
  color: var(--color-text-muted, #475569);
  margin: 0 0 .9rem;
}
.tour-tip-text b { color: var(--color-text, #1e293b); font-weight: 700; }

.tour-progress {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .85rem;
}
.tour-progress-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--color-text-light, #94a3b8);
  white-space: nowrap;
}
.tour-progress-bar {
  flex: 1;
  height: 5px;
  border-radius: 100px;
  background: var(--color-border, #e2e8f0);
  overflow: hidden;
}
.tour-progress-fill {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: var(--color-accent, var(--color-primary, #111));
  transition: width .3s ease;
}

.tour-tip-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: space-between;
}
.tour-btn {
  border: none;
  border-radius: 100px;
  padding: .5rem 1.05rem;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s, filter .15s, background .15s;
}
.tour-btn:hover { transform: translateY(-1px); }
.tour-btn-prev {
  background: var(--color-surface, #f1f5f9);
  color: var(--color-text-muted, #475569);
}
.tour-btn-primary {
  background: var(--color-primary-dark, #111);
  color: #fff;
}
.tour-btn-primary:hover { filter: brightness(1.12); }

/* ✕ no canto do cabeçalho */
.tour-btn-skip {
  background: transparent;
  border: none;
  color: var(--color-text-light, #94a3b8);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: .15rem .35rem;
  border-radius: 8px;
  flex-shrink: 0;
}
.tour-btn-skip:hover { background: rgba(0,0,0,.06); color: var(--color-text, #334155); }

/* "Pular tour" em texto, só no 1º passo */
.tour-btn-skip-text {
  display: block;
  width: 100%;
  margin-top: .7rem;
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-text-light, #94a3b8);
}
.tour-btn-skip-text:hover { color: var(--color-text-muted, #64748b); text-decoration: underline; }

/* ── Botão "Ajuda" no menu do admin ────────────────────────── */
.admin-help-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem 1rem;
  margin-bottom: .75rem;
  border-radius: var(--radius-md, 10px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, .8);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background .2s;
}
.admin-help-btn:hover { background: rgba(255, 255, 255, 0.14); }
.admin-help-btn svg { flex-shrink: 0; }

/* No celular o balão nunca encosta nas bordas */
@media (max-width: 480px) {
  .tour-tip, .tour-tip.tour-tip-centro { width: calc(100vw - 24px); }
}
