/* ================================================================ */
/* Botão Fixo "Fazer tour"                                          */
/* ================================================================ */
#tour-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: #0c2745;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: "Open Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(7, 27, 49, 0.45);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
#tour-btn:hover {
  background: #071b31;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(7, 27, 49, 0.55);
}
#tour-btn:active { transform: translateY(0); }
#tour-btn svg { flex-shrink: 0; }

@media (max-width: 480px) {
  #tour-btn span { display: none; }
  #tour-btn {
    padding: 0;
    bottom: 20px;
    left: 16px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    justify-content: center;
  }
}

/* ================================================================ */
/* Popup de boas-vindas                                             */
/* ================================================================ */
#tour-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(7, 27, 49, 0.90);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: twFadeIn 0.35s ease;
}
#tour-welcome-overlay.tour-welcome-hide {
  animation: twFadeOut 0.3s ease forwards;
}

@keyframes twFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes twFadeOut { from { opacity: 1; } to { opacity: 0; } }

#tour-welcome-card {
  background: #0c2745;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px 36px 32px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  color: #fff;
  font-family: "Open Sans", ui-sans-serif, system-ui, sans-serif;
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.55);
  animation: twSlideUp 0.4s ease;
}

@keyframes twSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Barra de progresso regressiva no topo */
#tour-welcome-bar-wrap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px 16px 0 0;
}
#tour-welcome-bar {
  height: 100%;
  width: 100%;
  background: #fff;
  border-radius: 16px 16px 0 0;
}

/* Ícone */
.tour-welcome-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin: 0 auto 22px;
}

/* Texto */
#tour-welcome-card h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 12px;
}
#tour-welcome-card > p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  margin: 0 0 28px;
}

/* Botões */
#tour-welcome-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
#tour-welcome-start {
  flex: 1;
  max-width: 190px;
  min-height: 46px;
  padding: 12px 24px;
  background: #fff;
  color: #0c2745;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
#tour-welcome-start:hover { background: #dce2e8; }

#tour-welcome-skip {
  flex: 1;
  max-width: 140px;
  min-height: 46px;
  padding: 12px 20px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
#tour-welcome-skip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

/* Timer */
#tour-welcome-timer {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}
#tour-welcome-timer strong { color: rgba(255, 255, 255, 0.65); }

@media (max-width: 400px) {
  #tour-welcome-card { padding: 36px 24px 28px; }
  #tour-welcome-card h2 { font-size: 19px; }
  #tour-welcome-start,
  #tour-welcome-skip { max-width: 100%; }
}

/* ================================================================ */
/* Popup de Agradecimento (ao finalizar tour completo)              */
/* ================================================================ */
#tour-thankyou-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(7, 27, 49, 0.90);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: twFadeIn 0.35s ease;
}
#tour-thankyou-overlay.tour-welcome-hide {
  animation: twFadeOut 0.3s ease forwards;
}

#tour-thankyou-card {
  background: #0c2745;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px 36px 32px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  color: #fff;
  font-family: "Open Sans", ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.55);
  animation: twSlideUp 0.4s ease;
}

.tour-thankyou-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  margin: 0 auto 22px;
  color: #fff;
}

#tour-thankyou-card h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 12px;
}
#tour-thankyou-card > p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  margin: 0 0 28px;
}

.tour-thankyou-dev {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.tour-thankyou-dev p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.tour-thankyou-dev strong {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}
.tour-thankyou-dev span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

#tour-thankyou-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  padding: 11px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s;
  margin-top: 4px;
}
#tour-thankyou-wa:hover { background: #1ebe5d; }

#tour-thankyou-close {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 10px 24px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  width: 100%;
}
#tour-thankyou-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 400px) {
  #tour-thankyou-card { padding: 36px 24px 28px; }
  #tour-thankyou-card h2 { font-size: 19px; }
}

/* ================================================================ */
/* Driver.js — Popover customizado                                  */
/* ================================================================ */
.driver-popover {
  background: #0c2745 !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  padding: 22px 26px 18px !important;
  max-width: 340px !important;
  box-shadow: 0 20px 60px rgba(7, 27, 49, 0.6) !important;
  font-family: "Open Sans", ui-sans-serif, system-ui, sans-serif !important;
  overflow: hidden !important;
  position: fixed !important;
}
.driver-popover * {
  font-family: "Open Sans", ui-sans-serif, system-ui, sans-serif !important;
}

/* Barra de auto-play animada na base do popover */
.driver-popover::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.55);
  transform-origin: left;
  border-radius: 0 0 10px 10px;
  animation: driverAutoProgress 4s linear forwards;
}
@keyframes driverAutoProgress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* Título */
.driver-popover-title {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin-bottom: 8px !important;
  line-height: 1.35 !important;
  padding: 0 !important;
}

/* Descrição */
.driver-popover-description {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.82) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Seta */
.driver-popover-arrow-side-top.driver-popover-arrow    { border-top-color: #0c2745 !important; }
.driver-popover-arrow-side-bottom.driver-popover-arrow { border-bottom-color: #0c2745 !important; }
.driver-popover-arrow-side-left.driver-popover-arrow   { border-left-color: #0c2745 !important; }
.driver-popover-arrow-side-right.driver-popover-arrow  { border-right-color: #0c2745 !important; }

/* Rodapé */
.driver-popover-footer {
  margin-top: 18px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

/* Progresso "X de Y" */
.driver-popover-progress-text {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  flex-shrink: 0 !important;
}

/* Grupo de botões */
.driver-popover-navigation-btns {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}

/* Base dos botões */
.driver-popover-footer button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 16px !important;
  border-radius: 5px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  border: none !important;
  transition: background 0.15s, opacity 0.15s !important;
  white-space: nowrap !important;
  min-height: 34px !important;
}

/* Pular (X / close) */
.driver-popover-close-btn {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  font-size: 11px !important;
  padding: 6px 12px !important;
  min-height: 30px !important;
}
.driver-popover-close-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Voltar */
.driver-popover-prev-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.driver-popover-prev-btn:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}
.driver-popover-prev-btn:disabled { opacity: 0.35 !important; cursor: default !important; }

/* Próximo / Finalizar */
.driver-popover-next-btn {
  background: #fff !important;
  color: #0c2745 !important;
  border: none !important;
}
.driver-popover-next-btn:hover { background: #dce2e8 !important; }

/* Overlay */
.driver-overlay { opacity: 0.76 !important; }

/* Elemento destacado */
.driver-active-element { border-radius: 4px !important; }
