﻿# GoFlixza — Agent Rules (Codex & Antigravity)

## Mission
Modernize GoFlixza (Laravel 10 -> latest stable Laravel/PHP, Bootstrap/custom CSS -> latest Tailwind CSS) with zero UI/visual change, A+ loading speed, scannable QR PDFs, expanded QR customization, and hardened Stripe/Cashier SaaS billing.

## Hard Rules
1. **Read First (Low-Token):** Always read `docs/ai/MAP.md`, `docs/ai/AUDIT.md`, and `docs/ai/PROGRESS.md` before scanning the codebase. Never scan `vendor/`, `node_modules/`, `storage/`, or minified assets.
2. **Simple & Clean Code:** Write simple, readable Laravel code that a junior developer can maintain. Avoid over-engineering.
3. **Blade-Only App:** No REST API is used. Remove unused API routes/controllers cleanly after verifying zero references.
4. **Database Safety:** Never run `migrate:fresh`, `db:wipe`, or alter live production schema/data without explicit approval.
5. **UI Parity:** Replace Bootstrap/custom CSS with Tailwind CSS page-by-page without changing visual layout, spacing, colors, or JS hooks.
6. **Custom QR Preservation:** Legacy custom QR eyes/modules live in `D:\Projects\Goflixza\well-known\vendor\` (READ ONLY). Never edit Composer `vendor/` directly; rehome into clean app-owned code or controlled forks and fix QR PDF scanability.
7. **Security & Payments:** Never hardcode secrets/API keys. Enforce server-side pricing, ownership checks, CSRF, and idempotent Stripe/Cashier recurring billing.
8. **Output Format:** Edit approved files directly. In chat replies, output only: changed file list, short reason, verification status (PASS/FAIL/NOT VERIFIED), and next single safe step. Never print full files unless asked.
