.t3-speedtest {
  --t3-navy: #071a2d;
  --t3-blue: #0b6ffb;
  --t3-cyan: #27d3e2;
  --t3-muted: #96a9bb;
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  max-width: 920px;
  margin: 2rem auto;
  padding: clamp(1.4rem, 4vw, 3rem);
  overflow: hidden;
  color: #eef7ff;
  border: 1px solid rgba(126, 190, 255, .18);
  border-radius: 28px;
  background: linear-gradient(145deg, #0b2743 0%, var(--t3-navy) 48%, #061422 100%);
  box-shadow: 0 24px 70px rgba(2, 20, 38, .25);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.t3-speedtest *, .t3-speedtest *::before, .t3-speedtest *::after { box-sizing: border-box; }
.t3-speedtest__glow { position: absolute; z-index: -1; width: 420px; height: 420px; top: -250px; right: -130px; border-radius: 50%; background: rgba(39, 211, 226, .17); filter: blur(20px); }
.t3-speedtest__header { text-align: center; }
.t3-speedtest__brand { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.6rem; font-size: .94rem; font-weight: 750; letter-spacing: .02em; }
.t3-speedtest__mark { display: grid; place-items: center; width: 36px; height: 36px; color: #031525; border-radius: 11px; background: linear-gradient(135deg, var(--t3-cyan), #8bf4ff); font-weight: 900; }
.t3-speedtest__eyebrow { color: #71e7f1; font-size: .72rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.t3-speedtest h2 { margin: .5rem 0 .6rem; color: #fff; font-size: clamp(1.75rem, 4vw, 2.65rem); line-height: 1.08; }
.t3-speedtest__header p { max-width: 580px; margin: 0 auto; color: var(--t3-muted); font-size: 1rem; }
.t3-speedtest__status { display: flex; flex-direction: column; align-items: center; min-height: 185px; padding-top: 1.6rem; text-align: center; }
.t3-speedtest__status strong { margin-top: -.5rem; color: #fff; font-size: 1.08rem; }
.t3-speedtest__status > span:last-child { margin-top: .3rem; color: var(--t3-muted); font-size: .86rem; }
.t3-speedtest__gauge { position: relative; width: 180px; height: 100px; }
.t3-speedtest__gauge svg { width: 100%; overflow: visible; fill: none; stroke-width: 10; stroke-linecap: round; }
.t3-speedtest__gauge-track { stroke: rgba(151, 190, 219, .14); }
.t3-speedtest__gauge-value { stroke: url("#unused"); stroke: var(--t3-cyan); transition: stroke-dashoffset .45s ease; filter: drop-shadow(0 0 7px rgba(39, 211, 226, .7)); }
.t3-speedtest__pulse { position: absolute; bottom: 3px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--t3-cyan); box-shadow: 0 0 0 7px rgba(39, 211, 226, .11); }
.t3-speedtest.is-running .t3-speedtest__pulse { animation: t3-pulse 1.2s ease-in-out infinite; }
.t3-speedtest__results { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.t3-speedtest__result { min-width: 0; padding: 1rem; text-align: center; border: 1px solid rgba(139, 198, 239, .12); border-radius: 17px; background: rgba(255, 255, 255, .045); }
.t3-speedtest__result--primary { background: linear-gradient(155deg, rgba(11, 111, 251, .17), rgba(255, 255, 255, .035)); }
.t3-speedtest__icon { display: block; height: 18px; color: var(--t3-cyan); font-size: 1.2rem; font-weight: 800; }
.t3-speedtest__label { display: block; margin: .2rem 0 .35rem; color: var(--t3-muted); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.t3-speedtest__result strong { color: #fff; font-size: clamp(1.65rem, 4vw, 2.35rem); font-variant-numeric: tabular-nums; line-height: 1; }
.t3-speedtest__result small { margin-left: .15rem; color: var(--t3-muted); font-size: .72rem; }
.t3-speedtest__error { margin-top: 1rem; padding: .8rem 1rem; color: #ffd6d6; border: 1px solid rgba(255, 111, 111, .3); border-radius: 12px; background: rgba(173, 34, 34, .18); font-size: .88rem; text-align: center; }
.t3-speedtest__actions { display: flex; flex-direction: column; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.t3-speedtest__button { min-width: 205px; padding: .9rem 1.35rem; color: #031525; border: 0; border-radius: 999px; background: linear-gradient(135deg, #54e3ef, #a5f7ff); box-shadow: 0 10px 28px rgba(39, 211, 226, .22); cursor: pointer; font: inherit; font-size: .92rem; font-weight: 850; transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
.t3-speedtest__button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(39, 211, 226, .32); }
.t3-speedtest__button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.t3-speedtest__button:disabled { cursor: wait; opacity: .65; }
.t3-speedtest__actions p { margin: 0; color: #71889b; font-size: .72rem; }

@keyframes t3-pulse { 50% { transform: scale(1.35); box-shadow: 0 0 0 12px rgba(39, 211, 226, .04); } }

@media (max-width: 660px) {
  .t3-speedtest { border-radius: 20px; }
  .t3-speedtest__results { grid-template-columns: repeat(2, 1fr); }
  .t3-speedtest__result { padding: .9rem .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .t3-speedtest *, .t3-speedtest *::before, .t3-speedtest *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

