@import "https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap";
:root {
  --primary-color: #0fc;
  --secondary-color: #00b3ff;
  --bg-color: #040b16;
  --surface-color: #0a192f;
  --surface-raised: #112240;
  --text-primary: #e6f1ff;
  --text-secondary: #8892b0;
  --danger-color: #f05;
  --success-color: #0f6;
  --gauge-bg: #0f62fe1a;
  --gauge-tick: #0f62fe;
  --font-family: "Montserrat", sans-serif;
  --border-color: #ffffff0d;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 #1cbfffb3;
  }
  70% {
    box-shadow: 0 0 0 20px #1cbfff00;
  }
  to {
    box-shadow: 0 0 #1cbfff00;
  }
}
.go-button-pulse {
  animation: 2s infinite pulse;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: var(--secondary-color);
}
.app-container {
  flex-direction: column;
  min-height: 100vh;
  display: flex;
}
.main-content {
  flex: 1;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
}
.sidebar {
  flex-direction: column;
  gap: 1rem;
  width: 160px;
  display: flex;
}
.sidebar.left-ad,
.sidebar.right-ad {
  display: none;
}
@media (width>=900px) {
  .sidebar.left-ad,
  .sidebar.right-ad {
    display: flex;
  }
}
.center-content {
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
  padding-top: 3rem;
  align-items: center;
  display: flex;
}
.top-ad-banner {
  width: 100%;
  max-width: 728px;
  margin: 0 auto 2rem;
}
.bottom-ad-banner {
  width: 100%;
  max-width: 728px;
  margin: 2rem auto 0;
}
.navbar {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  background-color: #141526cc;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  display: flex;
  position: sticky;
  top: 0;
}
.navbar-logo {
  color: var(--text-primary);
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
}
.navbar-links {
  gap: 1.5rem;
  display: flex;
}
.nav-link {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}
.ad-placeholder {
  background-color: var(--surface-raised);
  border: 1px dashed var(--border-color);
  color: var(--text-secondary);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  display: flex;
  position: relative;
}
.ad-placeholder:before {
  content: "ADVERTISEMENT";
  letter-spacing: 1px;
  opacity: 0.5;
  font-size: 0.6rem;
  position: absolute;
  top: 4px;
}
.speed-test-container {
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 800px;
  display: flex;
}
.metrics-panel {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  justify-content: space-around;
  width: 100%;
  margin-bottom: 2rem;
  padding: 1.5rem;
  display: flex;
}
.metric-item {
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  display: flex;
}
.metric-label {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  display: flex;
}
.metric-label .icon {
  width: 16px;
  height: 16px;
}
.metric-value {
  color: var(--text-primary);
  align-items: baseline;
  gap: 0.2rem;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
}
.metric-unit {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 400;
}
.go-button-container {
  justify-content: center;
  align-items: center;
  width: 250px;
  height: 250px;
  display: flex;
  position: relative;
}
.go-button {
  border: 4px solid var(--primary-color);
  width: 180px;
  height: 180px;
  color: var(--primary-color);
  cursor: pointer;
  z-index: 10;
  background: 0 0;
  border-radius: 50%;
  outline: none;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  font-weight: 700;
  transition: all 0.3s;
  display: flex;
}
.go-button:hover {
  background: #1cbfff1a;
  transform: scale(1.05);
}
.gauge-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(135deg);
}
.gauge-bg {
  fill: none;
  stroke: var(--surface-raised);
  stroke-width: 8px;
}
.gauge-progress {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 8px;
  stroke-linecap: round;
  transition:
    stroke-dashoffset 0.1s linear,
    stroke 0.3s;
}
.speed-display {
  z-index: 20;
  flex-direction: column;
  align-items: center;
  display: flex;
  position: absolute;
}
.speed-display .value {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}
.speed-display .unit {
  color: var(--text-secondary);
  font-size: 1.2rem;
}
.speed-display .stage {
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0.5rem;
  font-size: 1rem;
}
.server-info {
  color: var(--text-secondary);
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  display: flex;
}
.server-info strong {
  color: var(--text-primary);
}
