body.servers-page {
  background: #f4f8fb;
}

.servers-shell {
  padding-top: 145px;
  padding-bottom: 4rem;
}

.servers-hero {
  max-width: 1200px;
  margin: 0 auto 2.2rem;
  padding: 0 1rem;
}

.servers-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.servers-header-left {
  flex: 1 1 560px;
}

.servers-header-right {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 280px;
  margin-right: 120px;
}

.servers-header h1 {
  margin: 0 0 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
}

.servers-header p {
  max-width: 760px;
  margin: 0;
  color: #4b5563;
}

.servers-actions {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.servers-search {
  width: min(360px, 100%);
  padding: 0.85rem 1rem;
  border: 2px solid #4aa3df;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
}

.servers-cta {
  border: none;
  border-radius: 999px;
  background: #4aa3df;
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.servers-filter-wrap {
  position: relative;
}

.servers-filter-btn {
  border: 1px solid #4aa3df;
  border-radius: 999px;
  background: #fff;
  color: #0369a1;
  font-weight: 700;
  padding: 0.85rem 1rem;
}

.servers-filter-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 20;
  width: min(360px, 90vw);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.12);
  padding: 0.9rem;
  display: none;
}

.servers-filter-panel.open {
  display: block;
}

.servers-filter-title {
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.servers-filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.servers-filter-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.86rem;
}

.servers-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.servers-filter-actions button {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.servers-feedback {
  max-width: 1200px;
  margin: 0 auto 1rem;
  padding: 0 1rem;
}

.servers-alert {
  background: #dcfce7;
  color: #166534;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-weight: 600;
}

.servers-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
}

.server-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 22px;
  border: 1px solid rgba(74, 163, 223, 0.18);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.server-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  flex: 1 1 auto;
}

.server-title-block {
  min-width: 0;
}

.server-card-icon {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #0f172a;
  flex: 0 0 68px;
}

.server-card-icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 1.3rem;
}

.server-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.server-card-title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.9rem;
  line-height: 1.15;
}

.server-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #065f46;
}

.server-live::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
}

.server-live.offline {
  color: #6b7280;
}

.server-live.offline::before {
  background: #9ca3af;
}

.server-badges {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: -0.1rem;
}

.server-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.server-badge.sponsored {
  background: rgba(250, 204, 21, 0.2);
  color: #92400e;
}

.server-badge.verified {
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
}

.server-description {
  color: #374151;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.server-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: #4b5563;
  font-size: 0.95rem;
}

.server-ip-row {
  display: block;
  background: #eff6ff;
  border: 1px solid #d7e8ff;
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.server-ip-row code {
  font-size: 1.03rem;
  font-weight: 700;
  color: #1e3a8a;
}

.server-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.server-tag {
  background: #d9efff;
  color: #0a4b70;
  border-radius: 999px;
  padding: 0.34rem 0.74rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.server-action-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.server-action-btn {
  border: none;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.server-action-icon {
  width: 64px;
  height: 64px;
  background: #334155;
  color: #e2e8f0;
  font-size: 1.45rem;
}

.server-action-copy {
  margin-left: auto;
  min-width: 170px;
  height: 64px;
  background: #2f66df;
  color: #ffffff;
  font-size: 1.8rem;
}

.server-contact-line {
  color: #475569;
  font-size: 0.95rem;
}

.servers-empty {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.servers-empty-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  color: #4b5563;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.server-submit-shell {
  padding-top: 110px;
  padding-bottom: 4rem;
}

.server-submit-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1rem;
}

.server-submit-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.server-submit-card h1 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.75rem;
}

.server-submit-note {
  background: #eff6ff;
  border-left: 4px solid #4aa3df;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: #1e3a8a;
  margin-bottom: 1.5rem;
}

.server-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.server-form-grid .full {
  grid-column: 1 / -1;
}

.server-form-control,
.server-form-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

.server-form-textarea {
  min-height: 150px;
  resize: vertical;
}

.server-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.server-tag-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
}

.server-submit-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.server-submit-error {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

@media (max-width: 700px) {
  .servers-shell,
  .server-submit-shell {
    padding-top: 120px;
  }

  .servers-header h1 {
    font-size: 1.85rem;
  }

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

  .server-ip-row {
    margin-bottom: 0.2rem;
  }

  .servers-header-right {
    max-width: none;
    width: 100%;
    justify-content: flex-start;
    margin-right: 0;
  }

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

  .server-card-title {
    font-size: 1.55rem;
  }

  .server-badges {
    align-items: center;
  }

  .server-action-row {
    flex-wrap: wrap;
  }

  .server-action-icon {
    width: 58px;
    height: 58px;
  }

  .server-action-copy {
    margin-left: 0;
    width: 100%;
    height: 58px;
  }
}
