/* ===== НАВБАР - БАЗОВЫЙ КВАДРАТНЫЙ ===== */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 8, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 50, 50, 0.15);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 100;
    padding: 6px 0 env(safe-area-inset-bottom, 6px) 0;
}

.bottom-bar-inner {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 8px;
}

.nav-items-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 60px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #8a757a;
    font-size: 10px;
    font-weight: 500;
    padding: 4px 12px;
    background: transparent;
    border: none;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    min-width: 50px;
    height: 100%;
    border-radius: 0;
}

.nav-item i {
    font-size: 22px;
    transition: color 0.2s ease;
}

.nav-item span {
    font-size: 10px;
    white-space: nowrap;
}

/* Активный пункт */
.nav-item.active {
    color: #ff6b6b;
}

.nav-item.active i {
    color: #ff4444;
}

/* Индикатор активного пункта — полоска сверху */
.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #e63946);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 12px rgba(255, 50, 50, 0.4);
}

/* Ховер эффект */
.nav-item:active {
    transform: scale(0.92);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 420px) {
    .nav-items-wrapper {
        height: 54px;
    }
    .nav-item {
        padding: 4px 6px;
        min-width: 40px;
    }
    .nav-item i {
        font-size: 19px;
    }
    .nav-item span {
        font-size: 9px;
    }
    .nav-item.active::before {
        width: 18px;
        height: 2px;
    }
}

/* Безопасная зона для iPhone */
@supports (padding: max(0px)) {
    .bottom-bar {
        padding-bottom: max(6px, env(safe-area-inset-bottom, 6px));
    }
}