/* ==========================================================================
   INTERFACE FOOTER NAVIGATION BAR (AUTO-SHOW ON SCROLL)
   ========================================================================== */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 995;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(226, 184, 87, 0.25);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.65);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    
    /* Tersembunyi di bawah skrin secara lalai */
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-nav.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    text-align: center;
}

.mobile-nav .nav-item b {
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: normal;
}

.mobile-nav .nav-item:hover,
.mobile-nav .nav-item:active {
    background: rgba(226, 184, 87, 0.14);
    color: #e2b857;
    transform: translateY(-2px);
}

/* Beri ruang tambahan di bahagian paling bawah halaman supaya footer tidak terlindung oleh menu */
body {
    padding-bottom: 74px;
}

@media (max-width: 400px) {
    .mobile-nav .nav-item {
        font-size: 0.65rem;
        padding: 5px 2px;
    }
    .mobile-nav .nav-item b {
        font-size: 0.85rem;
    }
}
