/* 1. Header fixo no topo */

.ast-header-break-point .ast-mobile-header-wrap,
.ast-primary-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 2. Espaço no body para o header */

@media (max-width: 768px) {
  body {
    margin-top: 72px;
  }
}

/* 3. Alinha o menu off-canvas abaixo do header */

#ast-mobile-popup-wrapper {
  position: fixed !important;
  top: 72px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 10000 !important;
  background: #fff !important;
}

/* 4. Corrige rolagem interna do menu */

#ast-mobile-popup-wrapper .ast-mobile-popup-inner {
  max-height: calc(100vh - 72px) !important;
  overflow-y: auto !important;
}

/* 5. Garante prioridade se houver classes dinâmicas */

#ast-mobile-popup-wrapper.ast-popup-visible {
  z-index: 10000 !important;
}

/* Gradiente no botão "Criar conta" */

.ast-custom-button a,
.ast-custom-button {
  background: linear-gradient(90deg, #781E77, #DA291C, #FDB515) !important;
  color: #fff !important;
  padding: 16px 16px !important;
  border-radius: 64px !important;
  font-weight: bold !important;
  display: inline-block !important;
  border: none !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

/* Hover sutil */

.ast-custom-button a:hover,
.ast-custom-button:hover {
  opacity: 0.9 !important;
}

/* Efeito no desktop */

.piscar-botao > a {
  background: linear-gradient(90deg, #FDB515, #781E77, #FDB515);
  background-size: 300%;
  background-position: 0%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: piscarTextoGradiente 1s linear infinite;
}

/* Efeito fallback no mobile */

@media (max-width: 768px) {
  .piscar-botao > a {
    background: none;
    color: #781E77 !important;
    /* Ou outra cor de destaque */
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    animation: none;
  }
}

@keyframes piscarTextoGradiente {
  0%, 100% {
    background-position: 0%;
  }

  50% {
    background-position: 100%;
  }
}

/* Ajuste posicionamento 404 */
.ast-404-layout-1 {
  margin-top: 160px;
}