.servers-component {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  color: var(--text-color-1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 50%),
    var(--gradient-2-vertical);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.servers-title {
  margin: 0 0 14px;
  color: var(--text-color-1);
  font-size: 1.2rem;
  font-weight: 800;
}

.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 12px;
}

.server-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(167, 124, 255, 0.2);
  border-radius: 16px;
  background: rgba(10, 8, 24, 0.24);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.server-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 124, 255, 0.42);
  background: rgba(10, 8, 24, 0.33);
}

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

.server-title-group {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: flex-start;
}

.server-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(167, 124, 255, 0.22);
  border-radius: 12px;
  color: #c3a8ff;
  background: rgba(154, 108, 255, 0.09);
  font-size: 1.05rem;
}

.server-name {
  margin: 1px 0 0;
  color: var(--text-color-1);
  font-size: 1rem;
  font-weight: 850;
}

.server-description {
  max-width: 520px;
  margin: 5px 0 0;
  color: var(--text-color-6);
  font-size: 0.76rem;
  line-height: 1.45;
}

.server-status {
  display: inline-flex;
  gap: 6px;
  padding-top: 3px;
  align-items: center;
  flex: 0 0 auto;
  color: var(--text-color-6);
  font-size: 0.69rem;
  font-weight: 750;
}

.server-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.server-status.is-online .server-status-dot {
  background: #2ae72a;
  box-shadow: 0 0 8px rgba(42, 231, 42, 0.6);
}

.server-status.is-offline .server-status-dot {
  background: #e7402a;
  box-shadow: 0 0 8px rgba(231, 64, 42, 0.52);
}

.server-card-footer {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  padding-left: 54px;
  align-items: center;
  justify-content: space-between;
}

.server-players {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  color: var(--text-color-6);
  font-size: 0.71rem;
}

.server-players strong {
  color: var(--text-color-1);
  font-size: 0.84rem;
  font-weight: 850;
}

.server-players strong span {
  color: var(--text-color-6);
  font-weight: 700;
}

.server-details-button {
  display: inline-flex;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(167, 124, 255, 0.28);
  border-radius: 10px;
  color: var(--text-color-1) !important;
  background: rgba(154, 108, 255, 0.09);
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none !important;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.server-details-button:hover {
  transform: translateY(-1px);
  border-color: rgba(167, 124, 255, 0.5);
  background: rgba(154, 108, 255, 0.16);
}

.server-details-button span {
  color: #c3a8ff;
  font-size: 0.92rem;
  line-height: 1;
}

.servers-empty {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  color: var(--text-color-6);
  background: rgba(0, 0, 0, 0.12);
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  .servers-component {
    padding: 18px;
    border-radius: 18px;
  }

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

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

  .server-card-footer {
    padding-left: 54px;
  }

  .server-details-button {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .server-card-footer {
    padding-left: 0;
  }

  .server-title-group {
    width: 100%;
  }

  .server-status {
    padding-left: 54px;
  }
}
