.bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: var(--nav-height);
    padding: 7px max(6px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: rgba(7, 27, 25, .96);
    color: rgba(255, 255, 255, .62);
    box-shadow: 0 -12px 30px rgba(7, 27, 25, .16);
    backdrop-filter: blur(20px);
}
.bottom-nav a {
    position: relative;
    min-width: 0;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 14px;
    transition: color .2s ease, background .2s ease;
}
.bottom-nav a.active { color: var(--lime); }
.bottom-nav a.active::before {
    content: "";
    position: absolute;
    top: -7px;
    width: 28px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--lime);
}
.nav-icon { display: grid; place-items: center; width: 24px; height: 24px; font-size: 1.28rem; line-height: 1; }
.nav-label { max-width: 100%; overflow: hidden; font-size: .66rem; font-weight: 750; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 860px) {
    .bottom-nav {
        right: 24px;
        bottom: 20px;
        left: auto;
        width: 440px;
        min-height: 68px;
        padding: 6px;
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 22px;
    }
    .bottom-nav a { min-height: 54px; }
    .bottom-nav a.active::before { top: -6px; }
}
