    <!-- Mobile bottom spacer: keeps content above the fixed bottom nav -->
    <div class="lg:hidden h-20 flex-shrink-0"></div>
   </main>
                            </div>
                                </div>

    <!-- Mobile Bottom Navigation -->
    <nav class="lg:hidden fixed bottom-0 left-0 right-0 z-40 bg-white dark:bg-gray-900 border-t border-gray-200/50 dark:border-gray-700/50 shadow-top">
        <div class="flex items-center justify-around px-2 py-2">
            <a href="index" class="flex flex-col items-center gap-1 px-3 py-1.5 rounded-xl <?php echo ($_current_page === 'index') ? 'text-primary-600 dark:text-primary-400' : 'text-gray-500 dark:text-gray-400'; ?>">
                <i class="fa-solid fa-house text-lg"></i>
                <span class="text-[10px] font-semibold">Home</span>
            </a>
            <a href="localtransfer" class="flex flex-col items-center gap-1 px-3 py-1.5 rounded-xl <?php echo ($_current_page === 'localtransfer' || $_current_page === 'internationaltransfer') ? 'text-primary-600 dark:text-primary-400' : 'text-gray-500 dark:text-gray-400'; ?>">
                <i class="fa-solid fa-paper-plane text-lg"></i>
                <span class="text-[10px] font-semibold">Transfer</span>
            </a>
            <a href="accounthistory" class="flex flex-col items-center gap-1 px-3 py-1.5 rounded-xl <?php echo ($_current_page === 'accounthistory') ? 'text-primary-600 dark:text-primary-400' : 'text-gray-500 dark:text-gray-400'; ?>">
                <i class="fa-solid fa-chart-line text-lg"></i>
                <span class="text-[10px] font-semibold">History</span>
            </a>
            <a href="cards" class="flex flex-col items-center gap-1 px-3 py-1.5 rounded-xl <?php echo ($_current_page === 'cards') ? 'text-primary-600 dark:text-primary-400' : 'text-gray-500 dark:text-gray-400'; ?>">
                <i class="fa-solid fa-credit-card text-lg"></i>
                <span class="text-[10px] font-semibold">Cards</span>
            </a>
            <a href="account-settings" class="flex flex-col items-center gap-1 px-3 py-1.5 rounded-xl <?php echo ($_current_page === 'account-settings') ? 'text-primary-600 dark:text-primary-400' : 'text-gray-500 dark:text-gray-400'; ?>">
                <i class="fa-solid fa-gear text-lg"></i>
                <span class="text-[10px] font-semibold">Account</span>
            </a>
        </div>
    </nav>

    <!-- Enhanced Page Loading Animation -->
    <script>
        window.onload = function() {
            const preloader = document.querySelector('.page-loading');
            
            // Add a slight delay to make loading animation more noticeable
            setTimeout(function() {
                preloader.classList.remove('active');
                setTimeout(function() {
                    preloader.remove();
                }, 500);
            }, 800);
        };
    </script>
        
    <script>
        function toggleLanguageBar() {
            document.getElementById('languageBar').classList.toggle('show');
        }
        function closeLanguageBar() {
            document.getElementById('languageBar').classList.remove('show');
        }
        function selectLanguage(lang) {
            document.querySelectorAll('.lang-btn').forEach(function(btn) { btn.classList.remove('active'); });
            var clicked = event ? event.target.closest('.lang-btn') : null;
            if (clicked) clicked.classList.add('active');
            if (lang === 'en') { location.reload(); return; }
            var attempts = 0;
            var interval = setInterval(function() {
                attempts++;
                var select = document.querySelector('.goog-te-combo');
                if (select) {
                    clearInterval(interval);
                    select.value = lang;
                    select.dispatchEvent(new Event('change'));
                    if (select.onchange) select.onchange();
                }
                if (attempts > 30) clearInterval(interval);
            }, 100);
            setTimeout(closeLanguageBar, 800);
        }
    </script>
</body>
</html>