:root {
  --bg-0: #05080f;
  --bg-1: #08111d;
  --bg-2: #0f1725;
  --panel: rgba(10, 18, 30, 0.88);
  --panel-2: rgba(13, 24, 40, 0.92);
  --border: rgba(126, 203, 255, 0.16);
  --text: #d6e4ff;
  --muted: #9ab2cb;
  --primary: #7ecbff;
  --primary-2: #4aa3ff;
  --gold: #d8b56a;
  --success: #98f1b4;
  --danger: #ff9a9a;
  --shadow: 0 20px 50px rgba(0,0,0,0.35);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top, rgba(54,112,170,0.20), transparent 28%),
    linear-gradient(180deg, #02050a 0%, #07101b 35%, #05080f 100%);
}
body.theme-wow {
  background:
    radial-gradient(circle at top, rgba(90,160,220,0.18), transparent 25%),
    linear-gradient(180deg, #03060a 0%, #091321 45%, #04070c 100%);
}
body.theme-wokf {
  background:
    radial-gradient(circle at top, rgba(168,94,34,0.12), transparent 22%),
    linear-gradient(180deg, #090806 0%, #110d08 22%, #090c12 100%);
}
body.theme-cloud {
  background:
    radial-gradient(circle at top, rgba(34,160,150,0.13), transparent 24%),
    linear-gradient(180deg, #04080c 0%, #09141a 40%, #04070a 100%);
}
body.theme-minecraft {
  background:
    radial-gradient(circle at top, rgba(45,180,120,0.12), transparent 24%),
    linear-gradient(180deg, #060b08 0%, #0f1913 40%, #060a08 100%);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: #dff4ff; }
code { color: #b9e8ff; }

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  background: rgba(5, 10, 18, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(126, 203, 255, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #edf7ff;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #16395f, #0b1d34);
  border: 1px solid rgba(126, 203, 255, 0.24);
  box-shadow: 0 0 20px rgba(74, 163, 255, 0.14);
  color: #eef8ff;
  font-weight: 800;
}
.brand strong { display: block; font-size: 16px; }
.brand small { display: block; color: var(--muted); }

.site-header nav { display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-end; }
.site-header nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.site-header nav a.active,
.site-header nav a:hover { color: #f4fbff; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(126, 203, 255, 0.12);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 16%),
    radial-gradient(circle at 80% 25%, rgba(74,163,255,0.12), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(0,0,0,0.58), transparent 48%);
}
.hero-home {
  background:
    linear-gradient(90deg, rgba(4,9,16,0.88) 0%, rgba(4,9,16,0.62) 42%, rgba(4,9,16,0.84) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.65)),
    url('assets/rack-bg.png') center/cover no-repeat;
}
.hero-subpage.wow-hero {
  background:
    linear-gradient(90deg, rgba(3,7,12,0.92) 0%, rgba(4,9,16,0.68) 40%, rgba(4,9,16,0.82) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.62)),
    url('assets/lich-king-hero.jpg') center/cover no-repeat;
}
.hero-subpage.wokf-hero {
  background:
    linear-gradient(90deg, rgba(14,10,6,0.90) 0%, rgba(11,10,14,0.66) 42%, rgba(10,10,12,0.84) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.68)),
    url('assets/rack-bg.png') center/cover no-repeat;
}
.hero-subpage.cloud-hero,
.hero-subpage.hosting-hero {
  background:
    linear-gradient(90deg, rgba(4,9,16,0.90) 0%, rgba(5,13,16,0.66) 46%, rgba(4,9,16,0.84) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.16), rgba(0,0,0,0.66)),
    url('assets/rack-bg.png') center/cover no-repeat;
}
.hero-subpage.minecraft-hero {
  background:
    linear-gradient(90deg, rgba(5,12,8,0.90) 0%, rgba(9,18,12,0.66) 46%, rgba(4,10,7,0.84) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.16), rgba(0,0,0,0.66)),
    url('assets/rack-bg.png') center/cover no-repeat;
}
.hero-subpage.donate-hero {
  background:
    linear-gradient(90deg, rgba(14,10,6,0.90) 0%, rgba(12,10,16,0.66) 46%, rgba(8,8,10,0.84) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.16), rgba(0,0,0,0.66)),
    url('assets/rack-bg.png') center/cover no-repeat;
}

.hero-inner,
.section,
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  padding: 70px 0 58px;
}
.hero-copy { max-width: 760px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid rgba(216, 181, 106, 0.20);
  background: rgba(23, 18, 9, 0.28);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.96;
  color: #eef8ff;
  letter-spacing: -1.2px;
  text-shadow: 0 0 20px rgba(74,163,255,0.18);
}
.hero .lead,
.hero p {
  margin: 0 0 24px;
  max-width: 660px;
  color: #c7d9ea;
  font-size: 18px;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-panel,
.card,
.accent-card,
.panel,
.notice-bar,
.register-panel,
.status-card {
  background: linear-gradient(180deg, rgba(10,18,30,0.88), rgba(7,12,20,0.94));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.hero-panel,
.register-panel { padding: 24px; }
.hero-panel h2,
.card h2,
.panel h2,
.register-panel h2,
.status-card h3 { margin-top: 0; color: #eff8ff; }
.hero-panel p,
.card p,
.panel p,
.register-panel p,
.status-card p,
.feature-list li { color: var(--muted); line-height: 1.65; }
.hero-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.hero-stat {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(126,203,255,0.10);
  background: rgba(11,20,34,0.78);
}
.hero-stat-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}
.hero-stat-value { color: #eef8ff; font-weight: 800; }

.btn,
.btn-secondary,
.btn-ghost,
.donate-button,
.floating-donate,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover,
.donate-button:hover,
.floating-donate:hover,
button:hover,
input[type="submit"]:hover { transform: translateY(-1px); }
.btn,
.donate-button,
button,
input[type="submit"] {
  color: #eef8ff;
  background: linear-gradient(180deg, #1b6bac, #0f3c67);
  border-color: rgba(126,203,255,0.28);
  box-shadow: 0 0 18px rgba(63,169,255,0.20);
}
.btn-secondary, .btn-ghost {
  color: #dcecff;
  background: rgba(10,18,30,0.70);
  border-color: rgba(126,203,255,0.20);
}

.section { padding: 28px 0 0; }
.section-head { margin: 0 0 18px; }
.section-head .kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  color: #eef8ff;
}
.section-head p {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card, .panel, .accent-card, .status-card { padding: 24px; }
.accent-card {
  border-color: rgba(216,181,106,0.20);
  background:
    radial-gradient(circle at top right, rgba(216,181,106,0.08), transparent 34%),
    linear-gradient(180deg, rgba(16,14,10,0.88), rgba(8,10,14,0.94));
}
.feature-list { margin: 0; padding-left: 18px; }
.feature-list li + li { margin-top: 8px; }

.price-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price-card {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(11,20,34,0.88), rgba(7,12,20,0.94));
  border: 1px solid rgba(126,203,255,0.14);
  box-shadow: var(--shadow);
}
.price-card.featured { border-color: rgba(216,181,106,0.26); }
.price-card h3 { margin-top: 0; color: #eef8ff; }
.price { font-size: 32px; font-weight: 800; color: var(--primary); margin: 12px 0; }
.price small { color: var(--muted); font-size: 13px; }

.notice-bar {
  margin-top: 20px;
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.notice-bar strong { color: #f2fbff; }
.notice-bar p { margin: 0; color: var(--muted); }

.register-wrap {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.register-panel {
  width: min(640px, 100%);
  position: relative;
  z-index: 1;
}
.register-grid { display: grid; gap: 14px; }
label { display: block; font-size: 13px; font-weight: 700; color: #cfe2f6; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(126,203,255,0.18);
  background: rgba(6, 13, 22, 0.88);
  color: #eef8ff;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: rgba(126,203,255,0.40); }
.form-help, .muted { color: var(--muted); font-size: 14px; line-height: 1.6; }
.alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
}
.alert-success { background: rgba(28, 77, 46, 0.35); color: #c6f7d6; border: 1px solid rgba(91, 196, 123, 0.35); }
.alert-error { background: rgba(92, 29, 29, 0.35); color: #ffd5d5; border: 1px solid rgba(220, 87, 87, 0.35); }

.hosting-icons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.status-card strong { display: block; color: #eef8ff; font-size: 22px; margin: 8px 0 6px; }

.site-footer {
  padding: 48px 0 70px;
  color: #8ea4bb;
  line-height: 1.7;
}
.site-footer p { margin: 8px 0; }
.site-footer .freeplay-note { color: #d6e4ff; }

.floating-donate {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 55;
}

.small-note { font-size: 13px; color: var(--muted); }
.inline-links { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1080px) {
  .hero-inner,
  .grid-2,
  .grid-3,
  .split,
  .price-grid,
  .status-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero { min-height: 520px; }
  .hero-inner { grid-template-columns: 1fr; padding: 52px 0 48px; }
  .hero h1 { line-height: 1.02; }
  .hero-actions, .inline-links { flex-direction: column; }
  .btn, .btn-secondary, .floating-donate, button, input[type="submit"] { width: 100%; }
}
