/* 4.49 (28/11): as peças do menu novo. Carregado pelo js/menu.js em todas as páginas. */

/* subabas: nomes compridos quebram em duas linhas em vez de sair do menu */
.shell-nav-item.shell-nav-subitem { padding-left: 26px; gap: 10px; white-space: normal; line-height: 1.25; }
.shell-nav-item.shell-nav-subitem.is-active { margin-left: 12px; padding: 9px 38px 9px 14px; }
.shell-nav-item.shell-nav-subitem .shell-ico { width: 26px; height: 26px; }
.shell-nav-subitem .shell-ico .shell-ico-svg { width: 20px; height: 20px; }
.shell-nav-subitem .shell-ico .shell-ico-img { width: 26px; height: 26px; }
.shell-nav-item.is-breve { opacity: .62; }
.shell-breve {
  display: block; margin-top: 2px;
  font-family: var(--font-rotulo); font-size: .58rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #FB4F05; text-shadow: none;
}

/* barra do topo: Premium e Loja */
.shell-top-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; min-width: 38px; padding: 0 13px; box-sizing: border-box;
  border-radius: 10px; text-decoration: none; cursor: pointer;
  background: rgba(1,1,9,.75); color: #F9FAFB;
  border: 1px solid rgba(25,138,223,.55); box-shadow: 0 0 10px rgba(25,138,223,.16);
  font-family: var(--font-hud); font-weight: 700; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  transition: border-color .15s, box-shadow .15s;
}
.shell-top-btn svg { flex-shrink: 0; }
.shell-suporte-flutuante { position: fixed; right: 18px; bottom: 82px; z-index: 1200; }
@media (max-width: 968px) {
  .shell-top-btn.shell-suporte-flutuante { right: 10px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: auto; padding: 0 13px; }
}
.shell-top-btn:hover, .shell-top-btn[aria-expanded="true"] { border-color: rgba(25,138,223,.95); box-shadow: 0 0 16px rgba(25,138,223,.34); }
.shell-vip { color: #FDA06B; border-color: rgba(251,79,5,.7); box-shadow: 0 0 12px rgba(251,79,5,.3); }
.shell-vip:hover { border-color: #FB4F05; box-shadow: 0 0 18px rgba(251,79,5,.55); }

.shell-loja-caixa {
  position: fixed; right: 12px; z-index: 1200;
  width: min(260px, calc(100vw - 24px)); overflow: hidden;
  background: rgba(1,1,9,.97); border: 1px solid rgba(25,138,223,.45); border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.6), 0 0 18px rgba(25,138,223,.25);
}
.shell-loja-caixa[hidden] { display: none; }
.shell-loja-caixa a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 46px; padding: 0 14px; text-decoration: none; color: #DBDEF1; font-size: .88rem;
  border-bottom: 1px solid rgba(25,138,223,.15);
}
.shell-loja-caixa a:last-child { border-bottom: 0; }
.shell-loja-caixa a:hover { background: rgba(25,138,223,.1); }

/* folha das subabas: só no celular */
.shell-folha, .shell-folha-fundo { display: none; }

@media (max-width: 968px) {
  .shell-tabbar { overflow: hidden; }
  .shell-tabbar-item {
    flex: 1 1 0; min-width: 0; margin: 0; border: 0; background: none; cursor: pointer;
    font-family: inherit; font-size: 10.5px;
  }
  .shell-tabbar-item[aria-expanded="true"] { color: #F9FAFB; background: rgba(25,138,223,.18); }

  .shell-folha-fundo:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 122; background: rgba(1,1,1,.66); }
  .shell-folha:not([hidden]) {
    display: block; position: fixed; left: 8px; right: 8px; z-index: 124;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - 160px); overflow-y: auto;
    background: rgba(2,11,28,.98); border: 1px solid rgba(25,138,223,.5); border-radius: 14px;
    box-shadow: 0 -8px 30px rgba(0,0,0,.6), 0 0 18px rgba(25,138,223,.25);
  }
  .shell-folha > b {
    display: block; padding: 12px 16px 8px;
    font-family: var(--font-rotulo); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--neon-cyan);
  }
  .shell-folha-item {
    display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 4px 16px;
    border-top: 1px solid rgba(25,138,223,.15); text-decoration: none; color: #DBDEF1; font-size: .92rem;
  }
  .shell-folha-item span { flex: 1; min-width: 0; }
  .shell-folha-item .shell-tabbar-ic { flex: 0 0 24px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: #B0DEF8; }
  .shell-folha-item.is-ativo { color: #F9FAFB; background: rgba(247,18,49,.18); box-shadow: inset 3px 0 0 #F71231; }
  .shell-folha-item.is-breve { color: #8FA6BC; }
  .shell-folha-item .shell-breve { margin: 0; flex-shrink: 0; }
  body.folha-aberta .shell-fabs { display: none; }
}
@media (max-width: 640px) {
  .shell-topbar { gap: 8px; }
  .shell-topbar-right { gap: 8px; }
  .shell-topbar-marca, .shell-top-txt { display: none; }
  .shell-top-btn { padding: 0; width: 38px; }
}

/* rodapé: redes (e a marca no Início) em cima do aviso e dos links legais */
.rodape-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.rodape-topo .rodape-redes { display: flex; gap: 10px; margin: 0; }
.rodape-topo .rodape-redes a {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(25,138,223,.45); color: #B0DEF8;
}
.rodape-topo .rodape-redes a:hover { color: #fff; border-color: var(--neon-cyan); box-shadow: 0 0 12px rgba(25,138,223,.5); }
.rodape-topo .rodape-redes svg { width: 17px; height: 17px; }
.rodape-topo + .rodape-aviso { margin-top: 22px; }

/* o salto pelas âncoras do menu para abaixo da barra do topo */
#minhas-carteiras, #premios, #premium { scroll-margin-top: calc(var(--header-height, 64px) + 20px); }

/* 4.50: o toque responde na hora (sem esperar o segundo toque do zoom) */
a, button, input, select, label, summary, [role="button"] { touch-action: manipulation; }

/* 4.50: o rodape nasce abaixo da tela; antes ele aparecia no alto e descia quando o conteudo chegava */
body.com-shell > main { min-height: calc(100vh - var(--header-height, 64px)); }

/* 4.55: os botões de retorno ficam no fim da página no celular. */
.shell-top-btn[hidden] { display: none; }
.ct-campo[hidden] { display: none; }
@media (max-width: 968px) {
  .shell-fabs { position: static; transform: none; width: fit-content; margin: 18px auto; }
}
