        :root {
            --bg-primary: #ffffff;
            --bg-secondary: #fafbfc;
            --bg-tertiary: #f3f4f6;
            --bg-card: #ffffff;
            --text-primary: #0f1419;
            --text-secondary: #536471;
            --text-tertiary: #8b98a5;
            --border-light: #eff3f4;
            --border-medium: #e1e8ed;
            --accent-blue: #1d9bf0;
            --accent-green: #00ba7c;
            --accent-red: #f4212e;
            --accent-orange: #ff6a00;
            --accent-yellow: #ffad1f;
            --accent-purple: #7856ff;
            --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
            --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
            --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }

        [data-theme="dark"] {
            --bg-primary: #000000;
            --bg-secondary: #16181c;
            --bg-tertiary: #1e2328;
            --bg-card: #16181c;
            --text-primary: #e7e9ea;
            --text-secondary: #a8b3c0;
            --text-tertiary: #71767b;
            --border-light: #2f3336;
            --border-medium: #3e4347;
            --shadow-soft: 0 1px 3px rgba(255, 255, 255, 0.02);
            --shadow-medium: 0 4px 6px -1px rgba(255, 255, 255, 0.03);
            --shadow-large: 0 20px 25px -5px rgba(255, 255, 255, 0.04);
        }

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

        body {
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg-secondary);
            color: var(--text-primary);
            min-height: 100vh;
            font-size: 15px;
            line-height: 1.5;
            transition: background 0.3s ease, color 0.3s ease;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .navbar {
            background: var(--bg-primary);
            border-bottom: 1px solid var(--border-light);
            position: sticky;
            top: 0;
            z-index: 1000;
            backdrop-filter: blur(12px);
            box-shadow: var(--shadow-soft);
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 72px;
            gap: 16px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 14px;
            font-size: 20px;
            font-weight: 800;
            color: var(--text-primary);
            letter-spacing: -0.5px;
            flex-shrink: 0;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            box-shadow: 0 4px 12px rgba(29, 155, 240, 0.3);
        }

        .nav-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .live-badge {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 18px;
            background: linear-gradient(135deg, rgba(0, 186, 124, 0.1) 0%, rgba(0, 186, 124, 0.05) 100%);
            border: 1.5px solid var(--accent-green);
            border-radius: 24px;
            font-size: 13px;
            font-weight: 700;
            color: var(--accent-green);
            letter-spacing: 0.5px;
        }

        .live-pulse {
            width: 10px;
            height: 10px;
            background: var(--accent-green);
            border-radius: 50%;
            animation: pulse-ring 2s ease-out infinite;
        }

        @keyframes pulse-ring {
            0% { box-shadow: 0 0 0 0 rgba(0, 186, 124, 0.7); }
            70% { box-shadow: 0 0 0 12px rgba(0, 186, 124, 0); }
            100% { box-shadow: 0 0 0 0 rgba(0, 186, 124, 0); }
        }

        .theme-switch {
            width: 44px;
            height: 44px;
            border: 1.5px solid var(--border-medium);
            background: var(--bg-card);
            color: var(--text-primary);
            border-radius: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            font-size: 18px;
            flex-shrink: 0;
        }

        .theme-switch:hover {
            background: var(--bg-tertiary);
            border-color: var(--accent-blue);
            transform: scale(1.05);
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 32px 20px;
        }

        .page-header {
            text-align: center;
            margin-bottom: 48px;
        }

        .page-title {
            font-size: clamp(32px, 5vw, 56px);
            font-weight: 800;
            margin-bottom: 16px;
            background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -2px;
            line-height: 1.1;
        }

        .page-subtitle {
            font-size: clamp(14px, 2vw, 18px);
            color: var(--text-secondary);
            max-width: 700px;
            margin: 0 auto;
            font-weight: 500;
            line-height: 1.6;
        }

        .search-section {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: 20px;
            padding: 24px;
            margin-bottom: 28px;
            box-shadow: var(--shadow-medium);
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }

        .search-wrapper {
            position: relative;
            margin-bottom: 18px;
        }

        .search-input {
            width: 100%;
            padding: 14px 50px 14px 18px;
            font-size: 15px;
            border: 2px solid var(--border-medium);
            border-radius: 12px;
            background: var(--bg-secondary);
            color: var(--text-primary);
            font-family: 'Plus Jakarta Sans', sans-serif;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--accent-blue);
            background: var(--bg-card);
        }

        .search-icon {
            position: absolute;
            right: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-tertiary);
            font-size: 16px;
        }

        .search-suggestions {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--bg-card);
            border: 2px solid var(--accent-blue);
            border-radius: 12px;
            margin-top: 8px;
            max-height: 400px;
            overflow-y: auto;
            box-shadow: var(--shadow-large);
            z-index: 1000;
            display: none;
        }

        .search-suggestions.active {
            display: block;
        }

        .suggestion-item {
            padding: 14px 18px;
            cursor: pointer;
            border-bottom: 1px solid var(--border-light);
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 12px;
        }

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

        .suggestion-item:hover {
            background: var(--bg-secondary);
        }

        .suggestion-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
            flex-shrink: 0;
        }

        .suggestion-content {
            flex: 1;
        }

        .suggestion-name {
            font-weight: 700;
            color: var(--text-primary);
            font-size: 15px;
            margin-bottom: 2px;
        }

        .suggestion-meta {
            font-size: 12px;
            color: var(--text-tertiary);
            font-weight: 500;
        }

        .suggestion-count {
            font-size: 13px;
            font-weight: 700;
            color: var(--accent-blue);
            background: var(--bg-secondary);
            padding: 4px 10px;
            border-radius: 8px;
        }

        .city-tags-wrapper {
            text-align: center;
        }

        .city-tags-label {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: block;
            margin-bottom: 12px;
        }

        .city-tags {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .city-tag {
            padding: 8px 16px;
            background: var(--bg-tertiary);
            border: 1.5px solid var(--border-light);
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-block;
        }

        .city-tag:hover {
            background: var(--accent-blue);
            color: white;
            border-color: var(--accent-blue);
            transform: translateY(-2px);
        }

        .info-banner {
            background: linear-gradient(135deg, rgba(29, 155, 240, 0.08) 0%, rgba(120, 86, 255, 0.08) 100%);
            border: 1.5px solid rgba(29, 155, 240, 0.2);
            border-radius: 16px;
            padding: 20px 24px;
            margin-bottom: 32px;
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        .info-banner-icon {
            width: 48px;
            height: 48px;
            background: var(--accent-blue);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 22px;
            flex-shrink: 0;
        }

        .info-banner-content {
            flex: 1;
            min-width: 200px;
        }

        .info-banner-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .info-banner-text {
            font-size: 14px;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .stats-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 24px;
            margin-bottom: 32px;
        }

        .stat-card {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: 20px;
            padding: 28px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-soft);
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .stat-card:hover {
            border-color: var(--border-medium);
            transform: translateY(-4px);
            box-shadow: var(--shadow-large);
        }

        .stat-card:hover::before {
            opacity: 1;
        }

        .stat-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 20px;
        }

        .stat-label {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .stat-icon {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
        }

        .stat-value {
            font-size: 44px;
            font-weight: 800;
            color: var(--text-primary);
            line-height: 1;
            margin-bottom: 12px;
            letter-spacing: -1px;
        }

        .stat-change {
            font-size: 13px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 8px;
        }

        .stat-change.up {
            background: rgba(244, 33, 46, 0.1);
            color: var(--accent-red);
        }

        .stat-change.down {
            background: rgba(0, 186, 124, 0.1);
            color: var(--accent-green);
        }

        .stat-change.neutral {
            background: var(--bg-tertiary);
            color: var(--text-secondary);
        }

        .icon-blue { background: linear-gradient(135deg, rgba(29, 155, 240, 0.15), rgba(120, 86, 255, 0.15)); color: var(--accent-blue); }
        .icon-red { background: linear-gradient(135deg, rgba(244, 33, 46, 0.15), rgba(255, 106, 0, 0.15)); color: var(--accent-red); }
        .icon-green { background: linear-gradient(135deg, rgba(0, 186, 124, 0.15), rgba(29, 155, 240, 0.15)); color: var(--accent-green); }
        .icon-yellow { background: linear-gradient(135deg, rgba(255, 173, 31, 0.15), rgba(255, 106, 0, 0.15)); color: var(--accent-yellow); }

        .main-content {
            display: grid;
            grid-template-columns: 1fr 420px;
            gap: 32px;
            margin-bottom: 32px;
        }

        .events-panel {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: 24px;
            overflow: hidden;
            box-shadow: var(--shadow-medium);
        }

        .panel-header {
            padding: 28px 32px;
            border-bottom: 1px solid var(--border-light);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
        }

        .panel-title {
            font-size: 22px;
            font-weight: 800;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 12px;
            letter-spacing: -0.5px;
        }

        .filter-chips {
            display: flex;
            gap: 8px;
            flex-wrap: nowrap;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE/Edge */
        }

        .filter-chips::-webkit-scrollbar {
            display: none; /* Chrome/Safari */
        }

        .filter-chip {
            padding: 10px 18px;
            background: var(--bg-tertiary);
            border: 1.5px solid transparent;
            color: var(--text-secondary);
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            border-radius: 12px;
            transition: all 0.2s ease;
            font-family: 'Plus Jakarta Sans', sans-serif;
            flex-shrink: 0;
            white-space: nowrap;
        }

        .filter-chip:hover {
            background: var(--bg-secondary);
        }

        .filter-chip.active {
            background: var(--accent-blue);
            color: white;
            border-color: var(--accent-blue);
        }

        .events-container {
            max-height: 900px;
            overflow-y: auto;
        }

        .events-container::-webkit-scrollbar {
            width: 10px;
        }

        .events-container::-webkit-scrollbar-track {
            background: var(--bg-secondary);
        }

        .events-container::-webkit-scrollbar-thumb {
            background: var(--border-medium);
            border-radius: 5px;
        }

        .events-container::-webkit-scrollbar-thumb:hover {
            background: var(--text-tertiary);
        }

        .event-card {
            padding: 24px 32px;
            border-bottom: 1px solid var(--border-light);
            display: grid;
            grid-template-columns: auto 1fr auto;
            gap: 20px;
            align-items: center;
            transition: all 0.2s ease;
            cursor: pointer;
            position: relative;
        }

        .event-card::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 3px;
            background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple));
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .event-card:hover {
            background: var(--bg-secondary);
        }

        .event-card:hover::before {
            opacity: 1;
        }

        .magnitude-display {
            min-width: 68px;
            height: 68px;
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            border: 2px solid;
            position: relative;
            overflow: hidden;
        }

        .magnitude-display::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .event-card:hover .magnitude-display::before {
            opacity: 1;
        }

        .magnitude-number {
            font-size: 26px;
            line-height: 1;
        }

        .magnitude-unit {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: 2px;
            opacity: 0.9;
            font-weight: 700;
        }

        .mag-level-1, .mag-level-2 { background: rgba(0, 186, 124, 0.1); border-color: var(--accent-green); color: var(--accent-green); }
        .mag-level-3 { background: rgba(132, 204, 22, 0.1); border-color: #84cc16; color: #84cc16; }
        .mag-level-4 { background: rgba(255, 173, 31, 0.1); border-color: var(--accent-yellow); color: var(--accent-yellow); }
        .mag-level-5 { background: rgba(255, 106, 0, 0.1); border-color: var(--accent-orange); color: var(--accent-orange); }
        .mag-level-6 { background: rgba(244, 33, 46, 0.1); border-color: var(--accent-red); color: var(--accent-red); }

        .event-data {
            flex: 1;
            min-width: 0;
        }

        .event-location {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .source-tag {
            padding: 4px 10px;
            background: linear-gradient(135deg, rgba(29, 155, 240, 0.1), rgba(120, 86, 255, 0.1));
            border: 1px solid rgba(29, 155, 240, 0.3);
            border-radius: 6px;
            font-size: 11px;
            font-weight: 800;
            color: var(--accent-blue);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .source-tag.afad {
            background: linear-gradient(135deg, rgba(244, 33, 46, 0.1), rgba(255, 106, 0, 0.1));
            border-color: rgba(244, 33, 46, 0.3);
            color: var(--accent-red);
        }

        .event-meta {
            display: flex;
            gap: 16px;
            font-size: 13px;
            color: var(--text-secondary);
            flex-wrap: wrap;
            font-weight: 500;
        }

        .event-meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .event-meta-item i {
            color: var(--text-tertiary);
            font-size: 12px;
        }

        .event-timestamp {
            text-align: right;
        }

        .event-time-relative {
            font-size: 14px;
            font-weight: 700;
            color: var(--accent-blue);
            margin-bottom: 4px;
        }

        .event-time-exact {
            font-size: 12px;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .sidebar-panel {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .chart-card {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: 24px;
            padding: 28px;
            box-shadow: var(--shadow-medium);
        }

        .chart-header {
            margin-bottom: 24px;
        }

        .chart-title {
            font-size: 18px;
            font-weight: 800;
            color: var(--text-primary);
            margin-bottom: 6px;
            letter-spacing: -0.3px;
        }

        .chart-subtitle {
            font-size: 13px;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .chart-wrapper {
            position: relative;
            height: 220px;
        }

        .info-section {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: 24px;
            padding: 48px;
            margin: 32px 0;
            box-shadow: var(--shadow-medium);
        }

        .info-title {
            font-size: 36px;
            font-weight: 800;
            margin-bottom: 24px;
            color: var(--text-primary);
            letter-spacing: -1px;
        }

        .info-subtitle {
            font-size: 24px;
            font-weight: 700;
            margin: 36px 0 16px;
            color: var(--text-primary);
            letter-spacing: -0.5px;
        }

        .info-text {
            font-size: 16px;
            line-height: 1.8;
            color: var(--text-secondary);
            margin-bottom: 16px;
            font-weight: 400;
        }

        .info-list {
            list-style: none;
            padding: 0;
            margin: 20px 0;
        }

        .info-list li {
            padding: 14px 0;
            padding-left: 36px;
            position: relative;
            font-size: 16px;
            color: var(--text-secondary);
            line-height: 1.6;
            font-weight: 500;
        }

        .info-list li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 18px;
            width: 20px;
            height: 20px;
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
            border-radius: 6px;
        }

        .info-list li::after {
            content: "✓";
            position: absolute;
            left: 5px;
            top: 16px;
            color: white;
            font-weight: 700;
            font-size: 12px;
        }

        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.75);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(8px);
            animation: fadeIn 0.3s ease;
            padding: 20px;
        }

        .modal-overlay.active {
            display: flex;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-box {
            background: var(--bg-card);
            border-radius: 28px;
            max-width: 1000px;
            width: 100%;
            max-height: 92vh;
            overflow-y: auto;
            box-shadow: var(--shadow-large);
            border: 1px solid var(--border-light);
            animation: slideUp 0.4s ease;
        }

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

        .modal-top {
            padding: 32px;
            border-bottom: 1px solid var(--border-light);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-heading {
            font-size: 24px;
            font-weight: 800;
            color: var(--text-primary);
            letter-spacing: -0.5px;
        }

        .modal-close-btn {
            width: 44px;
            height: 44px;
            border: 1.5px solid var(--border-medium);
            background: var(--bg-tertiary);
            color: var(--text-primary);
            border-radius: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            transition: all 0.2s ease;
        }

        .modal-close-btn:hover {
            background: var(--border-light);
            transform: scale(1.05);
        }

        .modal-content {
            padding: 32px;
        }

        .detail-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 32px;
        }

        .detail-box {
            background: var(--bg-secondary);
            padding: 24px;
            border-radius: 16px;
            border: 1px solid var(--border-light);
        }

        .detail-label {
            font-size: 12px;
            font-weight: 800;
            color: var(--text-tertiary);
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .detail-value {
            font-size: 24px;
            font-weight: 800;
            color: var(--text-primary);
            letter-spacing: -0.5px;
        }

        .map-wrapper {
            width: 100%;
            height: 450px;
            border-radius: 20px;
            overflow: hidden;
            border: 1px solid var(--border-light);
            margin-top: 32px;
            background: var(--bg-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .map-placeholder-content {
            text-align: center;
        }

        .map-placeholder-icon {
            font-size: 48px;
            color: var(--text-tertiary);
            margin-bottom: 12px;
        }

        .map-placeholder-text {
            font-size: 15px;
            color: var(--text-secondary);
            font-weight: 600;
        }

        .footer-section {
            margin-top: 64px;
            padding: 48px 32px;
            text-align: center;
            border-top: 1px solid var(--border-light);
            background: var(--bg-card);
        }

        .footer-text {
            font-size: 15px;
            color: var(--text-secondary);
            margin-bottom: 20px;
            font-weight: 500;
        }

        .footer-nav {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin: 28px 0;
            flex-wrap: wrap;
        }

        .footer-link {
            color: var(--accent-blue);
            text-decoration: none;
            transition: color 0.2s ease;
            font-weight: 600;
            font-size: 15px;
        }

        .footer-link:hover {
            color: var(--accent-purple);
        }

        @media (max-width: 1200px) {
            .main-content {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .nav-container {
                height: 64px;
                padding: 0 16px;
            }

            .logo {
                font-size: 18px;
            }

            .logo-icon {
                width: 36px;
                height: 36px;
                font-size: 18px;
            }

            .live-badge {
                padding: 8px 14px;
                font-size: 12px;
            }

            .theme-switch {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }

            .container {
                padding: 24px 16px;
            }

            .page-header {
                margin-bottom: 32px;
            }

            .search-section {
                padding: 20px;
                margin-bottom: 24px;
            }

            .search-input {
                padding: 12px 44px 12px 16px;
                font-size: 14px;
            }

            .search-icon {
                right: 16px;
                font-size: 15px;
            }

            .city-tag {
                padding: 7px 14px;
                font-size: 12px;
            }

            .info-banner {
                padding: 18px 20px;
            }

            .info-banner-icon {
                width: 40px;
                height: 40px;
                font-size: 18px;
            }

            .stats-row {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .stat-card {
                padding: 24px;
            }

            .stat-value {
                font-size: 36px;
            }

            .panel-header {
                padding: 24px;
            }

            .panel-title {
                font-size: 20px;
            }

            .event-card {
                grid-template-columns: auto 1fr;
                gap: 16px;
                padding: 20px 24px;
            }

            .event-timestamp {
                grid-column: 2;
                text-align: left;
                margin-top: 8px;
            }

            .magnitude-display {
                min-width: 60px;
                height: 60px;
            }

            .magnitude-number {
                font-size: 24px;
            }

            .event-location {
                font-size: 15px;
            }

            .chart-card {
                padding: 24px;
            }

            .chart-wrapper {
                height: 200px;
            }

            .info-section {
                padding: 32px 24px;
            }

            .info-title {
                font-size: 28px;
            }

            .info-subtitle {
                font-size: 20px;
            }

            .modal-box {
                border-radius: 20px;
            }

            .modal-top {
                padding: 24px;
            }

            .modal-heading {
                font-size: 20px;
            }

            .modal-content {
                padding: 24px;
            }

            .detail-grid {
                grid-template-columns: 1fr;
            }

            .map-wrapper {
                height: 300px;
            }

            .footer-section {
                padding: 40px 20px;
            }

            .footer-nav {
                gap: 28px;
            }
        }

        @media (max-width: 480px) {
            .nav-container {
                height: 60px;
                padding: 0 12px;
            }

            .logo {
                font-size: 16px;
                gap: 10px;
            }

            .logo-icon {
                width: 36px;
                height: 36px;
                font-size: 18px;
            }

            .live-badge {
                padding: 6px 12px;
                font-size: 11px;
                gap: 6px;
            }

            .live-badge span {
                display: none; /* "CANLI" yazısını gizle, sadece yeşil nokta kalsın */
            }

            .live-pulse {
                width: 8px;
                height: 8px;
            }

            .theme-switch {
                width: 38px;
                height: 38px;
                font-size: 15px;
            }

            .nav-right {
                gap: 8px;
            }

            .stat-value {
                font-size: 32px;
            }

            /* Chart'ları mobilde küçült */
            .chart-card {
                padding: 14px;
                margin-bottom: 14px;
                border-radius: 18px;
            }

            .chart-wrapper {
                height: 140px; /* Mobilde daha küçük */
            }

            .chart-header {
                margin-bottom: 12px;
            }

            .chart-title {
                font-size: 15px;
            }

            .chart-subtitle {
                font-size: 11px;
            }

            .sidebar-panel {
                gap: 16px; /* 24px → 16px */
            }

            .page-header {
                padding: 20px 16px; /* Daha kompakt */
            }

            .page-title {
                font-size: 24px;
            }

            .page-subtitle {
                font-size: 13px;
            }

            .search-section {
                padding: 16px; /* 20px → 16px */
                margin-bottom: 16px; /* 24px → 16px */
            }

            /* Mobil deprem listesi optimizasyonu */
            .event-card {
                padding: 14px 12px;
                gap: 12px;
                grid-template-columns: auto 1fr;
            }

            .magnitude-display {
                min-width: 56px;
                height: 56px;
                border-radius: 12px;
            }

            .magnitude-number {
                font-size: 22px;
            }

            .magnitude-unit {
                font-size: 9px;
            }

            .event-location {
                font-size: 14px;
                margin-bottom: 6px;
                gap: 6px;
            }

            .source-tag {
                font-size: 10px;
                padding: 3px 8px;
            }

            .event-meta {
                gap: 10px;
                font-size: 12px;
            }

            .event-meta-item i {
                font-size: 11px;
            }

            .event-timestamp {
                grid-column: 2;
                text-align: left;
                margin-top: 6px;
            }

            .event-time-relative {
                font-size: 13px;
                margin-bottom: 3px;
            }

            .event-time-exact {
                font-size: 11px;
            }

            /* Events container */
            .events-container {
                max-height: 600px; /* 900px → 600px mobilde */
            }

            /* Filter chips mobil */
            .filter-section-title {
                font-size: 13px;
            }

            .filter-chip {
                padding: 8px 14px;
                font-size: 12px;
            }

            /* Modal responsive için iPhone */
            .modal-overlay {
                padding: 12px;
            }

            .modal-box {
                border-radius: 18px;
                max-height: 95vh;
            }

            .modal-top {
                padding: 18px;
            }

            .modal-heading {
                font-size: 18px;
            }

            .modal-close-btn {
                width: 38px;
                height: 38px;
            }

            .modal-close-btn i {
                font-size: 16px;
            }

            .modal-content {
                padding: 18px;
            }

            .detail-grid {
                gap: 14px;
                margin-bottom: 20px;
            }

            .detail-box {
                padding: 16px;
                border-radius: 14px;
            }

            .detail-label {
                font-size: 11px;
                margin-bottom: 6px;
            }

            .detail-value {
                font-size: 20px;
            }

            .map-wrapper {
                height: 220px;
                border-radius: 14px;
            }

            .map-placeholder-icon i {
                font-size: 36px;
            }

            .map-placeholder-text {
                font-size: 12px;
            }
        }
