/* ============================================================
   МОБИЛЬНАЯ НИЖНЯЯ НАВИГАЦИЯ — МИНИМАЛИСТИЧНАЯ
   ============================================================ */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0 env(safe-area-inset-bottom, 6px) 0;
    background: linear-gradient(135deg, #d4c5b5 0%, #c4b5a5 100%);
    border-top: 1px solid rgba(200, 185, 170, 0.5);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    height: 60px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    
    /* ===== ПЛАВНОЕ СКРЫТИЕ ===== */
    transition: transform 0.35s cubic-bezier(0.32, 0.94, 0.6, 1), opacity 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

/* ===== СКРЫТОЕ СОСТОЯНИЕ ===== */
.mobile-bottom-nav.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* ===== ПОКАЗЫВАТЬ ТОЛЬКО НА МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 70px;
    }
}

/* ===== НА ДЕСКТОПЕ — СКРЫВАЕМ ===== */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    body {
        padding-bottom: 0 !important;
    }
}

/* ===== АДАПТАЦИЯ ДЛЯ МАЛЕНЬКИХ ТЕЛЕФОНОВ ===== */
@media (max-width: 480px) {
    .mobile-bottom-nav {
        height: 54px;
        padding: 4px 0 env(safe-area-inset-bottom, 4px) 0;
    }
    body {
        padding-bottom: 62px;
    }
}

/* ===== БЕЗОПАСНАЯ ЗОНА (iPhone X и выше) ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-bottom-nav {
        padding-bottom: calc(6px + env(safe-area-inset-bottom));
    }
}

/* ===== ОСТАЛЬНЫЕ СТИЛИ ЭЛЕМЕНТОВ ===== */
.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    text-decoration: none;
    color: #7a6b5e;
    font-size: 0.5rem;
    padding: 2px 6px;
    min-width: 48px;
    position: relative;
    transition: color 0.25s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.mobile-bottom-nav .nav-item .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}

.mobile-bottom-nav .nav-item .nav-icon svg {
    width: 22px;
    height: 22px;
    stroke: #7a6b5e;
    stroke-width: 1.8;
    transition: stroke 0.25s ease;
    fill: none;
}

.mobile-bottom-nav .nav-item .nav-label {
    font-weight: 400;
    letter-spacing: 0.2px;
    font-size: 0.45rem;
    line-height: 1.2;
    color: #7a6b5e;
    transition: color 0.25s ease;
}

.mobile-bottom-nav .nav-item.active .nav-icon svg {
    stroke: #6b4f38;
}

.mobile-bottom-nav .nav-item.active .nav-label {
    color: #6b4f38;
}

.mobile-bottom-nav .nav-item .nav-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #6b4f38;
    color: #fff;
    font-size: 0.45rem;
    font-weight: 500;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    letter-spacing: 0.2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mobile-bottom-nav .nav-item .nav-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #7a6b5e;
    transition: border-color 0.25s ease;
}

.mobile-bottom-nav .nav-item.active .nav-avatar {
    border-color: #6b4f38;
}