# ═══════════════════════════════════════════════════════════════
# MASTER ARCHITECTURAL PROMPT — CLUB MANAGEMENT SYSTEM
# Given to ALL AIs. Read ENTIRELY before writing a single line.
# ═══════════════════════════════════════════════════════════════

## PROJECT OVERVIEW
You are building ONE module of a large Club Management System (CMS).
The system is a PHP 8+ / MySQL 8 / HTML / CSS / JS web application.
NO frameworks (no Laravel, no Symfony, no React). Pure PHP MVC, self-contained.
The full database schema is attached. DO NOT create or alter any tables — the DB is pre-built.

## CRITICAL RULES — VIOLATE THESE AND THE BUILD FAILS

1. **NEVER modify, overwrite, or create files outside your assigned module directory** (except Phase 0 which builds the core).
2. **NEVER create database tables, alter columns, or modify stored procedures.** The DB is immutable.
3. **You MUST use the core framework classes from Phase 0.** They exist at `/core/`. You CANNOT see their source, but this document specifies their EXACT public APIs.
4. **Every file you create MUST go inside `/modules/<your_module_name>/`** following the structure below.
5. **Your module is auto-discovered.** Phase 0 scans `/modules/*/module.json` at runtime.
6. **You MUST provide a `module.json` manifest** — this is how the system knows your module exists.
7. **All database access goes through the core `Database` class.** Direct `mysqli_*` or raw `new PDO` is FORBIDDEN.
8. **All output goes through the core `View` class** and your module's view files.
9. **No inline CSS or JS in PHP files.** Use your module's dedicated CSS/JS files.
10. **All form submissions MUST include CSRF token.** Use `<?= csrf_field() ?>` in forms.

## DIRECTORY STRUCTURE (FULL SYSTEM)