<?php
require_once(__DIR__ . "/auth.php");
$pageTitle = $pageTitle ?? "Dashboard";
$userName = $user["name"] ?? "Sub Admin";
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title><?= htmlspecialchars($pageTitle) ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../assets/css/mobile-premium.css">
</head>
<body>
<div class="app-shell">
    <div class="top-header">
        <div>
            <h3><?= htmlspecialchars($pageTitle) ?></h3>
            <p><?= htmlspecialchars($userName) ?></p>
        </div>
        <a href="profile.php" class="avatar" aria-label="Profile">
            <?= htmlspecialchars(strtoupper(substr($userName, 0, 1))) ?>
        </a>
    </div>

    <main class="content">
