.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(232, 232, 232, 0.9);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.07);
    padding: 0 2px env(safe-area-inset-bottom, 0);
    height: calc(var(--nav-height, 64px) + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: stretch;
    justify-content: space-around;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    min-width: 0;
    max-width: 88px;
    color: #8d9aa3;
    font-size: 10px;
    font-weight: 600;
    padding: 6px 4px 8px;
    position: relative;
    text-decoration: none;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s, transform 0.12s;
}

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

.bottom-nav .nav-item .nav-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 30px;
}

.bottom-nav .nav-item .nav-icon-wrap::before {
    content: '';
    position: absolute;
    inset: -4px -8px;
    border-radius: 14px;
    background: transparent;
    transition: background 0.2s;
    z-index: -1;
}

.bottom-nav .nav-item.active {
    color: var(--primary, #FF6B35);
}

.bottom-nav .nav-item.active .nav-icon-wrap::before {
    background: rgba(255, 107, 53, 0.12);
}

.bottom-nav .nav-item svg {
    width: 23px;
    height: 23px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: stroke 0.2s, fill 0.2s, transform 0.2s;
}

.bottom-nav .nav-item.active svg {
    stroke: var(--primary, #FF6B35);
    fill: var(--primary, #FF6B35);
    transform: translateY(-1px);
}

.bottom-nav .nav-item .nav-label {
    font-size: 9px;
    line-height: 1.15;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.bottom-nav .nav-item .nav-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger, #E74C3C);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.35);
    line-height: 1;
}

.bottom-nav .nav-item .nav-badge.is-empty {
    display: none;
}

@media (max-width: 380px) {
    .bottom-nav .nav-item .nav-label {
        font-size: 8px;
    }
    .bottom-nav .nav-item svg {
        width: 21px;
        height: 21px;
    }
}

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