</div> <!-- .page-container বন্ধ -->

    <!-- ======================= ফুটার ======================= -->
    <footer>
        <a href="index.php?user_id=<?php echo $user_id; ?>" class="<?php echo ($current_page === 'home') ? 'active' : ''; ?>">🏠</a>
        <a href="wallet.php?user_id=<?php echo $user_id; ?>" class="<?php echo ($current_page === 'wallet') ? 'active' : ''; ?>">💼</a>
        <a href="refer.php?user_id=<?php echo $user_id; ?>" class="nav-item-main <?php echo ($current_page === 'refer') ? 'active' : ''; ?>">⇄</a>
        <a href="profile.php?user_id=<?php echo $user_id; ?>" class="<?php echo ($current_page === 'profile') ? 'active' : ''; ?>">👤</a>
        <a href="settings.php?user_id=<?php echo $user_id; ?>" class="<?php echo ($current_page === 'settings') ? 'active' : ''; ?>">⚙️</a>
    </footer>

    <!-- ======================= JavaScript কোড ======================= -->
    <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>
    <script>
        const tg = window.Telegram.WebApp;
        tg.ready();
        tg.expand();
        tg.setHeaderColor('#161922'); // ডার্ক থিমের সাথে হেডার রঙ মেলানো
    </script>
</body>
</html>
<?php
$conn->close();
?>