/* ==========================================================================
   AXIONMESK — FUNDO ORNAMENTAL (v2, discreto)
   Base escura elegante + toque dourado muito sutil no topo.
   Sem faixas amarelas fortes. Mantém contraste e legibilidade.
   ========================================================================== */

/* --------------------------------------------------------------------------
   FUNDO GLOBAL
   -------------------------------------------------------------------------- */
html {
  background-color: #0B1220;
}

body {
  background-color: #0B1220 !important;
  background-image:
    /* brilho dourado MUITO sutil no topo (quase imperceptivel) */
    radial-gradient(ellipse 1100px 460px at 50% -22%,
      rgba(56,107,255, 0.075) 0%,
      rgba(56,107,255, 0.025) 38%,
      transparent 70%),
    /* leve profundidade azulada no rodape */
    radial-gradient(ellipse 900px 500px at 50% 108%,
      rgba(38, 55, 92, 0.35) 0%,
      transparent 68%),
    /* base escura uniforme */
    linear-gradient(180deg, #0E1116 0%, #0B1220 40%, #090B0F 100%) !important;

  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Sem textura: mantem a interface limpa */
body::before {
  content: none !important;
}

/* Remove a linha dourada do topo (era o que pesava no visual) */
body::after {
  content: none !important;
  display: none !important;
}

/* --------------------------------------------------------------------------
   HEADER — escuro solido com leve blur (contraste preservado)
   -------------------------------------------------------------------------- */
.header,
.app-header,
.site-header {
  background: rgba(11, 13, 18, 0.88) !important;
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------------------
   SECOES transparentes para o fundo aparecer
   -------------------------------------------------------------------------- */
.hero {
  background: transparent !important;
}

.auth-wrap,
.sec-wrap,
.page-body,
main {
  background: transparent;
}

/* O hero nao deve ter faixa colorida */
.hero::before,
.hero::after {
  display: none !important;
}

/* --------------------------------------------------------------------------
   MOBILE — fundo ainda mais leve (performance de GPU)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  body {
    background-image:
      radial-gradient(ellipse 600px 380px at 50% -18%,
        rgba(56,107,255, 0.06) 0%,
        transparent 68%),
      linear-gradient(180deg, #0E1116 0%, #0B1220 55%, #090B0F 100%) !important;
    background-attachment: scroll;
  }
}

/* --------------------------------------------------------------------------
   PAGINAS DE AUTENTICACAO — painel lateral com brilho suave
   -------------------------------------------------------------------------- */
.auth-aside {
  background-image:
    radial-gradient(circle at 25% 12%, rgba(56,107,255, 0.10) 0%, transparent 52%),
    linear-gradient(165deg, #12151C 0%, #0B1220 100%) !important;
}

/* --------------------------------------------------------------------------
   ACESSIBILIDADE
   -------------------------------------------------------------------------- */
@media (prefers-contrast: more) {
  body {
    background-image: none !important;
    background-color: #0B1220 !important;
  }
}

/* ==========================================================================
   RODAPE — espaco para a bottom nav e layout limpo no mobile
   ========================================================================== */
.footer {
  margin-top: 28px;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 24px;
}

.footer__brand p {
  font-size: 13px;
  line-height: 1.55;
  color: #8996AA;
  margin: 12px 0 0;
  max-width: 260px;
}

.footer__col { display: flex; flex-direction: column; gap: 2px; }

.footer__col h5 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8996AA;
  margin: 0 0 8px;
}

.footer__col a {
  font-size: 14px;
  font-weight: 500;
  color: #B4BAC5;
  text-decoration: none;
  padding: 7px 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color .14s ease;
}
.footer__col a:active, .footer__col a:hover { color: #386BFF; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0 10px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 12.5px;
  color: #8996AA;
}

.footer__legal { display: flex; gap: 18px; }
.footer__legal a {
  color: #8996AA;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 0;
}
.footer__legal a:hover { color: #386BFF; }

@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
    padding-top: 24px;
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand p { max-width: 100%; }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 18px;
  }
  .footer__legal { gap: 20px; flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CORRECAO: espaco real para a bottom nav no fim do rodape
   ========================================================================== */
@media (max-width: 900px) {
  .footer {
    padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .footer__bottom {
    padding-bottom: 4px !important;
  }
  .footer__legal {
    padding-bottom: 6px;
  }
}

/* ==========================================================================
   CORRECAO DEFINITIVA: espacador no fim do documento (body)
   O padding no .footer nao funciona porque a bottom nav e fixed.
   ========================================================================== */
@media (max-width: 900px) {
  body > .footer,
  body > footer {
    margin-bottom: 0 !important;
  }

  /* espacador real no fim do body */
  body:not(.auth-page)::after {
    content: "";
    display: block;
    height: calc(86px + env(safe-area-inset-bottom, 0px));
    width: 100%;
    flex: 0 0 auto;
    pointer-events: none;
  }

  /* em paginas que ja tem nav propria, o spacer e o mesmo */
  .footer__legal,
  .footer__bottom {
    padding-bottom: 8px !important;
  }
}

/* Spacer real no fim do documento (nao depende de ::after) */
.footer-spacer {
  display: block;
  width: 100%;
  height: 0;
}

@media (max-width: 900px) {
  .footer-spacer {
    height: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
