                    <div class="dbm-content-header">
                        <div class="dbm-breadcrumb">
                            <a href="<?php echo Config::get('URL'); ?>dbuser/index">Users</a>
                            <span class="separator">/</span>
                            <span><?php echo htmlspecialchars($this->user->User); ?>@<?php echo htmlspecialchars($this->user->Host); ?></span>
                            <span class="separator">/</span>
                            <span>Privileges</span>
                        </div>
                        <div class="dbm-title">
                            <h1>User Privileges</h1>
                        </div>
                        <div class="dbm-actions">
                            <a href="<?php echo Config::get('URL'); ?>dbuser/edit/<?php echo urlencode($this->user->User); ?>/<?php echo urlencode($this->user->Host); ?>" class="dbm-btn dbm-btn-secondary">
                                <i data-lucide="pencil"></i>
                                Edit User
                            </a>
                        </div>
                    </div>

                    <div class="dbm-content-body">
                        <div class="dbm-card">
                            <div class="dbm-card-header">
                                <h3>Grant Statements</h3>
                            </div>
                            <div class="dbm-card-body">
                                <?php if (!empty($this->privileges)): ?>
                                    <?php foreach ($this->privileges as $grant): ?>
                                        <div style="font-family: monospace; font-size: 11px; padding: 10px; background: var(--dbm-bg-secondary); border-radius: var(--dbm-radius); margin-bottom: 8px; word-break: break-all; border: 1px solid var(--dbm-border);">
                                            <?php echo htmlspecialchars($grant); ?>
                                        </div>
                                    <?php endforeach; ?>
                                <?php else: ?>
                                    <p style="color: var(--dbm-text-muted); font-size: 13px; margin: 0;">No privileges found for this user.</p>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
