:root {
  --bg: #0a0a0a;
  --surface: #121212;
  --surface-2: #1a1a1a;
  --border: #242424;
  --text: #f2f2f2;
  --muted: #8a8a8a;
  --accent: #b6f500;
  --accent-dim: rgba(182,245,0,.12);
  --discord: #5865f2;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #eab308;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Nav */
nav { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(10,10,10,.85); backdrop-filter: blur(10px); z-index: 10; }
nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; }
.logo span { color: var(--accent); font-weight: 500; }
.nav-links { display: flex; gap: 24px; align-items: center; font-size: .92rem; }
.nav-links a { color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.avatar { width: 28px; height: 28px; border-radius: 50%; vertical-align: middle; margin-right: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; border: 1px solid var(--border);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  background: var(--surface); color: var(--text); transition: all .15s;
  font-family: inherit;
}
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--accent); color: #000; border-color: var(--accent); }
.btn-primary:hover { background: #c8ff2e; border-color: #c8ff2e; }
.btn-discord { background: var(--discord); border-color: var(--discord); color: #fff; }
.btn-discord:hover { background: #4752c4; }
.btn-green { background: var(--accent); border-color: var(--accent); color: #000; }
.btn-green:hover { background: #c8ff2e; border-color: #c8ff2e; }
.btn-red { background: transparent; border-color: var(--red); color: var(--red); }
.btn-red:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }

/* Hero */
.hero { padding: 120px 0 100px; text-align: center; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin: 22px auto 36px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 80px 0; border-top: 1px solid var(--border); }
.section-title { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: 40px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .93rem; }
.card .num { font-size: .8rem; color: var(--accent); font-weight: 700; margin-bottom: 14px; display: block; }

.rules li { list-style: none; padding: 16px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.rules li strong { color: var(--accent); margin-right: 8px; }

/* Forms */
.page { padding: 64px 0 100px; }
.narrow { max-width: 680px; }
.form-group { margin-bottom: 22px; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
label small { color: var(--muted); font-weight: 400; }
input, textarea, select {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 12px 14px; font-size: .95rem; font-family: inherit;
  transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 130px; resize: vertical; }

.notice { padding: 18px 20px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 28px; }
.notice.green { border-color: rgba(34,197,94,.4); }
.notice.red { border-color: rgba(239,68,68,.4); }
.notice.yellow { border-color: rgba(234,179,8,.4); }

.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.status.pending { background: rgba(234,179,8,.12); color: var(--yellow); }
.status.approved { background: rgba(34,197,94,.12); color: var(--green); }
.status.denied { background: rgba(239,68,68,.12); color: var(--red); }

/* Admin */
.app { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; }
.app summary { padding: 18px 22px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
.app summary::-webkit-details-marker { display: none; }
.app .who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.app .who small { color: var(--muted); font-weight: 400; }
.app .body { padding: 0 22px 22px; border-top: 1px solid var(--border); }
.app dt { font-weight: 600; font-size: .85rem; color: var(--muted); margin-top: 16px; }
.app dd { white-space: pre-wrap; }
.app .actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tabs a { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.tabs a.active { background: var(--accent); color: #000; border-color: var(--accent); }

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

@media (max-width: 640px) {
  .nav-links .hide-sm { display: none; }
  .hero { padding: 80px 0 64px; }
}

/* Lime-detaljer */
.lime { color: var(--accent); }
::selection { background: var(--accent); color: #000; }
.hero { position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 40% at 50% 30%, rgba(182,245,0,.08), transparent 70%); pointer-events: none; z-index: -1; }
.section-title::after { content: ""; display: block; width: 40px; height: 3px; background: var(--accent); border-radius: 2px; margin-top: 12px; }
.card { transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
nav { border-bottom-color: var(--border); box-shadow: 0 1px 0 rgba(182,245,0,.15); }
.app[open] { border-color: rgba(182,245,0,.35); }
.notice.green { border-color: rgba(182,245,0,.5); }
.status.approved { background: var(--accent-dim); color: var(--accent); }
input, textarea { caret-color: var(--accent); }
footer a:hover { color: var(--accent); }

/* Knappar i menyn behåller sin egen textfärg */
.nav-links a.btn-discord, .nav-links a.btn-discord:hover { color: #fff; }

/* Scrollbar */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: #2a2a2a var(--bg); }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.status.revoked { background: rgba(138,138,138,.12); color: var(--muted); }
.rules li b { color: var(--text); font-weight: 600; }
.rules { margin-top: 28px; }

a.card { display: block; color: inherit; text-decoration: none; transition: border-color .2s; }
a.card:hover { border-color: currentColor; }
