/* Navegação administrativa com contraste e acabamento liquid glass */
.admin-head {
    position: sticky;
    top: 0;
    z-index: 30;
    isolation: isolate;
    overflow: hidden;
    min-height: 68px;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
    background:
        linear-gradient(120deg, rgba(38, 30, 28, .96), rgba(62, 43, 43, .92) 54%, rgba(47, 34, 32, .96));
    box-shadow: 0 12px 32px rgba(35, 24, 22, .15), inset 0 -1px 0 rgba(255, 255, 255, .04);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.admin-head::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -130% 45% 35% -8%;
    background: radial-gradient(circle, rgba(255, 255, 255, .18), rgba(198, 153, 97, .09) 42%, transparent 68%);
    pointer-events: none;
}

.admin-head .brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    color: #fffdf8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 8px 20px rgba(0, 0, 0, .08);
    white-space: nowrap;
}

.admin-head nav {
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-head nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .045));
    color: rgba(255, 255, 255, .9);
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 5px 14px rgba(0, 0, 0, .06);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}

.admin-head nav a:hover {
    transform: translateY(-1px);
    border-color: rgba(231, 198, 151, .5);
    background: linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(198, 153, 97, .11));
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 9px 20px rgba(0, 0, 0, .12);
}

.admin-head nav a[aria-current="page"] {
    border-color: rgba(229, 191, 139, .72);
    background: linear-gradient(145deg, rgba(255, 255, 255, .24), rgba(198, 153, 97, .16));
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 8px 22px rgba(0, 0, 0, .14), 0 0 0 1px rgba(198, 153, 97, .07);
}

.admin-head nav .nav-logout {
    border-color: rgba(242, 181, 187, .2);
    color: #ffdfe1;
}

.admin-head nav a:focus-visible,
.admin-head .brand:focus-visible {
    outline: 3px solid rgba(232, 199, 151, .75);
    outline-offset: 2px;
}

@media (max-width: 850px) {
    .admin-head {
        display: block;
        min-height: 0;
        padding: 11px 13px 0;
    }

    .admin-head .brand {
        width: fit-content;
        min-height: 38px;
        margin-bottom: 9px;
        padding: 6px 10px;
    }

    .admin-head nav {
        display: flex;
        flex-flow: row nowrap;
        gap: 7px;
        margin: 0 -13px;
        padding: 0 13px 11px;
        overflow-x: auto;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .admin-head nav::-webkit-scrollbar {
        display: none;
    }

    .admin-head nav a {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 8px 12px;
        scroll-snap-align: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-head nav a {
        transition: none;
    }
}
