/* =========================================================
   MUSICALWORLD — CABEÇALHO PRINCIPAL
   Arquivo: 03-cabecalho.css

   Responsabilidade:
   - Estilizar o cabeçalho superior do MusicalWorld.
   - Manter o cabeçalho preso à viewport.
   - Alinhar a logo com o menu lateral no desktop.
   - Exibir a seta de acesso ao menu da conta.
   - Estilizar o menu da conta.
   - Integrar Anunciar, Notificações e Mensagens
     visualmente ao menu lateral no desktop.
   - Manter os três botões como botões de vidro
     independentes no celular.
   - No celular, exibir SOMENTE os ícones.
   - Manter badges de mensagens e notificações.
   - Controlar somente a apresentação visual.

   IMPORTANTE:
   A lógica de sessão, mensagens, notificações,
   Realtime e logout continua em Cabecalho.js.

   ALTERAÇÃO SAFARI iOS 26:
   - Cabeçalho mobile transparente.
   - Sem backdrop-filter no cabeçalho.
   - Sem transform no cabeçalho mobile.
   - Sem will-change.
   - Sem isolation:isolate no mobile.
   - Movimento vertical realizado por top.
   ========================================================= */


/* =========================================================
   CABEÇALHO PRINCIPAL
   ========================================================= */

.navbar {

    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    width: 100%;
    height: 64px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 0 24px;

    margin: 0;

    background: transparent;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    border: 0;
    border-bottom: none;

    box-shadow: none;

    z-index: 1000;

    box-sizing: border-box;

    flex: 0 0 auto;

    /*
    Safari iOS 26:
    Não isolamos o cabeçalho em uma camada própria.
    */
    isolation: auto;

    /*
    O movimento vertical é feito por top.
    */
    transition:
        top 0.25s ease;
}


/* =========================================================
   CABEÇALHO DURANTE A SUBIDA DO SCROLL
   ========================================================= */

.navbar.cabecalho-em-subida {

    /*
    Mantido somente como estado lógico/visual.

    No mobile esse estado é neutralizado abaixo para que
    o Safari não crie uma superfície no topo.
    */

    background:
        rgba(255, 255, 255, 0.10);

    backdrop-filter:
        blur(4px);

    -webkit-backdrop-filter:
        blur(6px);

    box-shadow:
        0 3px 14px rgba(15, 20, 31, 0.035);
}


/* =========================================================
   ÁREA DA MARCA
   ========================================================= */

.navbar-brand-area {

    position: relative;

    display: flex;

    align-items: center;

    min-width: 0;

    height: 100%;

    margin: 0;

    padding: 0;
}


/* =========================================================
   CONTAINER DA CONTA
   ========================================================= */

.cabecalho-conta {

    position: relative;

    display: flex;

    align-items: center;

    min-width: 0;

    height: auto;

    margin: 0;
}


/* =========================================================
   BOTÃO DA LOGO + SETA
   ========================================================= */

.cabecalho-conta-toggle {

    display: inline-flex;

    align-items: center;
    justify-content: flex-start;

    gap: 5px;

    width: auto;
    min-width: 0;
    height: auto;

    padding: 4px 6px;

    margin: 0;

    border: 0;

    border-radius: 10px;

    background: transparent;

    color: #172033;

    cursor: pointer;

    box-sizing: border-box;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


/* =========================================================
   HOVER DA LOGO + SETA
   ========================================================= */

.cabecalho-conta-toggle:hover {

    background:
        rgba(23, 32, 51, 0.045);
}


/* =========================================================
   ACTIVE / CLIQUE
   ========================================================= */

.cabecalho-conta-toggle:active {

    transform:
        scale(0.98);
}


/* =========================================================
   FOCO ACESSÍVEL
   ========================================================= */

.cabecalho-conta-toggle:focus-visible {

    outline:
        2px solid rgba(22, 119, 210, 0.35);

    outline-offset:
        2px;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {

    display: inline-flex;

    align-items: center;

    width: auto;
    min-width: 0;

    height: auto;

    text-decoration: none;

    color: #172033;

    font-size: 20px;

    font-weight: 700;

    line-height: 1;

    white-space: nowrap;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        color 0.2s ease;
}


.logo:hover {

    color: #172033;
}


/* =========================================================
   SETA DO MENU DA CONTA
   ========================================================= */

.cabecalho-conta-seta {

    width: 17px;
    height: 17px;

    min-width: 17px;
    min-height: 17px;

    flex:
        0 0 17px;

    display: block;

    color: #6b7280;

    pointer-events: none;

    box-sizing: border-box;

    transition:
        transform 0.22s ease,
        color 0.2s ease;
}


.cabecalho-conta-toggle:hover .cabecalho-conta-seta {

    color:
        #1677d2;
}


.cabecalho-conta-toggle.aberto .cabecalho-conta-seta {

    transform:
        rotate(180deg);

    color:
        #1677d2;
}


/* =========================================================
   MENU DA CONTA
   ========================================================= */

.cabecalho-menu-conta {

    position: absolute;

    top:
        calc(100% + 10px);

    left: 0;

    width: 218px;

    max-width:
        calc(100vw - 24px);

    padding: 7px;

    margin: 0;

    background:
        rgba(255, 255, 255, 0.98);

    border:
        1px solid rgba(23, 32, 51, 0.09);

    border-radius: 14px;

    box-shadow:
        0 16px 38px rgba(23, 32, 51, 0.13),
        0 4px 12px rgba(23, 32, 51, 0.06);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-7px)
        scale(0.98);

    transform-origin:
        top left;

    pointer-events: none;

    z-index: 1100;

    box-sizing: border-box;

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.22s ease;
}


/* =========================================================
   MENU DA CONTA — ABERTO
   ========================================================= */

.cabecalho-menu-conta.aberto {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);

    pointer-events: auto;
}


/* =========================================================
   ITEM DO MENU DA CONTA
   ========================================================= */

.cabecalho-menu-conta-item {

    width: 100%;

    min-height: 42px;

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 10px 11px;

    margin: 0;

    border: 0;

    border-radius: 9px;

    background: transparent;

    color: #172033;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.2;

    text-align: left;

    cursor: pointer;

    box-sizing: border-box;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}


.cabecalho-menu-conta-item svg {

    width: 18px;
    height: 18px;

    min-width: 18px;
    min-height: 18px;

    flex:
        0 0 18px;

    color: #526071;

    transition:
        color 0.18s ease,
        transform 0.18s ease;
}


.cabecalho-menu-conta-item span {

    min-width: 0;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.cabecalho-menu-conta-item:hover {

    background:
        rgba(22, 119, 210, 0.07);

    color:
        #1677d2;
}


.cabecalho-menu-conta-item:hover svg {

    color:
        #1677d2;

    transform:
        translateX(1px);
}


/* =========================================================
   ITEM SAIR
   ========================================================= */

.cabecalho-menu-conta-sair {

    color:
        #4b5563;
}


.cabecalho-menu-conta-sair svg {

    color:
        #6b7280;
}


.cabecalho-menu-conta-sair:hover {

    background:
        rgba(220, 38, 38, 0.07);

    color:
        #dc2626;
}


.cabecalho-menu-conta-sair:hover svg {

    color:
        #dc2626;
}


/* =========================================================
   DIVISOR DO MENU DA CONTA
   ========================================================= */

.cabecalho-menu-conta-divisor {

    width:
        calc(100% - 12px);

    height: 1px;

    margin:
        4px 6px;

    padding: 0;

    background:
        rgba(23, 32, 51, 0.08);
}


/* =========================================================
   ÁREA DAS AÇÕES DO CABEÇALHO
   ========================================================= */

.navbar-actions {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 16px;

    min-width: 0;

    height: auto;

    margin-left: auto;

    padding: 0;

    box-sizing: border-box;
}


/* =========================================================
   BOTÕES SUPERIORES
   ========================================================= */

.nav-icon-btn,
.cabecalho-btn-anunciar {

    position: relative;

    width: 40px;
    height: 40px;

    min-width: 40px;
    min-height: 40px;

    max-width: 40px;
    max-height: 40px;

    flex:
        0 0 40px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    margin: 0;

    border:
        1px solid rgba(255, 255, 255, 0.82);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.72);

    color:
        #172033;

    cursor: pointer;

    box-shadow:
        0 4px 14px rgba(15, 20, 31, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;

    box-sizing: border-box;

    appearance: none;
    -webkit-appearance: none;
}


.nav-icon-btn:hover,
.cabecalho-btn-anunciar:hover {

    background:
        rgba(255, 255, 255, 0.82);

    border-color:
        rgba(255, 255, 255, 0.92);

    color:
        #1677d2;

    box-shadow:
        0 6px 18px rgba(15, 20, 31, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}


.nav-icon-btn:active,
.cabecalho-btn-anunciar:active {

    transform:
        scale(0.94);
}


.nav-icon-btn:focus-visible,
.cabecalho-btn-anunciar:focus-visible {

    outline:
        2px solid rgba(22, 119, 210, 0.35);

    outline-offset:
        3px;
}


/* =========================================================
   ÍCONES
   ========================================================= */

.top-icon-svg {

    width: 21px;
    height: 21px;

    min-width: 21px;
    min-height: 21px;

    max-width: 21px;
    max-height: 21px;

    display: block;

    flex:
        0 0 21px;

    stroke-width:
        1.9;

    pointer-events: none;

    box-sizing: border-box;
}


/* =========================================================
   ÍCONE DO ANUNCIAR
   ========================================================= */

.cabecalho-btn-anunciar .cabecalho-anunciar-icon {

    width: 19px;
    height: 19px;

    min-width: 19px;
    min-height: 19px;

    max-width: 19px;
    max-height: 19px;

    display: block;

    flex:
        0 0 19px;

    pointer-events: none;

    box-sizing: border-box;
}


/* =========================================================
   TEXTOS DAS AÇÕES
   ========================================================= */

.cabecalho-action-label {

    min-width: 0;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   BADGES
   ========================================================= */

.notification-badge {

    position: absolute;

    top: 3px;
    right: 3px;

    min-width: 17px;

    height: 17px;

    padding: 0 4px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background:
        #e53935;

    color:
        #ffffff;

    font-size: 10px;

    font-weight: 700;

    line-height: 1;

    border:
        2px solid rgba(255, 255, 255, 0.92);

    box-sizing: border-box;

    pointer-events: none;
}


/* =========================================================
   ESTADOS ANTIGOS DO CABEÇALHO
   ========================================================= */

#cabecalho-carregando,
#cabecalho-deslogado,
#cabecalho-logado {

    display: none !important;
}


.cabecalho-menu-usuario,
.cabecalho-usuario-btn,
.cabecalho-avatar,
.cabecalho-info-usuario,
.cabecalho-chevron,
.cabecalho-usuario-estado,
.cabecalho-btn-entrar {

    display: none !important;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 769px) {

    .navbar {

        height: 64px;

        padding:
            0 24px 0 0;
    }


    /* -----------------------------------------------------
       LOGO
       ----------------------------------------------------- */

    .navbar-brand-area {

        position: fixed;

        left:
            max(20px, calc(50% - 610px));

        top: 0;

        width: auto;

        height: 64px;

        display: flex;

        align-items: center;

        margin: 0;

        padding: 0;

        z-index: 1001;
    }


    /* -----------------------------------------------------
       AÇÕES
       ----------------------------------------------------- */

    .navbar-actions {

        position: fixed;

        left:
            max(20px, calc(50% - 610px));

        top: 348px;

        width: 180px;

        height: auto;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        justify-content: flex-start;

        gap: 4px;

        margin: 0;

        padding:
            12px 0 0 0;

        box-sizing: border-box;

        z-index: 1001;
    }


    /* -----------------------------------------------------
       DIVISOR
       ----------------------------------------------------- */

    .navbar-actions::before {

        content: "";

        display: block;

        width:
            calc(100% - 12px);

        height: 1px;

        margin:
            0 6px 8px;

        background:
            rgba(23, 32, 51, 0.08);

        box-sizing: border-box;
    }


    /* -----------------------------------------------------
       BOTÕES DESKTOP
       ----------------------------------------------------- */

    .navbar-actions .nav-icon-btn,
    .navbar-actions .cabecalho-btn-anunciar {

        position: relative;

        width: 100%;
        height: 48px;

        min-width: 0;
        min-height: 48px;

        max-width: none;
        max-height: 48px;

        flex:
            0 0 48px;

        display: flex;

        flex-direction: row;

        align-items: center;

        justify-content: flex-start;

        gap: 11px;

        padding:
            0 10px;

        margin: 0;

        border: 0;

        border-radius: 12px;

        background:
            transparent;

        color:
            #172033;

        box-shadow: none;

        backdrop-filter: none;

        -webkit-backdrop-filter: none;

        font-family: inherit;

        font-size: 13px;

        font-weight: 700;

        line-height: 1;

        text-align: left;

        box-sizing: border-box;
    }


    /* -----------------------------------------------------
       HOVER DESKTOP
       ----------------------------------------------------- */

    .navbar-actions .nav-icon-btn:hover,
    .navbar-actions .cabecalho-btn-anunciar:hover {

        background:
            rgba(22, 119, 210, 0.055);

        border: 0;

        color:
            #1677d2;

        box-shadow: none;
    }


    /* -----------------------------------------------------
       ACTIVE DESKTOP
       ----------------------------------------------------- */

    .navbar-actions .nav-icon-btn:active,
    .navbar-actions .cabecalho-btn-anunciar:active {

        transform:
            scale(0.98);
    }


    /* -----------------------------------------------------
       FOCO DESKTOP
       ----------------------------------------------------- */

    .navbar-actions .nav-icon-btn:focus-visible,
    .navbar-actions .cabecalho-btn-anunciar:focus-visible {

        outline:
            2px solid rgba(22, 119, 210, 0.35);

        outline-offset:
            -2px;
    }


    /* -----------------------------------------------------
       ÍCONES DESKTOP
       ----------------------------------------------------- */

    .navbar-actions .top-icon-svg,
    .navbar-actions .cabecalho-anunciar-icon {

        width: 24px;
        height: 24px;

        min-width: 24px;
        min-height: 24px;

        max-width: 24px;
        max-height: 24px;

        flex:
            0 0 24px;

        display: block;

        color:
            #526071;

        box-sizing: border-box;

        transition:
            color 0.18s ease,
            transform 0.18s ease;
    }


    /* -----------------------------------------------------
       ÍCONE NO HOVER
       ----------------------------------------------------- */

    .navbar-actions .nav-icon-btn:hover .top-icon-svg,
    .navbar-actions .cabecalho-btn-anunciar:hover .cabecalho-anunciar-icon {

        color:
            #1677d2;

        transform:
            translateX(1px);
    }


    /* -----------------------------------------------------
       TEXTOS DESKTOP
       ----------------------------------------------------- */

    .navbar-actions .cabecalho-action-label {

        display: block;

        min-width: 0;

        color:
            inherit;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;

        line-height: 1;
    }


    /* -----------------------------------------------------
       BADGES DESKTOP
       ----------------------------------------------------- */

    .navbar-actions .notification-badge {

        position: static;

        flex:
            0 0 auto;

        min-width: 17px;

        height: 17px;

        margin-left: auto;

        padding:
            0 4px;

        border: 0;

        border-radius: 999px;

        background:
            #e53935;

        color:
            #ffffff;

        font-size: 10px;

        font-weight: 700;

        box-sizing: border-box;
    }

}


/* =========================================================
   DESKTOP GRANDE
   ========================================================= */

@media (min-width: 1200px) {

    .navbar-brand-area {

        left:
            max(20px, calc(50% - 610px));
    }


    .navbar-actions {

        left:
            max(20px, calc(50% - 610px));
    }

}


/* =========================================================
   TABLET / CELULAR
   ========================================================= */

@media (max-width: 768px) {

    .navbar {

        position: fixed;

        top: 0;
        left: 0;
        right: 0;

        width: 100%;

        height: 60px;

        padding:
            0 16px;

        margin: 0;

        display: flex;

        align-items: center;

        justify-content: space-between;

        box-sizing: border-box;

        z-index: 1000;

        /*
        IMPORTANTE PARA SAFARI iOS 26:

        O cabeçalho não cria uma camada isolada.
        */

        isolation: auto;

        /*
        O JS controla apenas top.
        */

        transform: none !important;

        will-change: auto !important;

        transition:
            top 0.25s ease !important;
    }


    /* -----------------------------------------------------
       ÁREA DA LOGO
       ----------------------------------------------------- */

    .navbar-brand-area {

        position: relative;

        left: auto;
        top: auto;

        width: auto;

        height: 100%;

        min-width: 0;

        display: flex;

        align-items: center;

        margin: 0;

        padding: 0;

        flex:
            1 1 auto;
    }


    /* -----------------------------------------------------
       CONTA
       ----------------------------------------------------- */

    .cabecalho-conta {

        height: 100%;

        min-width: 0;

        display: flex;

        align-items: center;
    }


    /* -----------------------------------------------------
       LOGO MOBILE
       ----------------------------------------------------- */

    .logo {

        max-width:
            calc(100vw - 190px);

        overflow: hidden;

        text-overflow: ellipsis;
    }


    /* -----------------------------------------------------
       AÇÕES MOBILE
       ----------------------------------------------------- */

    .navbar-actions {

        position: static;

        left: auto;
        top: auto;

        width: auto;

        height: auto;

        min-width: 0;

        display: flex;

        flex:
            0 0 auto;

        flex-direction: row;

        align-items: center;

        justify-content: flex-end;

        gap: 12px;

        margin:
            0 0 0 auto;

        padding: 0;

        box-sizing: border-box;

        z-index: auto;
    }


    /* -----------------------------------------------------
       REMOVE DIVISOR DESKTOP
       ----------------------------------------------------- */

    .navbar-actions::before {

        display: none;

        content: none;
    }


    /* -----------------------------------------------------
       BOTÕES MOBILE
       ----------------------------------------------------- */

    .navbar-actions .nav-icon-btn,
    .navbar-actions .cabecalho-btn-anunciar {

        position: relative;

        width: 38px;
        height: 38px;

        min-width: 38px;
        min-height: 38px;

        max-width: 38px;
        max-height: 38px;

        flex:
            0 0 38px;

        display: inline-flex;

        flex-direction: row;

        align-items: center;

        justify-content: center;

        gap: 0;

        padding: 0;

        margin: 0;

        border:
            1px solid rgba(255, 255, 255, 0.82);

        border-radius: 50%;

        background:
            rgba(255, 255, 255, 0.72);

        color:
            #172033;

        box-shadow:
            0 4px 14px rgba(15, 20, 31, 0.10),
            inset 0 1px 0 rgba(255, 255, 255, 0.78);

        backdrop-filter:
            blur(10px);

        -webkit-backdrop-filter:
            blur(10px);

        box-sizing: border-box;
    }


    /* -----------------------------------------------------
       SOMENTE ÍCONES NO CELULAR
       ----------------------------------------------------- */

    .navbar-actions .cabecalho-action-label {

        display: none !important;

        width: 0;
        min-width: 0;

        max-width: 0;

        margin: 0;
        padding: 0;

        overflow: hidden;

        white-space: nowrap;
    }


    /* -----------------------------------------------------
       GARANTE CENTRALIZAÇÃO DOS ÍCONES
       ----------------------------------------------------- */

    .navbar-actions .top-icon-svg,
    .navbar-actions .cabecalho-anunciar-icon {

        position: relative;

        display: block;

        flex:
            0 0 auto;

        margin: 0;

        padding: 0;

        pointer-events: none;
    }


    /* -----------------------------------------------------
       ÍCONE DE NOTIFICAÇÕES / MENSAGENS
       ----------------------------------------------------- */

    .navbar-actions .top-icon-svg {

        width: 21px;
        height: 21px;

        min-width: 21px;
        min-height: 21px;

        max-width: 21px;
        max-height: 21px;
    }


    /* -----------------------------------------------------
       ÍCONE DE ANUNCIAR
       ----------------------------------------------------- */

    .navbar-actions .cabecalho-anunciar-icon {

        width: 19px;
        height: 19px;

        min-width: 19px;
        min-height: 19px;

        max-width: 19px;
        max-height: 19px;
    }


    /* -----------------------------------------------------
       BADGES MOBILE
       ----------------------------------------------------- */

    .navbar-actions .notification-badge {

        position: absolute;

        top: 2px;
        right: 2px;

        display: flex;

        min-width: 17px;
        height: 17px;

        margin: 0;

        padding: 0 4px;

        border:
            2px solid rgba(255, 255, 255, 0.92);

        border-radius: 999px;

        box-sizing: border-box;
    }


    /* -----------------------------------------------------
       MENU DA CONTA MOBILE
       ----------------------------------------------------- */

    .cabecalho-menu-conta {

        position: absolute;

        top:
            calc(100% + 8px);

        left: 0;

        width: 210px;

        max-width:
            calc(100vw - 24px);

        z-index: 1100;
    }


    /* =====================================================
       SAFARI iOS 26
       TOPO TRANSPARENTE / EDGE-TO-EDGE
       =====================================================

       O teste isolado confirmou que o Safari consegue
       exibir o conteúdo atrás da região superior.

       Portanto o cabeçalho principal não pode pintar
       uma superfície nessa região.

       O navbar permanece fixed, mas é completamente
       transparente.

       Também não usamos backdrop-filter, box-shadow,
       transform ou isolation nessa camada.
       ===================================================== */

    .navbar,
    .navbar.cabecalho-em-subida {

        position: fixed !important;

        top: 0;

        left: 0 !important;
        right: 0 !important;

        width: 100% !important;

        background: transparent !important;

        background-color: transparent !important;

        backdrop-filter: none !important;

        -webkit-backdrop-filter: none !important;

        box-shadow: none !important;

        border: 0 !important;

        border-bottom: 0 !important;

        transform: none !important;

        will-change: auto !important;

        isolation: auto !important;

        transition:
            top 0.25s ease !important;

        pointer-events: none !important;
    }


    /* -----------------------------------------------------
       ELEMENTOS INTERNOS CONTINUAM CLICÁVEIS
       ----------------------------------------------------- */

    .navbar > * {

        pointer-events: auto !important;
    }


    .navbar-brand-area {

        pointer-events: auto !important;
    }


    .navbar-actions {

        pointer-events: auto !important;
    }


    .cabecalho-conta {

        pointer-events: auto !important;
    }


    .cabecalho-conta-toggle {

        pointer-events: auto !important;
    }


    .navbar-actions .nav-icon-btn,
    .navbar-actions .cabecalho-btn-anunciar {

        pointer-events: auto !important;
    }


    /* -----------------------------------------------------
       GARANTE QUE O ESTADO DE SCROLL NÃO REATIVE FUNDO
       ----------------------------------------------------- */

    .navbar.cabecalho-em-subida {

        background: transparent !important;

        background-color: transparent !important;

        backdrop-filter: none !important;

        -webkit-backdrop-filter: none !important;

        box-shadow: none !important;

        transform: none !important;

        will-change: auto !important;

        isolation: auto !important;
    }

}


/* =========================================================
   CELULARES PEQUENOS
   ========================================================= */

@media (max-width: 480px) {

    .navbar {

        height: 58px;

        padding:
            0 12px;
    }


    .logo {

        max-width:
            calc(100vw - 178px);

        font-size: 18px;
    }


    .cabecalho-conta-toggle {

        gap: 4px;

        padding:
            4px;
    }


    .cabecalho-conta-seta {

        width: 16px;
        height: 16px;

        min-width: 16px;
        min-height: 16px;

        flex:
            0 0 16px;
    }


    .navbar-actions {

        gap: 10px;
    }


    .navbar-actions .nav-icon-btn,
    .navbar-actions .cabecalho-btn-anunciar {

        width: 36px;
        height: 36px;

        min-width: 36px;
        min-height: 36px;

        max-width: 36px;
        max-height: 36px;

        flex:
            0 0 36px;
    }


    .navbar-actions .top-icon-svg {

        width: 20px;
        height: 20px;

        min-width: 20px;
        min-height: 20px;

        max-width: 20px;
        max-height: 20px;

        flex:
            0 0 20px;
    }


    .navbar-actions .cabecalho-anunciar-icon {

        width: 18px;
        height: 18px;

        min-width: 18px;
        min-height: 18px;

        max-width: 18px;
        max-height: 18px;

        flex:
            0 0 18px;
    }


    .cabecalho-menu-conta {

        width: 204px;

        max-width:
            calc(100vw - 20px);

        padding: 6px;
    }


    .cabecalho-menu-conta-item {

        min-height: 40px;

        font-size: 12.5px;
    }

}


/* =========================================================
   CELULARES MUITO PEQUENOS
   ========================================================= */

@media (max-width: 360px) {

    .navbar {

        height: 56px;

        padding:
            0 8px;
    }


    .logo {

        max-width:
            calc(100vw - 164px);

        font-size: 17px;
    }


    .navbar-actions {

        gap: 8px;
    }


    .navbar-actions .nav-icon-btn,
    .navbar-actions .cabecalho-btn-anunciar {

        width: 34px;
        height: 34px;

        min-width: 34px;
        min-height: 34px;

        max-width: 34px;
        max-height: 34px;

        flex:
            0 0 34px;
    }


    .navbar-actions .top-icon-svg {

        width: 19px;
        height: 19px;

        min-width: 19px;
        min-height: 19px;

        max-width: 19px;
        max-height: 19px;

        flex:
            0 0 19px;
    }


    .navbar-actions .cabecalho-anunciar-icon {

        width: 17px;
        height: 17px;

        min-width: 17px;
        min-height: 17px;

        max-width: 17px;
        max-height: 17px;

        flex:
            0 0 17px;
    }


    .cabecalho-conta-toggle {

        padding-left: 2px;
        padding-right: 2px;
    }


    .cabecalho-conta-seta {

        width: 15px;
        height: 15px;

        min-width: 15px;
        min-height: 15px;

        flex:
            0 0 15px;
    }


    .cabecalho-menu-conta {

        width: 196px;

        max-width:
            calc(100vw - 16px);
    }

}


/* =========================================================
   ACESSIBILIDADE — REDUÇÃO DE MOVIMENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .navbar,
    .nav-icon-btn,
    .cabecalho-btn-anunciar,
    .cabecalho-conta-toggle,
    .cabecalho-conta-seta,
    .cabecalho-menu-conta,
    .cabecalho-menu-conta-item,
    .cabecalho-menu-conta-item svg {

        transition: none;
    }

}
/* =========================================================
   ÁREA SEGURA — ANDROID / CAPACITOR (EDGE-TO-EDGE)

   A barra de status continua transparente; o conteúdo do
   cabeçalho começa abaixo dela.
   ========================================================= */

:root {
    --safe-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
    --safe-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {

    .navbar {
        padding-top: var(--safe-top);
        height: calc(60px + var(--safe-top));
    }

}

@media (max-width: 480px) {

    .navbar {
        height: calc(58px + var(--safe-top));
    }

}

@media (max-width: 360px) {

    .navbar {
        height: calc(56px + var(--safe-top));
    }

}