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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    padding: 20px;
    color: #e0e0e0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #2a2a2a;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
}

h1 {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 30px;
    text-align: center;
    font-size: 2.5em;
    font-weight: 300;
    letter-spacing: 1px;
}

.loading {
    padding: 60px;
    text-align: center;
    font-size: 1.8em;
    color: #a0a0a0;
    background: #333333;
}

.vpn-section, .speedtest-section {
    padding: 30px;
    border-bottom: 1px solid #404040;
}

.speedtest-section {
    border-bottom: none;
}

h2 {
    color: #e0e0e0;
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: 600;
    border-left: 4px solid #3b82f6;
    padding-left: 15px;
}

.timestamp, .client-ip {
    background: #383838;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 0.95em;
    color: #b0b0b0;
    border-left: 3px solid #ef4444;
}

.client-ip {
    border-left-color: #f59e0b;
}

.speed-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.metric {
    background: linear-gradient(135deg, #383838 0%, #2d2d2d 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #555555;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.label {
    display: block;
    font-size: 1.1em;
    color: #a0a0a0;
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value {
    display: block;
    font-size: 2.2em;
    font-weight: bold;
    color: #e0e0e0;
}

.download {
    color: #22c55e;
}

.upload {
    color: #ef4444;
}

.latency {
    color: #f59e0b;
}

.vpn-section .value {
    color: #a855f7;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 2em;
        padding: 20px;
    }
    
    .vpn-section, .speedtest-section {
        padding: 20px;
    }
    
    .speed-metrics {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .metric {
        padding: 20px;
    }
    
    .value {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6em;
        padding: 15px;
    }
    
    h2 {
        font-size: 1.4em;
    }
    
    .value {
        font-size: 1.6em;
    }
}