/* Projeto X V44 — hardening final para lançamento */
html,body{max-width:100%;overflow-x:hidden}
body.public-v33,body.public-v33 *,body.auth-v39,body.auth-v39 *{box-sizing:border-box}
body.public-v33 img,body.auth-v39 img{max-width:100%}

/* Estrutura pública consistente */
body.public-v33 .market-page{width:100%;min-width:0;overflow-x:hidden}
body.public-v33 .px27-home,
body.public-v33 .content-shell,
body.public-v33 .account-shell,
body.public-v33 .asset-showcase-page,
body.public-v33 .creator-public-page,
body.public-v33 .px26-pack-shell,
body.public-v33 .px41-checkout-shell{width:min(1480px,calc(100% - 32px));max-width:1480px;margin-left:auto;margin-right:auto;min-width:0}
body.public-v33 .px28-discovery,
body.public-v33 .px27-category-rail,
body.public-v33 .px27-library,
body.public-v33 .px27-showcase,
body.public-v33 .px27-creators,
body.public-v33 .px27-seo,
body.public-v33 .px27-premium,
body.public-v33 .form-card,
body.public-v33 .content-card,
body.public-v33 .panel-card{max-width:100%;min-width:0}

/* Textos nunca atravessam caixas */
body.public-v33 h1,body.public-v33 h2,body.public-v33 h3,body.public-v33 h4,
body.public-v33 p,body.public-v33 span,body.public-v33 small,body.public-v33 strong,
body.public-v33 a,body.public-v33 td,body.public-v33 th,
body.auth-v39 h1,body.auth-v39 h2,body.auth-v39 h3,body.auth-v39 p{overflow-wrap:anywhere}
body.public-v33 input,body.public-v33 select,body.public-v33 textarea,body.public-v33 button{max-width:100%}

/* Cabeçalho */
body.public-v33 .market-header-inner{max-width:1480px;min-width:0}
body.public-v33 .market-brand,body.public-v33 .market-nav,body.public-v33 .header-search,body.public-v33 .header-actions{min-width:0}
body.public-v33 .header-search{flex:1 1 360px;max-width:540px}
body.public-v33 .header-actions{flex:0 0 auto}

/* Destaques da home sempre cheios */
body.public-v33 .px28-now-grid{min-width:0;overflow:hidden}
body.public-v33 .px28-now-card{min-width:0;overflow:hidden}
body.public-v33 .px28-now-card>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center!important}
body.public-v33 .px28-now-card>span{max-width:calc(100% - 24px)}

/* Biblioteca e cards */
body.public-v33 .px27-library-heading,body.public-v33 .px27-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap;min-width:0}
body.public-v33 .px27-library-heading>div,body.public-v33 .px27-section-head>div{min-width:0}
body.public-v33 .px27-library-toolbar{width:100%;max-width:100%;min-width:0}
body.public-v33 .px27-tabs{min-width:0}
body.public-v33 .px27-library-search{max-width:100%}
body.public-v33 .asset-grid,body.public-v33 .px27-asset-grid{align-items:start}
body.public-v33 .asset-card,body.public-v33 .asset-cover-wrap,body.public-v33 .asset-body{min-width:0;max-width:100%}
body.public-v33 .asset-cover{width:100%}
body.public-v33 .asset-cover>img{width:100%!important;height:100%!important;object-fit:cover!important}
body.public-v33 .asset-body h3{max-width:100%;overflow:hidden}
body.public-v33 .asset-card-meta{min-width:0;flex-wrap:wrap}
body.public-v33 .asset-author{min-width:0;max-width:100%}
body.public-v33 .asset-author>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Paginação corrigida */
body.public-v33 .market-pagination{
  width:100%!important;max-width:100%!important;margin:42px auto 8px!important;padding:4px 0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;flex-wrap:wrap!important;
  overflow:visible!important
}
body.public-v33 .market-pagination a,
body.public-v33 .market-pagination span{
  flex:0 0 auto!important;min-width:40px!important;width:auto!important;height:40px!important;padding:0 12px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border-radius:10px!important;border:1px solid #263140!important;background:#10161e!important;color:#d7dee8!important;
  font-size:12px!important;line-height:1!important;font-weight:800!important;white-space:nowrap!important;overflow:visible!important
}
body.public-v33 .market-pagination a.active{
  min-width:40px!important;background:#27c6a2!important;border-color:#27c6a2!important;color:#07110f!important;box-shadow:0 0 0 3px rgba(39,198,162,.12)!important
}
body.public-v33 .market-pagination .pagination-arrow{min-width:82px!important;padding:0 14px!important}
body.public-v33 .market-pagination .disabled{opacity:.35!important;pointer-events:none!important}
body.public-v33 .market-pagination span{border-color:transparent!important;background:transparent!important;color:#7d8796!important;padding:0 3px!important;min-width:22px!important}

/* Tabelas e áreas de conta */
body.public-v33 .table-responsive,body.public-v33 .table-wrap{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
body.public-v33 table{max-width:100%}

/* Pack / checkout / contribuidor */
body.public-v33 .px26-pack-shell>*,body.public-v33 .px41-checkout-shell>*,body.public-v33 .creator-dashboard-v41>*{min-width:0}
body.public-v33 .px41-payment-methods,body.public-v33 .px41-checkout-grid,body.public-v33 .creator-kpis-v41,body.public-v33 .creator-hero-grid-v41{max-width:100%}

/* Footer */
body.public-v33 .market-footer{max-width:100%;overflow:hidden}
body.public-v33 .market-footer-grid,body.public-v33 .market-footer-bottom{min-width:0;max-width:100%}
body.public-v33 .footer-links-area{min-width:0}

/* Suporte IA não invade controles */
body.public-v33 .px31-ai-support{right:14px!important;bottom:14px!important}
body.public-v33 .px31-ai-launch{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
body.public-v33 .px31-ai-launch img{width:44px!important;height:44px!important;object-fit:cover!important;border-radius:50%!important}

/* Autenticação */
body.auth-v39 .px39-auth-shell{max-width:100%;min-width:0;overflow:hidden}
body.auth-v39 .px39-auth-showcase,body.auth-v39 .px39-auth-form{min-width:0;max-width:100%}
body.auth-v39 .px39-auth-gallery>*{min-width:0}

@media(max-width:1000px){
 body.public-v33 .px27-home,body.public-v33 .content-shell,body.public-v33 .account-shell,body.public-v33 .asset-showcase-page,body.public-v33 .creator-public-page,body.public-v33 .px26-pack-shell,body.public-v33 .px41-checkout-shell{width:min(100% - 24px,1480px)}
 body.public-v33 .header-search{flex-basis:260px}
}
@media(max-width:760px){
 body.public-v33 .market-pagination{gap:6px!important;margin-top:30px!important}
 body.public-v33 .market-pagination a,body.public-v33 .market-pagination span{min-width:36px!important;height:36px!important;padding:0 9px!important;font-size:11px!important}
 body.public-v33 .market-pagination .pagination-arrow{display:inline-flex!important;min-width:68px!important;padding:0 10px!important}
 body.public-v33 .px27-library-heading,body.public-v33 .px27-section-head{align-items:flex-start;flex-direction:column}
}
@media(max-width:480px){
 body.public-v33 .px27-home,body.public-v33 .content-shell,body.public-v33 .account-shell,body.public-v33 .asset-showcase-page,body.public-v33 .creator-public-page,body.public-v33 .px26-pack-shell,body.public-v33 .px41-checkout-shell{width:calc(100% - 16px)}
 body.public-v33 .market-pagination{justify-content:flex-start!important;flex-wrap:nowrap!important;overflow-x:auto!important;padding:4px 2px 8px!important;scrollbar-width:none}
 body.public-v33 .market-pagination::-webkit-scrollbar{display:none}
 body.public-v33 .market-pagination a,body.public-v33 .market-pagination span{flex:0 0 auto!important}
}
