:root[style*="--force-mobile: 1"] .desktop-nav {
  display: none !important;
}
:root[style*="--force-mobile: 1"] .mobile-menu-toggle {
  display: flex !important;
}
:root[style*="--force-mobile: 1"] .mobile-nav-menu {
  display: block !important;
}
html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}
html.menu-open {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
}
body.menu-open {
  position: fixed;
  inset: 0;
  overflow: hidden;
  width: 100%;
  overscroll-behavior: none;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.nav-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 40px;
  max-width: 1200px;
  width: 100%;
  padding: 0 15px;
}
.nav-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
  padding: 0 32px;
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.speedtest-logo {
  width: auto;
  height: 16px;
  color: #fff;
  transition: color 0.2s ease;
}
.speedtest-logo:hover {
  color: #00d9ff;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: 0 0;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.nav-button:hover {
  background: rgba(0, 217, 255, 0.1);
  color: #00d9ff;
  transform: translateY(-1px);
}
.nav-button.is-active,
.nav-button[aria-current="page"] {
  color: #00d9ff;
  background: rgba(0, 217, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(0, 217, 255, 0.22);
}
.nav-button.is-active:hover,
.nav-button[aria-current="page"]:hover {
  background: rgba(0, 217, 255, 0.18);
  color: #33e3ff;
}
.nav-button:active {
  transform: translateY(0);
}
.nav-button span {
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: color 0.2s ease;
  color: inherit;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.nav-button.is-active span,
.nav-button[aria-current="page"] span {
  font-weight: 600;
}
.nav-icon.home-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M12 2.1L1 12h3v9h5v-6h4v6h5v-9h3L12 2.1z'/%3E%3C/svg%3E");
}
.nav-icon.ranking-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M16 6L18.29 8.29L13.41 13.17L9.41 9.17L2 16.59L3.41 18L9.41 12L13.41 16L19.71 9.71L22 12V6H16Z'/%3E%3C/svg%3E");
}
.nav-icon.help-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z'/%3E%3C/svg%3E");
}
.social-icon {
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.social-icon.twitter-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b3b3b3'%3E%3Cpath d='M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z'/%3E%3C/svg%3E");
}
.social-icon.facebook-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b3b3b3'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E");
}
body {
  background: #1a1d2e;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
}
.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: center;
}
.speedometer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.speedometer {
  width: 100%;
  max-width: 500px;
  height: 400px;
  position: relative;
  margin-bottom: 20px;
}
.data-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}
.speed-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.stat-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.stat-label {
  font-size: clamp(14px, 3vw, 18px);
  color: #9ca3af;
  font-weight: 400;
  min-width: 80px;
  flex-shrink: 0;
}
.stat-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.stat-value {
  font-size: clamp(28px, 5.5vw, 36px);
  color: #fff;
  font-weight: 300;
  min-width: 70px;
  width: 70px;
  text-align: right;
  flex-shrink: 0;
}
.chart-container {
  height: 50px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  flex: 1;
  min-width: 200px;
}
.ping-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  background: rgba(42, 45, 71, 0.3);
  padding: 15px;
  border-radius: 12px;
  flex-wrap: wrap;
  gap: 15px;
}
.ping-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  flex: 1;
}
.ping-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 70px;
}
.ping-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ping-value {
  font-size: clamp(14px, 3vw, 18px);
  color: #fff;
  font-weight: 400;
  min-width: 30px;
  text-align: center;
}
.ping-label {
  font-size: clamp(11px, 2.5vw, 14px);
  color: #9ca3af;
  text-align: center;
}
.jitter-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.jitter-label {
  font-size: clamp(11px, 2.5vw, 14px);
  color: #9ca3af;
}
.jitter-value {
  font-size: clamp(18px, 4vw, 28px);
  color: #fff;
  font-weight: 300;
}
.ip-info-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0 10px;
  padding: 12px 16px;
  background: rgba(42, 45, 71, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ip-compact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  font-size: clamp(13px, 3vw, 16px);
  min-width: 0;
}
.ip-compact-icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
  flex-shrink: 0;
  color: #00d9ff;
}
.ip-compact-text {
  color: #fff;
  font-weight: 400;
  min-width: 0;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.test-title {
  text-align: center;
  font-size: clamp(20px, 4vw, 28px);
  color: #fff;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 400;
}
.refresh-icon {
  width: clamp(20px, 4vw, 24px);
  height: clamp(20px, 4vw, 24px);
  opacity: 0.7;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.refresh-icon:hover {
  transform: rotate(180deg);
}
.connectivity-tests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  justify-content: center;
}
.test-item {
  background: #2a2d47;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #363a56;
  width: 100%;
  min-width: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease,
    background 0.18s ease;
}
.test-item:hover {
  transform: translateY(-2px);
  background: #303450;
  border-color: rgba(0, 217, 255, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.test-item.timeout {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
}
.test-item.timeout:hover {
  background: rgba(220, 38, 38, 0.15);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}
.test-item.timeout .test-latency {
  color: #f87171;
}
.test-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.test-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.test-name {
  color: #fff;
  font-size: clamp(13px, 2.8vw, 16px);
  font-weight: 500;
  max-width: 100%;
  min-width: 0;
  position: relative;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (hover: hover) and (pointer: fine) {
  .test-name::after,
  .test-latency-text::after {
    content: attr(data-full-text);
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 12;
    max-width: 220px;
    padding: 6px 10px;
    border: 1px solid rgba(0, 217, 255, 0.18);
    border-radius: 8px;
    background: rgba(16, 21, 43, 0.96);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }
  .test-name:hover::after,
  .test-latency-text:hover::after {
    opacity: 1;
    transform: translateY(0);
  }
}
.test-latency {
  color: #9ca3af;
  font-size: clamp(11px, 2.5vw, 14px);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.test-latency-text {
  flex: 1;
  min-width: 0;
  position: relative;
  display: block;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.signal-bars {
  display: flex;
  gap: 1px;
  align-items: flex-end;
  flex-shrink: 0;
}
.signal-bar {
  width: 3px;
  background: #00d9ff;
  border-radius: 1px;
}
.signal-bar:nth-child(1) {
  height: 4px;
}
.signal-bar:nth-child(2) {
  height: 7px;
}
.signal-bar:nth-child(3) {
  height: 10px;
}
.signal-bar:nth-child(4) {
  height: 13px;
}
.start-test-btn,
.stop-test-btn {
  margin-top: 15px;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: clamp(14px, 3vw, 16px);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}
.start-test-btn {
  background: linear-gradient(135deg, #00d9ff, #0095ff);
  box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
}
.start-test-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 217, 255, 0.4);
}
.stop-test-btn {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  box-shadow: 0 4px 12px rgba(255, 65, 108, 0.3);
}
.stop-test-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 65, 108, 0.4);
}
.el-button--primary {
  background: linear-gradient(135deg, #00d9ff, #0095ff);
  border: none;
}
.el-button--danger {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  border: none;
}
.noodle {
  position: relative;
  width: 85%;
  max-width: 600px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin: 25px auto 35px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.25);
}
.noodle-progress {
  height: 100%;
  border-radius: 12px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, #00e5cc, #00b8d4);
  box-shadow: 0 0 8px rgba(0, 229, 204, 0.45);
  position: relative;
}
.noodle-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  animation: shimmer 2s infinite;
  border-radius: 12px;
}
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
.bandwidth-display {
  text-align: center;
  margin: 30px 0;
  padding: 15px;
  background: rgba(42, 45, 71, 0.3);
  border-radius: 12px;
  border: 2px solid #00d9ff;
}
.bandwidth-text {
  font-size: clamp(16px, 4vw, 20px);
  color: #00d9ff;
  font-weight: 500;
}
.footer {
  background: #1a1a1a;
  color: #fff;
  margin-top: 60px;
  padding: 48px 0 24px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-sections {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-section {
  display: flex;
  flex-direction: column;
}
.footer-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}
.footer-title:hover {
  color: #00d9ff;
}
.footer-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 24px 0 12px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-link {
  color: #b3b3b3;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.3s ease;
  cursor: pointer;
}
.footer-link:hover {
  color: #00d9ff;
}
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #b3b3b3;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.social-link:hover {
  background: #00d9ff;
  color: #fff;
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.copyright-text {
  color: #b3b3b3;
  font-size: 12px;
  line-height: 1.6;
}
.copyright-text p {
  margin: 0;
}
.footer-legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.legal-link {
  color: #b3b3b3;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s ease;
  cursor: pointer;
}
.legal-link:hover {
  color: #00d9ff;
}
.jitter-label-with-help,
.ping-label-with-help {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}
.help-icon {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  cursor: pointer;
  transition: all 0.2s ease;
  filter: brightness(0) saturate(100%) invert(62%) sepia(98%) saturate(378%)
    hue-rotate(176deg) brightness(96%) contrast(94%);
}
.help-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}
.el-tooltip__popper.is-dark {
  background: rgba(0, 0, 0, 0.9) !important;
  border: 1px solid rgba(0, 217, 255, 0.3) !important;
  color: #fff !important;
  max-width: 200px !important;
  padding: 12px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  word-wrap: break-word !important;
  white-space: normal !important;
  text-align: left !important;
}
.el-tooltip__popper.is-dark br {
  line-height: 1.6 !important;
}
.el-tooltip__popper.is-dark .el-tooltip__arrow::before {
  background: rgba(0, 0, 0, 0.9) !important;
  border: 1px solid rgba(0, 217, 255, 0.3) !important;
}
.el-tooltip__popper .el-tooltip__content {
  white-space: normal !important;
  word-wrap: break-word !important;
}
.language-dropdown {
  position: relative;
  display: inline-block;
}
.language-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: 0 0;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.language-toggle:hover {
  background: rgba(0, 217, 255, 0.1);
  color: #00d9ff;
  transform: translateY(-1px);
}
.language-toggle:active {
  transform: translateY(0);
}
.dropdown-arrow {
  transition: transform 0.2s ease;
  color: inherit;
  flex-shrink: 0;
}
.language-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}
.language-dropdown.is-open .dropdown-arrow {
  transform: rotate(180deg);
}
.language-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(26, 29, 46, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 12px;
  margin-top: 8px;
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  min-width: 180px;
  max-height: 400px;
  overflow-y: auto;
}
.language-dropdown:hover .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.language-dropdown.is-open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.language-menu li {
  margin: 0;
}
.language-menu a {
  display: block;
  padding: 10px 16px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  border-radius: 0;
}
.language-menu a:hover {
  background: rgba(0, 217, 255, 0.1);
  color: #00d9ff;
}
.language-menu a.active {
  background: rgba(0, 217, 255, 0.2);
  color: #00d9ff;
  font-weight: 600;
}
.language-menu::-webkit-scrollbar {
  width: 4px;
}
.language-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}
.language-menu::-webkit-scrollbar-thumb {
  background: rgba(0, 217, 255, 0.3);
  border-radius: 2px;
}
.language-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 217, 255, 0.5);
}
@media (max-width: 1024px) {
  .nav-container {
    margin: 15px auto 30px;
    padding: 0 10px;
    overflow: visible;
  }
  .nav-content {
    height: 48px;
    gap: 8px;
    padding: 0 16px;
    width: 100%;
    overflow: visible;
    justify-content: flex-start;
    align-items: center;
  }
  .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    z-index: 10;
    height: 40px;
    display: flex;
    align-items: center;
  }
  .speedtest-logo {
    width: auto;
    height: 20px;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  .mobile-nav-menu {
    display: block;
  }
  .container {
    display: flex;
    flex-direction: column;
    padding: 15px 12px;
  }
  .container > * {
    order: 1;
  }
  .main-content {
    order: 2;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
  }
  .noodle {
    order: 3;
    width: 90%;
    height: 5px;
    margin: 20px auto 25px;
  }
  .bandwidth-display {
    order: 4;
  }
  .test-title {
    order: 5;
  }
  .connectivity-tests {
    order: 6;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
  }
  .speedometer {
    width: 100%;
    max-width: 400px;
    height: 320px;
  }
  .ping-stats {
    padding: 12px;
    flex-direction: column;
    gap: 12px;
  }
  .ping-group {
    justify-content: space-around;
    width: 100%;
    gap: 10px;
  }
  .ping-item {
    min-width: 60px;
  }
  .jitter-section {
    margin-top: 10px;
  }
  .test-item {
    padding: 10px;
    gap: 8px;
  }
  .test-icon {
    width: 28px;
    height: 28px;
  }
  .ip-info-compact {
    margin: 15px 0 8px;
    padding: 10px 12px;
  }
  .ip-compact-item {
    gap: 6px;
    font-size: clamp(12px, 3vw, 14px);
  }
  .ip-compact-icon {
    width: 16px;
    height: 16px;
  }
  .footer {
    padding: 32px 0 20px;
  }
  .footer-content {
    padding: 0 16px;
  }
  .footer-sections {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }
  .footer-bottom {
    padding-top: 20px;
  }
  .footer-legal-links {
    flex-direction: column;
    gap: 12px;
  }
  .speed-stats {
    display: none;
  }
  .stat-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }
  .stat-label {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
    min-width: auto;
    flex-shrink: 0;
  }
  .stat-value {
    font-size: clamp(24px, 4.5vw, 30px);
    color: #fff;
    font-weight: 300;
    min-width: 70px;
    width: 70px;
    text-align: right;
    flex-shrink: 0;
  }
  .chart-container {
    height: 45px;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 4px;
  }
  .stat-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .help-icon {
    width: 12px;
    height: 12px;
  }
  .el-tooltip__popper.is-dark {
    max-width: 220px !important;
    padding: 14px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    text-align: left !important;
  }
}
@media (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  .mobile-nav-menu {
    display: block !important;
  }
  .nav-container {
    margin: 15px auto 30px;
    padding: 0 10px;
    overflow: visible !important;
    display: block !important;
  }
  .nav-content {
    height: 48px;
    gap: 8px;
    padding: 0 16px;
    width: 100%;
    overflow: visible !important;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
  }
  .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    z-index: 10;
    height: 40px;
    display: flex;
    align-items: center;
  }
  .speedtest-logo {
    width: auto;
    height: 20px;
  }
}
@media (max-width: 768px) {
  .nav-container {
    padding: 0 8px;
    overflow: hidden;
  }
  .nav-content {
    height: 44px;
    gap: 6px;
    padding: 0 12px;
    width: 100%;
    overflow: hidden;
    justify-content: center;
    align-items: center;
  }
  .nav-logo {
    font-size: 16px;
    gap: 6px;
  }
  .speedtest-logo {
    height: 14px;
  }
  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
  }
  .hamburger {
    width: 20px;
    height: 16px;
  }
  .desktop-nav {
    display: none !important;
  }
  .mobile-nav-menu {
    display: block !important;
  }
  .mobile-nav-content {
    padding: 16px;
  }
  .mobile-nav-item {
    padding: 12px 0;
  }
  .mobile-language .language-toggle {
    padding: 8px 0;
    font-size: 14px;
  }
  .container {
    padding: 12px 8px;
  }
  .main-content {
    gap: 20px;
  }
  .noodle {
    width: 95%;
  }
  .bandwidth-display {
    margin: 20px 0;
    padding: 12px;
  }
  .test-title {
    font-size: clamp(18px, 4vw, 24px);
  }
  .connectivity-tests {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 6px;
  }
  .speedometer {
    max-width: 360px;
    height: 300px;
  }
  .ping-stats {
    padding: 10px;
  }
  .ping-group {
    gap: 8px;
  }
  .ping-item {
    min-width: 50px;
    gap: 4px;
  }
  .test-item {
    padding: 8px;
    gap: 6px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .test-details {
    width: 100%;
    align-items: center;
  }
  .test-name {
    width: auto;
    max-width: 100%;
    text-align: center;
  }
  .test-latency {
    width: auto;
    max-width: 100%;
    justify-content: center;
  }
  .test-latency-text {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 22px);
  }
  .test-icon {
    width: 24px;
    height: 24px;
  }
  .ip-info-compact {
    margin: 15px 0 10px;
    padding: 12px 16px;
    border-radius: 10px;
  }
  .ip-compact-item {
    gap: 8px;
    font-size: clamp(14px, 3.5vw, 16px);
  }
  .ip-compact-icon {
    width: 18px;
    height: 18px;
  }
  .footer {
    padding: 24px 0 16px;
  }
  .footer-sections {
    gap: 24px;
    margin-bottom: 24px;
  }
  .social-links {
    justify-content: flex-start;
  }
  .speed-stats {
    display: none;
  }
  .stat-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
  }
  .stat-label {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    min-width: auto;
  }
  .stat-value {
    font-size: clamp(24px, 4.5vw, 30px);
    color: #fff;
    font-weight: 300;
    min-width: 70px;
    width: 70px;
    text-align: right;
    flex-shrink: 0;
  }
  .chart-container {
    height: 40px;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 2px;
  }
  .stat-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  .help-icon {
    width: 11px;
    height: 11px;
  }
  .el-tooltip__popper.is-dark {
    max-width: 200px !important;
    padding: 12px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    text-align: left !important;
  }
  .mobile-only {
    display: block;
  }
  .desktop-only {
    display: none;
  }
  .result-summary-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0 25px;
    gap: 20px;
    width: 100%;
  }
  .result-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 210, 0.4);
    padding: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
  }
  .result-circle:active {
    transform: scale(0.95);
  }
  .result-circle-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffd2 0%, #0ab1ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    font-weight: 500;
    letter-spacing: 1px;
  }
  .result-text-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .result-line {
    font-size: 14px;
    color: #8b92a5;
  }
  .result-line .highlight {
    color: #00ffd2;
    font-size: 20px;
    margin: 0 4px;
    font-weight: 700;
  }
  .mobile-only-controls {
    display: block;
  }
  .desktop-only-controls {
    display: none;
  }
  .compact-theme {
    color: #fff;
    font-family: -apple-system, sans-serif;
  }
  .compact-data-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .mt-10 {
    margin-top: 15px;
  }
  .speed-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }
  .speed-col-left {
    min-width: 100px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
  }
  .speed-label {
    font-size: 13px;
    color: #8b92a5;
  }
  .speed-val {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    font-family: "SF Pro Display", Arial, sans-serif;
  }
  .download-color {
    color: #00ffd2;
  }
  .upload-color {
    color: #bf71ff;
  }
  .speed-col-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    min-width: 0;
  }
  .traffic-label {
    font-size: 12px;
    color: #8b92a5;
  }
  .traffic-label span {
    font-weight: 700;
  }
  .chart-wrapper {
    width: 100%;
    height: 50px;
    position: relative;
  }
  .ping-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .ping-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .ping-header {
    font-size: 12px;
    color: #8b92a5;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .ping-val {
    font-size: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
  }
  .text-right {
    text-align: right;
    align-items: flex-end;
  }
  .justify-end {
    justify-content: flex-end;
  }
  .d-block {
    display: block;
    width: 100%;
  }
  .info-icon {
    width: 12px;
    height: 12px;
    cursor: pointer;
  }
  .ping-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
  }
  .ip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding: 5px 0;
  }
  .ip-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    flex: 1;
  }
  .location-icon {
    width: 22px;
    height: 22px;
    color: #8b92a5;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .ip-text-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  .ip-address {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .ip-location {
    font-size: 11px;
    color: #8b92a5;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .ip-right {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgb(161, 161, 170);
    cursor: pointer;
    margin-left: auto;
    padding-left: 6px;
    flex-shrink: 0;
    align-self: flex-start;
    white-space: nowrap;
  }
  .globe-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  .node-text {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
  }
}
@media (max-width: 480px) {
  .nav-container {
    padding: 0 6px;
    overflow: hidden;
  }
  .nav-content {
    width: 100%;
    overflow: hidden;
    padding: 0 8px;
    justify-content: center;
    align-items: center;
  }
  .nav-logo {
    font-size: 14px;
    height: 32px;
    display: flex;
    align-items: center;
  }
  .speedtest-logo {
    width: auto;
    height: 18px;
  }
  .mobile-menu-toggle {
    display: flex !important;
    height: 32px;
    width: 32px;
  }
  .hamburger {
    width: 18px;
    height: 14px;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-nav-menu {
    display: block;
  }
  .mobile-nav-content {
    padding: 50px 16px 30px;
    gap: 20px;
  }
  .mobile-nav-item {
    padding: 12px 16px;
    font-size: 15px;
  }
  .mobile-language {
    margin-top: 8px;
  }
  .mobile-language .language-toggle {
    padding: 12px 16px;
    font-size: 15px;
  }
  .container {
    display: flex;
    flex-direction: column;
  }
  .main-content {
    order: 2;
  }
  .noodle {
    order: 3;
    width: 95%;
  }
  .bandwidth-display {
    order: 4;
  }
  .test-title {
    order: 5;
  }
  .connectivity-tests {
    order: 6;
    grid-template-columns: 1fr 1fr;
  }
  .test-item {
    align-items: center;
  }
  .test-details {
    width: 100%;
    align-items: center;
  }
  .test-latency {
    width: auto;
    max-width: 100%;
    justify-content: center;
  }
  .test-latency-text {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 22px);
  }
  .speedometer {
    max-width: 320px;
    height: 280px;
  }
  .ping-group {
    flex-wrap: wrap;
    justify-content: center;
  }
  .speed-stats {
    display: none;
  }
  .stat-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  .stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
  }
  .stat-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    min-width: auto;
  }
  .stat-value {
    font-size: clamp(24px, 4.5vw, 30px);
    color: #fff;
    font-weight: 300;
    min-width: 70px;
    width: 70px;
    text-align: right;
    flex-shrink: 0;
  }
  .chart-container {
    height: 35px;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0;
  }
  .stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }
  .help-icon {
    width: 10px;
    height: 10px;
  }
  .ping-label-with-help,
  .jitter-label-with-help {
    gap: 2px;
  }
  .el-tooltip__popper.is-dark {
    max-width: 180px !important;
    padding: 10px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    text-align: left !important;
  }
}
@media (max-width: 768px) {
  .toast {
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    max-width: 280px;
    min-width: auto;
    width: auto;
  }
  .toast.show {
    transform: translateX(-50%) translateY(0);
  }
  .toast svg {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 480px) {
  .toast {
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px;
    font-size: 13px;
    max-width: 250px;
    min-width: auto;
    width: auto;
  }
  .toast.show {
    transform: translateX(-50%) translateY(0);
  }
  .toast svg {
    width: 18px;
    height: 18px;
  }
  .toast .mr-3 {
    margin-right: 10px;
  }
}
.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 48px;
}
.content-shell {
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(16, 21, 43, 0.85);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}
.hero-card {
  background: radial-gradient(circle at top left, rgba(0, 204, 255, 0.18), rgba(16, 21, 43, 0.96));
}
.eyebrow {
  margin-bottom: 12px;
  color: #00ccff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.content-shell h1,
.content-shell h2,
.content-shell h3,
.content-shell p,
.content-shell li,
.content-shell td,
.content-shell th {
  color: #fff;
}
.content-shell h1 {
  margin-bottom: 12px;
  font-size: 36px;
}
.content-shell h2 {
  margin-bottom: 18px;
  font-size: 24px;
}
.content-shell p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.info-card,
.faq-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}
.metric-value {
  color: #00ccff;
  font-size: 28px;
  font-weight: 700;
}
.tip-list {
  margin: 0;
  padding-left: 20px;
}
.tip-list li {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.82);
}
.faq-list {
  display: grid;
  gap: 16px;
}
.table-wrap {
  overflow-x: auto;
}
.ranking-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ranking-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(0, 204, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 204, 255, 0.08);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.ranking-pill:hover {
  border-color: rgba(0, 204, 255, 0.38);
  background: rgba(0, 204, 255, 0.16);
  transform: translateY(-1px);
}
.ranking-pill.is-active {
  border-color: rgba(0, 204, 255, 0.45);
  background: rgba(0, 204, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 204, 255, 0.12);
}
.ranking-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.ranking-section-head h2 {
  margin-bottom: 0;
}
.ranking-section-head p {
  max-width: 520px;
  margin: 0;
}
.ranking-table {
  width: 100%;
  border-collapse: collapse;
}
.ranking-table th,
.ranking-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  white-space: nowrap;
}
.ranking-provider-cell {
  max-width: 220px;
}
.ranking-provider-text {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ranking-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.ranking-pagination-summary {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}
.ranking-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ranking-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(0, 204, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 204, 255, 0.08);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}
.ranking-page-link:hover {
  border-color: rgba(0, 204, 255, 0.38);
  background: rgba(0, 204, 255, 0.16);
  transform: translateY(-1px);
}
.ranking-page-link.is-active {
  border-color: rgba(0, 204, 255, 0.45);
  background: rgba(0, 204, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 204, 255, 0.12);
}
.ranking-page-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  transform: none;
}
@media (max-width: 768px) {
  .ranking-pill {
    width: 100%;
  }
  .ranking-section-head {
    flex-direction: column;
  }
  .ranking-section-head p {
    max-width: none;
  }
  .ranking-pagination-wrap {
    align-items: stretch;
  }
  .ranking-pagination {
    width: 100%;
  }
  .ranking-page-link {
    flex: 1 1 calc(33.333% - 10px);
  }
  .ranking-provider-cell,
  .ranking-provider-text {
    max-width: 160px;
  }
}
.not-found-wrap {
  display: flex;
  min-height: calc(100vh - 140px);
  align-items: center;
  justify-content: center;
  padding: 120px 20px 48px;
}
.not-found-card {
  max-width: 760px;
  padding: 40px 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(16, 21, 43, 0.92);
  text-align: center;
}
.not-found-card h1 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 32px;
}
.not-found-card p {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.action-btn {
  display: inline-flex;
  min-width: 144px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #00ccff, #5a9cff);
  color: #0a1027;
  font-weight: 600;
  text-decoration: none;
}
.action-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
@media (max-width: 768px) {
  .content-shell {
    padding: 22px 18px;
  }
  .content-shell h1 {
    font-size: 28px;
  }
  .not-found-wrap {
    padding-top: 96px;
  }
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.mobile-menu-toggle {
  display: none;
  background: 0 0;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.mobile-nav-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 29, 46, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.hamburger {
  height: 15px;
  width: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: all 0.3s ease;
  position: relative;
}
.mobile-menu-toggle.active .hamburger {
  height: 15px;
}
.mobile-menu-toggle.active .hamburger span:nth-child(1) {
  position: absolute;
  top: 6.5px;
  transform: rotate(45deg);
}
.mobile-menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active .hamburger span:nth-child(3) {
  position: absolute;
  top: 6.5px;
  transform: rotate(-45deg);
}
.mobile-nav-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 40px;
  gap: 30px;
}
.mobile-nav-item {
  justify-content: center;
  padding: 16px 24px;
  font-size: 18px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(42, 45, 71, 0.3);
}
.mobile-nav-item:hover {
  background: rgba(0, 217, 255, 0.1);
  border-color: rgba(0, 217, 255, 0.3);
}
.mobile-nav-item.is-active,
.mobile-nav-item[aria-current="page"] {
  border-color: rgba(0, 217, 255, 0.38);
  background: rgba(0, 217, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(0, 217, 255, 0.16);
}
.mobile-language {
  width: 100%;
  max-width: 300px;
}
.mobile-language .language-toggle {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(42, 45, 71, 0.3);
}
.mobile-language .language-menu {
  position: static;
  opacity: 0;
  visibility: hidden;
  transform: none;
  margin-top: 0;
  width: 100%;
  max-height: 0;
  padding: 0;
  pointer-events: none;
  background: rgba(42, 45, 71, 0.5);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.mobile-language:hover .language-menu {
  opacity: 0;
  visibility: hidden;
  transform: none;
}
.mobile-language.is-open .language-menu,
.mobile-language.is-open:hover .language-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 12px;
  max-height: 250px;
  padding: 8px 0;
  pointer-events: auto;
}
.test-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}
.test-dialog {
  background: linear-gradient(145deg, #2a2d47, #1e2139);
  border-radius: 20px;
  padding: 32px;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  animation: slideIn 0.3s ease;
}
.test-dialog-header {
  text-align: center;
  margin-bottom: 24px;
}
.test-dialog-icon {
  margin-bottom: 16px;
}
.test-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(135deg, #00d9ff, #0095ff);
  box-shadow: 0 8px 20px rgba(0, 217, 255, 0.3);
}
.test-icon-wrapper.ping {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}
.test-icon-wrapper.download {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}
.test-icon-wrapper.upload {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}
.test-icon-wrapper.language {
  background: linear-gradient(135deg, #00d9ff, #2563eb);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}
.test-icon-wrapper svg {
  width: 32px;
  height: 32px;
  color: #fff;
}
.test-icon-wrapper::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: conic-gradient(from 0deg, transparent, currentColor, transparent);
  border-radius: 50%;
  animation: rotate 2s linear infinite;
  z-index: -1;
}
.test-dialog-title {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}
.test-dialog-description {
  font-size: 16px;
  color: #9ca3af;
  margin: 0;
  line-height: 1.5;
}
.test-dialog-content {
  margin-bottom: 24px;
}
.test-progress-info {
  margin-bottom: 20px;
}
.progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  color: #9ca3af;
}
.progress-percent {
  font-weight: 600;
  color: #00d9ff;
}
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d9ff, #0095ff);
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
}
.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 1.5s infinite;
}
.test-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.test-dialog-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.language-dialog {
  max-width: 420px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
}
.language-dialog-description {
  max-width: 320px;
  margin: 0 auto;
}
.language-dialog-footer {
  justify-content: center;
}
.dialog-close-btn,
.dialog-stop-btn,
.dialog-confirm-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
}
.dialog-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dialog-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.dialog-stop-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.dialog-stop-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}
.dialog-confirm-btn {
  background: linear-gradient(135deg, #00d9ff, #2563eb);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}
.dialog-confirm-btn:hover {
  background: linear-gradient(135deg, #14b8ff, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.36);
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes rotate {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  .test-dialog-overlay {
    padding: 16px;
  }
  .test-dialog {
    padding: 24px;
    max-width: 90vw;
  }
  .test-icon-wrapper {
    width: 56px;
    height: 56px;
  }
  .test-icon-wrapper svg {
    width: 28px;
    height: 28px;
  }
  .test-dialog-title {
    font-size: 20px;
  }
  .test-dialog-description {
    font-size: 14px;
  }
  .test-dialog-footer {
    flex-direction: column;
  }
  .dialog-close-btn,
  .dialog-stop-btn,
  .dialog-confirm-btn {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .test-dialog {
    padding: 20px;
    margin: 16px;
  }
  .test-icon-wrapper {
    width: 48px;
    height: 48px;
  }
  .test-icon-wrapper svg {
    width: 24px;
    height: 24px;
  }
  .test-dialog-title {
    font-size: 18px;
  }
  .test-dialog-description {
    font-size: 13px;
  }
  .stat-item {
    padding: 10px 12px;
  }
  .stat-label {
    font-size: 13px;
  }
  .stat-value {
    font-size: 14px;
  }
}
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(26, 29, 46, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 320px;
  min-width: 200px;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast .flex {
  display: flex;
}
.toast .items-center {
  align-items: center;
}
.toast .flex-shrink-0 {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toast .mr-3 {
  margin-right: 12px;
}
.toast .flex-1 {
  flex: 1;
}
.toast svg {
  width: 20px;
  height: 20px;
}
.toast img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(60%) sepia(96%) saturate(463%)
    hue-rotate(92deg) brightness(96%) contrast(87%);
  display: block;
  vertical-align: middle;
}
.toast .text-green-500 {
  color: #10b981;
}
.toast .text-blue-500 {
  color: #3b82f6;
}
.toast .text-purple-500 {
  color: #8b5cf6;
}
.toast .text-sm {
  font-size: 14px;
}
.toast .font-medium {
  font-weight: 500;
}
.mobile-only {
  display: none;
}
@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
  .desktop-only {
    display: none;
  }
}
.result-summary-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 25px;
  gap: 40px;
  width: 100%;
}
.result-circle {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 2px solid rgba(0, 255, 210, 0.4);
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.result-circle:hover {
  box-shadow: 0 0 25px rgba(0, 255, 210, 0.4);
}
.result-circle:active {
  transform: scale(0.95);
}
.result-circle-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #00ffd2 0%, #0ab1ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 4px;
  box-shadow: 0 6px 20px rgba(0, 255, 210, 0.5);
}
.result-text-area {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.result-line {
  font-size: 16px;
  color: #8b92a5;
}
.result-line .highlight {
  color: #00ffd2;
  font-size: 26px;
  margin: 0 8px;
  font-weight: 700;
}
