:root {
  --bg: #050608;
  --surface: #0e1014;
  --card: #0b1016;
  --text: #eef4f8;
  --muted: #8b97a5;
  --accent: #38b6ff;
  --accent-soft: #7ec8e3;
  --line: #0a3a66;
  --border: #1c2129;
  --discord: #5865f2;
  --ok: #34d399;
  --danger: #ef4444;
  --sidebar: #08090c;
  --radius: 0.625rem;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, Segoe UI, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code, .mono { font-family: ui-monospace, Consolas, monospace; }

.lp-aurora { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.lp-aurora .orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; }
.lp-aurora .a { width: 42vw; height: 42vw; left: -8%; top: -12%; background: radial-gradient(circle, rgba(56,182,255,.55), transparent 68%); }
.lp-aurora .b { width: 36vw; height: 36vw; right: -6%; top: 18%; background: radial-gradient(circle, rgba(126,200,227,.4), transparent 70%); }
.lp-aurora .c { width: 48vw; height: 48vw; left: 28%; bottom: -22%; background: radial-gradient(circle, rgba(56,120,200,.28), transparent 72%); }
.lp-aurora .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(126,200,227,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(126,200,227,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}
.lp-aurora .wash {
  position: absolute; inset: 0; opacity: .12;
  background: url('../../images/brand/discord-banner.png') center/cover no-repeat;
  mix-blend-mode: screen;
}

.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 16rem 1fr; min-height: 100vh; }
.sidebar {
  border-right: 1px solid rgba(28,33,41,.9);
  padding: 1rem .85rem;
  display: flex; flex-direction: column; gap: .85rem;
  background: rgba(8,9,12,.92);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: .7rem; padding: .35rem .4rem; }
.brand img { width: 36px; height: 36px; object-fit: contain; border-radius: .45rem; }
.brand strong { display: block; font-size: .95rem; }
.brand small { color: var(--muted); font-size: .7rem; letter-spacing: .04em; }
.nav-group { display: grid; gap: .25rem; margin-top: .35rem; }
.nav-label {
  font-size: .65rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding: .45rem .65rem .2rem;
}
.sidebar nav a {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .7rem; border-radius: .75rem; color: var(--muted); font-size: .9rem;
}
.sidebar nav a:hover { background: rgba(56,182,255,.08); color: #fff; }
.sidebar nav a.active { background: rgba(56,182,255,.15); color: var(--accent); font-weight: 600; }
.sidebar .spacer { flex: 1; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .75rem 1.25rem; border-bottom: 1px solid rgba(28,33,41,.85);
  background: rgba(11,16,22,.72); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px);
}
.crumbs { color: var(--muted); font-size: .9rem; }
.top-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.content { width: min(90rem, 100%); margin: 0 auto; padding: 1.5rem 1.25rem; flex: 1; }
.footer {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .9rem 1.25rem; color: var(--muted); border-top: 1px solid rgba(28,33,41,.8); font-size: .875rem;
}
.footer-links { display: flex; gap: 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border-radius: .8rem; border: 1px solid transparent; padding: .55rem 1rem;
  font-weight: 600; cursor: pointer; background: #151b22; color: #fff; font-size: .9rem;
}
.btn:hover { filter: brightness(1.08); }
.btn-primary { background: var(--accent); color: #050608; }
.btn-discord { background: var(--discord); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.18); }
.btn-secondary { background: #1a222c; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.neon, .card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
}
.neon-pad, .card { padding: 1.25rem; }
.card { }
.muted { color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); font-size: .75rem; font-weight: 600;
}
.badge-accent { background: var(--accent); color: #050608; border-color: transparent; }
.badge-ok { background: rgba(52,211,153,.15); color: var(--ok); border-color: transparent; }
.badge-off { background: rgba(239,68,68,.15); color: #f87171; border-color: transparent; }

.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1.05fr .95fr; }
.row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.skin-img {
  aspect-ratio: 16/9; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: .75rem; display: grid; place-items: center; overflow: hidden;
}
.skin-img img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.currency { display: inline-flex; border: 1px solid rgba(255,255,255,.12); border-radius: .75rem; padding: .2rem; gap: .15rem; }
.currency button { border: 0; background: transparent; color: var(--muted); padding: .35rem .7rem; border-radius: .55rem; cursor: pointer; }
.currency button.active { background: var(--accent); color: #050608; font-weight: 700; }

.hero {
  position: relative; border: 2px solid var(--line); border-radius: 1rem; overflow: hidden;
  min-height: 280px; background: #000;
}
.hero-bg, .hero-cfx, .hero-grad { position: absolute; inset: 0; pointer-events: none; }
.hero-bg { background: url('../../images/brand/hero-bg.png') center/cover no-repeat; opacity: .45; transform: scale(1.05); }
.hero-cfx { background: url('../../images/brand/cfx-banner.png') center/cover no-repeat; opacity: .25; mix-blend-mode: screen; }
.hero-grad { background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.55), rgba(0,0,0,.3)); }
.hero-body { position: relative; z-index: 2; padding: 1.75rem 1.5rem; display: grid; gap: 1.5rem; grid-template-columns: 1.15fr .85fr; align-items: center; }
.hero h1 { margin: .35rem 0 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; }
.hero .tag { color: var(--accent-soft); font-size: 1.25rem; font-weight: 600; margin-top: .35rem; }
.modes {
  display: flex; flex-wrap: wrap; gap: .45rem; justify-content: flex-end;
}
.modes span {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid rgba(52,211,153,.35); background: rgba(52,211,153,.08);
  color: #a7f3d0; border-radius: 999px; padding: .35rem .7rem; font-size: .75rem; font-weight: 600;
}
.modes span::before { content: ''; width: .4rem; height: .4rem; border-radius: 50%; background: var(--ok); }

.rules-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.1); padding: 1rem 1.35rem; }
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.rules-col { padding: 1.25rem 1.35rem; border-right: 1px solid rgba(255,255,255,.1); }
.rules-col:last-child { border-right: 0; }
.rules-col h3 { margin: 0; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.rules-col .n { color: var(--accent); font-family: ui-monospace, monospace; margin-right: .5rem; }
.rules-col ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; }
.rules-col li { border-left: 2px solid rgba(56,182,255,.35); padding-left: .75rem; }
.rules-col li strong { display: block; font-size: .875rem; }
.rules-col li p { margin: .3rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.rules-note { border-top: 1px solid rgba(255,255,255,.1); background: rgba(56,182,255,.08); padding: 1rem 1.35rem; color: #c8e8f8; font-size: .875rem; line-height: 1.5; }

.progress {
  height: .55rem; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: .85rem;
}
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

.toast {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 80;
  background: #121820; border: 1px solid rgba(255,255,255,.12); border-radius: .8rem;
  padding: .7rem 1rem; display: flex; gap: .55rem; align-items: center; max-width: min(92vw, 420px);
}
.toast.error .x { color: var(--danger); }
.toast.success .x { color: var(--ok); }

.gate { min-height: 100vh; display: grid; place-items: center; position: relative; padding: 1rem; }
.gate-bg { position: absolute; inset: 0; overflow: hidden; }
.gate-panel { position: relative; z-index: 2; width: min(420px, 100%); text-align: center; display: grid; gap: 1rem; justify-items: center; }
.gate-panel img { width: 64px; height: 64px; object-fit: contain; }
.cf-turnstile { display: flex; justify-content: center; }

@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar nav { display: flex; flex-wrap: wrap; width: 100%; }
  .sidebar .spacer { display: none; }
  .hero-body { grid-template-columns: 1fr; }
  .modes { justify-content: flex-start; }
  .rules-grid { grid-template-columns: 1fr; }
  .rules-col { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .grid-2 { grid-template-columns: 1fr; }
}
