/* ==========================================================
   RESPONSIVE MOBILE – PAINEL PROFISSIONAL
   Não altera o desktop | Mobile-first real
   ========================================================== */

/* Dispositivos médios (tablets) */
@media (max-width: 1024px) {

    /* RESET TRAVAS */
    html,
    body {
        min-width: 0 !important;
        overflow-x: hidden;
        width: 100%;
       
    }

    body {
        
        background-size: cover;
        background-position: center;
        
                background: url('../../imgs/bc.png') no-repeat center top;
                background-color: #0e0701;
                color: #000;
            
    }

    /* SECTION / CONTAINER */
    section {
        width: 95% !important;
        min-width: 0 !important;
        margin: 0 auto 20px !important;
        padding: 15px !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    }

    section.login {
        width: 90% !important;
        max-width: 500px;
    }

    .grayBg {
        background-image: none !important;
        border-radius: 10px !important;
        margin-top: -50px;
        
        
    }

    /* HEADER AUX */
    .langs {
        position: relative !important;
        width: 100% !important;
        max-width: 300px;
        margin: 25px auto 15px !important;
        padding: 0px 0 0 0 !important;

        border-radius: 8px;
        display: flex;
        justify-content: center;
        height: auto !important;
                background: none;
    }

    .langs a {
    margin: -44px auto 10px !important;
        width: 40px !important;
        height: 25px !important;
        background-color: 0;
    }

    .loggedAs {
                position: relative !important;
                    top: -40px !important;
               
                    width: 100% !important;
                    max-width: 300px;
                    height: 110px;
                    margin: 0 auto 15px !important;
                    background: transparent !important;
                    border-radius: 8px;
    }

    .loggedAs>div {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(5px);
    }

   .fa-user:before {
                font-size: 100px;
                content: "\f007";
                text-align: center;
                margin-left: -23px;
                }

    /* LAYOUT */
    aside,
    article {
        float: none !important;
        width: 100% !important;
        padding: 0 !important;
    }

    aside {
        background: #f5f5f5;
        margin-bottom: 20px;
        border-radius: 8px;
        overflow: hidden;
    }

    article {
        min-height: 300px !important;
        padding: 15px !important;
        background: #fff;
        border-radius: 8px;
    }

    /* =========================
     MENU MOBILE PROFISSIONAL
     ========================= */

    .mobile-menu-btn {
        display: block !important;
        background: #5e5e5e;
        color: #fff;
        padding: 15px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        text-align: leftt;
        border: none;
        width: 100%;
        transition: background-color 0.3s;
      
    }


    .mobile-menu-btn:hover {
        background: #4a4a4a;
    }

    .mobile-menu-btn:after {
        content: '▼';
        float: right;
        transition: transform 0.3s;
    }

    .mobile-menu-btn.active:after {
        transform: rotate(180deg);
    }

    nav {
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    nav.mobile-open {
        display: block;
        max-height: 1000px;
    }

    nav>* {
        height: auto !important;
        line-height: 1.4 !important;
        padding: 12px 15px !important;
        font-size: 14px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    nav>*:last-child {
        border-bottom: none;
    }

    nav>*.actived {
        background-image: none !important;
        background-color: #4a4a4a !important;
    }

    nav .dropdown {
        padding-left: 15px !important;
        background: rgba(255, 255, 255, 0.1);
        margin: 5px 0;
        border-radius: 5px;
    }

    nav .dropdown a {
        padding: 10px 15px !important;
        font-size: 13px !important;
        border-left: 2px solid rgba(255, 255, 255, 0.3);
        margin: 2px 0;
    }

    /* =========================
     FORMULÁRIOS
     ========================= */

    .formpadrao {
                width: 95% !important;
                    max-width: 100% !important;
                    margin: 10px -7px !important;
                    padding: 0px !important;
    }

    .formpadrao>div {
        display: flex !important;
        flex-wrap: wrap;
        width: 100% !important;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 5px;
        padding: 5px;
    }

    .formpadrao .desc {
        width: 100% !important;
        text-align: left !important;
        padding: 8px 10px 4px !important;
        height: auto !important;
        line-height: 1.4 !important;
        color: #fff;
        font-weight: bold;
    }

    .formpadrao .camp {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 10px 10px !important;
    }

    .formpadrao input[type="text"],
    .formpadrao input[type="password"],
    .formpadrao input[type="file"],
    .formpadrao select,
    .formpadrao textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
        margin: 0 !important;
        padding: 8px 10px !important;
        border-radius: 4px;
    }

    .formpadrao textarea {
        height: 150px !important;
    }

    /* Saldo Mobile */
    .saldo {
        padding: 15px;
        background: #fff;
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .saldo>div {
        padding: 15px;
    }

    .saldo>div .bts {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .saldo>div a.default {
        width: 45% !important;
        margin: 0 !important;
    }

    /* =========================
     BOXES / COLUNAS
     ========================= */

    .twoBox .box {
        width: 100% !important;
        float: none !important;
        margin: 0 0 20px 0 !important;
        display: block !important;
    }

    .box h1 {
        font-size: 16px !important;
        padding: 0 15px !important;
        height: 40px !important;
        line-height: 40px !important;
    }

    /* =========================
     TABELAS
     ========================= */

    table.default {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        margin: 15px 0;
    }

    table.default th,
    table.default td {
        min-width: 100px;
        font-size: 12px !important;
        padding: 8px !important;
    }

    /* =========================
     MULTI-SELEÇÃO
     ========================= */

    .mult .selec {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        padding: 10px;
    }

    .mult .selec>* {
        width: 60px !important;
        height: 60px !important;
        padding: 5px !important;
        margin: 0 !important;
    }

    .mult .selec>div>img {
        width: 60px !important;
        height: 60px !important;
    }

    .mult .lines {
        width: 100% !important;
        margin: 10px 0 !important;
        padding: 0 !important;
    }

    .mult .charSelectedTxt,
    .service {
        width: 100% !important;
        margin: 15px 0 !important;
        padding: 15px !important;
    }

    /* =========================
     SHOP / PACKS
     ========================= */

    .shopPacks {
        padding: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .shopPacks>a {
        width: calc(50% - 10px) !important;
        margin: 5px !important;
        height: 150px;
        min-height: 150px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
    }

    .shopPacks>a>div {
        width: 100% !important;
        height: auto !important;
        padding: 10px 5px !important;
        position: relative !important;
    }

    .shopItemList {
        padding: 15px !important;
    }

    .shopItemList .packImg {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        margin: 0 auto 15px !important;
        display: block;
    }

    /* =========================
     GALERIA
     ========================= */

    .fullGallery {
        padding: 10px !important;
    }

    .fullGallery>div {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100% !important;
        margin: 0 !important;
    }

    .fullGallery a {
        width: calc(33.333% - 10px) !important;
        height: auto !important;
        margin: 0 !important;
        padding: 5px;
    }

    .fullGallery a img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1/1;
        object-fit: cover;
    }

    .fullGallery a div,
    .fullGallery a mark {
        display: none;
    }

    /* =========================
     PAGINAÇÃO
     ========================= */

    .paginate {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        margin: 20px auto;
    }

    .paginate a {
        padding: 8px 12px !important;
        margin: 0 !important;
    }

    /* =========================
     BREADCRUMB
     ========================= */

    ul.breadcrumb {
        padding: 10px !important;
        font-size: 12px;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    ul.breadcrumb li {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* =========================
     TÍTULOS
     ========================= */

    h1 {
        font-size: 18px !important;
        margin: 0 0 15px 0 !important;
        text-align: center;
    }

    h2 {
        font-size: 16px !important;
        margin: 0 0 12px 0 !important;
    }

    /* =========================
     FOOTER
     ========================= */

    footer {
        width: 100% !important;
        padding: 20px 15px !important;
        font-size: 12px !important;
        text-align: center;
        margin: 0 !important;
    }

    footer a.atualstudio {
        position: static !important;
        display: block !important;
        margin: 15px auto 0 !important;
        width: 100px !important;
        height: 15px !important;
    }

    /* =========================
     BOTÕES RESPONSIVOS
     ========================= */

    a.default,
    span.default,
    input.default {
        width: 100% !important;
        max-width: 280px;
        margin: 5px auto !important;
        padding: 10px 15px !important;
        font-size: 14px !important;
    }

    a.default.big,
    span.default.big,
    input.default.big {
        min-width: 0 !important;
        padding: 12px 20px !important;
    }

    /* =========================
     MENSAGENS DE ALERTA
     ========================= */

    #alerta {
        width: 90% !important;
        max-width: 400px;
        padding: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 20px;
    }

    /* =========================
     CASTLES DISPLAY
     ========================= */

    .castled {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    .castled .imgc {
        width: 140px !important;
        height: 80px !important;
    }

    .castled .imgc span {
        width: 140px !important;
        height: 80px !important;
        background-size: cover !important;
    }

    /* =========================
     RULES BOX
     ========================= */

    .rulesbox {
        height: 200px !important;
        padding: 15px !important;
    }

    /* =========================
     HORIZONTAL MENU
     ========================= */

    .horMenu {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
        margin: 15px auto;
    }

    .horMenu a {
        padding: 8px 12px !important;
        margin: 0 !important;
        font-size: 11px !important;
    }
}

/* Dispositivos pequenos (celulares) */
@media (max-width: 768px) {

    body {
        
    }

    section {
        width: 100% !important;
        padding: 0px !important;
        margin-left: 30px;
    }

    .smallCenter {
        width: 100% !important;
        padding: 20px 10px !important;
    }

    .mult .selec>* {
        width: 50px !important;
        height: 50px !important;
    }

    .mult .selec>div>img {
        width: 50px !important;
        height: 50px !important;
    }

    .fullGallery a {
        width: calc(50% - 10px) !important;
    }

    .shopPacks>a {
        width: calc(50% - 10px) !important;
        height: 130px;
        min-height: 130px;
    }

    .castled {
        padding: 10px !important;
    }

    .castled .imgc {
        width: 120px !important;
        height: 68px !important;
    }

    .castled .imgc span {
        width: 120px !important;
        height: 68px !important;
    }

    .castled .ci {
        width: calc(100% - 130px) !important;
    }
}

/* Dispositivos muito pequenos */
@media (max-width: 480px) {

    body {
        padding-top: 100px !important;
    }

    body,
    a,
    a:active,
    a:visited,
    a:link,
    input,
    textarea,
    select {
        font-size: 14px !important;
    }

    .fullGallery a {
        width: calc(50% - 5px) !important;
        margin: 2px !important;
    }

    .shopPacks>a {
        width: 100% !important;
        max-width: 200px;
    }

    .twoBox .box {
        margin-bottom: 15px !important;
    }

    .box h1 {
        font-size: 14px !important;
        padding: 0 10px !important;
        height: 35px !important;
        line-height: 35px !important;
    }

    .lines>div {
        padding: 8px 5px !important;
        font-size: 12px !important;
    }

    .mult .selec>* {
        width: 45px !important;
        height: 45px !important;
    }

    .mult .selec>div>img {
        width: 45px !important;
        height: 45px !important;
    }

    .paginate a {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    footer {
        padding: 15px 10px !important;
        font-size: 11px !important;
    }

    .castled {
        width: 100% !important;
        float: none !important;
        margin: 0 0 15px 0 !important;
    }

    .castled .imgc {
        float: none !important;
        margin: 0 auto 10px !important;
        display: block;
    }

    .castled .ci {
        width: 100% !important;
        float: none !important;
        padding: 0 !important;
        text-align: center;
    }
}

/* Orientação paisagem */
@media (max-width: 1024px) and (orientation: landscape) {

    body {
        padding-top: 100px !important;
    }

    section {
        width: 90% !important;
        max-width: 800px;
    }

    .fullGallery a {
        width: calc(25% - 10px) !important;
    }

    .shopPacks>a {
        width: calc(33.333% - 10px) !important;
    }
}

/* Dispositivos com altura reduzida */
@media (max-height: 600px) {

    .rulesbox {
        height: 150px !important;
    }

    .mult .selec {
        max-height: 200px;
        overflow-y: auto;
    }
}

/* Suporte a telas de alta densidade */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .langs a {
        background-size: 132px 52px !important;
    }

    footer a.atualstudio {
        background-size: contain !important;
    }
}