:root{
  --bg:#060611;
  --fg:#e9e9ff;
  --muted:#a7a7c6;
  --card:rgba(255,255,255,.06);
  --stroke:rgba(255,255,255,.12);
  --neon1:#7c3aed;
  --neon2:#22d3ee;
  --neon3:#fb7185;
  --shadow: 0 0 24px rgba(34,211,238,.18), 0 0 44px rgba(124,58,237,.16);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial; background:var(--bg); color:var(--fg); }
a{ color:inherit; text-decoration:none; }
code{ background:rgba(255,255,255,.08); padding:.15rem .35rem; border-radius:.45rem; border:1px solid var(--stroke); }

.bg{
  position:fixed; inset:0; z-index:-1;
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(34,211,238,.10), transparent 60%),
    radial-gradient(800px 600px at 85% 15%, rgba(124,58,237,.12), transparent 55%),
    radial-gradient(700px 600px at 50% 90%, rgba(251,113,133,.10), transparent 60%),
    linear-gradient(180deg, #05050e, #07071a 60%, #05050e);
  filter:saturate(1.1);
}

.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 18px;
  border-bottom:1px solid var(--stroke);
  background:rgba(6,6,17,.65);
  backdrop-filter: blur(10px);
}

.brand{ display:flex; align-items:center; gap:12px; }
.logo{
  width:40px; height:40px; display:grid; place-items:center;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(124,58,237,.25), rgba(34,211,238,.18));
  border:1px solid var(--stroke);
  box-shadow:var(--shadow);
}
.name{ font-weight:800; letter-spacing:.5px; }
.sub{ font-size:.85rem; color:var(--muted); }

.nav{ display:flex; gap:14px; flex-wrap:wrap; }
.nav a{
  font-size:.95rem; color:var(--muted);
  padding:8px 10px; border-radius:12px;
  border:1px solid transparent;
}
.nav a:hover{
  color:var(--fg);
  border-color:var(--stroke);
  background:rgba(255,255,255,.04);
}

main{ max-width:1100px; margin:0 auto; padding:18px; }
.section{ padding:42px 0; scroll-margin-top:84px; }
.section h2{ margin:0 0 18px; font-size:1.8rem; }
.lead{ color:var(--muted); line-height:1.55; }

.hero{ display:grid; grid-template-columns: 1.3fr .9fr; gap:18px; align-items:stretch; }
@media (max-width: 920px){
  .hero{ grid-template-columns:1fr; }
  .nav{ display:none; }
}

.glow{
  background: linear-gradient(90deg, var(--neon2), var(--neon1), var(--neon3));
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow: 0 0 18px rgba(34,211,238,.18);
}

.card{
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:18px;
  padding:16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.card.neon{
  box-shadow: var(--shadow);
  border-color: rgba(34,211,238,.20);
}
.card-title{ font-weight:800; margin-bottom:12px; }

.grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; }
.grid.two{ grid-template-columns: 1fr 1fr; }
@media (max-width: 920px){
  .grid{ grid-template-columns:1fr; }
  .grid.two{ grid-template-columns:1fr; }
}

.btn{
  cursor:pointer;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  color:var(--fg);
  padding:10px 14px;
  border-radius:14px;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.18); }
.btn:active{ transform: translateY(1px); }

.btn.primary{
  border-color: rgba(34,211,238,.35);
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(124,58,237,.16));
  box-shadow: var(--shadow);
}

.cta-row{ display:flex; gap:10px; flex-wrap:wrap; margin:16px 0 12px; }
.pill-row{ display:flex; gap:10px; flex-wrap:wrap; }
.pill{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  color:var(--muted);
}
.pill b{ color:var(--fg); }

.stat-grid{ display:grid; gap:12px; }
.stat{
  padding:12px;
  border-radius:16px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.12);
}
.stat .k{ color:var(--muted); font-size:.9rem; }
.stat .v{ font-size:1.35rem; font-weight:900; margin-top:4px; }
.stat .v.small{ font-size:1rem; font-weight:700; word-break:break-word; }

.rules{ margin:0; padding-left:18px; }
.note{ margin-top:12px; color:var(--muted); }

.buy{ position:relative; }
.badge{
  position:absolute; top:12px; right:12px;
  padding:6px 10px; border-radius:999px;
  border:1px solid rgba(251,113,133,.35);
  background:rgba(251,113,133,.12);
  box-shadow: 0 0 18px rgba(251,113,133,.14);
  font-weight:800; font-size:.85rem;
}

label{ display:block; margin:10px 0 6px; color:var(--muted); }
input, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.18);
  color:var(--fg);
  outline:none;
}
textarea{ min-height:110px; resize:vertical; }
.formMsg{ margin-top:10px; color:var(--muted); }
.muted{ color:var(--muted); }
.news{ display:grid; gap:14px; }
.news-top{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.date{ color:var(--muted); font-size:.9rem; }

.footer{
  padding:22px 0 40px;
  border-top:1px solid var(--stroke);
  color:var(--muted);
  display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap;
}

/* Forum / admin helpers */
.section-head{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;}
.table{display:flex; flex-direction:column; gap:6px;}
.tr{display:grid; grid-template-columns: 1.6fr .8fr .4fr .8fr; gap:10px; padding:10px 12px; border:1px solid var(--stroke); border-radius:14px; background:rgba(255,255,255,.04);}
.tr.th{background:rgba(255,255,255,.06); font-weight:700;}
.tr a{color:var(--fg); text-decoration:none;}
.tr a:hover{text-decoration:underline;}
.badge{display:inline-block; margin-left:8px; padding:2px 8px; font-size:12px; border:1px solid var(--stroke); border-radius:999px; color:var(--muted);}
.alert{padding:10px 12px; border:1px solid rgba(251,113,133,.45); background:rgba(251,113,133,.10); border-radius:14px; margin:8px 0;}
.post{padding:14px 14px;}
.post-head{display:flex; justify-content:space-between; gap:10px; margin-bottom:8px;}
.post-author{font-weight:800;}
.post-body{white-space:normal; line-height:1.55;}
@media (max-width: 860px){
  .tr{grid-template-columns: 1fr; gap:6px;}
}
