/* Tour guiado do painel (tour-guiado.js): tela escurecida, item em destaque e
   balao com a explicacao. No celular o balao fica fixo embaixo. */

.gl-tour-btn, .gl-tour-side { position: relative; }
.gl-tour-btn.is-new::after, .gl-tour-side.is-new::after { content: ''; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface); animation: gl-tour-dot 1.6s ease-in-out infinite; }
/* No menu lateral, o ponto fica ao lado do icone. */
.gl-tour-side.is-new::after { top: 6px; right: auto; left: 26px; }
/* Dentro de uma janela (ex.: O que voce oferece). */
.gl-tour-slot { display: flex; justify-content: flex-end; margin: 0 0 10px; }
@keyframes gl-tour-dot { 50% { transform: scale(1.35); opacity: .65; } }

body.gl-tour-on { overflow-anchor: none; }
.gl-tour { position: fixed; inset: 0; z-index: 160; }
/* A camada inteira segura os cliques: durante o tour nada da tela e acionado. */
.gl-tour__shade { position: absolute; inset: 0; }
.gl-tour.is-center .gl-tour__shade, .gl-tour.is-looking .gl-tour__shade { background: rgba(8, 12, 20, .62); }
.gl-tour__hole { position: fixed; border-radius: 16px; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 3px var(--accent), 0 0 0 9px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 0 200vmax rgba(8, 12, 20, .62);
  transition: top .28s cubic-bezier(.2, .9, .3, 1), left .28s cubic-bezier(.2, .9, .3, 1), width .28s cubic-bezier(.2, .9, .3, 1), height .28s cubic-bezier(.2, .9, .3, 1), opacity .2s ease;
  animation: gl-tour-ring 2s ease-in-out infinite; }
.gl-tour.is-center .gl-tour__hole, .gl-tour.is-looking .gl-tour__hole { opacity: 0 !important; }
@keyframes gl-tour-ring { 50% { box-shadow: 0 0 0 3px var(--accent), 0 0 0 14px color-mix(in srgb, var(--accent) 14%, transparent), 0 0 0 200vmax rgba(8, 12, 20, .62); } }

.gl-tour__card { position: fixed; width: min(420px, calc(100vw - 24px)); padding: 16px 18px 14px; border-radius: var(--r-lg); background: var(--surface); color: var(--text);
  border: 1px solid var(--line); box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .55); outline: none;
  transition: top .28s cubic-bezier(.2, .9, .3, 1), left .28s cubic-bezier(.2, .9, .3, 1); }
.gl-tour.is-center .gl-tour__card { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); }
.gl-tour.is-looking .gl-tour__card { opacity: .85; }
.gl-tour__top { display: flex; align-items: center; gap: 4px; margin: -4px -6px 4px 0; }
.gl-tour__count { flex: 1; color: var(--accent-text); font-weight: 800; letter-spacing: .3px; }
.gl-tour__top .icon-btn { width: 34px; height: 34px; font-size: 19px; }
.gl-tour__title { margin: 0 0 6px; font-size: 18px; line-height: 1.25; letter-spacing: -.3px; }
.gl-tour__text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text); }
.gl-tour__bar { height: 3px; margin: 14px 0 12px; border-radius: 3px; background: var(--strong); overflow: hidden; visibility: hidden; }
.gl-tour.has-voice .gl-tour__bar { visibility: visible; }
.gl-tour__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--g1), var(--g2)); transition: width .25s linear; }
.gl-tour__nav { display: flex; align-items: center; gap: 8px; }
.gl-tour__nav [data-t="next"] { margin-left: auto; }
/* Proximo: seta mais afastada do texto, na ponta direita do botao. */
.gl-tour__nav [data-t="next"]:not(.is-done) { justify-content: space-between; gap: 16px; min-width: 128px; padding-right: 12px; }
.gl-tour__nav .btn[disabled] { visibility: hidden; }

@media (max-width: 720px) {
  /* Celular: so o icone (chapeu), junto dos outros botoes do topo, sem ocupar
     uma linha propria (pedido do dono, 2026-11-18). O nome fica no title. */
  .pn-top__actions .gl-tour-btn span { display: none; }
  .pn-top__actions .gl-tour-btn { width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; justify-content: center; }
  .pn-top__actions .gl-tour-btn ion-icon { font-size: 20px; margin: 0; }
  .gl-tour-slot .gl-tour-btn span { display: none; }
  .gl-tour-slot .gl-tour-btn { width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 50%; justify-content: center; }
  .gl-tour__card { left: 10px !important; right: 10px; top: auto !important; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; max-height: 46vh; overflow-y: auto; padding: 14px 16px 12px; }
  .gl-tour.is-center .gl-tour__card { left: 10px !important; top: auto !important; transform: none; }
  .gl-tour__title { font-size: 17px; }
  .gl-tour__text { font-size: 14.5px; }
  .gl-tour__pause span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gl-tour__hole, .gl-tour__card { transition: none; animation: none; }
  .gl-tour-btn.is-new::after, .gl-tour-side.is-new::after { animation: none; }
}

/* Paginas publicas (inicio, busca, minha conta): icone "Como funciona" no topo do site. */
.gl-tour-pub { position: relative; }
.gl-tour-pub.is-new::after { content: ''; position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface); animation: gl-tour-dot 1.6s ease-in-out infinite; }
/* Continuacao em outra pagina com o som bloqueado pelo navegador: Continuar chama a atencao. */
.gl-tour.is-muted-start .gl-tour__pause { animation: gl-tour-dot 1.6s ease-in-out infinite; }
.gl-tour-demo-anchor .menu { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .gl-tour-pub.is-new::after, .gl-tour.is-muted-start .gl-tour__pause { animation: none; } }
.gl-tour-demo-drawer { pointer-events: none; }
.gl-tour-demo-who { display: flex; align-items: center; gap: 10px; padding: 4px 4px 10px; }
