/* ── Tutorial guiado (spotlight) ─────────────────────────────── */

@keyframes _ttFade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes _ttPop   { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes _ttGlow  {
  0%, 100% { box-shadow: 0 0 0 2px rgba(207,203,150,.85), 0 0 26px 4px rgba(207,203,150,.30), 0 0 0 9999px rgba(5,12,10,.68); }
  50%      { box-shadow: 0 0 0 2px rgba(207,203,150,1),   0 0 44px 10px rgba(207,203,150,.42), 0 0 0 9999px rgba(5,12,10,.68); }
}
@keyframes _ttPulse {
  0%   { box-shadow: 0 0 0 0 rgba(207,203,150,.55); }
  100% { box-shadow: 0 0 0 10px rgba(207,203,150,0); }
}

.tt-root { position: fixed; inset: 0; z-index: 10050; animation: _ttFade .25s ease both; }

.tt-blocker { position: absolute; inset: 0; background: transparent; }

.tt-spot {
  position: fixed;
  border-radius: var(--radius-lg);
  pointer-events: none;
  animation: _ttGlow 2.4s ease-in-out infinite;
  transition: left .38s cubic-bezier(.4,0,.2,1), top .38s cubic-bezier(.4,0,.2,1),
              width .38s cubic-bezier(.4,0,.2,1), height .38s cubic-bezier(.4,0,.2,1);
}
.tt-spot::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,246,214,.12), rgba(255,246,214,0) 70%);
}
.tt-spot--none { animation: none; box-shadow: 0 0 0 9999px rgba(5,12,10,.74); }
.tt-spot--none::before { display: none; }

.tt-pop {
  position: fixed;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: var(--surface-2, #2a3835);
  color: var(--ink, #f0ecd9);
  border: 1px solid var(--gold-line, rgba(184,178,122,.45));
  border-radius: var(--radius-lg, 14px);
  padding: 18px 20px 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  font-family: var(--font-body, system-ui, sans-serif);
  animation: _ttPop .3s cubic-bezier(.22,.68,0,1.15) both;
}
.tt-pop.tt-center { width: 420px; padding: 26px 28px 18px; }

.tt-arrow {
  position: absolute;
  width: 14px; height: 14px;
  background: inherit;
  border: inherit;
  transform: rotate(45deg);
}
.tt-pop[data-side="bottom"] .tt-arrow { top: -8px;    border-right: 0; border-bottom: 0; }
.tt-pop[data-side="top"]    .tt-arrow { bottom: -8px; border-left: 0;  border-top: 0; }
.tt-pop[data-side="right"]  .tt-arrow { left: -8px;   border-right: 0; border-top: 0; }
.tt-pop[data-side="left"]   .tt-arrow { right: -8px;  border-left: 0;  border-bottom: 0; }
.tt-pop[data-side="center"] .tt-arrow,
.tt-pop[data-side="float"]  .tt-arrow { display: none; }

.tt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tt-step {
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-strong, #cfcb96);
}
.tt-x {
  width: 28px; height: 28px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--hairline, rgba(237,232,207,.08));
  color: var(--muted, #8c9591); cursor: pointer; font-size: 15px; line-height: 1;
}
.tt-x:hover { color: var(--ink, #f0ecd9); border-color: var(--border-strong, rgba(237,232,207,.18)); }

.tt-title {
  font-family: var(--font-editorial, Georgia, serif);
  font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1.2;
  margin: 0 0 8px; color: var(--ink, #f0ecd9);
}
.tt-center .tt-title { font-size: 28px; }
.tt-text { font-size: .86rem; line-height: 1.6; color: var(--muted, #b9b7a3); }
.tt-text strong { color: var(--ink, #f0ecd9); font-weight: 600; }

.tt-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--hairline, rgba(237,232,207,.08));
}
.tt-progress {
  flex: 1; max-width: 120px; height: 4px; border-radius: var(--radius-sm);
  background: var(--border-strong, rgba(237,232,207,.18));
  overflow: hidden;
}
.tt-progress-fill {
  height: 100%; width: 0;
  background: var(--accent-strong, #cfcb96);
  border-radius: inherit;
  transition: width .3s ease;
}

.tt-btns { display: flex; gap: 8px; margin-left: auto; }
.tt-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--radius); padding: 8px 14px;
  font-family: var(--font-body, system-ui, sans-serif); font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: opacity .15s ease, transform .15s ease;
}
.tt-btn-ghost { background: transparent; color: var(--muted, #8c9591); border: 1px solid var(--hairline, rgba(237,232,207,.1)); }
.tt-btn-ghost:hover { color: var(--ink, #f0ecd9); }
.tt-btn-primary { background: var(--accent-strong, #cfcb96); color: var(--on-accent, #1f2826); border: none; }
.tt-btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.tt-btn[hidden] { display: none; }

.tt-skip {
  display: block; margin: 10px auto 0;
  background: none; border: none; padding: 2px 4px;
  font-size: .72rem; color: var(--muted-soft, #8c9591);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.tt-skip:hover { color: var(--ink, #f0ecd9); }

/* ── Botão "?" de ajuda por página ─────────────────────────── */
.tt-help {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft, rgba(207,203,150,.18));
  border: 1px solid var(--gold-line, rgba(184,178,122,.45));
  color: var(--accent-strong, #9c965d);
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: 16px; font-weight: 700; line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.tt-help:hover { transform: translateY(-1px); background: rgba(207,203,150,.28); }
.tt-help--pulse { animation: _ttPulse 1.6s ease-out 3; }
.tt-help--sm { width: 26px; height: 26px; font-size: 13px; margin-left: auto; margin-right: 10px; }
.tt-help--sm + .btn-close, .tt-help--sm + [data-bs-dismiss] { margin-left: 0 !important; }
.tcf-panel-head .tt-help--sm { margin: 0; flex-shrink: 0; }
.tt-pop.tt-busy { opacity: .55; pointer-events: none; transition: opacity .15s ease; }
.tt-help--push { margin-left: auto; }
.tt-help--float { position: fixed; top: 16px; right: 18px; z-index: 50; box-shadow: var(--shadow, 0 8px 24px -12px rgba(0,0,0,.3)); }

@media (max-width: 520px) {
  .tt-pop, .tt-pop.tt-center { padding: 16px 16px 12px; }
  .tt-center .tt-title { font-size: 23px; }
  .tt-progress { max-width: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .tt-root, .tt-pop, .tt-spot { animation: none; transition: none; }
  .tt-spot:not(.tt-spot--none) { box-shadow: 0 0 0 2px rgba(207,203,150,.9), 0 0 0 9999px rgba(5,12,10,.68); }
}
