---
Task ID: 1
Agent: Main
Task: Build Server Management module, Software Update System, Back buttons, Fix messaging, Fix image upload

Work Log:
- Created `/home/z/my-project/src/app/api/admin/server/route.ts` - Server status API (GET for stats, POST for maintenance actions)
- Created `/home/z/my-project/src/app/api/admin/server/update/route.ts` - Software update API (POST for ZIP upload/deploy, GET for instructions)
- Created `/home/z/my-project/src/components/admin/AdminServer.tsx` - Server management component with:
  - Platform Server Status (CPU, Memory, Disk, Uptime, versions)
  - Application & Server Configuration
  - Storage Link Status
  - Cron Job (Scheduled Tasks)
  - Quick Maintenance (Clear Cache, Optimize DB, Refresh Stats)
  - Smart Deployment Troubleshooter (Run Diagnostics)
  - Platform Update Manager (ZIP upload with deploy)
  - Warnings & Alerts
- Added "Server" tab to admin page (`/admin`) and in-app AdminModule
- Added back button to admin page top bar (shows when not on dashboard)
- Added back button to AdminModule mobile header
- Fixed messaging: Added emoji category navigation, click-outside-to-close for emoji picker, active:scale animation
- Fixed image upload for houses/shops: Multi-image support with proper file input ref, URL input, thumbnail previews
- Changed houses/shops API default limit from 10 to 100

Stage Summary:
- Server management module fully built with 8 sections matching the reference image
- Software update system: Upload ZIP → Extract safely (skip .env, .git, node_modules, storage) → Deploy
- Back buttons added to all admin sub-pages (standalone and in-app)
- Messaging emoji picker improved with categories and click-outside-to-close
- House/Shop image upload now supports multiple images with proper file input
