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

        body {
            font-family: -apple-system, BlinkMacSystemFont, sans-serif;
            background: linear-gradient(135deg, #0c1445 0%, #1a1a2e 50%, #16213e 100%);
            color: #fff;
            overflow: hidden;
            height: 100vh;
        }

        #globe-container {
            width: 100vw;
            height: 100vh;
            position: relative;
            z-index: 1;
        }

        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            padding: 15px 160px 15px 15px; /* Отступ справа для языкового селектора */
            background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
            z-index: 9000 !important;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .header-logo {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            height: 45px;
            cursor: pointer;
            transition: opacity 0.2s ease;
        }
        .header-logo:hover {
            opacity: 0.8;
        }
        @media (max-width: 900px) {
            .header-logo {
                display: none;
            }
        }

        /* Home globe button */
        .home-globe-btn {
            width: 34px;
            height: 34px;
            border: none;
            border-radius: 50%;
            background: transparent;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            padding: 0;
        }
        .home-globe-btn:active {
            transform: scale(0.9);
        }
        .home-globe-sphere {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: url('/static/img/earth_mini.jpg') repeat-x center;
            background-size: auto 100%;
            box-shadow: inset -4px -2px 6px rgba(0,0,0,0.5), 0 0 8px rgba(79,195,247,0.3);
            transition: box-shadow 0.3s ease;
        }
        .home-globe-btn:hover .home-globe-sphere {
            animation: globe-spin 3s linear infinite;
            box-shadow: inset -4px -2px 6px rgba(0,0,0,0.4), 0 0 12px rgba(79,195,247,0.6);
        }
        @keyframes globe-spin {
            from { background-position-x: 0; }
            to { background-position-x: -128px; }
        }

        /* Mode buttons (NEWS, SPACE, MONEY) - Flat Design */
        .mode-buttons {
            display: flex;
            gap: 3px;
            background: rgba(30, 30, 40, 0.9);
            padding: 3px;
            border-radius: 6px;
        }

        .mode-btn {
            padding: 6px 10px;
            border: none;
            border-radius: 4px;
            background: transparent;
            color: rgba(255, 255, 255, 0.5);
            font-size: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s ease;
            letter-spacing: 0.5px;
        }

        .mode-btn:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.08);
        }

        .mode-btn.active {
            background: #00b4d8;
            color: #fff;
        }

        .mode-btn.active[data-mode="space"] {
            background: #9b59b6;
        }

        .mode-btn.active[data-mode="money"] {
            background: #27ae60;
        }

        .mode-btn.active[data-mode="flights"] {
            background: #e74c3c;
        }

        .mode-btn.active[data-mode="quakes"] {
            background: #e67e22;
        }

        .mode-btn.active[data-mode="radio"] {
            background: #e91e63;
        }

        .mode-btn.active[data-mode="ships"] {
            background: #0288d1;
        }

        .mode-btn.active[data-mode="weather"] {
            background: #00acc1;
        }

        .mode-btn.active[data-mode="events"] {
            background: #ff9800;
        }

        .mode-btn.active[data-mode="live"] {
            background: #f44336;
        }

        .mode-btn.active[data-mode="stats"] {
            background: #546e7a;
        }

        .mode-btn.active[data-mode="military"] {
            background: #558b2f;
        }

        .mode-btn.active[data-mode="economy"] {
            background: #7b1fa2;
        }

        /* Stats Categories - Top Level */
        .stats-categories {
            position: fixed;
            top: 55px;
            left: 15px;
            display: none;
            gap: 6px;
            flex-wrap: nowrap;
            max-width: 850px;
            z-index: 9000 !important;
            background: rgba(15, 20, 30, 0.95);
            padding: 8px 10px;
            border-radius: 12px;
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .stats-categories.visible {
            display: flex;
        }

        .stats-category {
            padding: 6px 10px;
            border: none;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.7);
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
        }

        .stats-category:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }

        .stats-category.active {
            background: #3498db;
            color: #fff;
        }

        /* Sub-filters common positioning */
        .stats-sub-filters {
            position: fixed;
            top: 115px;
            left: 15px;
            display: none;
            gap: 8px;
            flex-wrap: wrap;
            max-width: 550px;
            z-index: 9000 !important;
            padding: 8px 12px;
            border-radius: 10px;
            backdrop-filter: blur(10px);
        }

        .stats-sub-filters.visible {
            display: flex;
        }

        /* Economy filter buttons */
        /* Economy filters - Flat Design (Bloc sub-filters) */
        .economy-filters {
            position: fixed;
            top: 120px;
            left: 15px;
            display: none;
            gap: 6px;
            flex-wrap: wrap;
            max-width: 700px;
            z-index: 90;
            background: rgba(20, 25, 35, 0.9);
            padding: 8px 10px;
            border-radius: 10px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .economy-filters.visible {
            display: flex;
        }

        /* Stations filters */
        .stations-filters {
            position: fixed;
            top: 120px;
            left: 15px;
            display: none;
            gap: 8px;
            flex-wrap: wrap;
            max-width: 700px;
            z-index: 90;
            background: rgba(20, 25, 35, 0.9);
            padding: 8px 12px;
            border-radius: 10px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(52, 152, 219, 0.2);
        }

        .stations-filters.visible {
            display: flex;
        }

        .station-filter {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.7);
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .station-filter:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }

        .station-filter.active {
            background: #3498db;
            color: #fff;
        }

        /* Resources filters */
        .resources-filters {
            position: fixed;
            top: 115px;
            left: 15px;
            display: none;
            gap: 5px;
            flex-wrap: wrap;
            max-width: 850px;
            z-index: 9000 !important;
            background: transparent;
            padding: 0;
        }

        .resources-filters.visible {
            display: flex;
        }

        .resource-filter {
            padding: 4px 8px;
            border: none;
            border-radius: 4px;
            background: rgba(0, 0, 0, 0.4);
            color: rgba(255, 255, 255, 0.7);
            font-size: 10px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
            backdrop-filter: blur(5px);
        }

        .resource-filter:hover {
            background: rgba(0, 0, 0, 0.6);
            color: #fff;
        }

        .resource-filter.active {
            background: rgba(52, 152, 219, 0.6);
            color: #fff;
        }

        /* Infrastructure filters */
        .infra-filters {
            position: fixed;
            top: 115px;
            left: 15px;
            display: none;
            gap: 5px;
            flex-wrap: wrap;
            max-width: 600px;
            z-index: 9000 !important;
            background: transparent;
            padding: 0;
        }

        .infra-filters.visible {
            display: flex;
        }

        .infra-filter {
            padding: 4px 8px;
            border: none;
            border-radius: 4px;
            background: rgba(0, 0, 0, 0.4);
            color: rgba(255, 255, 255, 0.7);
            font-size: 10px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
            backdrop-filter: blur(5px);
        }

        .infra-filter:hover {
            background: rgba(0, 0, 0, 0.6);
            color: #fff;
        }

        .infra-filter.active {
            background: rgba(155, 89, 182, 0.6);
            color: #fff;
        }

        /* Finance filters */
        .finance-filters {
            position: fixed;
            top: 115px;
            left: 15px;
            display: none;
            gap: 5px;
            flex-wrap: wrap;
            max-width: 600px;
            z-index: 89;
            background: transparent;
            padding: 0;
        }

        .finance-filters.visible {
            display: flex;
        }

        .finance-filter {
            padding: 4px 8px;
            border: none;
            border-radius: 4px;
            background: rgba(0, 0, 0, 0.4);
            color: rgba(255, 255, 255, 0.7);
            font-size: 10px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
            backdrop-filter: blur(5px);
        }

        .finance-filter:hover {
            background: rgba(0, 0, 0, 0.6);
            color: #fff;
        }

        .finance-filter.active {
            background: rgba(46, 204, 113, 0.6);
            color: #fff;
        }

        .culture-filters {
            position: fixed;
            top: 115px;
            left: 15px;
            display: none;
            gap: 5px;
            flex-wrap: wrap;
            max-width: 600px;
            z-index: 89;
            background: transparent;
            padding: 0;
        }

        .culture-filters.visible {
            display: flex;
        }

        .culture-filter {
            padding: 4px 8px;
            border: none;
            border-radius: 4px;
            background: rgba(0, 0, 0, 0.4);
            color: rgba(255, 255, 255, 0.7);
            font-size: 10px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
            backdrop-filter: blur(5px);
        }

        .culture-filter:hover {
            background: rgba(0, 0, 0, 0.6);
            color: #fff;
        }

        .culture-filter.active {
            background: rgba(46, 204, 113, 0.6);
            color: #fff;
        }

        /* Economy sub-filters */
        .economy-sub-filters {
            position: fixed;
            top: 115px;
            left: 15px;
            display: none;
            gap: 4px;
            flex-wrap: wrap;
            max-width: calc(100vw - 320px);
            z-index: 90;
            background: transparent;
            padding: 0;
        }

        .economy-sub-filters.visible {
            display: flex;
        }

        .economy-sub-filter {
            padding: 4px 8px;
            border: none;
            border-radius: 4px;
            background: rgba(0, 0, 0, 0.4);
            color: rgba(255, 255, 255, 0.7);
            font-size: 10px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
            backdrop-filter: blur(5px);
        }

        .economy-sub-filter:hover {
            background: rgba(0, 0, 0, 0.6);
            color: #fff;
        }

        .economy-sub-filter.active {
            background: rgba(241, 196, 15, 0.6);
            color: #fff;
        }

        .index-info-panel {
            position: fixed;
            top: 200px;
            left: 15px;
            width: 320px;
            background: rgba(10, 15, 25, 0.92);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 10px;
            padding: 14px 16px;
            z-index: 89;
            backdrop-filter: blur(12px);
            display: none;
            color: #ccc;
            font-size: 12px;
            line-height: 1.5;
        }
        .index-info-panel.visible {
            display: block;
        }
        .index-info-title {
            font-size: 14px;
            font-weight: bold;
            color: #fff;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .index-info-scale {
            margin-top: 10px;
            padding-top: 8px;
            border-top: 1px solid rgba(255,255,255,0.08);
            font-size: 11px;
            color: #999;
        }

        .population-filters {
            position: fixed;
            top: 150px;
            left: 15px;
            display: none;
            gap: 5px;
            flex-wrap: wrap;
            max-width: 300px;
            z-index: 9000 !important;
            background: transparent;
            padding: 0;
        }

        .population-filters.visible {
            display: flex;
        }

        .population-filter {
            padding: 4px 10px;
            border: none;
            border-radius: 4px;
            background: rgba(46, 204, 113, 0.3);
            color: rgba(255, 255, 255, 0.8);
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
            backdrop-filter: blur(5px);
        }

        .population-filter:hover {
            background: rgba(46, 204, 113, 0.5);
            color: #fff;
        }

        .population-filter.active {
            background: rgba(46, 204, 113, 0.7);
            color: #fff;
        }

        .economy-filter {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            background: transparent;
            color: rgba(255, 255, 255, 0.5);
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .economy-filter:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }

        .economy-filter.active {
            background: #7b1fa2;
            color: #fff;
        }

        /* Economy stats secondary filters */
        .economy-stats-filters {
            position: fixed;
            top: 105px;
            left: 15px;
            display: none;
            gap: 6px;
            flex-wrap: wrap;
            max-width: 600px;
            z-index: 89;
            background: rgba(0, 0, 0, 0.6);
            padding: 6px 10px;
            border-radius: 10px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(52, 152, 219, 0.3);
        }

        .economy-stats-filters.visible {
            display: flex;
        }

        .economy-stat {
            padding: 5px 10px;
            border: 1px solid rgba(52, 152, 219, 0.4);
            border-radius: 6px;
            background: rgba(52, 152, 219, 0.15);
            color: rgba(255, 255, 255, 0.7);
            font-size: 10px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .economy-stat:hover {
            background: rgba(52, 152, 219, 0.3);
            color: #fff;
        }

        .economy-stat.active {
            background: rgba(52, 152, 219, 0.5);
            border-color: rgba(52, 152, 219, 0.8);
            color: #fff;
        }

        /* Stat markers on globe */
        .stat-marker {
            background: rgba(0, 0, 0, 0.8);
            padding: 4px 8px;
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            white-space: nowrap;
        }

        .stat-value {
            color: #fff;
            font-size: 11px;
            font-weight: 600;
        }

        .stat-country {
            color: #aaa;
            font-size: 10px;
            margin-bottom: 2px;
        }

        /* NPP Markers */
        .npp-marker {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: radial-gradient(circle, #2ecc71 0%, #27ae60 70%, #1e8449 100%);
            border: 2px solid #fff;
            box-shadow: 0 0 10px rgba(46, 204, 113, 0.6), 0 2px 8px rgba(0,0,0,0.3);
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }
        .npp-marker:hover {
            transform: scale(1.3);
            box-shadow: 0 0 20px rgba(46, 204, 113, 0.9), 0 4px 12px rgba(0,0,0,0.4);
        }
        .npp-marker.standby {
            background: radial-gradient(circle, #f39c12 0%, #e67e22 70%, #d35400 100%);
            box-shadow: 0 0 10px rgba(243, 156, 18, 0.6), 0 2px 8px rgba(0,0,0,0.3);
        }
        .npp-marker.closed {
            background: radial-gradient(circle, #95a5a6 0%, #7f8c8d 70%, #5d6d7e 100%);
            box-shadow: 0 0 10px rgba(149, 165, 166, 0.6), 0 2px 8px rgba(0,0,0,0.3);
        }
        .npp-marker.construction {
            background: radial-gradient(circle, #3498db 0%, #2980b9 70%, #1a5276 100%);
            box-shadow: 0 0 10px rgba(52, 152, 219, 0.6), 0 2px 8px rgba(0,0,0,0.3);
        }
        .npp-tooltip {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(20, 25, 30, 0.95);
            border: 1px solid rgba(46, 204, 113, 0.5);
            border-radius: 8px;
            padding: 8px 12px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s;
            margin-bottom: 8px;
            z-index: 500;
        }
        .npp-marker:hover .npp-tooltip {
            opacity: 1;
        }
        .npp-tooltip-name {
            font-weight: bold;
            font-size: 12px;
            color: #2ecc71;
            margin-bottom: 4px;
        }
        .npp-tooltip-info {
            font-size: 10px;
            color: #aaa;
        }

        /* Infrastructure markers */
        .infra-marker {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: radial-gradient(circle, #9b59b6 0%, #8e44ad 70%, #7d3c98 100%);
            border: 2px solid #fff;
            box-shadow: 0 0 10px rgba(155, 89, 182, 0.6), 0 2px 8px rgba(0,0,0,0.3);
            cursor: pointer;
            pointer-events: auto !important;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            position: relative;
            z-index: 50;
        }
        .infra-marker:hover {
            transform: scale(1.3);
        }
        .infra-tooltip {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(20, 25, 30, 0.95);
            border: 1px solid rgba(155, 89, 182, 0.5);
            border-radius: 8px;
            padding: 8px 12px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s;
            margin-bottom: 8px;
            z-index: 60;
        }
        .infra-marker:hover .infra-tooltip {
            opacity: 1;
        }
        .infra-tooltip-name {
            font-weight: bold;
            font-size: 12px;
            color: #9b59b6;
            margin-bottom: 4px;
        }
        .infra-tooltip-value {
            font-size: 10px;
            color: #aaa;
        }

        /* City heatmap markers */
        .city-heatmap-marker {
            z-index: 500;
        }
        .city-tooltip {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(20, 25, 30, 0.95);
            border: 1px solid rgba(231, 76, 60, 0.5);
            border-radius: 8px;
            padding: 8px 12px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s;
            margin-bottom: 8px;
            z-index: 1000;
            font-size: 12px;
            color: #fff;
            text-align: center;
        }
        .city-heatmap-marker:hover .city-tooltip {
            opacity: 1;
        }

        /* Finance markers */
        .finance-marker {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: radial-gradient(circle, #2ecc71 0%, #27ae60 70%, #1e8449 100%);
            border: 2px solid #fff;
            box-shadow: 0 0 10px rgba(46, 204, 113, 0.6), 0 2px 8px rgba(0,0,0,0.3);
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            position: relative;
        }
        .finance-marker-icon {
            pointer-events: none;
        }
        .culture-photo {
            width: 100%;
            height: 140px;
            border-radius: 8px;
            margin-bottom: 12px;
            object-fit: cover;
            background: rgba(0,0,0,0.3);
        }
        .culture-photo-placeholder {
            width: 100%;
            height: 100px;
            border-radius: 8px;
            margin-bottom: 12px;
            background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.2));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            animation: pulse 1.5s ease-in-out infinite;
        }
        .finance-marker:hover {
            transform: scale(1.3);
        }
        .finance-tooltip {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(20, 25, 30, 0.95);
            border: 1px solid rgba(46, 204, 113, 0.5);
            border-radius: 8px;
            padding: 8px 12px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s;
            margin-bottom: 8px;
            z-index: 500;
        }
        .finance-marker:hover .finance-tooltip {
            opacity: 1;
        }
        .finance-tooltip-name {
            font-weight: bold;
            font-size: 12px;
            color: #2ecc71;
            margin-bottom: 4px;
        }
        .finance-tooltip-value {
            font-size: 10px;
            color: #aaa;
        }
        .finance-tooltip-change {
            font-size: 11px;
            font-weight: bold;
            margin-top: 2px;
        }
        .finance-marker.bullish {
            background: radial-gradient(circle, #2ecc71 0%, #27ae60 70%, #1e8449 100%);
            box-shadow: 0 0 12px rgba(46, 204, 113, 0.7), 0 0 24px rgba(46, 204, 113, 0.3), 0 2px 8px rgba(0,0,0,0.3);
            animation: pulseBullish 2s ease-in-out infinite;
        }
        .finance-marker.bearish {
            background: radial-gradient(circle, #e74c3c 0%, #c0392b 70%, #922b21 100%);
            border-color: #ffcdd2;
            box-shadow: 0 0 12px rgba(231, 76, 60, 0.7), 0 0 24px rgba(231, 76, 60, 0.3), 0 2px 8px rgba(0,0,0,0.3);
            animation: pulseBearish 2s ease-in-out infinite;
        }
        .finance-marker.bearish .finance-tooltip {
            border-color: rgba(231, 76, 60, 0.5);
        }
        .finance-marker.bearish .finance-tooltip-name {
            color: #e74c3c;
        }
        .finance-marker.neutral {
            background: radial-gradient(circle, #95a5a6 0%, #7f8c8d 70%, #616a6b 100%);
            border-color: #ccc;
            box-shadow: 0 0 8px rgba(149, 165, 166, 0.5), 0 2px 8px rgba(0,0,0,0.3);
        }
        .finance-marker.neutral .finance-tooltip {
            border-color: rgba(149, 165, 166, 0.5);
        }
        .finance-marker.neutral .finance-tooltip-name {
            color: #95a5a6;
        }
        @keyframes pulseBullish {
            0%, 100% { box-shadow: 0 0 12px rgba(46, 204, 113, 0.7), 0 0 24px rgba(46, 204, 113, 0.3), 0 2px 8px rgba(0,0,0,0.3); }
            50% { box-shadow: 0 0 18px rgba(46, 204, 113, 0.9), 0 0 36px rgba(46, 204, 113, 0.4), 0 2px 8px rgba(0,0,0,0.3); }
        }
        @keyframes pulseBearish {
            0%, 100% { box-shadow: 0 0 12px rgba(231, 76, 60, 0.7), 0 0 24px rgba(231, 76, 60, 0.3), 0 2px 8px rgba(0,0,0,0.3); }
            50% { box-shadow: 0 0 18px rgba(231, 76, 60, 0.9), 0 0 36px rgba(231, 76, 60, 0.4), 0 2px 8px rgba(0,0,0,0.3); }
        }

        /* NPP Info Panel */
        .npp-info-panel {
            position: fixed;
            left: 10px;
            top: 175px;
            width: 300px;
            max-height: calc(100vh - 200px);
            background: rgba(15, 20, 25, 0.95);
            border: 1px solid rgba(46, 204, 113, 0.4);
            border-radius: 12px;
            padding: 0;
            z-index: 1000;
            display: none;
            box-shadow: 0 8px 32px rgba(0,0,0,0.4);
            overflow: hidden;
        }
        .npp-info-panel.visible {
            display: block;
        }
        .npp-info-header {
            background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
            padding: 12px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .npp-info-title {
            font-weight: bold;
            font-size: 16px;
            color: #fff;
        }
        .npp-info-close {
            background: rgba(255,255,255,0.2);
            border: none;
            color: #fff;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 16px;
        }
        .npp-info-close:hover {
            background: rgba(255,255,255,0.3);
        }
        .npp-info-content {
            padding: 16px;
            overflow-y: auto;
            max-height: calc(100vh - 250px);
        }
        .npp-info-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .npp-info-row:last-child {
            border-bottom: none;
        }
        .npp-info-label {
            color: #888;
            font-size: 12px;
        }
        .npp-info-value {
            color: #fff;
            font-size: 12px;
            font-weight: 500;
        }
        .npp-status-badge {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
        }
        .npp-status-badge.operating {
            background: rgba(46, 204, 113, 0.2);
            color: #2ecc71;
        }
        .npp-status-badge.standby {
            background: rgba(243, 156, 18, 0.2);
            color: #f39c12;
        }
        .npp-status-badge.closed {
            background: rgba(149, 165, 166, 0.2);
            color: #95a5a6;
        }
        .npp-status-badge.construction {
            background: rgba(52, 152, 219, 0.2);
            color: #3498db;
        }
        /* NPP Country List */
        .npp-country-summary {
            display: flex;
            gap: 16px;
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(46, 204, 113, 0.3);
        }
        .npp-summary-stat {
            flex: 1;
            text-align: center;
        }
        .npp-summary-value {
            display: block;
            font-size: 22px;
            font-weight: bold;
            color: #2ecc71;
        }
        .npp-summary-label {
            display: block;
            font-size: 10px;
            color: #888;
            margin-top: 2px;
        }
        .npp-list-header {
            font-size: 12px;
            color: #888;
            margin-bottom: 8px;
            font-weight: 500;
        }
        .npp-list-container {
            max-height: 280px;
            overflow-y: auto;
        }
        .npp-list-item {
            padding: 10px;
            background: rgba(46, 204, 113, 0.1);
            border-radius: 8px;
            margin-bottom: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .npp-list-item:hover {
            background: rgba(46, 204, 113, 0.2);
            transform: translateX(4px);
        }
        .npp-list-name {
            font-size: 13px;
            font-weight: 600;
            color: #fff;
            margin-bottom: 4px;
        }
        .npp-list-stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 11px;
            color: #aaa;
        }

        /* Power Plant Markers */
        .power-plant-marker {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            cursor: pointer;
            transition: transform 0.2s ease, filter 0.2s ease;
            position: relative;
            box-shadow: 0 2px 8px rgba(0,0,0,0.4);
        }
        .power-plant-marker.hydro {
            background: radial-gradient(circle at 30% 30%, #3498db 0%, #2980b9 100%);
        }
        .power-plant-marker.thermal {
            background: radial-gradient(circle at 30% 30%, #e74c3c 0%, #c0392b 100%);
        }
        .power-plant-marker.solar {
            background: radial-gradient(circle at 30% 30%, #f1c40f 0%, #f39c12 100%);
        }
        .power-plant-marker.wind {
            background: radial-gradient(circle at 30% 30%, #1abc9c 0%, #16a085 100%);
        }
        .power-plant-marker:hover {
            transform: scale(1.3);
            filter: brightness(1.2);
            z-index: 500;
        }
        .power-plant-marker:hover .power-plant-tooltip {
            display: block;
            opacity: 1;
        }
        .power-plant-tooltip {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.9);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 6px;
            padding: 6px 10px;
            white-space: nowrap;
            display: none;
            opacity: 0;
            pointer-events: none;
            margin-bottom: 5px;
            z-index: 1000;
        }
        .power-plant-tooltip-name {
            font-size: 12px;
            font-weight: 600;
            color: #fff;
            margin-bottom: 2px;
        }
        .power-plant-tooltip-info {
            font-size: 10px;
            color: #aaa;
        }

        /* Power Plant Info Panel */
        .power-plant-info-panel {
            position: fixed;
            left: 10px;
            top: 175px;
            width: 300px;
            max-height: calc(100vh - 200px);
            background: rgba(15, 20, 25, 0.95);
            border: 1px solid rgba(52, 152, 219, 0.4);
            border-radius: 12px;
            padding: 0;
            z-index: 1000;
            display: none;
            box-shadow: 0 8px 32px rgba(0,0,0,0.4);
            overflow: hidden;
        }
        .power-plant-info-panel.visible {
            display: block;
        }
        .power-plant-info-header {
            background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
            padding: 12px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .power-plant-info-title {
            font-size: 14px;
            font-weight: 700;
            color: #fff;
        }
        .power-plant-info-close {
            background: none;
            border: none;
            color: rgba(255,255,255,0.8);
            font-size: 20px;
            cursor: pointer;
            padding: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .power-plant-info-close:hover {
            color: #fff;
        }
        .power-plant-info-content {
            padding: 12px 16px;
            overflow-y: auto;
            max-height: calc(100vh - 240px);
        }
        .power-plant-info-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .power-plant-info-row:last-child {
            border-bottom: none;
        }
        .power-plant-info-label {
            color: #888;
            font-size: 12px;
        }
        .power-plant-info-value {
            color: #fff;
            font-size: 12px;
            font-weight: 500;
        }
        /* Power Plant Country List */
        .power-plant-country-summary {
            display: flex;
            justify-content: space-around;
            padding: 12px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            background: rgba(52, 152, 219, 0.1);
        }
        .power-plant-summary-stat {
            text-align: center;
        }
        .power-plant-summary-value {
            font-size: 20px;
            font-weight: 700;
            color: #3498db;
            display: block;
        }
        .power-plant-summary-label {
            font-size: 11px;
            color: #888;
        }
        .power-plant-list-header {
            font-size: 12px;
            color: #888;
            padding: 10px 16px 5px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .power-plant-list {
            max-height: calc(100vh - 350px);
            overflow-y: auto;
        }
        .power-plant-list-item {
            padding: 10px 16px;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            cursor: pointer;
            transition: background 0.2s, transform 0.2s;
        }
        .power-plant-list-item:hover {
            background: rgba(52, 152, 219, 0.2);
            transform: translateX(4px);
        }
        .power-plant-list-name {
            font-size: 13px;
            font-weight: 600;
            color: #fff;
            margin-bottom: 4px;
        }
        .power-plant-list-stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 11px;
            color: #aaa;
        }
        .power-plant-extra-info {
            color: #3498db;
            font-size: 10px;
        }

        /* Bloc Summary Panel */
        .bloc-summary-panel {
            position: fixed;
            right: 20px;
            top: 80px;
            width: 320px;
            max-height: calc(100vh - 100px);
            background: rgba(0, 0, 0, 0.95);
            border-radius: 16px;
            border: 1px solid rgba(142, 68, 173, 0.5);
            z-index: 9000 !important;
            overflow-y: auto;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            transform: translateX(400px);
            transition: transform 0.3s ease;
        }

        .bloc-summary-panel.visible {
            transform: translateX(0);
        }

        .bloc-summary-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            background: linear-gradient(135deg, rgba(142, 68, 173, 0.3), rgba(155, 89, 182, 0.2));
            border-bottom: 1px solid rgba(142, 68, 173, 0.3);
        }

        .bloc-summary-header h3 {
            margin: 0;
            font-size: 16px;
            color: #fff;
        }

        .bloc-summary-close {
            background: none;
            border: none;
            color: #fff;
            font-size: 24px;
            cursor: pointer;
            opacity: 0.7;
            transition: opacity 0.2s;
        }

        .bloc-summary-close:hover {
            opacity: 1;
        }

        .bloc-summary-content {
            padding: 15px 20px;
        }

        .bloc-stat-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .bloc-stat-row:last-child {
            border-bottom: none;
        }

        .bloc-stat-label {
            color: rgba(255, 255, 255, 0.7);
            font-size: 13px;
        }

        .bloc-stat-value {
            color: #fff;
            font-size: 15px;
            font-weight: 600;
        }

        .bloc-countries-list {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
        }

        .bloc-countries-title {
            color: rgba(255, 255, 255, 0.5);
            font-size: 11px;
            text-transform: uppercase;
            margin-bottom: 10px;
        }

        .bloc-countries-flags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            font-size: 20px;
        }

        /* Sport filter buttons */
        /* Sport filters - Flat Design */
        .sport-filters {
            position: fixed;
            top: 110px;
            left: 15px;
            display: none;
            gap: 3px;
            flex-wrap: wrap;
            max-width: 500px;
            z-index: 90;
            background: rgba(30, 30, 40, 0.9);
            padding: 3px;
            border-radius: 6px;
        }

        .sport-filters.visible {
            display: flex;
        }

        .sport-filter {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            background: transparent;
            color: rgba(255, 255, 255, 0.5);
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .sport-filter:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }

        .sport-filter.active {
            background: #f1c40f;
            color: #000;
        }

        /* Stats filter buttons - Flat Design */
        .stats-filters {
            position: fixed;
            top: 60px;
            left: 15px;
            display: none;
            gap: 3px;
            flex-wrap: wrap;
            max-width: 600px;
            z-index: 90;
            background: rgba(30, 30, 40, 0.9);
            padding: 3px;
            border-radius: 6px;
        }

        .stats-filters.visible {
            display: flex;
        }

        .stats-filter {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            background: transparent;
            color: rgba(255, 255, 255, 0.5);
            font-size: 11px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .stats-filter:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }

        .stats-filter.active {
            background: #546e7a;
            color: #fff;
        }

        /* Stats Panel */
        .stats-panel {
            position: fixed;
            right: -420px;
            top: 80px;
            width: 400px;
            max-height: calc(100vh - 100px);
            background: linear-gradient(135deg, rgba(25, 25, 40, 0.98) 0%, rgba(40, 35, 55, 0.98) 100%);
            border-radius: 16px;
            border: 1px solid rgba(255, 193, 7, 0.3);
            transition: right 0.3s ease;
            overflow: hidden;
            z-index: 9000 !important;
            display: flex;
            flex-direction: column;
        }

        .stats-panel.visible {
            right: 20px;
        }

        .stats-panel h3 {
            margin: 0;
            padding: 15px 20px;
            background: linear-gradient(135deg, rgba(255, 193, 7, 0.3) 0%, rgba(255, 152, 0, 0.2) 100%);
            border-bottom: 1px solid rgba(255, 193, 7, 0.2);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .stats-panel-content {
            padding: 15px;
            overflow-y: auto;
            flex: 1;
        }

        .stats-medal-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-bottom: 15px;
        }

        .stats-medal-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 12px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .stats-medal-card .medal-icon {
            font-size: 28px;
            margin-bottom: 5px;
        }

        .stats-medal-card .medal-count {
            font-size: 22px;
            font-weight: 700;
            color: #fff;
        }

        .stats-medal-card .medal-label {
            font-size: 10px;
            color: rgba(255, 255, 255, 0.6);
            text-transform: uppercase;
        }

        .stats-achievements {
            margin-top: 15px;
        }

        .stats-achievements h4 {
            color: rgba(255, 193, 7, 0.9);
            margin: 15px 0 10px;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .achievement-item {
            background: rgba(255, 255, 255, 0.05);
            padding: 10px 12px;
            border-radius: 8px;
            margin-bottom: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .achievement-item .name {
            font-weight: 600;
            color: #fff;
        }

        .achievement-item .year {
            color: rgba(255, 193, 7, 0.8);
            font-size: 12px;
        }

        .achievement-item .category {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.5);
        }

        /* Economy Panel */
        .economy-panel {
            position: fixed;
            right: -420px;
            top: 80px;
            width: 400px;
            max-height: calc(100vh - 100px);
            background: rgba(0, 0, 0, 0.95);
            border-radius: 16px;
            border: 1px solid rgba(142, 68, 173, 0.5);
            padding: 20px;
            transition: right 0.4s ease;
            z-index: 9000 !important;
            overflow-y: auto;
        }

        .economy-panel.visible {
            right: 20px;
        }

        .economy-panel h3 {
            color: #bb8fce;
            font-size: 18px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .economy-stat-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-bottom: 15px;
        }

        .economy-stat-card {
            background: rgba(142, 68, 173, 0.15);
            border: 1px solid rgba(142, 68, 173, 0.3);
            border-radius: 10px;
            padding: 12px;
            text-align: center;
        }

        .economy-stat-card .stat-icon {
            font-size: 24px;
            margin-bottom: 5px;
        }

        .economy-stat-card .stat-value {
            font-size: 20px;
            font-weight: 700;
            color: #bb8fce;
        }

        .economy-stat-card .stat-label {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.6);
            text-transform: uppercase;
        }

        .economy-industries {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            padding: 15px;
            margin-top: 15px;
        }

        .economy-industries h4 {
            color: #bb8fce;
            font-size: 14px;
            margin-bottom: 10px;
        }

        .industry-tag {
            display: inline-block;
            background: rgba(142, 68, 173, 0.3);
            border: 1px solid rgba(142, 68, 173, 0.5);
            border-radius: 15px;
            padding: 5px 12px;
            margin: 3px;
            font-size: 12px;
            color: #d4a5e8;
        }

        /* Military filter buttons */
        /* Military filters - Flat Design */
        .military-filters {
            position: fixed;
            top: 110px;
            left: 15px;
            display: none;
            gap: 3px;
            flex-wrap: wrap;
            max-width: 500px;
            z-index: 90;
            background: rgba(30, 30, 40, 0.9);
            padding: 3px;
            border-radius: 6px;
        }

        .military-filters.visible {
            display: flex;
        }

        .military-filter {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            background: transparent;
            color: rgba(255, 255, 255, 0.5);
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .military-filter:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }

        .military-filter.active {
            background: #558b2f;
            color: #fff;
        }

        /* Military Panel */
        .military-panel {
            position: fixed;
            right: -420px;
            top: 80px;
            width: 400px;
            max-height: calc(100vh - 100px);
            background: rgba(0, 0, 0, 0.95);
            border-radius: 16px;
            border: 1px solid rgba(74, 93, 35, 0.5);
            padding: 20px;
            transition: right 0.4s ease;
            z-index: 9000 !important;
            overflow-y: auto;
        }

        .military-panel.visible {
            right: 20px;
        }

        .military-panel h3 {
            color: #8bb44a;
            font-size: 18px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .military-panel .country-flag {
            font-size: 28px;
        }

        .military-stat-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-bottom: 15px;
        }

        .military-stat-card {
            background: rgba(74, 93, 35, 0.15);
            border: 1px solid rgba(74, 93, 35, 0.3);
            border-radius: 10px;
            padding: 12px;
            text-align: center;
        }

        .military-stat-card .stat-icon {
            font-size: 24px;
            margin-bottom: 5px;
        }

        .military-stat-card .stat-value {
            font-size: 20px;
            font-weight: 700;
            color: #8bb44a;
        }

        .military-stat-card .stat-label {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.6);
            text-transform: uppercase;
        }

        .military-stat-card.nuclear {
            background: rgba(231, 76, 60, 0.15);
            border-color: rgba(231, 76, 60, 0.3);
        }

        .military-stat-card.nuclear .stat-value {
            color: #e74c3c;
        }

        .military-ranking {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            padding: 15px;
            margin-top: 15px;
        }

        .military-ranking h4 {
            color: #8bb44a;
            font-size: 14px;
            margin-bottom: 10px;
        }

        .military-budget {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }

        .military-budget .budget-value {
            font-size: 24px;
            font-weight: 700;
            color: #f1c40f;
        }

        .military-budget .budget-label {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.6);
        }

        .conflict-marker {
            position: absolute;
            width: 20px;
            height: 20px;
            background: radial-gradient(circle, rgba(231,76,60,0.8) 0%, rgba(231,76,60,0) 70%);
            border-radius: 50%;
            animation: conflict-pulse 1.5s ease-in-out infinite;
            cursor: pointer;
            z-index: 10;
        }

        @keyframes conflict-pulse {
            0%, 100% { transform: scale(1); opacity: 0.8; }
            50% { transform: scale(1.5); opacity: 0.4; }
        }

        .base-marker {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 2px solid #fff;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .base-marker:hover {
            transform: scale(1.3);
        }

        .base-marker.nato {
            background: #3498db;
        }

        .base-marker.russia {
            background: #e74c3c;
        }

        .base-marker.china {
            background: #f1c40f;
        }

        .base-marker.other {
            background: #9b59b6;
        }

        /* Compare Panel - Military Comparison */
        .compare-panel {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.9);
            width: 90%;
            max-width: 900px;
            max-height: 85vh;
            background: rgba(10, 15, 20, 0.98);
            border-radius: 20px;
            border: 2px solid rgba(74, 93, 35, 0.6);
            padding: 25px;
            z-index: 400;
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s ease;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
        }

        .compare-panel.visible {
            opacity: 1;
            pointer-events: auto;
            transform: translate(-50%, -50%) scale(1);
        }

        .compare-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(74, 93, 35, 0.4);
        }

        .compare-panel-header h3 {
            color: #8bb44a;
            font-size: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .compare-countries {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .compare-country {
            flex: 1;
            min-width: 250px;
            max-width: 280px;
            background: rgba(74, 93, 35, 0.1);
            border: 1px solid rgba(74, 93, 35, 0.3);
            border-radius: 15px;
            padding: 15px;
        }

        .compare-country-header {
            text-align: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(74, 93, 35, 0.3);
        }

        .compare-country-flag {
            font-size: 40px;
            display: block;
            margin-bottom: 5px;
        }

        .compare-country-name {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
        }

        .compare-country-rank {
            font-size: 12px;
            color: #8bb44a;
            margin-top: 3px;
        }

        .compare-stats {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .compare-stat-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 10px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
        }

        .compare-stat-row .stat-label {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.6);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .compare-stat-row .stat-value {
            font-size: 14px;
            font-weight: 600;
            color: #8bb44a;
        }

        .compare-stat-row.best .stat-value {
            color: #f1c40f;
        }

        .compare-stat-row.nuclear .stat-value {
            color: #e74c3c;
        }

        .compare-clear-btn {
            display: block;
            margin: 20px auto 0;
            padding: 10px 25px;
            background: rgba(231, 76, 60, 0.3);
            border: 1px solid rgba(231, 76, 60, 0.5);
            border-radius: 8px;
            color: #fff;
            cursor: pointer;
            transition: all 0.2s;
        }

        .compare-clear-btn:hover {
            background: rgba(231, 76, 60, 0.5);
        }

        .compare-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 399;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }

        .compare-overlay.visible {
            opacity: 1;
            pointer-events: auto;
        }

        /* Space filter buttons - Flat Design */
        .space-filters {
            position: fixed;
            top: 95px;
            left: 15px;
            right: auto;
            width: fit-content;
            display: none;
            gap: 3px;
            flex-wrap: nowrap;
            justify-content: flex-start;
            z-index: 90;
            background: rgba(30, 30, 40, 0.9);
            padding: 3px;
            border-radius: 6px;
        }

        .space-filters.visible {
            display: flex;
        }

        .space-filter {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            background: transparent;
            color: rgba(255, 255, 255, 0.5);
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .space-filter:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }

        .space-filter.active {
            background: #9b59b6;
            color: #fff;
        }

        /* Space search - встроен в панель фильтров */
        .space-search-container {
            display: none;
            flex-direction: column;
            position: relative;
            margin-left: 8px;
        }
        .space-search-container.visible {
            display: flex;
        }
        .space-search-row {
            display: flex;
            align-items: center;
        }
        .space-search-input {
            padding: 6px 12px 6px 32px;
            border: none;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
            font-size: 11px;
            width: 140px;
            outline: none;
            transition: all 0.2s;
        }
        .space-search-input:focus {
            background: rgba(255, 255, 255, 0.15);
            width: 180px;
        }
        .space-search-input::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }
        .space-search-icon {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 12px;
            opacity: 0.5;
            pointer-events: none;
        }
        .space-search-btn {
            display: none;
        }
        .space-search-suggestions {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: rgba(30, 30, 40, 0.98);
            border-radius: 0 0 6px 6px;
            max-height: 250px;
            overflow-y: auto;
            margin-top: 2px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
            border: 1px solid rgba(155, 89, 182, 0.3);
            min-width: 220px;
        }
        .space-search-suggestions.visible {
            display: block;
        }
        .space-search-item {
            padding: 10px 12px;
            cursor: pointer;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            font-size: 12px;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: background 0.15s;
        }
        .space-search-item:hover {
            background: rgba(155, 89, 182, 0.3);
        }
        .space-search-item:last-child {
            border-bottom: none;
        }
        .space-search-item-icon {
            font-size: 16px;
            width: 24px;
            text-align: center;
        }
        .space-search-item-name {
            font-weight: 500;
            color: #fff;
        }
        .space-search-item-type {
            color: rgba(155, 89, 182, 0.8);
            font-size: 10px;
            margin-left: auto;
            background: rgba(155, 89, 182, 0.2);
            padding: 2px 6px;
            border-radius: 3px;
        }
        .space-search-status {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            margin-top: 4px;
            padding: 6px 10px;
            background: rgba(155, 89, 182, 0.95);
            border-radius: 4px;
            font-size: 10px;
            color: #fff;
            white-space: nowrap;
            box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }
        .space-search-status.visible {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .space-search-status .clear-btn {
            background: rgba(255,255,255,0.2);
            border: none;
            color: #fff;
            padding: 2px 8px;
            border-radius: 3px;
            cursor: pointer;
            font-size: 10px;
            transition: background 0.15s;
        }
        .space-search-status .clear-btn:hover {
            background: rgba(255,255,255,0.35);
        }

        /* Planet filter buttons */
        .planet-filters {
            position: fixed;
            top: 95px;
            left: 15px;
            right: auto;
            width: fit-content;
            display: none;
            gap: 3px;
            flex-wrap: nowrap;
            justify-content: flex-start;
            z-index: 90;
            background: rgba(30, 30, 40, 0.9);
            padding: 3px;
            border-radius: 6px;
        }
        .planet-filters.visible {
            display: flex;
        }
        .planet-filter {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            background: transparent;
            color: rgba(255, 255, 255, 0.5);
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        .planet-filter:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }
        .planet-filter.active {
            background: #9b59b6;
            color: #fff;
        }

        /* Planet Info Panel */
        .planet-info-panel {
            position: fixed;
            right: 20px;
            bottom: 20px;
            width: 360px;
            max-height: 70vh;
            background: rgba(15, 15, 30, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 16px;
            overflow-y: auto;
            overflow-x: hidden;
            z-index: 500;
            display: none;
            color: #fff;
            box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(155, 89, 182, 0.2);
        }
        .planet-info-panel.visible {
            display: block;
            animation: fadeSlideUp 0.3s ease;
        }
        @keyframes fadeSlideUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .planet-info-close {
            position: absolute;
            top: 12px;
            right: 12px;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: #fff;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            font-size: 18px;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }
        .planet-info-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        .planet-hero {
            text-align: center;
            padding: 20px 20px 10px;
        }
        .planet-preview-canvas {
            width: 160px;
            height: 160px;
            border-radius: 50%;
            margin: 0 auto 12px;
            display: block;
        }
        .planet-hero-name {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 4px;
        }
        .planet-hero-type {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.5);
            margin-bottom: 8px;
        }
        .planet-hero-desc {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.6);
            line-height: 1.5;
            padding: 0 10px;
        }
        .planet-facts {
            padding: 12px 20px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }
        .planet-fact {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            padding: 10px 12px;
        }
        .planet-fact-label {
            font-size: 10px;
            color: rgba(255, 255, 255, 0.4);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 4px;
        }
        .planet-fact-value {
            font-size: 14px;
            font-weight: 600;
            color: #fff;
        }
        .planet-atmosphere {
            padding: 8px 20px 12px;
        }
        .planet-atmosphere-label {
            font-size: 10px;
            color: rgba(255, 255, 255, 0.4);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 4px;
        }
        .planet-atmosphere-value {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.8);
        }
        .planet-explore-btn {
            display: block;
            width: calc(100% - 40px);
            margin: 8px 20px 20px;
            padding: 12px;
            background: linear-gradient(135deg, #6c3483, #9b59b6);
            border: none;
            border-radius: 12px;
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            text-align: center;
        }
        .planet-explore-btn:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 20px rgba(155, 89, 182, 0.4);
        }

        /* Back to Earth button */
        .back-to-earth-btn {
            position: fixed;
            top: 60px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9100;
            padding: 10px 24px;
            background: linear-gradient(135deg, #1a5276, #2980b9);
            color: white;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            display: none;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 600;
            box-shadow: 0 4px 20px rgba(41, 128, 185, 0.4);
            animation: pulseGlowEarth 2s ease-in-out infinite;
        }
        .back-to-earth-btn.visible {
            display: flex;
        }
        @keyframes pulseGlowEarth {
            0%, 100% { box-shadow: 0 4px 20px rgba(41, 128, 185, 0.4); }
            50% { box-shadow: 0 4px 30px rgba(41, 128, 185, 0.7); }
        }
        .back-to-earth-btn:hover {
            background: linear-gradient(135deg, #2980b9, #3498db);
        }
        .explore-rotate-toggle {
            position: fixed;
            top: 105px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9100;
            padding: 7px 16px;
            background: rgba(30, 50, 80, 0.85);
            color: white;
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 14px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            transition: background 0.2s;
            display: none;
        }
        .explore-rotate-toggle.visible {
            display: block;
        }
        .explore-rotate-toggle:hover {
            background: rgba(41, 128, 185, 0.8);
        }

        /* Planet label on globe */
        .planet-label {
            color: #fff;
            font-size: 12px;
            font-weight: 600;
            text-shadow: 0 1px 6px rgba(0,0,0,0.9), 0 0 12px rgba(0,0,0,0.7);
            white-space: nowrap;
            text-align: center;
            letter-spacing: 0.5px;
        }

        /* Space sub-mode buttons (Satellites/Spaceports/Observatories) */
        .space-submodes {
            position: fixed;
            top: 60px;
            left: 15px;
            right: auto;
            width: fit-content;
            display: none;
            gap: 3px;
            justify-content: flex-start;
            z-index: 9000 !important;
            background: rgba(30, 30, 40, 0.9);
            padding: 3px;
            border-radius: 6px;
        }

        .space-submodes.visible {
            display: flex;
        }

        .space-submode {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.7);
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .space-submode:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }

        .space-submode.active {
            background: #9b59b6;
            color: #fff;
        }

        .space-counter {
            padding: 6px 10px;
            font-size: 11px;
            color: rgba(255, 255, 255, 0.8);
            background: rgba(0, 0, 0, 0.3);
            border-radius: 4px;
            white-space: nowrap;
        }

        /* Flights sub-mode filters */
        .flights-filters {
            position: fixed;
            top: 60px;
            left: 15px;
            right: auto;
            width: fit-content;
            display: none;
            gap: 3px;
            justify-content: flex-start;
            z-index: 90;
            background: rgba(30, 30, 40, 0.9);
            padding: 3px;
            border-radius: 6px;
        }

        .flights-filters.visible {
            display: flex;
        }

        .flights-filter {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.7);
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .flights-filter:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }

        .flights-filter.active {
            background: #e74c3c;
            color: #fff;
        }

        /* Aircraft type filters */
        .aircraft-type-filters {
            display: flex;
            gap: 6px;
            margin-bottom: 8px;
        }
        .aircraft-type-btn {
            padding: 5px 10px;
            border: none;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.08);
            color: rgba(255, 255, 255, 0.7);
            font-size: 10px;
            cursor: pointer;
        }
        .aircraft-type-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
        }
        .aircraft-type-btn.active {
            background: #3498db;
            color: #fff;
        }

        /* Airport type filter buttons */
        .airport-type-filters {
            display: flex;
            gap: 6px;
            margin-bottom: 8px;
        }
        .airport-type-btn {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.6);
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        .airport-type-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
        }
        .airport-type-btn.active {
            background: rgba(255, 255, 255, 0.25);
            color: #fff;
        }

        .flights-counter {
            padding: 6px 10px;
            font-size: 11px;
            color: rgba(255, 255, 255, 0.8);
            background: rgba(0, 0, 0, 0.3);
            border-radius: 4px;
            white-space: nowrap;
        }

        /* Ships filters (like flights-filters) */
        .ships-filters {
            position: fixed;
            top: 60px;
            left: 15px;
            right: auto;
            width: fit-content;
            display: none;
            gap: 3px;
            justify-content: flex-start;
            z-index: 90;
            background: rgba(30, 30, 40, 0.9);
            padding: 3px;
            border-radius: 6px;
        }

        .ships-filters.visible {
            display: flex;
        }

        .ships-filter {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.7);
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .ships-filter:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }

        .ships-filter.active {
            background: #0288d1;
            color: #fff;
        }

        .ships-counter {
            padding: 6px 10px;
            font-size: 11px;
            color: rgba(255, 255, 255, 0.8);
            background: rgba(0, 0, 0, 0.3);
            border-radius: 4px;
            white-space: nowrap;
        }

        /* Ship search container */
        .ship-search-container {
            position: fixed;
            top: 110px;
            left: 15px;
            display: none;
            z-index: 9000 !important;
            flex-direction: column;
        }
        .ship-search-container.visible {
            display: flex;
        }
        .ship-search-row {
            display: flex;
        }
        .ship-search-input {
            padding: 8px 12px;
            border: none;
            border-radius: 4px 0 0 4px;
            background: rgba(0, 0, 0, 0.6);
            color: #fff;
            font-size: 12px;
            width: 180px;
            outline: none;
        }
        .ship-search-input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }
        .ship-search-btn {
            padding: 8px 12px;
            border: none;
            border-radius: 0 4px 4px 0;
            background: #0288d1;
            color: #fff;
            cursor: pointer;
            font-size: 12px;
        }
        .ship-search-btn:hover {
            background: #0277bd;
        }
        .ship-search-suggestions {
            display: none;
            background: rgba(20, 20, 30, 0.95);
            border-radius: 4px;
            margin-top: 4px;
            max-height: 200px;
            overflow-y: auto;
        }
        .ship-search-suggestions.visible {
            display: block;
        }
        .ship-suggestion-item {
            padding: 8px 12px;
            cursor: pointer;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            font-size: 12px;
        }
        .ship-suggestion-item:hover {
            background: rgba(2, 136, 209, 0.3);
        }
        .ship-suggestion-item:last-child {
            border-bottom: none;
        }
        .ship-suggestion-name {
            color: #fff;
            font-weight: 500;
        }
        .ship-suggestion-type {
            color: rgba(255,255,255,0.5);
            font-size: 10px;
            margin-left: 8px;
        }
        .port-type-filters {
            display: flex;
            gap: 4px;
            margin-bottom: 8px;
        }
        .port-type-btn {
            padding: 5px 10px;
            border: none;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
            font-size: 10px;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        .port-type-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        .port-type-btn.active {
            background: rgba(255, 255, 255, 0.25);
            color: #fff;
        }

        /* Ship water type filters (Sea/River) */
        .ship-water-type-filters {
            display: flex;
            gap: 4px;
            margin-bottom: 8px;
        }
        .ship-water-btn {
            padding: 5px 10px;
            border: none;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
            font-size: 10px;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        .ship-water-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        .ship-water-btn.active {
            background: rgba(46, 204, 113, 0.4);
            color: #fff;
        }

        /* Ship type filters */
        .ship-type-filters {
            display: flex;
            gap: 4px;
            flex-wrap: wrap;
            margin-bottom: 8px;
        }
        .ship-type-btn {
            padding: 5px 10px;
            border: none;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
            font-size: 10px;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        .ship-type-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        .ship-type-btn.active {
            background: rgba(52, 152, 219, 0.4);
            color: #fff;
        }

        /* Ship country filter */
        .ship-country-filter {
            margin-bottom: 8px;
        }
        #ship-country-select {
            width: 100%;
            padding: 8px 12px;
            border: none;
            border-radius: 4px;
            background: rgba(0, 0, 0, 0.6);
            color: #fff;
            font-size: 12px;
            cursor: pointer;
            outline: none;
        }
        #ship-country-select:hover {
            background: rgba(0, 0, 0, 0.8);
        }
        #ship-country-select option {
            background: #1a1a2e;
            color: #fff;
            padding: 8px;
        }

        /* Piracy zone markers */
        .piracy-marker {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255, 0, 0, 0.8) 0%, rgba(139, 0, 0, 0.9) 100%);
            border: 2px solid #ff4444;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            cursor: pointer;
            transition: transform 0.2s;
            box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
            animation: piracyPulse 2s ease-in-out infinite;
            position: relative;
            pointer-events: auto !important;
        }
        .piracy-marker:hover {
            transform: scale(1.3);
            z-index: 9999 !important;
        }
        @keyframes piracyPulse {
            0%, 100% { box-shadow: 0 0 15px rgba(255, 0, 0, 0.6); }
            50% { box-shadow: 0 0 25px rgba(255, 0, 0, 0.9); }
        }
        .piracy-tooltip {
            position: absolute;
            top: 38px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(40, 0, 0, 0.97);
            color: #fff;
            padding: 12px 14px;
            border-radius: 8px;
            font-size: 12px;
            white-space: normal;
            width: 280px;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.2s;
            border: 1px solid #ff4444;
            box-shadow: 0 4px 25px rgba(0,0,0,0.6);
            z-index: 99999 !important;
        }
        .piracy-tooltip .piracy-name { font-weight: bold; font-size: 14px; margin-bottom: 8px; }
        .piracy-tooltip .piracy-risk {
            display: inline-block;
            padding: 2px 10px;
            border-radius: 12px;
            font-size: 10px;
            font-weight: bold;
            text-transform: uppercase;
            margin-right: 8px;
        }
        .piracy-tooltip .piracy-risk.high { background: #cc0000; }
        .piracy-tooltip .piracy-risk.medium { background: #dd7700; }
        .piracy-tooltip .piracy-risk.low { background: #338833; }
        .piracy-tooltip .piracy-stats { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
        .piracy-tooltip .piracy-incidents { color: #ff8888; font-size: 11px; }
        .piracy-tooltip .piracy-coords { color: #888; font-size: 10px; margin-bottom: 8px; font-family: monospace; }
        .piracy-tooltip .piracy-desc { color: #ddd; font-size: 11px; line-height: 1.5; margin-bottom: 8px; border-left: 2px solid #ff4444; padding-left: 8px; }
        .piracy-tooltip .piracy-countries { color: #88ccff; font-size: 10px; }
        .piracy-tooltip .piracy-countries::before { content: '🌍 '; }
        .piracy-marker:hover .piracy-tooltip {
            opacity: 1;
        }

        /* SST points */
        .sst-point {
            position: relative;
            pointer-events: auto !important;
            animation: none !important;
            transition: opacity 0.15s !important;
        }

        /* Sanctioned vessels markers */
        .sanctioned-marker {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(200, 0, 0, 0.9) 0%, rgba(80, 0, 0, 0.95) 100%);
            border: 2px solid #ff0000;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            cursor: pointer;
            transition: transform 0.2s;
            box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
            animation: sanctionedPulse 1.5s ease-in-out infinite;
            position: relative;
            pointer-events: auto !important;
        }
        .sanctioned-marker:hover { transform: scale(1.3); z-index: 9999 !important; }
        @keyframes sanctionedPulse {
            0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.8); }
            50% { box-shadow: 0 0 35px rgba(255, 0, 0, 1); }
        }
        .sanctioned-tooltip {
            position: absolute;
            top: 40px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(60, 0, 0, 0.97);
            color: #fff;
            padding: 12px;
            border-radius: 8px;
            font-size: 11px;
            width: 260px;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.2s;
            border: 1px solid #ff3333;
            z-index: 99999 !important;
        }
        .sanctioned-tooltip .sanctioned-name { font-weight: bold; font-size: 14px; margin-bottom: 6px; color: #ff6666; }
        .sanctioned-tooltip .sanctioned-info { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; color: #ccc; }
        .sanctioned-tooltip .sanctioned-programs { color: #ffaa00; font-size: 10px; margin-bottom: 4px; }
        .sanctioned-tooltip .sanctioned-status { color: #44ff44; font-size: 10px; font-weight: bold; }
        .sanctioned-marker:hover .sanctioned-tooltip { opacity: 1; }

        .sanctioned-info-panel {
            position: fixed;
            top: 120px;
            left: 20px;
            width: 320px;
            background: rgba(40, 0, 0, 0.95);
            border: 2px solid #ff3333;
            border-radius: 12px;
            padding: 16px;
            z-index: 1000;
            color: #fff;
            box-shadow: 0 8px 40px rgba(255, 0, 0, 0.4);
        }
        .sanctioned-panel-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
        .sanctioned-panel-header h3 { margin: 0; color: #ff6666; flex: 1; }
        .sanctioned-status-badge { background: #ff3333; padding: 2px 8px; border-radius: 10px; font-size: 10px; }
        .sanctioned-panel-content { font-size: 12px; }
        .sanctioned-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
        .sanctioned-sanctions { margin-top: 12px; padding: 10px; background: rgba(255,0,0,0.2); border-radius: 6px; font-size: 11px; }
        .sanctioned-live { margin-top: 10px; color: #44ff44; font-family: monospace; }
        .sanctioned-source { margin-top: 12px; font-size: 10px; color: #888; text-align: center; }

        /* Dark vessels markers (SAR) */
        .dark-vessel-marker {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(100, 0, 150, 0.9) 0%, rgba(40, 0, 60, 0.95) 100%);
            border: 2px solid #aa44ff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            cursor: pointer;
            transition: transform 0.2s;
            box-shadow: 0 0 18px rgba(170, 68, 255, 0.7);
            animation: darkVesselPulse 2s ease-in-out infinite;
            position: relative;
            pointer-events: auto !important;
        }
        .dark-vessel-marker:hover { transform: scale(1.3); z-index: 9999 !important; }
        @keyframes darkVesselPulse {
            0%, 100% { box-shadow: 0 0 18px rgba(170, 68, 255, 0.7); }
            50% { box-shadow: 0 0 30px rgba(170, 68, 255, 1); }
        }
        .dark-vessel-tooltip {
            position: absolute;
            top: 36px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(40, 0, 60, 0.97);
            color: #fff;
            padding: 10px;
            border-radius: 8px;
            font-size: 11px;
            width: 200px;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.2s;
            border: 1px solid #aa44ff;
            z-index: 99999 !important;
        }
        .dark-vessel-tooltip .dark-vessel-title { font-weight: bold; font-size: 13px; margin-bottom: 6px; color: #cc88ff; }
        .dark-vessel-tooltip .dark-vessel-info { color: #ff8888; margin-bottom: 4px; }
        .dark-vessel-tooltip .dark-vessel-coords { color: #888; font-family: monospace; font-size: 10px; margin-bottom: 4px; }
        .dark-vessel-tooltip .dark-vessel-source { color: #88aaff; font-size: 10px; }
        .dark-vessel-marker:hover .dark-vessel-tooltip { opacity: 1; }

        /* Dark vessel hover tooltip (for raycaster) */
        .dark-vessel-hover-tooltip {
            position: fixed;
            padding: 12px 16px;
            background: rgba(40, 0, 60, 0.97);
            border: 1px solid #aa44ff;
            border-radius: 10px;
            color: #fff;
            font-size: 12px;
            pointer-events: none;
            z-index: 99999;
            opacity: 0;
            transition: opacity 0.15s;
            box-shadow: 0 4px 20px rgba(140, 60, 220, 0.5);
            min-width: 180px;
        }
        .dark-vessel-hover-tooltip.visible { opacity: 1; }
        .dark-vessel-hover-tooltip .dv-title { font-weight: bold; color: #cc88ff; margin-bottom: 8px; font-size: 14px; }
        .dark-vessel-hover-tooltip .dv-row { display: flex; justify-content: space-between; margin: 4px 0; }
        .dark-vessel-hover-tooltip .dv-label { color: #aaa; }
        .dark-vessel-hover-tooltip .dv-value { color: #fff; }
        .dark-vessel-hover-tooltip .dv-action { margin-top: 8px; color: #aa88ff; font-size: 10px; text-align: center; }

        /* Infrastructure hover tooltip (for pointsData) */
        .infra-hover-tooltip {
            position: fixed;
            padding: 10px 14px;
            background: rgba(20, 20, 30, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 8px;
            color: #fff;
            font-size: 12px;
            pointer-events: none;
            z-index: 99999;
            opacity: 0;
            transition: opacity 0.15s;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
            max-width: 250px;
        }
        .infra-hover-tooltip.visible { opacity: 1; }
        .infra-hover-tooltip .infra-title { font-weight: bold; margin-bottom: 6px; font-size: 13px; }
        .infra-hover-tooltip .infra-row { display: flex; justify-content: space-between; margin: 3px 0; gap: 12px; }
        .infra-hover-tooltip .infra-label { color: #aaa; }
        .infra-hover-tooltip .infra-value { color: #fff; font-weight: 500; }
        .infra-hover-tooltip .infra-action { margin-top: 6px; color: #888; font-size: 10px; text-align: center; }
        .infra-hover-tooltip.metro { border-color: #9b59b6; }
        .infra-hover-tooltip.metro .infra-title { color: #bb77dd; }
        .infra-hover-tooltip.refineries { border-color: #7f8c8d; }
        .infra-hover-tooltip.refineries .infra-title { color: #bdc3c7; }
        .infra-hover-tooltip.lng { border-color: #f1c40f; }
        .infra-hover-tooltip.lng .infra-title { color: #f4d03f; }
        .infra-hover-tooltip.datacenters { border-color: #2ecc71; }
        .infra-hover-tooltip.datacenters .infra-title { color: #58d68d; }
        .infra-hover-tooltip.pipelines { border-color: #8b4513; }
        .infra-hover-tooltip.pipelines .infra-title { color: #cd853f; }
        .infra-hover-tooltip.pipelines.gas { border-color: #4169e1; }
        .infra-hover-tooltip.pipelines.gas .infra-title { color: #6495ed; }

        /* Dark vessel info panel */
        .dark-vessel-info-panel {
            position: fixed;
            top: 140px;
            left: 20px;
            width: 320px;
            background: rgba(30, 0, 50, 0.97);
            border: 2px solid #aa44ff;
            border-radius: 12px;
            z-index: 1000;
            box-shadow: 0 5px 30px rgba(140, 60, 220, 0.6);
            overflow: hidden;
        }
        .dark-vessel-panel-header {
            display: flex;
            align-items: center;
            padding: 16px;
            background: linear-gradient(135deg, rgba(100, 40, 150, 0.9), rgba(60, 20, 100, 0.9));
            gap: 12px;
        }
        .dark-vessel-panel-header h3 { margin: 0; color: #fff; font-size: 16px; flex: 1; }
        .dark-vessel-panel-header .close-btn { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; opacity: 0.7; }
        .dark-vessel-panel-header .close-btn:hover { opacity: 1; }
        .dark-vessel-panel-content { padding: 16px; }
        .dark-vessel-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(170, 68, 255, 0.2); }
        .dark-vessel-row:last-child { border-bottom: none; }
        .dark-vessel-row span:first-child { color: #aaa; }
        .dark-vessel-row span:last-child { color: #fff; font-weight: 500; }
        .dark-vessel-warning { margin-top: 12px; padding: 10px; background: rgba(255, 100, 100, 0.15); border: 1px solid rgba(255, 100, 100, 0.3); border-radius: 6px; color: #ff8888; font-size: 11px; }
        .dark-vessel-source { margin-top: 12px; font-size: 10px; color: #888; text-align: center; }

        .dark-vessels-message {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(40, 0, 60, 0.95);
            border: 2px solid #aa44ff;
            border-radius: 12px;
            padding: 24px;
            z-index: 1000;
            color: #fff;
            max-width: 400px;
            text-align: center;
        }
        .dark-vessels-message h3 { margin-top: 0; color: #cc88ff; }
        .dark-vessels-message a { color: #88aaff; }
        .dark-vessels-message ol { text-align: left; }
        .sst-point, .sst-point * {
            animation: none !important;
        }
        .sst-point .sst-tooltip {
            position: absolute;
            bottom: 18px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 40, 80, 0.95);
            color: #fff;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 12px;
            white-space: nowrap;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.15s;
            border: 1px solid #4488ff;
            z-index: 99999 !important;
        }
        .sst-point:hover {
            z-index: 9999 !important;
        }
        .sst-point:hover .sst-tooltip {
            opacity: 1;
        }
        .sst-tooltip .sst-temp {
            font-size: 16px;
            font-weight: bold;
        }
        .sst-tooltip .sst-coords {
            color: #88bbff;
            font-size: 10px;
            margin-top: 4px;
        }

        /* Piracy info panel */
        .piracy-info-panel {
            position: fixed;
            top: 175px;
            left: 10px;
            width: 300px;
            max-height: calc(100vh - 200px);
            background: rgba(40, 10, 10, 0.98);
            border-radius: 10px;
            border: 1px solid rgba(255, 68, 68, 0.4);
            z-index: 9000 !important;
            overflow: hidden;
        }
        .piracy-info-header {
            background: linear-gradient(135deg, #8b0000 0%, #b22222 100%);
            padding: 12px 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .piracy-info-header h3 {
            margin: 0;
            font-size: 14px;
            color: #fff;
        }
        .piracy-info-content {
            padding: 15px;
            color: #fff;
            font-size: 12px;
            line-height: 1.5;
            overflow-y: auto;
            max-height: 400px;
        }
        .piracy-stat-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .piracy-risk-badge {
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: bold;
        }
        .piracy-risk-badge.high { background: #e74c3c; }
        .piracy-risk-badge.medium { background: #f39c12; }
        .piracy-risk-badge.low { background: #27ae60; }

        /* Ocean currents legend */
        .currents-legend {
            position: fixed;
            bottom: 100px;
            left: 10px;
            background: rgba(20, 40, 60, 0.95);
            border-radius: 8px;
            padding: 12px;
            z-index: 150;
            border: 1px solid rgba(0, 150, 255, 0.3);
        }
        .currents-legend h4 {
            margin: 0 0 10px 0;
            color: #fff;
            font-size: 12px;
        }
        .currents-legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 4px 0;
            font-size: 11px;
            color: rgba(255,255,255,0.8);
        }
        .currents-legend-color {
            width: 20px;
            height: 4px;
            border-radius: 2px;
        }

        /* SST legend */
        .sst-legend {
            position: fixed;
            bottom: 100px;
            left: 10px;
            background: rgba(20, 30, 50, 0.95);
            border-radius: 8px;
            padding: 12px;
            z-index: 150;
            border: 1px solid rgba(255, 150, 0, 0.3);
        }
        .sst-legend h4 {
            margin: 0 0 10px 0;
            color: #fff;
            font-size: 12px;
        }
        .sst-gradient {
            width: 150px;
            height: 15px;
            border-radius: 4px;
            background: linear-gradient(to right, #0000ff, #00ffff, #00ff00, #ffff00, #ff8800, #ff0000);
            margin-bottom: 5px;
        }
        .sst-labels {
            display: flex;
            justify-content: space-between;
            font-size: 10px;
            color: rgba(255,255,255,0.7);
        }

        /* Disasters filters */
        .disasters-filters {
            position: fixed;
            top: 60px;
            left: 15px;
            right: auto;
            max-width: calc(100vw - 30px);
            display: none;
            flex-wrap: wrap;
            gap: 3px;
            justify-content: flex-start;
            z-index: 90;
            background: rgba(30, 30, 40, 0.9);
            padding: 3px;
            border-radius: 6px;
        }
        .disasters-filters.visible {
            display: flex;
        }
        .disaster-filter {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.7);
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        .disaster-filter:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }
        .disaster-filter.active {
            background: #e74c3c;
            color: #fff;
        }
        .disasters-counter {
            padding: 6px 10px;
            font-size: 11px;
            color: rgba(255, 255, 255, 0.8);
            background: rgba(0, 0, 0, 0.3);
            border-radius: 4px;
            white-space: nowrap;
        }

        /* Disaster Navigator */
        .disaster-navigator {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            margin-left: 8px;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 6px;
            padding: 2px 6px;
        }
        .disaster-nav-btn {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: #fff;
            width: 24px;
            height: 24px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }
        .disaster-nav-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        .disaster-nav-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }
        .disaster-nav-index {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.8);
            min-width: 40px;
            text-align: center;
        }
        .disaster-list-btn {
            background: rgba(231, 76, 60, 0.8);
            border: none;
            color: #fff;
            padding: 4px 8px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 11px;
            margin-left: 4px;
            transition: background 0.2s;
        }
        .disaster-list-btn:hover {
            background: rgba(231, 76, 60, 1);
        }

        /* Disaster List Panel — Sidebar */
        #disaster-list-panel {
            display: none;
            position: fixed;
            top: 95px;
            left: 15px;
            bottom: 60px;
            width: 320px;
            background: rgba(20, 28, 36, 0.97);
            color: #fff;
            border-radius: 12px;
            font-size: 13px;
            z-index: 100;
            box-shadow: 4px 0 20px rgba(0,0,0,0.5);
            overflow: hidden;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }
        #disaster-list-panel.visible {
            display: flex;
            flex-direction: column;
            transform: translateX(0);
            opacity: 1;
        }
        #disaster-list-panel.collapsed {
            display: flex;
            transform: translateX(calc(-100% - 20px));
            opacity: 0;
            pointer-events: none;
        }
        /* Collapsed tab */
        #disaster-list-tab {
            display: none;
            position: fixed;
            top: 95px;
            left: 0;
            width: 28px;
            height: 48px;
            background: rgba(231, 76, 60, 0.85);
            color: #fff;
            border-radius: 0 8px 8px 0;
            cursor: pointer;
            z-index: 100;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
            transition: all 0.25s ease;
            backdrop-filter: blur(4px);
        }
        #disaster-list-tab:hover {
            width: 36px;
            background: rgba(231, 76, 60, 1);
        }
        #disaster-list-tab.visible {
            display: flex;
        }
        .disaster-list-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 14px;
            background: rgba(231, 76, 60, 0.9);
            border-radius: 12px 12px 0 0;
            flex-shrink: 0;
        }
        .disaster-list-title {
            font-weight: bold;
            font-size: 14px;
        }
        .disaster-list-close {
            background: rgba(255,255,255,0.2);
            border: none;
            color: #fff;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 14px;
        }
        .disaster-list-sort {
            display: flex;
            gap: 4px;
            padding: 8px 12px;
            background: rgba(0,0,0,0.2);
            flex-shrink: 0;
        }
        .disaster-sort-btn {
            padding: 4px 10px;
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 12px;
            background: transparent;
            color: rgba(255,255,255,0.7);
            font-size: 11px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .disaster-sort-btn.active {
            background: rgba(231, 76, 60, 0.6);
            border-color: rgba(231, 76, 60, 0.8);
            color: #fff;
        }
        .disaster-list-content {
            flex: 1;
            overflow-y: auto;
            padding: 4px 8px;
        }
        .disaster-list-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.2s;
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }
        .disaster-list-item:hover {
            background: rgba(255,255,255,0.1);
        }
        .disaster-list-item:last-child {
            border-bottom: none;
        }
        .disaster-list-item.active {
            background: rgba(231, 76, 60, 0.3);
        }
        .disaster-list-icon {
            font-size: 20px;
            width: 28px;
            text-align: center;
            flex-shrink: 0;
        }
        .disaster-list-info {
            flex: 1;
            min-width: 0;
        }
        .disaster-list-name {
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 13px;
        }
        .disaster-list-meta {
            font-size: 11px;
            color: rgba(255,255,255,0.6);
            margin-top: 2px;
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }
        .disaster-list-badges {
            display: flex;
            gap: 4px;
            flex-shrink: 0;
            align-items: center;
        }
        .pager-badge {
            display: inline-block;
            padding: 1px 6px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            line-height: 1.4;
        }
        .pager-badge.green { background: #4caf50; color: #fff; }
        .pager-badge.yellow { background: #ffeb3b; color: #333; }
        .pager-badge.orange { background: #ff9800; color: #fff; }
        .pager-badge.red { background: #f44336; color: #fff; }
        .tsunami-badge {
            display: inline-block;
            padding: 1px 6px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 700;
            background: #0288d1;
            color: #fff;
        }
        .disaster-time-ago {
            color: rgba(255,255,255,0.45);
            font-size: 10px;
        }

        /* Disaster Info Panel */
        #disaster-info-panel {
            display: none;
            position: fixed;
            top: 120px;
            left: 350px;
            background: rgba(52, 73, 94, 0.95);
            color: #fff;
            padding: 0;
            border-radius: 12px;
            font-size: 13px;
            z-index: 99999;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
            width: 320px;
            max-height: calc(100vh - 140px);
            overflow-y: auto;
            backdrop-filter: blur(10px);
        }
        #disaster-info-panel.visible {
            display: block;
        }
        .disaster-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 14px;
            border-bottom: 1px solid rgba(255,255,255,0.2);
            border-radius: 12px 12px 0 0;
        }
        .disaster-header.quake { background: linear-gradient(135deg, #e74c3c, #c0392b); }
        .disaster-header.volcano { background: linear-gradient(135deg, #ff6600, #cc5200); }
        .disaster-header.storm { background: linear-gradient(135deg, #3498db, #2980b9); }
        .disaster-header.wildfire { background: linear-gradient(135deg, #f39c12, #d68910); }
        .disaster-header.epidemic { background: linear-gradient(135deg, #8bc34a, #689f38); }
        .disaster-title {
            font-weight: bold;
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .disaster-title .icon {
            font-size: 20px;
        }
        .disaster-content {
            padding: 14px;
        }
        .disaster-info-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .disaster-info-row:last-child {
            border-bottom: none;
        }
        .disaster-info-label {
            color: rgba(255,255,255,0.7);
            font-size: 12px;
        }
        .disaster-info-value {
            font-weight: 500;
            text-align: right;
        }
        .disaster-magnitude {
            font-size: 32px;
            font-weight: bold;
            text-align: center;
            padding: 15px 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .disaster-magnitude.low { color: #2ecc71; }
        .disaster-magnitude.medium { color: #f1c40f; }
        .disaster-magnitude.high { color: #e67e22; }
        .disaster-magnitude.extreme { color: #e74c3c; }
        .disaster-close-btn {
            background: rgba(255,255,255,0.2);
            border: none;
            color: #fff;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .disaster-close-btn:hover {
            background: rgba(255,255,255,0.3);
        }
        .disaster-link {
            display: block;
            text-align: center;
            padding: 10px;
            background: rgba(255,255,255,0.1);
            color: #fff;
            text-decoration: none;
            border-radius: 6px;
            margin-top: 10px;
            font-size: 12px;
        }
        .disaster-link:hover {
            background: rgba(255,255,255,0.2);
        }
        /* Alert & Tsunami badges in info panel */
        .disaster-alert-row {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .disaster-felt-row {
            font-size: 12px;
            color: rgba(255,255,255,0.7);
            padding: 4px 0 8px;
        }
        /* Impact summary */
        .disaster-impact {
            padding: 10px 0;
            font-size: 13px;
            line-height: 1.5;
            color: rgba(255,255,255,0.9);
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        /* Details toggle */
        .disaster-details-toggle {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 0 4px;
            font-size: 11px;
            color: rgba(255,255,255,0.5);
            cursor: pointer;
            user-select: none;
        }
        .disaster-details-toggle:hover { color: rgba(255,255,255,0.7); }
        .disaster-details-toggle .arrow { transition: transform 0.2s; font-size: 9px; }
        .disaster-details-toggle .arrow.open { transform: rotate(90deg); }
        .disaster-details-body { display: none; }
        .disaster-details-body.open { display: block; }
        /* News section in disaster info panel */
        .disaster-news-section {
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid rgba(255,255,255,0.15);
        }
        .disaster-news-title {
            font-size: 14px;
            font-weight: 700;
            margin-bottom: 10px;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .disaster-news-item {
            display: block;
            padding: 10px 12px;
            margin-bottom: 6px;
            border-radius: 8px;
            background: rgba(255,255,255,0.05);
            text-decoration: none;
            color: #fff;
            transition: background 0.2s;
        }
        .disaster-news-item:hover {
            background: rgba(255,255,255,0.12);
        }
        .disaster-news-item-title {
            font-size: 13px;
            font-weight: 500;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .disaster-news-item-meta {
            font-size: 11px;
            color: rgba(255,255,255,0.5);
            margin-top: 5px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .news-source-badge {
            display: inline-block;
            padding: 1px 6px;
            border-radius: 3px;
            background: rgba(255,255,255,0.1);
            font-size: 10px;
            font-weight: 600;
            color: rgba(255,255,255,0.7);
        }
        .news-source-badge.reliefweb { background: rgba(0,119,190,0.3); color: #64b5f6; }
        /* Skeleton loading for news */
        .disaster-news-skeleton {
            padding: 10px 12px;
            margin-bottom: 6px;
            border-radius: 8px;
            background: rgba(255,255,255,0.03);
        }
        .skeleton-line {
            height: 13px;
            background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 4px;
            margin-bottom: 6px;
        }
        .skeleton-line.short { width: 50%; height: 10px; }
        .skeleton-line.medium { width: 90%; }
        .skeleton-line.long { width: 75%; }
        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        .disaster-tooltip {
            position: fixed;
            background: rgba(0, 0, 0, 0.85);
            color: #fff;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 12px;
            pointer-events: none;
            z-index: 10000;
            max-width: 250px;
            display: none;
            box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }
        .disaster-tooltip.visible {
            display: block;
        }
        .disaster-tooltip-title {
            font-weight: bold;
            margin-bottom: 4px;
        }
        .disaster-tooltip-info {
            color: rgba(255,255,255,0.8);
            font-size: 11px;
        }

        /* Flight search */
        .flight-search-container {
            position: fixed;
            top: 110px;
            left: 15px;
            display: none;
            z-index: 9000 !important;
            flex-direction: column;
        }
        .flight-search-container.visible {
            display: flex;
        }
        .flight-search-row {
            display: flex;
        }
        .flight-search-input {
            padding: 8px 12px;
            border: none;
            border-radius: 4px 0 0 4px;
            background: rgba(0, 0, 0, 0.6);
            color: #fff;
            font-size: 12px;
            width: 140px;
            outline: none;
        }
        .flight-search-input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }
        .flight-search-btn {
            padding: 8px 12px;
            border: none;
            border-radius: 0 4px 4px 0;
            background: #e74c3c;
            color: #fff;
            font-size: 12px;
            cursor: pointer;
            transition: background 0.2s;
        }
        .flight-search-btn:hover {
            background: #c0392b;
        }
        .flight-search-suggestions {
            display: none;
            background: rgba(0, 0, 0, 0.9);
            border-radius: 0 0 4px 4px;
            max-height: 200px;
            overflow-y: auto;
            width: 100%;
        }
        .flight-search-suggestions.visible {
            display: block;
        }
        .flight-search-item {
            padding: 8px 12px;
            cursor: pointer;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            font-size: 11px;
            color: #fff;
        }
        .flight-search-item:hover {
            background: rgba(231, 76, 60, 0.5);
        }
        .flight-search-item:last-child {
            border-bottom: none;
        }
        .flight-search-callsign {
            font-weight: bold;
            color: #f1c40f;
        }
        .flight-search-route {
            color: rgba(255,255,255,0.6);
            font-size: 10px;
        }

        /* Flight filter inputs (origin/destination) */
        .flight-filter-input {
            width: 120px;
            font-size: 11px;
            padding: 6px 10px;
        }
        .flight-filter-btn {
            padding: 6px 10px;
            font-size: 11px;
            background: #3498db;
        }
        .flight-filter-btn:hover {
            background: #2980b9;
        }
        .flight-filter-btn.active {
            background: #27ae60;
        }
        .flight-filter-suggestions {
            display: none;
            background: rgba(0, 0, 0, 0.9);
            border-radius: 4px;
            max-height: 150px;
            overflow-y: auto;
            margin-top: 2px;
        }
        .flight-filter-suggestions.visible {
            display: block;
        }
        .flight-filter-item {
            padding: 6px 10px;
            cursor: pointer;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            font-size: 10px;
            color: #fff;
        }
        .flight-filter-item:hover {
            background: rgba(52, 152, 219, 0.5);
        }
        .flight-filter-item:last-child {
            border-bottom: none;
        }
        .flight-filter-item-code {
            font-weight: bold;
            color: #3498db;
        }
        .flight-filter-item-name {
            color: rgba(255,255,255,0.7);
            margin-left: 6px;
        }
        .flight-filter-status {
            display: none;
            margin-top: 6px;
            padding: 6px 10px;
            background: rgba(39, 174, 96, 0.9);
            border-radius: 4px;
            font-size: 10px;
            color: #fff;
        }
        .flight-filter-status.visible {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .flight-filter-status .clear-btn {
            background: rgba(255,255,255,0.2);
            border: none;
            color: #fff;
            padding: 2px 8px;
            border-radius: 3px;
            cursor: pointer;
            font-size: 10px;
        }
        .flight-filter-status .clear-btn:hover {
            background: rgba(255,255,255,0.3);
        }
        .header .header-right {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .header .stats {
            font-size: 14px;
            color: #888;
            cursor: pointer;
            padding: 6px 12px;
            border-radius: 8px;
            transition: all 0.2s ease;
        }

        .header .stats:hover {
            background: rgba(0, 212, 255, 0.1);
            color: #00d4ff;
        }

        /* Custom Language Selector */
        .lang-selector {
            position: fixed;
            top: 15px;
            right: 20px;
            z-index: 9999;
            user-select: none;
        }

        .lang-current {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 150, 200, 0.1) 100%);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .lang-current:hover {
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.25) 0%, rgba(0, 150, 200, 0.15) 100%);
            border-color: rgba(0, 212, 255, 0.5);
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
        }

        .lang-current .lang-flag {
            font-size: 20px;
            line-height: 1;
        }

        .lang-current .lang-name {
            font-size: 13px;
            font-weight: 500;
            color: #fff;
            letter-spacing: 0.3px;
        }

        .lang-current .lang-arrow {
            font-size: 10px;
            color: rgba(0, 212, 255, 0.8);
            transition: transform 0.3s ease;
            margin-left: 4px;
        }

        .lang-selector.open .lang-arrow {
            transform: rotate(180deg);
        }

        .lang-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 160px;
            max-height: 400px;
            overflow-y: auto;
            background: rgba(15, 15, 35, 0.98);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 14px;
            padding: 8px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px) scale(0.95);
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(20px);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.1);
            z-index: 1000;
        }

        .lang-selector.open .lang-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .lang-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .lang-option:hover {
            background: rgba(0, 212, 255, 0.15);
        }

        .lang-option.active {
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 150, 200, 0.15) 100%);
        }

        .lang-option .lang-flag {
            font-size: 22px;
            line-height: 1;
        }

        .lang-option .lang-info {
            flex: 1;
        }

        .lang-option .lang-title {
            font-size: 13px;
            font-weight: 500;
            color: #fff;
        }

        .lang-option .lang-subtitle {
            font-size: 10px;
            color: rgba(255, 255, 255, 0.4);
            margin-top: 2px;
        }

        .lang-option .lang-check {
            font-size: 14px;
            color: #00d4ff;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .lang-option.active .lang-check {
            opacity: 1;
        }

        .news-panel {
            position: fixed;
            right: 20px;
            top: 80px;
            width: 400px;
            max-height: calc(100vh - 100px);
            background: rgba(20, 20, 40, 0.95);
            border-radius: 16px;
            padding: 20px;
            z-index: 90;
            overflow-y: auto;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.1);
            transform: translateX(450px);
            transition: transform 0.3s ease;
        }

        .news-panel.visible {
            transform: translateX(0);
        }

        .news-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            position: sticky;
            top: 0;
            background: rgba(15, 15, 30, 0.98);
            margin: -20px -20px 25px -20px;
            padding: 15px 20px;
            z-index: 10;
            backdrop-filter: blur(10px);
        }

        .news-panel-header h2 {
            font-size: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #fff;
            margin: 0;
        }

        .news-panel-header .flag {
            font-size: 32px;
        }

        .close-btn {
            background: none;
            border: none;
            color: #888;
            font-size: 24px;
            cursor: pointer;
            transition: color 0.2s;
        }

        .close-btn:hover {
            color: #fff;
        }

        /* Event info header in news panel */
        .event-info-header {
            background: linear-gradient(135deg, rgba(142, 68, 173, 0.3), rgba(155, 89, 182, 0.2));
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 15px;
            border: 1px solid rgba(155, 89, 182, 0.3);
        }

        .event-title-section {
            text-align: center;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .event-title-icon {
            font-size: 48px;
            margin-bottom: 8px;
        }

        .event-title-name {
            font-size: 20px;
            font-weight: bold;
            color: #fff;
            margin-bottom: 4px;
        }

        .event-title-subtitle {
            font-size: 13px;
            color: #b39ddb;
        }

        .event-info-row {
            display: flex;
            gap: 10px;
            margin-bottom: 8px;
            font-size: 14px;
            color: #ddd;
        }

        .event-info-row:last-child {
            margin-bottom: 0;
        }

        .event-label {
            color: #9b59b6;
            min-width: 100px;
            font-weight: 500;
        }

        .event-news-section-title {
            font-size: 14px;
            font-weight: bold;
            color: #888;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .event-news-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .event-news-list .news-item {
            padding: 12px;
            text-decoration: none;
        }

        .event-news-list .news-source {
            font-size: 11px;
            color: #00d4ff;
            text-transform: uppercase;
            margin-bottom: 5px;
            display: block;
        }

        .event-news-list .news-title {
            font-size: 14px;
            color: #fff;
            line-height: 1.4;
        }

        .no-news {
            text-align: center;
            color: #888;
            padding: 20px;
            font-style: italic;
        }

        /* News card with image */
        .news-item {
            background: rgba(255,255,255,0.05);
            border-radius: 12px;
            margin-bottom: 12px;
            transition: all 0.2s;
            cursor: pointer;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .news-item:hover {
            background: rgba(255,255,255,0.1);
            transform: translateY(-2px);
        }

        .news-item.has-image {
            flex-direction: row;
        }

        .news-item .news-image {
            width: 120px;
            min-width: 120px;
            height: 100px;
            object-fit: cover;
            background: rgba(255,255,255,0.1);
            flex-shrink: 0;
        }

        .news-item .news-image-placeholder {
            width: 120px;
            min-width: 120px;
            height: 100px;
            background: linear-gradient(135deg, rgba(0,212,255,0.2) 0%, rgba(0,153,204,0.2) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            flex-shrink: 0;
        }

        .news-item .news-content {
            padding: 12px 15px;
            display: flex;
            flex-direction: column;
            flex: 1;
            min-width: 0;
        }

        .news-item .source {
            font-size: 11px;
            color: #00d4ff;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .news-item .title {
            font-size: 14px;
            font-weight: 600;
            line-height: 1.3;
            color: #fff;
            margin-bottom: 6px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .news-item .description {
            font-size: 12px;
            line-height: 1.4;
            color: #a0a0a0;
            margin-bottom: 8px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .news-item .meta {
            display: flex;
            gap: 10px;
            font-size: 11px;
            color: #666;
            margin-top: auto;
        }

        .news-item .meta span {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* Share button */
        .share-btn {
            background: none;
            border: none;
            color: #888;
            cursor: pointer;
            padding: 4px 8px;
            font-size: 14px;
            border-radius: 6px;
            transition: all 0.2s;
            position: relative;
            display: flex;
            align-items: center;
        }
        .share-btn:hover {
            background: rgba(255,255,255,0.1);
            color: #00d4ff;
        }
        .share-btn svg {
            pointer-events: none;
        }
        .share-modal {
            display: none;
            position: fixed;
            right: 20px;
            width: 280px;
            z-index: 100000;
            box-sizing: border-box;
        }
        .share-modal.visible {
            display: block;
            animation: slideIn 0.2s ease-out;
        }
        @keyframes slideIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .share-modal-content {
            background: rgba(30, 30, 40, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 12px;
            padding: 12px;
            width: 100%;
            box-sizing: border-box;
            border: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 8px 32px rgba(0,0,0,0.4);
        }
        .share-modal-title {
            color: rgba(255,255,255,0.7);
            font-size: 11px;
            font-weight: 500;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            text-align: center;
        }
        .share-options {
            display: flex;
            gap: 8px;
            width: 100%;
        }
        .share-option {
            flex: 1;
            width: 25%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 12px 0;
            color: #fff;
            font-size: 9px;
            cursor: pointer;
            border-radius: 10px;
            background: rgba(255,255,255,0.08);
            transition: all 0.2s;
            border: none;
        }
        .share-option:hover {
            transform: translateY(-2px);
        }
        .share-option.telegram { background: rgba(0, 136, 204, 0.3); }
        .share-option.telegram:hover { background: rgba(0, 136, 204, 0.5); }
        .share-option.whatsapp { background: rgba(37, 211, 102, 0.3); }
        .share-option.whatsapp:hover { background: rgba(37, 211, 102, 0.5); }
        .share-option.twitter { background: rgba(255, 255, 255, 0.1); }
        .share-option.twitter:hover { background: rgba(255, 255, 255, 0.2); }
        .share-option.copy { background: rgba(255, 255, 255, 0.1); }
        .share-option.copy:hover { background: rgba(255, 255, 255, 0.2); }
        .share-option .icon {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .share-option .icon svg {
            width: 20px;
            height: 20px;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Station Modal */
        .station-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.7);
            z-index: 99999;
            justify-content: center;
            align-items: center;
        }
        .station-modal.visible {
            display: flex;
        }
        .station-modal-box {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            border-radius: 16px;
            padding: 25px;
            min-width: 300px;
            border: 1px solid rgba(255,255,255,0.2);
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
        }
        .station-modal-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .station-flag {
            font-size: 24px;
        }
        .station-name {
            font-size: 20px;
            font-weight: 600;
            color: #fff;
            flex: 1;
        }
        .satellite-share-btn {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 8px;
            padding: 6px 10px;
            cursor: pointer;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        .satellite-share-btn:hover {
            background: rgba(255,255,255,0.2);
            border-color: rgba(255,255,255,0.3);
        }
        .station-modal-info {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .station-info-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .station-label {
            color: #888;
            font-size: 13px;
        }
        .station-value {
            color: #4fc3f7;
            font-size: 14px;
            font-weight: 500;
            font-family: monospace;
        }
        .station-news-header {
            width: 100%;
            margin-top: 15px;
            padding: 12px 0 10px 0;
            background: transparent;
            border: none;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            text-align: center;
        }
        .station-news-container {
            margin-top: 15px;
            max-height: 300px;
            overflow-y: auto;
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 15px;
        }
        .station-news-item {
            padding: 10px;
            margin-bottom: 10px;
            background: rgba(255,255,255,0.05);
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.2s;
        }
        .station-news-item:hover {
            background: rgba(255,255,255,0.1);
        }
        .station-news-title {
            color: #fff;
            font-size: 13px;
            line-height: 1.4;
            margin-bottom: 5px;
        }
        .station-news-source {
            color: #888;
            font-size: 11px;
        }
        .station-news-loading {
            text-align: center;
            color: #888;
            padding: 20px;
        }

        /* Station Tooltip */
        .station-tooltip {
            display: none;
            position: fixed;
            background: rgba(0,0,0,0.9);
            color: #fff;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 12px;
            z-index: 10000;
            pointer-events: none;
            white-space: nowrap;
        }
        .station-tooltip.visible {
            display: block;
        }

        /* Elevation/Depth Tooltip for Stats Mode */
        .elevation-tooltip {
            display: none;
            position: fixed;
            background: rgba(0,0,0,0.9);
            color: #fff;
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 13px;
            z-index: 10000;
            pointer-events: none;
            white-space: nowrap;
            border: 1px solid rgba(255,255,255,0.2);
            box-shadow: 0 4px 12px rgba(0,0,0,0.5);
            min-width: 120px;
        }
        .elevation-tooltip.visible {
            display: block;
        }
        .elevation-tooltip .elevation-value {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 4px;
        }
        .elevation-tooltip .elevation-value.positive {
            color: #4ade80;
        }
        .elevation-tooltip .elevation-value.negative {
            color: #60a5fa;
        }
        .elevation-tooltip .elevation-label {
            font-size: 11px;
            opacity: 0.8;
        }
        .elevation-tooltip .elevation-coords {
            font-size: 10px;
            opacity: 0.6;
            margin-top: 6px;
            border-top: 1px solid rgba(255,255,255,0.2);
            padding-top: 6px;
        }
        .elevation-tooltip .elevation-country {
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 6px;
            padding-bottom: 6px;
            border-bottom: 1px solid rgba(255,255,255,0.2);
        }
        .elevation-tooltip .elevation-country:empty {
            display: none;
            margin: 0;
            padding: 0;
            border: none;
        }

        /* Special Point Info Panel */
        .special-point-panel {
            position: fixed;
            left: 20px;
            bottom: 80px;
            width: 350px;
            background: rgba(20, 25, 35, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.5);
            border: 1px solid rgba(255,255,255,0.1);
            z-index: 9999;
            display: none;
            overflow: hidden;
        }
        .special-point-panel.visible {
            display: block;
            animation: slideUp 0.3s ease;
        }
        @keyframes slideUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .special-point-panel .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(0,0,0,0.5);
            color: white;
            border: none;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            font-size: 18px;
            cursor: pointer;
            z-index: 10;
            transition: background 0.2s;
        }
        .special-point-panel .close-btn:hover {
            background: rgba(255,100,100,0.7);
        }
        .special-point-photo {
            width: 100%;
            height: 180px;
            object-fit: cover;
        }
        .special-point-info {
            padding: 15px;
        }
        .special-point-name {
            margin: 0 0 10px 0;
            font-size: 18px;
            font-weight: 600;
            color: #fff;
        }
        .special-point-stats {
            display: flex;
            gap: 15px;
            margin-bottom: 10px;
            font-size: 13px;
        }
        .special-point-stats span {
            padding: 4px 10px;
            background: rgba(255,255,255,0.1);
            border-radius: 4px;
        }
        .special-point-stats .elevation-positive {
            color: #4ade80;
        }
        .special-point-stats .elevation-negative {
            color: #60a5fa;
        }
        .special-point-desc {
            margin: 0;
            font-size: 13px;
            color: rgba(255,255,255,0.8);
            line-height: 1.5;
        }

        /* Flight 2D Markers - SVG Icons */
        .flight-marker {
            cursor: pointer;
            transform-origin: center;
            transition: transform 0.15s ease, filter 0.15s ease;
            user-select: none;
            filter: drop-shadow(0 0 2px rgba(0,0,0,0.8));
        }
        .flight-marker:hover {
            filter: drop-shadow(0 0 4px #fff) brightness(1.3);
        }
        .flight-marker svg {
            display: block;
        }

        /* Flight Tooltip */
        .flight-tooltip {
            display: none;
            position: fixed;
            background: rgba(231, 76, 60, 0.95);
            color: #fff;
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 12px;
            z-index: 10000;
            pointer-events: none;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            min-width: 180px;
        }
        .flight-tooltip.visible {
            display: block;
        }
        .flight-tooltip-header {
            font-weight: bold;
            font-size: 14px;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .flight-tooltip-row {
            display: flex;
            justify-content: space-between;
            margin: 3px 0;
            font-size: 11px;
        }
        .flight-tooltip-label {
            opacity: 0.8;
        }
        .flight-tooltip-value {
            font-weight: 500;
        }

        /* Tracked Flight Label */
        #tracked-flight-label {
            display: none;
            position: fixed;
            background: rgba(255, 102, 0, 0.95);
            color: #fff;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
            z-index: 9999;
            pointer-events: none;
            box-shadow: 0 2px 8px rgba(0,0,0,0.4);
            border: 2px solid rgba(255, 68, 0, 1);
            white-space: nowrap;
            transform: translateX(-50%);
        }
        #tracked-flight-label.visible {
            display: block;
        }

        /* Spaceport Tooltip */
        .spaceport-tooltip {
            display: none;
            position: fixed;
            background: rgba(255, 102, 0, 0.95);
            color: #fff;
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 12px;
            z-index: 10000;
            pointer-events: none;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            min-width: 150px;
        }
        .spaceport-tooltip.visible {
            display: block;
        }
        .spaceport-tooltip .sp-flag {
            font-size: 16px;
        }
        .spaceport-tooltip .sp-org {
            opacity: 0.8;
            font-size: 11px;
        }

        /* Observatory Tooltip */
        .observatory-tooltip {
            display: none;
            position: fixed;
            background: rgba(0, 204, 255, 0.95);
            color: #fff;
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 12px;
            z-index: 10000;
            pointer-events: none;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            min-width: 150px;
        }
        .observatory-tooltip.visible {
            display: block;
        }
        .observatory-tooltip .obs-flag {
            font-size: 16px;
        }
        .observatory-tooltip .obs-info {
            opacity: 0.8;
            font-size: 11px;
        }

        /* Meteor Radiant Tooltip */
        .meteor-tooltip {
            display: none;
            position: fixed;
            background: linear-gradient(135deg, rgba(255, 180, 50, 0.98), rgba(255, 100, 0, 0.95));
            color: #fff;
            padding: 12px 16px;
            border-radius: 10px;
            font-size: 12px;
            z-index: 10000;
            pointer-events: none;
            box-shadow: 0 4px 20px rgba(255, 150, 0, 0.5);
            min-width: 180px;
            border: 1px solid rgba(255, 220, 100, 0.6);
        }
        .meteor-tooltip.visible {
            display: block;
        }
        .meteor-tooltip .meteor-name {
            font-weight: bold;
            font-size: 14px;
            margin-bottom: 4px;
        }
        .meteor-tooltip .meteor-status {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: bold;
            margin-bottom: 6px;
        }
        .meteor-tooltip .meteor-status.active {
            background: rgba(0, 255, 100, 0.3);
            color: #90FF90;
        }
        .meteor-tooltip .meteor-status.inactive {
            background: rgba(100, 100, 100, 0.3);
            color: #ccc;
        }
        .meteor-tooltip .meteor-info {
            opacity: 0.9;
            font-size: 11px;
            line-height: 1.5;
        }

        #tracked-flight-label::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-top: 8px solid rgba(255, 68, 0, 1);
        }

        /* Airport Tooltip - стиль FR24 */
        .airport-tooltip {
            display: none;
            position: fixed;
            background: #fff;
            color: #333;
            padding: 8px 12px;
            border-radius: 4px;
            font-size: 13px;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            z-index: 10000;
            pointer-events: none;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            border: 1px solid rgba(0,0,0,0.1);
            white-space: nowrap;
        }
        .airport-tooltip .airport-name {
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 2px;
        }
        .airport-tooltip .airport-codes {
            font-size: 12px;
            color: #666;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .airport-tooltip .airport-codes .flag {
            font-size: 14px;
        }
        .airport-tooltip.visible {
            display: block;
        }

        /* Ship Tooltip */
        .ship-tooltip {
            display: none;
            position: fixed;
            background: linear-gradient(135deg, #2980b9 0%, #1a5276 100%);
            color: #fff;
            padding: 12px 16px;
            border-radius: 12px;
            font-size: 14px;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            z-index: 100000;
            pointer-events: none;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            min-width: 200px;
        }
        .ship-tooltip .ship-name {
            font-weight: 700;
            font-size: 18px;
            color: #fff;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .ship-tooltip .ship-details {
            display: grid;
            grid-template-columns: auto auto;
            gap: 4px 12px;
            font-size: 14px;
        }
        .ship-tooltip .ship-label {
            color: rgba(255,255,255,0.7);
        }
        .ship-tooltip .ship-value {
            text-align: right;
            font-weight: 600;
        }
        .ship-tooltip .ship-action {
            margin-top: 10px;
            padding-top: 8px;
            border-top: 1px solid rgba(255,255,255,0.2);
            text-align: center;
            font-size: 13px;
            color: rgba(255,255,255,0.8);
        }
        .ship-tooltip.visible {
            display: block;
        }

        /* Port Tooltip */
        .port-tooltip {
            display: none;
            position: fixed;
            background: #fff;
            color: #333;
            padding: 8px 12px;
            border-radius: 4px;
            font-size: 13px;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            z-index: 10000;
            pointer-events: none;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            border: 1px solid rgba(0,0,0,0.1);
            white-space: nowrap;
        }
        .port-tooltip .port-name {
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 2px;
        }
        .port-tooltip .port-info {
            font-size: 12px;
            color: #666;
        }
        .port-tooltip.visible {
            display: block;
        }

        /* Port Info Panel */
        #port-info-panel {
            display: none;
            position: fixed;
            top: 195px;
            left: 10px;
            width: 300px;
            background: linear-gradient(135deg, #1565C0, #0D47A1);
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.4);
            z-index: 99999;
            color: #fff;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            overflow: hidden;
            max-height: calc(100vh - 220px);
            overflow-y: auto;
        }
        #port-info-panel.visible {
            display: block;
        }
        .port-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 14px;
            background: rgba(0,0,0,0.2);
        }
        .port-panel-title {
            font-size: 14px;
            font-weight: 600;
        }
        .port-panel-close {
            background: none;
            border: none;
            color: #fff;
            font-size: 18px;
            cursor: pointer;
            opacity: 0.7;
        }
        .port-panel-close:hover {
            opacity: 1;
        }
        .port-panel-content {
            padding: 12px 14px;
        }
        .port-photo {
            width: 100%;
            height: 140px;
            border-radius: 8px;
            margin-bottom: 12px;
            object-fit: cover;
            background: rgba(0,0,0,0.3);
        }
        .port-photo-placeholder {
            width: 100%;
            height: 140px;
            border-radius: 8px;
            margin-bottom: 12px;
            background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.2));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 64px;
        }
        .port-name-large {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 4px;
        }
        .port-location {
            font-size: 13px;
            color: rgba(255,255,255,0.7);
            margin-bottom: 12px;
        }
        .port-size-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 12px;
        }
        .port-size-large {
            background: #FF5722;
        }
        .port-size-medium {
            background: #FF9800;
        }
        .port-stats {
            display: flex;
            gap: 10px;
            margin-bottom: 12px;
        }
        .port-stat {
            flex: 1;
            text-align: center;
            background: rgba(255,255,255,0.1);
            border-radius: 8px;
            padding: 8px;
        }
        .port-stat-value {
            font-size: 14px;
            font-weight: bold;
        }
        .port-stat-label {
            font-size: 10px;
            color: rgba(255,255,255,0.6);
            text-transform: uppercase;
        }

        /* Tracking Panel (right - flight info) */
        #tracking-panel {
            display: none;
            position: fixed;
            top: 80px;
            right: 20px;
            background: rgba(231, 76, 60, 0.95);
            color: #fff;
            padding: 0;
            border-radius: 12px;
            font-size: 13px;
            z-index: 99999;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
            width: 280px;
            backdrop-filter: blur(10px);
        }
        #tracking-panel.visible {
            display: block;
        }

        /* Flight Progress Bar */
        .flight-progress-container {
            padding: 12px 14px;
            background: rgba(0,0,0,0.2);
            border-bottom: 1px solid rgba(255,255,255,0.15);
        }
        .flight-route-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        .flight-airport {
            text-align: center;
        }
        .flight-airport-code {
            font-size: 18px;
            font-weight: bold;
            color: #fff;
        }
        .flight-airport-city {
            font-size: 10px;
            color: rgba(255,255,255,0.7);
            max-width: 80px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .flight-route-arrow {
            font-size: 20px;
            color: #fff;
            margin: 0 8px;
        }
        .flight-progress-bar {
            position: relative;
            height: 6px;
            background: rgba(255,255,255,0.3);
            border-radius: 3px;
            margin: 10px 0;
            overflow: visible;
        }
        .flight-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #4CAF50, #8BC34A);
            border-radius: 3px;
            transition: width 0.5s ease;
        }
        .flight-progress-plane {
            position: absolute;
            top: 50%;
            transform: translate(-50%, -50%);
            font-size: 14px;
            filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
        }
        .flight-progress-stats {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            color: rgba(255,255,255,0.8);
        }
        .flight-progress-stat {
            text-align: center;
        }
        .flight-progress-stat-value {
            font-weight: bold;
            color: #fff;
        }
        .flight-progress-stat-label {
            font-size: 9px;
            color: rgba(255,255,255,0.6);
        }

        /* Share Flight Button */
        .share-flight-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: calc(100% - 28px);
            margin: 10px 14px 14px;
            padding: 10px 14px;
            background: rgba(255,255,255,0.15);
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: 8px;
            color: #fff;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .share-flight-btn:hover {
            background: rgba(255,255,255,0.25);
            border-color: rgba(255,255,255,0.5);
        }
        .share-flight-btn:active {
            transform: scale(0.98);
        }
        .share-flight-btn.copied {
            background: rgba(46, 204, 113, 0.3);
            border-color: rgba(46, 204, 113, 0.6);
        }

        .find-tickets-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: calc(100% - 28px);
            margin: 0 14px 14px;
            padding: 10px 14px;
            background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
            border: none;
            border-radius: 8px;
            color: #fff;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
        }
        .find-tickets-btn:hover {
            background: linear-gradient(135deg, #ff8555 0%, #ffaa3e 100%);
            box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
            transform: translateY(-1px);
        }
        .find-tickets-btn:active {
            transform: scale(0.98) translateY(0);
        }

        .airport-actions {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 12px;
            padding: 0 4px;
        }

        .wiki-info {
            margin-top: 12px;
            padding: 10px;
            background: rgba(0,0,0,0.15);
            border-radius: 8px;
            font-size: 12px;
            line-height: 1.5;
        }
        .wiki-description {
            color: rgba(255,255,255,0.9);
            margin-bottom: 8px;
        }
        .wiki-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .wiki-stat {
            background: rgba(255,255,255,0.15);
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
        }
        .wiki-stat-label {
            opacity: 0.7;
            margin-right: 4px;
        }
        .wiki-stat-value {
            font-weight: 600;
        }
        .wiki-loading {
            text-align: center;
            color: rgba(255,255,255,0.5);
            font-size: 11px;
        }

        .find-hotels-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
            padding: 10px 14px;
            background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
            border: none;
            border-radius: 8px;
            color: #fff;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
        }
        .find-hotels-btn:hover {
            background: linear-gradient(135deg, #5dade2 0%, #3498db 100%);
            box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
            transform: translateY(-1px);
        }
        .find-hotels-btn:active {
            transform: scale(0.98) translateY(0);
        }

        .airport-actions .find-tickets-btn {
            width: 100%;
            margin: 0;
        }

        /* Share Modal */
        .share-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
        }
        .share-modal-overlay.visible {
            opacity: 1;
            visibility: visible;
        }
        .share-modal-overlay .share-modal-box {
            background: linear-gradient(145deg, #1a1a2e, #16213e);
            border-radius: 16px;
            padding: 24px;
            min-width: 320px;
            max-width: 400px;
            border: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
            transform: scale(0.9);
            transition: transform 0.2s ease;
        }
        .share-modal-overlay.visible .share-modal-box {
            transform: scale(1);
        }
        .share-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }
        .share-modal-title {
            font-size: 18px;
            font-weight: 600;
            color: #fff;
        }
        .share-modal-close {
            background: none;
            border: none;
            color: rgba(255,255,255,0.5);
            font-size: 24px;
            cursor: pointer;
            padding: 0;
            line-height: 1;
        }
        .share-modal-close:hover {
            color: #fff;
        }
        .share-modal-flight {
            background: rgba(255,255,255,0.05);
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 20px;
            text-align: center;
        }
        .share-modal-flight-name {
            font-size: 20px;
            font-weight: 700;
            color: #f39c12;
        }
        .share-modal-flight-route {
            font-size: 13px;
            color: rgba(255,255,255,0.6);
            margin-top: 4px;
        }
        .share-social-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-bottom: 16px;
        }
        .share-social-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            padding: 12px 8px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
        }
        .share-social-btn:hover {
            background: rgba(255,255,255,0.15);
            transform: translateY(-2px);
        }
        .share-social-btn .icon {
            font-size: 24px;
        }
        .share-social-btn .label {
            font-size: 10px;
            color: rgba(255,255,255,0.7);
        }
        .share-copy-link {
            display: flex;
            gap: 8px;
        }
        .share-copy-input {
            flex: 1;
            background: rgba(0,0,0,0.3);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 8px;
            padding: 10px 12px;
            color: #fff;
            font-size: 12px;
            outline: none;
        }
        .share-copy-btn {
            background: #3498db;
            border: none;
            border-radius: 8px;
            padding: 10px 16px;
            color: #fff;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s;
        }
        .share-copy-btn:hover {
            background: #2980b9;
        }
        .share-copy-btn.copied {
            background: #2ecc71;
        }

        /* Aircraft Info Panel (left - model specs) */
        #aircraft-info-panel {
            display: none;
            position: fixed;
            top: 290px;
            left: 15px;
            background: rgba(52, 73, 94, 0.95);
            color: #fff;
            padding: 0;
            border-radius: 12px;
            font-size: 13px;
            z-index: 99999;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
            width: 320px;
            max-height: calc(100vh - 170px);
            overflow-y: auto;
            backdrop-filter: blur(10px);
        }
        #aircraft-info-panel.visible {
            display: block;
        }
        .aircraft-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 14px;
            border-bottom: 1px solid rgba(255,255,255,0.2);
            background: rgba(0,0,0,0.2);
            border-radius: 12px 12px 0 0;
        }
        .aircraft-title {
            font-weight: bold;
            font-size: 14px;
        }
        .aircraft-content {
            padding: 12px 14px;
        }
        .aircraft-model-name {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 4px;
            color: #3498db;
        }
        .aircraft-manufacturer {
            font-size: 13px;
            color: rgba(255,255,255,0.7);
            margin-bottom: 12px;
        }
        .aircraft-image {
            width: 100%;
            height: 140px;
            background: rgba(0,0,0,0.3);
            border-radius: 8px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 48px;
            position: relative;
            overflow: hidden;
        }
        .aircraft-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .aircraft-image-loading {
            color: rgba(255,255,255,0.5);
            font-size: 14px;
        }
        .aircraft-photo-credit {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
            padding: 20px 8px 6px;
            font-size: 9px;
            color: rgba(255,255,255,0.7);
            text-align: right;
        }
        .aircraft-photo-credit a {
            color: #3498db;
            text-decoration: none;
        }
        .aircraft-class-badge {
            display: inline-block;
            background: linear-gradient(135deg, #3498db, #2980b9);
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            margin: 8px 0;
        }
        .aircraft-specs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-top: 12px;
        }
        .aircraft-spec {
            background: rgba(0,0,0,0.2);
            padding: 10px;
            border-radius: 8px;
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }
        .aircraft-spec-icon {
            font-size: 18px;
            min-width: 24px;
            text-align: center;
            flex-shrink: 0;
            margin-top: 2px;
        }
        .aircraft-spec-info {
            flex: 1;
            min-width: 0;
        }
        .aircraft-spec-label {
            font-size: 9px;
            color: rgba(255,255,255,0.5);
            text-transform: lowercase;
        }
        .aircraft-spec-value {
            font-size: 12px;
            font-weight: 600;
            word-wrap: break-word;
            line-height: 1.3;
        }
        .aircraft-description {
            margin: 10px 0;
            font-size: 12px;
            color: rgba(255,255,255,0.8);
            line-height: 1.5;
        }
        .aircraft-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 12px;
            padding-top: 10px;
            border-top: 1px solid rgba(255,255,255,0.1);
            font-size: 11px;
            color: rgba(255,255,255,0.6);
        }
        .aircraft-age-badge {
            background: rgba(46, 204, 113, 0.2);
            color: #2ecc71;
            padding: 3px 8px;
            border-radius: 10px;
            font-size: 10px;
            font-weight: 600;
        }
        .aircraft-airline-info {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 12px;
            padding: 10px;
            background: rgba(0,0,0,0.2);
            border-radius: 8px;
            font-size: 12px;
        }

        /* Ship Info Panel */
        #ship-info-panel {
            display: none;
            position: fixed;
            top: 195px;
            left: 15px;
            background: rgba(41, 128, 185, 0.95);
            color: #fff;
            padding: 0;
            border-radius: 12px;
            font-size: 13px;
            z-index: 99999;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
            width: 320px;
            max-height: calc(100vh - 220px);
            overflow-y: auto;
            backdrop-filter: blur(10px);
        }
        #ship-info-panel.visible {
            display: block;
        }
        .ship-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 14px;
            border-bottom: 1px solid rgba(255,255,255,0.2);
            background: rgba(0,0,0,0.2);
            border-radius: 12px 12px 0 0;
        }
        .ship-panel-title {
            font-weight: bold;
            font-size: 14px;
        }
        .ship-panel-close {
            background: none;
            border: none;
            color: #fff;
            font-size: 18px;
            cursor: pointer;
            opacity: 0.7;
        }
        .ship-panel-close:hover {
            opacity: 1;
        }
        .ship-panel-content {
            padding: 12px 14px;
        }
        .ship-panel-name {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 4px;
            color: #fff;
        }
        .ship-panel-type-badge {
            display: inline-block;
            background: linear-gradient(135deg, #3498db, #2980b9);
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            margin: 8px 0;
        }
        .ship-panel-destination {
            background: rgba(0,0,0,0.2);
            border-radius: 8px;
            padding: 12px;
            margin: 12px 0;
        }
        .ship-panel-dest-label {
            font-size: 10px;
            color: rgba(255,255,255,0.6);
            text-transform: uppercase;
            margin-bottom: 4px;
        }
        .ship-panel-dest-value {
            font-size: 16px;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .ship-panel-specs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-top: 12px;
        }
        .ship-panel-spec {
            background: rgba(0,0,0,0.2);
            padding: 10px;
            border-radius: 8px;
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }
        .ship-panel-spec-icon {
            font-size: 18px;
            min-width: 24px;
            text-align: center;
        }
        .ship-panel-spec-info {
            flex: 1;
        }
        .ship-panel-spec-label {
            font-size: 9px;
            color: rgba(255,255,255,0.5);
            text-transform: lowercase;
        }
        .ship-panel-spec-value {
            font-size: 12px;
            font-weight: 600;
        }
        .ship-panel-coords {
            margin-top: 12px;
            padding-top: 10px;
            border-top: 1px solid rgba(255,255,255,0.1);
            font-size: 11px;
            color: rgba(255,255,255,0.6);
        }
        .ship-panel-mmsi {
            font-size: 10px;
            color: rgba(255,255,255,0.4);
            margin-top: 4px;
        }

        /* Airport Info Panel (left - airport details) */
        #airport-info-panel {
            display: none;
            position: fixed;
            top: 195px;
            left: 10px;
            background: rgba(41, 128, 185, 0.95);
            color: #fff;
            padding: 0;
            border-radius: 12px;
            font-size: 13px;
            z-index: 99999;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
            width: 320px;
            max-height: calc(100vh - 100px);
            overflow-y: auto;
            backdrop-filter: blur(10px);
        }
        #airport-info-panel.visible {
            display: block;
        }
        /* Spaceport Info Panel */
        #spaceport-info-panel {
            display: none;
            position: fixed;
            top: 195px;
            left: 10px;
            background: rgba(255, 102, 0, 0.95);
            color: #fff;
            padding: 0;
            border-radius: 12px;
            font-size: 13px;
            z-index: 99999;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
            width: 320px;
            max-height: calc(100vh - 100px);
            overflow-y: auto;
            backdrop-filter: blur(10px);
        }
        #spaceport-info-panel.visible {
            display: block;
        }
        /* Observatory Info Panel */
        #observatory-info-panel {
            display: none;
            position: fixed;
            top: 195px;
            left: 10px;
            background: rgba(0, 150, 200, 0.95);
            color: #fff;
            padding: 0;
            border-radius: 12px;
            font-size: 13px;
            z-index: 99999;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
            width: 320px;
            max-height: calc(100vh - 100px);
            overflow-y: auto;
            backdrop-filter: blur(10px);
        }
        #observatory-info-panel.visible {
            display: block;
        }
        /* ISS Live Player (как TV плеер) */
        #iss-player {
            background: rgba(18, 18, 18, 0.98);
            backdrop-filter: blur(20px);
            border-radius: 12px;
            color: white;
            font-size: 14px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(59, 130, 246, 0.3);
            overflow: hidden;
        }
        #iss-player .iss-minimize-strip {
            display: none;
            align-items: center;
            padding: 8px 12px;
            background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
            cursor: pointer;
        }
        #iss-player.minimized .iss-minimize-strip { display: flex; }
        #iss-player.minimized .iss-main-content { display: none; }
        #iss-player.minimized .iss-resize-handle { display: none; }
        #iss-player .iss-main-content { display: block; }
        #iss-player .iss-drag-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 10px;
            background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
            cursor: grab;
            user-select: none;
        }
        #iss-player .iss-drag-header:active { cursor: grabbing; }
        #iss-player .iss-header-info { display: flex; align-items: center; gap: 8px; }
        #iss-player .iss-live-dot {
            width: 8px; height: 8px;
            background: #ef4444;
            border-radius: 50%;
            animation: pulse 1.5s ease-in-out infinite;
        }
        #iss-player .iss-name { font-weight: 600; font-size: 13px; }
        #iss-player .iss-header-btns { display: flex; gap: 4px; }
        #iss-player .iss-hdr-btn {
            width: 24px; height: 24px;
            border-radius: 6px; border: none;
            background: rgba(255,255,255,0.1);
            color: rgba(255,255,255,0.7);
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.15s;
        }
        #iss-player .iss-hdr-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }
        #iss-player .iss-close-btn:hover { background: #ef4444; }
        #iss-player .iss-video-container {
            position: relative;
            background: #000;
            width: 480px;
            height: 270px;
        }
        #iss-player .iss-video-container iframe {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            border: none;
        }
        #iss-player .iss-controls {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            background: rgba(0,0,0,0.3);
        }
        #iss-player .iss-ctrl-btn {
            width: 32px; height: 32px;
            border-radius: 6px; border: none;
            background: rgba(255,255,255,0.1);
            color: rgba(255,255,255,0.7);
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.15s;
        }
        #iss-player .iss-ctrl-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }
        #iss-player .iss-resize-handle {
            position: absolute;
            right: 0; bottom: 0;
            width: 16px; height: 16px;
            cursor: se-resize;
            background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,0.3) 50%);
        }
        /* Streams Panel (left) */
        #streams-panel {
            display: none;
            position: fixed;
            top: 115px;
            left: 10px;
            background: rgba(25, 25, 35, 0.98);
            color: #fff;
            padding: 0;
            border-radius: 12px;
            z-index: 99999;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
            width: 280px;
            max-height: calc(100vh - 150px);
            overflow-y: auto;
            backdrop-filter: blur(10px);
        }
        #streams-panel.visible {
            display: block;
        }
        .streams-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 14px;
            background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
            border-radius: 12px 12px 0 0;
            position: sticky;
            top: 0;
            z-index: 1;
        }
        .stream-item {
            padding: 12px 14px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            cursor: pointer;
            transition: background 0.2s;
        }
        .stream-item:hover {
            background: rgba(155, 89, 182, 0.3);
        }
        .stream-item.active {
            background: rgba(155, 89, 182, 0.5);
        }
        .stream-name {
            font-weight: bold;
            font-size: 14px;
        }
        .stream-desc {
            font-size: 11px;
            color: #aaa;
            margin-top: 4px;
        }
        /* Launches Panel */
        #launches-panel {
            display: none;
            position: fixed;
            top: 195px;
            right: 10px;
            background: rgba(25, 25, 35, 0.98);
            color: #fff;
            padding: 0;
            border-radius: 12px;
            z-index: 99999;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
            width: 340px;
            max-height: calc(100vh - 220px);
            overflow-y: auto;
            backdrop-filter: blur(10px);
        }
        #launches-panel.visible {
            display: block;
        }
        .launches-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 14px;
            background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
            border-radius: 12px 12px 0 0;
            position: sticky;
            top: 0;
            z-index: 1;
        }
        .launches-back-btn {
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            margin-right: 8px;
            flex-shrink: 0;
        }
        .launches-back-btn:hover {
            background: rgba(255,255,255,0.35);
            transform: translateX(-2px);
        }
        .launch-item {
            padding: 12px 14px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            cursor: pointer;
            transition: all 0.25s ease;
            position: relative;
            border-left: 3px solid transparent;
        }
        .launch-item:hover {
            background: rgba(255, 107, 53, 0.15);
            border-left-color: #ff6b35;
            transform: translateX(4px);
        }
        .launch-item:active {
            transform: translateX(2px);
            background: rgba(255, 107, 53, 0.25);
        }
        .launch-item:last-child {
            border-bottom: none;
        }
        .launch-item::after {
            content: '→';
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0;
            transition: opacity 0.2s, right 0.2s;
            color: #ff6b35;
            font-size: 16px;
        }
        .launch-item:hover::after {
            opacity: 1;
            right: 8px;
        }
        .launch-name {
            font-weight: bold;
            font-size: 14px;
            margin-bottom: 4px;
        }
        .launch-meta {
            display: flex;
            gap: 6px;
            margin-bottom: 6px;
            flex-wrap: wrap;
        }
        .launch-type, .launch-orbit {
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 3px;
            background: rgba(255, 107, 53, 0.2);
            color: #ff6b35;
        }
        .launch-orbit {
            background: rgba(78, 205, 196, 0.2);
            color: #4ecdc4;
        }
        .launch-desc {
            font-size: 11px;
            color: #aaa;
            line-height: 1.4;
            margin-bottom: 8px;
            padding: 8px;
            background: rgba(255,255,255,0.03);
            border-radius: 4px;
            border-left: 2px solid rgba(255, 107, 53, 0.3);
        }
        .launch-rocket {
            font-size: 12px;
            color: #aaa;
            margin-bottom: 4px;
        }
        .launch-pad {
            font-size: 11px;
            color: #888;
            margin-bottom: 6px;
        }
        .launch-time {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .launch-countdown {
            font-family: 'Courier New', monospace;
            font-size: 14px;
            color: #4ecdc4;
            background: rgba(78, 205, 196, 0.15);
            padding: 4px 8px;
            border-radius: 4px;
        }
        .launch-date {
            font-size: 11px;
            color: #888;
        }
        .launch-status {
            display: inline-block;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 3px;
            margin-left: 8px;
        }
        .launch-status.go {
            background: rgba(46, 204, 113, 0.3);
            color: #2ecc71;
        }
        .launch-status.tbd {
            background: rgba(241, 196, 15, 0.3);
            color: #f1c40f;
        }
        /* Meteors Panel */
        #meteors-panel {
            display: none;
            position: fixed;
            top: 195px;
            right: 10px;
            background: rgba(25, 25, 45, 0.98);
            color: #fff;
            padding: 0;
            border-radius: 12px;
            z-index: 99999;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
            width: 320px;
            max-height: calc(100vh - 220px);
            overflow-y: auto;
            backdrop-filter: blur(10px);
        }
        #meteors-panel.visible {
            display: block;
        }
        .meteors-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 14px;
            background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
            border-radius: 12px 12px 0 0;
            position: sticky;
            top: 0;
            z-index: 1;
        }
        .meteor-item {
            padding: 12px 14px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            cursor: pointer;
            transition: background 0.2s;
        }
        .meteor-item:hover {
            background: rgba(255,255,255,0.05);
        }
        .meteor-item:last-child {
            border-bottom: none;
        }
        .meteor-name {
            font-weight: bold;
            font-size: 14px;
            margin-bottom: 4px;
        }
        .meteor-dates {
            font-size: 12px;
            color: #aaa;
            margin-bottom: 4px;
        }
        .meteor-peak {
            font-size: 12px;
            color: #4ecdc4;
        }
        .meteor-zhr {
            font-size: 11px;
            color: #f1c40f;
            margin-top: 4px;
        }
        .meteor-radiant {
            font-size: 10px;
            color: #888;
            margin-top: 4px;
        }
        .meteor-active {
            background: rgba(46, 204, 113, 0.1);
            border-left: 3px solid #2ecc71;
        }
        .airport-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 14px;
            border-bottom: 1px solid rgba(255,255,255,0.2);
            background: rgba(0,0,0,0.2);
            border-radius: 12px 12px 0 0;
        }
        .airport-title {
            font-weight: bold;
            font-size: 14px;
        }
        .airport-close {
            background: none;
            border: none;
            color: #fff;
            font-size: 18px;
            cursor: pointer;
            opacity: 0.7;
        }
        .airport-close:hover {
            opacity: 1;
        }
        .airport-header-buttons {
            display: flex;
            gap: 8px;
        }
        .airport-share {
            background: none;
            border: none;
            color: #fff;
            font-size: 16px;
            cursor: pointer;
            opacity: 0.7;
            padding: 0 4px;
        }
        .airport-share:hover {
            opacity: 1;
        }
        .airport-content {
            padding: 12px 14px;
        }
        .airport-photo {
            width: 100%;
            height: 140px;
            border-radius: 8px;
            margin-bottom: 12px;
            object-fit: cover;
            background: rgba(0,0,0,0.3);
        }
        .airport-photo-placeholder {
            width: 100%;
            height: 140px;
            border-radius: 8px;
            margin-bottom: 12px;
            background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.2));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 64px;
        }
        .airport-photo-loading {
            animation: pulse 1.5s ease-in-out infinite;
        }
        @keyframes pulse {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }
        @keyframes toastFade {
            0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
            15% { opacity: 1; transform: translateX(-50%) translateY(0); }
            85% { opacity: 1; transform: translateX(-50%) translateY(0); }
            100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
        }
        .airport-photo-container {
            width: 100%;
        }
        .airport-codes {
            display: flex;
            gap: 10px;
            margin-bottom: 8px;
        }
        .airport-code-badge {
            background: rgba(255,255,255,0.2);
            padding: 4px 10px;
            border-radius: 6px;
            font-weight: bold;
            font-size: 16px;
        }
        .airport-name {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 4px;
        }
        .airport-location {
            font-size: 13px;
            color: rgba(255,255,255,0.7);
            margin-bottom: 12px;
        }
        .airport-local-time {
            background: rgba(255,255,255,0.15);
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 12px;
            text-align: center;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .airport-time-icon {
            font-size: 28px;
        }
        .airport-time-value {
            font-size: 32px;
            font-weight: bold;
            font-family: 'SF Mono', 'Consolas', monospace;
        }
        .airport-time-label {
            font-size: 11px;
            color: rgba(255,255,255,0.6);
            flex: 1;
            text-align: left;
        }
        .airport-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-top: 12px;
        }
        .airport-stat {
            background: rgba(0,0,0,0.2);
            padding: 10px;
            border-radius: 8px;
            text-align: center;
        }
        .airport-stat-value {
            font-size: 18px;
            font-weight: bold;
        }
        .airport-stat-label {
            font-size: 10px;
            color: rgba(255,255,255,0.6);
            text-transform: uppercase;
        }
        .wiki-description {
            background: rgba(0,0,0,0.2);
            border-radius: 8px;
            padding: 10px;
            margin-top: 12px;
            font-size: 12px;
            line-height: 1.5;
            color: rgba(255,255,255,0.85);
            max-height: 120px;
            overflow-y: auto;
        }
        .wiki-description::-webkit-scrollbar {
            width: 4px;
        }
        .wiki-description::-webkit-scrollbar-thumb {
            background: rgba(255,255,255,0.3);
            border-radius: 2px;
        }
        .wiki-description-loading {
            color: rgba(255,255,255,0.5);
            font-style: italic;
        }
        .wiki-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 8px;
        }
        .wiki-stat-badge {
            background: rgba(255,255,255,0.15);
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
        }

        /* Airport Flights Panel (right - arrivals/departures) */
        #airport-flights-panel {
            display: none;
            position: fixed;
            top: 80px;
            right: 20px;
            background: rgba(46, 204, 113, 0.95);
            color: #fff;
            padding: 0;
            border-radius: 12px;
            font-size: 13px;
            z-index: 99999;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
            width: 350px;
            max-height: calc(100vh - 100px);
            overflow-y: auto;
            backdrop-filter: blur(10px);
        }
        #airport-flights-panel.visible {
            display: block;
        }

        /* Port Ships Panel (right - arrivals/departures) */
        #port-ships-panel {
            display: none;
            position: fixed;
            top: 80px;
            right: 20px;
            background: rgba(255, 109, 0, 0.95);
            color: #fff;
            padding: 0;
            border-radius: 12px;
            font-size: 13px;
            z-index: 99999;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
            width: 350px;
            max-height: calc(100vh - 100px);
            overflow-y: auto;
            backdrop-filter: blur(10px);
        }
        #port-ships-panel.visible {
            display: block;
        }
        .port-ships-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 14px;
            border-bottom: 1px solid rgba(255,255,255,0.2);
            background: rgba(0,0,0,0.2);
            border-radius: 12px 12px 0 0;
        }
        .port-ships-tabs {
            display: flex;
            gap: 5px;
            padding: 10px 14px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .port-tab {
            flex: 1;
            padding: 8px;
            border: none;
            background: rgba(255,255,255,0.1);
            color: #fff;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
        }
        .port-tab.active {
            background: rgba(255,255,255,0.3);
        }
        .port-tab:hover {
            background: rgba(255,255,255,0.2);
        }
        .port-ships-list {
            padding: 10px 14px;
            max-height: 400px;
            overflow-y: auto;
        }
        .port-ship-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            background: rgba(0,0,0,0.2);
            border-radius: 8px;
            margin-bottom: 8px;
            cursor: pointer;
        }
        .port-ship-item:hover {
            background: rgba(0,0,0,0.3);
        }
        .port-ship-icon {
            font-size: 20px;
            min-width: 30px;
            text-align: center;
        }
        .port-ship-info {
            flex: 1;
        }
        .port-ship-name {
            font-weight: bold;
            font-size: 13px;
        }
        .port-ship-type {
            font-size: 11px;
            opacity: 0.8;
        }
        .port-ship-status {
            font-size: 11px;
            padding: 3px 8px;
            border-radius: 4px;
            background: rgba(255,255,255,0.2);
        }
        .airport-flights-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 14px;
            border-bottom: 1px solid rgba(255,255,255,0.2);
            background: rgba(0,0,0,0.2);
            border-radius: 12px 12px 0 0;
        }
        .airport-flights-tabs {
            display: flex;
            gap: 5px;
            padding: 10px 14px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .airport-tab {
            flex: 1;
            padding: 8px;
            border: none;
            background: rgba(255,255,255,0.1);
            color: #fff;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
        }
        .airport-tab.active {
            background: rgba(255,255,255,0.3);
        }
        .airport-tab:hover {
            background: rgba(255,255,255,0.2);
        }
        .airport-flights-list {
            padding: 10px 14px;
            max-height: 400px;
            overflow-y: auto;
        }
        .airport-flight-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            background: rgba(0,0,0,0.2);
            border-radius: 8px;
            margin-bottom: 8px;
            cursor: pointer;
        }
        .airport-flight-item:hover {
            background: rgba(0,0,0,0.3);
        }
        .airport-flight-time {
            font-size: 14px;
            font-weight: bold;
            min-width: 50px;
        }
        .airport-flight-info {
            flex: 1;
        }
        .airport-flight-number {
            font-weight: bold;
            font-size: 13px;
        }
        .airport-flight-route {
            font-size: 11px;
            color: rgba(255,255,255,0.7);
        }
        .airport-flight-status {
            font-size: 10px;
            padding: 3px 8px;
            border-radius: 10px;
            font-weight: 500;
        }
        .airport-flight-status.on-time {
            background: rgba(46, 204, 113, 0.3);
            color: #2ecc71;
        }
        .airport-flight-status.delayed {
            background: rgba(231, 76, 60, 0.3);
            color: #e74c3c;
        }
        .airport-flight-status.landed, .airport-flight-status.departed {
            background: rgba(52, 152, 219, 0.3);
            color: #3498db;
        }

        /* Легенда траектории */
        #flight-legend {
            display: none;
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(30, 30, 30, 0.9);
            backdrop-filter: blur(10px);
            padding: 8px 16px;
            border-radius: 20px;
            z-index: 9999;
            font-size: 12px;
            color: #fff;
        }
        #flight-legend.visible {
            display: flex;
            gap: 16px;
            align-items: center;
        }
        .legend-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .legend-item.legend-clickable {
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 6px;
            transition: background 0.2s;
        }
        .legend-item.legend-clickable:hover {
            background: rgba(255, 255, 255, 0.15);
        }
        .legend-line {
            width: 24px;
            height: 3px;
            border-radius: 2px;
        }
        .legend-line.solid {
            background: #3498db;
        }
        .legend-line.dashed-orange {
            background: repeating-linear-gradient(90deg, #f39c12 0, #f39c12 6px, transparent 6px, transparent 10px);
        }
        .legend-line.dashed-green {
            background: repeating-linear-gradient(90deg, #2ecc71 0, #2ecc71 6px, transparent 6px, transparent 10px);
        }
        .legend-ring {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            border: 2px solid;
            animation: pulse-ring 1.5s ease-out infinite;
        }
        .legend-ring.blue {
            border-color: #3498db;
            background: rgba(52, 152, 219, 0.3);
        }
        .legend-ring.green {
            border-color: #2ecc71;
            background: rgba(46, 204, 113, 0.3);
        }
        @keyframes pulse-ring {
            0% { transform: scale(0.8); opacity: 1; }
            50% { transform: scale(1.2); opacity: 0.7; }
            100% { transform: scale(0.8); opacity: 1; }
        }

        .tracking-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 14px;
            border-bottom: 1px solid rgba(255,255,255,0.2);
        }
        .tracking-title {
            font-weight: bold;
            font-size: 14px;
        }
        .tracking-close {
            background: rgba(255,255,255,0.2);
            border: none;
            color: #fff;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .tracking-close:hover {
            background: rgba(255,255,255,0.3);
        }
        .camera-follow-btn {
            background: rgba(255,255,255,0.2);
            border: none;
            color: #fff;
            width: 28px;
            height: 24px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            margin-right: 8px;
            opacity: 0.5;
            transition: all 0.2s;
        }
        .camera-follow-btn.active {
            background: rgba(46, 204, 113, 0.5);
            opacity: 1;
        }
        .camera-follow-btn:hover {
            background: rgba(255,255,255,0.3);
        }
        .tracking-content {
            padding: 10px 14px;
        }
        .tracking-row {
            display: flex;
            justify-content: space-between;
            margin: 4px 0;
        }
        .tracking-label {
            opacity: 0.8;
            font-size: 12px;
        }
        .tracking-value {
            font-weight: 500;
        }
        .tracking-route {
            background: rgba(255,255,255,0.15);
            padding: 6px 10px;
            border-radius: 6px;
            margin: 8px -10px;
        }
        .tracking-route .tracking-value {
            color: #7FFFD4;
            font-weight: 600;
            letter-spacing: 1px;
        }

        /* Weather markers */
        .weather-marker {
            background: rgba(20, 30, 48, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 20px;
            padding: 4px 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            cursor: pointer;
            transform: translate(-50%, -50%);
            transition: transform 0.2s ease, background 0.2s ease;
            will-change: transform;
        }
        .weather-marker:hover {
            transform: translate(-50%, -50%) scale(1.15);
            background: rgba(30, 50, 80, 0.9);
            border-color: rgba(255, 255, 255, 0.3);
        }
        .weather-icon { font-size: 24px; }
        .weather-temp { font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
        .weather-city { font-size: 9px; color: rgba(255,255,255,0.7); max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
        @media (max-width: 768px) {
            .weather-marker {
                transition: none;
            }
            .weather-marker:hover {
                transform: translate(-50%, -50%);
            }
        }

        /* Weather city panel */
        .weather-city-panel {
            position: fixed;
            top: 120px;
            left: 20px;
            background: rgba(20, 35, 55, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 18px;
            min-width: 240px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.5);
            z-index: 1000;
            backdrop-filter: blur(15px);
        }
        .weather-city-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }
        .weather-city-icon { font-size: 36px; }
        .weather-city-info h3 { margin: 0; color: #fff; font-size: 18px; }
        .weather-city-desc { color: rgba(255,255,255,0.7); font-size: 12px; }
        .weather-city-close {
            position: absolute;
            top: 8px;
            right: 8px;
            background: none;
            border: none;
            color: #fff;
            font-size: 20px;
            cursor: pointer;
            opacity: 0.7;
        }
        .weather-city-close:hover { opacity: 1; }
        .weather-city-temp {
            display: flex;
            flex-direction: column;
            margin-bottom: 12px;
        }
        .weather-city-temp .temp-value { font-size: 36px; font-weight: 700; color: #fff; }
        .weather-city-temp .temp-feels { font-size: 12px; color: rgba(255,255,255,0.7); }
        .weather-city-details {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .weather-detail { color: rgba(255,255,255,0.9); font-size: 13px; display: flex; align-items: center; gap: 8px; }

        /* Event markers */
        .event-marker {
            background: rgba(255, 152, 0, 0.9);
            border-radius: 50%;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transform: translate(-50%, -50%);
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
            animation: eventPulse 2s infinite;
        }
        @keyframes eventPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.5); }
            50% { box-shadow: 0 0 0 10px rgba(255, 152, 0, 0); }
        }
        .event-icon { font-size: 18px; }

        /* Webcam markers */
        .webcam-marker {
            background: rgba(244, 67, 54, 0.9);
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transform: translate(-50%, -50%);
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
            animation: liveBlink 1.5s infinite;
            z-index: 500;
        }
        .webcam-marker:hover {
            transform: translate(-50%, -50%) scale(1.2);
            box-shadow: 0 4px 15px rgba(244, 67, 54, 0.5);
        }
        @keyframes liveBlink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }
        .webcam-icon { font-size: 16px; pointer-events: none; }

        /* Lightning strikes styles */
        .lightning-toggle {
            position: fixed;
            top: 230px;
            right: 20px;
            background: linear-gradient(135deg, rgba(255, 193, 7, 0.9), rgba(255, 152, 0, 0.9));
            color: #000;
            border: none;
            border-radius: 25px;
            padding: 10px 18px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            z-index: 105;
            display: none;
            box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
            transition: all 0.3s ease;
        }
        .lightning-toggle:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
        }
        .lightning-toggle.active {
            background: linear-gradient(135deg, #4CAF50, #45a049);
            color: #fff;
        }
        .lightning-counter {
            position: fixed;
            top: 275px;
            right: 20px;
            background: rgba(0,0,0,0.7);
            color: #ffc107;
            padding: 6px 12px;
            border-radius: 12px;
            font-size: 11px;
            display: none;
            z-index: 105;
        }
        @keyframes lightningFlash {
            0% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.8; transform: scale(1.5); }
            100% { opacity: 0; transform: scale(2); }
        }
        @keyframes lightningGlow {
            0%, 100% { box-shadow: 0 0 10px #fff, 0 0 20px #ffc107, 0 0 30px #ff9800; }
            50% { box-shadow: 0 0 20px #fff, 0 0 40px #ffc107, 0 0 60px #ff9800; }
        }

        /* Webcam Modal */
        .webcam-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            animation: fadeIn 0.2s ease;
        }
        .webcam-modal-content {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            border-radius: 16px;
            width: 90%;
            max-width: 400px;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(244, 67, 54, 0.3);
        }
        .webcam-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            background: rgba(244, 67, 54, 0.2);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        .webcam-modal-header h3 {
            margin: 0;
            font-size: 16px;
            color: #fff;
        }
        .webcam-modal-close {
            background: none;
            border: none;
            color: #888;
            font-size: 24px;
            cursor: pointer;
            line-height: 1;
        }
        .webcam-modal-close:hover { color: #fff; }
        .webcam-modal-body {
            padding: 20px;
        }
        .webcam-preview {
            background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%);
            height: 180px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 15px;
            position: relative;
            overflow: hidden;
        }
        .webcam-preview::before {
            content: '📹';
            font-size: 48px;
            opacity: 0.3;
        }
        .webcam-live-icon {
            position: absolute;
            top: 10px;
            left: 10px;
            background: rgba(244, 67, 54, 0.9);
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: bold;
            animation: liveBlink 1.5s infinite;
        }
        .webcam-open-btn {
            display: block;
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
            color: #fff;
            text-decoration: none;
            text-align: center;
            border-radius: 10px;
            font-weight: 600;
            transition: all 0.2s;
        }
        .webcam-open-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(244, 67, 54, 0.4);
        }

        /* Airport Modal */
        .airport-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            opacity: 0;
            transition: opacity 0.2s;
        }
        .airport-modal.visible {
            opacity: 1;
        }
        .airport-modal-content {
            background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
            color: #fff;
            padding: 24px 32px;
            border-radius: 16px;
            text-align: center;
            position: relative;
            min-width: 250px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.4);
        }
        .airport-modal-close {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(255,255,255,0.2);
            border: none;
            color: #fff;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 16px;
        }
        .airport-type {
            font-size: 14px;
            opacity: 0.9;
            margin-bottom: 8px;
        }
        .airport-code {
            font-size: 36px;
            font-weight: bold;
            letter-spacing: 2px;
        }
        .airport-name {
            font-size: 16px;
            margin-top: 8px;
        }
        .airport-city {
            font-size: 13px;
            opacity: 0.8;
            margin-top: 4px;
        }

        /* Quake Tooltip */
        .quake-tooltip {
            display: none;
            position: fixed;
            background: rgba(0, 0, 0, 0.95);
            color: #fff;
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 12px;
            z-index: 10000;
            pointer-events: none;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            min-width: 200px;
            border-left: 4px solid #e74c3c;
        }
        .quake-tooltip.visible {
            display: block;
        }
        .quake-tooltip-header {
            font-weight: bold;
            font-size: 16px;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .quake-tooltip-mag {
            padding: 4px 8px;
            border-radius: 4px;
            font-weight: bold;
        }
        .quake-tooltip-mag.low { background: #2ecc71; }
        .quake-tooltip-mag.medium { background: #f1c40f; color: #000; }
        .quake-tooltip-mag.high { background: #e67e22; }
        .quake-tooltip-mag.severe { background: #e74c3c; }
        .quake-tooltip-place {
            margin: 8px 0;
            font-size: 13px;
        }
        .quake-tooltip-row {
            display: flex;
            justify-content: space-between;
            margin: 4px 0;
            font-size: 11px;
        }
        .quake-tooltip-label {
            opacity: 0.7;
        }

        .loading {
            text-align: center;
            padding: 40px;
            color: #888;
        }

        .no-news {
            text-align: center;
            padding: 40px;
            color: #666;
        }

        .tooltip {
            position: fixed;
            background: rgba(0,0,0,0.95);
            color: #fff;
            padding: 12px 16px;
            border-radius: 10px;
            font-size: 14px;
            pointer-events: none;
            z-index: 1000;
            display: none;
            border: 1px solid rgba(0,212,255,0.3);
            min-width: 180px;
            backdrop-filter: blur(10px);
        }
        .tooltip-country {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .tooltip-weather {
            display: flex;
            align-items: center;
            gap: 10px;
            padding-top: 8px;
            border-top: 1px solid rgba(255,255,255,0.1);
        }
        .tooltip-weather-temp {
            font-size: 24px;
            font-weight: 700;
            color: #00d4ff;
        }
        .tooltip-weather-emoji {
            font-size: 28px;
        }
        .tooltip-weather-details {
            font-size: 11px;
            color: rgba(255,255,255,0.7);
            line-height: 1.4;
        }
        .tooltip-weather-city {
            font-size: 10px;
            color: rgba(255,255,255,0.5);
            margin-top: 4px;
        }
        .tooltip-loading {
            font-size: 11px;
            color: rgba(255,255,255,0.5);
            padding-top: 6px;
        }

        /* Weather Forecast Panel — Apple Weather style */
        .weather-forecast-panel {
            position: fixed;
            left: 20px;
            right: auto;
            top: 80px;
            width: 360px;
            max-height: calc(100vh - 100px);
            background: rgba(20, 20, 35, 0.85);
            backdrop-filter: blur(40px) saturate(1.8);
            -webkit-backdrop-filter: blur(40px) saturate(1.8);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            z-index: 9000 !important;
            overflow-y: auto;
            overflow-x: hidden;
            box-shadow: 0 10px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.08);
            scrollbar-width: thin;
            scrollbar-color: rgba(255,255,255,0.15) transparent;
        }
        .weather-forecast-panel::-webkit-scrollbar { width: 4px; }
        .weather-forecast-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

        .weather-forecast-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px 8px;
            position: sticky;
            top: 0;
            z-index: 2;
            background: rgba(20, 20, 35, 0.9);
            backdrop-filter: blur(20px);
        }
        .weather-forecast-header h3 {
            margin: 0;
            font-size: 15px;
            font-weight: 600;
            color: rgba(255,255,255,0.85);
            letter-spacing: 0.3px;
        }
        .weather-forecast-close {
            background: rgba(255,255,255,0.1);
            border: none;
            color: rgba(255,255,255,0.6);
            width: 28px; height: 28px;
            border-radius: 50%;
            font-size: 16px;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.2s;
        }
        .weather-forecast-close:hover { background: rgba(255,255,255,0.2); color: #fff; }

        .weather-forecast-content { padding: 0 20px 20px; }

        /* Current weather hero */
        .wf-current {
            text-align: center;
            padding: 8px 0 20px;
        }
        .wf-city-name { font-size: 28px; font-weight: 500; color: #fff; margin-bottom: 2px; }
        .wf-current-temp { font-size: 72px; font-weight: 200; color: #fff; line-height: 1; margin: -4px 0 2px; }
        .wf-current-desc { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 4px; text-transform: capitalize; }
        .wf-current-hl { font-size: 16px; color: rgba(255,255,255,0.7); }
        .wf-current-hl span { margin: 0 4px; }
        .wf-current-time { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 6px; }

        /* Section cards */
        .wf-section {
            background: rgba(255,255,255,0.06);
            border-radius: 14px;
            margin-bottom: 12px;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.06);
        }
        .wf-section-title {
            font-size: 11px; font-weight: 600;
            color: rgba(255,255,255,0.4);
            text-transform: uppercase; letter-spacing: 1px;
            padding: 12px 16px 8px;
            display: flex; align-items: center; gap: 5px;
        }

        /* Hourly scroll */
        .wf-hourly-scroll {
            display: flex;
            overflow-x: auto;
            gap: 0;
            padding: 4px 12px 14px;
            scrollbar-width: none;
        }
        .wf-hourly-scroll::-webkit-scrollbar { display: none; }
        .wf-hour {
            display: flex; flex-direction: column; align-items: center;
            min-width: 56px; padding: 6px 4px; gap: 6px;
        }
        .wf-hour-time { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.6); }
        .wf-hour-icon { font-size: 20px; }
        .wf-hour-temp { font-size: 15px; font-weight: 500; color: #fff; }
        .wf-hour.now .wf-hour-time { color: #fff; }
        .wf-hour.now .wf-hour-temp { color: #fff; font-weight: 600; }

        /* 10-day forecast */
        .wf-daily-rows { padding: 0 4px 10px; }
        .wf-day-row {
            display: flex; align-items: center;
            padding: 8px 12px; gap: 8px;
            border-bottom: 1px solid rgba(255,255,255,0.04);
        }
        .wf-day-row:last-child { border-bottom: none; }
        .wf-day-name { width: 44px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.85); }
        .wf-day-icon { font-size: 20px; width: 28px; text-align: center; }
        .wf-day-min { width: 32px; text-align: right; font-size: 14px; color: rgba(255,255,255,0.4); }
        .wf-day-bar-wrap {
            flex: 1; height: 5px;
            background: rgba(255,255,255,0.08);
            border-radius: 3px; position: relative;
            margin: 0 6px;
        }
        .wf-day-bar {
            position: absolute; top: 0; height: 100%;
            border-radius: 3px;
            background: linear-gradient(90deg, #5ac8fa, #34c759, #ffd60a, #ff9f0a, #ff453a);
            background-size: 200% 100%;
        }
        .wf-day-bar-dot {
            position: absolute; top: 50%; width: 7px; height: 7px;
            background: #fff; border-radius: 50%;
            transform: translate(-50%, -50%);
            box-shadow: 0 0 4px rgba(0,0,0,0.3);
            display: none;
        }
        .wf-day-row.today-row .wf-day-bar-dot { display: block; }
        .wf-day-max { width: 32px; font-size: 14px; font-weight: 500; color: #fff; }

        /* Details grid */
        .wf-details-grid {
            display: grid; grid-template-columns: 1fr 1fr;
            gap: 10px; padding: 10px 12px;
        }
        .wf-detail-card {
            background: rgba(255,255,255,0.04);
            border-radius: 10px; padding: 12px;
        }
        .wf-detail-label {
            font-size: 11px; font-weight: 500;
            color: rgba(255,255,255,0.35);
            text-transform: uppercase; letter-spacing: 0.5px;
            margin-bottom: 6px; display: flex; align-items: center; gap: 4px;
        }
        .wf-detail-value { font-size: 22px; font-weight: 400; color: #fff; }
        .wf-detail-extra { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }

        /* Precipitation probability in hourly */
        .wf-hour-precip { font-size: 10px; color: #5ac8fa; min-height: 14px; }

        /* Mobile: bottom sheet */
        @media (max-width: 768px) {
            .weather-forecast-panel {
                left: 0 !important; right: 0 !important; top: auto !important;
                bottom: 0; width: 100%; max-width: 100%;
                max-height: 85vh;
                border-radius: 20px 20px 0 0;
                border-bottom: none;
            }
            .wf-current-temp { font-size: 60px; }
            .wf-city-name { font-size: 24px; }
        }

        /* Currency Panel */
        .currency-panel {
            position: fixed;
            right: -420px;
            top: 80px;
            width: 380px;
            max-height: calc(100vh - 120px);
            background: rgba(0, 0, 0, 0.95);
            border-radius: 16px;
            border: 1px solid rgba(46, 204, 113, 0.3);
            padding: 20px;
            z-index: 150;
            transition: right 0.3s ease;
            overflow-y: auto;
            overflow-x: hidden;
        }

        .currency-panel.open {
            right: 20px;
        }

        .currency-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(46, 204, 113, 0.2);
        }

        .currency-panel-title {
            font-size: 18px;
            font-weight: 600;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .currency-flag {
            font-size: 28px;
        }

        .currency-code {
            color: #2ecc71;
            font-weight: 700;
        }

        .currency-rates {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .currency-rate-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background: rgba(46, 204, 113, 0.08);
            border-radius: 12px;
            border: 1px solid rgba(46, 204, 113, 0.15);
        }

        .currency-rate-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .currency-rate-symbol {
            font-size: 24px;
            width: 40px;
            text-align: center;
        }

        .currency-rate-name {
            font-size: 14px;
            color: #aaa;
        }

        .currency-rate-code {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
        }

        .currency-rate-value {
            font-size: 20px;
            font-weight: 700;
            color: #2ecc71;
            font-family: monospace;
        }

        .currency-loading {
            text-align: center;
            padding: 40px;
            color: #888;
        }

        /* Currency Converter */
        .currency-converter {
            background: rgba(46, 204, 113, 0.1);
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 20px;
            border: 1px solid rgba(46, 204, 113, 0.2);
        }
        .converter-row {
            display: flex;
            gap: 10px;
        }
        .converter-row input {
            flex: 1;
            background: rgba(0,0,0,0.3);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            padding: 12px 15px;
            color: #fff;
            font-size: 18px;
            font-weight: 600;
            outline: none;
        }
        .converter-row input:focus {
            border-color: #2ecc71;
        }
        .converter-row input[readonly] {
            background: rgba(46, 204, 113, 0.15);
            color: #2ecc71;
        }
        .converter-row select {
            width: 90px;
            background: rgba(0,0,0,0.3);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            padding: 12px 10px;
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            outline: none;
        }
        .converter-row select:focus {
            border-color: #2ecc71;
        }
        .converter-swap {
            text-align: center;
            padding: 8px;
            font-size: 20px;
            color: #2ecc71;
            cursor: pointer;
            transition: transform 0.2s;
        }
        .converter-swap:hover {
            transform: rotate(180deg);
        }

        .currency-base-info {
            text-align: center;
            font-size: 16px;
            font-weight: 600;
            color: #2ecc71;
            margin-bottom: 15px;
            padding: 10px;
            background: rgba(46, 204, 113, 0.1);
            border-radius: 8px;
        }

        /* Money Filters (CRYPTO, STOCKS, ТОВАРЫ) - Flat Design */
        .money-filters {
            position: fixed;
            top: 60px;
            left: 15px;
            display: none;
            gap: 3px;
            background: rgba(30, 30, 40, 0.9);
            padding: 3px;
            border-radius: 6px;
            z-index: 95;
        }

        .money-filters.visible {
            display: flex;
        }

        .money-filter {
            background: transparent;
            border: none;
            color: rgba(255, 255, 255, 0.5);
            padding: 8px 16px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .money-filter:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }

        .money-filter.active {
            background: #27ae60;
            color: white;
        }

        /* Crypto Panel */
        .crypto-panel {
            position: fixed;
            right: -420px;
            top: 80px;
            width: 400px;
            max-height: calc(100vh - 100px);
            background: rgba(0, 0, 0, 0.95);
            border-radius: 16px;
            border: 1px solid rgba(241, 196, 15, 0.4);
            padding: 20px;
            z-index: 150;
            transition: right 0.3s ease;
            overflow-y: auto;
        }

        .crypto-panel.open {
            right: 20px;
        }

        /* Stocks Panel */
        .stocks-panel {
            position: fixed;
            right: -420px;
            top: 80px;
            width: 400px;
            max-height: calc(100vh - 100px);
            background: rgba(0, 0, 0, 0.95);
            border-radius: 16px;
            border: 1px solid rgba(52, 152, 219, 0.4);
            padding: 20px;
            z-index: 150;
            transition: right 0.3s ease;
            overflow-y: auto;
        }

        .stocks-panel.open {
            right: 20px;
        }

        /* Commodities Panel */
        .commodities-panel {
            position: fixed;
            right: -420px;
            top: 80px;
            width: 400px;
            max-height: calc(100vh - 100px);
            background: rgba(0, 0, 0, 0.95);
            border-radius: 16px;
            border: 1px solid rgba(230, 126, 34, 0.4);
            padding: 20px;
            z-index: 150;
            transition: right 0.3s ease;
            overflow-y: auto;
        }

        .commodities-panel.open {
            right: 20px;
        }

        .crypto-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(241, 196, 15, 0.3);
        }

        .crypto-panel-title {
            font-size: 20px;
            font-weight: 700;
            color: #f1c40f;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .crypto-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .crypto-item {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            background: rgba(241, 196, 15, 0.08);
            border-radius: 12px;
            border: 1px solid rgba(241, 196, 15, 0.15);
            transition: all 0.2s ease;
        }

        .crypto-item:hover {
            background: rgba(241, 196, 15, 0.15);
            transform: translateX(5px);
        }

        .crypto-rank {
            width: 28px;
            height: 28px;
            background: rgba(241, 196, 15, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 700;
            color: #f1c40f;
            margin-right: 12px;
        }

        .crypto-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            margin-right: 12px;
        }

        .crypto-info {
            flex: 1;
        }

        .crypto-name {
            font-size: 14px;
            font-weight: 600;
            color: #fff;
        }

        .crypto-symbol {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.6);
        }

        .crypto-price-info {
            text-align: right;
        }

        .crypto-price {
            font-size: 15px;
            font-weight: 700;
            color: #f1c40f;
        }

        .crypto-change {
            font-size: 12px;
            font-weight: 600;
        }

        .crypto-change.positive {
            color: #2ecc71;
        }

        .crypto-change.negative {
            color: #e74c3c;
        }

        .crypto-loading {
            text-align: center;
            padding: 40px;
            color: #888;
        }

        .crypto-market-cap {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.5);
            margin-top: 2px;
        }

        /* Crypto Chart Modal */
        .crypto-chart-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            z-index: 9000 !important;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .crypto-chart-modal.visible {
            display: flex;
        }

        .crypto-chart-container {
            background: rgba(20, 20, 30, 0.98);
            border-radius: 20px;
            border: 1px solid rgba(241, 196, 15, 0.4);
            padding: 25px;
            width: 100%;
            max-width: 700px;
            max-height: 90vh;
            overflow-y: auto;
        }

        .crypto-chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .crypto-chart-title {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .crypto-chart-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
        }

        .crypto-chart-name {
            font-size: 22px;
            font-weight: 700;
            color: #fff;
        }

        .crypto-chart-symbol {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.6);
        }

        .crypto-chart-price-info {
            text-align: right;
        }

        .crypto-chart-current-price {
            font-size: 28px;
            font-weight: 700;
            color: #f1c40f;
        }

        .crypto-chart-change {
            font-size: 16px;
            font-weight: 600;
        }

        .crypto-chart-period-selector {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
        }

        .crypto-period-btn {
            background: rgba(241, 196, 15, 0.15);
            border: 1px solid rgba(241, 196, 15, 0.3);
            color: #f1c40f;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .crypto-period-btn:hover {
            background: rgba(241, 196, 15, 0.25);
        }

        .crypto-period-btn.active {
            background: #f1c40f;
            color: #000;
        }

        .crypto-chart-canvas-container {
            position: relative;
            height: 300px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 15px;
        }

        .crypto-chart-canvas {
            width: 100%;
            height: 100%;
        }

        .crypto-chart-stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
        }

        .crypto-stat-item {
            background: rgba(241, 196, 15, 0.08);
            border-radius: 10px;
            padding: 12px;
            text-align: center;
        }

        .crypto-stat-label {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.5);
            margin-bottom: 4px;
        }

        .crypto-stat-value {
            font-size: 14px;
            font-weight: 600;
            color: #fff;
        }

        .crypto-chart-loading {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 300px;
            color: #888;
        }

        @media (max-width: 768px) {
            .crypto-chart-container {
                padding: 15px;
                border-radius: 15px;
            }

            .crypto-chart-stats {
                grid-template-columns: repeat(2, 1fr);
            }

            .crypto-chart-current-price {
                font-size: 22px;
            }

            .crypto-chart-name {
                font-size: 18px;
            }
        }

        /* Satellite List Panel */
        .satellite-list-panel {
            position: fixed;
            left: -420px;
            top: 160px;
            width: 380px;
            max-height: calc(100vh - 180px);
            background: rgba(0, 0, 0, 0.95);
            border-radius: 16px;
            border: 1px solid rgba(155, 89, 182, 0.4);
            padding: 20px;
            z-index: 150;
            transition: left 0.3s ease;
            overflow-y: auto;
        }

        .satellite-list-panel.open {
            left: 15px;
        }

        .satellite-list-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(155, 89, 182, 0.3);
        }

        .satellite-list-title {
            font-size: 18px;
            font-weight: 600;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .satellite-list-title .icon {
            font-size: 22px;
        }

        .satellite-list-content {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .satellite-list-item {
            background: rgba(155, 89, 182, 0.1);
            border: 1px solid rgba(155, 89, 182, 0.2);
            border-radius: 12px;
            padding: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .satellite-list-item:hover {
            background: rgba(155, 89, 182, 0.2);
            border-color: rgba(155, 89, 182, 0.4);
            transform: translateX(5px);
        }

        .satellite-list-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .satellite-list-item-name {
            font-size: 15px;
            font-weight: 600;
            color: #fff;
        }

        .satellite-list-item-country {
            font-size: 18px;
        }

        .satellite-list-item-params {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6px;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.7);
        }

        .satellite-list-item-param {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .satellite-list-item-param .label {
            color: rgba(155, 89, 182, 0.8);
        }

        .satellite-list-item-param .value {
            color: #fff;
            font-weight: 500;
        }

        /* Radio Panel - Modern Dark Theme */
        .radio-panel {
            position: fixed;
            left: -420px;
            top: 180px;
            width: 380px;
            max-height: calc(100vh - 200px);
            background: rgba(18, 18, 18, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 8px 32px rgba(0,0,0,0.4);
            padding: 20px;
            z-index: 150;
            transition: left 0.3s ease;
            overflow-y: auto;
        }

        .radio-panel.open {
            left: 20px;
        }

        /* Back button — only visible on mobile (styled in @media block) */
        .mobile-panel-back {
            display: none;
        }

        .radio-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .radio-panel-title {
            font-size: 18px;
            font-weight: 600;
            color: #fff;
        }

        .radio-panel-close {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: none;
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .radio-panel-close:hover {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
        }

        .radio-station {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 12px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .radio-station:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(29, 185, 84, 0.3);
        }

        .radio-station.playing {
            background: rgba(29, 185, 84, 0.15);
            border-color: rgba(29, 185, 84, 0.4);
        }

        .radio-station-icon {
            font-size: 20px;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(29, 185, 84, 0.2);
            border-radius: 50%;
            color: #1db954;
        }

        .radio-station-info {
            flex: 1;
            min-width: 0;
            overflow: hidden;
        }

        .radio-station-name {
            font-size: 14px;
            font-weight: 600;
            color: #fff;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .radio-station-tags {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.6);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }

        /* Radio Garden Mode - Station Tooltip */
        .radio-station-tooltip {
            position: fixed;
            background: rgba(0, 0, 0, 0.95);
            border: 1px solid rgba(29, 185, 84, 0.4);
            border-radius: 12px;
            padding: 12px 16px;
            z-index: 2000;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.2s ease;
            max-width: 280px;
            backdrop-filter: blur(10px);
        }

        .radio-station-tooltip.visible {
            opacity: 1;
        }

        .radio-tooltip-name {
            font-size: 14px;
            font-weight: 600;
            color: #fff;
            margin-bottom: 4px;
        }

        .radio-tooltip-country {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 4px;
        }

        .radio-tooltip-tags {
            font-size: 11px;
            color: #1db954;
            margin-bottom: 4px;
        }

        .radio-tooltip-bitrate {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.5);
            margin-bottom: 6px;
        }

        .radio-tooltip-hint {
            font-size: 10px;
            color: rgba(255, 255, 255, 0.4);
            text-transform: uppercase;
        }

        /* Radio Mini Player */
        .radio-mini-player {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: rgba(0, 0, 0, 0.95);
            border: 1px solid rgba(29, 185, 84, 0.4);
            border-radius: 50px;
            padding: 8px 16px 8px 12px;
            z-index: 300;
            display: flex;
            align-items: center;
            gap: 12px;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
            transition: transform 0.3s ease;
        }

        .radio-mini-player.visible {
            transform: translateX(-50%) translateY(0);
        }

        .radio-mini-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .radio-mini-icon {
            font-size: 24px;
        }

        .radio-mini-details {
            max-width: 200px;
        }

        .radio-mini-name {
            font-size: 13px;
            font-weight: 600;
            color: #fff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .radio-mini-tags {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.5);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .radio-mini-controls {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .radio-mini-btn {
            width: 36px;
            height: 36px;
            border: none;
            border-radius: 50%;
            background: rgba(29, 185, 84, 0.2);
            color: #1db954;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .radio-mini-btn:hover {
            background: rgba(29, 185, 84, 0.4);
            color: #fff;
        }

        /* Radio Filters in Radio Mode */
        .radio-filters {
            position: fixed;
            top: 55px;
            left: 20px;
            display: flex;
            gap: 8px;
            z-index: 120;
            flex-wrap: wrap;
            max-width: calc(100vw - 40px);
        }

        .radio-genre-btn {
            background: rgba(29, 185, 84, 0.15);
            border: 1px solid rgba(29, 185, 84, 0.3);
            border-radius: 20px;
            padding: 6px 14px;
            color: rgba(255, 255, 255, 0.8);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .radio-genre-btn:hover {
            background: rgba(29, 185, 84, 0.3);
            border-color: rgba(29, 185, 84, 0.5);
        }

        .radio-genre-btn.active {
            background: #1db954;
            color: #fff;
            border-color: #1db954;
        }

        .radio-stations-counter {
            position: fixed;
            top: 95px;
            left: 20px;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.7);
            z-index: 120;
        }

        .radio-country-badge {
            position: fixed;
            top: 180px;
            right: 20px;
            background: rgba(29, 185, 84, 0.9);
            color: white;
            padding: 8px 12px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
            z-index: 120;
            display: flex;
            align-items: center;
            gap: 8px;
            backdrop-filter: blur(10px);
        }

        .radio-country-clear {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            color: white;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

        .radio-country-clear:hover {
            background: rgba(255, 255, 255, 0.4);
        }

        /* TV Panel - Similar to Radio Panel */
        /* TV Panel - Right-side sidebar (famelack style) */
        .tv-panel {
            position: fixed;
            left: -400px;
            top: 60px;
            width: 360px;
            height: calc(100vh - 80px);
            background: rgba(6, 8, 12, 0.96);
            backdrop-filter: blur(16px);
            border-radius: 0 16px 16px 0;
            border: 1px solid rgba(147, 51, 234, 0.2);
            border-left: none;
            padding: 0;
            z-index: 150;
            transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .tv-panel.open { left: 0; }

        .tv-panel-header {
            padding: 16px 16px 12px;
            border-bottom: 1px solid rgba(147, 51, 234, 0.15);
            flex-shrink: 0;
        }
        .tv-panel-header-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        .tv-panel-title {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .tv-panel-count {
            font-size: 12px;
            color: rgba(255,255,255,0.4);
            margin-left: 6px;
        }
        .tv-panel-actions {
            display: flex;
            gap: 6px;
            align-items: center;
        }
        .tv-panel-close {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: none;
            background: rgba(255, 255, 255, 0.08);
            color: rgba(255, 255, 255, 0.6);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
        }
        .tv-panel-close:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
        }
        .tv-random-btn {
            height: 30px;
            padding: 0 12px;
            border-radius: 15px;
            border: 1px solid rgba(147, 51, 234, 0.4);
            background: rgba(147, 51, 234, 0.15);
            color: #c084fc;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: all 0.15s;
        }
        .tv-random-btn:hover {
            background: rgba(147, 51, 234, 0.3);
            border-color: rgba(147, 51, 234, 0.6);
            color: #fff;
        }

        /* Search bar */
        .tv-search-wrap {
            position: relative;
            margin-bottom: 8px;
        }
        .tv-search-input {
            width: 100%;
            height: 36px;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 18px;
            padding: 0 36px 0 14px;
            color: #fff;
            font-size: 13px;
            outline: none;
            transition: border-color 0.15s;
            box-sizing: border-box;
        }
        .tv-search-input::placeholder { color: rgba(255,255,255,0.3); }
        .tv-search-input:focus { border-color: rgba(147, 51, 234, 0.5); }
        .tv-search-icon {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0.35;
            pointer-events: none;
        }

        /* Category tabs */
        .tv-category-tabs {
            display: flex;
            gap: 4px;
            overflow-x: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(147,51,234,0.4) transparent;
            padding-bottom: 4px;
        }
        .tv-category-tabs::-webkit-scrollbar { height: 4px; }
        .tv-category-tabs::-webkit-scrollbar-track { background: transparent; }
        .tv-category-tabs::-webkit-scrollbar-thumb { background: rgba(147,51,234,0.4); border-radius: 2px; }
        .tv-category-tabs::-webkit-scrollbar-thumb:hover { background: rgba(147,51,234,0.7); }
        .tv-cat-tab {
            padding: 4px 10px;
            border-radius: 12px;
            border: none;
            background: rgba(255,255,255,0.06);
            color: rgba(255,255,255,0.5);
            font-size: 11px;
            font-weight: 500;
            flex-shrink: 0;
            white-space: nowrap;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.15s;
        }
        .tv-cat-tab:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
        .tv-cat-tab.active {
            background: rgba(147, 51, 234, 0.3);
            color: #c084fc;
        }

        /* Channel list */
        .tv-panel-content {
            flex: 1;
            overflow-y: auto;
            padding: 8px 12px;
            scrollbar-width: thin;
            scrollbar-color: rgba(255,255,255,0.15) transparent;
        }
        .tv-panel-content::-webkit-scrollbar { width: 5px; }
        .tv-panel-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

        .tv-channel-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 10px;
            background: transparent;
            border-radius: 8px;
            margin-bottom: 2px;
            cursor: pointer;
            transition: background 0.15s;
            border: 1px solid transparent;
            min-height: 48px;
        }
        .tv-channel-item:hover { background: rgba(255,255,255,0.06); }
        .tv-channel-item.playing {
            background: rgba(147, 51, 234, 0.2);
            border-color: rgba(147, 51, 234, 0.4);
        }
        .tv-channel-item.failed { opacity: 0.4; }
        .tv-channel-item.failed::after {
            content: '';
            display: none;
        }

        .tv-channel-logo {
            width: 40px;
            height: 30px;
            border-radius: 4px;
            background: rgba(255,255,255,0.04);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            overflow: hidden;
        }
        .tv-channel-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
        .tv-channel-logo svg { width: 20px; height: 20px; fill: rgba(147, 51, 234, 0.5); }

        .tv-channel-info { flex: 1; min-width: 0; }
        .tv-channel-name {
            font-size: 13px;
            font-weight: 500;
            color: #fff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .tv-channel-category {
            font-size: 10px;
            color: rgba(255, 255, 255, 0.35);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        @media (max-width: 600px) {
            .tv-panel {
                width: 100%;
                left: -100%;
                top: 0;
                height: 100vh;
                border-radius: 0;
            }
            .tv-panel.open { left: 0; }
        }

        /* TV Player Styles - Compact like Radio */
        /* Styles are injected via JavaScript like radio player */

        /* Search box */
        .search-container {
            position: fixed;
            top: 85px;
            right: 20px;
            left: auto;
            z-index: 110;
            width: 260px;
            transition: top 0.3s ease;
        }

        /* Shift search down when filters are visible */
        .search-container.filters-active {
            top: 160px;
        }

        /* Shift search down when STATS filters are visible */
        .search-container.stats-filters-active {
            top: 130px;
        }

        .search-container.resources-filters-active {
            top: 130px !important;
        }

        .search-container.economy-filters-active {
            top: 130px !important;
        }

        /* Shift search down when radio mode is active */
        .search-container.radio-mode-active {
            top: 115px;
        }

        /* Move search to left side in radio/tv modes */
        .search-container.search-left {
            right: auto;
            left: 20px;
        }

        .search-input {
            width: 100%;
            padding: 12px 15px;
            padding-left: 40px;
            background: rgba(0, 20, 40, 0.15);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 14px;
            color: #fff;
            font-size: 14px;
            outline: none;
            transition: all 0.3s ease;
        }

        .search-input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        .search-input:focus {
            border-color: rgba(0, 212, 255, 0.5);
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
            background: rgba(0, 20, 40, 0.25);
        }

        .search-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(0, 212, 255, 0.6);
            font-size: 16px;
            pointer-events: none;
        }

        .search-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            margin-top: 5px;
            background: rgba(20, 20, 40, 0.95);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 12px;
            max-height: 300px;
            overflow-y: auto;
            display: none;
            backdrop-filter: blur(10px);
        }

        .search-results.visible {
            display: block;
        }

        .search-result-item {
            padding: 12px 15px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.2s;
        }

        .search-result-item:last-child {
            border-bottom: none;
        }

        .search-result-item:hover {
            background: rgba(0, 212, 255, 0.15);
        }

        .search-result-item .flag {
            font-size: 24px;
        }

        .search-result-item .country-info {
            flex: 1;
        }

        .search-result-item .country-name {
            font-size: 14px;
            color: #fff;
        }

        .search-result-item .country-name-alt {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.5);
            margin-top: 2px;
        }

        .search-no-results {
            padding: 20px;
            text-align: center;
            color: rgba(255, 255, 255, 0.4);
            font-size: 13px;
        }

        /* Hot News Button - in header (matching lang-selector) */
        .top-news-btn {
            padding: 8px 14px;
            background: linear-gradient(135deg, rgba(255, 80, 50, 0.15) 0%, rgba(255, 50, 80, 0.1) 100%);
            border: 1px solid rgba(255, 80, 50, 0.3);
            border-radius: 12px;
            color: #fff;
            font-size: 12px;
            margin-left: 6px;
            height: 38px;
            min-width: 90px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .top-news-btn:hover {
            background: linear-gradient(135deg, rgba(255, 80, 50, 0.5) 0%, rgba(255, 50, 80, 0.4) 100%);
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(255, 80, 50, 0.3);
        }

        .top-news-btn.hidden {
            display: none;
        }

        /* Top News Panel */
        .top-news-panel {
            position: fixed;
            right: -400px;
            top: 80px;
            width: 350px;
            max-height: calc(100vh - 100px);
            background: rgba(15, 15, 30, 0.95);
            border-radius: 16px;
            padding: 15px;
            z-index: 90;
            overflow-y: auto;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.1);
            transition: right 0.3s ease;
        }

        .top-news-panel.visible {
            right: 20px;
        }

        .top-news-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .top-news-panel h3 {
            font-size: 14px;
            color: #00d4ff;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .top-news-close {
            background: none;
            border: none;
            color: #888;
            font-size: 20px;
            cursor: pointer;
            padding: 0;
            line-height: 1;
            transition: color 0.2s;
        }

        .top-news-close:hover {
            color: #fff;
        }

        .top-news-item {
            margin-bottom: 10px;
            background: rgba(255,255,255,0.03);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s;
            border-left: 3px solid transparent;
            overflow: hidden;
            display: flex;
            flex-direction: row;
        }

        .top-news-item:hover {
            background: rgba(255,255,255,0.08);
            border-left-color: #00d4ff;
        }

        .top-news-item .news-thumb {
            width: 80px;
            min-width: 80px;
            height: 70px;
            object-fit: cover;
            background: rgba(255,255,255,0.05);
        }

        .top-news-item .news-thumb-placeholder {
            width: 80px;
            min-width: 80px;
            height: 70px;
            background: linear-gradient(135deg, rgba(0,212,255,0.15) 0%, rgba(0,153,204,0.15) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }

        .top-news-item .news-info {
            padding: 8px 10px;
            display: flex;
            flex-direction: column;
            flex: 1;
            min-width: 0;
        }

        .top-news-item .news-country {
            font-size: 10px;
            color: #00d4ff;
            margin-bottom: 4px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .top-news-item .news-title {
            font-size: 12px;
            color: #e0e0e0;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .top-news-item .news-source {
            font-size: 10px;
            color: #666;
            margin-top: auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .top-news-item .share-btn {
            font-size: 12px;
            padding: 2px 6px;
        }

        /* Country Stats Panel */
        .country-stats-panel {
            position: fixed;
            left: 20px;
            top: 140px;
            width: 380px;
            max-height: calc(100vh - 100px);
            background: rgba(20, 20, 40, 0.98);
            border-radius: 16px;
            padding: 20px;
            z-index: 500;
            overflow-y: auto;
            backdrop-filter: blur(15px);
            border: 1px solid rgba(0, 212, 255, 0.2);
            transform: translateX(-450px);
            transition: transform 0.3s ease;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }

        .country-stats-panel.visible {
            transform: translateX(0);
        }

        .country-stats-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .country-stats-header h3 {
            font-size: 16px;
            color: #00d4ff;
            margin: 0;
        }

        .country-stats-close {
            background: none;
            border: none;
            color: #888;
            font-size: 22px;
            cursor: pointer;
            padding: 0;
            line-height: 1;
            transition: color 0.2s;
        }

        .country-stats-close:hover {
            color: #fff;
        }

        .country-stats-search {
            width: 100%;
            padding: 10px 12px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            color: #fff;
            font-size: 14px;
            margin-bottom: 15px;
            outline: none;
            transition: border-color 0.2s;
        }

        .country-stats-search:focus {
            border-color: rgba(0, 212, 255, 0.5);
        }

        .country-stats-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .country-stat-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            background: rgba(255,255,255,0.03);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .country-stat-item:hover {
            background: rgba(0, 212, 255, 0.1);
        }

        .country-stat-item.no-news {
            opacity: 0.5;
        }

        .country-stat-item .flag {
            font-size: 24px;
        }

        .country-stat-item .info {
            flex: 1;
            min-width: 0;
        }

        .country-stat-item .name {
            font-size: 13px;
            color: #fff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .country-stat-item .rss-info {
            font-size: 11px;
            color: #888;
            margin-top: 2px;
        }

        .country-stat-item .rss-info .working {
            color: #4caf50;
        }

        .country-stat-item .rss-info .broken {
            color: #f44336;
        }

        .country-stat-item .news-count {
            font-size: 14px;
            font-weight: 600;
            color: #00d4ff;
            min-width: 30px;
            text-align: right;
        }

        .country-stat-item .news-count.zero {
            color: #666;
        }

        .country-stat-item .arrow {
            color: #666;
            font-size: 12px;
            margin-left: 8px;
            transition: transform 0.2s;
        }

        .country-stat-item.expanded .arrow {
            transform: rotate(90deg);
        }

        .source-list {
            display: none;
            padding: 0 12px 10px 48px;
            margin-bottom: 8px;
        }

        .source-list.visible {
            display: block;
        }

        .source-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 0;
            font-size: 12px;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }

        .source-item:last-child {
            border-bottom: none;
        }

        .source-item .status {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .source-item .status.healthy {
            background: #4caf50;
        }

        .source-item .status.unhealthy {
            background: #f44336;
        }

        .source-item .source-name {
            color: #aaa;
            font-size: 11px;
        }

        .source-list .view-news-btn {
            display: inline-block;
            margin-top: 8px;
            padding: 6px 12px;
            background: rgba(0, 212, 255, 0.15);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 6px;
            color: #00d4ff;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .source-list .view-news-btn:hover {
            background: rgba(0, 212, 255, 0.25);
        }

        /* Tablet */
        @media (max-width: 1200px) {
            .top-news-panel {
                width: 280px;
            }
        }

        /* Mobile hamburger menu toggle — hidden on desktop */
        .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 5px;
            width: 44px;
            height: 44px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            flex-shrink: 0;
            z-index: 10;
        }
        .mobile-menu-toggle span {
            display: block;
            width: 22px;
            height: 2px;
            background: #fff;
            border-radius: 2px;
            transition: all 0.3s ease;
        }
        .mobile-menu-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }
        .mobile-menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }
        .mobile-menu-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }
        .mobile-active-mode {
            display: none;
            color: #00d4ff;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            white-space: nowrap;
        }

        /* Body scroll lock for fullscreen panels */
        body.panel-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
        }

        /* Mobile */
        @media (max-width: 768px) {
            /* === 1. HAMBURGER HEADER (48px compact) === */
            .header {
                padding: 0 10px !important;
                flex-direction: row !important;
                gap: 0 !important;
                align-items: center !important;
                min-height: 48px !important;
                max-height: 48px !important;
            }

            .header-left {
                flex-direction: row !important;
                flex-wrap: nowrap !important;
                gap: 8px !important;
                width: auto !important;
                align-items: center !important;
                min-height: 48px;
            }

            .mobile-menu-toggle {
                display: flex !important;
            }

            .mobile-active-mode {
                display: inline-block !important;
            }

            .home-globe-btn {
                width: 32px;
                height: 32px;
                order: -1;
            }

            .mode-buttons {
                display: none !important;
                position: fixed !important;
                top: 48px !important;
                left: 0 !important;
                right: 0 !important;
                flex-direction: column !important;
                background: rgba(10, 10, 25, 0.97) !important;
                backdrop-filter: blur(20px);
                padding: 8px !important;
                gap: 4px !important;
                z-index: 9500 !important;
                border-bottom: 1px solid rgba(0, 212, 255, 0.2);
                box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
                width: 100% !important;
                border-radius: 0 !important;
            }

            .mode-buttons.mobile-open {
                display: flex !important;
            }

            .mode-btn {
                padding: 12px 16px;
                font-size: 14px;
                flex: 0 0 auto;
                width: 100%;
                text-align: left;
                min-height: 44px;
                border-radius: 8px;
            }

            .mode-btn.active {
                background: rgba(0, 212, 255, 0.15);
                border-left: 3px solid #00d4ff;
            }

            /* === 2. SCROLLABLE FILTER CHIPS === */
            .space-submodes,
            .space-filters,
            .planet-filters,
            .flights-filters,
            .ships-filters,
            .disasters-filters,
            .radio-filters,
            .money-filters,
            .military-filters,
            .stats-categories,
            .economy-filters,
            .stations-filters,
            .resources-filters,
            .economy-sub-filters,
            .infra-filters,
            .culture-filters,
            .sport-filters,
            .population-filters {
                position: fixed !important;
                top: 86px !important;
                left: 0 !important;
                right: 0 !important;
                bottom: auto !important;
                max-width: 100% !important;
                flex-wrap: nowrap !important;
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                padding: 6px 10px !important;
                gap: 6px !important;
                z-index: 200 !important;
                background: rgba(10, 10, 25, 0.95) !important;
                backdrop-filter: blur(15px);
                border-bottom: 1px solid rgba(255, 255, 255, 0.08);
                margin: 0 !important;
            }

            .space-submodes::-webkit-scrollbar,
            .space-filters::-webkit-scrollbar,
            .planet-filters::-webkit-scrollbar,
            .flights-filters::-webkit-scrollbar,
            .ships-filters::-webkit-scrollbar,
            .disasters-filters::-webkit-scrollbar,
            .radio-filters::-webkit-scrollbar,
            .money-filters::-webkit-scrollbar,
            .military-filters::-webkit-scrollbar,
            .stats-categories::-webkit-scrollbar,
            .economy-filters::-webkit-scrollbar,
            .stations-filters::-webkit-scrollbar,
            .resources-filters::-webkit-scrollbar,
            .economy-sub-filters::-webkit-scrollbar,
            .infra-filters::-webkit-scrollbar,
            .culture-filters::-webkit-scrollbar,
            .sport-filters::-webkit-scrollbar,
            .population-filters::-webkit-scrollbar {
                display: none;
            }

            /* When search is hidden, move filters up to right below header */
            body.mob-no-search .space-submodes,
            body.mob-no-search .space-filters,
            body.mob-no-search .planet-filters,
            body.mob-no-search .flights-filters,
            body.mob-no-search .ships-filters,
            body.mob-no-search .disasters-filters,
            body.mob-no-search .radio-filters,
            body.mob-no-search .money-filters,
            body.mob-no-search .military-filters,
            body.mob-no-search .stats-categories,
            body.mob-no-search .economy-filters,
            body.mob-no-search .stations-filters,
            body.mob-no-search .resources-filters,
            body.mob-no-search .economy-sub-filters,
            body.mob-no-search .infra-filters,
            body.mob-no-search .culture-filters,
            body.mob-no-search .sport-filters,
            body.mob-no-search .population-filters {
                top: 50px !important;
            }

            /* Secondary filter rows (sub-filters under categories) — below primary (86px + ~40px row) */
            .economy-filters.visible,
            .stations-filters.visible,
            .resources-filters.visible,
            .economy-sub-filters.visible,
            .infra-filters.visible,
            .culture-filters.visible,
            .sport-filters.visible,
            .population-filters[style*="block"],
            .space-filters.visible {
                top: 130px !important;
            }
            body.mob-no-search .economy-filters.visible,
            body.mob-no-search .stations-filters.visible,
            body.mob-no-search .resources-filters.visible,
            body.mob-no-search .economy-sub-filters.visible,
            body.mob-no-search .infra-filters.visible,
            body.mob-no-search .culture-filters.visible,
            body.mob-no-search .sport-filters.visible,
            body.mob-no-search .population-filters[style*="block"],
            body.mob-no-search .space-filters.visible {
                top: 88px !important;
            }

            .space-submode,
            .space-filter,
            .flights-filter,
            .ships-filter,
            .disaster-filter,
            .radio-genre-btn,
            .money-filter,
            .military-filter,
            .stats-category,
            .economy-filter,
            .station-filter,
            .resource-filter,
            .economy-sub-filter,
            .infra-filter,
            .culture-filter,
            .sport-filter,
            .population-filter {
                white-space: nowrap;
                flex-shrink: 0;
                padding: 8px 14px;
                font-size: 12px;
                min-height: 36px;
            }

            .header .header-right {
                display: none;
            }

            .header .stats {
                position: fixed;
                bottom: 10px;
                left: 10px;
                right: 10px;
                background: rgba(15, 15, 30, 0.95);
                padding: 8px 12px;
                border-radius: 10px;
                font-size: 11px;
                text-align: center;
                backdrop-filter: blur(10px);
                border: 1px solid rgba(255,255,255,0.1);
                z-index: 80;
            }

            /* === 4. SEARCH BELOW HEADER === */
            .search-container {
                position: fixed !important;
                top: 50px !important;
                left: 10px !important;
                right: 10px !important;
                width: auto !important;
                z-index: 195 !important;
            }

            /* Override all desktop top-shifting classes */
            .search-container.filters-active,
            .search-container.stats-filters-active,
            .search-container.resources-filters-active,
            .search-container.economy-filters-active,
            .search-container.radio-mode-active,
            .search-container.search-left {
                top: 50px !important;
                left: 10px !important;
                right: 10px !important;
            }

            /* In radio/tv modes, keep search full-width */
            .search-container.search-left {
                right: 10px !important;
            }

            .search-input {
                height: 36px;
                font-size: 16px; /* Prevents zoom on iOS */
                padding: 8px 12px;
                padding-left: 35px;
            }

            /* Language selector — inside header, lower z-index than filters */
            .lang-selector {
                top: 4px !important;
                right: 10px !important;
                z-index: 9000 !important;
            }

            .lang-current {
                padding: 8px 10px;
                min-height: 36px;
                background: rgba(0, 0, 0, 0.8);
                border-radius: 10px;
                border: 1px solid rgba(255,255,255,0.2);
            }

            .lang-current .lang-name {
                display: none;
            }

            .lang-current .lang-flag {
                font-size: 20px;
            }

            .lang-dropdown {
                right: 0;
                min-width: 140px;
            }

            .top-news-btn {
                position: fixed !important;
                top: 56px !important;
                z-index: 95;
                padding: 8px 10px !important;
                font-size: 10px !important;
                left: 10px !important;
                right: auto !important;
            }

            /* === SKELETON LOADING === */
            @keyframes skeletonShimmer {
                0% { background-position: -200px 0; }
                100% { background-position: 200px 0; }
            }
            .skeleton-item {
                display: flex;
                align-items: center;
                gap: 10px;
                padding: 10px 12px;
            }
            .skeleton-circle {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 75%);
                background-size: 400px 100%;
                animation: skeletonShimmer 1.2s ease-in-out infinite;
                flex-shrink: 0;
            }
            .skeleton-lines {
                flex: 1;
                display: flex;
                flex-direction: column;
                gap: 6px;
            }
            .skeleton-line {
                height: 12px;
                border-radius: 6px;
                background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 75%);
                background-size: 400px 100%;
                animation: skeletonShimmer 1.2s ease-in-out infinite;
            }
            .skeleton-line:nth-child(2) { width: 60%; }
            .skeleton-line:nth-child(3) { width: 40%; }

            /* === MOBILE PANEL BACK BUTTON === */
            .mobile-panel-back {
                display: flex;
                align-items: center;
                gap: 8px;
                padding: 14px 16px;
                color: rgba(255,255,255,0.9);
                font-size: 15px;
                font-weight: 500;
                cursor: pointer;
                border-bottom: 1px solid rgba(255,255,255,0.08);
                -webkit-tap-highlight-color: transparent;
            }
            .mobile-panel-back:active {
                background: rgba(255,255,255,0.05);
            }
            .mobile-panel-back svg {
                opacity: 0.7;
            }

            /* === SAFE AREA INSETS === */
            #status-bar {
                padding-bottom: calc(5px + env(safe-area-inset-bottom)) !important;
            }
            .zoom-controls {
                bottom: calc(12px + env(safe-area-inset-bottom)) !important;
            }
            .daynight-toggle {
                bottom: calc(50px + env(safe-area-inset-bottom)) !important;
            }
            #radio-player {
                bottom: calc(40px + env(safe-area-inset-bottom)) !important;
            }
            .tv-player-container {
                bottom: calc(10px + env(safe-area-inset-bottom)) !important;
            }

            /* === SCROLL SNAP ON FILTERS === */
            .space-submodes,
            .space-filters,
            .planet-filters,
            .flights-filters,
            .disasters-filters,
            .ships-filters,
            .weather-filters,
            .radio-filters,
            .stats-filters,
            .economy-filters,
            .stations-filters,
            .resources-filters,
            .infra-filters,
            .culture-filters,
            .sport-filters,
            .economy-sub-filters,
            .tv-category-tabs {
                scroll-snap-type: x proximity;
                scroll-padding: 10px;
            }
            .space-submode,
            .space-filter,
            .planet-filter,
            .flights-filter,
            .disaster-filter,
            .ships-filter,
            .weather-filter,
            .radio-filter,
            .stats-filter,
            .economy-filter,
            .stations-filter,
            .resources-filter,
            .infra-filter,
            .culture-filter,
            .sport-filter,
            .economy-sub-filter,
            .tv-cat-tab {
                scroll-snap-align: start;
            }

            /* === PLANET INFO PANEL MOBILE === */
            .planet-info-panel {
                right: 0 !important;
                bottom: 0 !important;
                left: 0 !important;
                width: 100% !important;
                max-height: 55vh !important;
                border-radius: 20px 20px 0 0 !important;
            }
            .planet-info-panel .panel-drag-handle {
                display: block !important;
            }
            .planet-hero-name {
                font-size: 20px !important;
            }
            .planet-preview-canvas {
                width: 120px !important;
                height: 120px !important;
            }
            .planet-facts {
                gap: 6px !important;
                padding: 10px 16px !important;
            }
            .planet-label {
                font-size: 10px !important;
            }

            /* === INFO PANEL FONT SIZES === */
            #ship-info-panel,
            #aircraft-info-panel,
            #disaster-info-panel,
            #port-info-panel,
            #airport-info-panel {
                font-size: 14px !important;
            }
            #ship-info-panel h3,
            #aircraft-info-panel h3,
            #disaster-info-panel h3,
            #port-info-panel h3,
            #airport-info-panel h3 {
                font-size: 16px !important;
            }

            /* === 3. FULL-SCREEN PANELS === */
            .currency-panel,
            .crypto-panel,
            .satellite-list-panel,
            .radio-panel,
            .tv-panel,
            .news-panel,
            .top-news-panel,
            .country-stats-panel {
                width: 100vw !important;
                height: 100vh !important;
                max-height: 100vh !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                border-radius: 0 !important;
                z-index: 9500 !important;
                transform: translateX(-110vw);
                transition: transform 0.3s ease;
                overflow-y: auto;
            }

            .currency-panel.open,
            .crypto-panel.open,
            .satellite-list-panel.open,
            .radio-panel.open,
            .tv-panel.open,
            .news-panel.visible,
            .top-news-panel.visible,
            .country-stats-panel.visible {
                transform: translateX(0) !important;
            }

            .tv-player-container {
                bottom: 10px;
                left: 10px;
                right: 10px;
                transform: none;
            }

            .tv-video-wrapper {
                width: 100%;
                height: auto;
                aspect-ratio: 16/9;
            }

            .news-panel-header {
                margin: -15px -15px 25px -15px;
                padding: 12px 15px;
                background: linear-gradient(135deg, rgba(0, 100, 150, 0.9) 0%, rgba(0, 50, 100, 0.95) 100%);
                border-bottom: 2px solid rgba(0, 212, 255, 0.5);
            }

            .news-panel-header h2 {
                font-size: 18px;
                font-weight: 600;
            }

            .news-panel-header .flag {
                font-size: 36px;
            }

            .news-item {
                padding: 12px;
                margin-bottom: 10px;
            }

            .news-item .title {
                font-size: 14px;
            }

            .news-item .description {
                font-size: 12px;
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            /* Close buttons — 44px touch target */
            .close-btn,
            .satellite-list-close,
            .radio-panel-close,
            .tv-panel-close,
            .crypto-panel-close {
                min-width: 44px;
                min-height: 44px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 22px;
            }

            /* === 5. HIDE ADS + FOOTER ON MOBILE === */
            #aads-container,
            #sticky-bottom-ad,
            .site-footer,
            div[id="aads-container"] {
                display: none !important;
                height: 0 !important;
                min-height: 0 !important;
                max-height: 0 !important;
                overflow: hidden !important;
                visibility: hidden !important;
                pointer-events: none !important;
            }

            /* === 6. TOUCH TARGET ENFORCEMENT === */
            button, .btn, select {
                min-height: 36px;
            }

            .zoom-btn {
                width: 44px;
                height: 44px;
                font-size: 20px;
            }

            .ruler-btn {
                width: 44px;
                height: 44px;
            }

            .zoom-controls {
                bottom: 12px !important;
                right: 10px !important;
            }

            #status-bar {
                bottom: 8px !important;
                font-size: 10px !important;
                gap: 6px !important;
                padding: 5px 12px !important;
                white-space: nowrap !important;
                overflow: hidden !important;
                max-width: calc(100vw - 80px) !important;
            }
            .status-update, .status-help { display: none !important; }

            .random-world-btn { top: 6px !important; right: 110px !important; width: 36px !important; height: 36px !important; z-index: 9001 !important; }
            .radio-country-badge { top: 90px !important; right: 10px !important; left: auto !important; z-index: 196 !important; font-size: 12px !important; justify-content: center !important; }

            /* Ship/Flight search containers — hide on mobile */
            .ship-search-container,
            .flight-search-container {
                display: none !important;
            }

            /* === INFO PANELS — full-width on mobile === */
            #tracking-panel,
            #aircraft-info-panel,
            #ship-info-panel,
            #disaster-info-panel,
            #port-info-panel,
            #airport-info-panel,
            #airport-flights-panel {
                left: 0 !important;
                right: 0 !important;
                top: auto !important;
                bottom: 0 !important;
                width: 100vw !important;
                max-width: 100vw !important;
                max-height: 40vh !important;
                border-radius: 16px 16px 0 0 !important;
                z-index: 10000 !important;
                overflow-y: auto !important;
            }

            /* Disaster sidebar → bottom sheet on mobile */
            #disaster-list-panel {
                left: 0 !important;
                right: 0 !important;
                top: auto !important;
                bottom: 0 !important;
                width: 100vw !important;
                max-width: 100vw !important;
                max-height: 45vh !important;
                border-radius: 16px 16px 0 0 !important;
                z-index: 10000 !important;
            }
            #disaster-list-panel.collapsed {
                transform: translateY(100%) !important;
            }
            #disaster-list-panel .disaster-list-header {
                border-radius: 16px 16px 0 0 !important;
            }
            /* Collapsed tab → bottom pill on mobile */
            #disaster-list-tab {
                top: auto !important;
                bottom: 8px !important;
                left: 50% !important;
                transform: translateX(-50%) !important;
                width: 48px !important;
                height: 32px !important;
                border-radius: 16px !important;
                font-size: 14px !important;
                z-index: 9999 !important;
            }
            #disaster-list-tab:hover {
                width: 48px !important;
            }

            /* Tracking panel at top on mobile */
            #tracking-panel {
                top: 48px !important;
                bottom: auto !important;
                max-height: calc(50vh - 48px) !important;
                border-radius: 0 !important;
                overflow-y: auto !important;
            }

            /* Tooltips constrained to viewport */
            .quake-tooltip,
            .disaster-tooltip,
            .flight-tooltip {
                max-width: calc(100vw - 20px) !important;
                left: 10px !important;
                right: 10px !important;
                top: auto !important;
                bottom: 60px !important;
            }

            /* Index info panel mobile */
            .index-info-panel {
                left: 10px !important;
                right: 10px !important;
                width: auto !important;
                max-width: none !important;
            }

            /* Country stats panel above filters */
            .country-stats-panel.visible {
                z-index: 9600 !important;
            }

            .tooltip {
                display: none !important;
            }

            /* Drag handle for swipe-to-dismiss */
            .panel-drag-handle {
                display: block;
                width: 36px;
                height: 4px;
                background: rgba(255,255,255,0.3);
                border-radius: 2px;
                margin: 8px auto 4px;
            }

            /* Flight legend compact on mobile */
            #flight-legend.visible {
                flex-wrap: wrap;
                gap: 6px 12px;
                padding: 6px 12px;
                font-size: 11px;
                max-width: calc(100vw - 20px);
                justify-content: center;
                bottom: 70px;
            }
            #flight-legend .legend-item span {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                max-width: 120px;
            }
        }

        /* Drag handle hidden on desktop */
        .panel-drag-handle {
            display: none;
        }

        /* Landscape mode on mobile */
        @media (max-width: 768px) and (orientation: landscape) {
            .header {
                min-height: 40px !important;
                max-height: 40px !important;
            }
            .search-container {
                top: 42px !important;
            }
            .search-container.filters-active,
            .search-container.stats-filters-active,
            .search-container.resources-filters-active,
            .search-container.economy-filters-active,
            .search-container.radio-mode-active,
            .search-container.search-left {
                top: 42px !important;
            }
            .search-input {
                height: 30px;
            }
            /* Filters row — right below header */
            .space-submodes,
            .space-filters,
            .planet-filters,
            .flights-filters,
            .disasters-filters,
            .ships-filters,
            .weather-filters,
            .radio-filters,
            .stats-filters {
                top: 74px !important;
                padding: 4px 10px !important;
            }
            /* Secondary filters */
            .economy-filters.visible,
            .stations-filters.visible,
            .resources-filters.visible,
            .economy-sub-filters.visible,
            .infra-filters.visible,
            .culture-filters.visible,
            .sport-filters.visible {
                top: 112px !important;
            }
            /* Panels — 50% width in landscape instead of full-screen */
            .tv-panel,
            .radio-panel {
                width: 50vw !important;
                height: 100vh !important;
            }
            /* Info panels — shorter in landscape */
            #tracking-panel,
            #aircraft-info-panel,
            #ship-info-panel,
            #disaster-info-panel,
            #port-info-panel,
            #airport-info-panel {
                max-height: 40vh !important;
            }
            /* Hide back button label in landscape to save space */
            .mobile-panel-back span {
                display: none;
            }
            .mobile-panel-back {
                padding: 10px 16px;
            }
            .zoom-controls {
                bottom: 8px !important;
            }
            #status-bar {
                bottom: 4px !important;
                font-size: 9px !important;
            }
        }

        /* Small phones */
        @media (max-width: 480px) {
            .search-icon {
                left: 10px;
                font-size: 14px;
            }

            .search-results {
                max-height: 250px;
            }

            .search-result-item {
                padding: 10px 12px;
            }

            .search-result-item .flag {
                font-size: 20px;
            }

            .news-item {
                margin-bottom: 8px;
            }

            .news-item .news-image,
            .news-item .news-image-placeholder {
                width: 90px;
                min-width: 90px;
                height: 80px;
            }

            .news-item .news-content {
                padding: 8px 10px;
            }

            .news-item .source {
                font-size: 10px;
            }

            .news-item .title {
                font-size: 12px;
                -webkit-line-clamp: 2;
            }

            .news-item .description {
                display: none;
            }

            .news-item .meta {
                font-size: 10px;
                gap: 8px;
            }

            .top-news-item .news-thumb,
            .top-news-item .news-thumb-placeholder {
                width: 60px;
                min-width: 60px;
                height: 55px;
            }

            .top-news-item .news-info {
                padding: 6px 8px;
            }

            .top-news-item .news-title {
                font-size: 11px;
            }
        }

        /* Landscape mobile */
        @media (max-height: 500px) and (orientation: landscape) {
            .news-item .description {
                display: none;
            }
        }

        /* Timeline slider for stats */
        .timeline-container {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 80%;
            max-width: 600px;
            background: rgba(15, 15, 30, 0.95);
            border-radius: 16px;
            padding: 15px 25px;
            backdrop-filter: blur(15px);
            border: 1px solid rgba(100, 120, 150, 0.3);
            z-index: 500;
            display: none;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }

        .timeline-container.visible {
            display: block;
        }

        .timeline-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .timeline-title {
            color: #00d4ff;
            font-size: 13px;
            font-weight: 600;
        }

        .timeline-year {
            color: #fff;
            font-size: 24px;
            font-weight: 700;
        }

        .timeline-slider {
            width: 100%;
            height: 8px;
            -webkit-appearance: none;
            appearance: none;
            background: linear-gradient(90deg, rgba(100, 100, 100, 0.3) 0%, rgba(100, 100, 100, 0.3) 100%);
            border-radius: 4px;
            outline: none;
            cursor: pointer;
        }

        .timeline-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(0, 212, 255, 0.5);
            transition: transform 0.2s;
        }

        .timeline-slider::-webkit-slider-thumb:hover {
            transform: scale(1.2);
        }

        .timeline-slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 10px rgba(0, 212, 255, 0.5);
        }

        .timeline-labels {
            display: flex;
            justify-content: space-between;
            margin-top: 8px;
            font-size: 10px;
            color: #888;
        }

        .timeline-info {
            text-align: center;
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #ccc;
            font-size: 12px;
        }

        .timeline-info .highlight {
            color: #00d4ff;
            font-weight: 600;
        }

        @media (max-width: 768px) {
            .timeline-container {
                width: 95%;
                bottom: 70px;
                padding: 12px 15px;
            }

            .timeline-year {
                font-size: 20px;
            }
        }

        /* === Ad Slots === */
        .ad-slot {
            background: rgba(0, 0, 0, 0.3);
            border: 1px dashed rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            padding: 10px;
            margin-top: 12px;
            text-align: center;
            min-height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .ad-slot-panel {
            background: rgba(255, 255, 255, 0.05);
            border: 1px dashed rgba(255, 255, 255, 0.15);
            border-radius: 6px;
            padding: 8px;
            margin-top: 10px;
            text-align: center;
            min-height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .ad-slot-label {
            color: rgba(255, 255, 255, 0.3);
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        #sticky-bottom-ad {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 99999;
            text-align: center;
            background: rgba(0, 0, 0, 0.85);
            padding: 8px 0;
            backdrop-filter: blur(10px);
        }
        #sticky-bottom-ad .ad-close {
            position: absolute;
            top: 4px;
            right: 12px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: 4px;
            padding: 4px 10px;
            cursor: pointer;
            color: #fff;
            font-size: 12px;
            transition: background 0.2s;
        }
        #sticky-bottom-ad .ad-close:hover {
            background: rgba(255, 255, 255, 0.3);
        }
        #sticky-bottom-ad.hidden { display: none; }
        @media (max-width: 768px) {
            #sticky-bottom-ad { display: none !important; }
            .ad-slot-panel { min-height: 40px; padding: 6px; }
        }

        /* Mini-bars for dismissed tracking/aircraft panels (mobile only) */
        .tracking-mini-bar, .aircraft-mini-bar {
            display: none;
            position: fixed;
            left: 0; right: 0;
            height: 36px;
            background: rgba(231, 76, 60, 0.9);
            backdrop-filter: blur(10px);
            color: #fff;
            font-size: 12px;
            z-index: 199;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
        }
        .tracking-mini-bar {
            top: 122px;
        }
        .aircraft-mini-bar {
            bottom: 0;
            background: rgba(52, 73, 94, 0.9);
            border-radius: 12px 12px 0 0;
        }
        @media (max-width: 768px) {
            .tracking-mini-bar.visible { display: flex; }
            .aircraft-mini-bar.visible { display: flex; }
        }


/* ========== Footer, Modals & Settings CSS ========== */

        .feedback-modal {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.7);
            z-index: 10000;
            align-items: center;
            justify-content: center;
        }
        .feedback-modal.visible { display: flex; }
        .feedback-modal-content {
            background: rgba(18, 18, 18, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 16px;
            border: 1px solid rgba(255,255,255,0.1);
            padding: 24px;
            max-width: 420px;
            width: 90%;
            color: white;
            box-shadow: 0 8px 32px rgba(0,0,0,0.5);
        }
        .feedback-modal-content h3 {
            margin: 0 0 8px 0;
            font-size: 18px;
        }
        .feedback-modal-close {
            position: absolute;
            top: 12px; right: 16px;
            background: none;
            border: none;
            color: rgba(255,255,255,0.5);
            font-size: 22px;
            cursor: pointer;
        }
        .feedback-modal-content { position: relative; }
    </style>

    <style>
        .site-footer {
            position: fixed;
            bottom: 100px; /* Above A-ADS banner */
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.5);
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 11px;
            color: rgba(255, 255, 255, 0.6);
            display: flex;
            align-items: center;
            gap: 8px;
            z-index: 50;
            backdrop-filter: blur(5px);
        }
        .site-footer a {
            color: rgba(0, 230, 255, 0.8);
            text-decoration: none;
        }
        .site-footer a:hover {
            color: #00e6ff;
        }
        .footer-divider {
            opacity: 0.4;
        }
        .footer-data {
            opacity: 0.5;
            font-size: 10px;
        }
        @media (max-width: 768px) {
            .site-footer {
                display: none !important;
            }
        }

        /* Disclaimer Modal */
        .disclaimer-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 10000;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(5px);
        }
        .disclaimer-modal.visible {
            display: flex;
        }
        .disclaimer-content {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            border: 1px solid rgba(0, 230, 255, 0.3);
            border-radius: 16px;
            padding: 24px;
            max-width: 600px;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }
        .disclaimer-content h3 {
            margin: 0 0 16px 0;
            color: #00e6ff;
            font-size: 18px;
        }
        .disclaimer-text {
            color: rgba(255, 255, 255, 0.85);
            font-size: 13px;
            line-height: 1.6;
        }
        .disclaimer-text p {
            margin: 0 0 12px 0;
        }
        .disclaimer-sources {
            margin-top: 16px;
            padding-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.5);
            font-size: 11px;
        }
        .disclaimer-close {
            position: absolute;
            top: 12px;
            right: 12px;
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.6);
            font-size: 20px;
            cursor: pointer;
            padding: 4px 8px;
        }
        .disclaimer-close:hover {
            color: #ff4444;
        }

        /* Donate Modal */
        .donate-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 100001;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .donate-modal.visible {
            display: flex;
            opacity: 1;
        }
        .donate-content {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            border-radius: 16px;
            padding: 28px;
            max-width: 480px;
            width: 95%;
            max-height: 90vh;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            position: relative;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        }
        .donate-content h3 {
            margin: 0 0 8px 0;
            color: #fff;
            font-size: 22px;
            text-align: center;
        }
        .donate-subtitle {
            color: rgba(255, 255, 255, 0.6);
            text-align: center;
            margin: 0 0 24px 0;
            font-size: 14px;
        }
        .donate-close {
            position: absolute;
            top: 12px;
            right: 12px;
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.5);
            font-size: 28px;
            cursor: pointer;
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s;
        }
        .donate-close:hover {
            color: #ff4444;
            background: rgba(255, 68, 68, 0.1);
        }
        .donate-crypto-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }
        @media (max-width: 500px) {
            .donate-crypto-grid {
                grid-template-columns: 1fr;
            }
        }
        .crypto-qr-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .crypto-qr-item:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }
        .crypto-qr-item:active {
            transform: scale(0.98);
        }
        .crypto-qr-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
            padding: 6px 12px;
            border-radius: 8px;
            width: 100%;
            justify-content: center;
        }
        .crypto-qr-header.btc {
            background: linear-gradient(135deg, #f7931a 0%, #e2820a 100%);
        }
        .crypto-qr-header.eth {
            background: linear-gradient(135deg, #627eea 0%, #4a65d1 100%);
        }
        .crypto-qr-header.usdt {
            background: linear-gradient(135deg, #26a17b 0%, #1a8f6a 100%);
        }
        .crypto-qr-header.ton {
            background: linear-gradient(135deg, #0098EA 0%, #0077CC 100%);
        }
        .crypto-qr-icon {
            font-weight: bold;
            font-size: 12px;
            color: #fff;
        }
        .crypto-qr-name {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.9);
        }
        .crypto-qr-code {
            width: 120px;
            height: 120px;
            border-radius: 8px;
            background: #1a1a2e;
        }
        .crypto-qr-address {
            color: rgba(255, 255, 255, 0.5);
            font-size: 10px;
            font-family: monospace;
            margin-top: 8px;
        }
        .crypto-qr-copy {
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.8);
            padding: 6px 16px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 500;
            margin-top: 8px;
            transition: all 0.2s;
        }
        .crypto-qr-item:hover .crypto-qr-copy {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
        }
        .crypto-qr-copy.copied {
            background: #26a17b;
            color: #fff;
        }
        .donate-thanks {
            text-align: center;
            color: rgba(255, 255, 255, 0.4);
            font-size: 13px;
            margin: 20px 0 0 0;
        }
        .donate-link {
            background: linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b59b6, #ff6b6b);
            background-size: 300% 300%;
            animation: donateGradient 4s ease infinite;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 10px;
            position: relative;
        }
        .donate-link::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b59b6, #ff6b6b);
            background-size: 300% 300%;
            animation: donateGradient 4s ease infinite;
            border-radius: 10px;
            opacity: 0.15;
            z-index: -1;
        }
        .donate-link:hover {
            animation: donateGradient 1.5s ease infinite;
            transform: scale(1.05);
        }
        .donate-link:hover::before {
            opacity: 0.3;
            animation: donateGradient 1.5s ease infinite;
        }
        @keyframes donateGradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* Toast Notifications */
        #toast-container {
            position: fixed;
            top: 80px;
            right: 20px;
            z-index: 10001;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .toast {
            background: rgba(30, 30, 50, 0.95);
            padding: 12px 20px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
            transform: translateX(120%);
            transition: transform 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            border-left: 4px solid #00d4ff;
        }
        .toast.show { transform: translateX(0); }
        .toast-info { border-left-color: #00d4ff; }
        .toast-success { border-left-color: #2ecc71; }
        .toast-warning { border-left-color: #f39c12; }
        .toast-error { border-left-color: #e74c3c; }
        .toast-icon { font-size: 18px; }
        .toast-message { color: #fff; font-size: 13px; }

        /* Status Bar */
        #status-bar {
            position: fixed;
            bottom: 50px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.7);
            padding: 6px 16px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            z-index: 50;
            backdrop-filter: blur(10px);
            font-size: 11px;
            color: rgba(255,255,255,0.7);
        }
        .status-item {
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
        }
        .status-item:hover { color: #fff; }
        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #00d4ff;
        }
        .status-dot.space { background: #9b59b6; }
        .status-dot.money { background: #2ecc71; }
        .status-dot.flights { background: #e74c3c; }
        .status-dot.quakes { background: #f39c12; }
        .status-dot.radio { background: #e91e63; }
        .status-network.offline { color: #e74c3c; }

        /* Keyboard Help Modal */
        .keyboard-help-modal {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10002;
        }
        .keyboard-help-content {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            padding: 25px;
            border-radius: 16px;
            max-width: 400px;
        }
        .keyboard-help-content h3 {
            margin: 0 0 20px;
            text-align: center;
        }
        .keyboard-help-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
        .kb-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
        }
        .kb-item kbd {
            background: rgba(255,255,255,0.1);
            padding: 4px 10px;
            border-radius: 6px;
            font-family: monospace;
            min-width: 30px;
            text-align: center;
        }
        .keyboard-help-close {
            width: 100%;
            margin-top: 20px;
            padding: 12px;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            border: none;
            border-radius: 8px;
            color: #fff;
            font-weight: 600;
            cursor: pointer;
        }

        /* Visited Countries Modal */
        .visited-modal {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10002;
        }
        .visited-modal-content {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            padding: 25px;
            border-radius: 16px;
            max-width: 450px;
            width: 90%;
        }
        .visited-modal-content h3 { margin: 0 0 20px; text-align: center; }
        .visited-progress {
            background: rgba(255,255,255,0.1);
            border-radius: 10px;
            height: 30px;
            position: relative;
            margin-bottom: 15px;
            overflow: hidden;
        }
        .visited-progress-bar {
            height: 100%;
            background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
            border-radius: 10px;
            transition: width 0.5s;
        }
        .visited-progress span {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 12px;
            font-weight: 600;
        }
        .visited-flags {
            font-size: 20px;
            line-height: 1.8;
            text-align: center;
            margin-bottom: 15px;
            max-height: 200px;
            overflow-y: auto;
        }
        .visited-modal-content button {
            width: 100%;
            padding: 12px;
            background: rgba(255,255,255,0.1);
            border: none;
            border-radius: 8px;
            color: #fff;
            cursor: pointer;
        }

        /* Achievement Popup */
        .achievement-popup {
            position: fixed;
            top: 100px;
            left: 50%;
            transform: translateX(-50%) translateY(-20px);
            background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
            padding: 15px 25px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: 15px;
            z-index: 10003;
            opacity: 0;
            transition: all 0.5s ease;
            box-shadow: 0 10px 30px rgba(243, 156, 18, 0.4);
        }
        .achievement-popup.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
        .achievement-icon { font-size: 32px; }
        .achievement-title { font-weight: 700; font-size: 16px; }
        .achievement-desc { font-size: 12px; opacity: 0.9; }

        /* Confetti */
        .confetti {
            position: fixed;
            top: -10px;
            width: 10px;
            height: 10px;
            z-index: 10004;
            animation: confettiFall linear forwards;
        }
        @keyframes confettiFall {
            to { transform: translateY(110vh) rotate(720deg); }
        }

        /* Ripple Effect */
        .mode-btn, .space-filter, .money-filter {
            position: relative;
            overflow: hidden;
        }
        .ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(255,255,255,0.4);
            transform: scale(0);
            animation: rippleAnim 0.6s linear;
            pointer-events: none;
        }
        @keyframes rippleAnim {
            to { transform: scale(4); opacity: 0; }
        }

        /* Zoom Controls */
        .zoom-controls {
            position: fixed;
            bottom: 100px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 5px;
            z-index: 90;
        }
        .share-btn svg { width: 16px; height: 16px; }
        /* Share App Popup */
        .share-app-popup { display: none; position: fixed; inset: 0; z-index: 100001; align-items: center; justify-content: center; }
        .share-app-popup.visible { display: flex; }
        .sap-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
        .sap-card {
            position: relative;
            background: rgba(22, 24, 36, 0.97);
            backdrop-filter: blur(24px);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 16px;
            padding: 20px;
            width: 300px;
            max-width: 90vw;
            box-shadow: 0 12px 48px rgba(0,0,0,0.6);
            animation: sapIn 0.2s ease-out;
        }
        @keyframes sapIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
        .sap-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
        .sap-title { color: #fff; font-size: 16px; font-weight: 600; }
        .sap-close { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 22px; cursor: pointer; padding: 0 4px; line-height: 1; }
        .sap-close:hover { color: #fff; }
        .sap-copy-btn {
            display: flex; align-items: center; justify-content: center; gap: 8px;
            width: 100%; padding: 12px; margin-bottom: 16px;
            background: rgba(0, 200, 255, 0.12); border: 1px solid rgba(0, 200, 255, 0.3);
            border-radius: 10px; color: #00d4ff; font-size: 14px; font-weight: 500;
            cursor: pointer; transition: all 0.2s;
        }
        .sap-copy-btn:hover { background: rgba(0, 200, 255, 0.22); border-color: rgba(0, 200, 255, 0.5); }
        .sap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
        .sap-icon-btn {
            display: flex; flex-direction: column; align-items: center; gap: 6px;
            padding: 14px 6px; border-radius: 12px; color: #fff; text-decoration: none;
            font-size: 11px; cursor: pointer; transition: all 0.2s; border: none;
            background: rgba(255,255,255,0.06);
        }
        .sap-icon-btn:hover { transform: translateY(-2px); }
        .sap-ic { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
        .sap-ic svg { width: 24px; height: 24px; }
        .sap-tg { background: rgba(0, 136, 204, 0.2); }
        .sap-tg:hover { background: rgba(0, 136, 204, 0.4); }
        .sap-wa { background: rgba(37, 211, 102, 0.2); }
        .sap-wa:hover { background: rgba(37, 211, 102, 0.4); }
        .sap-x { background: rgba(255, 255, 255, 0.08); }
        .sap-x:hover { background: rgba(255, 255, 255, 0.18); }
        .sap-vk { background: rgba(70, 128, 194, 0.2); }
        .sap-vk:hover { background: rgba(70, 128, 194, 0.4); }
        .sap-reddit { background: rgba(255, 69, 0, 0.2); }
        .sap-reddit:hover { background: rgba(255, 69, 0, 0.4); }
        .sap-fb { background: rgba(24, 119, 242, 0.2); }
        .sap-fb:hover { background: rgba(24, 119, 242, 0.4); }

        .zoom-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(0,0,0,0.6);
            border: 1px solid rgba(255,255,255,0.2);
            color: #fff;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        .zoom-btn:hover {
            background: rgba(0,212,255,0.3);
            border-color: rgba(0,212,255,0.5);
        }

        /* Ruler / Distance Measure */
        .ruler-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(0,0,0,0.6);
            border: 1px solid rgba(255,255,255,0.2);
            color: #fff;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            margin-top: 5px;
        }
        .ruler-btn:hover {
            background: rgba(0,212,255,0.3);
            border-color: rgba(0,212,255,0.5);
        }
        .ruler-btn.active {
            background: rgba(0,212,255,0.5);
            border-color: rgba(0,212,255,0.8);
            box-shadow: 0 0 10px rgba(0,212,255,0.5);
        }
        .ruler-panel {
            position: fixed;
            bottom: 200px;
            right: 20px;
            background: rgba(20, 30, 40, 0.95);
            border: 1px solid rgba(0,212,255,0.3);
            border-radius: 12px;
            padding: 12px 16px;
            color: #fff;
            font-size: 13px;
            z-index: 100;
            min-width: 180px;
            display: none;
        }
        .ruler-panel.visible {
            display: block;
        }
        .ruler-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .ruler-panel-title {
            font-weight: bold;
            font-size: 14px;
            color: #00d4ff;
        }
        .ruler-panel-close {
            background: none;
            border: none;
            color: rgba(255,255,255,0.6);
            font-size: 18px;
            cursor: pointer;
            padding: 0;
            line-height: 1;
        }
        .ruler-panel-close:hover {
            color: #fff;
        }
        .ruler-distance {
            font-size: 24px;
            font-weight: bold;
            text-align: center;
            margin: 10px 0;
            color: #00d4ff;
        }
        .ruler-points {
            font-size: 11px;
            color: rgba(255,255,255,0.7);
        }
        .ruler-point {
            display: flex;
            align-items: center;
            gap: 6px;
            margin: 4px 0;
        }
        .ruler-point-marker {
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }
        .ruler-point-marker.start {
            background: #00ff88;
        }
        .ruler-point-marker.end {
            background: #ff4444;
        }
        .ruler-hint {
            font-size: 11px;
            color: rgba(255,255,255,0.5);
            text-align: center;
            margin-top: 8px;
        }
        .ruler-clear-btn {
            width: 100%;
            margin-top: 10px;
            padding: 6px 12px;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 6px;
            color: #fff;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .ruler-clear-btn:hover {
            background: rgba(255,68,68,0.3);
            border-color: rgba(255,68,68,0.5);
        }

        /* Day/Night Toggle */
        .daynight-toggle {
            position: fixed;
            top: 180px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 5px;
            z-index: 115;
        }
        /* Random World TV Button */
        .random-world-btn {
            position: fixed;
            top: 130px;
            right: 20px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(0,0,0,0.6);
            border: 1px solid;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 90;
            animation: diceColorCycle 3s linear infinite;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .random-world-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 0 14px rgba(255,255,255,0.25);
        }
        .random-world-btn:active {
            transform: scale(0.9) rotate(180deg);
        }
        @keyframes diceColorCycle {
            0%   { border-color: #e74c3c; color: #e74c3c; }
            16%  { border-color: #f39c12; color: #f39c12; }
            33%  { border-color: #2ecc71; color: #2ecc71; }
            50%  { border-color: #3498db; color: #3498db; }
            66%  { border-color: #9b59b6; color: #9b59b6; }
            83%  { border-color: #e91e63; color: #e91e63; }
            100% { border-color: #e74c3c; color: #eee; }
        }
        .daynight-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(0,0,0,0.6);
            border: 1px solid rgba(255,255,255,0.2);
            color: #888;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        .daynight-btn:hover {
            background: rgba(255,200,0,0.2);
            border-color: rgba(255,200,0,0.4);
        }
        .daynight-btn.active {
            background: linear-gradient(135deg, rgba(255,200,0,0.5) 0%, rgba(100,100,200,0.5) 100%);
            border-color: rgba(255,200,0,0.8);
            color: #fff;
        }
        .daynight-btn .moon-icon { display: none; }
        .daynight-btn.active .sun-icon { display: none; }
        .daynight-btn.active .moon-icon { display: block; }

        @media (max-width: 768px) {
            .daynight-toggle {
                top: auto !important;
                bottom: 50px !important;
                left: 10px !important;
                right: auto !important;
            }
        }
    </style>

/* ========== Cookie Banner CSS ========== */

        .cookie-banner {
            position: fixed;
            bottom: 120px; /* Above A-ADS banner */
            left: 20px;
            right: 20px;
            max-width: 480px;
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
            z-index: 100001;
            display: none;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }
        .cookie-banner.visible { display: block; animation: slideUp 0.3s ease; }
        @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
        .cookie-banner-content { padding: 24px; }
        .cookie-banner-icon { font-size: 32px; margin-bottom: 12px; }
        .cookie-banner-title { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: #1a1a2e; }
        .cookie-banner-desc { margin: 0 0 20px; font-size: 14px; line-height: 1.5; color: #666; }
        .cookie-banner-actions { display: flex; flex-direction: column; gap: 10px; }
        .cookie-btn-primary {
            width: 100%; padding: 14px 20px; border: none; border-radius: 8px;
            background: #3b82f6; color: #fff; font-size: 14px; font-weight: 600;
            cursor: pointer; transition: background 0.2s;
        }
        .cookie-btn-primary:hover { background: #2563eb; }
        .cookie-btn-secondary {
            width: 100%; padding: 14px 20px; border: 1px solid #e5e5e5; border-radius: 8px;
            background: #fff; color: #333; font-size: 14px; font-weight: 500;
            cursor: pointer; transition: all 0.2s;
        }
        .cookie-btn-secondary:hover { background: #f5f5f5; border-color: #ccc; }
        .cookie-btn-link {
            background: none; border: none; color: #3b82f6; font-size: 14px;
            cursor: pointer; text-decoration: underline; padding: 8px;
        }
        .cookie-btn-link:hover { color: #2563eb; }

        /* Settings Modal */
        .cookie-settings-modal {
            position: fixed; inset: 0; background: rgba(0,0,0,0.5);
            z-index: 100002; display: none; align-items: center; justify-content: center;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }
        .cookie-settings-modal.visible { display: flex; }
        .cookie-settings-box {
            background: #fff; border-radius: 16px; width: 90%; max-width: 500px;
            max-height: 80vh; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        }
        .cookie-settings-header {
            display: flex; justify-content: space-between; align-items: center;
            padding: 20px 24px; border-bottom: 1px solid #eee;
        }
        .cookie-settings-header h3 { margin: 0; font-size: 18px; color: #1a1a2e; }
        .cookie-settings-close {
            background: none; border: none; font-size: 24px; cursor: pointer;
            color: #999; line-height: 1;
        }
        .cookie-settings-close:hover { color: #333; }
        .cookie-settings-body { padding: 20px 24px; overflow-y: auto; max-height: 50vh; }
        .cookie-category { padding: 16px 0; border-bottom: 1px solid #eee; }
        .cookie-category:last-child { border-bottom: none; }
        .cookie-category-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
        .cookie-category strong { font-size: 14px; color: #1a1a2e; }
        .cookie-category-desc { margin: 4px 0 0; font-size: 13px; color: #666; }
        .cookie-toggle { position: relative; width: 48px; height: 26px; flex-shrink: 0; }
        .cookie-toggle input { opacity: 0; width: 0; height: 0; }
        .cookie-toggle-slider {
            position: absolute; inset: 0; background: #ccc; border-radius: 26px;
            cursor: pointer; transition: 0.3s;
        }
        .cookie-toggle-slider:before {
            content: ''; position: absolute; height: 20px; width: 20px;
            left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s;
        }
        .cookie-toggle input:checked + .cookie-toggle-slider { background: #3b82f6; }
        .cookie-toggle input:checked + .cookie-toggle-slider:before { transform: translateX(22px); }
        .cookie-toggle.disabled .cookie-toggle-slider { background: #3b82f6; opacity: 0.6; cursor: not-allowed; }
        .cookie-settings-footer {
            display: flex; gap: 12px; padding: 20px 24px; border-top: 1px solid #eee;
        }
        .cookie-settings-footer .cookie-btn-secondary,
        .cookie-settings-footer .cookie-btn-primary { flex: 1; }

        @media (max-width: 500px) {
            .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
            .cookie-banner-content { padding: 20px; }
        }

        /* SEO City Marker — pulsing ring for cities from SEO pages */
        .seo-city-marker {
            position: absolute;
            pointer-events: none;
            z-index: 100;
            transform: translate(-50%, -50%);
        }
        .seo-city-ring {
            position: absolute;
            top: 50%; left: 50%;
            width: 60px; height: 60px;
            transform: translate(-50%, -50%);
            border: 2px solid rgba(0, 212, 255, 0.8);
            border-radius: 50%;
            animation: seoCityPulse 2s ease-out infinite;
        }
        .seo-city-ring-2 {
            animation-delay: 0.8s;
        }
        .seo-city-dot {
            position: absolute;
            top: 50%; left: 50%;
            width: 10px; height: 10px;
            transform: translate(-50%, -50%);
            background: #00d4ff;
            border-radius: 50%;
            box-shadow: 0 0 12px 4px rgba(0, 212, 255, 0.6);
        }
        .seo-city-label {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, 24px);
            white-space: nowrap;
            font-size: 13px;
            font-weight: 600;
            color: #fff;
            text-shadow: 0 1px 6px rgba(0,0,0,0.8), 0 0 12px rgba(0, 212, 255, 0.5);
            letter-spacing: 0.5px;
        }
        @keyframes seoCityPulse {
            0% { width: 10px; height: 10px; opacity: 1; border-width: 3px; }
            100% { width: 80px; height: 80px; opacity: 0; border-width: 1px; }
        }
