.lf-bnav { display: none; }

@media (max-width: 768px) {
    .lf-bnav {
        --bn-primary: #2196f3;
        --bn-primary-soft: rgba(33, 150, 243, .12);
        --bn-text: #718096;
        --bn-bg: #ffffff;
        --bn-border: #edf2f7;
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1005;
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--bn-bg);
        transform: translateY(0);
        transition: transform .35s cubic-bezier(.22, 1, .36, 1);
        border-top: 1px solid var(--bn-border);
        box-shadow: 0 -6px 24px -12px rgba(15, 23, 42, .18);
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        -webkit-font-smoothing: antialiased;
        -webkit-tap-highlight-color: transparent;
    }
    html.lf-dark .lf-bnav {
        --bn-primary: #42a5f5;
        --bn-primary-soft: rgba(66, 165, 245, .16);
        --bn-text: #7c8798;
        --bn-bg: #0a0a0a;
        --bn-border: rgba(255, 255, 255, .08);
        box-shadow: 0 -6px 24px -12px rgba(0, 0, 0, .8);
    }

    .lf-bnav-in {
        position: relative;
        overflow: hidden;
        height: var(--lf-bnav-h, 64px);
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        max-width: 560px;
        margin: 0 auto;
        padding: 0 6px;
    }

    .lf-bnav.lf-bnav-hidden { transform: translateY(calc(100% + 2px)); box-shadow: none; }

    .lf-bnav-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: var(--bn-text);
        text-decoration: none;
        transition: color .2s;
    }
    .lf-bnav-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        width: 28px;
        height: 3px;
        margin-left: -14px;
        border-radius: 0 0 4px 4px;
        background: var(--bn-primary);
        transform: scaleX(0);
        transition: transform .3s cubic-bezier(.22, 1, .36, 1);
    }

    .lf-bnav-ico {
        position: relative;
        width: 52px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 99px;
        font-size: 18px;
        transition: background-color .25s, transform .25s cubic-bezier(.22, 1, .36, 1);
    }
    .lf-bnav-label { font-size: 11px; font-weight: 600; letter-spacing: .1px; line-height: 1; }

    .lf-bnav-item.active { color: var(--bn-primary); }
    .lf-bnav-item.active::before { transform: scaleX(1); }
    .lf-bnav-item.active .lf-bnav-label { font-weight: 700; }
    .lf-bnav-item:active .lf-bnav-ico { transform: scale(.9); }

    .lf-bnav-badge {
        position: absolute;
        top: -2px;
        left: 30px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 99px;
        border: 2px solid #fff;
        background: #ef4444;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
    }
    html.lf-dark .lf-bnav-badge { border-color: #0a0a0a; }
    .lf-bnav-badge[hidden] { display: none; }
    .lf-bnav-badge.bump { animation: lfBnBump .4s cubic-bezier(.22, 1, .36, 1); }
    @keyframes lfBnBump { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

    .lf-bnav-item:focus-visible { outline: none; }
    .lf-bnav-item:focus-visible .lf-bnav-ico { outline: 2px solid var(--bn-primary); outline-offset: 2px; }
}