/* ============ MOBILE BOTTOM NAVIGATION ============ */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid #e5e5e5;
    padding: 0.4rem 0.5rem;
    padding-bottom: max(0.4rem, env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.3rem 0.5rem;
    text-decoration: none;
    color: #8e8e9a;
    transition: all 0.2s ease;
    border-radius: 10px;
    min-width: 60px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item:active {
    transform: scale(0.92);
}

.mobile-nav-item.active {
    color: #009933;
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #009933;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 0 8px rgba(0,153,51,0.3);
}

.mobile-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    transition: all 0.2s ease;
    color: #8e8e9a;
}

.mobile-nav-item.active .mobile-nav-icon {
    color: #009933;
}

.mobile-nav-item.active .mobile-nav-icon svg {
    stroke: #009933;
}

.mobile-nav-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1;
    color: #1a1a2e;
}

.mobile-nav-item.active .mobile-nav-label {
    color: #009933;
}

.mobile-nav-badge {
    position: absolute;
    top: 0;
    right: 2px;
    background: #e63946;
    color: #fff;
    font-size: 0.5rem;
    font-weight: 800;
    padding: 0.1rem 0.35rem;
    border-radius: 50px;
    animation: mobilePulse 2s infinite;
    line-height: 1.2;
}

@keyframes mobilePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(230,57,70,0); }
}

.mobile-nav-count {
    position: absolute;
    top: -2px;
    right: 2px;
    background: #009933;
    color: #fff;
    font-size: 0.5rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Desktop: Hide mobile nav */
@media (min-width: 951px) {
    .mobile-nav {
        display: none !important;
    }
}

/* Tablet & Mobile: Show mobile nav, add bottom padding */
@media (max-width: 950px) {
    .mobile-nav {
        display: flex !important;
    }
    
    body {
        padding-bottom: 85px !important;
    }
    
    .footer {
        padding-bottom: 100px !important;
    }
    
    .main-wrapper {
        padding-bottom: 1rem !important;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .mobile-nav {
        padding: 0.3rem 0.3rem;
    }
    .mobile-nav-item {
        padding: 0.2rem 0.3rem;
        min-width: 50px;
    }
    .mobile-nav-label {
        font-size: 0.55rem;
    }
    .mobile-nav-icon svg {
        width: 20px;
        height: 20px;
    }
}