.mobile-bottom-nav {
    display: none;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav {
        position: fixed;
        z-index: 1050;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        min-height: 72px;
        padding:
            7px
            6px
            calc(7px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(148, 163, 184, .22);
        background: rgba(8, 13, 22, .97);
        box-shadow: 0 -10px 28px rgba(0, 0, 0, .26);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    .mobile-bottom-nav-item {
        position: relative;
        display: flex;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 2px 1px;
        border-radius: .7rem;
        color: #9ca3af;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        transition:
            color .16s ease,
            background-color .16s ease,
            transform .16s ease;
    }

    .mobile-bottom-nav-item:active {
        transform: scale(.96);
    }

    .mobile-bottom-nav-item.active,
    .mobile-bottom-nav-item:hover,
    .mobile-bottom-nav-item:focus {
        color: #fff;
    }

    .mobile-bottom-nav-item.active::before {
        content: "";
        position: absolute;
        top: -7px;
        left: 50%;
        width: 32px;
        height: 3px;
        border-radius: 999px;
        background: #fff;
        transform: translateX(-50%);
    }

    .mobile-bottom-nav-icon {
        position: relative;
        display: grid;
        width: 30px;
        height: 30px;
        place-items: center;
    }

    .mobile-bottom-nav-icon svg {
        width: 28px;
        height: 28px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-bottom-nav-item.active .mobile-bottom-nav-icon svg {
        stroke-width: 2.25;
    }

    .mobile-bottom-nav-label {
        max-width: 100%;
        overflow: hidden;
        font-size: .63rem;
        font-weight: 700;
        letter-spacing: .02em;
        line-height: 1.05;
        text-align: center;
        text-overflow: ellipsis;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .mobile-bottom-nav-badge {
        position: absolute;
        top: -5px;
        right: -12px;
        display: inline-grid;
        min-width: 19px;
        height: 19px;
        padding: 0 5px;
        place-items: center;
        border: 2px solid #080d16;
        border-radius: 999px;
        background: #dc3545;
        color: #fff;
        font-size: .61rem;
        font-weight: 800;
        line-height: 1;
    }

    /*
     * Impede conteúdo importante de ficar escondido pela barra
     * ao navegar para âncoras ou focar campos próximos ao rodapé.
     */
    html {
        scroll-padding-bottom: 95px;
    }
}

@media (max-width: 390px) {
    .mobile-bottom-nav {
        padding-left: 2px;
        padding-right: 2px;
    }

    .mobile-bottom-nav-label {
        font-size: .56rem;
    }

    .mobile-bottom-nav-icon svg {
        width: 25px;
        height: 25px;
    }
}


/* Botão central Publicar */
@media (max-width: 991.98px) {
    .mobile-bottom-nav-publish {
        overflow: visible;
    }

    .mobile-bottom-nav-publish::before {
        display: none !important;
    }

    .mobile-bottom-nav-publish-button {
        display: grid;
        width: 54px;
        height: 54px;
        margin-top: -26px;
        place-items: center;
        border: 4px solid #080d16;
        border-radius: 50%;
        background: linear-gradient(135deg, #ff3158, #c62828);
        color: #fff;
        box-shadow: 0 8px 22px rgba(198, 40, 40, .42);
        transition: transform .16s ease, box-shadow .16s ease;
    }

    .mobile-bottom-nav-publish-button svg {
        width: 28px;
        height: 28px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.4;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-bottom-nav-publish:hover .mobile-bottom-nav-publish-button,
    .mobile-bottom-nav-publish:focus .mobile-bottom-nav-publish-button,
    .mobile-bottom-nav-publish.active .mobile-bottom-nav-publish-button {
        transform: translateY(-2px) scale(1.04);
        box-shadow: 0 10px 26px rgba(198, 40, 40, .52);
    }

    .mobile-bottom-nav-publish-label {
        margin-top: 1px;
        color: #fff;
    }
}
