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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 300;
}

.speed-display {
    font-size: 4em;
    font-weight: bold;
    color: #667eea;
    margin: 30px 0;
    transition: all 0.3s ease;
}

.speed-unit {
    font-size: 0.4em;
    color: #666;
    margin-left: 10px;
}

.performance-gauge {
    width: 280px;
    margin: 20px auto;
    position: relative;
    display: none;
}

.gauge-arc {
    stroke-width: 15;
    fill: none;
    stroke-linecap: round;
}

.gauge-background {
    stroke: #f0f0f0;
}

.gauge-fill {
    stroke: url(#gaugeGradient);
    stroke-dasharray: 314.16; /* π × 100 */
    stroke-dashoffset: 314.16;
    transition: stroke-dashoffset 1s ease-out;
}


.gauge-label {
    font-size: 14px;
    text-anchor: middle;
    fill: #666;
}

.gauge-markers {
    font-size: 12px;
    fill: #999;
    text-anchor: middle;
}

.performance-rating {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    min-width: 120px;
}

.rating-excellent {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

.rating-good {
    background: linear-gradient(45deg, #8BC34A, #7CB342);
    color: white;
}

.rating-average {
    background: linear-gradient(45deg, #FF9800, #F57C00);
    color: white;
}

.rating-poor {
    background: linear-gradient(45deg, #FF5722, #E64A19);
    color: white;
}

.rating-critical {
    background: linear-gradient(45deg, #F44336, #D32F2F);
    color: white;
}

.test-button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.test-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.test-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
    display: none;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

.results {
    display: none;
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

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

.status {
    margin: 20px 0;
    font-size: 1.1em;
    color: #666;
}

.ad-banner {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    color: #999;
    font-size: 0.9em;
}

.cta-section {
    display: none;
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border-radius: 10px;
    color: white;
}

.cta-button {
    background: white;
    color: #ff6b6b;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .speed-display {
        font-size: 3em;
    }
    
    .performance-gauge {
        width: 240px;
        height: 160px;
    }
}
