========================================
  NAMECHEAP UPLOAD – ONE ZIP, FEW STEPS
========================================
Document root stays public_html. No need to change it.

----------------------------------------
STEP 1: UPLOAD & EXTRACT
----------------------------------------
1. cPanel → File Manager → public_html.
2. (Optional) Delete or rename old index.php, .htaccess, and backend folder.
3. Upload loyalgrowth-upload.zip into public_html.
4. Right-click the zip → Extract.
5. You should see:
   - index.php
   - .htaccess
   - backend/
   - CREATE-USERS-TABLE.sql
   - README-UPLOAD.txt (this file)

----------------------------------------
STEP 2: CREATE THE USERS TABLE
----------------------------------------
1. cPanel → phpMyAdmin.
2. Select database: loyaiuun_users.
3. Click the "SQL" tab.
4. Open CREATE-USERS-TABLE.sql (from the zip) in a text editor, copy all its content, paste into the SQL box, then click "Go".
   (Or use Import and choose CREATE-USERS-TABLE.sql.)
5. You should see a success message. The users table is now ready.

----------------------------------------
STEP 3: PERMISSIONS (File Manager)
----------------------------------------
1. Go to public_html/backend.
2. Right-click folder "storage" → Change Permissions → set to 755, apply to subdirectories, Save.
3. Go to public_html/backend/bootstrap.
4. Right-click folder "cache" → Change Permissions → set to 755, Save.

----------------------------------------
STEP 4: EDIT .ENV
----------------------------------------
1. In File Manager go to public_html/backend.
2. Edit the file .env.
3. Make sure these are set (use your real values):
   - APP_KEY=base64:.....   (must not be empty; use one from your PC backend/.env if needed)
   - ADMIN_USERNAME=admin
   - ADMIN_PASSWORD=your_secure_password
   - DB_DATABASE=loyaiuun_users
   - DB_USERNAME=loyaiuun_helvica
   - DB_PASSWORD=your_namecheap_db_password
   - APP_DEBUG=false
   - APP_URL=https://loyalgrowth.org
4. Save.

----------------------------------------
STEP 5: TEST
----------------------------------------
- https://loyalgrowth.org/admin/login  → log in with ADMIN_USERNAME and ADMIN_PASSWORD.
- https://loyalgrowth.org/admin       → dashboard (sessions table may be empty).
- https://loyalgrowth.org/api/check?session_id=test  → JSON response.

========================================
To rebuild the zip on your PC, run:
   .\BUILD-UPLOAD-ZIP.ps1
========================================
