.speed-hero { padding: 1.8rem 0 3.5rem; background: linear-gradient(180deg, #f4f7ff, #fff); }
.speed-hero h1 { max-width: 900px; font-size: clamp(2.1rem, 4.5vw, 3.5rem); }
.speed-section { padding: 0 0 5rem; }
.speed-console { --meter-color: #45e4e1; position: relative; z-index: 2; margin-top: -2rem; padding: clamp(1rem, 3vw, 2rem); color: #f7f8ff; background: radial-gradient(circle at 50% 52%, #202943, #101224 62%); border: 1px solid #292e49; border-radius: 24px; box-shadow: 0 24px 65px rgba(16,18,36,.22); }
.console-header, .history-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.console-header h2 { margin: 0; color: #fff; font-size: clamp(1.25rem, 2.8vw, 1.9rem); }
.speed-kicker, .console-label { margin: 0 0 .25rem; color: #8d96b5; font-size: .74rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.live-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .7rem; color: #58e6e1; background: rgba(69,228,225,.09); border: 1px solid rgba(69,228,225,.25); border-radius: 999px; font-size: .76rem; font-weight: 850; }
.live-badge.testing::before { content: ""; width: 7px; height: 7px; background: #45e4e1; border-radius: 50%; box-shadow: 0 0 0 5px rgba(69,228,225,.12); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(69,228,225,0); } }
.test-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1.1rem 0 .2rem; padding: 0; list-style: none; }
.test-stages li { position: relative; display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .65rem .7rem; color: #77809d; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 11px; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.test-stages li > span { flex: 0 0 auto; display: grid; place-items: center; width: 25px; height: 25px; color: #919ab7; background: #242b46; border-radius: 50%; font-size: .7rem; font-weight: 900; }
.test-stages strong, .test-stages small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.test-stages strong { color: inherit; font-size: .76rem; }
.test-stages small { margin-top: .08rem; color: #737d9b; font-size: .64rem; }
.test-stages li[data-state="active"] { color: #fff; background: rgba(69,228,225,.09); border-color: var(--meter-color); transform: translateY(-1px); }
.test-stages li[data-state="active"] > span { color: #101224; background: var(--meter-color); box-shadow: 0 0 0 5px rgba(69,228,225,.12); }
.test-stages li[data-state="active"] small { color: #c2c9dd; }
.test-stages li[data-state="complete"] { color: #c8f7ed; border-color: rgba(81,218,184,.24); }
.test-stages li[data-state="complete"] > span { color: transparent; background: #42c9a8; }
.test-stages li[data-state="complete"] > span::after { content: "\2713"; position: absolute; color: #101224; font-size: .78rem; }
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 1.3rem 0 .5rem; }
.result-card { min-width: 0; padding: .85rem 1rem; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); border-radius: 13px; }
.result-card > span { display: flex; align-items: center; gap: .42rem; color: #aeb6d0; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.result-card > span i { display: grid; place-items: center; width: 19px; height: 19px; color: #101224; background: var(--meter-color); border-radius: 50%; font-size: .66rem; font-style: normal; }
.result-card strong { display: block; margin-top: .25rem; color: #b8bfd5; font-size: .8rem; white-space: nowrap; }
.result-card strong b { color: #fff; font-size: clamp(1.45rem, 4vw, 2.5rem); font-weight: 450; letter-spacing: -.04em; }
.metric-bar { height: 3px; margin-top: .55rem; background: #2a304b; border-radius: 4px; }
.metric-bar em { display: block; width: 0; height: 100%; background: var(--meter-color); border-radius: inherit; transition: width .45s ease; }
.meter-layout { display: grid; grid-template-columns: minmax(330px, 1.3fr) minmax(260px, .7fr); align-items: center; gap: clamp(1rem, 4vw, 3rem); }
.gauge-wrap { display: grid; place-items: center; min-height: 410px; overflow: hidden; }
.speed-gauge { --meter-angle: 0deg; --needle-angle: -135deg; position: relative; width: min(390px, 82vw); aspect-ratio: 1; }
.meter-ring { position: absolute; inset: 3%; border-radius: 50%; background: conic-gradient(from 225deg, var(--meter-color) 0 var(--meter-angle), #26314f var(--meter-angle) 270deg, transparent 270deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 29px), #000 calc(100% - 28px)); mask: radial-gradient(farthest-side, transparent calc(100% - 29px), #000 calc(100% - 28px)); filter: drop-shadow(0 0 16px rgba(69,228,225,.12)); }
.meter-labels span { position: absolute; z-index: 2; color: #9ea5bb; font-size: clamp(.68rem, 2vw, .88rem); font-weight: 850; }
.mark-0 { left: 18%; bottom: 24%; }.mark-5 { left: 11%; bottom: 39%; }.mark-10 { left: 12%; top: 35%; }.mark-50 { left: 28%; top: 18%; }.mark-100 { left: 47%; top: 11%; }.mark-250 { right: 25%; top: 18%; }.mark-500 { right: 10%; top: 36%; }.mark-1000 { right: 12%; bottom: 26%; }
.meter-needle { position: absolute; z-index: 3; left: calc(50% - 3px); top: 22%; width: 6px; height: 29%; background: linear-gradient(#fff, #a7acc0 38%, rgba(56,67,102,.18)); clip-path: polygon(50% 0, 100% 100%, 0 100%); transform-origin: 50% 100%; transform: rotate(var(--needle-angle)); transition: transform .08s linear; filter: drop-shadow(0 5px 7px rgba(0,0,0,.35)); }
.meter-hub { position: absolute; z-index: 4; left: 50%; top: 51%; width: 14px; height: 14px; background: #e6e9f2; border: 4px solid #313a57; border-radius: 50%; transform: translate(-50%,-50%); }
.gauge-inner { position: absolute; z-index: 5; left: 50%; bottom: 13%; display: grid; place-items: center; transform: translateX(-50%); }
.gauge-inner span { color: #fff; font-size: clamp(2.35rem, 7vw, 4.2rem); font-weight: 300; line-height: 1; letter-spacing: -.05em; }
.gauge-inner small { margin-top: .25rem; color: #8e97b4; }
.connection-settings { padding: 1rem; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; }
.provider-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin: .7rem 0 1rem; }
.provider-option { min-height: 40px; padding: .45rem; color: #c5cbe0; background: #20253e; border: 1px solid #343b59; border-radius: 9px; font-size: .82rem; font-weight: 800; cursor: pointer; }
.provider-option:hover { color: #fff; border-color: #596483; }
.provider-option.active { color: #101224; background: var(--meter-color); border-color: var(--meter-color); box-shadow: 0 7px 16px rgba(69,228,225,.16); }
.compact-settings { display: grid; gap: .9rem; }
.compact-settings > label { display: grid; gap: .35rem; color: #aeb6d0; font-size: .78rem; font-weight: 800; }
.compact-settings select { width: 100%; min-height: 40px; padding: .42rem .6rem; color: #eef0f8; background: #191e34; border: 1px solid #343b59; border-radius: 9px; }
.speed-fieldset { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: 0; padding: 0; border: 0; }
.speed-fieldset legend { margin-bottom: .4rem; color: #aeb6d0; font-size: .78rem; font-weight: 800; }
.speed-fieldset label { position: relative; cursor: pointer; }
.speed-fieldset input { position: absolute; opacity: 0; }
.speed-fieldset label span { display: grid; place-items: center; min-height: 50px; padding: .35rem; color: #b3bad0; background: #191e34; border: 1px solid #343b59; border-radius: 9px; font-size: .75rem; font-weight: 800; text-align: center; }
.speed-fieldset small { color: #858eaa; font-size: .64rem; }
.speed-fieldset input:checked + span { color: #fff; border-color: var(--meter-color); box-shadow: inset 0 -2px var(--meter-color); }
.speed-fieldset input:focus-visible + span { outline: 3px solid rgba(69,228,225,.24); }
.connection-note { margin-top: .85rem; padding: .65rem; color: #9ea7c2; background: #171b2f; border-radius: 8px; font-size: .75rem; }
.edge-label { display: flex; align-items: center; gap: .7rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid #303650; }
.edge-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #111426; background: var(--meter-color); border-radius: 50%; font-weight: 900; }
.edge-label strong, .edge-label small { display: block; }.edge-label strong { font-size: .83rem; }.edge-label small { color: #8f98b5; font-size: .72rem; }
.test-actions, .completed-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; }
.speed-console [hidden] { display: none !important; }
.speed-console .button { min-width: 190px; }
.start-button { color: #101224; background: var(--meter-color); border-color: var(--meter-color); }
.start-button:hover { color: #101224; background: #79f3ef; border-color: #79f3ef; }
.cancel-button { color: #fff; background: #353c59; border-color: #4a5374; }
.progress-track { overflow: hidden; height: 4px; margin: 1rem 0 .55rem; background: #29304b; border-radius: 8px; }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #20b8e8, var(--meter-color), #bd61ff); transition: width .22s ease; }
.speed-status { min-height: 1.4rem; color: #aeb6d0; text-align: center; font-size: .82rem; }
.speed-status.success { color: #73ead0; }.speed-status.error { color: #ff8e8e; }
.rating-card { display: flex; align-items: center; gap: .8rem; max-width: 700px; margin: .9rem auto; padding: .85rem; color: #dffbf4; background: rgba(30,178,144,.12); border: 1px solid rgba(64,224,188,.25); border-radius: 12px; }
.rating-card p { margin: .1rem 0 0; color: #aebfd0; font-size: .8rem; }
.rating-icon { display: grid; place-items: center; width: 40px; height: 40px; background: #24b993; border-radius: 10px; font-weight: 900; }
.rating-card.fair { background: rgba(194,141,12,.12); border-color: rgba(234,193,92,.3); }.rating-card.fair .rating-icon { background: #c28d0c; }
.rating-card.poor { background: rgba(212,74,64,.12); border-color: rgba(240,120,110,.3); }.rating-card.poor .rating-icon { background: #d44a40; }
.measurement-disclosure { max-width: 780px; margin: 1rem auto 0; color: #7f88a6; font-size: .72rem; text-align: center; }
.speed-panel { margin-top: 1rem; padding: clamp(1rem, 3vw, 1.5rem); background: #fff; border: 1px solid var(--line); border-radius: 17px; }
.history-heading span { color: var(--muted); font-size: .8rem; }.history-heading .speed-kicker { color: var(--brand-dark); }.history-heading h2 { font-size: 1.4rem; }
.speed-history { display: grid; gap: .55rem; margin-top: .8rem; }.empty-history { margin: 0; padding: 1rem; color: var(--muted); background: #f7f9fc; border-radius: 10px; text-align: center; }
.history-item { display: grid; grid-template-columns: minmax(140px, 1fr) repeat(4, minmax(72px, .55fr)); gap: .55rem; align-items: center; padding: .7rem; background: #f8fafc; border: 1px solid #e4e9ef; border-radius: 10px; }
.history-item strong, .history-item small { display: block; }.history-item small, .history-metric { color: var(--muted); font-size: .74rem; }.history-metric b { display: block; color: var(--ink); font-size: .9rem; }
.provider-seo-grid { grid-template-columns: repeat(4, 1fr); margin-top: 2rem; }.provider-seo-grid article { padding: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 15px; }.provider-seo-grid p { color: var(--muted); font-size: .9rem; }
.text-action { padding: 0; color: var(--brand-dark); background: none; border: 0; font-weight: 800; cursor: pointer; }.text-action:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 900px) { .meter-layout { grid-template-columns: 1fr; }.connection-settings { max-width: 620px; margin-inline: auto; }.provider-seo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .test-stages { grid-template-columns: repeat(2, 1fr); }.result-grid { grid-template-columns: repeat(2, 1fr); }.gauge-wrap { min-height: 340px; }.speed-gauge { width: min(330px, 92vw); }.history-item { grid-template-columns: 1fr 1fr; }.history-item > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .speed-console { margin-inline: -.55rem; border-radius: 17px; }.console-header { align-items: center; }.result-card { padding: .7rem; }.result-card strong b { font-size: 1.6rem; }.gauge-wrap { min-height: 310px; }.speed-gauge { width: min(300px, 91vw); }.meter-ring { -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 23px), #000 calc(100% - 22px)); mask: radial-gradient(farthest-side, transparent calc(100% - 23px), #000 calc(100% - 22px)); }.provider-grid { grid-template-columns: repeat(3, 1fr); }.speed-fieldset { grid-template-columns: 1fr; }.speed-fieldset label span { grid-template-columns: 1fr 1fr; min-height: 42px; }.speed-console [hidden] { display: none !important; }
.speed-console .button { width: 100%; }.provider-seo-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .live-badge.testing::before { animation: none; } .test-stages li, .meter-needle, .metric-bar em, .progress-track span { transition: none; } }


