bottom-nav {
    display: block;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navbg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-top: 1px solid var(--brd);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 max(env(safe-area-inset-bottom), 16px);
    z-index: 50;
    transition: background .3s, border-color .3s, transform .35s cubic-bezier(.32, .94, .6, 1);
    height: var(--nav-h, 78px);
}

.bottom-nav.hidden-nav {
    transform: translateY(100%);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 6px clamp(8px, 3vw, 14px);
    border-radius: 14px;
    transition: background .15s;
    position: relative;
    background: none;
    border: none;
    text-decoration: none;
    color: inherit;
}
.nav-item:hover {
    background: var(--pdim);
}
.nav-item svg {
    width: clamp(20px, 5vw, 24px);
    height: clamp(20px, 5vw, 24px);
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke .15s;
}
.nav-item span {
    font-size: clamp(9px, 2vw, 10px);
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .03em;
}
.nav-item.active svg {
    stroke: var(--p);
}
.nav-item.active span {
    color: var(--p);
}
.nav-item .nav-badge {
    position: absolute;
    top: 3px;
    right: clamp(4px, 2vw, 6px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--p);
    border: 1.5px solid var(--bg);
}

.nav-av {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #1a1035, #3b1a6b);
}
.nav-item.active .nav-av {
    border-color: var(--p);
}

.add-post-btn {
    background: var(--p);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--pglow);
    transform: translateY(-2px);
    flex-shrink: 0;
    transition: transform .15s, box-shadow .15s;
}
.add-post-btn:active {
    transform: translateY(-2px) scale(.92);
}
.add-post-btn svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* ─── Dark‑mode fix: remove blur artifacts ─── */
[data-theme="dark"] .bottom-nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--navbg);
}

@media (min-width: 768px) {
    .bottom-nav {
        display: none !important;
    }
}
