<?php
$current = sanitize_key($_GET['tab'] ?? 'profile');
function stakmv_tab($slug, $label) {
    global $current;
    $active = $current === $slug ? 'active' : '';
    echo "<a class='wcmv-tab $active' href='?tab=$slug'>$label</a>";
}
?>

<div class="wcmv-tabs">
    <?php
    stakmv_tab('profile', '👤 Profile');
    stakmv_tab('balance', '💳 Balance');
    stakmv_tab('listings', '📦 My Listings');
    stakmv_tab('bids', '📈 My Bids');
    stakmv_tab('settings', '⚙ Settings');
    ?>
</div>
