========================================================
  Registration site — setup (5 minutes)
========================================================

WHAT YOU GET
------------
  index.php   → the elegant 2-step page (username, then name)
  submit.php  → receives the data, sends Telegram + Email, redirects
  admin.php   → password-protected panel to view/export all clients
  config.php  → your settings (edit this file only)
  lib.php     → shared code (don't touch)
  .htaccess   → security (protects config + data)
  data/       → where registrations are stored (created automatically)


STEP 1 — Upload
---------------
Upload ALL files (including the hidden .htaccess files and the
empty data/ folder) to your cPanel public_html (or a subfolder).


STEP 2 — Edit config.php
------------------------
Open config.php and set:

  TELEGRAM_TOKEN     → your NEW bot token (revoke the old one in @BotFather first!)
  TELEGRAM_CHAT_ID   → your chat id (already filled)
  RECEIVE_EMAIL      → the email that should receive registrations
  REDIRECT_URL       → where clients go after registering (your download/thank-you page)
  ADMIN_PASSWORD     → a strong password for the admin panel — CHANGE THIS
  BRAND_NAME         → your program's name (shown on the page)


STEP 3 — Add your logo (optional)
---------------------------------
Put a file named  logo.png  in the same folder.
It appears automatically at the top of the page.
No logo? The BRAND_NAME text shows instead — still looks clean.


STEP 4 — Test
-------------
  • Open your site → you should see the "Sign in" page.
  • Enter a test username → Next → a name → Register.
  • Check Telegram + Email → you should get the details.
  • Open  yoursite.com/admin.php  → log in → see the entry.


NOTES
-----
  • Telegram is the reliable channel. Email (especially Hotmail/Outlook)
    can land in spam or be blocked by cheap hosting — that's a hosting
    limitation, not a bug. Every registration is ALSO saved to data/ and
    shown in admin.php, so you never lose anyone even if email fails.

  • The admin panel "Export to Excel" button downloads a CSV that opens
    directly in Excel (Arabic/emoji safe).

  • Security: config.php and the data/ folder are blocked from the browser
    by .htaccess. Keep your ADMIN_PASSWORD private.
