```
### 📉 Why this works:
1. **Tag Harmony:** Your error happened because an `endif;` was expected but not found. This code has a clear `if/else/endif` structure.
2. **Structural Integrity:** I included the final `` closers to prevent the entire page layout from collapsing.
3. **Revenue & Trigger:** The AI button is properly gated behind the login check.
**Apply this full block now.** It will clear the ParseError and put your AI Command button live. Does the site load normally again?