/* Hide Homepage's top widgets; VPS state now lives in the VPS cards. */
.information-widget-resource,
.information-widget-search,
.information-widget-datetime {
  display: none !important;
}

#information-widgets {
  display: none !important;
}

/* Clickable service cards: subtle lift and focus ring. */
a[href^="https://pinkcici.ddnsfree.com/traffic"] {
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

a[href^="https://pinkcici.ddnsfree.com/traffic"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
}

a[href^="https://pinkcici.ddnsfree.com/traffic"]:focus-visible {
  outline: 2px solid rgb(88, 166, 255);
  outline-offset: 3px;
}

.service-card:has(a[href$="/traffic/racknerd.html"]),
.service-card:has(a[href$="/traffic/dotdot.html"]) {
  min-width: 0;
  min-height: 230px;
  padding: 10px !important;
  border: 1px solid rgba(148, 163, 184, .24);
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035)) !important;
}

.services-group:has(.codex-vps-card) .services-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.services-group:has(.codex-vps-card) .service {
  min-width: 0;
}

.service-card:has(a[href$="/traffic/racknerd.html"]):hover,
.service-card:has(a[href$="/traffic/dotdot.html"]):hover {
  border-color: var(--codex-vps-accent, rgb(88, 166, 255));
  transform: translateY(-3px);
}

.service-card:has(a[href$="/traffic/racknerd.html"]) .service-title,
.service-card:has(a[href$="/traffic/dotdot.html"]) .service-title {
  align-items: flex-start;
  margin-bottom: 8px;
}

.service-card:has(a[href$="/traffic/racknerd.html"]) .service-icon,
.service-card:has(a[href$="/traffic/dotdot.html"]) .service-icon {
  width: 44px;
  padding-top: 4px;
}

.service-card:has(a[href$="/traffic/racknerd.html"]) .service-name,
.service-card:has(a[href$="/traffic/dotdot.html"]) .service-name {
  font-size: 14px;
  line-height: 1.35;
  padding-top: 6px;
  padding-bottom: 5px;
}

.service-card:has(a[href$="/traffic/racknerd.html"]) .service-description,
.service-card:has(a[href$="/traffic/dotdot.html"]) .service-description {
  margin-top: 3px;
  line-height: 1.35;
}

.service-card:has(a[href$="/traffic/racknerd.html"]) > .service-container,
.service-card:has(a[href$="/traffic/dotdot.html"]) > .service-container {
  display: none !important;
}

.codex-vps-details {
  display: grid;
  gap: 9px;
  padding: 0 2px 2px;
}

.codex-vps-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.codex-vps-chip {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 6px;
  background: rgba(15, 23, 42, .34);
}

.codex-vps-chip span,
.codex-vps-row span,
.codex-vps-row small {
  display: block;
  color: rgba(203, 213, 225, .72);
  font-size: 10px;
  line-height: 1.2;
}

.codex-vps-chip strong {
  display: block;
  margin-top: 3px;
  color: rgb(241, 245, 249);
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
}

.codex-vps-row {
  display: grid;
  gap: 5px;
}

.codex-vps-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.codex-vps-row-head strong {
  color: rgb(241, 245, 249);
  font-size: 12px;
  line-height: 1;
}

.codex-vps-row i {
  display: block;
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 999px;
  background: rgba(15, 23, 42, .70);
}

.codex-vps-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 350ms ease;
}

@media (max-width: 430px) {
  .service-card:has(a[href$="/traffic/racknerd.html"]),
  .service-card:has(a[href$="/traffic/dotdot.html"]) {
    min-height: 292px;
    padding: 8px !important;
  }

  .codex-vps-summary {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .codex-vps-chip {
    padding: 6px 7px;
  }

  .codex-vps-chip strong {
    font-size: 12px;
  }

  .codex-vps-row-head {
    gap: 5px;
  }
}
