﻿/* =========================================================
   HEADER PRINCIPAL BELOVETY

   Arquivo único responsável por:
   - header principal;
   - logo;
   - campo de pesquisa;
   - busca global;
   - abas da busca;
   - resultados;
   - estados da busca;
   - sino;
   - resumo de notificações;
   - responsividade do header.

   Prefixo exclusivo:
   bvh = Belovety Header
   ========================================================= */

:root {
    --bvh-header-height: 68px;
    --bvh-header-content-width: 1400px;
    --bvh-accent: var( --cor_principal, var( --cor-principal, var(--bv-accent, #ff0787) ) );
    --bvh-accent-dark: #d80b72;
    --bvh-accent-soft: rgba(255, 7, 135, .10);
    --bvh-accent-softer: rgba(255, 7, 135, .055);
    --bvh-text: #252936;
    --bvh-text-soft: #5d6471;
    --bvh-muted: #898f9b;
    --bvh-border: #e2e6ec;
    --bvh-border-soft: #edf0f4;
    --bvh-card: #ffffff;
    --bvh-card-soft: #f7f8fa;
    --bvh-shadow: 0 30px 80px rgba(17, 20, 28, .25);
    --bvh-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================================================
   NORMALIZAÇÃO LOCAL
   ========================================================= */

.bvh-header *,
.bvh-header *::before,
.bvh-header *::after,
.bvh-search-layer *,
.bvh-search-layer *::before,
.bvh-search-layer *::after,
.bvh-notifications-popover *,
.bvh-notifications-popover *::before,
.bvh-notifications-popover *::after {
    box-sizing: border-box;
}

.bvh-header button,
.bvh-header input,
.bvh-header a,
.bvh-search-layer button,
.bvh-search-layer input,
.bvh-search-layer a,
.bvh-notifications-popover button,
.bvh-notifications-popover a {
    font-family: var(--bvh-font);
    -webkit-tap-highlight-color: transparent;
}

.bvh-header button,
.bvh-search-layer button,
.bvh-notifications-popover button {
    cursor: pointer;
}

.bvh-header [hidden],
.bvh-search-layer [hidden],
.bvh-notifications-popover[hidden] {
    display: none !important;
}

body.bvh-search-lock {
    overflow: hidden;
}

/* =========================================================
   HEADER
   ========================================================= */

.bvh-header {
    position: sticky;
    top: 0;
    z-index: 1500;
    width: 100%;
    min-height: var(--bvh-header-height);
    color: #ffffff;
    background: linear-gradient( 135deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .035) ), var(--bvh-accent);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 8px 28px rgba(80, 19, 51, .17);
}

.bvh-header__inner {
    width: min(var(--bvh-header-content-width), 100%);
    min-height: var(--bvh-header-height);
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(380px, 780px) minmax(190px, 1fr);
    align-items: center;
    gap: 22px;
    margin: 0 auto;
    padding: env(safe-area-inset-top, 0) max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
}

/* =========================================================
   LOGO
   ========================================================= */

.bvh-logo {
    width: fit-content;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    color: #ffffff;
    text-decoration: none;
}

    .bvh-logo:hover,
    .bvh-logo:focus-visible {
        color: #ffffff;
        text-decoration: none;
    }

    .bvh-logo img {
        width: 158px;
        max-width: 100%;
        max-height: 44px;
        display: block;
        object-fit: contain;
        object-position: left center;
    }

/* =========================================================
   PESQUISA DO HEADER
   ========================================================= */

.bvh-search {
    position: relative;
    width: 100%;
    height: 46px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 0 9px 0 17px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    background: rgba(255, 255, 255, .98);
    color: var(--bvh-muted);
    box-shadow: 0 1px 2px rgba(20, 22, 28, .07), 0 9px 24px rgba(66, 20, 44, .11);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

    .bvh-search:focus-within {
        border-color: #ffffff;
        box-shadow: 0 0 0 4px rgba(255, 255, 255, .16), 0 12px 30px rgba(63, 28, 46, .16);
        transform: translateY(-1px);
    }

    .bvh-search > i {
        color: var(--bvh-accent);
        font-size: 1rem;
    }

    .bvh-search input {
        min-width: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--bvh-text);
        font-size: .88rem;
    }

        .bvh-search input::placeholder {
            color: #969ba6;
            opacity: 1;
        }

        .bvh-search input::-webkit-search-cancel-button {
            display: none;
        }

.bvh-search__clear {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef0f3;
    color: #636a76;
    font-size: .82rem;
}

    .bvh-search__clear:hover,
    .bvh-search__clear:focus-visible {
        background: #e1e4e9;
        color: #444a54;
    }

/* =========================================================
   AÇÕES DO HEADER
   ========================================================= */

.bvh-header__actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.bvh-header-action {
    position: relative;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    outline: 0;
    background: rgba(255, 255, 255, .13);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.00rem;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

    .bvh-header-action:hover,
    .bvh-header-action:focus-visible {
        border-color: rgba(255, 255, 255, .48);
        background: rgba(255, 255, 255, .22);
        color: #ffffff;
        box-shadow: 0 0 0 4px rgba(255, 255, 255, .10);
        transform: translateY(-1px);
    }

    .bvh-header-action:active {
        transform: scale(.96);
    }

.bvh-header-action--search {
    display: none;
}

/* =========================================================
   BADGE DO SINO
   ========================================================= */

.bvh-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border: 2px solid var(--bvh-accent);
    border-radius: 999px;
    background: #ffffff;
    color: var(--bvh-accent);
    font-size: .6rem;
    font-weight: 950;
    line-height: 1;
}
    .bvh-notification-badge:empty {
        display: none;
    }

/* =========================================================
   PERFIL
   ========================================================= */

.bvh-profile-trigger {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: block;
    padding: 2px;
    border: 2px solid rgba(255, 255, 255, .88);
    border-radius: 50%;
    outline: 0;
    background: rgba(255, 255, 255, .16);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

    .bvh-profile-trigger:hover,
    .bvh-profile-trigger:focus-visible {
        border-color: #ffffff;
        box-shadow: 0 0 0 4px rgba(255, 255, 255, .15);
        transform: translateY(-1px);
    }

    .bvh-profile-trigger:active {
        transform: scale(.96);
    }

    .bvh-profile-trigger img {
        width: 100%;
        height: 100%;
        display: block;
        border-radius: 50%;
        background: #ffffff;
        object-fit: cover;
    }

/* =========================================================
   VISITANTE
   ========================================================= */

.bvh-auth-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

    .bvh-auth-actions a {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 9px 16px;
        border-radius: 999px;
        color: #ffffff;
        font-size: .82rem;
        font-weight: 850;
        text-decoration: none;
        white-space: nowrap;
        transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

        .bvh-auth-actions a:hover,
        .bvh-auth-actions a:focus-visible {
            transform: translateY(-1px);
        }

.bvh-auth-actions__login {
    border: 1px solid rgba(255, 255, 255, .30);
    background: rgba(255, 255, 255, .11);
}

    .bvh-auth-actions__login:hover,
    .bvh-auth-actions__login:focus-visible {
        border-color: rgba(255, 255, 255, .50);
        background: rgba(255, 255, 255, .20);
        color: #ffffff;
    }

.bvh-auth-actions__signup {
    border: 1px solid #ffffff;
    background: #ffffff;
    color: var(--bvh-accent) !important;
}

    .bvh-auth-actions__signup:hover,
    .bvh-auth-actions__signup:focus-visible {
        background: #fff4fa;
        color: var(--bvh-accent) !important;
        box-shadow: 0 8px 22px rgba(79, 15, 48, .14);
    }

/* =========================================================
   CAMADA DA BUSCA GLOBAL
   ========================================================= */

.bvh-search-layer[hidden] {
    display: none !important;
}

.bvh-search-layer {
    position: fixed;
    /*
     * A camada fica abaixo do header.
     * O painel começa somente depois da altura real do header.
     */
    z-index: 1490;
    inset: 0;
}

.bvh-search-layer__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    background: rgba(17, 20, 28, .31);
    backdrop-filter: blur(3px);
}

/* =========================================================
   PAINEL DA BUSCA
   ========================================================= */

.bvh-search-panel {
    position: absolute;
    /*
     * Espaçamento corrigido:
     * o painel não invade mais a linha inferior do header.
     */
    top: calc( var(--bvh-header-height) + env(safe-area-inset-top, 0px) + 16px );
    left: 50%;
    width: min( 920px, calc(100% - 32px) );
    max-height: calc( 100dvh - var(--bvh-header-height) - env(safe-area-inset-top, 0px) - 32px );
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(220, 223, 229, .96);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--bvh-shadow);
    transform: translateX(-50%);
    animation: bvh-search-enter .18s ease;
}

@keyframes bvh-search-enter {
    from {
        opacity: 0;
        transform: translate(-50%, -9px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

.bvh-search-panel__mobile-header,
.bvh-search-panel__field {
    display: none;
}

/* =========================================================
   ABAS DA BUSCA

   O espaço superior foi aumentado para que os botões não
   encostem na borda arredondada do painel.
   ========================================================= */

.bvh-search-tabs {
    position: relative;
    z-index: 3;
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    overflow-x: auto;
    padding: 18px 22px 16px;
    border-bottom: 1px solid var(--bvh-border-soft);
    background: #ffffff;
    scrollbar-width: none;
}

    .bvh-search-tabs::-webkit-scrollbar {
        display: none;
    }

    .bvh-search-tabs button {
        min-height: 43px;
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 9px 17px;
        border: 1px solid var(--bvh-border);
        border-radius: 999px;
        background: #ffffff;
        color: #5f6673;
        font-size: .8rem;
        font-weight: 850;
        white-space: nowrap;
        transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
    }

        .bvh-search-tabs button:hover {
            border-color: #f2aecf;
            background: #fff7fb;
            color: var(--bvh-accent);
        }

        .bvh-search-tabs button:active {
            transform: scale(.97);
        }

        .bvh-search-tabs button.is-active {
            border-color: var(--bvh-accent);
            background: var(--bvh-accent-soft);
            color: var(--bvh-accent);
        }

/* =========================================================
   CONTEÚDO DA BUSCA
   ========================================================= */

.bvh-search-panel__content {
    min-height: 280px;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 22px 24px;
    scrollbar-width: thin;
    scrollbar-color: #cbd0d8 transparent;
}

    .bvh-search-panel__content::-webkit-scrollbar {
        width: 7px;
    }

    .bvh-search-panel__content::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: #cbd0d8;
    }

/* =========================================================
   RODAPÉ DA BUSCA
   ========================================================= */

.bvh-search-panel__footer {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex: 0 0 auto;
    padding: 9px 20px;
    border-top: 1px solid var(--bvh-border-soft);
    background: #fafbfc;
    color: #8b919b;
    font-size: .68rem;
}

    .bvh-search-panel__footer kbd {
        min-width: 22px;
        display: inline-grid;
        place-items: center;
        padding: 3px 6px;
        border: 1px solid #dfe2e7;
        border-radius: 6px;
        background: #ffffff;
        color: #646b77;
        font-family: inherit;
        font-size: .63rem;
        box-shadow: 0 1px 2px rgba(20, 22, 28, .04);
    }

/* =========================================================
   INÍCIO DA BUSCA
   ========================================================= */

.bvh-search-start {
    padding-top: 10px;
}

.bvh-search-start__section + .bvh-search-start__section {
    margin-top: 24px;
}

.bvh-search-start__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

    .bvh-search-start__header strong {
        color: var(--bvh-text);
        font-size: .84rem;
        font-weight: 900;
    }

    .bvh-search-start__header button {
        padding: 5px 7px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--bvh-accent);
        font-size: .7rem;
        font-weight: 850;
    }

        .bvh-search-start__header button:hover {
            background: var(--bvh-accent-soft);
        }

/* =========================================================
   PESQUISAS RECENTES
   ========================================================= */

.bvh-search-recent {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .bvh-search-recent button {
        min-height: 37px;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 8px 12px;
        border: 1px solid var(--bvh-border);
        border-radius: 999px;
        background: #ffffff;
        color: var(--bvh-text-soft);
        font-size: .73rem;
    }

        .bvh-search-recent button:hover {
            border-color: #f2bad5;
            background: #fff8fc;
            color: var(--bvh-accent);
        }

/* =========================================================
   DESCOBERTA INICIAL
   ========================================================= */

.bvh-search-discover {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

    .bvh-search-discover button {
        min-width: 0;
        min-height: 70px;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding: 12px;
        border: 1px solid var(--bvh-border);
        border-radius: 15px;
        background: #ffffff;
        color: inherit;
        text-align: left;
        transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
    }

        .bvh-search-discover button:hover {
            border-color: #efb5d0;
            background: #fff8fc;
            transform: translateY(-1px);
        }

        .bvh-search-discover button > span {
            width: 42px;
            height: 42px;
            display: grid;
            place-items: center;
            border-radius: 13px;
            background: var(--bvh-accent-soft);
            color: var(--bvh-accent);
        }

    .bvh-search-discover strong,
    .bvh-search-discover small {
        display: block;
    }

    .bvh-search-discover strong {
        color: var(--bvh-text);
        font-size: .77rem;
        font-weight: 900;
    }

    .bvh-search-discover small {
        margin-top: 3px;
        color: var(--bvh-muted);
        font-size: .64rem;
    }

/* =========================================================
   GRUPOS DE RESULTADOS
   ========================================================= */

.bvh-search-group {
    padding-top: 14px;
}

    .bvh-search-group + .bvh-search-group {
        margin-top: 8px;
        padding-top: 20px;
        border-top: 1px solid var(--bvh-border-soft);
    }

.bvh-search-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.bvh-search-group__title {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .bvh-search-group__title > span {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        border-radius: 11px;
        background: var(--bvh-accent-soft);
        color: var(--bvh-accent);
        font-size: .78rem;
    }

    .bvh-search-group__title strong {
        color: var(--bvh-text);
        font-size: .84rem;
        font-weight: 900;
    }

.bvh-search-group__header button {
    min-height: 34px;
    padding: 7px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--bvh-accent);
    font-size: .71rem;
    font-weight: 900;
}

    .bvh-search-group__header button:hover {
        background: var(--bvh-accent-soft);
    }

.bvh-search-results {
    display: grid;
    gap: 4px;
}

/* =========================================================
   RESULTADO
   ========================================================= */

.bvh-search-result {
    min-width: 0;
    min-height: 70px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 15px;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

    .bvh-search-result:hover,
    .bvh-search-result:focus-visible,
    .bvh-search-result.is-keyboard-focused {
        border-color: #f1c0d7;
        background: #fff8fc;
        color: inherit;
        transform: translateX(1px);
    }

.bvh-search-result__media {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 15px;
    background: var(--bvh-accent-soft);
    color: var(--bvh-accent);
}

.bvh-search-result[data-result-type="usuario"]
.bvh-search-result__media {
    border-radius: 50%;
}

.bvh-search-result__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.bvh-search-result__copy {
    min-width: 0;
}

    .bvh-search-result__copy strong,
    .bvh-search-result__copy span,
    .bvh-search-result__copy small {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bvh-search-result__copy strong {
        color: var(--bvh-text);
        font-size: .82rem;
        font-weight: 850;
    }

    .bvh-search-result__copy span {
        margin-top: 3px;
        color: var(--bvh-text-soft);
        font-size: .7rem;
    }

    .bvh-search-result__copy small {
        margin-top: 3px;
        color: var(--bvh-muted);
        font-size: .63rem;
    }

.bvh-search-result > i {
    margin-right: 5px;
    color: #afb5be;
    font-size: .68rem;
}

/* =========================================================
   CABEÇALHO DE CATEGORIA
   ========================================================= */

.bvh-search-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0 9px;
}

    .bvh-search-category-header > span {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 13px;
        background: var(--bvh-accent-soft);
        color: var(--bvh-accent);
    }

    .bvh-search-category-header strong,
    .bvh-search-category-header small {
        display: block;
    }

    .bvh-search-category-header strong {
        color: var(--bvh-text);
        font-size: .93rem;
        font-weight: 900;
    }

    .bvh-search-category-header small {
        margin-top: 3px;
        color: var(--bvh-muted);
        font-size: .68rem;
    }

/* =========================================================
   CARREGAR MAIS
   ========================================================= */

.bvh-search-load-more {
    width: 100%;
    min-height: 44px;
    margin-top: 13px;
    border: 1px solid #f0bad4;
    border-radius: 12px;
    background: var(--bvh-accent-soft);
    color: var(--bvh-accent);
    font-size: .75rem;
    font-weight: 900;
}

    .bvh-search-load-more:hover {
        background: rgba(255, 7, 135, .15);
    }

    .bvh-search-load-more:disabled {
        opacity: .6;
        cursor: wait;
    }

/* =========================================================
   ESTADOS
   ========================================================= */

.bvh-search-state {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px;
    text-align: center;
}

    .bvh-search-state > span {
        width: 62px;
        height: 62px;
        display: grid;
        place-items: center;
        border-radius: 20px;
        background: var(--bvh-accent-soft);
        color: var(--bvh-accent);
        font-size: 1.4rem;
    }

    .bvh-search-state h3 {
        margin: 7px 0 0;
        color: var(--bvh-text);
        font-size: 1rem;
    }

    .bvh-search-state p {
        max-width: 410px;
        margin: 0;
        color: var(--bvh-muted);
        font-size: .77rem;
        line-height: 1.55;
    }

    .bvh-search-state button {
        margin-top: 8px;
        padding: 10px 14px;
        border: 0;
        border-radius: 11px;
        background: var(--bvh-accent);
        color: #ffffff;
        font-size: .73rem;
        font-weight: 900;
    }

/* =========================================================
   SKELETON
   ========================================================= */

.bvh-search-skeleton {
    display: grid;
    gap: 9px;
    padding-top: 15px;
}

.bvh-search-skeleton__item {
    height: 72px;
    border-radius: 15px;
    background: linear-gradient( 90deg, #f1f3f6 25%, #fafbfc 37%, #f1f3f6 63% );
    background-size: 400% 100%;
    animation: bvh-search-skeleton 1.1s ease infinite;
}

@keyframes bvh-search-skeleton {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

/* =========================================================
   NOTIFICAÇÕES NO HEADER
   ========================================================= */

.bvh-notifications {
    position: relative;
}

.bvh-notifications-popover[hidden] {
    display: none !important;
}

.bvh-notifications-popover {
    position: absolute;
    z-index: 1800;
    top: calc(100% + 14px);
    right: 0;
    width: min( 390px, calc(100vw - 24px) );
    overflow: hidden;
    border: 1px solid var(--bvh-border);
    border-radius: 22px;
    background: #ffffff;
    color: var(--bvh-text);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .27);
}

    .bvh-notifications-popover > header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 15px 16px;
        border-bottom: 1px solid var(--bvh-border-soft);
    }

    .bvh-notifications-popover header small {
        color: var(--bvh-accent);
        font-size: .61rem;
        font-weight: 900;
        letter-spacing: .07em;
        text-transform: uppercase;
    }

    .bvh-notifications-popover header h2 {
        margin: 3px 0 0;
        color: var(--bvh-text);
        font-size: 1rem;
    }

    .bvh-notifications-popover header button {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #f1f3f6;
        color: #646b77;
    }

.bvh-notifications-popover__content {
    display: grid;
    gap: 3px;
    max-height: 440px;
    overflow-y: auto;
    padding: 8px;
}

.bvh-notifications-popover__item {
    min-height: 65px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 9px;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
}

    .bvh-notifications-popover__item:hover {
        background: #fff8fc;
        color: inherit;
    }

    .bvh-notifications-popover__item > span:first-child {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border-radius: 14px;
        background: var(--bvh-accent-soft);
        color: var(--bvh-accent);
    }

    .bvh-notifications-popover__item strong,
    .bvh-notifications-popover__item small {
        display: block;
    }

    .bvh-notifications-popover__item strong {
        color: var(--bvh-text);
        font-size: .77rem;
        font-weight: 850;
    }

    .bvh-notifications-popover__item small {
        margin-top: 3px;
        color: var(--bvh-muted);
        font-size: .63rem;
    }

.bvh-notifications-popover__count {
    min-width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--bvh-accent-soft);
    color: var(--bvh-accent);
    font-size: .61rem;
    font-weight: 950;
}

.bvh-notifications-popover > footer {
    padding: 12px 16px;
    border-top: 1px solid var(--bvh-border-soft);
    background: #fafbfc;
}

.bvh-notifications-popover footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--bvh-accent);
    font-size: .73rem;
    font-weight: 900;
    text-decoration: none;
}

.bvh-notifications-popover__loading,
.bvh-notifications-popover__empty {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--bvh-muted);
    font-size: .76rem;
    text-align: center;
}

/* =========================================================
   NOTEBOOK E TABLET
   ========================================================= */

@media (max-width: 1180px) {
    .bvh-header__inner {
        grid-template-columns: minmax(155px, 1fr) minmax(340px, 700px) minmax(155px, 1fr);
        gap: 17px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .bvh-logo img {
        width: 140px;
        max-height: 41px;
    }

    .bvh-search {
        height: 46px;
    }

    .bvh-header-action {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
    }

    .bvh-profile-trigger {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }
}
@media (max-width: 900px) {
    :root {
        --bvh-header-height: 62px;
    }

    .bvh-header__inner {
        grid-template-columns: 125px minmax(250px, 1fr) auto;
        gap: 13px;
        padding-right: 13px;
        padding-left: 13px;
    }

    .bvh-logo img {
        width: 118px;
        max-height: 37px;
    }

    .bvh-search {
        height: 44px;
    }

        .bvh-search input {
            font-size: .84rem;
        }

    .bvh-search-panel {
        top: calc(var(--bvh-header-height) + env(safe-area-inset-top, 0px) + 14px);
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {
    .bvh-logo img {
        width: 102px;
        max-height: 32px;
    }

    .bvh-header__inner {
        grid-template-columns: minmax(110px, 1fr) auto auto;
        gap: 8px;
        padding-right: max( 9px, env(safe-area-inset-right, 0px) );
        padding-left: max( 9px, env(safe-area-inset-left, 0px) );
    }

    .bvh-logo img {
        width: 116px;
        max-height: 38px;
    }

    .bvh-search {
        display: none;
    }

    .bvh-header-action--search {
        display: grid;
    }

    .bvh-header-action {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
        font-size: .92rem;
    }

    .bvh-profile-trigger {
        width: 41px;
        height: 41px;
        flex-basis: 41px;
    }

    .bvh-header__actions {
        gap: 7px;
    }

    .bvh-auth-actions {
        gap: 5px;
    }

        .bvh-auth-actions a {
            min-height: 36px;
            padding: 7px 10px;
            font-size: .7rem;
        }

    .bvh-auth-actions__signup {
        display: none;
    }

    .bvh-notification-badge {
        top: -5px;
        right: -5px;
        min-width: 19px;
        height: 19px;
        font-size: .56rem;
    }

    /* Busca em tela cheia */

    .bvh-search-layer {
        z-index: 1900;
    }

    .bvh-search-layer__backdrop {
        display: none;
    }

    .bvh-search-panel {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        max-height: none;
        border: 0;
        border-radius: 0;
        transform: none;
        animation: bvh-search-mobile-enter .18s ease;
    }

    @keyframes bvh-search-mobile-enter {
        from {
            opacity: .5;
            transform: translateX(16px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .bvh-search-panel__mobile-header {
        min-height: calc( 58px + env(safe-area-inset-top, 0px) );
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        align-items: end;
        padding: env(safe-area-inset-top, 0px) 9px 8px;
        border-bottom: 1px solid var(--bvh-border-soft);
        background: #ffffff;
    }

        .bvh-search-panel__mobile-header button {
            width: 40px;
            height: 40px;
            display: grid;
            place-items: center;
            padding: 0;
            border: 0;
            border-radius: 50%;
            background: #f1f3f6;
            color: #555c68;
        }

        .bvh-search-panel__mobile-header strong {
            align-self: center;
            color: var(--bvh-text);
            font-size: .95rem;
            text-align: center;
        }

    .bvh-search-panel__field {
        position: relative;
        display: flex;
        align-items: center;
        margin: 13px 12px 6px;
        border: 1px solid #dfe2e8;
        border-radius: 15px;
        background: #f7f8fa;
    }

        .bvh-search-panel__field:focus-within {
            border-color: #eea6c8;
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(255, 7, 135, .08);
        }

        .bvh-search-panel__field > i {
            margin-left: 14px;
            color: var(--bvh-accent);
        }

        .bvh-search-panel__field input {
            min-width: 0;
            height: 49px;
            flex: 1;
            padding: 0 10px;
            border: 0;
            outline: none;
            background: transparent;
            color: var(--bvh-text);
            font-size: .87rem;
        }

        .bvh-search-panel__field button {
            width: 34px;
            height: 34px;
            display: grid;
            place-items: center;
            margin-right: 6px;
            padding: 0;
            border: 0;
            border-radius: 50%;
            background: #e7e9ed;
            color: #626a75;
        }

    .bvh-search-tabs {
        min-height: 64px;
        padding: 11px 12px 12px;
    }

        .bvh-search-tabs button {
            min-height: 40px;
            padding: 8px 14px;
            font-size: .76rem;
        }

    .bvh-search-panel__content {
        padding: 6px 12px 90px;
    }

    .bvh-search-panel__footer {
        display: none;
    }

    .bvh-search-discover {
        grid-template-columns: 1fr;
    }

    .bvh-search-result {
        min-height: 70px;
        grid-template-columns: 54px minmax(0, 1fr) auto;
        padding: 8px;
    }

    .bvh-search-result__media {
        width: 54px;
        height: 54px;
    }

    /* Notificações no celular */

    .bvh-notifications {
        position: static;
    }

    .bvh-notifications-popover {
        position: fixed;
        top: calc( var(--bvh-header-height) + 8px );
        right: 8px;
        left: 8px;
        width: auto;
        max-height: calc( 100dvh - var(--bvh-header-height) - 16px );
    }
}

/* =========================================================
   CELULARES ESTREITOS
   ========================================================= */

@media (max-width: 380px) {
    .bvh-header__inner {
        grid-template-columns: minmax(92px, 1fr) auto auto;
        gap: 5px;
        padding-right: 7px;
        padding-left: 7px;
    }

    .bvh-logo img {
        width: 100px;
    }

    .bvh-header-action {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .bvh-profile-trigger {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}

/* =========================================================
   MOVIMENTO REDUZIDO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .bvh-search,
    .bvh-header-action,
    .bvh-profile-trigger,
    .bvh-auth-actions a,
    .bvh-search-panel,
    .bvh-search-result,
    .bvh-showcase img {
        animation: none;
        transition: none;
    }

    .bvh-search-skeleton__item {
        animation: none;
    }
}
