/* V37 Release Visual QA — ajustes finais seguros */
:root{
  --v37-gold:#f5a400;
  --v37-gold-soft:#ffe3a1;
  --v37-panel:rgba(5,10,14,.72);
  --v37-border:rgba(219,173,75,.28);
}

/* Menu global: evita quebra em notebook e mantém tudo em uma linha */
html body .nav{
  min-height:78px!important;
  overflow:visible!important;
}
html body .nav .content-area{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:nowrap!important;
  gap:clamp(12px,1.25vw,26px)!important;
  max-width:1500px!important;
  width:100%!important;
  padding-inline:clamp(18px,3vw,42px)!important;
}
html body .nav__logo{
  flex:0 0 auto!important;
  width:92px!important;
  min-width:92px!important;
  height:54px!important;
  margin:0!important;
}
html body .nav__logo img{
  max-width:82px!important;
  width:82px!important;
  height:auto!important;
  object-fit:contain!important;
  image-rendering:auto!important;
  filter:drop-shadow(0 0 12px rgba(158,84,255,.42))!important;
}
html body .nav__links{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:nowrap!important;
  gap:clamp(16px,2vw,34px)!important;
  flex:1 1 auto!important;
  min-width:0!important;
}
html body .nav__links-item{
  flex:0 0 auto!important;
  white-space:nowrap!important;
  margin:0!important;
}
html body .nav__links-item a{
  white-space:nowrap!important;
  font-size:clamp(12px,.86vw,15px)!important;
  letter-spacing:.14em!important;
}
html body .nav__langs,
html body .nav-login-btn,
html body .nav .button{
  flex:0 0 auto!important;
  white-space:nowrap!important;
}
html body .nav .button{
  min-width:124px!important;
  height:44px!important;
  padding-inline:22px!important;
}
html body .nav-login-btn{min-width:126px!important;}

/* Estado ativo/hover do menu sem poluição */
html body .nav__links-item:after,
html body .nav__links-item:before{pointer-events:none!important;}
html body .nav__links-item.active a,
html body .nav__links-item:hover a{color:#ffe18a!important;text-shadow:0 0 14px rgba(245,164,0,.28)!important;}

/* Botões flutuantes: não cobrem conteúdo e ficam consistentes */
html body .back-to-top,
html body .v23-back-to-top,
html body [data-back-to-top]{
  right:28px!important;
  bottom:126px!important;
  z-index:90!important;
}
html body .floating-discord,
html body .v24-floating-discord,
html body .float-discord{
  right:28px!important;
  bottom:52px!important;
  z-index:89!important;
}
html body .server-float,
html body .old-float,
html body .cursor-dot,
html body .cursor-ring{display:none!important;}

/* Home: garante que CTA da hero não corte */
html body .header-main{overflow:hidden!important;}
html body .header__box.roi-hero-art-wrap{padding-bottom:clamp(86px,10vh,128px)!important;}
html body .roi-hero-art .button.big,
html body .roi-hero-art__brand .button.big{
  margin-top:22px!important;
  margin-bottom:18px!important;
  min-height:54px!important;
  line-height:1.05!important;
  overflow:visible!important;
}

/* Seções gerais: pequenos refinamentos de espaçamento */
html body .pro-section{scroll-margin-top:24px!important;}
html body .pro-card,
html body .pro-event-card,
html body .pro-news-card{will-change:transform;}

/* Download, notícias, eventos e loja: melhor leitura em notebooks */
html body .content-area{max-width:1440px!important;}
html body .pro-title{line-height:1.05!important;}
html body .pro-subtitle{line-height:1.7!important;}

/* Ranking: integração com o fundo sem caixa pesada */
html body .ranking-game-page,
html body .ranking-direct-page{background-color:#050a0f!important;}
html body .ranking-game-shell,
html body .ranking-v28-shell{
  width:min(1420px,calc(100% - 56px))!important;
  margin-inline:auto!important;
}
html body .ranking-game-window,
html body .ranking-direct-wrap{
  box-shadow:0 26px 80px rgba(0,0,0,.42)!important;
}

/* Account panel: QA visual final */
html body .account-site-header .nav .content-area{
  justify-content:center!important;
}
html body .dk-panel-v27,
html body .dk-panel-v29{
  min-height:calc(100vh - 80px)!important;
  padding:34px clamp(18px,3vw,42px) 90px!important;
  gap:24px!important;
}
html body .dk-panel-sidebar{
  flex:0 0 292px!important;
  max-width:292px!important;
  border:1px solid rgba(213,170,68,.25)!important;
  background:linear-gradient(180deg,rgba(5,10,14,.88),rgba(3,7,11,.94))!important;
  box-shadow:0 24px 70px rgba(0,0,0,.46)!important;
}
html body .dk-sidebar-profile{
  padding:26px 22px 22px!important;
}
html body .dk-sidebar-nav{
  padding:0 18px 18px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:9px!important;
}
html body .dk-sidebar-nav button,
html body .dk-sidebar-footer a{
  min-height:46px!important;
  border-radius:0!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  letter-spacing:.12em!important;
}
html body .dk-sidebar-nav button.active{
  background:linear-gradient(90deg,rgba(230,174,56,.20),rgba(8,18,24,.62))!important;
  border-color:rgba(244,178,58,.66)!important;
  color:#ffe9aa!important;
}
html body .dk-panel-main{
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:1280px!important;
}
html body .dk-player-hero{
  display:grid!important;
  grid-template-columns:1fr auto!important;
  align-items:center!important;
  gap:22px!important;
  padding:28px clamp(22px,2.5vw,34px)!important;
  border:1px solid rgba(213,170,68,.27)!important;
  background:linear-gradient(90deg,rgba(10,18,24,.76),rgba(6,12,18,.64)),var(--panel-hero-bg,none)!important;
}
html body .dk-player-id{
  display:flex!important;
  align-items:center!important;
  gap:20px!important;
  min-width:0!important;
}
html body .dk-player-avatar-xl{
  flex:0 0 78px!important;
  width:78px!important;
  height:78px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#e6b335,#785117)!important;
  color:#181008!important;
  font-size:38px!important;
  font-weight:900!important;
}
html body .dk-player-id h1{
  font-size:clamp(30px,3vw,48px)!important;
  line-height:1!important;
  letter-spacing:.09em!important;
  margin:4px 0 8px!important;
  white-space:normal!important;
}
html body .dk-player-id p{line-height:1.55!important;}
html body .dk-player-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:12px!important;
  flex-wrap:wrap!important;
}
html body .dk-panel-tabs{
  display:none!important;
}
html body .dk-panel-title,
html body .panel-title{
  line-height:1!important;
  margin-top:26px!important;
  margin-bottom:10px!important;
  letter-spacing:.14em!important;
}
html body .dk-overview-grid,
html body .dk-stat-grid,
html body .stats-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
}
html body .dk-stat-card,
html body .stat-card,
html body .dk-dashboard-card{
  min-height:138px!important;
  padding:22px!important;
  background:linear-gradient(135deg,rgba(8,17,24,.82),rgba(3,8,12,.92))!important;
  border:1px solid rgba(213,170,68,.20)!important;
  box-shadow:0 16px 44px rgba(0,0,0,.30)!important;
}
html body .dk-tab-panel,
html body .tab-panel{animation:none!important;}
html body .dk-section-card,
html body .dk-card{
  background:linear-gradient(135deg,rgba(8,17,24,.80),rgba(3,8,12,.92))!important;
  border-color:rgba(213,170,68,.22)!important;
}
html body input,
html body select,
html body textarea{
  color:#f5f0e6!important;
  border-color:rgba(213,170,68,.22)!important;
}
html body input:focus,
html body select:focus,
html body textarea:focus{
  border-color:rgba(245,164,0,.58)!important;
  box-shadow:0 0 0 3px rgba(245,164,0,.10)!important;
}

/* Evita conteúdo atrás dos flutuantes */
html body main,
html body .wrapper{padding-bottom:0;}
html body .footer{padding-bottom:86px!important;}

/* Notebook */
@media (max-width:1360px){
  html body .nav .content-area{gap:14px!important;padding-inline:22px!important;}
  html body .nav__links{gap:22px!important;}
  html body .nav .button{min-width:112px!important;padding-inline:16px!important;}
  html body .nav__logo{width:80px!important;min-width:80px!important;}
  html body .nav__logo img{width:72px!important;}
  html body .dk-panel-v27,html body .dk-panel-v29{gap:18px!important;padding-inline:18px!important;}
  html body .dk-panel-sidebar{flex-basis:270px!important;max-width:270px!important;}
  html body .dk-overview-grid,html body .dk-stat-grid,html body .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (max-width:1180px){
  html body .nav__links{gap:16px!important;}
  html body .nav__links-item a{font-size:12px!important;letter-spacing:.10em!important;}
  html body .nav .button{min-width:104px!important;height:40px!important;}
  html body .nav__langs-current-name{font-size:13px!important;}
}

/* Tablet / mobile */
@media (max-width:991px){
  html body .nav{min-height:72px!important;}
  html body .nav .content-area{justify-content:space-between!important;}
  html body .nav__links,
  html body .nav__langs,
  html body .nav-login-btn,
  html body .nav .button{display:none!important;}
  html body .nav__open-links{display:flex!important;}
  html body .dk-panel-v27,html body .dk-panel-v29{display:block!important;padding:24px 16px 84px!important;}
  html body .dk-panel-sidebar{max-width:320px!important;}
  html body .dk-panel-main{max-width:100%!important;}
  html body .dk-player-hero{grid-template-columns:1fr!important;}
  html body .dk-player-actions{justify-content:flex-start!important;}
  html body .dk-overview-grid,html body .dk-stat-grid,html body .stats-grid{grid-template-columns:1fr!important;}
  html body .back-to-top,html body .v23-back-to-top,html body [data-back-to-top]{right:18px!important;bottom:118px!important;}
  html body .floating-discord,html body .v24-floating-discord,html body .float-discord{right:18px!important;bottom:46px!important;}
}
@media (max-width:640px){
  html body .dk-player-id{align-items:flex-start!important;gap:14px!important;}
  html body .dk-player-avatar-xl{width:58px!important;height:58px!important;flex-basis:58px!important;font-size:28px!important;}
  html body .dk-player-id h1{font-size:28px!important;letter-spacing:.05em!important;}
  html body .dk-player-actions .button,
  html body .dk-player-actions a,
  html body .dk-player-actions button{width:100%!important;justify-content:center!important;}
  html body .ranking-game-shell,html body .ranking-v28-shell{width:calc(100% - 24px)!important;}
}
