:root {
  --bg: #07090d;
  --panel: #11111c;
  --text: #f6f8fb;
  --muted: #b9b6d3;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #a855ff;
  --accent-2: #6f7cff;
  --accent-hot: #d86cff;
  --gold: #f7c948;
  --red: #ff4d5d;
  --cyan: #7bdbff;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(168, 85, 255, 0.22), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(111, 124, 255, 0.18), transparent 28%),
    radial-gradient(circle at 56% 78%, rgba(216, 108, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #08070f 0%, #0d0d19 52%, #07090d 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  color: #efe3ff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.brand img {
  width: 116px;
  height: 48px;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 10px rgba(168, 85, 255, 0.58))
    drop-shadow(0 0 22px rgba(111, 124, 255, 0.26));
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong,
.hero h1,
.page-hero h1,
.section-heading h2 {
  font-family: Rajdhani, Inter, sans-serif;
  letter-spacing: 0;
}

.brand strong {
  color: #ffffff;
  font-size: 1.02rem;
  text-shadow: 0 0 16px rgba(168, 85, 255, 0.5);
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 12px;
  color: #d8e0e8;
  font-size: 0.86rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--text);
  border-color: rgba(168, 85, 255, 0.45);
  background: rgba(168, 85, 255, 0.13);
  box-shadow: 0 0 24px rgba(168, 85, 255, 0.12);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: 42px 0 34px;
}

.hero-copy,
.page-hero,
.section-heading {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  border: 1px solid rgba(168, 85, 255, 0.46);
  border-radius: 6px;
  padding: 8px 12px;
  color: #efe3ff;
  background: rgba(168, 85, 255, 0.13);
  font-size: 0.82rem;
  font-weight: 800;
}

.status-pill span,
.server-status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(168, 85, 255, 0.14), 0 0 16px rgba(216, 108, 255, 0.8);
}

.server-status.offline {
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(255, 77, 93, 0.13);
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.hero-text,
.page-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.7;
}

.page-hero {
  min-height: 42vh;
  align-content: center;
  padding: 54px 0 38px;
}

.page-hero.compact {
  min-height: 34vh;
}

.eyebrow,
.section-heading p {
  margin: 0;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.primary-btn,
.secondary-btn,
.download-card a,
.server-card a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-btn,
.download-card a,
.server-card a {
  color: #090713;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent-2));
  box-shadow: 0 16px 40px rgba(168, 85, 255, 0.28);
}

.secondary-btn {
  border: 1px solid rgba(168, 85, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.game-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 255, 0.28);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow), 0 0 42px rgba(111, 124, 255, 0.16);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.preview-top {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid var(--line);
}

.preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-top span:nth-child(1) {
  background: var(--red);
}

.preview-top span:nth-child(2) {
  background: var(--gold);
}

.preview-top span:nth-child(3) {
  background: var(--accent-2);
}

.game-preview img {
  display: block;
  width: 100%;
  min-height: 320px;
  max-height: 620px;
  object-fit: cover;
}

.live-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 10px 0 64px;
}

.live-panel article,
.download-card,
.server-card,
.loading-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 28, 0.78);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.live-panel article {
  display: grid;
  gap: 2px;
  padding: 20px;
}

.live-panel strong {
  font-family: Rajdhani, Inter, sans-serif;
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.live-panel span,
.download-card p,
.site-footer p,
.server-card p,
.server-card small {
  color: var(--muted);
}

.server-section {
  padding: 28px 0 72px;
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.download-grid,
.server-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.download-grid.standalone {
  padding-bottom: 72px;
}

.download-card,
.server-card,
.loading-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 250px;
  padding: 24px;
}

.download-card span,
.server-tags span {
  width: max-content;
  border-radius: 6px;
  padding: 6px 9px;
  color: #090713;
  background: linear-gradient(135deg, var(--cyan), #b77dff);
  font-size: 0.78rem;
  font-weight: 900;
}

.download-card h2,
.server-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.download-card p,
.server-card p {
  margin: 0;
  line-height: 1.65;
}

.download-card a,
.server-card a {
  width: max-content;
  margin-top: auto;
}

.server-card.is-featured {
  border-color: rgba(168, 85, 255, 0.58);
  background: linear-gradient(145deg, rgba(168, 85, 255, 0.17), rgba(17, 17, 28, 0.88));
}

.server-card-head,
.server-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.server-card-head {
  justify-content: flex-start;
}

.server-card-head strong {
  color: #efe3ff;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.server-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.server-meta span {
  color: var(--accent);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}

.site-footer span {
  font-weight: 900;
}

.site-footer p {
  margin: 0;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(22px, 5vw, 56px);
  align-items: start;
  padding: 58px 0 76px;
}

.checkout-summary,
.checkout-card,
.detail-panel,
.admin-toolbar,
.admin-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 28, 0.8);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.checkout-summary {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
  padding: 28px;
}

.checkout-summary h1 {
  margin: 0;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.checkout-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.price-box {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid rgba(168, 85, 255, 0.32);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(168, 85, 255, 0.17), rgba(17, 17, 28, 0.74));
}

.price-box span,
.price-box small {
  color: var(--muted);
}

.price-box strong {
  color: #fff;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 3.4rem;
  line-height: 1;
  text-shadow: 0 0 18px rgba(168, 85, 255, 0.54);
}

.checkout-card {
  padding: 28px;
}

.compact-heading {
  gap: 8px;
}

.compact-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.source-form {
  display: grid;
  gap: 16px;
}

.source-form label {
  display: grid;
  gap: 8px;
  color: #f1edff;
  font-weight: 800;
}

.source-form input,
.source-form textarea,
.admin-search input {
  width: 100%;
  border: 1px solid rgba(168, 85, 255, 0.24);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--text);
  background: rgba(4, 5, 11, 0.58);
  font: inherit;
  outline: none;
}

.source-form input:focus,
.source-form textarea:focus,
.admin-search input:focus {
  border-color: rgba(216, 108, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(168, 85, 255, 0.12);
}

.source-form textarea {
  resize: vertical;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.check-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.55;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.form-alert {
  margin: 0 0 18px;
  border: 1px solid rgba(168, 85, 255, 0.28);
  border-radius: 8px;
  padding: 14px 16px;
  color: #efe3ff;
  background: rgba(168, 85, 255, 0.13);
}

.form-alert.success {
  border-color: rgba(123, 219, 255, 0.34);
  background: rgba(123, 219, 255, 0.12);
}

.form-alert.warning {
  border-color: rgba(247, 201, 72, 0.36);
  background: rgba(247, 201, 72, 0.1);
}

.form-alert.error {
  border-color: rgba(255, 77, 93, 0.38);
  background: rgba(255, 77, 93, 0.1);
}

.admin-login-card {
  max-width: 520px;
  margin-bottom: 72px;
}

.admin-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.admin-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 16px;
}

.admin-search {
  display: flex;
  flex: 1;
  gap: 10px;
}

.detail-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
}

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

.detail-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.detail-grid dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-grid dd {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.detail-full {
  grid-column: 1 / -1;
}

.copy-btn {
  border: 1px solid rgba(168, 85, 255, 0.32);
  border-radius: 6px;
  margin-left: 8px;
  padding: 6px 10px;
  color: var(--text);
  background: rgba(168, 85, 255, 0.14);
  cursor: pointer;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-bottom: 76px;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #efe3ff;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-actions .secondary-btn,
.admin-actions button,
.admin-actions select {
  min-height: 34px;
  border: 1px solid rgba(168, 85, 255, 0.28);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font: inherit;
  font-weight: 800;
}

.admin-actions button {
  cursor: pointer;
}

.status-form {
  display: flex;
  gap: 8px;
}

.admin-actions .danger-btn {
  border-color: rgba(255, 77, 93, 0.34);
  color: #ffd4d9;
}

.status-chip {
  display: inline-flex;
  border: 1px solid rgba(168, 85, 255, 0.28);
  border-radius: 6px;
  padding: 5px 8px;
  color: #efe3ff;
  background: rgba(168, 85, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .game-preview {
    transform: none;
  }

  .live-panel,
  .download-grid,
  .server-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }

  .admin-toolbar,
  .admin-search,
  .admin-heading {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  body {
    background:
      radial-gradient(circle at 20% 0%, rgba(168, 85, 255, 0.2), transparent 34%),
      radial-gradient(circle at 90% 14%, rgba(111, 124, 255, 0.15), transparent 30%),
      linear-gradient(180deg, #08070f 0%, #080b10 100%);
  }

  .brand img {
    width: 98px;
    height: 44px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .main-nav a {
    justify-content: center;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.65rem, 16vw, 4rem);
  }

  .hero-actions,
  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .game-preview img {
    min-height: 240px;
  }

  .live-panel,
  .download-grid,
  .server-grid {
    grid-template-columns: 1fr;
  }

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

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

  .checkout-card,
  .checkout-summary {
    padding: 20px;
  }
}
