:root {
  --bg: #070707;
  --surface: rgba(10, 11, 12, 0.76);
  --surface-alt: rgba(22, 20, 18, 0.78);
  --text: #eef5ff;
  --muted: #bdc7d7;
  --accent: #00FF7F;
  --accent-strong: #32FF99;
  --accent-dark: #00CC66;
  --border: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(4, 5, 7, 0.26) 0%, rgba(5, 6, 8, 0.48) 46%, rgba(3, 4, 5, 0.74) 100%),
    radial-gradient(circle at 18% 12%, rgba(0, 255, 127, 0.16), transparent 26%),
    radial-gradient(circle at 84% 20%, rgba(255, 211, 117, 0.14), transparent 24%),
    url("img/l2.jpg") center top / cover fixed no-repeat,
    #050607;
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.14) 46%, rgba(0, 0, 0, 0.44) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.48) 100%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 3px;
  opacity: 0.18;
  pointer-events: none;
}

.container {
  width: min(1480px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.site-header {
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(4, 5, 7, 0.92), rgba(4, 5, 7, 0.78));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.34);
}

.header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-mark {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #07101e;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 0 34px rgba(0, 255, 127, 0.28);
}

.brand h1 {
  margin: 0;
  font-size: 1.3rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}

.header-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.header-nav a.active {
  color: var(--accent);
}

.header-nav a:hover {
  color: var(--accent);
}

.hero {
  padding: 4rem 0 2.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.02;
  max-width: 58rem;
  text-shadow: 0 5px 28px rgba(0, 0, 0, 0.72);
}

.hero-text {
  max-width: 44rem;
  margin: 1.25rem 0 0;
  color: #d7deec;
  line-height: 1.8;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero-summary {
  display: grid;
  gap: 1rem;
}

.summary-card {
  padding: 1.4rem;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12, 13, 15, 0.78), rgba(9, 10, 11, 0.68));
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  display: grid;
  gap: 0.5rem;
  backdrop-filter: blur(16px);
}

.summary-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
}

.server-board {
  margin-top: 1.5rem;
}

.server-board-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.server-board-header h2 {
  margin: 0;
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
}

.server-board-header p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.server-filters input {
  width: 100%;
  max-width: 360px;
  padding: 1rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 127, 0.28);
  background: rgba(8, 10, 11, 0.86);
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
  background: rgba(6, 7, 8, 0.68);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.server-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1360px;
}

.server-table thead {
  background: rgba(13, 16, 17, 0.94);
}

.server-table th,
.server-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.server-table th {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.server-table tbody tr {
  transition: transform 0.2s ease, background 0.2s ease;
}

.server-table tbody tr:hover {
  transform: translateY(-2px);
  background: rgba(0, 255, 127, 0.1);
}

.server-table td {
  color: var(--text);
}

.server-name-cell {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 12rem;
}

.server-name-details {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.server-avatar {
  width: 5.6rem;
  height: 2.45rem;
  flex: 0 0 5.6rem;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid rgba(0, 255, 127, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.server-row-banner {
  width: 4.5rem;
  height: 5rem;
  border-radius: 10px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.server-description {
  max-width: 34rem;
  min-width: 24rem;
  color: #e0e6f1;
  line-height: 1.6;
  white-space: normal;
}

.vote-control {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
}

.vote-count {
  min-width: 2.2rem;
  color: var(--text);
  font-weight: 800;
}

.vote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 127, 0.35);
  background: rgba(0, 255, 127, 0.12);
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.vote-button:hover:not(:disabled) {
  background: rgba(0, 255, 127, 0.2);
}

.vote-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.status {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 255, 127, 0.16);
  color: #d7ffe9;
  font-weight: 700;
  font-size: 0.88rem;
}

.cta {
  display: inline-flex;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #051029;
  text-decoration: none;
  font-weight: 700;
}

.server-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 8px;
  background: radial-gradient(circle at top left, rgba(0, 255, 127, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(14, 15, 16, 0.84), rgba(8, 9, 10, 0.78));
  border: 1px solid var(--border);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
}

.server-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 42%);
}

.server-card > * {
  position: relative;
}

.server-banner {
  width: min(100%, 270px);
  height: 300px;
  margin: 0 auto 1.2rem;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
}

.server-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.server-card-avatar {
  width: 178px;
  max-width: 100%;
  height: 78px;
  flex: 0 0 178px;
  border-radius: 10px;
  object-fit: contain;
  border: 1px solid rgba(0, 255, 127, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.server-card h3 {
  margin: 0;
  font-size: 1.45rem;
}

.server-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.server-card .meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
}

.server-card .meta .status {
  color: #90f5a0;
}

.server-card p {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: #e0e6f1;
}

.server-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.server-card .card-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.server-card .cta {
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #07101e;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.server-card .extra {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.section-copy {
  color: var(--muted);
  max-width: 52rem;
  line-height: 1.8;
}

.submit-section {
  margin: 3rem 0 4rem;
  padding: 2.25rem;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12, 13, 14, 0.82), rgba(8, 9, 10, 0.76));
  border: 1px solid var(--border);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.75rem, 2.7vw, 2.4rem);
}

.server-form {
  display: grid;
  gap: 1.25rem;
}

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

.form-row {
  display: grid;
  gap: 0.55rem;
}

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

label {
  color: var(--muted);
  font-size: 0.95rem;
}

.field-hint {
  color: var(--muted);
  font-size: 0.85rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.34);
  color: var(--text);
  font: inherit;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%),
    linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) calc(1em + 2px), calc(100% - 0.7rem) calc(1em + 2px);
  background-size: 0.45em 0.45em, 0.45em 0.45em;
  background-repeat: no-repeat;
}

select option {
  color: var(--text);
  background: rgba(11, 18, 33, 0.98);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #07101e;
  font-weight: 700;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.note {
  margin-top: 1rem;
  color: var(--muted);
}

.payment-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.2rem;
  border: 1px solid rgba(0, 255, 127, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.12), rgba(255, 255, 255, 0.06));
}

.payment-notice p:last-child {
  margin: 0;
  color: #dce6f3;
  line-height: 1.6;
}

.payment-notice .button {
  flex: 0 0 auto;
  text-decoration: none;
}

.empty-state {
  color: var(--muted);
  padding: 2rem 1rem;
}

.site-footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 960px) {
  .server-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .header-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  html,
  body {
    background-attachment: scroll;
  }

  .site-header {
    padding-top: 1rem;
  }

  .hero {
    padding: 2rem 0 1rem;
  }

  .hero-copy h2 {
    font-size: 2.4rem;
  }

  .server-board-header {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions {
    justify-content: stretch;
  }

  .payment-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-notice .button {
    width: 100%;
  }
}
