-- Run this once in phpMyAdmin (select the database, then SQL tab).
-- Reorders the main menu buttons and renames "افزایش موجودی" to "کیف پول".
-- Colors (green/blue/plain) are handled in code (includes/helpers.php,
-- main_menu_keyboard()) — this file only sets the order + the one label.

UPDATE menu_buttons SET sort_order = 1 WHERE button_key = 'buy';
UPDATE menu_buttons SET sort_order = 2, label = 'کیف پول 💰' WHERE button_key = 'charge';
UPDATE menu_buttons SET sort_order = 3 WHERE button_key = 'link_sub';
UPDATE menu_buttons SET sort_order = 4 WHERE button_key = 'free_test';
UPDATE menu_buttons SET sort_order = 5 WHERE button_key = 'plans_info';
UPDATE menu_buttons SET sort_order = 6 WHERE button_key = 'account';
UPDATE menu_buttons SET sort_order = 7 WHERE button_key = 'referral';
UPDATE menu_buttons SET sort_order = 8 WHERE button_key = 'support';
UPDATE menu_buttons SET sort_order = 9 WHERE button_key = 'about';
-- keeps تعرفه‌ها / نمایندگی (not mentioned in the new order) tucked at the end,
-- wherever they land, instead of disrupting the 9 buttons above
UPDATE menu_buttons SET sort_order = 50 WHERE button_key IN ('tariffs', 'reseller');
