/* Modern Minimalist Page Styles for Download, Changelog, and Community */

.page-hero {
  padding: 48px 0 32px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.page-hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}

.release-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 14px;
  text-align: center;
}

/* ==========================================================================
   Redesigned Download Page
   ========================================================================== */
.download-featured-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(var(--brand-primary-rgb), 0.05) 100%);
  border: 1px solid var(--brand-primary);
  border-radius: var(--radius-card);
  padding: 32px 36px;
  margin: 28px auto 44px auto;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 0 30px rgba(var(--brand-primary-rgb), 0.08);
  position: relative;
  overflow: hidden;
}

.download-featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--brand-primary);
}

.featured-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.featured-icon {
  font-size: 2.8rem;
  line-height: 1;
}

.featured-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-primary);
}

.featured-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.featured-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Platform Matrix Grids & Horizontal Rows */
.platform-rows-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 44px;
  width: 100%;
}

.platform-row-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  width: 100%;
}

.platform-row-card:hover {
  border-color: rgba(var(--brand-primary-rgb), 0.4);
  box-shadow: var(--shadow-hover);
}

.platform-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 14px;
}

.platform-row-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.platform-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-row-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.platform-row-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
}

.package-horizontal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.package-card-horizontal {
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
  min-width: 0;
}

.package-card-horizontal:hover {
  border-color: var(--brand-primary);
  background: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.package-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pkg-format-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand-primary);
  background: rgba(var(--brand-primary-rgb), 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.pkg-rec-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.pkg-desc-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.package-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.package-card-file {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.package-card-horizontal .pkg-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.cli-box {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--badge-text);
}

.cli-box code {
  color: #E2E8F0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Checksum Box */
.checksum-card {
  max-width: 900px;
  margin: 0 auto 44px auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   GitHub Releases Style Assets List
   ========================================================================== */
.platform-sections-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 44px;
}

.gh-assets-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  width: 100%;
}

.gh-assets-header {
  padding: 16px 22px;
  background: var(--bg-app);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.gh-assets-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gh-assets-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.gh-assets-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 2px 0 0 0;
}

.gh-assets-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.gh-assets-list {
  display: flex;
  flex-direction: column;
}

.gh-asset-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
  gap: 18px;
  font-size: 0.88rem;
}

.gh-asset-row:last-child {
  border-bottom: none;
}

.gh-asset-row:hover {
  background: rgba(var(--brand-primary-rgb), 0.04);
}

.gh-asset-name-col {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gh-asset-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.gh-asset-link {
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-asset-link:hover {
  text-decoration: underline;
}

.gh-asset-size-col {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
}

.gh-asset-action-col {
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   About & Sponsor Page Styles (No Capsules, Modern Tech Aesthetics)
   ========================================================================== */
.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--brand-primary-rgb), 0.1);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.28);
  color: var(--brand-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.about-section {
  max-width: 960px;
  margin: 0 auto 52px auto;
}

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

.about-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.about-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.about-section-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 1. Core Pillars Grid */
.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.about-pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 24px 22px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.about-pillar-card:hover {
  border-color: rgba(var(--brand-primary-rgb), 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.about-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(var(--brand-primary-rgb), 0.1);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.22);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.about-pillar-body {
  flex: 1;
  min-width: 0;
}

.about-pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.about-pillar-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* 2. Tech Architecture & Foundations */
.about-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about-tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.about-tech-card:hover {
  border-color: rgba(var(--brand-primary-rgb), 0.35);
  box-shadow: var(--shadow-hover);
}

.about-tech-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: rgba(var(--brand-primary-rgb), 0.08);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.2);
  border-radius: 6px;
  margin-bottom: 12px;
}

.about-tech-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-tech-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* 3. Non-Financial Support Ways */
.about-ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about-way-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.about-way-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.about-way-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.about-way-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.about-way-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.about-way-action .btn {
  width: 100%;
  justify-content: center;
}

/* 4. Crypto Sponsorship Section */
.about-sponsor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 36px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.about-sponsor-card:hover {
  border-color: rgba(var(--brand-primary-rgb), 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.sponsor-qr-pane {
  width: 160px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sponsor-qr-img-box {
  width: 150px;
  height: 150px;
  background: #FFFFFF;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  margin-bottom: 10px;
}

.sponsor-qr-img-box img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 4px;
  object-fit: contain;
}

.sponsor-network-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: rgba(var(--brand-primary-rgb), 0.1);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.25);
  padding: 3px 10px;
  border-radius: 6px;
}

.sponsor-info-pane {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sponsor-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sponsor-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.sponsor-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.sponsor-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sponsor-meta-item code {
  color: var(--brand-primary);
  font-family: var(--font-mono);
  background: rgba(var(--brand-primary-rgb), 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.sponsor-addr-row {
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sponsor-addr-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.sponsor-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.sponsor-contact-row strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* 5. FAQ Grid */
.about-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about-faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast);
}

.about-faq-card:hover {
  border-color: rgba(var(--brand-primary-rgb), 0.4);
}

.about-faq-q {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.about-faq-a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Responsive Queries for Pages
   ========================================================================== */
@media (max-width: 1100px) {
  .package-horizontal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .download-featured-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  .featured-left {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .featured-actions {
    flex-direction: column;
    width: 100%;
  }
  .featured-actions .btn {
    width: 100%;
  }
  .checksum-card {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
  }
  .checksum-card .btn {
    width: 100%;
  }
}

@media (max-width: 960px) {
  .about-pillars-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .about-tech-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .about-ways-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .about-faq-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .about-sponsor-card {
    flex-direction: column;
    text-align: center;
    padding: 26px 18px;
    gap: 20px;
  }
  .sponsor-qr-pane {
    margin: 0 auto;
  }
  .sponsor-title {
    justify-content: center;
  }
  .sponsor-meta-row {
    justify-content: center;
  }
  .sponsor-addr-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .sponsor-addr-val {
    text-align: center;
  }
  .sponsor-addr-row .btn {
    width: 100%;
    justify-content: center;
  }
  .sponsor-contact-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .sponsor-contact-row .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 32px 0 20px 0;
  }
  .package-horizontal-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .platform-row-card {
    padding: 18px 14px;
  }
  .platform-row-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  /* 2-row layout for GitHub Assets on mobile */
  .gh-asset-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name name"
      "size action";
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
  }
  .gh-asset-name-col {
    grid-area: name;
  }
  .gh-asset-size-col {
    grid-area: size;
    text-align: left;
  }
  .gh-asset-action-col {
    grid-area: action;
  }
  .gh-asset-action-col .btn {
    padding: 5px 12px;
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   SpeedTest Page Styles - Modern Minimalist & Cyberpunk Cyan System
   ========================================================================== */
.speedtest-container {
  max-width: 1120px;
  margin: 0 auto 60px auto;
}

/* Page Hero text glow accent */
.page-hero h1[data-i18n="st.hero_title"] {
  text-shadow: 0 0 35px rgba(0, 218, 245, 0.45);
}

/* ==========================================================================
   SpeedTest Multi-Server Selector Bar
   ========================================================================== */
.speed-server-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px 26px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
}

.speed-server-bar:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

/* Server Left */
.speed-server-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.server-beacon-badge {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.beacon-outer-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 218, 245, 0.35);
  background: rgba(0, 218, 245, 0.08);
  box-shadow: 0 0 16px rgba(0, 218, 245, 0.25);
  animation: beaconPulse 2.8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes beaconPulse {
  0% { transform: scale(0.96); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; box-shadow: 0 0 22px rgba(0, 218, 245, 0.45); }
  100% { transform: scale(0.96); opacity: 0.8; }
}

.beacon-inner-dot {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00daf5 0%, #0088ff 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 218, 245, 0.6);
}

.server-info-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.server-status-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.01em;
}

.server-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #00daf5;
  flex-wrap: wrap;
}

.server-ping-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #00daf5;
  display: inline-flex;
  align-items: center;
}

/* Server Center */
.speed-server-center {
  flex-shrink: 0;
}

.server-switch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.server-switch-pill:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  transform: translateY(-1px);
}

/* Server Right */
.speed-server-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.server-world-map {
  width: 110px;
  height: 44px;
  display: flex;
  align-items: center;
  opacity: 0.85;
}

.server-world-map svg {
  width: 100%;
  height: 100%;
}

.global-nodes-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flight-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nodes-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nodes-badge-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.nodes-badge-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Server Selection Modal */
.server-drawer-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.server-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.server-drawer-content {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: var(--shadow-modal);
  transform: translateY(15px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.server-drawer-modal.is-open .server-drawer-content {
  transform: translateY(0) scale(1);
}

.server-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.server-drawer-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.server-node-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.server-node-item {
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-base);
}

.server-node-item:hover {
  border-color: rgba(var(--brand-primary-rgb), 0.5);
  background: rgba(var(--brand-primary-rgb), 0.04);
  transform: translateX(3px);
}

.server-node-item.is-selected {
  border-color: var(--brand-primary);
  background: rgba(var(--brand-primary-rgb), 0.08);
}

.node-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.node-flag-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.node-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.node-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.node-location {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.node-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.node-ping-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(var(--brand-primary-rgb), 0.1);
  color: var(--brand-primary-light);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.2);
}

.node-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.server-node-item.is-selected .node-radio {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
}

.server-node-item.is-selected .node-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
}

/* ==========================================================================
   Main 3-Column Testing Console
   ========================================================================== */
.speedtest-console {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 34px 38px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 240px 1fr 350px;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.speedtest-console.is-running {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 35px rgba(0, 218, 245, 0.08);
}

/* 1. Left Column: 5-Step Checklist */
.test-steps-col {
  display: flex;
  flex-direction: column;
}

.test-steps-list {
  display: flex;
  flex-direction: column;
}

.test-step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
  transition: all 0.2s ease;
}

.step-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-num {
  display: block !important;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1;
}

.step-check-svg {
  display: none !important;
}

.test-step-item.is-active .step-indicator {
  border-color: #0077ff;
  background: #0077ff;
  color: #FFFFFF;
  box-shadow: 0 0 18px rgba(0, 119, 255, 0.85);
  transform: scale(1.06);
}

.test-step-item.is-completed .step-indicator {
  border-color: #00daf5;
  background: rgba(0, 218, 245, 0.08);
  color: #00daf5;
  box-shadow: 0 0 10px rgba(0, 218, 245, 0.3);
}

.step-line {
  width: 2px;
  height: 22px;
  margin-left: 15px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  transition: background 0.3s ease;
}

.step-line.is-completed {
  background: #00daf5;
  box-shadow: 0 0 6px rgba(0, 218, 245, 0.6);
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.step-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.step-status {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s ease;
}

.test-step-item.is-active .step-status {
  color: #00daf5;
  font-weight: 600;
}

.test-step-item.is-completed .step-status {
  color: #10b981;
  font-weight: 600;
}

/* 2. Center Column: Speedometer Gauge */
.speed-gauge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.speed-gauge-wrap {
  position: relative;
  width: 290px;
  height: 245px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.speed-gauge-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gauge-plate-disc {
  fill: #070c18;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.7));
}

.gauge-plate-ring {
  fill: none;
  stroke: rgba(0, 218, 245, 0.12);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}

.gauge-bg-groove {
  fill: none;
  stroke: rgba(14, 22, 38, 0.9);
  stroke-width: 10;
  stroke-linecap: round;
}

.gauge-bg-spectrum {
  fill: none;
  stroke: url(#gaugeTrackGrad);
  stroke-width: 7.5;
  stroke-linecap: round;
  opacity: 0.22;
}

.gauge-progress-arc {
  fill: none;
  stroke: url(#gaugeTrackGrad);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 401.4;
  stroke-dashoffset: 401.4;
  transition: stroke-dashoffset 0.08s cubic-bezier(0.1, 0.9, 0.2, 1);
  filter: drop-shadow(0 0 8px rgba(0, 220, 255, 0.7));
}

.gauge-tick-major {
  stroke-width: 2.2;
  stroke-linecap: round;
}

.gauge-tick-major.tick-cyan {
  stroke: #00daf5;
  filter: drop-shadow(0 0 4px rgba(0, 218, 245, 0.8));
}

.gauge-tick-major.tick-indigo {
  stroke: #818cf8;
  filter: drop-shadow(0 0 4px rgba(129, 140, 248, 0.8));
}

.gauge-tick-major.tick-violet {
  stroke: #c084fc;
  filter: drop-shadow(0 0 4px rgba(192, 132, 252, 0.8));
}

.gauge-tick-med {
  stroke-width: 1.5;
  stroke-linecap: round;
}

.gauge-tick-med.tick-cyan {
  stroke: rgba(0, 218, 245, 0.7);
}

.gauge-tick-med.tick-blue {
  stroke: rgba(59, 130, 246, 0.85);
  filter: drop-shadow(0 0 3px rgba(59, 130, 246, 0.6));
}

.gauge-tick-med.tick-indigo {
  stroke: rgba(129, 140, 248, 0.7);
}

.gauge-tick-med.tick-violet {
  stroke: rgba(192, 132, 252, 0.7);
}

.gauge-tick-minor {
  stroke: rgba(120, 180, 255, 0.32);
  stroke-width: 1.1;
  stroke-linecap: round;
}

.gauge-tick-label {
  fill: #94a9c9;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-anchor: middle;
  dominant-baseline: central;
  user-select: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9));
}

/* Futuristic Laser Pointer Needle (No tip ball) */
.gauge-needle {
  transform-origin: 140px 120px;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.08s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.needle-beam {
  stroke: #00daf5;
  stroke-width: 2.4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px #00daf5) drop-shadow(0 0 14px rgba(0, 218, 245, 0.8));
}

.needle-hub {
  fill: #00daf5;
  filter: drop-shadow(0 0 8px #00daf5);
}

.gauge-center-content {
  position: absolute;
  top: 96px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.gauge-speed-val {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #FFFFFF;
  line-height: 1;
  margin: 0;
  text-shadow: 0 0 24px rgba(0, 218, 245, 0.35), 0 2px 10px rgba(0, 0, 0, 0.8);
}

.gauge-speed-unit {
  font-size: 0.88rem;
  font-weight: 600;
  color: #8fa0bc;
  margin-top: 5px;
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

.gauge-phase-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #00daf5;
  background: transparent;
  padding: 0;
  transition: color var(--transition-fast);
}

.phase-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.speedtest-action-wrap {
  margin-top: 14px;
}

.btn-speed-radiant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 175px;
  padding: 13px 34px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0084ff 0%, #0060ff 100%);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 110, 255, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-speed-radiant:hover {
  background: linear-gradient(135deg, #0090ff 0%, #006cff 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 110, 255, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.24) inset;
}

.btn-speed-radiant.is-testing {
  background: linear-gradient(135deg, #007aff 0%, #0055ff 100%);
  box-shadow: 0 4px 26px rgba(0, 110, 255, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* 3. Right Column: Real-time Waveform Canvas & Progress Footer */
.speed-chart-col {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.speed-chart-card-inner {
  background: #080e1b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}

.speed-chart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.speed-chart-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.speed-chart-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.dot-down {
  background: #00daf5;
  box-shadow: 0 0 6px #00daf5;
}

.dot-up {
  background: #a855f7;
  box-shadow: 0 0 6px #a855f7;
}

.speed-chart-canvas-wrap {
  width: 100%;
  height: 135px;
  position: relative;
}

#speedWaveCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.speed-chart-footer {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.meta-tested strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 700;
}

.meta-percent {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #38bdf8;
}

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

.chart-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00daf5 0%, #0088ff 100%);
  box-shadow: 0 0 10px rgba(0, 218, 245, 0.7);
  transition: width 0.15s ease;
}

/* ==========================================================================
   4 Core Metrics Grid
   ========================================================================== */
.speed-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.speed-metric-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.speed-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.35);
}

.metric-accent-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3.5px;
}

.metric-accent-bar.accent-cyan {
  background: #00daf5;
  box-shadow: 0 0 10px #00daf5;
}

.metric-accent-bar.accent-blue {
  background: #0088ff;
  box-shadow: 0 0 10px #0088ff;
}

.metric-accent-bar.accent-purple {
  background: #a855f7;
  box-shadow: 0 0 10px #a855f7;
}

.metric-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

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

.icon-cyan {
  background: rgba(0, 218, 245, 0.12);
  color: #00daf5;
}

.icon-blue {
  background: rgba(0, 136, 255, 0.12);
  color: #38bdf8;
}

.icon-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
}

.metric-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.metric-body {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric-unit {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.metric-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Bottom 2-Card Row: Quality Evaluation & Network Info
   ========================================================================== */
.speed-bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

/* Left Card: Quality Evaluation */
.speed-quality-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.speed-quality-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
}

.quality-badge-wrap {
  flex-shrink: 0;
}

.quality-double-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.quality-double-ring svg {
  background: #10B981;
  border-radius: 50%;
  padding: 6px;
  width: 100%;
  height: 100%;
  display: block;
}

.quality-content {
  flex: 1;
  min-width: 0;
}

.quality-header-row {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.quality-rating-text {
  color: #10B981;
  margin-left: 2px;
}

.quality-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.quality-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quality-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.quality-tag.is-pass {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34D399;
}

.quality-tag .tag-check {
  color: #10B981;
  font-weight: 700;
}

/* Right Card: Network Info */
.speed-netinfo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}

.netinfo-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.netinfo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.netinfo-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.netinfo-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.netinfo-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .speedtest-console {
    grid-template-columns: 210px 1fr 300px;
    gap: 20px;
    padding: 28px 24px;
  }
  .netinfo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 900px) {
  .speedtest-console {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .test-steps-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .step-line {
    display: none;
  }
  .speed-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .speed-bottom-grid {
    grid-template-columns: 1fr;
  }
  .speed-server-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .speed-server-center,
  .speed-server-right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 580px) {
  .speed-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .speed-metric-card {
    padding: 16px 14px;
  }
  .metric-num {
    font-size: 1.6rem;
  }
  .netinfo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .speed-quality-card {
    flex-direction: column;
    text-align: center;
  }
  .quality-tags-row {
    justify-content: center;
  }
}

