:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #02050a;
  color: #f5fbff;
  --cyan: #00e5ff;
  --blue: #2979ff;
  --green: #00e676;
  --yellow: #ffea00;
  --orange: #ff9100;
  --red: #ff1744;
  --orb-size: 280px;
  --pin-radius: 155px;
  --text-main: #f5fbff;
  --text-muted: #899aad;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 0 40px 10px;
  background: radial-gradient(circle at 50% 30%, #081224 0%, #02050a 60%);
  overflow-x: hidden;
}

.site-shell {
  width: min(100%, 1300px); /* Aumentado para dar mais respiro nas laterais */
  min-height: calc(100vh - 20px);
  display: flex;
  flex-direction: column;
}

/* TOPBAR */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.brand-logo {
  height: 110px;
  width: auto;
  object-fit: contain;
  margin: -35px 0 -35px -25px; /* Negative top/bottom for height compensation, negative left to perfectly align with the text below */
}

.nav-links {
  display: flex;
  gap: 40px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: #899aad;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: #ffffff;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -18px;
  right: -18px;
  height: 14px;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-trigger::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.75;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  min-width: 210px;
  padding: 8px;
  background: rgba(8, 13, 21, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #c0cdd8;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: #ffffff;
  background: rgba(0, 229, 255, 0.08);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* HAMBURGER (hidden on desktop) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #899aad;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-spacer {
  flex: 1;
}

/* HERO LAYOUT */
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  flex: 1; /* Ocupa todo o espaço vertical disponível */
  align-content: center; /* Centraliza verticalmente na tela */
}

/* LEFT COLUMN */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* padding-right removido para dar mais espaço útil ao texto */
}

.hero-left h1 {
  font-size: 2.3rem; /* Levemente reduzido para caber em uma linha */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  white-space: nowrap; /* Impede a quebra indesejada do título */
}

.hero-left p {
  color: #899aad;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CONNECTION INFO (Below Orb) */
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.connection-info {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  margin-top: 20px;
  background: rgba(8, 13, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  width: 100%;
  min-width: 600px;
}

.conn-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.conn-tag-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #4a5a6e;
  text-transform: uppercase;
}

.conn-tag-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #c0cdd8;
}

.conn-tag-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: #4a5a6e;
  margin-top: 1px;
}

.hero-left, .hero-right {
  flex: 1;
  min-width: 280px; /* Garante que o texto base nunca fique espremido */
}

.conn-tag.clickable {
  cursor: pointer;
  transition: all 0.2s;
}

.conn-tag.clickable:hover {
  opacity: 0.8;
}

.server-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(0, 229, 255, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin: 4px 0;
  transition: all 0.2s;
}

.conn-tag.clickable:hover .server-pill {
  background: rgba(0, 229, 255, 0.15);
  transform: translateY(-1px);
}

.chevron-icon {
  font-size: 8px;
  color: var(--cyan);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.conn-tag.clickable:hover .chevron-icon {
  opacity: 1;
}

.highlight-cyan { color: var(--cyan); }
.highlight-green { color: var(--green); }

.conn-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
}

/* MODAL STYLES */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  background: #0b1421;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s;
}

.modal.is-open .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.header-title p {
  color: #7f91a5;
  font-size: 0.85rem;
}

.modal-close {
  background: none;
  border: none;
  color: #7f91a5;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}

/* SERVER CATEGORIES & CARDS */
.server-category {
  margin-bottom: 30px;
}

.server-category h4 {
  color: #4a5a6e;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.server-card {
  position: relative;
  background: rgba(11, 20, 33, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.server-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, var(--hover-color, rgba(255,255,255,0.1)) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}

.server-card:hover {
  border-color: var(--hover-color, rgba(0, 229, 255, 0.3));
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0,0,0,0.5);
}

.server-card:hover::before {
  opacity: 0.15;
}

.server-card.is-selected {
  background: rgba(0, 229, 255, 0.05);
  border-color: var(--cyan);
  box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.1);
}

.server-icon {
  position: relative;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 1;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.05);
}

.server-card:hover .server-icon {
  transform: scale(1.05);
}

/* GAME LOGOS (CSS ART & TYPOGRAPHY) */

/* League of Legends */
.server-lol-br { --hover-color: #C89B3C; }
.server-lol-br .server-icon {
  background: linear-gradient(135deg, #0A1428, #050a14);
  color: #C89B3C;
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  text-shadow: 0 0 10px rgba(200, 155, 60, 0.5);
  border-color: rgba(200, 155, 60, 0.3);
}

/* Valorant */
.server-valorant-br { --hover-color: #FF4655; }
.server-valorant-br .server-icon {
  background: #111;
  color: #FF4655;
  font-family: 'Teko', sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  border-color: #FF4655;
}

/* Counter-Strike 2 */
.server-cs-br { --hover-color: #E48632; }
.server-cs-br .server-icon {
  background: linear-gradient(135deg, #E48632, #b55c11);
  color: #111;
  font-family: 'Black Ops One', cursive;
  font-size: 1.1rem;
  letter-spacing: -1px;
}

/* Fortnite */
.server-fortnite-br { --hover-color: #00e5ff; }
.server-fortnite-br .server-icon {
  background: linear-gradient(135deg, #1b004a, #0078d7);
  color: #fff;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.3rem;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

/* Roblox */
.server-roblox-br { --hover-color: #888; }
.server-roblox-br .server-icon {
  background: #222;
  color: #e0e0e0;
  font-family: 'Roboto Mono', monospace;
  font-weight: 900;
  font-size: 1.1rem;
  border: 2px solid #555;
}

/* Cloud Providers */
.server-aws-sp, .server-aws-us-east, .server-aws-us-west, .server-aws-uk, .server-aws-jp { --hover-color: #FF9900; }
.server-aws-sp .server-icon, .server-aws-us-east .server-icon, .server-aws-us-west .server-icon, .server-aws-uk .server-icon, .server-aws-jp .server-icon {
  color: #FF9900;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  border-bottom: 3px solid #FF9900; /* Imitates the smile */
  border-radius: 12px 12px 6px 6px;
}

.server-gcp-sp { --hover-color: #4285F4; }
.server-gcp-sp .server-icon {
  color: #4285F4;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  text-shadow: 1px 1px 0 #EA4335, -1px -1px 0 #FBBC05;
}

.server-ora-for { --hover-color: #F80000; }
.server-ora-for .server-icon {
  color: #F80000;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  border: 2px solid #F80000;
  border-radius: 6px;
}

.server-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.server-name {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.server-provider {
  color: #7f91a5;
  font-size: 0.75rem;
}

/* SHIMMER EFFECT */
.shimmer {
  background: #1a273b;
  background-image: linear-gradient(
    to right,
    #1a273b 0%,
    #25344d 20%,
    #1a273b 40%,
    #1a273b 100%
  );
  background-repeat: no-repeat;
  background-size: 800px 100%;
  display: inline-block;
  position: relative;
  animation-duration: 1.5s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-name: shimmer;
  animation-timing-function: linear;
}

@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}

.skeleton-card {
  height: 72px;
  border-radius: 12px;
  width: 100%;
}

.halo-spectrum {
  position: relative;
  width: calc(var(--pin-radius) * 2 + 50px);
  height: calc(var(--pin-radius) * 2 + 50px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.halo-pins {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.halo-pin {
  --angle: 0deg;
  --pin-height: 12px;
  --pin-color: #1a273b;
  position: absolute;
  left: calc(50% - 2.5px);
  bottom: 50%;
  width: 5px;
  height: var(--pin-height);
  border-radius: 999px;
  background: var(--pin-color);
  transform-origin: 50% 100%;
  transform: rotate(var(--angle)) translateY(calc(-1 * var(--pin-radius)));
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.halo-pin.is-active {
  background: var(--pin-color);
  box-shadow: 0 0 16px var(--pin-color), 0 0 6px var(--pin-color);
}

.ping-orb {
  position: relative;
  width: var(--orb-size);
  height: var(--orb-size);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #151b29 0%, #06090f 80%);
  border: 3px solid var(--cyan);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.4),
              inset 0 0 40px rgba(0, 229, 255, 0.15);
  animation: orb-glow 3s ease-in-out infinite;
}

@keyframes orb-glow {
  0%, 100% {
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4),
                inset 0 0 40px rgba(0, 229, 255, 0.15);
  }
  50% {
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.6),
                inset 0 0 60px rgba(0, 229, 255, 0.25),
                0 0 80px rgba(0, 229, 255, 0.2);
  }
}



.orb-button {
  position: relative;
  z-index: 10;
  padding: 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: btn-pulse 2.5s ease-in-out infinite;
}

@keyframes btn-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.03);
  }
}

.orb-button:hover {
  color: var(--cyan);
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
  transform: scale(1.05);
  animation: none; /* Para a pulsação ao fazer hover */
}

.ping-readout {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-5px);
}

.ping-readout strong {
  color: #ffffff;
  font-size: 5.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ms-label {
  color: #3b82f6;
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 2px;
}

.ping-readout small {
  color: #7f91a5;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  margin-top: 8px;
}

/* RIGHT COLUMN */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-right.visible {
  opacity: 1;
}

.result-title {
  color: var(--cyan);
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.result-subtitle {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
}

.result-subtitle span.excelente { color: var(--green); }
.result-subtitle span.boa { color: var(--blue); }
.result-subtitle span.regular { color: var(--yellow); }
.result-subtitle span.ruim { color: var(--red); }

.result-insight {
  max-width: 280px;
  color: #a8b6c7;
  font-size: 0.86rem;
  line-height: 1.45;
}

.result-text {
  color: #899aad;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.new-test-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #08101e;
  border: 1px solid #1e3a8a;
  color: var(--blue);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: fit-content;
}

.new-test-btn svg {
  color: var(--blue);
}

.new-test-btn:hover:not(:disabled) {
  background: #0d1a2e;
  border-color: #2563eb;
  color: #60a5fa;
}

.new-test-btn:hover:not(:disabled) svg {
  color: #60a5fa;
}

/* QUALITY PANEL */
.quality-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 16px auto 0;
  width: 100%;
  max-width: 800px;
}

.quality-heading {
  color: #f1f5f9;
  font-size: 1.05rem;
  font-weight: 700;
}

.quality-bar-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.quality-bar-wrapper {
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
}

.quality-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00e676 0%, #00e5ff 35%, #ffea00 65%, #ff9100 85%, #ff1744 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15),
              0 0 15px rgba(0, 229, 255, 0.15);
}

.quality-marker {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: #02050a;
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.9), 
              inset 0 0 6px rgba(0, 229, 255, 0.4);
  transition: left 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quality-marker::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--cyan);
  filter: drop-shadow(0 -2px 5px rgba(0, 229, 255, 0.8));
}

.quality-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 8px;
}

.quality-labels span:nth-child(1) { color: #00e676; }
.quality-labels span:nth-child(2) { color: #00e5ff; }
.quality-labels span:nth-child(3) { color: #ffea00; }
.quality-labels span:nth-child(4) { color: #ff1744; }

/* METRICS PANEL */
.metrics-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  margin-top: 16px;
}

.metric-card {
  background: #080d15;
  border: 1px solid #151e2d;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-media { background: rgba(59, 130, 246, 0.1); color: var(--blue); }
.icon-jitter { background: rgba(59, 130, 246, 0.1); color: var(--blue); }
.icon-min { background: rgba(34, 197, 94, 0.1); color: var(--green); }
.icon-max { background: rgba(239, 68, 68, 0.1); color: var(--red); }

.metric-data {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  color: #7f91a5;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metric-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.metric-value strong {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.metric-value small {
  color: #7f91a5;
  font-size: 0.95rem;
  font-weight: 600;
}

/* FEATURES PANEL */
.features-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #080d15;
  border: 1px solid #151e2d;
  border-radius: 12px;
  margin-top: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  position: relative;
}

.feature-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.icon-rapido svg { color: var(--blue); }
.icon-confiavel svg { color: var(--green); }
.icon-preciso svg { color: var(--yellow); }
.icon-transparente svg { color: var(--red); }

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.feature-text p {
  font-size: 0.8rem;
  color: #7f91a5;
  line-height: 1.5;
}

/* FOOTER */
.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(430px, auto) minmax(260px, 0.9fr);
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 229, 255, 0.09), transparent 34%),
    linear-gradient(135deg, rgba(8, 13, 21, 0.92), rgba(3, 8, 15, 0.76));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  color: #64748b;
  font-size: 0.85rem;
}

.footer-brand {
  max-width: 390px;
  text-align: left;
}

.footer-brand strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--cyan);
  font-size: 1rem;
  line-height: 1.2;
}

.footer-brand strong::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.75);
}

.footer-brand p {
  margin: 0;
  max-width: 32rem;
  color: #91a5bd;
  line-height: 1.55;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 16px;
  background: rgba(2, 5, 10, 0.34);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  color: #a9bbd1;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(0, 229, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.12);
  transform: translateY(-1px);
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  max-width: 100%;
  padding: 9px 10px 9px 14px;
  border: 1px solid rgba(0, 229, 255, 0.26);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(41, 121, 255, 0.08));
  color: var(--cyan);
  box-shadow: 0 0 26px rgba(0, 229, 255, 0.08), inset 0 0 0 1px rgba(0, 229, 255, 0.035);
}

.footer-contact a {
  color: #e8fbff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.copy-email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.copy-email-btn:hover,
.copy-email-btn.is-copied {
  border-color: rgba(0, 229, 255, 0.48);
  background: rgba(0, 229, 255, 0.16);
  color: #ffffff;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 30px;
  }
  .hero-left, .hero-right {
    align-items: center;
    padding: 0;
  }
  .features-panel {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --orb-size: 250px;
    --pin-radius: 138px;
  }

  body {
    padding: 0 4vw 2vh;
  }
  .site-shell {
    min-height: auto; /* Deixa fluir naturalmente no mobile */
  }
  .topbar {
    position: relative;
    z-index: 101; /* Fica por cima do menu overlay */
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
  }
  .brand {
    flex: unset;
  }
  .hamburger {
    display: flex;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 102;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: -4vw;
    width: 100vw;
    background: #02050a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 4vw 25px;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    z-index: 100;
    box-sizing: border-box;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  }
  .nav-links a {
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #c0cdd8;
    width: 100%;
    text-align: left;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
    border-left: none;
    border-radius: 0;
    line-height: normal;
    text-transform: none;
    letter-spacing: normal;
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
  .nav-links a.active, .nav-links a:active {
    color: var(--cyan);
    background: transparent;
    text-shadow: none;
  }
  .nav-dropdown {
    width: 100%;
    order: 4;
  }
  .nav-links > a {
    order: 1;
    color: var(--cyan);
    font-weight: 600;
  }
  .nav-links > a[href="/historico.html"] {
    order: 2;
  }
  .nav-links > a[href="/sobre.html"] {
    order: 3;
  }
  .nav-links > a.active {
    color: var(--cyan);
  }
  .nav-dropdown-trigger {
    color: var(--cyan) !important;
    border-bottom: none !important;
    padding: 18px 0 8px !important;
  }
  .nav-dropdown-trigger::after {
    display: none;
  }
  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    padding: 0 0 4px 14px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-dropdown-menu a {
    padding: 10px 0;
    color: #c0cdd8;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 0;
    white-space: normal;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    transform: none;
  }
  .nav-links.is-open {
    display: flex;
    animation: fadeInMenu 0.2s ease forwards;
  }
  
  @keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .nav-spacer {
    display: none;
  }
  .hero-layout {
    flex: unset;
    gap: 26px;
  }
  .hero-left {
    display: flex;
    text-align: center;
    align-items: center;
    margin-bottom: 0;
  }
  .hero-left h1 {
    font-size: 1.6rem;
    white-space: normal;
  }
  .hero-left p {
    font-size: 0.85rem;
    max-width: 34rem;
  }

  .hero-center {
    width: 100%;
  }

  .halo-spectrum {
    max-width: 100%;
    margin-top: 4px;
  }

  .ping-readout strong {
    font-size: 4.25rem;
  }

  .ms-label {
    font-size: 1.35rem;
  }

  /* No mobile, o connection-info fica visível normalmente na tela inicial.
     Quando o teste termina, o JS esconde ele e mostra um clone abaixo dos grids. */
  .connection-info {
    min-width: 100%;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: 
      "ip divider provider"
      "server server server";
    gap: 15px 0;
    padding: 16px 12px;
  }
  .connection-info > :nth-child(1) { grid-area: ip; }
  .connection-info > :nth-child(2) { grid-area: divider; }
  .connection-info > :nth-child(3) { grid-area: provider; }
  .connection-info > :nth-child(4) { display: none; }
  .connection-info > :nth-child(5) { 
    grid-area: server; 
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Connection-info quando clonado abaixo dos grids (só durante resultados) */
  .connection-info-mobile {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: 
      "ip divider provider"
      "server server server";
    align-items: center;
    gap: 15px 0;
    padding: 16px 12px;
    margin-top: 16px;
    background: rgba(8, 13, 21, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    width: 100%;
  }
  .connection-info-mobile > :nth-child(1) { grid-area: ip; }
  .connection-info-mobile > :nth-child(2) { grid-area: divider; }
  .connection-info-mobile > :nth-child(3) { grid-area: provider; }
  .connection-info-mobile > :nth-child(4) { display: none; }
  .connection-info-mobile > :nth-child(5) { 
    grid-area: server; 
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .connection-info-mobile .conn-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
  }
  .connection-info-mobile .conn-tag-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #4a5a6e;
    text-transform: uppercase;
  }
  .connection-info-mobile .conn-tag-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #c0cdd8;
  }
  .connection-info-mobile .conn-tag-sub {
    font-size: 0.7rem;
    color: #4a5a6e;
  }
  .connection-info-mobile .conn-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.08);
  }
  .connection-info-mobile .server-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 20px;
    padding: 6px 16px;
  }

  /* Bento Grids — Impedir overflow */
  .metrics-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    overflow: hidden;
  }
  .metric-card {
    padding: 14px 12px;
    gap: 10px;
    align-items: center;
    text-align: center;
    flex-direction: column;
    min-width: 0; /* Chave para impedir o overflow do grid */
  }
  .metric-icon {
    width: 40px;
    height: 40px;
  }
  .metric-value strong {
    font-size: 1.4rem;
  }
  .metric-value small {
    font-size: 0.8rem;
  }

  .features-panel {
    grid-template-columns: 1fr 1fr;
    margin-top: 10px;
  }
  .feature-item {
    padding: 16px 12px;
    gap: 10px;
  }
  .feature-text strong {
    font-size: 0.85rem;
  }
  .feature-text p {
    font-size: 0.72rem;
  }
  .quality-bar-wrapper {
    height: 24px;
  }
  .quality-marker {
    width: 20px;
    height: 20px;
    border-width: 3px;
  }
  .quality-marker::before {
    top: -12px;
    border-top-width: 6px;
  }
  .hero-right {
    gap: 8px;
    /* Colapsa o painel quando invisível pra não criar espaço morto */
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: max-height 0.4s ease, opacity 0.5s;
  }
  .hero-right[style*="opacity: 1"] {
    max-height: 500px;
  }
  .result-title {
    font-size: 1.2rem;
  }
  .result-insight {
    max-width: 24rem;
    font-size: 0.95rem;
    line-height: 1.45;
  }
  .result-text {
    display: none;
  }
  .new-test-btn {
    margin-top: 6px;
  }
  .site-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
    text-align: left;
  }
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
    gap: 8px;
    padding: 8px;
  }
  .footer-links a {
    font-size: 0.9rem;
    justify-content: flex-start;
    padding: 0 12px;
  }
  .footer-contact {
    justify-self: start;
    max-width: 100%;
  }
  .footer-contact a {
    overflow-wrap: anywhere;
  }
}

/* ==========================================================================
   PÁGINA DE HISTÓRICO
   ========================================================================== */
.history-layout {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
  width: 100%;
}

.history-header {
  text-align: center;
  margin-bottom: 40px;
}

.history-header h1 {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.history-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.clear-btn {
  background: rgba(255, 0, 50, 0.1);
  border: 1px solid rgba(255, 0, 50, 0.3);
  color: #ff4d4d;
  padding: 8px 20px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-btn:hover {
  background: rgba(255, 0, 50, 0.2);
  border-color: rgba(255, 0, 50, 0.5);
  box-shadow: 0 0 15px rgba(255, 0, 50, 0.2);
}

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

.history-card {
  background: rgba(8, 13, 21, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.history-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 229, 255, 0.15);
}

.history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.history-server {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cyan);
  letter-spacing: -0.01em;
}

.history-server small {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 3px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.history-date {
  font-size: 0.85rem;
  color: #64748b;
}

.history-card-body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
}

.stat-value.highlight {
  color: var(--cyan);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.stat-value small {
  font-size: 0.7rem;
  color: #64748b;
}

.quality-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quality-box[data-quality="Excelente"] {
  color: #00ff88;
  border-color: rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.05);
}

.quality-box[data-quality="Boa"] {
  color: #00e5ff;
  border-color: rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.05);
}

.quality-box[data-quality="Instável"] {
  color: #ffaa00;
  border-color: rgba(255, 170, 0, 0.3);
  background: rgba(255, 170, 0, 0.05);
}

.quality-box[data-quality="Ruim"] {
  color: #ff4d4d;
  border-color: rgba(255, 77, 77, 0.3);
  background: rgba(255, 77, 77, 0.05);
}

.empty-history {
  text-align: center;
  padding: 60px 20px;
  background: rgba(8, 13, 21, 0.4);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.empty-history p {
  color: #64748b;
  font-size: 1.1rem;
}

/* Mobile Responsiveness for History */
@media (max-width: 768px) {
  .history-card-body {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .history-layout {
    padding: 24px 0;
  }
  .history-header h1 {
    font-size: 2rem;
  }
  .history-header p {
    font-size: 0.95rem;
  }
  .history-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* --- ABOUT PAGE STYLES --- */
.about-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%;
}

.about-header {
  text-align: center;
  margin-bottom: 50px;
}

.about-header h1 {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.about-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.about-section {
  background: rgba(8, 13, 21, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
}

.about-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 15px;
  letter-spacing: -0.01em;
}

.about-section p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 15px;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-section code {
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .about-layout {
    padding: 24px 0;
  }

  .about-header {
    margin-bottom: 28px;
  }

  .about-header h1 {
    font-size: 2rem;
  }

  .about-header p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .about-content {
    gap: 18px;
  }

  .about-section {
    padding: 22px;
  }

  .about-section h2 {
    font-size: 1.25rem;
  }

  .about-section p {
    font-size: 0.96rem;
  }
}

/* --- SEO FAQ --- */
.seo-faq {
  width: min(1100px, calc(100% - 32px));
  margin: 32px auto 0;
}

.seo-faq-inner {
  background: rgba(8, 13, 21, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 28px;
}

.seo-faq h2 {
  margin: 0 0 20px;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: 0;
}

.seo-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.seo-faq article {
  min-width: 0;
}

.seo-faq h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--cyan);
  letter-spacing: 0;
}

.seo-faq p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.seo-faq a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
}

.seo-faq a:hover {
  text-decoration: underline;
}

/* --- GUIDE PAGES --- */
.guide-layout {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 34px 0 28px;
}

.guide-hero {
  max-width: 820px;
  padding: 18px 0 30px;
}

.guide-kicker {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.guide-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 18px;
}

.guide-hero p {
  color: #a8b6c7;
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 760px;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.guide-primary-link,
.guide-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.guide-primary-link {
  color: #02050a;
  background: var(--cyan);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.22);
}

.guide-secondary-link {
  color: #dbeafe;
  background: rgba(8, 13, 21, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.guide-primary-link:hover,
.guide-secondary-link:hover {
  transform: translateY(-1px);
}

.guide-summary {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr;
  gap: 18px;
  margin: 8px 0 28px;
  padding: 24px;
  background: rgba(8, 13, 21, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.guide-section,
.diagnostic-panel,
.guide-tips article,
.myth-grid article {
  background: rgba(8, 13, 21, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.guide-summary-header h2 {
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.guide-summary-header p {
  color: #91a1b5;
  line-height: 1.58;
  font-size: 0.95rem;
}

.guide-summary-steps {
  display: grid;
  gap: 10px;
}

.guide-summary-steps article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 14px;
  padding: 14px;
  background: rgba(2, 5, 10, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.guide-summary-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan);
  font-weight: 900;
  line-height: 1;
}

.guide-summary-steps h3,
.guide-tips h3,
.myth-grid h3 {
  color: #f8fafc;
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 4px;
}

.guide-summary-steps p,
.guide-tips p,
.myth-grid p {
  color: #91a1b5;
  line-height: 1.58;
  font-size: 0.95rem;
}

.guide-section {
  padding: 30px;
  margin-top: 18px;
}

.guide-section h2 {
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1.25;
  margin-bottom: 14px;
}

.guide-section > p {
  color: #a8b6c7;
  font-size: 1rem;
  line-height: 1.72;
}

.diagnostic-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.07);
}

.diagnostic-panel div {
  padding: 24px;
  background: #080d15;
}

.diagnostic-panel strong {
  display: block;
  color: var(--cyan);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.diagnostic-panel span {
  display: block;
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.diagnostic-panel p {
  color: #91a1b5;
  line-height: 1.58;
}

.guide-tips,
.myth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guide-tips article,
.myth-grid article {
  padding: 22px;
}

.guide-table {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.guide-table > div {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 0;
}

.guide-table > div + div {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-table span {
  padding: 16px;
  color: #a8b6c7;
  line-height: 1.45;
}

.guide-table span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-table-head span {
  color: var(--cyan);
  font-weight: 800;
  background: rgba(0, 229, 255, 0.06);
}

.ping-rating-table .ping-row span:nth-child(2) {
  font-weight: 900;
}

.ping-rating-table .ping-row span:nth-child(2)::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  vertical-align: 1px;
}

.ping-rating-table .ping-excellent span:nth-child(2) {
  color: #00e676;
  background: rgba(0, 230, 118, 0.06);
}

.ping-rating-table .ping-very-good span:nth-child(2) {
  color: #7cff6b;
  background: rgba(124, 255, 107, 0.06);
}

.ping-rating-table .ping-good span:nth-child(2) {
  color: #c8ff4d;
  background: rgba(200, 255, 77, 0.06);
}

.ping-rating-table .ping-medium span:nth-child(2) {
  color: #ffea00;
  background: rgba(255, 234, 0, 0.07);
}

.ping-rating-table .ping-regular span:nth-child(2) {
  color: #ffb300;
  background: rgba(255, 179, 0, 0.07);
}

.ping-rating-table .ping-bad span:nth-child(2) {
  color: #ff7043;
  background: rgba(255, 112, 67, 0.08);
}

.ping-rating-table .ping-very-bad span:nth-child(2) {
  color: #ff1744;
  background: rgba(255, 23, 68, 0.08);
}

.guide-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px 0 22px;
  padding-left: 22px;
  color: #a8b6c7;
  line-height: 1.6;
}

.guide-checklist li::marker {
  color: var(--cyan);
  font-weight: 800;
}

.guide-inline-cta {
  margin-top: 2px;
}

.guide-faq details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
}

.guide-faq details:last-child {
  padding-bottom: 0;
}

.guide-faq summary {
  color: #f8fafc;
  cursor: pointer;
  font-weight: 800;
}

.guide-faq p {
  color: #91a1b5;
  line-height: 1.65;
  margin-top: 10px;
}

.guide-sources p {
  color: #91a1b5;
  line-height: 1.65;
  margin-bottom: 16px;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 999px;
  color: #c7f7ff;
  background: rgba(0, 229, 255, 0.06);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

.source-links a:hover {
  border-color: rgba(0, 229, 255, 0.38);
  background: rgba(0, 229, 255, 0.1);
}

/* --- TRUST / LEGAL PAGES --- */
.trust-layout {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 34px 0 28px;
}

.trust-hero {
  max-width: 820px;
  padding: 18px 0 30px;
}

.trust-hero h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

.trust-hero p {
  max-width: 760px;
  color: #a8b6c7;
  font-size: 1.06rem;
  line-height: 1.7;
}

.trust-updated {
  margin-top: 16px;
  color: #6f8198 !important;
  font-size: 0.9rem !important;
}

.trust-highlight,
.trust-grid,
.contact-card {
  display: grid;
  gap: 16px;
}

.trust-highlight {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.trust-highlight > div,
.trust-section,
.trust-grid article,
.contact-card {
  background: rgba(8, 13, 21, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.trust-highlight > div,
.trust-section,
.trust-grid article {
  padding: 24px;
}

.trust-highlight strong,
.trust-section h2,
.trust-grid h2,
.contact-card h2 {
  color: #ffffff;
  font-size: 1.22rem;
  line-height: 1.25;
}

.trust-highlight strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
}

.trust-section {
  margin-top: 16px;
}

.trust-section h2,
.trust-grid h2,
.contact-card h2 {
  margin-bottom: 12px;
}

.trust-section p,
.trust-highlight p,
.trust-grid p,
.contact-card p {
  color: #a8b6c7;
  font-size: 0.98rem;
  line-height: 1.68;
}

.trust-section p + p {
  margin-top: 12px;
}

.trust-section a,
.trust-grid a,
.contact-card a {
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
}

.trust-section a:hover,
.trust-grid a:hover,
.contact-card a:hover {
  text-decoration: underline;
}

.trust-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-card {
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 28px;
  margin-bottom: 18px;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.18);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.12);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.contact-actions .guide-primary-link {
  color: #02050a;
  text-decoration: none;
}

.contact-actions .guide-primary-link:hover {
  color: #02050a;
  text-decoration: none;
}

.contact-actions .guide-secondary-link {
  cursor: pointer;
  font-family: inherit;
}

.contact-actions .copy-email-btn {
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .seo-faq-inner {
    padding: 22px;
  }

  .seo-faq-grid {
    grid-template-columns: 1fr;
  }

  .guide-layout {
    padding-top: 18px;
  }

  .guide-hero {
    text-align: left;
    padding-top: 8px;
  }

  .guide-hero p {
    font-size: 0.98rem;
  }

  .guide-tips,
  .myth-grid,
  .diagnostic-panel {
    grid-template-columns: 1fr;
  }

  .guide-summary {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .guide-section,
  .guide-tips article,
  .myth-grid article,
  .diagnostic-panel div {
    padding: 20px;
  }

  .guide-table {
    border-radius: 10px;
  }

  .guide-table > div {
    display: block;
  }

  .guide-table span {
    display: block;
    padding: 12px 14px;
  }

  .guide-table span + span {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .trust-layout {
    padding-top: 18px;
  }

  .trust-hero {
    text-align: left;
    padding-top: 8px;
  }

  .trust-hero p {
    font-size: 0.98rem;
  }

  .trust-highlight,
  .trust-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .trust-highlight > div,
  .trust-section,
  .trust-grid article,
  .contact-card {
    padding: 20px;
  }

  .contact-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }
}
