
        /* --- 1. CORE VARIABLES & RESET --- */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        :root {
            /* Palette: Slate & Indigo */
            --primary: #0f172a;       /* Darker Slate for text */
            --secondary: #6366f1;     /* Indigo Brand Color */
            --secondary-hover: #4f46e5;
            --accent: #10b981;        /* Emerald Green */
            --danger: #ef4444;        /* Red */
            --gray: #64748b;          /* Muted Text */
            --bg-body: #f8fafc;       /* Very Light Blue-Grey */
            --white: #ffffff;
            --border: #e2e8f0;
            
            /* Elevation & Effects */
            --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
            --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
            --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
            --glass: rgba(255, 255, 255, 0.9);
            --radius: 12px;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            color: var(--primary);
            background: var(--bg-body);
            line-height: 1.6;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        /* --- 2. GLASS NAVIGATION --- */
        nav {
            background: var(--glass);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0.85rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--primary);
            text-decoration: none;
            letter-spacing: -0.02em;
        }

        .logo-icon {
            width: 36px;
            height: 36px;
            background: var(--primary);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            box-shadow: var(--shadow-sm);
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
            align-items: center;
        }

        .nav-links a {
            color: var(--gray);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.9rem;
            transition: color 0.2s;
        }

        .nav-links a:hover, .nav-links a.active { color: var(--primary); }

        /* Modern Button Styles */
        .btn {
            padding: 0.75rem 1.5rem;
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.95rem;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
            box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.2);
        }
        
        .btn-primary:hover {
            background: #1e293b;
            transform: translateY(-1px);
            box-shadow: 0 6px 8px -1px rgba(15, 23, 42, 0.3);
        }

        .btn-secondary {
            background: white;
            color: var(--primary);
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
        }
        
        .btn-secondary:hover {
            border-color: #cbd5e1;
            background: #f8fafc;
        }

        .nav-cta {
            background: var(--secondary);
            color: white !important;
            padding: 0.6rem 1.25rem;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
            transition: all 0.2s;
        }
        
        .nav-cta:hover {
            background: var(--secondary-hover);
            transform: translateY(-1px);
        }

        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--primary);
            padding: 0.5rem;
        }

        /* --- 3. PAGE STRUCTURE --- */
        .page { display: none; opacity: 0; animation: fadeIn 0.4s forwards; }
        .page.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        .section { padding: 5rem 1.5rem; max-width: 1200px; margin: 0 auto; }
        
        /* Hero Refinements */
        .hero { 
            background: radial-gradient(circle at top center, #ffffff 0%, #f1f5f9 100%); 
            padding: 6rem 1.5rem 4rem; 
            text-align: center; 
            border-bottom: 1px solid var(--border);
        }
        
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            background: white;
            padding: 0.5rem 1.25rem;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--gray);
            margin-bottom: 2rem;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
        }
        
        .status-dot {
            width: 8px;
            height: 8px;
            background: var(--accent);
            border-radius: 50%;
            box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
            animation: pulse-green 2s infinite;
        }
        @keyframes pulse-green {
            0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
            70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
        }

        .hero h1 {
            font-size: clamp(2.5rem, 5vw, 4.5rem);
            font-weight: 900;
            letter-spacing: -0.03em;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            color: var(--primary);
        }
        
        .hero-subtitle {
            font-size: 1.2rem;
            color: var(--gray);
            line-height: 1.7;
            margin-bottom: 3rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Stats Section */
        .stats { background: white; border-bottom: 1px solid var(--border); padding: 3rem 1.5rem; }
        .stats-container {
            max-width: 1000px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            text-align: center;
        }
        .stat-number { font-size: 2.5rem; font-weight: 800; color: var(--primary); margin-bottom: 0.25rem; letter-spacing: -0.02em; }
        .stat-label { font-size: 0.85rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

        /* --- 4. LIVE FEED CARDS --- */
        .filters {
            background: white;
            border-radius: 16px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
        }
        
        .filters-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.25rem;
            margin-bottom: 1.5rem;
        }
        
        label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.85rem; color: #475569; }
        
        input, select, textarea {
            width: 100%;
            padding: 0.85rem;
            border: 1px solid var(--border);
            border-radius: 10px;
            font-family: inherit;
            font-size: 0.95rem;
            outline: none;
            transition: all 0.2s;
            background: #fff;
        }
        
        input:focus, select:focus, textarea:focus {
            border-color: var(--secondary);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
        }

        .messages-grid { display: grid; gap: 1.25rem; max-width: 800px; margin: 0 auto; }
        
        .message-card {
            background: white;
            border-radius: 16px;
            padding: 1.75rem;
            border: 1px solid var(--border);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }
        
        .message-card:hover {
            border-color: #cbd5e1;
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }
        
        .message-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
        .message-location { font-weight: 700; font-size: 1rem; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; }
        
        .message-badge { 
            padding: 0.35rem 0.85rem; 
            border-radius: 20px; 
            font-size: 0.7rem; 
            font-weight: 700; 
            text-transform: uppercase; 
            letter-spacing: 0.05em; 
        }

        /* Refined Badge Colors */
        .badge-traffic { background: #fee2e2; color: #b91c1c; }
        .badge-education { background: #e0e7ff; color: #4338ca; }
        .badge-event { background: #dcfce7; color: #15803d; }
        .badge-alert { background: #fef3c7; color: #b45309; }
        .badge-transport { background: #f1f5f9; color: #475569; }
        .badge-civic { background: #fce7f3; color: #be185d; }

        .message-content { color: #334155; line-height: 1.6; font-size: 1rem; margin-bottom: 1.25rem; }
        
        .message-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #94a3b8; border-top: 1px solid #f1f5f9; padding-top: 1rem; }
        
        .upvote-btn {
            background: #f8fafc;
            border: 1px solid var(--border);
            padding: 0.4rem 0.8rem;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.2s;
            color: var(--gray);
        }
        
        .upvote-btn:hover:not(.voted) { background: #f1f5f9; border-color: #cbd5e1; color: var(--primary); }
        .upvote-btn.voted { background: #e0e7ff; color: var(--secondary); border-color: transparent; }

        /* --- 5. TRUST & IMPACT --- */
        .trust-section { background: white; padding: 5rem 1.5rem; border-top: 1px solid var(--border); }
        .trust-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 4rem;
            text-align: center;
        }
        .trust-logo { font-size: 1rem; color: #94a3b8; font-weight: 600; }

        .impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
        .impact-card {
            background: #f8fafc;
            padding: 2rem;
            border-radius: 16px;
            border: 1px solid var(--border);
        }
        .impact-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #e2e8f0; }
        .verified-icon { color: var(--secondary); font-size: 1.2rem; }
        .impact-meta strong { display: block; color: var(--primary); font-size: 0.95rem; }
        .impact-meta span { font-size: 0.85rem; color: var(--gray); }
        .impact-text { font-style: italic; color: #475569; font-size: 0.95rem; }

        /* --- 6. MODALS --- */
        .modal {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(15, 23, 42, 0.6);
            backdrop-filter: blur(4px);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .modal.active { display: flex; opacity: 1; }
        
        .modal-content {
            background: white;
            border-radius: 20px;
            max-width: 500px;
            width: 100%;
            padding: 2.5rem;
            position: relative;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            transform: scale(0.95);
            transition: transform 0.3s;
        }
        .modal.active .modal-content { transform: scale(1); }

        .modal-close {
            position: absolute;
            top: 1.5rem; right: 1.5rem;
            background: #f1f5f9;
            border: none;
            width: 32px; height: 32px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
            color: var(--gray);
            display: flex; align-items: center; justify-content: center;
            transition: background 0.2s;
        }
        .modal-close:hover { background: #e2e8f0; color: var(--primary); }

        /* --- 7. TOAST NOTIFICATION --- */
        .toast {
            position: fixed;
            bottom: 2rem; right: 2rem;
            background: white;
            padding: 1rem 1.5rem;
            border-radius: 12px;
            box-shadow: var(--shadow-lg);
            transform: translateX(200%);
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 3000;
            border-left: 5px solid var(--accent);
            font-weight: 500;
            display: flex; align-items: center; gap: 0.75rem;
            font-size: 0.95rem;
        }
        .toast.show { transform: translateX(0); }
        .toast.error { border-left-color: var(--danger); }

        /* --- 8. FOOTER --- */
        footer { background: white; border-top: 1px solid var(--border); padding: 4rem 1.5rem; margin-top: auto; }
        .footer-container { max-width: 1200px; margin: 0 auto; text-align: center; }
        .footer-links { display: flex; justify-content: center; gap: 2.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
        .footer-links a { color: var(--gray); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
        .footer-links a:hover { color: var(--primary); }

        /* --- MOBILE --- */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
                position: absolute;
                top: 100%; left: 0; right: 0;
                background: white;
                flex-direction: column;
                padding: 1.5rem;
                border-bottom: 1px solid var(--border);
                box-shadow: var(--shadow-lg);
                gap: 1.25rem;
            }
            .nav-links.active { display: flex; }
            .mobile-toggle { display: block; }
            .stats-container { grid-template-columns: 1fr; gap: 2rem; }
            .toast { left: 1rem; right: 1rem; bottom: 1rem; text-align: center; justify-content: center; }
            .hero h1 { font-size: 2.5rem; }
        }