Earning Bot - Final New Installation

1. Import: faucetpanda_trx_final.sql (into an EMPTY database — it's a clean
   fresh-install script, no leftover test data).
2. Configure config.php/database.php.
3. Admin panel: /earningbot/admin/
4. Default admin username: admin
   Default password: admin123 — change this from Admin -> Settings after
   your first login.
5. In Admin -> Settings -> Monetag:
   - Put your Monetag main SDK zone ID.
   - Paste the SDK <script> tag supplied by Monetag into Monetag SDK Tag.
6. Daily Streak and Spin Wheel require a Monetag rewarded interstitial ad before the reward is credited.
7. Configure tasks, daily streak rewards, referrals and rank rewards in Admin.
8. Spin Wheel: Admin -> Rewards -> Spin Wheel.
   - "Spin Enabled" turns the whole feature on/off.
   - Each segment has a Label, Coins, Weight and an Active toggle. Weight
     sets the odds — the spin is a weighted random draw, so a segment
     with more weight wins more often (weights don't need to add up to
     100; the panel shows each segment's live win % as you type). Use
     "Add Segment" for more rows, or untick Active to disable one without
     losing its settings. The coin amount configured here is shown
     centered inside that slice on the wheel in the Mini App.
9. Rank rewards are distributed when the configured reward date is reached. For truly automatic execution, add a server cron:
   * * * * * /usr/bin/php /home/USERNAME/public_html/earningbot/cron/distribute_ranks.php >/dev/null 2>&1
10. Withdrawal method is ONE at a time: FaucetPay or OxaPay.
11. Direct BSC private-key withdrawal has been removed.

Monetag notes:
- The Mini App uses Monetag Rewarded Interstitial.
- Monetag documentation recommends preloading and handling the Promise resolution before granting rewards.
- Test ads inside Telegram, not only in a normal browser.

What changed in this update:
- Spin Wheel now renders as a real wheel sized to each segment's weight,
  with the coin amount centered inside every slice, built from whatever
  segments are configured in Admin (previously a static placeholder).
- The Mini App's icons are now FontAwesome instead of emoji (loaded from
  the free cdnjs FontAwesome CDN). The Telegram bot's own chat messages
  (webhook.php / functions.php) intentionally still use emoji — Telegram
  message text can't render an icon font, only Unicode emoji, so those
  were left as-is.
- Fixed a bug where the Daily Streak button could keep showing "Watch Ad
  & Claim" after a successful claim instead of "Already Claimed": the
  claim was recorded using PHP's local date but re-checked with MySQL's
  CURDATE(), which can disagree with PHP's date near midnight if the DB
  server's time zone differs from the one set in config.php. Both sides
  now use the same PHP-generated date. Already-claimed streak days are
  now also visually darkened with a checkmark badge in the Mini App.
- Admin -> Rewards -> Spin Wheel: added the Active toggle per segment,
  an "Add Segment" button, and a live win-% readout per segment.
- faucetpanda_trx_final.sql was rewritten as a single clean fresh-install
  script: no leftover developer/test data, and three unused legacy
  tables (tasks, task_attempts, earn_more_items) were dropped. See the
  comment block at the top of that file for the full list of changes.

Note: config.php / database.php in this zip still contain the bot token
and DB credentials from your uploaded copy, carried over unchanged.

