🎮 Color Prediction Game – Full Feature & Logic Report
👥 System Roles
1. Admin
      Manages users, game logic, transactions, referral settings, and profits.
2. Registered Users
      Can register, log in, play the game, track wallet, refer others, and withdraw earnings.
🛠 Admin Panel Features
      Secure admin login
      View, edit, delete user accounts
      Monitor all bets, deposits, withdrawals
      Review and process UPI deposits
      Review and pay withdrawals manually
      Set/update payment statuses
      View profit and referral reports
      Update sliders, running banner, rules, and policy pages
      Set game logic: Random / Low Bet Wins / Manual
      Set round durations: 15s, 30s, 1min, 3min
      Set max bet limits per round
      Manage referral earnings and custom bonuses
👤 User Features
      Register with mobile number & password
      Login and reset password via WhatsApp/Telegram (no OTP)
      Update profile and bank details
      Play color prediction game with multiple bets
      Track all betting, deposit, and withdrawal history
        Request withdrawals directly to bank
        Refer others and earn lifetime commission
        Mobile-only responsive interface
⏱ Game Modes & Timing
Game Mode Total Time Bet Window Freeze Time Rounds/Day
15 sec         15s        10s           5s           5760
30 sec         30s        25s           5s           2880
1 min          60s        55s           5s           1440
3 min          180s       175s          5s           480
🎯 Unified Payout Logic (All Game Modes)
Example: User bets ₹100 → ₹2 fee deducted → Contract Amount = ₹98
1. Green
        Win on 1, 3, 7, 9 → ₹98 × 2 = ₹196
        Win on 5 → ₹98 × 1.5 = ₹147
2. Red
        Win on 2, 4, 6, 8 → ₹98 × 2 = ₹196
        Win on 0 → ₹98 × 1.5 = ₹147
3. Violet
        Win on 0 or 5 → ₹98 × 4.5 = ₹441
4. Number (0–9)
        Exact match → ₹98 × 9 = ₹882
5. Big (5–9)
        Win → ₹98 × 2 = ₹196
6. Small (0–4)
        Win → ₹98 × 2 = ₹196
🧠 Game Result Logic
Admin can set logic type:
      🎲 Random (used when no bets placed)
      💸 Low Bet Wins (system favors side with lowest total amount)
      🛠 Manual (admin sets result manually)
🔗 Referral Program
      New user signup bonus (set by admin)
      Referrer earns lifetime percentage of referred user's bets
      Admin can give manual bonus to top referrers
💰 Deposit Process
   1. User enters deposit amount and UPI ref ID
   2. Optionally uploads screenshot
   3. Admin reviews and approves manually
   4. Wallet is updated
🏦 Withdrawal Process
   1. User enters amount + bank details
   2. Admin reviews and pays manually
   3. Status marked “Completed” after payment
   4. User sees full history
🔐 Forgot Password (No OTP)
      Clicking "Forgot Password" redirects to WhatsApp/Telegram
      Pre-filled message includes mobile number
      Admin manually resets after verifying
📱 Mobile-Only Interface
      App UI designed for mobile-first experience
      Even on desktop, UI is fixed to mobile width (max-width 480px)
      Finger-friendly buttons, minimal layout, and fast response