<?php
// includes/topbar.php
require_once __DIR__ . '/auth.php';
$u = ec_user();
?>
<div class="d-flex align-items-center gap-2">
  <!-- bell, etc... -->
  <a class="btn btn-outline-light btn-sm d-flex align-items-center" href="/edenrms/pages/profile.php">
    <img src="<?= htmlspecialchars($u['avatar_url'] ?? '/edenrms/assets/user.png') ?>" class="rounded-circle me-2" width="22" height="22" alt="">
    <span><?= htmlspecialchars($u['name'] ?? 'User') ?></span>
    <!-- 🔕 removed role text -->
  </a>
</div>
