ResumeLab v4 — cPanel Production-Architecture Build

NEW IN THIS PASS
- PHP 8 + MySQL/MariaDB backend foundation
- One paid purchase = one persistent resume project
- Career-path commitment/locking after the user starts
- Save-and-return model
- Add Entry for jobs, promotions, education, certifications, training, projects, leadership, volunteer work, awards, skills, publications, research, and presentations
- “Build My Resume” and “Rescue My Resume” paths
- DOCX import via PHP ZipArchive/XML
- PDF text extraction via pdftotext when available
- Copy/paste fallback for PDFs or any resume text
- Local summary and bullet language engines
- Five templates + accent color
- No external AI dependency in this build
- Database tables for users, purchases, projects, entries, imports, and versions

IMPORTANT
Payment is scaffolded but not yet connected to Stripe/PayPal. demo_mode=true creates a demo paid session so the workflow can be tested. Do not launch publicly with demo_mode=true.

CPANEL INSTALL
1. Create a MySQL/MariaDB database and database user.
2. Import schema.sql in phpMyAdmin.
3. Copy config.sample.php to config.php.
4. Edit config.php with database credentials.
5. Upload the folder to the desired public_html subfolder.
6. Use PHP 8.0+ (8.1/8.2+ preferred).
7. Open install.php to verify PDO MySQL, ZipArchive, and uploads.
8. Test the complete flow.
9. Delete or rename install.php before launch.

PROJECT RULES
- A verified paid purchase will create one unused purchase row.
- create_project() consumes that purchase and binds it to one project.
- goal_code can be changed during setup, but not after committed_at is set.
- Existing projects can be edited and expanded indefinitely through Add Entry.
- A fundamentally different career path requires a new purchase/project.

NEXT PRODUCTION WORK
- Real registration/login + email verification/password reset
- Stripe or PayPal checkout + webhook verification
- CSRF protection and request throttling
- DOCX/PDF export
- Better structured resume parsing into sections/entries
- Version snapshots and restore UI
- Career-family compatibility rules for target changes
