:root {
    --bg: #07131b;
    --panel: #0d1f2a;
    --text: #ffffff;
    --muted: #8fa8b5;
    --gold: #f5a800;
    --green: #72a942;
    --border: rgba(255,255,255,.10);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top, #173748 0%, #07131b 45%, #041016 100%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 30px 15px 5px;
}

header img {
    width: 180px;
    max-width: 55vw;
    height: auto;
}

main {
    width: min(1050px, 94%);
    margin: 0 auto;
    text-align: center;
    padding-bottom: 40px;
}

main > h1 {
    margin: 14px 0 5px;
    font-size: clamp(30px, 4vw, 46px);
    color: white;
}

.tagline {
    margin: 0 0 15px;
    color: var(--muted);
}

.network-badge {
    display: inline-block;
    margin: 7px 0 22px;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(245,168,0,.4);
    background: rgba(245,168,0,.08);
    color: #ffc84a;
    font-size: 13px;
    letter-spacing: .7px;
}

.server-selector {
    max-width: 520px;
    margin: 0 auto 18px;
    background: rgba(13,31,42,.92);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 15px 20px;
}

.server-selector .chosen p {
    color: var(--muted);
}

.server-selector .chosen h2 {
    color: white;
}

#start-button {
    margin: 25px auto !important;
    width: 130px !important;
    height: 130px !important;
    border-radius: 50% !important;
    border: 4px solid var(--gold) !important;
    background: rgba(245,168,0,.08) !important;
    box-shadow:
        0 0 0 10px rgba(245,168,0,.04),
        0 0 38px rgba(245,168,0,.20) !important;
}

#start-button::after {
    content: "START";
    color: white;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1.5px;
}

#start-button.disabled::after {
    content: "...";
}

.gauge-layout {
    margin-top: 15px;
    padding: 25px 15px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(13,31,42,.82);
}

.gauge h1 {
    font-size: clamp(32px, 5vw, 54px) !important;
}

.download h1,
.download h2 {
    color: var(--gold);
}

.upload h1,
.upload h2 {
    color: #83bb51;
}

.ping,
.jitter {
    color: #d7e4ea;
}

.info-strip {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    max-width: 850px;
    margin: 20px auto 0;
}

.info-card {
    padding: 14px;
    border-radius: 12px;
    background: rgba(16,41,54,.78);
    border: 1px solid var(--border);
}

.info-card .title {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-card .value {
    margin-top: 5px;
    color: white;
}

footer {
    text-align: center;
    color: #718792;
    font-size: 12px;
    padding: 20px 10px 30px;
}

.bharat-footer {
    color: #a8bbc4;
    font-weight: bold;
}

@media (max-width: 700px) {
    header img {
        width: 145px;
    }

    .info-strip {
        grid-template-columns: 1fr;
    }

    #start-button {
        width: 110px !important;
        height: 110px !important;
    }
}

/* Bharat Fibernet final layout adjustments */

.network-badge {
    margin: 5px 0 8px !important;
}

.server-selector {
    margin: 5px auto 5px !important;
}

#privacy-warning {
    margin: 5px auto !important;
}

/* Final START button override */
#start-button {
    display: block !important;
    width: 130px !important;
    min-width: 130px !important;
    max-width: 130px !important;
    height: 130px !important;
    min-height: 130px !important;
    max-height: 130px !important;
    padding: 0 !important;
    margin: 12px auto 20px !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;

    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-align: center !important;

    border: 4px solid #f5a800 !important;
    background: rgba(245,168,0,.08) !important;
}

/* Do NOT add another START label */
#start-button::after,
#start-button::before {
    content: none !important;
    display: none !important;
}



/* =========================================================
   Bharat Fibernet - Stability Test Button
   ========================================================= */

.stability-link {
    margin: 22px auto 10px;
    text-align: center;
}

.stability-link a {
    display: inline-block;
    padding: 11px 26px;
    border: 1px solid #f5a800;
    border-radius: 30px;
    background: rgba(245, 168, 0, 0.06);
    color: #f5a800;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    transition: all 0.2s ease;
}

.stability-link a:hover {
    background: #f5a800;
    color: #07131b;
    box-shadow: 0 0 20px rgba(245, 168, 0, 0.25);
}
