PASS: valid legacy long installation code PASS: valid 7-character desktop installation code PASS: lowercase desktop installation code accepted PASS: surrounding spaces are ignored PASS: 7-character alphanumeric code accepted PASS: 6-character code rejected PASS: short code with separator rejected PASS: underscore rejected PASS: invalid special character rejected PASS: overlong installation code rejected PASS: invalid installation code PASS: month-end clamp PASS: leap-year month-end clamp PASS: annual duration PASS: escaping prevents HTML injection PASS: generated key format PASS: AES-GCM encrypt-decrypt PASS: canonical key HMAC PASS: active license classification PASS: expired license classification All local self-tests passed. MySQL integration must be tested on deployment.