:root {
  --bg: #0b0e14;
  --bg2: #11151f;
  --card: #161b28;
  --card-hover: #1c2233;
  --border: #252d40;
  --accent: #6c5ce7;
  --accent2: #00d2a8;
  --accent-grad: linear-gradient(135deg, #6c5ce7 0%, #00d2a8 100%);
  --text: #e8ecf4;
  --muted: #8b93a7;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 14, 20, .85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.logo .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-grad); display: grid; place-items: center; font-size: 18px; }
.logo .accent { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav.links { display: flex; gap: 28px; }
nav.links a { color: var(--muted); font-size: 15px; transition: color .2s; }
nav.links a:hover { color: var(--text); }
nav.links .mobile-only { display: none; }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-block; padding: 11px 24px; border-radius: 10px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: none;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 4px 20px rgba(108, 92, 231, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(108, 92, 231, .5); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent2); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.burger { display: none; background: none; border: none; color: var(--text); font-size: 26px; cursor: pointer; }

.hero { position: relative; padding: 110px 0 90px; text-align: center; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(108, 92, 231, .22), transparent 70%),
    radial-gradient(600px 300px at 80% 30%, rgba(0, 210, 168, .15), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero .badge {
  display: inline-block; padding: 7px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(108, 92, 231, .12);
  color: var(--accent2); font-size: 14px; font-weight: 600; margin-bottom: 26px;
}
.hero h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 800; line-height: 1.15; letter-spacing: -1px; }
.hero h1 .grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { max-width: 640px; margin: 22px auto 38px; color: var(--muted); font-size: 18px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 56px; margin-top: 64px; flex-wrap: wrap; }
.stat .num { font-size: 32px; font-weight: 800; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--muted); font-size: 14px; }

section { padding: 84px 0; }
section.alt { background: var(--bg2); }
.sec-head { text-align: center; max-width: 620px; margin: 0 auto 54px; }
.sec-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.5px; }
.sec-head p { color: var(--muted); margin-top: 12px; font-size: 17px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, border-color .2s, background .2s;
}
.feature:hover { transform: translateY(-4px); border-color: #3a4460; background: var(--card-hover); }
.feature .icon {
  width: 50px; height: 50px; border-radius: 13px; background: rgba(108, 92, 231, .15);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 18px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: stretch; }
.plan {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 34px 30px; display: flex; flex-direction: column; position: relative;
  transition: transform .2s, border-color .2s;
}
.plan:hover { transform: translateY(-5px); border-color: var(--accent); }
.plan.featured { border-color: var(--accent); box-shadow: 0 10px 40px rgba(108, 92, 231, .25); }
.plan .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent-grad); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.plan .g-icon { font-size: 42px; margin-bottom: 14px; }
.plan h3 { font-size: 22px; }
.plan .price { margin: 14px 0 4px; }
.plan .price b { font-size: 40px; font-weight: 800; }
.plan .price span { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; margin: 22px 0 28px; flex: 1; }
.plan ul li { padding: 7px 0; color: var(--muted); font-size: 15px; display: flex; align-items: flex-start; gap: 10px; }
.plan ul li::before { content: '✓'; color: var(--accent2); font-weight: 700; flex-shrink: 0; }
.plan .btn { width: 100%; text-align: center; }
.plan-free { border-color: rgba(0, 210, 168, .45); }
.plan .tag.tag-free { background: linear-gradient(135deg, #00d2a8 0%, #00a58a 100%); }
.game-group { margin-top: 44px; }
.game-group:first-child { margin-top: 0; }
.game-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }

.free-banner {
  margin-top: 40px; border-radius: 20px; padding: 36px 40px;
  background: linear-gradient(135deg, rgba(108, 92, 231, .18), rgba(0, 210, 168, .12));
  border: 1px solid rgba(108, 92, 231, .4);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.free-banner h3 { font-size: 22px; margin-bottom: 8px; }
.free-banner p { color: var(--muted); max-width: 560px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-grad); color: #fff; font-weight: 800; font-size: 18px;
  display: grid; place-items: center; margin-bottom: 18px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

.faq { max-width: 760px; margin: 0 auto; }
details {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
details[open] { border-color: #3a4460; }
summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 22px; color: var(--accent2); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details .body { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

.cta-bottom {
  text-align: center; padding: 70px 30px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(108, 92, 231, .25), rgba(0, 210, 168, .15));
  border: 1px solid rgba(108, 92, 231, .4);
}
.cta-bottom h2 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 14px; }
.cta-bottom p { color: var(--muted); margin-bottom: 28px; }

footer { border-top: 1px solid var(--border); background: var(--bg2); padding: 46px 0 30px; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-col h4 { font-size: 15px; margin-bottom: 14px; }
.foot-col a:not(.logo) { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; transition: color .2s; }
.foot-col a:not(.logo):hover { color: var(--accent2); }
.foot-logo { margin-bottom: 14px; }
.foot-desc { color: var(--muted); font-size: 14px; max-width: 280px; }
.copy { text-align: center; color: var(--muted); font-size: 13px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }

#monitoring[hidden] { display: none; }
.monitor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.monitor-item { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.monitor-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(108, 92, 231, .15); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.monitor-main { flex: 1; min-width: 0; }
.monitor-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.monitor-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.monitor-players { font-variant-numeric: tabular-nums; font-size: 15px; flex-shrink: 0; }
.monitor-players b { color: var(--accent2); }
.monitor-addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); font-size: 12px; flex-shrink: 0; }

@media (max-width: 520px) {
  .monitor-addr { display: none; }
}

.monitor-stats { display: flex; justify-content: center; gap: 48px; margin-bottom: 30px; flex-wrap: wrap; }
.monitor-stats[hidden] { display: none; }
.monitor-stat { text-align: center; }
.monitor-stat b { display: block; font-size: 30px; font-weight: 800; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.monitor-stat span { color: var(--muted); font-size: 14px; }

#news[hidden] { display: none; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.news-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.news-date { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.news-title { font-size: 18px; margin-bottom: 10px; line-height: 1.35; }
.news-title a:hover { color: var(--accent2); }
.news-excerpt { color: var(--muted); font-size: 15px; flex: 1; margin-bottom: 14px; }
.news-link { color: var(--accent2); font-weight: 600; font-size: 14px; }
.news-link:hover { text-decoration: underline; }

/* ===== Feedback form ===== */
.form-wrap { max-width: 560px; margin: 0 auto; }
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field span { font-size: 14px; font-weight: 600; color: var(--text); }
.field input,
.field textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  font: inherit; font-size: 15px; outline: none; transition: border-color .2s;
}
.field input:focus,
.field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.form-card .btn { width: 100%; text-align: center; }
.form-card .btn[disabled] { opacity: .6; cursor: default; }
.form-status { padding: 11px 14px; border-radius: 10px; font-size: 14px; }
.form-status-error { background: rgba(255, 78, 98, .12); border: 1px solid rgba(255, 78, 98, .45); color: #ff9aa8; }
.form-status-success { background: rgba(0, 210, 168, .12); border: 1px solid rgba(0, 210, 168, .45); color: var(--accent2); }
.turnstile { display: flex; justify-content: center; min-height: 65px; }

/* ===== About / admins ===== */
.about-text { max-width: 760px; margin: 0 auto 44px; color: var(--muted); font-size: 16px; }
.about-text p + p { margin-top: 14px; }
.about-subtitle { text-align: center; font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.admins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.admin-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; text-align: center; }
.admin-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; overflow: hidden;
  background: rgba(108, 92, 231, .18); color: var(--text);
  font-size: 22px; font-weight: 700;
}
.admin-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-name { font-weight: 700; font-size: 16px; }
.admin-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.admin-status { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-online { background: var(--accent2); box-shadow: 0 0 8px rgba(0, 210, 168, .7); }
.dot-offline { background: #6b7280; }
.about-email { text-align: center; color: var(--muted); margin-top: 28px; font-size: 15px; }
.about-email a { color: var(--accent2); }
.about-empty { color: var(--muted); text-align: center; grid-column: 1 / -1; }

@media (max-width: 820px) {
  nav.links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 20px; gap: 16px;
  }
  nav.links.open { display: flex; }
  nav.links .mobile-only { display: block; }
  .burger { display: block; }
  .nav-actions { display: none; }
  .hero { padding: 70px 0 60px; }
  .free-banner { padding: 28px; }
}

@media (max-width: 520px) {
  .hero-stats { gap: 32px; }
  .btn { padding: 11px 18px; }
}
