/* Internet test page styling - PC Web Systems theme */
:root {
  --radius: 24px;
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body.page-test-internet {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(31, 185, 255, 0.16),
      transparent 34rem
    ),
    radial-gradient(
      circle at top right,
      rgba(114, 255, 24, 0.1),
      transparent 32rem
    ),
    linear-gradient(180deg, #01040a 0%, #030811 50%, #010307 100%);
  line-height: 1.55;
  min-height: 100vh;
}
body.page-test-internet img {
  max-width: 100%;
  display: block;
}
body.page-test-internet main {
  padding: 1.4rem 0 1.8rem;
}
.test-wrap {
  width: min(calc(100% - 2rem), var(--max));
}
.hero-media {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1.1rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-blue), var(--shadow-green), var(--shadow-card);
  background: var(--panel-strong);
}
.hero-media img {
  width: 100%;
  height: 384px;
  object-fit: cover;
  object-position: center;
}
.test-hero,
.test-panel,
.result-card,
.note-card,
.summary-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-blue), var(--shadow-green), var(--shadow-card);
}
.test-hero {
  padding: 1.4rem;
  margin-bottom: 1rem;
}
.test-hero h1,
.test-hero .lead {
  max-width: none;
}
h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  line-height: 1.08;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}
.lead {
  color: var(--muted);
  max-width: 68ch;
  margin: 0;
  line-height: 1.65;
}
.test-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.test-panel,
.note-card {
  padding: 1.2rem;
}
.actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.status {
  margin-top: 0.9rem;
  color: var(--green-soft);
  font-weight: 800;
}
.progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.72);
  overflow: hidden;
  margin-top: 0.8rem;
  border: 1px solid var(--line);
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-bright), var(--green));
  transition: width 0.28s ease;
}
.server-row {
  margin-top: 0.9rem;
  margin-bottom: 0.9rem;
}
.server-row .result-card {
  width: 100%;
  min-height: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 18px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}
.result-card {
  padding: 0.85rem 0.9rem;
  min-height: 104px;
  background: var(--tile);
  box-shadow:
    0 0 18px rgba(31, 185, 255, 0.1),
    inset 0 0 0 1px rgba(114, 255, 24, 0.04);
}
.result-card .label {
  color: var(--green-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.28rem;
  font-weight: 800;
}
.value {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 900;
  margin-bottom: 0.16rem;
  line-height: 1.12;
  color: var(--text);
}
.result-card-server .value-server {
  font-size: 1rem;
  line-height: 1.15;
  word-break: break-word;
}
.hint {
  color: var(--muted);
  font-size: 0.82rem;
}
.summary-box {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--tile);
}
.summary-title {
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
  color: var(--text);
}
ul.clean {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
}
ul.clean li {
  position: relative;
  padding-left: 1.25rem;
  margin: 0.55rem 0;
  color: var(--muted);
  line-height: 1.5;
}
ul.clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(114, 255, 24, 0.72);
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}
.pill.good {
  background: rgba(114, 255, 24, 0.13);
  color: var(--green-soft);
  border: 1px solid rgba(114, 255, 24, 0.26);
}
.pill.warn {
  background: rgba(255, 202, 102, 0.14);
  color: #ffdf9e;
  border: 1px solid rgba(255, 202, 102, 0.25);
}
.pill.low {
  background: rgba(255, 107, 107, 0.14);
  color: #ffc7c7;
  border: 1px solid rgba(255, 107, 107, 0.25);
}
.small {
  color: rgba(244, 248, 255, 0.82);
  font-size: 0.95rem;
}
@media (max-width: 900px) {
  .test-grid {
    grid-template-columns: 1fr;
  }
  .hero-media img {
    height: 320px;
  }
}
@media (max-width: 680px) {
  .test-wrap {
    width: min(calc(100% - 1rem), var(--max));
  }
  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
  }
  .test-hero,
  .test-panel,
  .note-card {
    padding: 1rem;
  }
  .hero-media {
    margin-bottom: 1rem;
  }
  .hero-media img {
    height: 230px;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
}

/* Responsive hero image fix - keeps full banner visible while browser shrinks. */
.hero-media {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}
.hero-media img {
  width: 100%;
  height: auto !important;
  aspect-ratio: 3 / 1;
  object-fit: contain !important;
  object-position: center center !important;
  max-width: 100%;
  min-height: 0;
}
@media (max-width: 720px) {
  .hero-media {
    margin-left: auto;
    margin-right: auto;
  }
}

/* PCWS approved site-wide button + container halo update */
.nav a,
.side-menu a,
button.btn:not(.btn-price),
a.btn:not(.btn-price),
input.btn:not(.btn-price),
.nav-toggle {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 400 !important;
  background: rgba(35, 35, 35, 0.58) !important;
  background-image: none !important;
  border: 1px solid rgba(35, 35, 35, 0.94) !important;
  box-shadow:
    0 0 0 1px rgba(0, 139, 243, 0.34),
    0 0 18px rgba(0, 139, 243, 0.38),
    0 12px 30px rgba(0, 0, 0, 0.34) !important;
  text-shadow: none !important;
}

.nav a:hover,
.nav a:focus-visible,
.side-menu a:hover,
.side-menu a:focus-visible,
button.btn:not(.btn-price):hover,
button.btn:not(.btn-price):focus-visible,
a.btn:not(.btn-price):hover,
a.btn:not(.btn-price):focus-visible,
input.btn:not(.btn-price):hover,
input.btn:not(.btn-price):focus-visible,
.nav-toggle:hover,
.nav-toggle:focus-visible {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 400 !important;
  background: rgba(35, 35, 35, 0.74) !important;
  background-image: none !important;
  border-color: rgba(35, 35, 35, 1) !important;
  box-shadow:
    0 0 0 1px rgba(0, 139, 243, 0.52),
    0 0 24px rgba(0, 139, 243, 0.56),
    0 14px 34px rgba(0, 0, 0, 0.38) !important;
  filter: none !important;
  transform: none !important;
}

.nav a *,
.side-menu a *,
button.btn:not(.btn-price) *,
a.btn:not(.btn-price) *,
input.btn:not(.btn-price) *,
.nav-toggle * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 400 !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

.card,
.panel,
.legal-card,
.test-hero,
.test-panel,
.result-card,
.note-card,
.summary-box,
.hero-copy,
.hero-image-card,
.spec-card,
.cta-card,
.traffic-card,
.micro div,
.traffic-bullets div,
.feature-tile,
.hero-media {
  box-shadow:
    0 0 0 1px rgba(0, 139, 243, 0.24),
    0 0 22px rgba(0, 139, 243, 0.28),
    0 14px 34px rgba(0, 0, 0, 0.30) !important;
  border-color: rgba(0, 139, 243, 0.32) !important;
}

.hero-offer-card {
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36) !important;
  border-color: rgba(255, 255, 255, 0.86) !important;
}

.btn-price,
.btn-price:hover,
.btn-price:focus-visible,
.btn-price *,
.btn-price:hover *,
.btn-price:focus-visible * {
  font-weight: inherit;
}

/* Header mobile menu button fix - B09 */
.nav-toggle {
  display: none !important;
  width: 44px !important;
  height: 40px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 5px !important;
  cursor: pointer !important;
  flex: 0 0 auto !important;
}

.nav-toggle span {
  display: block !important;
  width: 20px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  background-image: none !important;
}

@media (min-width: 901px) {
  .topbar .nav {
    display: flex !important;
  }
}

@media (max-width: 900px) {
  .topbar-inner {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
  }

  .nav-toggle {
    display: inline-flex !important;
    margin-left: auto !important;
  }

  .topbar .nav {
    position: absolute !important;
    top: calc(100% + 0.55rem) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 500 !important;
    display: none !important;
    width: min(280px, calc(100vw - 2rem)) !important;
    padding: 0.75rem !important;
    border-radius: 18px !important;
    background: rgba(5, 12, 23, 0.96) !important;
    border: 1px solid rgba(0, 139, 243, 0.32) !important;
    box-shadow:
      0 0 0 1px rgba(0, 139, 243, 0.22),
      0 0 22px rgba(0, 139, 243, 0.28),
      0 24px 60px rgba(0, 0, 0, 0.48) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  .topbar .nav.is-open {
    display: grid !important;
    gap: 0.55rem !important;
  }

  .topbar .nav a {
    width: 100% !important;
  }
}
