        :root {
            --bg-color: #06090f;
            --card-bg: #111827;
            --primary: #00ff88;
            --secondary: #3b82f6;
            --text: #e2e8f0;
            --panel-blur: rgba(6, 9, 15, 0.8);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body, html {
            width: 100%;
            height: 100%;
            font-family: 'Inter', -apple-system, sans-serif;
            background-color: var(--bg-color);
            color: var(--text);
            overflow: hidden;
        }

        #map { width: 100%; height: 100%; z-index: 1; background: #06090f; }

        /* Interface Sobreposta */
        .overlay-ui {
            position: absolute;
            z-index: 1000;
            pointer-events: none;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 20px;
        }

        .overlay-ui > * { pointer-events: auto; }

        /* Painel Superior */
        .header-panel {
            background: var(--panel-blur);
            backdrop-filter: blur(12px);
            padding: 15px 25px;
            border-radius: 16px;
            border: 1px solid rgba(0, 255, 136, 0.2);
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            max-width: 900px;
            margin: 0 auto;
            width: 100%;
        }

        .logo-area h1 {
            font-size: 1.4rem;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 2px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .stats-grid {
            display: flex;
            gap: 20px;
            font-size: 0.85rem;
            color: #94a3b8;
        }

        .stat-item b { color: var(--text); }

        .refresh-circle {
            width: 12px;
            height: 12px;
            background: var(--primary);
            border-radius: 50%;
            position: relative;
        }

        .refresh-circle::after {
            content: '';
            position: absolute;
            width: 100%; height: 100%;
            border-radius: 50%;
            border: 2px solid var(--primary);
            animation: ripple 2s infinite;
        }

        @keyframes ripple {
            0% { transform: scale(1); opacity: 1; }
            100% { transform: scale(3); opacity: 0; }
        }

        /* Estilo do Avião */
        .plane-wrapper { transition: all 1s linear; }
        .plane-icon-svg { filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.5)); }

        /* Marcador do Utilizador Corrigido */
        .user-location-icon {
            background: var(--secondary);
            border: 3px solid white;
            border-radius: 50%;
            box-shadow: 0 0 20px var(--secondary), 0 0 40px rgba(59, 130, 246, 0.4);
            animation: pulse-user 1.5s infinite;
        }

        @keyframes pulse-user {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
            70% { transform: scale(1.2); box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
            100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
        }

        /* Detalhes */
        .details-panel {
            background: var(--panel-blur);
            backdrop-filter: blur(12px);
            padding: 20px;
            border-radius: 16px;
            border-top: 2px solid var(--primary);
            width: 100%;
            max-width: 400px;
            display: none;
            animation: slideUp 0.3s ease-out;
        }

        @keyframes slideUp {
            from { transform: translateY(100px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .screen {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            background: var(--bg-color);
        }

        .loader-spin {
            border: 4px solid #1e293b;
            border-top: 4px solid var(--primary);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin { 100% { transform: rotate(360deg); } }

        .leaflet-popup-content-wrapper { background: var(--card-bg) !important; color: var(--text) !important; border-radius: 12px; }
        .leaflet-popup-tip { background: var(--card-bg) !important; }