/* ==========================================================================
   Tour guiado do VEO -- folha propria, servida de 'self' (a CSP proibe host de
   terceiro e inline). Funciona no painel e no canal; usa os tokens de tema
   (var(--...)), com fallback, para resolver nos dois temas sem cor literal presa.

   Tecnica: um "holofote" (.veo-tour-spot) com box-shadow gigante escurece tudo
   fora do elemento em foco; um bloqueador transparente (.veo-tour-block) impede
   interagir com a pagina durante o tour; o balao (.veo-tour-pop) explica o campo.
   ========================================================================== */

.veo-tour-block{
  position:fixed; inset:0; z-index:9000; background:transparent; cursor:default;
}
.veo-tour-spot{
  position:fixed; z-index:9001; border-radius:10px; pointer-events:none;
  box-shadow:0 0 0 9999px rgba(4,16,29,.74);
  outline:2px solid var(--turq,#20E0C5); outline-offset:3px;
  transition:top .28s ease, left .28s ease, width .28s ease, height .28s ease;
}
.veo-tour-spot.sem-alvo{ /* passo sem elemento: centraliza o balao, sem recorte */
  box-shadow:0 0 0 9999px rgba(4,16,29,.74);
  outline:none; width:0; height:0;
}

.veo-tour-pop{
  position:fixed; z-index:9002; width:min(340px, calc(100vw - 32px));
  background:var(--panel,#0a2440); color:var(--text,#c3d3e4);
  border:1px solid var(--line-2,rgba(234,243,247,.22)); border-radius:12px;
  box-shadow:0 24px 60px rgba(0,0,0,.45);
  padding:16px 18px 14px; font-size:14px; line-height:1.5;
  font-family:inherit;
  animation:veo-tour-in .22s ease both;
}
@keyframes veo-tour-in{from{opacity:0; transform:translateY(6px)}}
.veo-tour-pop .vt-step{
  font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color:var(--turq,#20E0C5); margin-bottom:6px;
}
.veo-tour-pop h4{
  margin:0 0 6px; font-size:16px; line-height:1.25; color:var(--strong,#fff); font-weight:600;
}
.veo-tour-pop p{ margin:0; color:var(--text,#c3d3e4); }
.veo-tour-pop .vt-foot{
  display:flex; align-items:center; gap:8px; margin-top:16px;
}
.veo-tour-pop .vt-dots{ display:flex; gap:5px; margin-right:auto; }
.veo-tour-pop .vt-dots i{
  width:6px; height:6px; border-radius:50%; background:var(--line-2,rgba(234,243,247,.28));
}
.veo-tour-pop .vt-dots i.on{ background:var(--turq,#20E0C5); }
.veo-tour-pop button{
  font:inherit; cursor:pointer; border-radius:8px; padding:8px 13px; font-size:13px;
  font-weight:600; border:1px solid var(--line-2,rgba(234,243,247,.22));
  background:transparent; color:var(--text,#c3d3e4); transition:border-color .15s, color .15s;
}
.veo-tour-pop button:hover{ border-color:var(--turq,#20E0C5); color:var(--turq,#20E0C5); }
.veo-tour-pop button.vt-prim{
  background:var(--turq,#08C7B4); border-color:var(--turq,#08C7B4); color:#04202a;
}
.veo-tour-pop button.vt-prim:hover{ color:#04202a; filter:brightness(1.06); }
.veo-tour-pop button.vt-skip{
  border:none; color:var(--mute,#89a1bc); padding:8px 6px; font-weight:500;
}
.veo-tour-pop button.vt-skip:hover{ color:var(--text,#c3d3e4); }

/* Botao flutuante de ajuda: reabre o tour da tela atual. */
.veo-tour-fab{
  position:fixed; right:18px; bottom:18px; z-index:8000;
  width:44px; height:44px; border-radius:50%; cursor:pointer;
  border:1px solid var(--line-2,rgba(234,243,247,.22));
  background:var(--panel,#0a2440); color:var(--turq,#20E0C5);
  font-size:20px; font-weight:700; line-height:1;
  box-shadow:0 10px 26px rgba(0,0,0,.4);
  display:grid; place-items:center;
  transition:transform .18s ease, border-color .18s ease;
}
.veo-tour-fab:hover{ transform:translateY(-2px); border-color:var(--turq,#20E0C5); }
.veo-tour-fab[hidden]{ display:none; }

@media print{ .veo-tour-block,.veo-tour-spot,.veo-tour-pop,.veo-tour-fab{ display:none !important; } }
@media (prefers-reduced-motion:reduce){
  .veo-tour-spot{ transition:none; } .veo-tour-pop{ animation:none; }
}
