/* ============================================================
   HABBASE — Redesign v1 (navegação no topo)
   Escopado via body:has(#hb-topnav) p/ NÃO afetar o painel admin.
   Paleta: azul-marinho no topo, conteúdo claro.
   ============================================================ */

#hb-topnav {
  --hb-navy-1: #142845;
  --hb-navy-2: #1e3a63;
  --hb-blue: #2f80e0;
  --hb-gold: #f5a623;
  position: relative;
  z-index: 1030;
}

/* faixa 1: logo + jogadores online */
#hb-topnav .hb-top1 { background: var(--hb-navy-1); }
#hb-topnav .hb-top1-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 24px;
}
#hb-topnav .hb-logo { display: flex; align-items: center; text-decoration: none; }
#hb-topnav .hb-logo-img { height: 42px; width: auto; image-rendering: pixelated; }
#hb-topnav .hb-logo-text {
  color: var(--hb-gold); font-weight: 900; font-size: 26px; letter-spacing: 1px;
  text-shadow: 2px 2px 0 rgba(0,0,0,.35);
}
#hb-topnav .hb-online {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: #fff; border-radius: 999px; padding: 7px 16px; font-size: 13px;
  white-space: nowrap;
}
#hb-topnav .hb-online b { font-size: 16px; }
#hb-topnav .hb-online-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61,220,132,.25);
}

/* faixa 2: navegação por categorias */
#hb-topnav .hb-top2 { background: var(--hb-navy-2); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
#hb-topnav .hb-top2-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; gap: 2px; overflow-x: auto; padding: 0 16px;
  scrollbar-width: none;
}
#hb-topnav .hb-top2-inner::-webkit-scrollbar { display: none; }
#hb-topnav .hb-nav-link {
  color: rgba(255,255,255,.85); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .4px;
  padding: 14px 16px; white-space: nowrap; text-decoration: none;
  border-bottom: 3px solid transparent;
}
#hb-topnav .hb-nav-link:hover, #hb-topnav .hb-nav-link:focus {
  color: #fff; background: rgba(255,255,255,.07);
  border-bottom-color: var(--hb-blue);
}

/* esconde o chrome antigo (sidebar/hambúrguer) e libera as margens —
   só nas páginas públicas que renderizam o novo topo */
body:has(#hb-topnav) .sidenav-menu { display: none !important; }
body:has(#hb-topnav) .sidenav-toggle-button { display: none !important; }
body:has(#hb-topnav) .app-topbar {
  margin-inline-start: 0 !important;
  position: static !important;
}
body:has(#hb-topnav) .content-page { margin-inline-start: 0 !important; }

@media (max-width: 576px) {
  #hb-topnav .hb-top1-inner { padding: 10px 14px; }
  #hb-topnav .hb-logo-img { height: 34px; }
  #hb-topnav .hb-online { padding: 5px 12px; font-size: 12px; }
}

/* ============================================================
   Variant HOME (v2): avatar+sociais | busca central | online grande
   e nav em caixas com ícones + card do usuário
   ============================================================ */
#hb-topnav.hb-home .hb-top1 { background: #1e2b48; }
#hb-topnav.hb-home .hb-top1-inner { padding: 12px 24px; gap: 20px; }
#hb-topnav.hb-home .hb-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
#hb-topnav.hb-home .hb-avatar {
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
#hb-topnav.hb-home .hb-avatar img { width: 40px; height: 40px; object-fit: cover; image-rendering: pixelated; }
#hb-topnav.hb-home .hb-soc {
  color: rgba(255,255,255,.8); font-size: 19px; text-decoration: none;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
#hb-topnav.hb-home .hb-soc:hover { color: #fff; background: rgba(255,255,255,.1); }
#hb-topnav.hb-home .hb-logo-img { height: 38px; }
#hb-topnav.hb-home .hb-search {
  flex: 1 1 auto; max-width: 620px; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 999px; padding: 9px 18px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.12);
}
#hb-topnav.hb-home .hb-search i { color: #8a93a6; font-size: 17px; }
#hb-topnav.hb-home .hb-search input {
  border: 0; outline: 0; background: transparent; width: 100%;
  font-size: 14px; color: #1e2b48;
}
#hb-topnav.hb-home .hb-online-big { text-align: right; color: #fff; line-height: 1.05; flex-shrink: 0; }
#hb-topnav.hb-home .hb-online-big b { display: block; font-size: 26px; font-weight: 900; }
#hb-topnav.hb-home .hb-online-big span { font-size: 12px; opacity: .8; }

#hb-topnav.hb-home .hb-top2 { background: #274a77; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
#hb-topnav.hb-home .hb-top2-inner { padding: 0; gap: 0; align-items: stretch; overflow: visible; }
#hb-topnav.hb-home .hb-nav-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.9); font-weight: 700; font-size: 13.5px;
  text-transform: none; letter-spacing: .2px; text-decoration: none;
  padding: 15px 22px; white-space: nowrap; cursor: pointer;
  background: rgba(255,255,255,.045); border-right: 1px solid rgba(0,0,0,.18);
}
#hb-topnav.hb-home .hb-nav-item i { font-size: 17px; opacity: .9; }
#hb-topnav.hb-home .hb-nav-item:hover { background: rgba(255,255,255,.12); color: #fff; }
#hb-topnav.hb-home .hb-menu { position: relative; }
#hb-topnav.hb-home .hb-menu-drop {
  display: none; position: absolute; top: 100%; left: 0; z-index: 1040;
  background: #fff; border-radius: 0 0 10px 10px; min-width: 220px;
  box-shadow: 0 12px 28px rgba(15,30,60,.25); padding: 6px 0;
}
#hb-topnav.hb-home .hb-menu:hover .hb-menu-drop { display: block; }
#hb-topnav.hb-home .hb-menu-drop a {
  display: block; padding: 9px 18px; color: #1e2b48; font-weight: 600;
  font-size: 13.5px; text-decoration: none;
}
#hb-topnav.hb-home .hb-menu-drop a:hover { background: #eef4fb; color: #2f80e0; }
#hb-topnav.hb-home .hb-user-slot { margin-left: auto; display: flex; align-items: stretch; }
#hb-topnav.hb-home .hb-user {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  background: #f4f8fd; color: #1e2b48; font-weight: 800; font-size: 14px;
  padding: 8px 22px; border-radius: 0;
}
#hb-topnav.hb-home .hb-user img { width: 34px; height: 34px; image-rendering: pixelated; }
#hb-topnav.hb-home .hb-user:hover { background: #fff; }
#hb-topnav.hb-home .hb-user-login { background: #2f80e0; color: #fff; }
#hb-topnav.hb-home .hb-user-login:hover { background: #3b8ef0; }

/* na home o toolbar branco antigo sai (busca e usuário já estão no topo) */
/* (v6) a app-topbar do tema voltou a ser a barra da home — ver secao HOME v6 */

@media (max-width: 768px) {
  #hb-topnav.hb-home .hb-top1-inner { flex-wrap: wrap; }
  #hb-topnav.hb-home .hb-search { order: 3; flex-basis: 100%; max-width: none; }
  #hb-topnav.hb-home .hb-top2-inner { overflow-x: auto; }
  #hb-topnav.hb-home .hb-menu-drop { position: fixed; left: 10px; right: 10px; min-width: 0; }
}

/* ============================================================
   HOME v3: fundo cinza-claro + faixa azul-céu no hero,
   seções em cartões brancos e barrinha verde nos títulos
   ============================================================ */
body:has(#hb-topnav.hb-home) { background: #e9eef3 !important; }
body:has(#hb-topnav.hb-home) .content-page { background: transparent !important; }

/* faixa azul-céu com o logo central */
body:has(#hb-topnav.hb-home) div.text-center:has(> .hb-hero-logo) {
  background: linear-gradient(180deg, #38b9f2 0%, #1e8fd2 100%);
  border-radius: 18px;
  margin: 18px 4px 22px;
  box-shadow: 0 6px 20px rgba(30, 120, 190, .25);
}
body:has(#hb-topnav.hb-home) .hb-hero-logo {
  filter: drop-shadow(0 4px 10px rgba(0, 40, 80, .35));
}

/* seções em cartões brancos arredondados */
body:has(#hb-topnav.hb-home) .card {
  background: #fff !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 3px 14px rgba(25, 50, 80, .07) !important;
  backdrop-filter: none !important;
}
body:has(#hb-topnav.hb-home) .card-header {
  background: transparent !important;
  border-bottom: 1px solid #eef2f6 !important;
}

/* barrinha verde-limão na lateral dos títulos de seção */
body:has(#hb-topnav.hb-home) .card-header .card-title,
body:has(#hb-topnav.hb-home) .card-header h5,
body:has(#hb-topnav.hb-home) .card-header h4 {
  position: relative;
  padding-left: 14px;
}
body:has(#hb-topnav.hb-home) .card-header .card-title::before,
body:has(#hb-topnav.hb-home) .card-header h5::before,
body:has(#hb-topnav.hb-home) .card-header h4::before {
  content: "";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 20px; border-radius: 4px;
  background: #8dc63f;
}

/* ============================================================
   HOME v4: fundo com padrão de cubos isométricos (tile próprio)
   e faixa azul do hero mais alta (+20px em cima e embaixo)
   ============================================================ */
body:has(#hb-topnav.hb-home) {
  background: #f4f6f9 url("/assets/images/hb-cubes.svg") repeat top center !important;
  background-size: 40px 60px !important; /* cubos menores = mais densidade */
}
body:has(#hb-topnav.hb-home) div.text-center:has(> .hb-hero-logo) {
  padding-top: calc(3rem + 40px) !important;
  padding-bottom: calc(3rem + 40px) !important;
}

/* ============================================================
   HOME v5 do topo: faixa 1 só com o online; nav centralizada;
   avatar redondo (head crop) no card do usuário
   ============================================================ */
#hb-topnav.hb-home .hb-top1-inner { justify-content: flex-end; padding: 8px 24px; }
#hb-topnav.hb-home .hb-top2-inner { justify-content: center; position: relative; }
#hb-topnav.hb-home .hb-nav-center { display: flex; align-items: stretch; }
#hb-topnav.hb-home .hb-user-slot { position: absolute; right: 0; top: 0; bottom: 0; margin-left: 0; }
#hb-topnav.hb-home .hb-user-avatar {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: #dfe9f5; border: 2px solid #c8d8ec;
  display: flex; align-items: flex-start; justify-content: center;
}
#hb-topnav.hb-home .hb-user-avatar img {
  width: 62px !important; height: auto !important; margin-top: -14px;
  object-fit: none; image-rendering: pixelated;
}
@media (max-width: 768px) {
  #hb-topnav.hb-home .hb-nav-center { overflow-x: auto; }
  #hb-topnav.hb-home .hb-user-slot { position: static; }
}

/* blocos da nav alternando dois tons (referência do Felipe) */
#hb-topnav.hb-home .hb-nav-center > *:nth-child(odd) { --hb-navbg: rgba(0,0,0,.22); }
#hb-topnav.hb-home .hb-nav-center > *:nth-child(even) { --hb-navbg: rgba(255,255,255,.10); }
#hb-topnav.hb-home .hb-nav-item { background: var(--hb-navbg, rgba(255,255,255,.045)); border-right: 0; }
#hb-topnav.hb-home .hb-nav-item:hover { background: rgba(255,255,255,.18); }

/* carrossel de Notícias em Destaque (home) */
.hb-newsc { position: relative; min-height: 280px; height: 100%; width: 100%; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #1e2b48, #274a77); }
.hb-newsc-slide {
  position: absolute; inset: 0; display: block; text-decoration: none;
  background-size: cover; background-position: center; image-rendering: pixelated; background-color: #1e2b48;
  opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.hb-newsc-slide.active { opacity: 1; pointer-events: auto; }
.hb-newsc-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(10, 20, 40, .88));
  color: #fff;
}
.hb-newsc-title { font-weight: 800; font-size: 15.5px; line-height: 1.35; margin-top: 6px; }
.hb-newsc-date { font-size: 11.5px; opacity: .85; margin-top: 2px; }
.hb-newsc-dots { position: absolute; bottom: 10px; right: 14px; display: flex; gap: 6px; z-index: 2; }
.hb-newsc-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: all .25s; }
.hb-newsc-dots button.active { background: #fff; width: 22px; border-radius: 6px; }

/* rotação do carrossel via CSS puro: cada slide fica visível 1/N do ciclo */
@keyframes hbNewsFade2 { 0%,44% { opacity:1; pointer-events:auto } 50%,94% { opacity:0; pointer-events:none } 100% { opacity:1; pointer-events:auto } }
@keyframes hbNewsFade3 { 0%,28% { opacity:1; pointer-events:auto } 33%,95% { opacity:0; pointer-events:none } 100% { opacity:1; pointer-events:auto } }
@keyframes hbNewsFade4 { 0%,21% { opacity:1; pointer-events:auto } 25%,96% { opacity:0; pointer-events:none } 100% { opacity:1; pointer-events:auto } }
@keyframes hbNewsFade5 { 0%,16% { opacity:1; pointer-events:auto } 20%,96% { opacity:0; pointer-events:none } 100% { opacity:1; pointer-events:auto } }

/* caixa "Últimos Raros": branca com título escuro (Felipe preferiu à versão petróleo) */
body:has(#hb-topnav.hb-home) .card:has(#latestRaresContainer) .card-title { color: #1e2b48; font-weight: 800; }

/* ============================================================
   Barra única e MAIOR (faixa do online removida; itens maiores)
   ============================================================ */
#hb-topnav.hb-home .hb-nav-item {
  font-size: 15px;
  padding: 20px 26px;
  gap: 10px;
}
#hb-topnav.hb-home .hb-nav-item i { font-size: 20px; }
#hb-topnav.hb-home .hb-user { font-size: 15px; padding: 10px 24px; }
#hb-topnav.hb-home .hb-user-slot { display: flex; align-items: center; }
#hb-topnav.hb-home .hb-online-mini {
  display: flex; align-items: center; gap: 7px;
  color: #fff; font-size: 13px; padding: 0 16px; white-space: nowrap;
}
#hb-topnav.hb-home .hb-online-mini b { font-size: 16px; }
#hb-topnav.hb-home .hb-online-mini .hb-online-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61,220,132,.25);
}

/* reserva espaço p/ o online+card do usuário sem colidir com a nav centralizada */
#hb-topnav.hb-home .hb-top2-inner { max-width: 1700px; padding: 0 320px; }
@media (max-width: 1500px) {
  #hb-topnav.hb-home .hb-top2-inner { padding: 0 12px; justify-content: flex-start; }
  #hb-topnav.hb-home .hb-nav-center { overflow-x: auto; }
  #hb-topnav.hb-home .hb-user-slot { position: static; margin-left: auto; }
}




/* ============================================================
   HOME v6: nav DENTRO da topbar do tema (formato aprovado:
   busca a esquerda | nav no meio | lua/sino/fullscreen/usuario)
   ============================================================ */
body:has(#hb-topnav.hb-home) .app-topbar {
  background: #1e2b48 !important;
  border-bottom: 0 !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
body:has(#hb-topnav.hb-home) .app-topbar .topbar-menu { gap: 12px; }
body:has(#hb-topnav.hb-home) .app-topbar .logo-topbar,
body:has(#hb-topnav.hb-home) .app-topbar .topnav-toggle-button,
body:has(#hb-topnav.hb-home) .app-topbar #monochrome-toggler { display: none !important; }

/* busca em pilula translucida sobre o navy */
body:has(#hb-topnav.hb-home) .app-topbar .topbar-search {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  color: #fff !important;
  min-width: 220px;
}
body:has(#hb-topnav.hb-home) .app-topbar .topbar-search::placeholder { color: rgba(255,255,255,.55); }
body:has(#hb-topnav.hb-home) .app-topbar .app-search-icon { color: rgba(255,255,255,.6) !important; }

/* icones (lua/sino/fullscreen) e nome do usuario claros sobre o navy */
body:has(#hb-topnav.hb-home) .app-topbar .topbar-link,
body:has(#hb-topnav.hb-home) .app-topbar .topbar-link-icon,
body:has(#hb-topnav.hb-home) .app-topbar .topbar-link span,
body:has(#hb-topnav.hb-home) .app-topbar .topbar-link small { color: #fff !important; }

/* o nav injetado no meio da barra */
nav#hb-topnav.hb-navmid {
  flex: 1 1 auto; align-self: stretch;
  display: flex; align-items: stretch; justify-content: center;
  min-width: 0;
}
nav#hb-topnav.hb-navmid .hb-nav-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.92); font-weight: 700; font-size: 14px;
  padding: 0 20px; text-decoration: none; white-space: nowrap; cursor: pointer;
  background: var(--hb-navbg, transparent);
}
nav#hb-topnav.hb-navmid .hb-nav-item i { font-size: 18px; opacity: .9; }
nav#hb-topnav.hb-navmid .hb-nav-item:hover { background: rgba(255,255,255,.16); color: #fff; }
nav#hb-topnav.hb-navmid > *:nth-child(odd) { --hb-navbg: rgba(0,0,0,.22); }
nav#hb-topnav.hb-navmid > *:nth-child(even) { --hb-navbg: rgba(255,255,255,.10); }
nav#hb-topnav.hb-navmid .hb-menu { display: flex; align-items: stretch; background: var(--hb-navbg, transparent); }
nav#hb-topnav.hb-navmid .hb-menu .hb-nav-item { background: transparent; }
nav#hb-topnav.hb-navmid .hb-online-mini {
  display: flex; align-items: center; gap: 7px;
  color: #fff; font-size: 12.5px; padding: 0 14px; white-space: nowrap;
  background: transparent;
}
nav#hb-topnav.hb-navmid .hb-online-mini b { font-size: 15px; }
nav#hb-topnav.hb-navmid .hb-online-mini .hb-online-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61,220,132,.25);
}
/* dropdown do Menu precisa escapar da barra */
body:has(#hb-topnav.hb-home) .app-topbar,
body:has(#hb-topnav.hb-home) .app-topbar .topbar-menu { overflow: visible; }

@media (max-width: 1200px) {
  nav#hb-topnav.hb-navmid { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  nav#hb-topnav.hb-navmid .hb-nav-item { padding: 0 14px; font-size: 13px; }
  nav#hb-topnav.hb-navmid .hb-online-mini { display: none; }
}

/* v6.1: clusters laterais da topbar nunca encolhem; o nav do meio cede com scroll */
body:has(#hb-topnav.hb-home) .app-topbar .topbar-menu > div { flex-shrink: 0; }
nav#hb-topnav.hb-navmid { flex: 1 1 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
nav#hb-topnav.hb-navmid::-webkit-scrollbar { display: none; }
nav#hb-topnav.hb-navmid .hb-nav-item { padding: 0 16px; }
nav#hb-topnav.hb-navmid .hb-online-mini { padding: 0 12px; }

/* v6.2: centralizacao do nav via auto-margins — centraliza quando cabe e,
   quando nao cabe, encosta no inicio (sem cortar o "Inicio" como o center faz) */
nav#hb-topnav.hb-navmid { justify-content: flex-start; }
nav#hb-topnav.hb-navmid > :first-child { margin-left: auto; }
nav#hb-topnav.hb-navmid > :last-child { margin-right: auto; }

/* v6.3: blocos um pouco mais compactos pra nav inteira caber com folga */
nav#hb-topnav.hb-navmid .hb-nav-item { padding: 0 12px; font-size: 13.5px; }
nav#hb-topnav.hb-navmid .hb-nav-item i { font-size: 17px; }
nav#hb-topnav.hb-navmid .hb-online-mini { padding: 0 10px; }

/* v6.4: card "Mudancas de Valor" mais baixo (paddings/margens compactos) */
body:has(#hb-topnav.hb-home) .card:has(#recentChangesContainer) .card-header { padding-top: 10px; padding-bottom: 10px; }
body:has(#hb-topnav.hb-home) #recentChangesContainer .p-3 { padding: 10px 12px !important; }
body:has(#hb-topnav.hb-home) #recentChangesContainer .my-3 { margin-top: 6px !important; margin-bottom: 6px !important; }
body:has(#hb-topnav.hb-home) #recentChangesContainer .mt-3 { margin-top: 0 !important; }
body:has(#hb-topnav.hb-home) #recentChangesContainer h5.recent-rare-title { margin-bottom: 2px; }
body:has(#hb-topnav.hb-home) #recentChangesContainer h3 { font-size: 19px; }
body:has(#hb-topnav.hb-home) #recentChangesContainer .mt-2 { margin-top: 2px !important; }
body:has(#hb-topnav.hb-home) #recentChangesContainer p { line-height: 1.25; }

/* ============================================================
   HOME v6.5: titulos de secao fortes em todos os cards,
   headers da linha 1 com a mesma altura (linha divisoria alinhada)
   e separador suave entre itens das Mudancas de Valor
   ============================================================ */

/* 1) todos os titulos de card no navy forte (antes so Ultimos Raros tinha) */
body:has(#hb-topnav.hb-home) .card-header .card-title,
body:has(#hb-topnav.hb-home) .card-header h5,
body:has(#hb-topnav.hb-home) .card-header h4 { color: #1e2b48 !important; font-weight: 800; }
body:has(#hb-topnav.hb-home) #noco-box h5 { color: #1e2b48 !important; font-weight: 800; }

/* 2) headers dos dois cards da linha 1 com altura igual — a borda de baixo
   fica na MESMA linha nos dois lados */
body:has(#hb-topnav.hb-home) .card:has(#latestRaresContainer) > .card-header,
body:has(#hb-topnav.hb-home) .card:has(.hb-newsc) > .card-header {
  min-height: 64px; align-items: center;
}

/* 3) Mudancas de Valor: troca o tracejado por um fio suave em degrade,
   sem fio sobrando depois do ultimo item visivel */
body:has(#hb-topnav.hb-home) #recentChangesContainer > [class*="col"] {
  border-right: 0 !important; border-left: 0 !important; position: relative;
}
body:has(#hb-topnav.hb-home) #recentChangesContainer > [class*="col"]::after {
  content: ""; position: absolute; right: 0; top: 16%; height: 68%; width: 1px;
  background: linear-gradient(180deg, transparent, #d9e2ec 28%, #d9e2ec 72%, transparent);
}
body:has(#hb-topnav.hb-home) #recentChangesContainer > [class*="col"]:last-child::after,
body:has(#hb-topnav.hb-home) #recentChangesContainer > [class*="col"]:has(+ .d-none)::after {
  display: none;
}

/* ============================================================
   HOME v6.6: topbar no azul do hero + margens laterais iguais,
   titulos com barrinha em TODOS os widgets, textos das noticias,
   avatar do autor, setas claras, calendario claro, 5 raros/linha
   ============================================================ */

/* topbar: mesmo tom do fundo da logo, flutuando com o mesmo respiro lateral */
body:has(#hb-topnav.hb-home) .app-topbar {
  background: linear-gradient(180deg, #38b9f2 0%, #1e8fd2 100%) !important;
  margin: 12px 28px 0 !important;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(30, 120, 190, .25);
}

/* Ultimos Raros: 5 por linha em telas largas */
@media (min-width: 1200px) {
  body:has(#hb-topnav.hb-home) #latestRaresContainer > [data-rare-page] {
    flex: 0 0 auto; width: 20%;
  }
}

/* setas de paginacao sempre claras (mesmo com o toggle de tema no escuro) */
body:has(#hb-topnav.hb-home) .card .btn-light {
  background: #eef2f7 !important; border-color: #e2e8f0 !important; color: #41506b !important;
}
body:has(#hb-topnav.hb-home) .card .btn-light:disabled {
  background: #f5f8fb !important; border-color: #eaeff5 !important; color: #9aa7bd !important; opacity: 1;
}

/* barrinha verde + navy nos titulos que faltavam */
body:has(#hb-topnav.hb-home) .card:has(#originsOnlineNow) h5.text-uppercase,
body:has(#hb-topnav.hb-home) .card:has(#habboBadgeGrid) h6.mb-0,
body:has(#hb-topnav.hb-home) .card:has(#bobbaLatestBadgeGrid) h6.mb-0,
body:has(#hb-topnav.hb-home) #todayScheduleTitle {
  color: #1e2b48 !important; font-weight: 800;
  position: relative; padding-left: 14px;
}
body:has(#hb-topnav.hb-home) .card:has(#originsOnlineNow) h5.text-uppercase::before,
body:has(#hb-topnav.hb-home) .card:has(#habboBadgeGrid) h6.mb-0::before,
body:has(#hb-topnav.hb-home) .card:has(#bobbaLatestBadgeGrid) h6.mb-0::before,
body:has(#hb-topnav.hb-home) #todayScheduleTitle::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 16px; border-radius: 4px; background: #8dc63f;
}

/* textos dos cards de noticia mais legiveis */
body:has(#hb-topnav.hb-home) article.card .card-title a { color: #1e2b48 !important; }
body:has(#hb-topnav.hb-home) article.card p.text-muted { color: #5b6a85 !important; }
body:has(#hb-topnav.hb-home) article.card .news-card-footer a.link-reset { color: #5b6a85 !important; }

/* avatar do autor: recorte da cabeca centralizado (rosto inteiro) */
body:has(#hb-topnav.hb-home) article.card .hb-head-crop {
  background: #dfe9f5; border: 2px solid #c8d8ec;
  display: flex; align-items: flex-start; justify-content: center;
}
body:has(#hb-topnav.hb-home) article.card .hb-head-crop img {
  position: static !important; transform: none !important;
  width: 62px !important; height: auto !important; margin-top: -12px;
}

/* calendario de eventos sempre claro na home */
body:has(#hb-topnav.hb-home) .flatpickr-calendar {
  background: #fff !important; border: 1px solid #e6ecf3 !important; box-shadow: none !important;
}
body:has(#hb-topnav.hb-home) .flatpickr-innerContainer,
body:has(#hb-topnav.hb-home) .flatpickr-rContainer,
body:has(#hb-topnav.hb-home) .flatpickr-weekdays,
body:has(#hb-topnav.hb-home) .flatpickr-days { background: transparent !important; }
body:has(#hb-topnav.hb-home) .flatpickr-day {
  color: #33415e !important; background: transparent; border-color: transparent;
}
body:has(#hb-topnav.hb-home) .flatpickr-day.prevMonthDay,
body:has(#hb-topnav.hb-home) .flatpickr-day.nextMonthDay,
body:has(#hb-topnav.hb-home) .flatpickr-day.flatpickr-disabled { color: #a9b6c9 !important; }
body:has(#hb-topnav.hb-home) .flatpickr-day.today { border-color: #1e8fd2 !important; }
body:has(#hb-topnav.hb-home) .flatpickr-day.selected {
  background: #1e8fd2 !important; border-color: #1e8fd2 !important; color: #fff !important;
}
body:has(#hb-topnav.hb-home) .flatpickr-day:hover { background: #eef4fb !important; }
body:has(#hb-topnav.hb-home) .flatpickr-weekday { color: #7c8aa5 !important; }
body:has(#hb-topnav.hb-home) .flatpickr-months *,
body:has(#hb-topnav.hb-home) .flatpickr-months .flatpickr-month {
  color: #1e2b48 !important; fill: #1e2b48 !important; background: transparent !important;
}
body:has(#hb-topnav.hb-home) .flatpickr-current-month .flatpickr-monthDropdown-months,
body:has(#hb-topnav.hb-home) .flatpickr-current-month input.cur-year {
  background: #fff !important; color: #1e2b48 !important;
}

/* v6.7: autor das noticias em corpo inteiro miniatura (teste do Felipe)
   + badge de categoria (Origins etc.) em pilula com texto centralizado */
body:has(#hb-topnav.hb-home) article.card .hb-head-crop {
  width: auto; height: 56px; border-radius: 0; overflow: visible;
  background: transparent; border: 0;
  display: flex; align-items: flex-end; justify-content: center;
}
body:has(#hb-topnav.hb-home) article.card .hb-head-crop img {
  position: static !important; transform: none !important;
  width: auto !important; height: 56px !important; margin: 0 !important;
}
body:has(#hb-topnav.hb-home) article.card .badge.badge-label,
body:has(#hb-topnav.hb-home) .hb-newsc-slide .badge {
  border-radius: 999px !important;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 12px 4px !important; line-height: 1 !important;
}

/* v6.8: autor das noticias IGUAL a profile picture do topo
   (janela 44x44 com object-position, cantos arredondados) */
body:has(#hb-topnav.hb-home) article.card .hb-head-crop {
  width: 44px; height: 44px; border-radius: 8px; overflow: hidden;
  background: #dfe9f5; border: 0; flex-shrink: 0; display: block;
}
body:has(#hb-topnav.hb-home) article.card .hb-head-crop img {
  width: 44px !important; height: 44px !important; margin: 0 !important;
  position: static !important; transform: none !important;
  object-fit: none; object-position: -12px -17px; image-rendering: pixelated;
}

/* v6.9: avatar do autor menor (36px) pra caber no rodape do card,
   mesmo enquadramento do rosto (janela recentralizada) */
body:has(#hb-topnav.hb-home) article.card .hb-head-crop { width: 36px; height: 36px; border-radius: 8px; }
body:has(#hb-topnav.hb-home) article.card .hb-head-crop img {
  width: 36px !important; height: 36px !important;
  object-position: -16px -21px;
}

/* v7.0: rodape do card de noticia com mais respiro vertical */
body:has(#hb-topnav.hb-home) article.card .card-footer.news-card-footer {
  padding-top: 14px; padding-bottom: 14px;
}

/* v7.1: faixa azul do hero mais alta (+5% da tela em cima e embaixo) */
body:has(#hb-topnav.hb-home) div.text-center:has(> .hb-hero-logo) {
  padding-top: calc(3rem + 40px + 5vh) !important;
  padding-bottom: calc(3rem + 40px + 5vh) !important;
}

/* v7.2: alternancia dos blocos da nav bem mais sutil sobre o azul */
nav#hb-topnav.hb-navmid > *:nth-child(odd) { --hb-navbg: rgba(0, 20, 50, .10); }
nav#hb-topnav.hb-navmid > *:nth-child(even) { --hb-navbg: rgba(255, 255, 255, .07); }

/* v7.3: mais folga no rodape da noticia (quadrado azul sem encostar nas linhas) */
body:has(#hb-topnav.hb-home) article.card .card-footer.news-card-footer {
  padding-top: 18px !important; padding-bottom: 18px !important;
}

/* ============================================================
   SITE v7.4: modelo novo vira o padrao (light) em todo o site
   + dropdowns da topbar acima do conteudo + mobile com drawer
   ============================================================ */

/* dropdowns (usuario/notificacoes/tema) por CIMA do hero e do conteudo */
body:has(#hb-topnav.hb-home) .app-topbar { position: relative !important; z-index: 1050; }

/* paginas internas: logo aparece na topbar (na home fica so no hero) */
body:has(#hb-topnav.hb-home:not(.hb-at-home)) .app-topbar .logo-topbar { display: block !important; }
body:has(#hb-topnav.hb-home:not(.hb-at-home)) .app-topbar .logo-topbar h1 {
  color: #fff !important; font-size: 20px; margin: 0;
}
body:has(#hb-topnav.hb-home:not(.hb-at-home)) .app-topbar .logo-topbar img {
  height: 30px; width: auto; image-rendering: pixelated;
}

/* topbar mais justa em telas medias/pequenas */
@media (max-width: 991.98px) {
  body:has(#hb-topnav.hb-home) .app-topbar { margin: 10px 12px 0 !important; }
}

/* mobile (<768px): sai a nav do meio, entram as 3 barrinhas + drawer lateral
   (sidenav.js do tema cuida do abre/fecha; o drawer usa a sidebar editavel) */
@media (max-width: 767.98px) {
  nav#hb-topnav.hb-navmid { display: none !important; }
  body:has(#hb-topnav.hb-home) .sidenav-toggle-button { display: inline-flex !important; }
  body:has(#hb-topnav.hb-home) .sidenav-menu { display: block !important; }
}

/* v7.5: paginas internas — nav compacta pra caber com logo + busca */
body:has(#hb-topnav.hb-home:not(.hb-at-home)) .app-topbar .topbar-search { min-width: 150px !important; width: 150px; }
nav#hb-topnav.hb-navmid:not(.hb-at-home) .hb-nav-item { padding: 0 10px; font-size: 13px; }
nav#hb-topnav.hb-navmid:not(.hb-at-home) .hb-nav-item i { font-size: 16px; }

/* v7.6: paginas internas — nav so texto (icones ficam na home) */
nav#hb-topnav.hb-navmid:not(.hb-at-home) .hb-nav-item i { display: none; }
nav#hb-topnav.hb-navmid:not(.hb-at-home) .hb-nav-item { gap: 0; padding: 0 12px; }

/* ============================================================
   SITE v7.7: logo SO na home (hero) — barra identica em todas
   as paginas; respiro no topo do conteudo; titulo de pagina em
   quadro branco com barrinha; Timeline de comentarios
   ============================================================ */

/* logo NUNCA na topbar (nem no mobile) — so o hero da home tem logo */
body:has(#hb-topnav.hb-home) .app-topbar .logo-topbar,
body:has(#hb-topnav.hb-home:not(.hb-at-home)) .app-topbar .logo-topbar { display: none !important; }

/* nav identica em todas as paginas (mesmos tamanhos da home) */
nav#hb-topnav.hb-navmid:not(.hb-at-home) .hb-nav-item { padding: 0 12px; font-size: 13.5px; gap: 10px; }
nav#hb-topnav.hb-navmid:not(.hb-at-home) .hb-nav-item i { display: inline-block; font-size: 17px; }
body:has(#hb-topnav.hb-home) .app-topbar .topbar-search { min-width: 200px !important; width: 200px; }

/* respiro entre a topbar e o conteudo em todas as paginas */
body:has(#hb-topnav.hb-home) .content-page > .container-fluid { padding-top: 16px; }

/* titulo de pagina: quadro branco + barrinha verde (padrao aprovado) */
body:has(#hb-topnav.hb-home) .content-page > .container-fluid > .row:first-of-type > .col-12:has(> h3.mb-0) {
  background: #fff; border-radius: 16px; padding: 16px 20px;
  box-shadow: 0 3px 14px rgba(25, 50, 80, .07);
}
body:has(#hb-topnav.hb-home) .content-page > .container-fluid > .row:first-of-type > .col-12 > h3.mb-0 {
  position: relative; padding-left: 14px; font-weight: 800; color: #1e2b48;
}
body:has(#hb-topnav.hb-home) .content-page > .container-fluid > .row:first-of-type > .col-12 > h3.mb-0::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 20px; border-radius: 4px; background: #8dc63f;
}
body:has(#hb-topnav.hb-home) .content-page > .container-fluid > .row:first-of-type > .col-12 > p.text-muted {
  margin-bottom: 0; padding-left: 14px;
}

/* ---------------- Timeline de comentarios ---------------- */
.hb-timeline .hb-tl-title { font-weight: 800; color: #1e2b48; }
.hb-tl-composer { display: flex; align-items: center; gap: 10px; }
.hb-tl-composer .hb-tl-me {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: #eef1f6; display: flex; align-items: flex-start; justify-content: center;
}
.hb-tl-composer .hb-tl-me img { width: 44px; height: 44px; object-fit: none; object-position: -12px -13px; }
.hb-tl-input { border-radius: 999px !important; padding: 10px 18px; }
.hb-tl-item {
  position: relative; display: flex; gap: 12px;
  background: #eef1f6; border-radius: 14px; padding: 12px 44px 12px 12px;
}
.hb-tl-avatar { width: 64px; flex-shrink: 0; display: flex; justify-content: center; align-items: flex-start; }
.hb-tl-avatar img { height: 100px; width: auto; }
.hb-tl-bubble { background: #fff; border-radius: 10px; padding: 8px 12px; box-shadow: 0 1px 4px rgba(25, 50, 80, .06); }
.hb-tl-like {
  background: #2f80e0; color: #fff; border: 0; border-radius: 999px;
  padding: 4px 14px; font-size: 12.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.hb-tl-like:hover { background: #3b8ef0; }
.hb-tl-like.liked { background: #1b5fb3; }
.hb-tl-report {
  position: absolute; top: 12px; right: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #e03131; color: #fff; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.hb-tl-report:hover { background: #c92a2a; }
.hb-tl-report:disabled { background: #adb5bd; cursor: default; }

/* v7.8: alinhamento fino — topbar com as MESMAS margens dos cards (24px);
   hero idem; mais respiro no topo; artigo de noticia mais enxuto */
body:has(#hb-topnav.hb-home) .app-topbar { margin: 12px 24px 0 !important; }
body:has(#hb-topnav.hb-home) div.text-center:has(> .hb-hero-logo) { margin-left: 0 !important; margin-right: 0 !important; }
body:has(#hb-topnav.hb-home) .content-page > .container-fluid { padding-top: 28px; }

/* artigo: nao ocupa a tela toda — coluna limitada, capa mais baixa, titulo menor */
body:has(#hb-topnav.hb-home) .col-xl-8:has(> article.card) > * { max-width: 900px; }
body:has(#hb-topnav.hb-home) article.card > .position-relative.overflow-hidden,
body:has(#hb-topnav.hb-home) article.card > .position-relative.overflow-hidden img { max-height: 280px !important; }
body:has(#hb-topnav.hb-home) article.card h1 { font-size: 26px; }
body:has(#hb-topnav.hb-home) article.card .lead { font-size: 15px; }

/* v7.9: artigo centralizado (coluna limitada) + carrossel de destaque na sidebar */
.hb-article-col { max-width: 924px; }
.hb-sidebar-spot .hb-newsc { min-height: 210px; }

/* ============================================================
   v8.0: listagens principais (e pagina do raro) centralizadas
   e menos esticadas + bloco de titulo com mais respiro
   ============================================================ */
body:has(#hb-topnav.hb-home) .content-page > .container-fluid:has(.hb-narrow-marker) {
  max-width: 1424px; margin-inline: auto;
}

/* titulo de pagina: mais respiro interno e distancia da caixa seguinte */
body:has(#hb-topnav.hb-home) .content-page > .container-fluid > .row:first-of-type > .col-12:has(> h3.mb-0) {
  padding: 18px 22px;
  margin-bottom: 14px;
}

/* v8.1: bloco de titulo alinhado com os cards (compensa o gutter da coluna) */
body:has(#hb-topnav.hb-home) .content-page > .container-fluid > .row:first-of-type > .col-12:has(> h3.mb-0) {
  margin-inline: calc(var(--bs-gutter-x, 1.5rem) * .5);
  width: calc(100% - var(--bs-gutter-x, 1.5rem));
}

/* ============================================================
   v8.2: centralizacao GLOBAL das paginas internas (home segue
   cheia) + painel admin centralizado com titulo no padrao
   ============================================================ */

/* toda pagina interna fica no container centralizado (~1400px) */
body:has(#hb-topnav.hb-home:not(.hb-at-home)) .content-page > .container-fluid {
  max-width: 1424px; margin-inline: auto;
}

/* admin: container centralizado (um pouco mais largo, por causa das tabelas) */
.hb-admin-container { max-width: 1520px; margin-inline: auto; }

/* admin: bloco de titulo no padrao (cor do card p/ respeitar tema escuro) */
.hb-admin-container > .row:first-of-type > .col-12:has(> h3) {
  background: var(--bs-card-bg, #fff);
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 3px 14px rgba(25, 50, 80, .07);
  margin-inline: calc(var(--bs-gutter-x, 1.5rem) * .5);
  width: calc(100% - var(--bs-gutter-x, 1.5rem));
  margin-bottom: 14px;
}
.hb-admin-container > .row:first-of-type > .col-12 > h3 {
  position: relative; padding-left: 14px; font-weight: 800;
}
.hb-admin-container > .row:first-of-type > .col-12 > h3::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 20px; border-radius: 4px; background: #8dc63f;
}

/* ============================================================
   v8.3: paleta dos botoes + mobile (hamburguer e hero)
   ============================================================ */

/* botoes primarios (Ver Tudo etc.) no azul da paleta do site */
body:has(#hb-topnav.hb-home) .btn-primary {
  background-color: #1e8fd2 !important;
  border-color: #1e8fd2 !important;
  color: #fff !important;
}
body:has(#hb-topnav.hb-home) .btn-primary:hover,
body:has(#hb-topnav.hb-home) .btn-primary:focus,
body:has(#hb-topnav.hb-home) .btn-primary:active {
  background-color: #187dbb !important;
  border-color: #187dbb !important;
}
body:has(#hb-topnav.hb-home) .btn-primary:disabled {
  background-color: #8ec6e8 !important;
  border-color: #8ec6e8 !important;
}

/* o botao de login na topbar fica branco p/ contrastar com a barra azul */
body:has(#hb-topnav.hb-home) .app-topbar .btn-primary {
  background-color: #fff !important;
  border-color: #fff !important;
  color: #1e8fd2 !important;
}
body:has(#hb-topnav.hb-home) .app-topbar .btn-primary:hover,
body:has(#hb-topnav.hb-home) .app-topbar .btn-primary:focus {
  background-color: #eaf5fc !important;
  border-color: #eaf5fc !important;
}

/* hamburguer (3 barrinhas) combinando com a barra azul */
body:has(#hb-topnav.hb-home) .sidenav-toggle-button {
  background: rgba(255, 255, 255, .16) !important;
  border: 1px solid rgba(255, 255, 255, .3) !important;
  color: #fff !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
body:has(#hb-topnav.hb-home) .sidenav-toggle-button:hover {
  background: rgba(255, 255, 255, .26) !important;
}

/* hero: -5% de altura em cima e embaixo SOMENTE no mobile */
@media (max-width: 767.98px) {
  body:has(#hb-topnav.hb-home) div.text-center:has(> .hb-hero-logo) {
    padding-top: calc(3rem + 40px) !important;
    padding-bottom: calc(3rem + 40px) !important;
  }
}

/* v8.4: notificacoes no mobile em painel de largura cheia (sem cortar texto) */
@media (max-width: 767.98px) {
  body:has(#hb-topnav.hb-home) #hb-noti .dropdown-menu {
    position: fixed !important;
    left: 12px !important; right: 12px !important; top: 88px !important;
    width: auto !important; max-width: none !important; min-width: 0 !important;
    transform: none !important;
    border-radius: 14px; box-shadow: 0 10px 30px rgba(10,30,60,.25);
  }
}

/* v8.5: bloco de titulo generico (promo do inspiracoes etc.) + chips no azul */
.hb-title-block {
  background: #fff; border-radius: 16px; padding: 18px 22px;
  box-shadow: 0 3px 14px rgba(25, 50, 80, .07); margin-bottom: 14px;
}
.hb-title-block h3 { position: relative; padding-left: 14px; font-weight: 800; color: #1e2b48; }
.hb-title-block h3::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 20px; border-radius: 4px; background: #8dc63f;
}
body:has(#hb-topnav.hb-home) .badge.bg-primary { background-color: #1e8fd2 !important; }

/* ============================================================
   ADMIN v8.6: identidade nova no painel (fundo de cubos, cards
   brancos, topbar azul) mantendo a sidebar lateral em navy.
   Escopo: body:has(.hb-admin-container) — so paginas do admin.
   + fullscreen [ ] removido em todo o site
   ============================================================ */

/* fullscreen [ ] some no site todo (publico e admin) */
body:has(#hb-topnav.hb-home) #fullscreen-toggler,
body:has(.hb-admin-container) #fullscreen-toggler { display: none !important; }

/* admin sempre no claro: o toggle de tema some (theme.js forca light) */
body:has(.hb-admin-container) #theme-dropdown { display: none !important; }
body:has(.hb-admin-container) #monochrome-toggler { display: none !important; }

/* fundo de cubos + conteudo transparente */
body:has(.hb-admin-container) {
  background: #f4f6f9 url("/assets/images/hb-cubes.svg") repeat top center !important;
  background-size: 40px 60px !important;
}
body:has(.hb-admin-container) .content-page { background: transparent !important; }

/* cards brancos arredondados + titulos navy com barrinha verde */
body:has(.hb-admin-container) .card {
  background: #fff !important; border: 0 !important; border-radius: 16px !important;
  box-shadow: 0 3px 14px rgba(25, 50, 80, .07) !important;
}
body:has(.hb-admin-container) .card-header {
  background: transparent !important; border-bottom: 1px solid #eef2f6 !important;
}
body:has(.hb-admin-container) .card-header .card-title,
body:has(.hb-admin-container) .card-header h5,
body:has(.hb-admin-container) .card-header h4 {
  color: #1e2b48 !important; font-weight: 800;
  position: relative; padding-left: 14px;
}
body:has(.hb-admin-container) .card-header .card-title::before,
body:has(.hb-admin-container) .card-header h5::before,
body:has(.hb-admin-container) .card-header h4::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 20px; border-radius: 4px; background: #8dc63f;
}

/* topbar do admin: azul do hero, flutuante como no site */
body:has(.hb-admin-container) .app-topbar {
  background: linear-gradient(180deg, #38b9f2 0%, #1e8fd2 100%) !important;
  margin: 12px 24px 0 !important;
  border-radius: 14px;
  border-bottom: 0 !important;
  box-shadow: 0 4px 14px rgba(30, 120, 190, .25);
  position: relative !important; z-index: 1040;
}
body:has(.hb-admin-container) .app-topbar,
body:has(.hb-admin-container) .app-topbar .topbar-menu { overflow: visible; }
body:has(.hb-admin-container) .app-topbar .logo-topbar { display: none !important; }
body:has(.hb-admin-container) .app-topbar .topbar-link,
body:has(.hb-admin-container) .app-topbar .topbar-link-icon { color: #fff !important; }
body:has(.hb-admin-container) .app-topbar .topbar-search {
  background: rgba(255, 255, 255, .12) !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  color: #fff !important;
}
body:has(.hb-admin-container) .app-topbar .topbar-search::placeholder { color: rgba(255, 255, 255, .6); }
body:has(.hb-admin-container) .app-topbar .app-search-icon { color: rgba(255, 255, 255, .65) !important; }
body:has(.hb-admin-container) .app-topbar .btn-primary {
  background-color: #fff !important; border-color: #fff !important; color: #1e8fd2 !important;
}

/* botoes primarios do admin no azul da paleta */
body:has(.hb-admin-container) .btn-primary {
  background-color: #1e8fd2 !important; border-color: #1e8fd2 !important; color: #fff !important;
}
body:has(.hb-admin-container) .btn-primary:hover,
body:has(.hb-admin-container) .btn-primary:focus {
  background-color: #187dbb !important; border-color: #187dbb !important;
}

/* ------- sidebar do admin: mantida, mas no navy da paleta ------- */
body:has(.hb-admin-container) .sidenav-menu {
  background: #1e2b48 !important;
  border-right: 0 !important;
}
body:has(.hb-admin-container) .sidenav-menu .logo h1 {
  color: #ffc84a !important; font-size: 26px; letter-spacing: 1px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
}
body:has(.hb-admin-container) .side-nav-title {
  color: #7fa8d9 !important; font-weight: 800; letter-spacing: .6px;
}
body:has(.hb-admin-container) .side-nav-link {
  color: rgba(255, 255, 255, .82) !important; border-radius: 10px; margin: 1px 8px;
}
body:has(.hb-admin-container) .side-nav-link .menu-icon,
body:has(.hb-admin-container) .side-nav-link i { color: rgba(255, 255, 255, .75) !important; }
body:has(.hb-admin-container) .side-nav-link:hover {
  color: #fff !important; background: rgba(255, 255, 255, .10) !important;
}
body:has(.hb-admin-container) .side-nav-link.active {
  color: #fff !important; background: #1e8fd2 !important;
}
body:has(.hb-admin-container) .side-nav-link.active .menu-icon,
body:has(.hb-admin-container) .side-nav-link.active i { color: #fff !important; }
body:has(.hb-admin-container) .sidenav-menu .button-on-hover,
body:has(.hb-admin-container) .sidenav-menu .button-close-offcanvas { color: rgba(255,255,255,.7) !important; }

/* v8.6.1: forca de especificidade p/ vencer o tema no admin (:not(#_) = nivel de id) */
body:has(.hb-admin-container):not(#_) {
  background: #f4f6f9 url("/assets/images/hb-cubes.svg") repeat top center !important;
  background-size: 40px 60px !important;
}
body:has(.hb-admin-container):not(#_) .sidenav-menu {
  background: #1e2b48 !important;
}
body:has(.hb-admin-container):not(#_) .sidenav-menu .scrollbar,
body:has(.hb-admin-container):not(#_) #sidenav-menu,
body:has(.hb-admin-container):not(#_) .side-nav {
  background: transparent !important;
}
body:has(.hb-admin-container):not(#_) .sidenav-menu .logo { background: transparent !important; }
body:has(.hb-admin-container):not(#_) .sidenav-menu .logo h1 { color: #ffc84a !important; }

/* v8.6.2: topbar do admin comeca DEPOIS da sidebar (nao cobre o logo) */
body:has(.hb-admin-container):not(#_) .app-topbar {
  margin: 12px 24px 0 calc(var(--theme-sidenav-width, 245px) + 24px) !important;
}
@media (max-width: 767.98px) {
  body:has(.hb-admin-container):not(#_) .app-topbar { margin: 10px 12px 0 !important; }
}

/* v8.6.3: logo Habbase visivel no topo da sidebar do admin */
body:has(.hb-admin-container):not(#_) .sidenav-menu > a.logo {
  display: flex !important; align-items: center;
  padding: 14px 16px 4px; height: auto !important; opacity: 1 !important; visibility: visible !important;
}
body:has(.hb-admin-container):not(#_) .sidenav-menu .logo .logo-dark { display: none !important; }
body:has(.hb-admin-container):not(#_) .sidenav-menu .logo .logo-light { display: inline-block !important; }
body:has(.hb-admin-container):not(#_) .sidenav-menu .logo .logo-sm { display: none !important; }
body:has(.hb-admin-container):not(#_) .sidenav-menu .logo .logo-lg { display: inline-block !important; }
body:has(.hb-admin-container):not(#_) .sidenav-menu .logo h1 {
  color: #ffc84a !important; font-size: 24px; margin: 0 !important;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
}

/* ============================================================
   v8.7: acabamento do admin + botoes/modais/scrollbar na paleta
   ============================================================ */

/* 1) logo da sidebar do admin REMOVIDO (pedido do Felipe) */
body:has(.hb-admin-container):not(#_) .sidenav-menu > a.logo { display: none !important; }

/* 2) topbar do admin nao estoura a largura (tema fixa width; anulamos) */
body:has(.hb-admin-container):not(#_) .app-topbar { width: auto !important; }

/* 3) botoes soft/outline primarios na paleta (site + admin) */
body:has(#hb-topnav.hb-home) .btn-soft-primary,
body:has(.hb-admin-container) .btn-soft-primary {
  background-color: rgba(30, 143, 210, .12) !important;
  border-color: transparent !important;
  color: #1e8fd2 !important;
}
body:has(#hb-topnav.hb-home) .btn-soft-primary:hover,
body:has(.hb-admin-container) .btn-soft-primary:hover {
  background-color: #1e8fd2 !important; color: #fff !important;
}
body:has(#hb-topnav.hb-home) .btn-outline-primary,
body:has(.hb-admin-container) .btn-outline-primary {
  color: #1e8fd2 !important; border-color: #1e8fd2 !important; background: transparent !important;
}
body:has(#hb-topnav.hb-home) .btn-outline-primary:hover,
body:has(.hb-admin-container) .btn-outline-primary:hover {
  background: #1e8fd2 !important; color: #fff !important;
}

/* 4) scrollbar da sidebar do admin: fina e discreta sobre o navy */
body:has(.hb-admin-container):not(#_) .sidenav-menu .scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .28) transparent;
}
body:has(.hb-admin-container):not(#_) .sidenav-menu .scrollbar::-webkit-scrollbar { width: 6px; }
body:has(.hb-admin-container):not(#_) .sidenav-menu .scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .28); border-radius: 99px;
}
body:has(.hb-admin-container):not(#_) .sidenav-menu .scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .45);
}
body:has(.hb-admin-container):not(#_) .sidenav-menu .scrollbar::-webkit-scrollbar-track { background: transparent; }

/* 5) modais (popups) no padrao novo — site e admin */
body:has(#hb-topnav.hb-home) .modal-content,
body:has(.hb-admin-container) .modal-content {
  background: #fff !important; border: 0 !important; border-radius: 16px !important;
  box-shadow: 0 18px 60px rgba(10, 30, 60, .25) !important;
}
body:has(#hb-topnav.hb-home) .modal-header,
body:has(.hb-admin-container) .modal-header {
  border-bottom: 1px solid #eef2f6 !important; background: transparent !important;
}
body:has(#hb-topnav.hb-home) .modal-header .modal-title,
body:has(.hb-admin-container) .modal-header .modal-title {
  color: #1e2b48 !important; font-weight: 800;
  position: relative; padding-left: 14px;
}
body:has(#hb-topnav.hb-home) .modal-header .modal-title::before,
body:has(.hb-admin-container) .modal-header .modal-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 18px; border-radius: 4px; background: #8dc63f;
}
body:has(#hb-topnav.hb-home) .modal-footer,
body:has(.hb-admin-container) .modal-footer { border-top: 1px solid #eef2f6 !important; }

/* 6) transicao suave entre paginas (navegadores que suportam) */
@view-transition { navigation: auto; }

/* ============================================================
   v8.8: responsividade da topbar em notebooks — compacta em
   degraus e mantem tudo visivel (sem cortar o Menu)
   ============================================================ */

/* ate ~1580px: itens e busca mais enxutos */
@media (max-width: 1580px) {
  nav#hb-topnav.hb-navmid .hb-nav-item { padding: 0 10px !important; font-size: 13px !important; gap: 7px !important; }
  nav#hb-topnav.hb-navmid .hb-nav-item i { font-size: 15px !important; }
  body:has(#hb-topnav.hb-home) .app-topbar .topbar-search { min-width: 160px !important; width: 160px !important; }
}

/* ate ~1420px: nav so texto (sem icones) e cargo do usuario oculto */
@media (max-width: 1420px) {
  nav#hb-topnav.hb-navmid .hb-nav-item i { display: none !important; }
  nav#hb-topnav.hb-navmid .hb-nav-item { padding: 0 9px !important; gap: 0 !important; }
  body:has(#hb-topnav.hb-home) .app-topbar .topbar-search { min-width: 130px !important; width: 130px !important; }
  body:has(#hb-topnav.hb-home) #hb-user .fs-xs { display: none !important; }
}

/* ate ~1240px: so o avatar no card do usuario (nome vai pro dropdown) */
@media (max-width: 1240px) {
  body:has(#hb-topnav.hb-home) #hb-user .d-lg-flex { display: none !important; }
  nav#hb-topnav.hb-navmid .hb-nav-item { font-size: 12.5px !important; }
}

/* v8.9: respiro entre a topbar do admin e o primeiro bloco (igual ao site) */
body:has(.hb-admin-container):not(#_) .content-page > .container-fluid { padding-top: 24px; }

/* v9.0: container do admin com padding IGUAL as margens da topbar (24px) —
   bordas esquerda/direita dos blocos batem com a barra por construcao */
body:has(.hb-admin-container):not(#_) .content-page > .container-fluid {
  padding-left: 24px !important; padding-right: 24px !important;
}

/* v9.1: topbar do admin alinhada com os blocos (rows do admin nao tem margem
   negativa, entao o conteudo fica a 36px — a barra acompanha) */
body:has(.hb-admin-container):not(#_) .app-topbar {
  margin: 12px 36px 0 calc(var(--theme-sidenav-width, 245px) + 36px) !important;
}
@media (max-width: 767.98px) {
  body:has(.hb-admin-container):not(#_) .app-topbar { margin: 10px 12px 0 !important; }
}

/* ============================================================
   v9.2: Álbum de Coleções (guia Coleções do hub Valores) —
   estilo álbum de figurinhas: o que falta fica apagado
   ============================================================ */
.hb-album {
  background: #fbfcfe; border: 1px solid #eef2f7; border-radius: 14px;
  padding: 14px 16px; margin-bottom: 14px;
}
.hb-album-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; margin-bottom: 8px;
}
.hb-album-title {
  color: #1e2b48; font-weight: 800;
  position: relative; padding-left: 14px;
}
.hb-album-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 18px; border-radius: 4px; background: #8dc63f;
}
.hb-album-count { font-weight: 800; color: #1e2b48; font-size: 15px; }
.hb-album-badge {
  background: linear-gradient(180deg, #ffd76a, #ffb62e); color: #6b4a00;
  border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 800;
}
.hb-album-bar {
  height: 8px; background: #edf1f6; border-radius: 99px; overflow: hidden;
  margin-bottom: 12px;
}
.hb-album-bar > span {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #8dc63f, #5cae23);
  transition: width .4s ease;
}
.hb-album-complete { box-shadow: 0 0 0 2px #ffc84a, 0 6px 20px rgba(255, 170, 30, .18); }
.hb-album-complete .hb-album-bar > span { background: linear-gradient(90deg, #ffd76a, #ff9d1b); }

.hb-album-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}
.hb-album-tile {
  position: relative; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; min-height: 118px;
  background: #fff; border: 1px dashed #dbe3ec; border-radius: 12px;
  padding: 12px 8px 10px; text-align: center; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hb-album-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(25, 50, 80, .12);
  border-style: solid;
}
.hb-album-tile img { max-height: 56px; width: auto; max-width: 90%; }
.hb-album-tile .nm {
  display: block; font-size: 11.5px; line-height: 1.25; color: #33415e;
  margin-top: 8px; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.hb-album-tile .qty {
  position: absolute; top: 6px; right: 6px;
  background: #1e8fd2; color: #fff; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; padding: 1px 8px;
}
/* faltando: apagado (a graça do álbum) */
.hb-album-tile.hb-miss { background: #f7f9fc; }
.hb-album-tile.hb-miss img { filter: grayscale(1); opacity: .32; }
.hb-album-tile.hb-miss .nm { color: #aeb9ca; }
.hb-album-tile.hb-miss:hover img { opacity: .55; }

.hb-album-login {
  background: #eaf5fd; border: 1px solid #cfe8f8; color: #1e6ea8;
  border-radius: 12px; padding: 12px 16px;
}
.hb-album-login:hover { background: #ddeffb; color: #155a8a; }

/* v9.3: editor rico do admin */
.hb-richeditor { background: #fff; }
.hb-richeditor-body:focus { outline: none; }
.hb-richeditor-body img { max-width: 100%; }
.hb-richeditor-body h2 { font-size: 24px; font-weight: 800; color: #1e2b48; }
.hb-richeditor-body h3 { font-size: 19px; font-weight: 700; color: #1e2b48; }


/* ============================================================
   v9.4: corpo dos posts — imagens/GIFs nunca estouram o card
   e abrem no lightbox ao clicar (cursor de lupa)
   ============================================================ */
.article-body img {
  max-width: 100% !important;
  height: auto;
  border-radius: 10px;
  cursor: zoom-in;
}
.article-body iframe { max-width: 100%; }
.article-body a img { cursor: pointer; }


/* ============================================================
   v9.5: prateleira do Álbum de Coleções — capas compactas por
   macro categoria; grid completo abre ao clicar na capa
   ============================================================ */
.hb-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hb-cat-chip {
  border: 1px solid #dbe3ec; background: #fff; color: #33415e;
  border-radius: 999px; padding: 5px 14px; font-size: 12.5px; font-weight: 700;
  transition: all .15s ease;
}
.hb-cat-chip:hover { border-color: #1e8fd2; color: #1e8fd2; }
.hb-cat-chip.active { background: #1e8fd2; border-color: #1e8fd2; color: #fff; }

.hb-album-cat {
  font-weight: 800; color: #1e2b48; font-size: 14px;
  margin: 4px 0 10px; position: relative; padding-left: 14px;
}
.hb-album-cat::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 16px; border-radius: 4px; background: #8dc63f;
}

.hb-albumcov-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 12px;
}
.hb-albumcov {
  display: flex; flex-direction: column; gap: 8px; text-align: left;
  background: #fbfcfe; border: 1px solid #eef2f7; border-radius: 14px;
  padding: 12px 14px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.hb-albumcov:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(25, 50, 80, .12);
  border-color: #1e8fd2;
}
.hb-albumcov-strip { display: flex; align-items: center; gap: 8px; min-height: 42px; }
.hb-albumcov-strip img { max-height: 38px; max-width: 38px; width: auto; }
.hb-albumcov-strip img.hb-dim { filter: grayscale(1); opacity: .3; }
.hb-albumcov-strip .more {
  background: #edf1f6; color: #6b7a99; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; padding: 2px 8px; margin-left: auto;
}
.hb-albumcov-name { font-weight: 800; color: #1e2b48; font-size: 13.5px; line-height: 1.3; }
.hb-albumcov-count { font-size: 12px; font-weight: 800; color: #33415e; }


/* ============================================================
   v9.6: dashboard analitico do admin
   ============================================================ */
.hb-dash-bars {
  display: flex; align-items: flex-end; gap: 6px;
  height: 150px; padding-top: 4px;
}
.hb-dash-bar {
  flex: 1; min-width: 0; height: 100%;
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; gap: 4px;
}
.hb-dash-bar .bar {
  display: block; width: 100%; max-width: 36px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #38b9f2, #1e8fd2);
  transition: height .3s ease;
}
.hb-dash-bar.today .bar { background: linear-gradient(180deg, #a5d867, #5cae23); }
.hb-dash-bar .lbl { font-size: 10px; color: #8a97ad; white-space: nowrap; }
.hb-dash-bar .val { font-size: 10.5px; font-weight: 800; color: #33415e; min-height: 14px; }

.hb-dash-list { display: flex; flex-direction: column; gap: 10px; }
.hb-dash-row { display: flex; align-items: center; gap: 10px; color: #33415e; min-width: 0; }
a.hb-dash-row:hover .text-truncate { color: #1e8fd2; }
.hb-dash-row .rank {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px;
  background: #edf1f6; color: #6b7a99; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.hb-dash-row .num { flex-shrink: 0; font-size: 12px; font-weight: 700; color: #6b7a99; }
.hb-dash-ava {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: #eef3f8; overflow: hidden; display: inline-flex;
  align-items: flex-start; justify-content: center;
}
.hb-dash-ava img { width: 55px; margin-top: -12px; }

.hb-dash-sec .track {
  height: 7px; background: #edf1f6; border-radius: 99px; overflow: hidden; margin-top: 3px;
}
.hb-dash-sec .track > span {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #38b9f2, #1e8fd2);
}

.hb-dash-mods {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px;
}
.hb-dash-mod {
  display: flex; align-items: center; gap: 10px;
  background: #fbfcfe; border: 1px solid #eef2f7; border-radius: 12px;
  padding: 10px 12px; color: #1e2b48;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.hb-dash-mod:hover {
  transform: translateY(-2px); border-color: #1e8fd2; color: #1e2b48;
  box-shadow: 0 6px 14px rgba(25, 50, 80, .10);
}
.hb-dash-mod .ic {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 19px;
}
.hb-dash-mod strong { font-size: 15px; line-height: 1.1; }


/* ============================================================
   v9.7: dropdown da busca global (caixa vive no <body>)
   ============================================================ */
.hb-search-drop {
  z-index: 1080; background: #fff; border: 1px solid #e3e9f1; border-radius: 14px;
  box-shadow: 0 14px 40px rgba(20, 40, 70, .18); padding: 6px;
  max-height: 70vh; overflow-y: auto;
}
.hb-search-cat {
  text-transform: uppercase; font-size: 10.5px; font-weight: 800;
  color: #8a97ad; padding: 8px 10px 4px; letter-spacing: .4px;
}
.hb-search-hit {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  border-radius: 10px; text-decoration: none; color: #1e2b48;
}
.hb-search-hit:hover { background: #eef5fb; color: #1e8fd2; }
.hb-search-hit .ic {
  width: 34px; height: 34px; display: inline-flex; align-items: center;
  justify-content: center; flex-shrink: 0; color: #8a97ad;
}
.hb-search-hit .ic img { max-width: 32px; max-height: 32px; }
.hb-search-hit .tx { display: flex; flex-direction: column; overflow: hidden; }
.hb-search-hit .tx .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 13.5px; }
.hb-search-hit .tx .s { color: #8a97ad; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-search-all {
  display: block; text-align: center; padding: 9px; font-size: 13px; font-weight: 700;
  color: #1e8fd2; text-decoration: none; border-top: 1px solid #eef2f7; margin-top: 4px;
}
.hb-search-all:hover { color: #155a8a; }
.hb-search-empty { color: #8a97ad; text-align: center; padding: 14px; font-size: 13px; }


/* ============================================================
   v9.8: ficha do raro com identidade própria — hero de valor
   azul + ficha técnica em linhas (fim do grid pontilhado)
   ============================================================ */
.hb-rare-imgbox {
  background: #fff; /* neutro: nada de tom por cima do grid — nao tinge os mobis */
  border: 1px solid #e3ecf5; border-radius: 16px;
}
.hb-trend {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 12px; border-radius: 999px; padding: 4px 12px;
}
.hb-trend-up { background: #e5f6e0; color: #3e8914; }
.hb-trend-down { background: #fde8e8; color: #c92a2a; }
.hb-trend-stable { background: #edf1f6; color: #5b6b85; }

.hb-rare-hero {
  background: linear-gradient(135deg, #eaf5fd, #d8edfb);
  border: 1px solid #cfe8f8; border-radius: 16px; padding: 16px 20px;
}
.hb-rare-hero .lbl {
  text-transform: uppercase; font-size: 11px; font-weight: 800;
  letter-spacing: .6px; color: #5b7ba0;
}
.hb-rare-hero .val { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.hb-rare-hero .val img { height: 30px; width: auto; }
.hb-rare-hero .num { font-size: 34px; font-weight: 800; color: #1e2b48; line-height: 1.1; }
.hb-rare-hero .cur { font-size: 14px; font-weight: 700; color: #5b7ba0; align-self: flex-end; padding-bottom: 5px; }
.hb-rare-hero .sub { font-size: 12.5px; color: #6b7a99; margin-top: 4px; }

.hb-rare-specs { border: 1px solid #eef2f7; border-radius: 14px; overflow: hidden; background: #fbfcfe; }
.hb-rare-spec { display: flex; align-items: center; gap: 12px; padding: 11px 16px; }
.hb-rare-spec + .hb-rare-spec { border-top: 1px solid #f1f4f9; }
.hb-rare-spec .ic {
  width: 30px; height: 30px; border-radius: 9px; background: #eef4fa;
  display: inline-flex; align-items: center; justify-content: center;
  color: #1e8fd2; flex-shrink: 0;
}
.hb-rare-spec .k { color: #6b7a99; font-size: 13px; font-weight: 600; }
.hb-rare-spec .v { margin-left: auto; font-weight: 800; color: #1e2b48; font-size: 13.5px; text-align: right; }


/* ============================================================
   v9.9: parte de baixo da pagina do raro no padrao novo
   ============================================================ */
.hb-rare-histrow {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid #eef2f7; border-radius: 12px;
  padding: 10px 14px; background: #fbfcfe;
}
.hb-rare-histrow + .hb-rare-histrow { margin-top: 8px; }
.hb-rare-histrow .arr {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}
.hb-rare-histrow .arr.up { background: #e5f6e0; color: #3e8914; }
.hb-rare-histrow .arr.down { background: #fde8e8; color: #c92a2a; }
.hb-empty-note {
  background: #eaf5fd; border: 1px solid #cfe8f8; color: #1e6ea8;
  border-radius: 12px; padding: 12px 16px; font-size: 13px;
}


/* v9.10: grid de guias */
.hb-clamp2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.hb-guide-card { transition: transform .15s ease, box-shadow .15s ease; }
.hb-guide-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(25, 50, 80, .14); }


/* ============================================================
   v9.11: admin com sidebar CONDENSADA — o toggle desktop usa a classe
   html.hb-condensed (sidenav.js; o atributo data-sidenav-size e do React)
   ============================================================ */
body.hb-condensed:has(.hb-admin-container):not(#_) .app-topbar {
  margin: 12px 36px 0 calc(var(--theme-sidenav-width-sm, 75px) + 36px) !important;
}
body.hb-condensed:has(.hb-admin-container):not(#_) .sidenav-menu {
  width: var(--theme-sidenav-width-sm, 75px) !important;
}
body.hb-condensed:has(.hb-admin-container):not(#_) .content-page {
  margin-inline-start: var(--theme-sidenav-width-sm, 75px) !important;
}
body.hb-condensed:has(.hb-admin-container):not(#_) .sidenav-menu .logo { display: none !important; }


/* v9.11b: mesmas garantias para o caminho via atributo do tema
   (algum toggle seta data-sidenav-size=condensed em vez da classe) */
html[data-sidenav-size="condensed"] body:has(.hb-admin-container):not(#_) .app-topbar {
  margin: 12px 36px 0 calc(var(--theme-sidenav-width-sm, 75px) + 36px) !important;
}
html[data-sidenav-size="condensed"] body:has(.hb-admin-container):not(#_) .sidenav-menu {
  width: var(--theme-sidenav-width-sm, 75px) !important;
  position: fixed !important;
}
html[data-sidenav-size="condensed"] body:has(.hb-admin-container):not(#_) .content-page {
  margin-inline-start: var(--theme-sidenav-width-sm, 75px) !important;
}
html[data-sidenav-size="condensed"] body:has(.hb-admin-container):not(#_) .sidenav-menu .logo { display: none !important; }
html[data-sidenav-size="condensed"] body:has(.hb-admin-container):not(#_) .side-nav .menu-text,
html[data-sidenav-size="condensed"] body:has(.hb-admin-container):not(#_) .side-nav .side-nav-title,
html[data-sidenav-size="condensed"] body:has(.hb-admin-container):not(#_) .side-nav .badge,
body.hb-condensed:has(.hb-admin-container):not(#_) .side-nav .menu-text,
body.hb-condensed:has(.hb-admin-container):not(#_) .side-nav .side-nav-title,
body.hb-condensed:has(.hb-admin-container):not(#_) .side-nav .badge { display: none !important; }
body.hb-condensed:has(.hb-admin-container):not(#_) .sidenav-menu { position: fixed !important; }




/* ============================================================
   v9.12: rodapé alinhado ao conteúdo — termina onde os cards
   terminam, em vez de percorrer a página inteira
   ============================================================ */
body:has(#hb-topnav) .footer > .container-fluid {
  max-width: 980px; /* bem mais recolhido: a frase longa quebra em ~3 linhas e o Feito por Race vem pro meio */
  margin-inline: auto;
}
/* frase da Sulake justificada: cada linha cheia termina exatamente onde o
   "Feito com ❤ por Race" termina (borda direita do container) */
body:has(#hb-topnav) .footer .col-md-12 {
  text-align: justify !important;
}
body:has(.hb-admin-container):not(#_) .footer > .container-fluid {
  max-width: 1520px;
  margin-inline: auto;
}
