        </div>
        <footer class="mt-auto border-t border-dark-700" style="background:#111;">
            <div class="flex items-center justify-between px-6 py-3 text-xs text-dark-500">
                <span>Master Panel &copy; <?php echo date('Y'); ?></span>
                <span><?php $c = db_config(); echo $c ? h($c['display_name']) : ''; ?></span>
            </div>
        </footer>
    </main>
</div>

<!-- Toast container -->
<div id="toast-host" class="fixed top-4 right-4 z-[9999] flex flex-col gap-2"></div>

<script src="https://cdn.jsdelivr.net/npm/@alpinejs/collapse@3.x.x/dist/cdn.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js" defer></script>
<!-- app.js moved to page_header.php so inline scripts can rely on toast/api. -->

</body>
</html>
