*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #0a1628;
  color: #ffffff;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at top right, rgba(13, 75, 184, 0.25), transparent 55%), radial-gradient(circle at bottom left, rgba(9, 58, 141, 0.2), transparent 45%);
}

.app-shell {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  gap: 24px;
}

.app-header {
  text-align: center;
  color: #0d4bb8;
}

.app-header h1 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.app-header p {
  margin: 0;
  color: rgba(13, 75, 184, 0.72);
  font-size: 0.95rem;
}

.main-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  min-height: 100vh;
  justify-content: flex-start;
}

.main-stage>* {
  width: 100%;
}

.speedtest-card {
  width: 100%;
  max-width: 980px;
  background: linear-gradient(135deg, #0d4bb8, #093a8d);
  border-radius: 28px;
  padding: 28px 18px 24px;
  box-shadow: 0 35px 60px rgba(9, 37, 84, 0.35);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.speedtest-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.speedtest-card__top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 0;
  margin-bottom: 8px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.brand__logo {
  width: clamp(100px, 22vw, 200px);
  display: grid;
  place-items: center;
  padding: clamp(4px, 1vw, 12px);
  background: transparent;
}

.brand__logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(109, 173, 255, 0.45)) drop-shadow(0 12px 20px rgba(6, 24, 78, 0.4));
}

.brand__title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 2px 12px rgba(6, 32, 91, 0.4);
  line-height: 1.2;
}

.brand__subtitle {
  margin: 0;
  font-weight: 500;
  font-size: clamp(0.8rem, 2.2vw, 1.1rem);
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 8px rgba(6, 32, 91, 0.3);
  line-height: 1.3;
}

.brand__name {
  font-weight: 600;
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 2px 10px rgba(6, 32, 91, 0.35);
}

.brand__label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
  margin-right: 4px;
}

.brand--secondary {
  gap: 6px;
}

.speedtest-card__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

/* Mobile-first: Reorder for better UX - Button after dial */
.dial {
  order: 1;
  align-self: center;
  width: min(240px, 85vw);
  aspect-ratio: 1/1;
  position: relative;
  display: grid;
  place-items: center;
}

.metric-panels {
  order: 3;
}

.card-actions {
  order: 2;
}

.dial__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, #093a8d 60%, transparent 61%);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.06);
}

.dial__ring .dial__progress {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: conic-gradient(from -120deg, rgba(255, 255, 255, 0.12) 0deg 240deg, rgba(255, 255, 255, 0.04) 240deg 360deg);
  transition: background 0.12s ease-out;
}

.dial__needle {
  position: absolute;
  width: 6px;
  height: 40%;
  background: linear-gradient(#4dd0ff, rgb(153.5, 228.1994382022, 255));
  top: 18%;
  left: 50%;
  transform-origin: 50% 85%;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(77, 208, 255, 0.45);
  transform: translateX(-50%) rotate(-120deg);
  transition: transform 0.35s ease-out;
}

.dial__center {
  position: relative;
  z-index: 2;
  background: rgba(9, 58, 141, 0.6);
  border-radius: 50%;
  width: 65%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.25);
  padding: 18px;
}

.dial__value {
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dial__unit {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.dial__phase {
  font-size: 0.9rem;
  margin-top: 6px;
  color: #4dd0ff;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-panels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.metric-card {
  background: rgba(8, 52, 122, 0.85);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(77, 132, 214, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.metric-card header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.65);
}

.metric-card header i {
  color: #4dd0ff;
  font-size: 0.9rem;
}

.metric-card header small {
  margin-left: auto;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
}

.metric-card__value {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
}

.metric-card__chart {
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(4, 35, 80, 0.55);
  position: relative;
}

.metric-card__fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(135deg, #4dd0ff, rgb(179, 234.9325842697, 255));
  opacity: 0.85;
  transition: width 0.25s ease-out;
  mask: radial-gradient(circle at left, rgb(0, 0, 0) 0%, transparent 70%);
}

.metric-card--compact {
  gap: 8px;
}

.metric-card--compact header {
  letter-spacing: 0.08em;
}

.metric-card--compact .metric-card__value {
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.card-actions #startButton {
  align-self: center;
  width: min(240px, 100%);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 1rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.btn--primary {
  background: linear-gradient(135deg, rgb(128, 221.4662921348, 255), #4dd0ff);
  color: #093a8d;
  box-shadow: 0 15px 35px rgba(77, 208, 255, 0.45);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(77, 208, 255, 0.55);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 12px 26px rgba(77, 208, 255, 0.35);
}

.btn--primary.is-running {
  background: linear-gradient(135deg, rgb(255, 88.2609137056, 78.4), #ff453a);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(255, 69, 58, 0.45);
}

.badge {
  align-self: center;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.speedtest-card__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  position: relative;
  z-index: 1;
}

.foot-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.foot-info i {
  font-size: 1.1rem;
  color: #4dd0ff;
}

.foot-info__label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.65);
}

.foot-info__value {
  margin: 2px 0 0;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
}

.foot-info--progress {
  flex-direction: column;
  align-items: flex-start;
}

.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  position: relative;
}

.progress-track__fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(135deg, #4dd0ff, rgb(179, 234.9325842697, 255));
  transition: width 0.25s ease-out;
}

@media (min-width: 480px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-card header {
    font-size: 0.8rem;
  }

  .metric-card header i {
    font-size: 0.95rem;
  }
}

@media (min-width: 640px) {
  .brand {
    gap: 10px;
  }

  .brand__logo {
    width: clamp(120px, 25vw, 200px);
  }

  .brand__title {
    font-size: clamp(1.2rem, 3.8vw, 1.8rem);
  }

  .brand__subtitle {
    font-size: clamp(0.85rem, 2.4vw, 1.1rem);
  }

  .speedtest-card__content {
    gap: 20px;
  }

  .dial {
    width: min(260px, 88vw);
  }

  .metric-panels {
    gap: 18px;
  }

  .metric-card {
    padding: 18px;
    gap: 12px;
  }

  .metric-card header {
    font-size: 0.85rem;
    gap: 8px;
  }

  .metric-card header i {
    font-size: 1rem;
  }

  .metric-card header small {
    font-size: 0.75rem;
  }
}

@media (min-width: 720px) {
  .main-stage {
    min-height: 100vh;
    align-items: center;
    justify-content: flex-start;
  }

  .speedtest-card {
    padding: 36px 42px 32px;
  }

  .speedtest-card__top {
    margin-bottom: 12px;
  }

  .brand {
    gap: 12px;
  }

  .brand__logo {
    width: clamp(140px, 28vw, 200px);
  }

  .brand__title {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }

  .brand__subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.4;
  }

  .speedtest-card__content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
  }

  /* Desktop layout: Dial on left, metrics+button on right column */
  .dial {
    width: 320px;
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .metric-panels {
    grid-column: 2;
    grid-row: 1;
    gap: 20px;
    display: flex;
    flex-direction: column;
  }

  .card-actions {
    grid-column: 2;
    grid-row: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .metric-grid {
    gap: 14px;
  }
}

@media (min-width: 960px) {
  .speedtest-card__footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #0d4bb8;
  color: #ffffff;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 500;
  border-radius: 0 0 8px 0;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Site Header */
.site-header {
  background: rgba(13, 31, 56, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  box-shadow: 0 2px 12px rgba(9, 37, 84, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-header__logo {
  display: block;
  width: 100px;
  transition: opacity 0.2s;
  flex-shrink: 0;
  order: 0;
}

.site-header__logo:hover {
  opacity: 0.8;
}

.site-header__logo img {
  width: 100%;
  height: auto;
  display: block;
}

.site-header__toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(77, 208, 255, 0.35);
  background: rgba(8, 52, 122, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
  color: #ffffff;
  font-size: 1.25rem;
}

.site-header__toggle i {
  display: block;
  font-size: 1.2rem;
  color: #ffffff;
  line-height: 1;
  pointer-events: none;
}

.site-header__toggle:hover {
  background: rgba(8, 52, 122, 0.8);
  border-color: #4dd0ff;
}

.site-header__toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.site-header__menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
  background: rgba(9, 37, 84, 0.65);
  border-radius: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(77, 208, 255, 0.12);
  order: 4;
}

.site-header__menu.is-open {
  display: flex;
}

.site-header__menu a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.site-header__menu a:hover,
.site-header__menu a:focus-visible {
  color: #ffffff;
  background: rgba(77, 208, 255, 0.18);
  outline: none;
}

.site-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  order: 1;
}

.site-header__toggle {
  order: 2;
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.25), 0 1px 4px rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-header__cta:hover {
  transform: translateY(-1px);
  background: #1da851;
  box-shadow: 0 4px 14px rgba(29, 168, 81, 0.45), 0 2px 6px rgba(29, 168, 81, 0.3);
}

.site-header__cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

/* Info Section */
.info-section {
  max-width: 980px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-accordion {
  background: rgba(13, 31, 56, 0.9);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(9, 37, 84, 0.08);
  overflow: hidden;
}

.info-accordion__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  cursor: pointer;
  color: #4dd0ff;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  transition: background 0.2s, border-bottom-color 0.2s;
  user-select: none;
  border-bottom: 1px solid transparent;
}

.info-accordion__header::-webkit-details-marker {
  display: none;
}

.info-accordion__header:hover {
  background: rgba(77, 208, 255, 0.08);
}

.info-accordion__header i:first-child {
  font-size: 1.2rem;
  color: #4dd0ff;
}

.info-accordion__icon {
  margin-left: auto;
  transition: transform 0.3s;
  font-size: 0.85rem;
}

.info-accordion[open] .info-accordion__icon {
  transform: rotate(180deg);
}

.info-accordion[open] .info-accordion__header {
  border-bottom-color: rgba(77, 208, 255, 0.15);
}

.info-accordion__content {
  padding: 24px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.info-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.info-item h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #4dd0ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-item h3 i {
  color: #4dd0ff;
}

.info-item p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #4dd0ff;
  font-weight: 600;
}

.faq-item p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Site Footer */
.site-footer {
  margin-top: 64px;
  background: linear-gradient(135deg, #0d4bb8, #093a8d);
  color: rgba(255, 255, 255, 0.9);
  padding: 48px 0 24px;
}

.site-footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-section--brand {
  order: -1;
}

.footer-logo {
  width: 120px;
  height: auto;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-heading {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #4dd0ff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #4dd0ff;
}

.footer-bottom {
  max-width: 1140px;
  margin: 32px auto 0;
  padding: 24px 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom a {
  color: #4dd0ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: #99e4ff;
}

/* Action Toolbar */
.action-toolbar {
  display: flex;
  gap: 8px;
  align-self: flex-end;
  margin-top: auto;
}

.btn-icon {
  background: rgba(8, 52, 122, 0.5);
  border: 1px solid rgba(77, 208, 255, 0.3);
  color: #4dd0ff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.btn-icon:hover {
  background: rgba(8, 52, 122, 0.8);
  border-color: #4dd0ff;
  transform: translateY(-2px);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 37, 84, 0.8);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal__content {
  position: relative;
  background: #0d1f38;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 48px rgba(9, 37, 84, 0.3);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(77, 208, 255, 0.15);
}

.modal__header h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #4dd0ff;
}

.modal__close {
  background: none;
  border: none;
  color: rgba(77, 208, 255, 0.5);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1.2rem;
}

.modal__close:hover {
  background: rgba(77, 208, 255, 0.1);
  color: #4dd0ff;
}

.modal__body {
  padding: 24px;
}

.share-results__summary {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  font-size: 1rem;
}

.share-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn--secondary {
  background: rgba(77, 208, 255, 0.1);
  border: 1px solid rgba(77, 208, 255, 0.2);
  color: #4dd0ff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
}

.btn--secondary:hover {
  background: rgba(77, 208, 255, 0.15);
  border-color: #4dd0ff;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  background: rgba(77, 208, 255, 0.05);
  border: 1px solid rgba(77, 208, 255, 0.15);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.history-item__date {
  font-size: 0.8rem;
  color: rgba(77, 208, 255, 0.6);
  font-weight: 500;
}

.history-item__metrics {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.history-item__metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-item__label {
  font-size: 0.75rem;
  color: rgba(77, 208, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.history-item__value {
  font-size: 1rem;
  color: #4dd0ff;
  font-weight: 600;
}


/* Tablet: 640px+ */
@media (min-width: 640px) {
  .site-header__nav {
    font-size: 1rem;
  }

  .site-footer__inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-section--brand {
    grid-column: 1 / -1;
  }

  .share-actions {
    flex-direction: row;
  }
}

/* Desktop: 960px+ */
@media (min-width: 960px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo menu nav";
    align-items: center;
    gap: 24px;
  }

  .site-header__toggle {
    display: none;
  }

  .site-header__logo {
    order: initial;
    justify-self: start;
  }

  .site-header__menu {
    order: initial;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
    gap: 18px;
    width: 100%;
    font-size: 0.95rem;
  }

  .site-header__nav {
    order: initial;
    justify-content: flex-end;
    justify-self: end;
  }

  .site-footer__inner {
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
  }

  .footer-section--brand {
    grid-column: auto;
    grid-row: 1 / 2;
    justify-content: center;
  }
}

/* Speed Test ADN - Custom CSS
 * All styles for the speed test application
 * Mobile-first responsive design
 */