.nav-link.active {
  opacity: 1;
  background: rgba(31, 79, 255, 0.22);
  border: 1px solid rgba(31, 79, 255, 0.32);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.servers-hero {
  padding: 95px 56px 34px;
}

.servers-hero-copy {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.servers-hero-copy h1 {
  font-size: clamp(42px, 5vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.servers-hero-actions {
  margin-top: 24px;
}

.servers-stats-grid {
  margin: 34px auto 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.server-stat-card,
.server-public-note,
.server-card,
.servers-empty {
  background: radial-gradient(circle at top left, #181c3c 0, #10132b 42%, #090b1c 100%);
  border: 1px solid rgba(139, 148, 230, 0.26);
  box-shadow: var(--shadow-soft);
}

.server-stat-card {
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.server-stat-label {
  display: block;
  color: var(--text-sub);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.server-stat-card strong {
  font-size: 34px;
  line-height: 1;
}

.server-public-note {
  max-width: 980px;
  margin: 24px auto 0;
  border-radius: var(--radius-lg);
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.server-public-note h2 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.server-public-note p {
  color: var(--text-sub);
  line-height: 1.6;
  font-size: 15px;
}

.servers-section {
  padding-top: 38px;
}

.servers-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 26px;
}

.servers-toolbar h2 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.servers-refresh-box {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-sub);
  font-size: 14px;
  flex: 0 0 auto;
}

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

.server-card {
  min-height: 238px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.server-card.online {
  border-color: rgba(63, 224, 155, 0.34);
}

.server-card.offline {
  opacity: 0.78;
}

.server-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(31, 79, 255, 0.17), transparent 38%);
  pointer-events: none;
}

.server-icon-wrap {
  position: relative;
  z-index: 1;
}

.server-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(139, 148, 230, 0.32);
  background: rgba(4, 7, 24, 0.72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.server-card-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.server-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.server-card h3 {
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 5px;
  word-break: break-word;
}

.server-ip {
  color: #dce5ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  word-break: break-all;
}

.server-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-online {
  color: #06180f;
  background: var(--success);
}

.status-offline {
  color: #ffffff;
  background: var(--danger, #ff5c7a);
}

.server-motd {
  color: var(--text-sub);
  line-height: 1.45;
  font-size: 15px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.server-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.server-meta-item {
  border: 1px solid rgba(139, 148, 230, 0.2);
  border-radius: 14px;
  background: rgba(4, 7, 24, 0.45);
  padding: 10px;
  min-width: 0;
}

.server-meta-item span {
  display: block;
  color: var(--text-sub);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

.server-meta-item strong {
  display: block;
  font-size: 14px;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text-sub);
  font-size: 13px;
}

.copy-ip-btn {
  border: 1px solid rgba(112, 122, 214, 0.55);
  border-radius: 999px;
  background: rgba(13, 18, 51, 0.92);
  color: var(--text-main);
  padding: 7px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.copy-ip-btn:hover {
  background: rgba(31, 79, 255, 0.28);
  transform: translateY(-1px);
}

.servers-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.servers-empty {
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: center;
  color: var(--text-sub);
}

.server-card.skeleton {
  min-height: 238px;
  background: linear-gradient(110deg, rgba(16, 19, 43, 0.85), rgba(31, 79, 255, 0.13), rgba(16, 19, 43, 0.85));
  background-size: 220% 100%;
  animation: servers-skeleton 1.25s ease-in-out infinite;
}

@keyframes servers-skeleton {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

@media (max-width: 1000px) {
  .servers-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .servers-refresh-box {
    width: 100%;
    justify-content: space-between;
  }

  .servers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .servers-hero {
    padding: 62px 20px 30px;
  }

  .servers-stats-grid,
  .server-public-note {
    grid-template-columns: 1fr;
  }

  .server-card {
    grid-template-columns: 1fr;
  }

  .server-card-top {
    flex-direction: column;
  }

  .server-meta-grid {
    grid-template-columns: 1fr;
  }

  .server-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .copy-ip-btn {
    width: 100%;
    justify-content: center;
  }
}
