diff --git a/ARCHITECTURE_OVERVIEW.md b/ARCHITECTURE_OVERVIEW.md
new file mode 100644
index 0000000..57996da
--- /dev/null
+++ b/ARCHITECTURE_OVERVIEW.md
@@ -0,0 +1,452 @@
+# ๐๏ธ LuckyChit Production Architecture
+
+## Current Setup
+
+Your application runs across **2 LXC containers** with Cloudflare in front:
+
+```
+Internet
+ โ
+ โผ
+โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
+โ Cloudflare CDN โ
+โ (SSL/TLS, DDoS Protection, CDN) โ
+โ Domain: chitfund.deepteklabs.com โ
+โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโ
+ โ HTTPS/HTTP
+ โผ
+โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
+โ LXC 1: Nginx Proxy โ
+โ - Reverse Proxy โ
+โ - Ports: 80, 443 โ
+โ - Can cache responses โ ๏ธ โ
+โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโ
+ โ HTTP (internal)
+ โผ
+โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
+โ LXC 2: Application Server โ
+โ IP: 192.168.8.148 โ
+โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
+โ โ PM2 Process Manager โ โ
+โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค โ
+โ โ Backend API โ โ
+โ โ - Port: 3000 โ โ
+โ โ - Node.js + Express โ โ
+โ โ - Process: luckychit-api โ โ
+โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค โ
+โ โ Frontend โ โ
+โ โ - Port: 8080 โ โ
+โ โ - Flutter Web (Static) โ โ
+โ โ - Process: luckychit-frontend โ โ
+โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
+โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
+โ โ PostgreSQL Database โ โ
+โ โ - Port: 5432 โ โ
+โ โ - Database: luckychit โ โ
+โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
+โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
+```
+
+---
+
+## Data Flow
+
+### User Request Flow
+
+```
+Browser
+ โ Cloudflare (SSL/TLS, CDN)
+ โ Nginx Proxy (LXC 1)
+ โ PM2 Frontend (LXC 2:8080)
+ โ Browser renders Flutter app
+```
+
+### API Request Flow
+
+```
+Browser
+ โ Cloudflare
+ โ Nginx Proxy (LXC 1)
+ โ PM2 Backend API (LXC 2:3000)
+ โ PostgreSQL Database
+ โ Response
+ โ JSON Response
+ โ Proxied Response
+ โ CDN Cached/Direct
+ โ Response
+```
+
+---
+
+## Cache Layers (Your Problem!) ๐ฏ
+
+### 1. Browser Cache
+- **Location**: User's browser
+- **Status**: โ
Fixed (added cache-control meta tags)
+- **Control**: `index.html` meta tags
+
+### 2. Cloudflare Cache
+- **Location**: Cloudflare edge servers
+- **Status**: โ ๏ธ Can cache
+- **Control**: Cloudflare dashboard
+- **Fix**: Purge cache in dashboard
+
+### 3. Nginx Proxy Cache โ ๏ธ **LIKELY CULPRIT!**
+- **Location**: LXC 1 (nginx proxy container)
+- **Status**: โ Probably caching!
+- **Control**: `/etc/nginx/sites-available/chitfund`
+- **Fix**: See `NGINX_PROXY_CACHE_FIX.md`
+
+### 4. PM2 Static Server
+- **Location**: LXC 2 (backend container)
+- **Status**: โ
Serves fresh files from `build/web`
+- **Control**: Rebuild with `flutter build web`
+
+---
+
+## Port Mapping
+
+| Service | LXC | Port | Accessible From | Purpose |
+|---------|-----|------|-----------------|---------|
+| **Nginx** | LXC 1 | 80 | Internet (via Cloudflare) | HTTP Proxy |
+| **Nginx** | LXC 1 | 443 | Internet (via Cloudflare) | HTTPS Proxy |
+| **Backend API** | LXC 2 | 3000 | LXC 1 (nginx) | REST API |
+| **Frontend** | LXC 2 | 8080 | LXC 1 (nginx) | Flutter Web App |
+| **PostgreSQL** | LXC 2 | 5432 | Localhost only | Database |
+
+---
+
+## Network Configuration
+
+### LXC 1 (Nginx Proxy)
+```bash
+# Public facing
+Public IP:
+Ports: 80, 443 (open to internet)
+
+# Internal
+Internal IP:
+Can reach: LXC 2 (192.168.8.148)
+```
+
+### LXC 2 (Application)
+```bash
+# Internal only
+IP: 192.168.8.148
+Ports: 3000, 8080 (open to LXC 1)
+Not directly accessible from internet
+```
+
+---
+
+## Nginx Proxy Configuration
+
+Your nginx config on **LXC 1** should look like:
+
+```nginx
+# /etc/nginx/sites-available/chitfund
+
+server {
+ listen 80;
+ server_name chitfund.deepteklabs.com;
+
+ # Frontend (Flutter)
+ location / {
+ proxy_pass http://192.168.8.148:8080;
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection 'upgrade';
+ proxy_set_header Host $host;
+
+ # IMPORTANT: Disable caching!
+ proxy_no_cache 1;
+ proxy_cache_bypass 1;
+ add_header Cache-Control "no-cache, no-store, must-revalidate";
+ }
+
+ # Backend API
+ location /api {
+ proxy_pass http://192.168.8.148:3000;
+ proxy_http_version 1.1;
+ proxy_set_header Host $host;
+ proxy_no_cache 1;
+ }
+}
+```
+
+---
+
+## Deployment Flow
+
+### When You Deploy Code:
+
+```bash
+# 1. Local Machine
+git add .
+git commit -m "Update"
+git push origin prodnew
+
+# 2. LXC 2 (Application Server)
+ssh luckychit@192.168.8.148
+cd /home/luckychit/apps/chitfund
+./deploy-frontend-only.sh
+# This rebuilds Flutter and restarts PM2
+
+# 3. LXC 1 (Nginx Proxy)
+ssh root@
+./nginx-clear-cache.sh
+# This clears nginx cache
+
+# 4. Cloudflare
+# Go to dashboard and purge cache (if needed)
+
+# 5. Browser
+# Hard refresh: Ctrl + Shift + R
+```
+
+---
+
+## Cache Clearing Procedure
+
+### Full Cache Clear (Use After Deployment):
+
+```bash
+# 1. Clear nginx cache (LXC 1)
+ssh root@
+sudo rm -rf /var/cache/nginx/*
+sudo systemctl reload nginx
+
+# 2. Clear Cloudflare cache
+# Login to Cloudflare dashboard
+# Caching โ Purge Everything
+
+# 3. Hard refresh browser
+# Ctrl + Shift + R (Windows)
+# Cmd + Shift + R (Mac)
+```
+
+---
+
+## Troubleshooting Guide
+
+### Problem: Changes Not Showing
+
+**Check each cache layer:**
+
+1. **Browser**: Hard refresh (`Ctrl + Shift + R`)
+2. **Cloudflare**: Purge cache in dashboard
+3. **Nginx**: Clear cache on LXC 1
+4. **PM2**: Verify build is fresh on LXC 2
+
+### Problem: 502 Bad Gateway
+
+**Check connectivity:**
+
+```bash
+# On LXC 1 (nginx), test backend:
+curl http://192.168.8.148:3000/health
+curl http://192.168.8.148:8080
+
+# If these fail:
+# - PM2 is down on LXC 2
+# - Firewall blocking between LXCs
+# - Network routing issue
+```
+
+### Problem: Backend Not Responding
+
+**Check PM2 on LXC 2:**
+
+```bash
+ssh luckychit@192.168.8.148
+pm2 status
+pm2 restart all
+```
+
+---
+
+## Security Considerations
+
+### Current Setup:
+- โ
Cloudflare provides DDoS protection
+- โ
SSL/TLS handled by Cloudflare
+- โ
Backend LXC not directly exposed to internet
+- โ
Only nginx proxy is public-facing
+- โ ๏ธ No SSL between nginx and backend (OK for internal network)
+
+### Recommendations:
+- โ
Keep backend LXC internal-only
+- โ
Use firewall rules between LXCs
+- โ
Limit nginx proxy access to only necessary ports
+- โ ๏ธ Consider fail2ban on nginx proxy
+- โ ๏ธ Consider firewall rate limiting
+
+---
+
+## Firewall Configuration
+
+### LXC 1 (Nginx Proxy)
+```bash
+# Allow HTTP/HTTPS from internet
+sudo ufw allow 80/tcp
+sudo ufw allow 443/tcp
+sudo ufw allow 22/tcp # SSH
+sudo ufw enable
+```
+
+### LXC 2 (Application)
+```bash
+# Allow only from nginx proxy
+sudo ufw allow from to any port 3000
+sudo ufw allow from to any port 8080
+sudo ufw allow 22/tcp # SSH
+sudo ufw enable
+```
+
+---
+
+## Monitoring & Logs
+
+### LXC 1 (Nginx)
+```bash
+# Access logs
+sudo tail -f /var/log/nginx/access.log
+
+# Error logs
+sudo tail -f /var/log/nginx/error.log
+
+# Check status
+sudo systemctl status nginx
+```
+
+### LXC 2 (Application)
+```bash
+# PM2 logs
+pm2 logs
+
+# PM2 status
+pm2 status
+
+# PM2 monitoring
+pm2 monit
+```
+
+---
+
+## Backup Strategy
+
+### What to Backup:
+
+1. **Database (LXC 2)**
+ ```bash
+ pg_dump -U luckychit luckychit > backup.sql
+ ```
+
+2. **Nginx Config (LXC 1)**
+ ```bash
+ tar -czf nginx-config.tar.gz /etc/nginx/
+ ```
+
+3. **Application Code (LXC 2)**
+ ```bash
+ cd /home/luckychit/apps/chitfund
+ git status # Should be clean
+ # Code is in git, no backup needed
+ ```
+
+4. **PM2 Config (LXC 2)**
+ ```bash
+ pm2 save
+ # Saves to ~/.pm2/dump.pm2
+ ```
+
+---
+
+## Performance Optimization
+
+### Current Performance:
+
+```
+User โ Cloudflare (CDN, <50ms globally)
+ โ Nginx Proxy (LXC 1, ~1ms)
+ โ PM2 App (LXC 2, ~10ms)
+ โ PostgreSQL (~5ms)
+```
+
+**Total latency**: ~16ms + network time
+
+### Recommended Optimizations:
+
+1. **Enable nginx caching for static assets only**
+ - Cache images, CSS, JS (7 days)
+ - Don't cache HTML, JSON
+
+2. **Use Cloudflare caching selectively**
+ - Cache static assets
+ - Bypass for API and HTML
+
+3. **Enable gzip compression in nginx**
+ ```nginx
+ gzip on;
+ gzip_types text/plain text/css application/json application/javascript;
+ ```
+
+4. **Use PM2 cluster mode** (already fixed in ecosystem.config.js)
+
+---
+
+## Quick Reference
+
+### SSH Access:
+```bash
+# Nginx Proxy (LXC 1)
+ssh root@
+
+# Application Server (LXC 2)
+ssh luckychit@192.168.8.148
+```
+
+### Clear All Caches:
+```bash
+# 1. Nginx (LXC 1)
+sudo rm -rf /var/cache/nginx/* && sudo systemctl reload nginx
+
+# 2. PM2 rebuild (LXC 2)
+cd /home/luckychit/apps/chitfund && ./force-cache-bust.sh
+
+# 3. Cloudflare
+# Dashboard โ Caching โ Purge Everything
+
+# 4. Browser
+# Ctrl + Shift + R
+```
+
+### Check Everything:
+```bash
+# Nginx (LXC 1)
+systemctl status nginx
+curl http://192.168.8.148:3000/health
+
+# PM2 (LXC 2)
+pm2 status
+pm2 logs --lines 20
+```
+
+---
+
+## Summary
+
+**Your Issue**: Changes not showing because of **nginx proxy caching**
+
+**Solution**:
+1. Clear nginx cache on LXC 1
+2. Add `proxy_no_cache` to nginx config
+3. Clear Cloudflare cache
+4. Hard refresh browser
+
+**See**: `NGINX_PROXY_CACHE_FIX.md` for detailed nginx fix
+
+---
+
+**Architecture documented! Your caching issue is in the nginx proxy layer.** ๐ฏ
+
diff --git a/FIX_502_ERROR.md b/FIX_502_ERROR.md
new file mode 100644
index 0000000..853e936
--- /dev/null
+++ b/FIX_502_ERROR.md
@@ -0,0 +1,453 @@
+# ๐จ Fix 502 Bad Gateway Error - Cloudflare
+
+## Error Details
+- **Domain**: chitfund.deepteklabs.com
+- **Error**: 502 Bad Gateway
+- **Time**: 2025-11-06 00:26:51 UTC
+- **Status**: Browser โ
| Cloudflare โ
| Origin Server โ
+
+---
+
+## ๐ฏ What This Means
+
+โ
**Your browser** is working
+โ
**Cloudflare** (CDN) is working
+โ **Your origin server** is NOT responding or PM2 processes are down
+
+---
+
+## ๐ IMMEDIATE DIAGNOSIS
+
+SSH into your server and run these checks:
+
+```bash
+ssh luckychit@192.168.8.148
+
+# 1. Check if PM2 processes are running
+pm2 status
+
+# 2. Check if ports are listening
+netstat -tulpn | grep -E '(3000|8080)'
+
+# 3. Check if server is responding locally
+curl http://localhost:3000/health
+curl http://localhost:8080
+
+# 4. Check PM2 logs for errors
+pm2 logs --lines 50
+```
+
+---
+
+## ๐ QUICK FIXES (Try in Order)
+
+### Fix 1: Restart PM2 Processes
+```bash
+pm2 restart all
+pm2 status
+```
+
+### Fix 2: PM2 Processes Are Down - Start Them
+```bash
+pm2 start luckychit-api
+pm2 start luckychit-frontend
+pm2 status
+```
+
+### Fix 3: PM2 Lost Configuration - Recreate
+```bash
+cd /home/luckychit/apps/chitfund
+
+# Start backend
+cd backend
+pm2 start src/server.js --name luckychit-api
+
+# Start frontend
+cd ../luckychit
+pm2 serve build/web 8080 --name luckychit-frontend --spa
+
+# Save configuration
+pm2 save
+pm2 status
+```
+
+### Fix 4: Server Rebooted - Restore PM2
+```bash
+pm2 resurrect
+# or
+pm2 startup
+pm2 save
+```
+
+### Fix 5: Firewall Blocking Cloudflare
+```bash
+sudo ufw status
+sudo ufw allow 3000/tcp
+sudo ufw allow 8080/tcp
+sudo ufw allow 80/tcp
+sudo ufw allow 443/tcp
+sudo ufw reload
+```
+
+---
+
+## ๐ง DETAILED TROUBLESHOOTING
+
+### Step 1: Check PM2 Status
+
+```bash
+pm2 status
+```
+
+**Expected Output:**
+```
+โโโโโโโโโโโโโโโโโโโโโโฌโโโโโฌโโโโโโโโโโฌโโโโโโโฌโโโโโโโโโ
+โ App name โ id โ status โ PID โ memory โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโผโโโโโโโโโโผโโโโโโโผโโโโโโโโโค
+โ luckychit-api โ 0 โ online โ 1234 โ 50 MB โ
+โ luckychit-frontend โ 1 โ online โ 5678 โ 30 MB โ
+โโโโโโโโโโโโโโโโโโโโโโดโโโโโดโโโโโโโโโโดโโโโโโโดโโโโโโโโโ
+```
+
+**If status is "stopped" or "errored":**
+```bash
+pm2 logs --lines 100 # Check for errors
+pm2 restart all # Restart processes
+```
+
+**If processes don't exist:**
+```bash
+# Recreate them (see Fix 3 above)
+```
+
+---
+
+### Step 2: Check if Ports are Listening
+
+```bash
+netstat -tulpn | grep -E '(3000|8080)'
+```
+
+**Expected Output:**
+```
+tcp6 0 0 :::3000 :::* LISTEN 1234/node
+tcp6 0 0 :::8080 :::* LISTEN 5678/node
+```
+
+**If nothing shows up:**
+- Processes are not running
+- Start them with Fix 3
+
+---
+
+### Step 3: Test Local Connectivity
+
+```bash
+# Test backend
+curl http://localhost:3000/health
+# Expected: {"status":"ok"...}
+
+# Test frontend
+curl http://localhost:8080
+# Expected: HTML content
+
+# Test from server IP
+curl http://192.168.8.148:3000/health
+curl http://192.168.8.148:8080
+```
+
+**If these work but domain doesn't:**
+- Issue is with Cloudflare configuration
+- See Cloudflare section below
+
+---
+
+### Step 4: Check PM2 Logs
+
+```bash
+pm2 logs luckychit-api --lines 50
+pm2 logs luckychit-frontend --lines 50
+```
+
+**Look for errors like:**
+- Database connection errors
+- Port already in use
+- Module not found
+- Crash/exception messages
+
+---
+
+### Step 5: Check Firewall
+
+```bash
+sudo ufw status numbered
+```
+
+**You should see:**
+```
+[1] 22/tcp ALLOW IN Anywhere
+[2] 3000/tcp ALLOW IN Anywhere
+[3] 8080/tcp ALLOW IN Anywhere
+[4] 80/tcp ALLOW IN Anywhere
+[5] 443/tcp ALLOW IN Anywhere
+```
+
+**If ports are missing:**
+```bash
+sudo ufw allow 3000/tcp
+sudo ufw allow 8080/tcp
+sudo ufw reload
+```
+
+---
+
+### Step 6: Check Server Resources
+
+```bash
+# Check disk space
+df -h
+# If disk is full (100%), clear logs
+
+# Check memory
+free -h
+# If memory is full, restart processes
+
+# Check CPU
+top
+# Press 'q' to quit
+```
+
+---
+
+## โ๏ธ CLOUDFLARE CONFIGURATION
+
+### Check DNS Settings
+
+In Cloudflare dashboard:
+1. Go to DNS settings
+2. Verify A record points to: **192.168.8.148**
+3. Check "Proxy status":
+ - ๐ **Proxied** (through Cloudflare) - Recommended
+ - โช **DNS only** (direct) - Bypass Cloudflare
+
+### Check Origin Rules
+
+If using Cloudflare Tunnels or custom ports:
+1. Go to **Network** tab
+2. Check origin server settings
+3. Make sure it points to correct IP and port
+
+### SSL/TLS Settings
+
+1. Go to **SSL/TLS** tab
+2. Set to **Flexible** (if no SSL on origin) OR
+3. Set to **Full** (if origin has SSL)
+
+**For your setup (no nginx), use "Flexible"**
+
+---
+
+## ๐ EMERGENCY RECOVERY
+
+### Complete PM2 Reset
+
+```bash
+# Kill all PM2 processes
+pm2 kill
+
+# Navigate to project
+cd /home/luckychit/apps/chitfund
+
+# Start backend
+cd backend
+pm2 start src/server.js --name luckychit-api
+
+# Verify backend
+curl http://localhost:3000/health
+
+# Start frontend
+cd ../luckychit
+pm2 serve build/web 8080 --name luckychit-frontend --spa
+
+# Verify frontend
+curl http://localhost:8080
+
+# Save configuration
+pm2 save
+
+# Setup auto-start
+pm2 startup systemd -u luckychit --hp /home/luckychit
+# (Run the command it outputs)
+pm2 save
+
+# Check status
+pm2 status
+```
+
+### Server Reboot (Last Resort)
+
+```bash
+# Save PM2 list first
+pm2 save
+
+# Reboot
+sudo reboot
+
+# After reboot, SSH back in
+ssh luckychit@192.168.8.148
+
+# Check if PM2 auto-started
+pm2 status
+
+# If not:
+pm2 resurrect
+```
+
+---
+
+## ๐ COMMON CAUSES
+
+### 1. Server Rebooted
+**Symptom**: PM2 processes not running
+**Fix**: `pm2 resurrect` or restart manually
+
+### 2. Out of Memory
+**Symptom**: Processes killed by system
+**Fix**: `free -h` to check, restart processes
+
+### 3. Database Down
+**Symptom**: Backend crashes on startup
+**Fix**: Check PostgreSQL: `sudo systemctl status postgresql`
+
+### 4. Port Conflict
+**Symptom**: "Port already in use" in logs
+**Fix**: Kill process using port or change port
+
+### 5. Firewall Rule Changed
+**Symptom**: Can't connect to ports
+**Fix**: Re-add firewall rules
+
+### 6. Cloudflare Configuration Changed
+**Symptom**: 502 only on domain, not IP
+**Fix**: Check Cloudflare DNS and SSL settings
+
+---
+
+## ๐ POST-FIX CHECKLIST
+
+After fixing, verify:
+
+- [ ] `pm2 status` shows both processes **online**
+- [ ] `curl http://localhost:3000/health` returns JSON
+- [ ] `curl http://localhost:8080` returns HTML
+- [ ] `curl http://192.168.8.148:3000/health` works
+- [ ] `curl http://192.168.8.148:8080` works
+- [ ] Domain `chitfund.deepteklabs.com` loads in browser
+- [ ] No errors in `pm2 logs`
+- [ ] Login works
+- [ ] `pm2 save` executed (for persistence)
+
+---
+
+## ๐ฏ PREVENTION
+
+### Setup Monitoring
+
+```bash
+# Check PM2 status regularly
+pm2 status
+
+# Setup auto-restart on crash (already enabled)
+pm2 start src/server.js --name luckychit-api --watch false --autorestart
+
+# Setup uptime monitoring
+# Consider using: UptimeRobot, Pingdom, or StatusCake
+```
+
+### Setup Alerts
+
+Consider PM2 Plus for monitoring:
+```bash
+pm2 plus
+# Follow setup instructions
+```
+
+---
+
+## ๐ DIAGNOSTIC SCRIPT
+
+Save this as `diagnose-502.sh`:
+
+```bash
+#!/bin/bash
+echo "๐ Diagnosing 502 Error"
+echo "======================="
+echo ""
+
+echo "1. PM2 Status:"
+pm2 status
+
+echo ""
+echo "2. Listening Ports:"
+netstat -tulpn | grep -E '(3000|8080)'
+
+echo ""
+echo "3. Test Backend (localhost):"
+curl -s http://localhost:3000/health || echo "โ Backend not responding"
+
+echo ""
+echo "4. Test Frontend (localhost):"
+curl -s http://localhost:8080 | head -n 5 || echo "โ Frontend not responding"
+
+echo ""
+echo "5. Test Backend (IP):"
+curl -s http://192.168.8.148:3000/health || echo "โ Backend not responding on IP"
+
+echo ""
+echo "6. Firewall Status:"
+sudo ufw status | grep -E '(3000|8080)'
+
+echo ""
+echo "7. Disk Space:"
+df -h | grep -E '(Filesystem|/$)'
+
+echo ""
+echo "8. Memory Usage:"
+free -h
+
+echo ""
+echo "9. Recent PM2 Logs (Errors):"
+pm2 logs --err --lines 20 --nostream
+
+echo ""
+echo "โ
Diagnosis complete!"
+```
+
+Run it:
+```bash
+chmod +x diagnose-502.sh
+./diagnose-502.sh
+```
+
+---
+
+## ๐ SUMMARY
+
+**502 Bad Gateway = Origin server not responding**
+
+**Quick Fix:**
+1. SSH into server
+2. Run `pm2 status`
+3. If down: `pm2 restart all`
+4. If missing: Recreate processes (see Fix 3)
+5. Test: `curl http://localhost:3000/health`
+6. Save: `pm2 save`
+
+**Most Common Cause**: Server rebooted and PM2 didn't auto-start
+
+**Best Fix**: Run `pm2 resurrect` or restart manually
+
+---
+
+Need help? Run the diagnostic script and share the output!
+
diff --git a/FIX_NOW_SERVICE_WORKER.md b/FIX_NOW_SERVICE_WORKER.md
new file mode 100644
index 0000000..e1cc3bb
--- /dev/null
+++ b/FIX_NOW_SERVICE_WORKER.md
@@ -0,0 +1,136 @@
+# ๐จ FIX SERVICE WORKER ERROR NOW
+
+## Your Error:
+```
+Loading from existing service worker.
+main.dart.js:5658 Uncaught Error
+```
+
+**Cause**: Service worker is caching old/broken JavaScript code!
+
+---
+
+## โก IMMEDIATE FIX (3 Steps)
+
+### Step 1: Clear Service Worker in Browser
+
+#### Method A: Using DevTools (Recommended)
+1. Press **F12** to open DevTools
+2. Click **Application** tab (top)
+3. Click **Service Workers** (left sidebar)
+4. Find service worker for `chitfund.deepteklabs.com`
+5. Click **Unregister**
+6. Close DevTools
+
+#### Method B: Clear All Site Data
+1. Press **F12**
+2. Go to **Application** tab
+3. Click **Clear storage** (left sidebar)
+4. Check all boxes
+5. Click **Clear site data**
+
+#### Method C: Test in Incognito (Quick)
+```
+Windows: Ctrl + Shift + N
+Mac: Cmd + Shift + N
+```
+
+### Step 2: Deploy Fixed Version
+
+```bash
+# On your dev machine - push changes
+git add .
+git commit -m "Fix service worker caching issue"
+git push origin prodnew
+
+# SSH to production
+ssh luckychit@192.168.8.148
+cd /home/luckychit/apps/chitfund
+git pull origin prodnew
+
+# Rebuild (service worker now disabled)
+cd luckychit
+flutter clean
+flutter pub get
+flutter build web --release --pwa-strategy=none
+pm2 restart luckychit-frontend
+```
+
+### Step 3: Hard Refresh Browser
+
+```
+Windows: Ctrl + Shift + R
+Mac: Cmd + Shift + R
+```
+
+---
+
+## โ
What I Fixed
+
+1. **Updated `index.html`** - Now auto-clears service workers on load
+2. **Updated all deployment scripts** - Now build with `--pwa-strategy=none` (disables service worker)
+3. **Updated documentation** - Added service worker clearing to guides
+
+---
+
+## ๐ฏ Expected Result
+
+After these steps, your browser console should show:
+- โ
No "Loading from existing service worker" message
+- โ
No "Uncaught Error"
+- โ
App loads cleanly
+- โ
Login screen appears
+
+---
+
+## ๐ Quick Checklist
+
+- [ ] Clear service worker in browser (F12 โ Application โ Unregister)
+- [ ] Push updated code to git
+- [ ] Pull on production server
+- [ ] Rebuild with `--pwa-strategy=none`
+- [ ] Restart PM2
+- [ ] Hard refresh browser
+- [ ] Verify no errors in console
+
+---
+
+## ๐ก Why This Happened
+
+```
+Old deployment โ Service Worker caches JS
+ โ
+New deployment โ New HTML served
+ โ
+Service Worker โ Serves OLD cached JS
+ โ
+Old JS + New HTML = ERROR! โ
+```
+
+---
+
+## ๐ From Now On
+
+All your deployment scripts now:
+1. Build WITHOUT service worker (`--pwa-strategy=none`)
+2. Auto-clear any existing service workers
+3. Force cache refresh with timestamps
+
+**No more service worker issues!** ๐
+
+---
+
+## ๐ Still Seeing Errors?
+
+If errors persist after all steps:
+
+1. **Check console** - Any new errors?
+2. **Test in incognito** - Completely clean slate
+3. **Clear Cloudflare cache** - Dashboard โ Purge Everything
+4. **Clear nginx cache** - On proxy LXC: `sudo rm -rf /var/cache/nginx/*`
+5. **Try different browser** - Eliminate browser-specific issues
+
+---
+
+**Run the 3 steps above to fix your service worker error!** ๐
+
diff --git a/FIX_SERVICE_WORKER_CACHE.md b/FIX_SERVICE_WORKER_CACHE.md
new file mode 100644
index 0000000..5e2aa68
--- /dev/null
+++ b/FIX_SERVICE_WORKER_CACHE.md
@@ -0,0 +1,483 @@
+# ๐ง Fix Service Worker Cache Issue - Flutter Web
+
+## The Problem
+
+Your browser console shows:
+```
+Loading from existing service worker.
+Service worker already active.
+main.dart.js:5658 Uncaught Error
+```
+
+This means the **service worker is caching old/broken JavaScript code** and serving it instead of the new version!
+
+---
+
+## โก IMMEDIATE FIX (User Side)
+
+### Option 1: Clear Service Worker (Recommended)
+
+1. **Open DevTools** (F12)
+2. Go to **Application** tab (Chrome) or **Storage** tab (Firefox)
+3. Click **Service Workers** (left sidebar)
+4. Find your service worker for `chitfund.deepteklabs.com`
+5. Click **Unregister**
+6. **Hard refresh**: `Ctrl + Shift + R`
+
+### Option 2: Clear All Site Data
+
+1. Open DevTools (F12)
+2. Application tab โ **Clear storage** (left sidebar)
+3. Check all boxes (Cookies, Cache, Storage, Service workers)
+4. Click **Clear site data**
+5. Close DevTools
+6. Refresh page
+
+### Option 3: Incognito Mode (Quick Test)
+
+```
+Ctrl + Shift + N (Windows/Linux)
+Cmd + Shift + N (Mac)
+```
+No service worker cache in incognito!
+
+---
+
+## ๐ ๏ธ PERMANENT FIX (Developer Side)
+
+The service worker needs to be disabled or properly managed during deployments.
+
+### Solution 1: Disable Service Worker (Simplest)
+
+Edit `luckychit/web/index.html`:
+
+```html
+
+
+
+
+
+
+```
+
+### Solution 2: Force Service Worker Update
+
+Edit `luckychit/web/flutter_bootstrap.js` or add to `index.html`:
+
+```html
+
+```
+
+### Solution 3: Build Without Service Worker
+
+Build Flutter without service worker:
+
+```bash
+flutter build web --release --pwa-strategy=none
+```
+
+This completely disables the service worker.
+
+---
+
+## ๐ง Fix for Current Production
+
+### Step 1: Update index.html
+
+```bash
+# On your dev machine
+cd luckychit
+nano web/index.html
+```
+
+Add this script before `
+
+
+
+
+
+
+