/* ====================== INTERNET SPEED TEST - SPEEDTEST.NET INSPIRED ====================== */

.speedtest-container {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.speedtest-wrapper {
    max-width: 820px;
    margin: 0 auto;
}

.speedtest-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.speedtest-heart {
    font-size: 2.8rem;
}

.speedtest-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.speedtest-card {
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

/* Gauge */
.speedtest-gauge-container {
    margin: 2rem 0 3rem;
}

.speed-gauge {
    width: 260px;
    height: 260px;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(#10b981 0deg, #10b981 0deg, #e2e8f0 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gauge-circle {
    width: 200px;
    height: 200px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 4px 15px rgba(0,0,0,0.08);
}

.gauge-value {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.gauge-unit {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Metrics */
.speed-metrics {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.metric {
    text-align: center;
    min-width: 140px;
}

.metric-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 0.95rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text);
}

.metric-unit {
    color: #10b981;
    font-weight: 600;
}

/* Buttons */
.start-test-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 1.1rem 3.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
    transition: all 0.3s;
}

.start-test-btn:hover {
    transform: scale(1.05);
}

.restart-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.speedtest-action-btn {
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 600;
}

/* Progress */
.progress-container {
    margin-top: 2.5rem;
}

.progress-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    width: 0%;
    transition: width 0.6s ease;
}

.progress-text {
    display: block;
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 1.02rem;
}

/* Info Section */
.speedtest-info {
    margin: 4rem 0;
    padding: 3rem 2.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.speedtest-info h2, .speedtest-info h3 {
    color: var(--text);
}

@media (max-width: 768px) {
    .speed-metrics { gap: 2.5rem; }
    .gauge-value { font-size: 3rem; }
}



.go-test-btn {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: white;
    font-size: 3rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}


.speed-gauge{
transition: all .4s ease;
}

.results-panel{
animation: fadeIn .4s ease;
}

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