/* Mobile bottom navigation */
.footer-nav {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    padding: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(26, 43, 74, 0.08);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1040;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.footer-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.55rem 0.25rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
    color: #64748b;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    transition: color 0.2s, background 0.2s;
    position: relative;
    min-height: 60px;
}

.footer-nav-item i {
    font-size: 1.15rem;
}

.footer-nav-item:hover,
.footer-nav-item.active {
    color: #1a2b4a;
    background: #f0f4ff;
}

.footer-nav-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 22px);
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50px;
    background: #e63946;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

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

/* Body padding for mobile bottom bar */
@media (max-width: 767px) {
    body:has(.footer-nav) {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

.hidden {
    display: none !important;
}
