:root {
  --bg: #0d0f14; --panel: #151922; --panel-2: #1c2230; --line: #262d3d;
  --text: #e8ebf2; --muted: #8b93a7; --accent: #730BDF; --accent-2: #a45cf5;
  --discord: #5865f2; --ok: #2ecc71; --bad: #e5484d; --warn: #f5a524;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: radial-gradient(1200px 500px at 50% -200px, #1f2540 0%, var(--bg) 60%) no-repeat, var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent-2); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 2rem; margin: 0 0 .5rem; } h2 { font-size: 1.3rem; margin: 2rem 0 .75rem; } h3 { margin: 0 0 .4rem; }
code { background: var(--panel-2); padding: .1em .4em; border-radius: 6px; font-size: .88em; }
.muted { color: var(--muted); } .grow { flex: 1; }
.wrap { width: min(1150px, 100% - 2rem); margin-inline: auto; }
.main { flex: 1; padding: 2rem 0 3rem; }

.topbar { position: sticky; top: 0; z-index: 10; background: rgba(13,15,20,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--text); display: flex; align-items: center; gap: .55rem; }
.brand:hover { text-decoration: none; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent); }
.nav { display: flex; gap: 1.2rem; flex: 1; flex-wrap: wrap; }
.nav a { color: var(--muted); font-weight: 500; } .nav a:hover { color: var(--text); text-decoration: none; }
.nav-staff { color: var(--accent-2) !important; }
.userbox { display: flex; align-items: center; gap: .6rem; } .userbox form { margin: 0; }
.userchip { display: flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 500; }
.userchip img { border-radius: 50%; }

.btn { display: inline-block; border: 1px solid transparent; border-radius: 9px; padding: .6rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; color: #fff; background: var(--panel-2); transition: filter .15s, transform .05s; }
.btn:hover { filter: brightness(1.12); text-decoration: none; } .btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.btn-discord { background: var(--discord); } .btn-danger { background: var(--bad); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-sm { padding: .3rem .7rem; font-size: .88rem; } .btn-block { width: 100%; }

.hero { text-align: center; padding: 4rem 0 3rem; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin: 1rem 0; letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 640px; margin: 0 auto 1.8rem; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.pill { display: inline-block; padding: .3rem .9rem; border-radius: 99px; font-size: .88rem; font-weight: 600; border: 1px solid var(--line); background: var(--panel); }
.pill-ok { color: var(--ok); border-color: rgba(46,204,113,.4); } .pill-off { color: var(--bad); border-color: rgba(229,72,77,.4); }

.grid { display: grid; gap: 1rem; margin: 1rem 0; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.grid .card { margin-bottom: 0; }
a.card { color: inherit; } a.card:hover { text-decoration: none; border-color: var(--accent); }
.feature h3 { font-size: 1.15rem; }
.stat { text-align: center; } .stat-n { font-size: 2rem; font-weight: 800; }
.stats { margin-top: 2rem; }
.pkg, .app { display: flex; flex-direction: column; gap: .4rem; }
.price { font-size: 1.7rem; font-weight: 800; color: var(--accent-2); }
.cat { border-bottom: 1px solid var(--line); padding-bottom: .4rem; }
.note { color: var(--warn); font-size: .92rem; margin: 0; }

.rule h2 { margin-top: 0; display: flex; align-items: center; gap: .6rem; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); font-size: .95rem; }
.rule ol { margin: 0; padding-left: 1.4rem; } .rule li { padding: .25rem 0; }

.alert { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; border: 1px solid var(--line); background: var(--panel); }
.alert-success { border-color: rgba(46,204,113,.5); background: rgba(46,204,113,.08); }
.alert-error { border-color: rgba(229,72,77,.5); background: rgba(229,72,77,.08); }
.alert-info { border-color: rgba(88,101,242,.5); background: rgba(88,101,242,.08); }
.center-card { max-width: 520px; margin: 4rem auto; text-align: center; }

.form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; font-weight: 500; }
.field em { color: var(--accent); font-style: normal; }
input, textarea, select { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: .6rem .75rem; font: inherit; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: .5rem; } .check input { width: auto; }
.cols { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row input { max-width: 340px; }

.table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: .65rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.table tr:last-child td { border-bottom: 0; }
.actions { display: flex; gap: .4rem; } .actions form { margin: 0; }
.badge { display: inline-block; padding: .1rem .6rem; border-radius: 99px; font-size: .78rem; font-weight: 700; text-transform: capitalize; background: var(--panel-2); vertical-align: middle; }
.badge-accepted, .badge-paid, .badge-delivered { background: rgba(46,204,113,.18); color: var(--ok); }
.badge-denied, .badge-refunded { background: rgba(229,72,77,.18); color: var(--bad); }
.badge-pending { background: rgba(245,165,36,.18); color: var(--warn); }
.badge-level { background: rgba(88,101,242,.2); color: #aab3ff; }
.tag { margin-right: .3rem; }
.qa { padding: .7rem 0; border-bottom: 1px solid var(--line); } .qa:last-child { border: 0; }
.q { color: var(--muted); font-size: .9rem; margin-bottom: .2rem; } .a { white-space: pre-wrap; word-break: break-word; }
.profile { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; } .profile img { border-radius: 50%; } .profile h1 { margin: 0; }

.layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: .2rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; }
.side-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .4rem .7rem; }
.side a { color: var(--text); padding: .5rem .7rem; border-radius: 8px; } .side a:hover { background: var(--panel-2); text-decoration: none; }
.side a.on { background: var(--accent); color: #fff; }
.content { min-width: 0; } .content h1 { margin-bottom: 1rem; }
.tabs { display: flex; gap: .4rem; margin-bottom: 1rem; }
.tabs a { padding: .35rem .9rem; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); text-transform: capitalize; }
.tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; } .tabs a:hover { text-decoration: none; }
details.card > summary { cursor: pointer; padding: .2rem 0; } details.card[open] > summary { margin-bottom: 1rem; }
details.card form + form { margin-top: .6rem; }

.footer { border-top: 1px solid var(--line); padding: 1.5rem 0; color: var(--muted); font-size: .88rem; }
.footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; } .side { position: static; flex-direction: row; flex-wrap: wrap; }
  .side-title { width: 100%; } .topbar-in { height: auto; flex-wrap: wrap; padding: .6rem 0; gap: .6rem 1rem; }
  .table { display: block; overflow-x: auto; }
}
