* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {

    --primary: #1479ff;
    --secondary: #7047ff;
    --cyan: #00b8ff;

    --dark: #14213d;
    --text: #17233d;
    --muted: #66738d;

    --border: rgba(40, 100, 180, 0.12);

    --white: #ffffff;

}


/* ================= BODY ================= */

body {

    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);

    background:

        radial-gradient(
            circle at 10% 10%,
            rgba(84, 157, 255, 0.15),
            transparent 25%
        ),

        radial-gradient(
            circle at 90% 80%,
            rgba(118, 75, 255, 0.12),
            transparent 30%
        ),

        linear-gradient(
            135deg,
            #f4faff,
            #f8f7ff,
            #eef9ff
        );

    overflow-x: hidden;

}


/* ================= DECORATIVE BLOBS ================= */

.blob {

    position: fixed;

    border-radius: 50%;

    filter: blur(70px);

    opacity: 0.35;

    pointer-events: none;

    z-index: -1;

}


.blob-one {

    width: 250px;
    height: 250px;

    background: #8ecbff;

    top: -100px;
    left: -80px;

}


.blob-two {

    width: 300px;
    height: 300px;

    background: #c1a5ff;

    right: -120px;
    bottom: 20%;

}


.blob-three {

    width: 180px;
    height: 180px;

    background: #9eeaff;

    left: 30%;
    bottom: -100px;

}


/* ================= CONTAINER ================= */

.container {

    width: 100%;

    max-width: 1150px;

    margin: auto;

    padding: 30px 20px 20px;

}


/* ================= HEADER ================= */

.header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 35px;

}


.brand {

    display: flex;

    align-items: center;

    gap: 12px;

}


.brand-logo {

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    color: white;

    font-weight: bold;

    font-size: 18px;

    background:
        linear-gradient(
            135deg,
            #16bfff,
            #7146ff
        );

    box-shadow:
        0 8px 20px
        rgba(55, 120, 255, 0.25);

}


.brand-info h3 {

    font-size: 16px;

    margin-bottom: 3px;

}


.brand-info span {

    font-size: 12px;

    color: var(--muted);

}


.top-right {

    display: flex;

    align-items: center;

    gap: 15px;

}


.top-right span {

    font-size: 25px;

}


.top-right p {

    color: var(--muted);

    font-size: 13px;

}


/* ================= HERO ================= */

.hero {

    text-align: center;

    margin-bottom: 35px;

}


.hero h1 {

    font-size: clamp(
        34px,
        5vw,
        58px
    );

    font-weight: 800;

    line-height: 1.1;

    letter-spacing: -2px;

}


.hero h1 span {

    background:

        linear-gradient(
            90deg,
            #1679ff,
            #4b65ff,
            #7c38ee
        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

}


.hero p {

    color: var(--muted);

    font-size: 18px;

    margin-top: 12px;

}


.hero-line {

    width: 90px;

    height: 4px;

    border-radius: 20px;

    margin: 17px auto 0;

    background:
        linear-gradient(
            90deg,
            #00c8ff,
            #6d45ff
        );

}


/* ================= MAIN CARD ================= */

.main-card {

    position: relative;

    padding: 35px 25px 40px;

    text-align: center;

    border: 1px solid
        rgba(255,255,255,0.8);

    border-radius: 28px;

    background:
        rgba(255,255,255,0.75);

    backdrop-filter: blur(20px);

    box-shadow:
        0 25px 70px
        rgba(49, 106, 180, 0.13);

}


/* ================= SERVER ================= */

.server-info {

    position: absolute;

    top: 30px;
    left: 30px;

    display: flex;

    align-items: center;

    gap: 10px;

    text-align: left;

}


.server-icon {

    width: 45px;
    height: 45px;

    display: flex;

    justify-content: center;
    align-items: center;

    border-radius: 13px;

    background: #edf6ff;

    font-size: 20px;

}


.server-info small,
.server-info span {

    display: block;

    color: var(--muted);

    font-size: 11px;

}


.server-info strong {

    display: block;

    margin: 3px 0;

    font-size: 14px;

}


/* ================= STATUS ================= */

.test-status {

    position: absolute;

    top: 30px;
    right: 30px;

    display: flex;

    align-items: center;

    gap: 9px;

    text-align: left;

}


.status-dot {

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #22c982;

    box-shadow:
        0 0 10px
        rgba(34,201,130,0.5);

}


.test-status strong {

    display: block;

    font-size: 13px;

}


.test-status small {

    display: block;

    color: var(--muted);

    font-size: 10px;

    margin-top: 3px;

}


/* ================= SPEEDOMETER ================= */

.speedometer {

    width: 285px;
    height: 285px;

    margin: 30px auto 15px;

    border-radius: 50%;

    display: flex;

    justify-content: center;
    align-items: center;

    background:

        conic-gradient(
            from 220deg,
            #13c8f4 0deg,
            #177bff 0deg,
            #7045ff 0deg,
            #e8eef7 0deg
        );

    transform: rotate(-40deg);

    transition:
        background 0.3s ease;

}


.speedometer-inner {

    width: 245px;
    height: 245px;

    display: flex;

    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #ffffff,
            #f4f8ff
        );

    box-shadow:
        inset 0 0 35px
        rgba(70,120,200,0.08);

    transform: rotate(40deg);

}


/* ================= SPEED NUMBER ================= */

.speed-number {

    display: flex;

    flex-direction: column;

    align-items: center;

}


.speed-number span {

    font-size: 57px;

    font-weight: 800;

    letter-spacing: -2px;

}


.speed-number small {

    color: var(--muted);

    font-size: 17px;

    margin-top: 3px;

}


/* ================= SPEED LABEL ================= */

#speedLabel {

    color: #1479ff;

    letter-spacing: 2px;

    font-size: 14px;

}


/* ================= PROGRESS ================= */

.progress-wrapper {

    width: 60%;

    max-width: 550px;

    margin: 25px auto;

    display: flex;

    align-items: center;

    gap: 10px;

}


.progress-bar {

    height: 7px;

    flex: 1;

    border-radius: 20px;

    overflow: hidden;

    background: #e5ebf5;

}


.progress-bar div {

    width: 0%;

    height: 100%;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            #00c9ff,
            #207cff,
            #7346ff
        );

    transition:
        width 0.25s ease;

}


#progressText {

    color: var(--muted);

    font-size: 12px;

}


/* ================= BUTTON ================= */

.start-btn {

    border: none;

    cursor: pointer;

    padding: 15px 38px;

    border-radius: 50px;

    color: white;

    font-size: 15px;

    font-weight: bold;

    background:
        linear-gradient(
            90deg,
            #10bdf1,
            #176fff,
            #7543ef
        );

    box-shadow:
        0 10px 25px
        rgba(41,111,255,0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

}


.start-btn:hover {

    transform: translateY(-3px);

    box-shadow:
        0 15px 30px
        rgba(41,111,255,0.32);

}


.start-btn:disabled {

    opacity: 0.6;

    cursor: not-allowed;

    transform: none;

}


/* ================= RESULTS ================= */

.results-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;

    margin-top: 20px;

}


.result-card {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 22px;

    border-radius: 20px;

    background:
        rgba(255,255,255,0.82);

    border: 1px solid var(--border);

    box-shadow:
        0 10px 35px
        rgba(55,105,170,0.08);

    transition:
        transform 0.25s ease;

}


.result-card:hover {

    transform:
        translateY(-4px);

}


.result-icon {

    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: flex;

    justify-content: center;
    align-items: center;

    border-radius: 50%;

    font-size: 26px;

    font-weight: bold;

}


.download {

    color: #087cf5;

    background: #e8f5ff;

}


.upload {

    color: #8d43ec;

    background: #f2eaff;

}


.ping {

    color: #00a779;

    background: #e7fff6;

}


.jitter {

    color: #ed8a00;

    background: #fff5df;

}


.result-content {

    text-align: left;

}


.result-content p {

    color: #52627c;

    font-size: 13px;

    margin-bottom: 5px;

}


.result-content h2 {

    font-size: 25px;

}


.result-content h2 small {

    font-size: 12px;

    color: var(--muted);

}


.result-description {

    display: block;

    color: #8792a8;

    font-size: 10px;

    margin-top: 3px;

}


/* ================= NETWORK CARD ================= */

.network-card {

    margin-top: 20px;

    padding: 25px;

    border-radius: 23px;

    background:
        rgba(255,255,255,0.82);

    border: 1px solid var(--border);

    box-shadow:
        0 10px 35px
        rgba(55,105,170,0.08);

}


.section-heading {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

}


.section-heading > div {

    display: flex;

    align-items: center;

    gap: 10px;

}


.heading-icon {

    font-size: 25px;

}


.section-heading h2 {

    font-size: 21px;

}


.complete-status {

    color: #0c9e69;

    font-size: 12px;

    background: #e9fff6;

    padding: 8px 12px;

    border-radius: 30px;

}


/* ================= NETWORK GRID ================= */

.network-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;

}


.network-item {

    display: flex;

    align-items: center;

    gap: 13px;

    padding: 18px;

    border-radius: 16px;

    background: #f8fbff;

    border: 1px solid
        rgba(60,120,200,0.08);

}


.network-icon {

    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eaf4ff;

    font-size: 20px;

}


.network-item span,
.network-item small {

    display: block;

    color: var(--muted);

    font-size: 11px;

}


.network-item strong {

    display: block;

    font-size: 14px;

    margin: 5px 0;

}


/* ================= QUALITY CARD ================= */

.quality-card {

    margin-top: 20px;

    padding: 28px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;

    border-radius: 23px;

    background:
        linear-gradient(
            100deg,
            #effff9,
            #f5ffff,
            #f4faff
        );

    border: 1px solid
        rgba(0,190,150,0.2);

}


.quality-main {

    display: flex;

    align-items: center;

    gap: 20px;

}


.quality-icon {

    width: 80px;
    height: 80px;

    flex-shrink: 0;

    display: flex;

    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #baffea,
            #dffbf4
        );

    font-size: 35px;

}


.quality-info p {

    color: var(--muted);

    font-size: 14px;

    margin-bottom: 5px;

}


.quality-info h2 {

    color: #079c68;

    font-size: 34px;

    margin-bottom: 6px;

}


.quality-info span {

    color: #66738d;

    font-size: 13px;

}


.quality-features {

    display: grid;

    grid-template-columns:
        repeat(2, auto);

    gap: 12px 25px;

}


.quality-features div {

    color: #506078;

    font-size: 13px;

}


.quality-features span {

    display: inline-flex;

    justify-content: center;
    align-items: center;

    width: 20px;
    height: 20px;

    margin-right: 5px;

    border-radius: 50%;

    color: white;

    background: #24c890;

    font-size: 11px;

}


/* ================= FOOTER ================= */

footer {

    display: flex;

    justify-content: space-between;

    padding: 25px 5px 5px;

    color: #7c879c;

    font-size: 11px;

}


footer strong {

    color: #315eaa;

}


/* ================= TABLET ================= */

@media (max-width: 900px) {

    .results-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .network-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .quality-card {

        flex-direction: column;

        align-items: flex-start;

    }

}


/* ================= MOBILE ================= */

@media (max-width: 400px) {

    .container {

        padding:
            20px 12px;

    }


    .header {

        margin-bottom: 25px;

    }


    .brand-info h3 {

        font-size: 14px;

    }


    .top-right p {

        display: none;

    }


    .hero h1 {

        font-size: 30px;

        letter-spacing: -1px;

    }


    .hero p {

        font-size: 14px;

        line-height: 1.5;

    }


    .main-card {

        padding:
            25px 15px 30px;

    }


    .server-info,
    .test-status {

        position: static;

        justify-content: center;

        margin-bottom: 15px;

    }


    .test-status {

        text-align: left;

    }


    .speedometer {

        width: 230px;
        height: 230px;

    }


    .speedometer-inner {

        width: 195px;
        height: 195px;

    }


    .speed-number span {

        font-size: 45px;

    }


    .progress-wrapper {

        width: 90%;

    }


    .results-grid {

        grid-template-columns:
            1fr;

    }


    .network-grid {

        grid-template-columns:
            1fr;

    }


    .section-heading {

        align-items: flex-start;

        gap: 10px;

        flex-direction: column;

    }


    .quality-main {

        align-items: flex-start;

    }


    .quality-icon {

        width: 60px;
        height: 60px;

        font-size: 27px;

    }


    .quality-info h2 {

        font-size: 28px;

    }


    .quality-features {

        grid-template-columns:
            1fr;

    }


    footer {

        flex-direction: column;

        gap: 8px;

        text-align: center;

    }

}