<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
    <?php 
    $items = [
        ['title' => 'Total Received', 'val' => format_currency($stats['total_received'] ?? 0), 'color' => 'text-emerald-400'],
        ['title' => 'Total Withdraw', 'val' => format_currency($withdraw['total_withdraw'] ?? 0), 'color' => 'text-rose-400'],
        ['title' => 'Total Commission', 'val' => format_currency($stats['total_comm'] ?? 0), 'color' => 'text-purple-400']
    ];
    foreach($items as $i): ?>
    <div class="glass-card p-6 rounded-2xl border border-slate-800 bg-slate-950/50">
        <div class="text-[10px] uppercase font-bold text-slate-500 mb-2"><?=$i['title']?></div>
        <div class="text-2xl font-black font-mono <?=$i['color']?>"><?=$i['val']?></div>
    </div>
    <?php endforeach; ?>
</div>
