:root { --bg: #120d1d; --panel: #1b1429; --line: #33274a; --text: #f3eefc; --muted: #ab9ec6; --accent: #9b3cff; --new: #f5b52e; }
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
body { min-height: 100vh; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, "Segoe UI", sans-serif; }
a { color: #c99bff; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.who { display: flex; align-items: center; gap: 12px; color: var(--muted); }
main { width: min(1040px, 100% - 32px); margin: 32px auto 64px; }
h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.15; }
.intro { margin: 8px 0 24px; color: var(--muted); max-width: 62ch; }
.state { color: var(--muted); font-size: 14px; margin-top: 16px; }
.error { color: #ff8f8f; min-height: 0; }
.error:not(:empty) { margin: 0 0 12px; }

button { font: inherit; cursor: pointer; border-radius: 8px; }
button:focus-visible, input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.solid { background: var(--accent); border: 1px solid var(--accent); color: #fff; font-weight: 700; padding: 10px 20px; }
.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); padding: 8px 16px; }

.login { width: min(380px, 100%); margin: 8vh auto 0; display: grid; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.login p { color: var(--muted); }
.login .error { color: #ff8f8f; }
.fivem { display: block; text-align: center; text-decoration: none; border-radius: 8px; font-weight: 700; }
.fivem:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.login label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }

#groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.group { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 20px; }
.group.wide { grid-column: 1 / -1; }
.group h2 { font-size: 19px; padding: 12px 0 4px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.group h2 + .row { border-top: 0; }
.row b { display: block; }
.row small { display: block; color: var(--muted); font-size: 13px; max-width: 34ch; }
.row small.warn { color: var(--new); }
.switch { flex: none; display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.switch button { min-width: 56px; min-height: 38px; border: 0; background: transparent; color: var(--muted); font-weight: 800; }
.switch button[aria-pressed="true"] { background: #43335f; color: #fff; }
.switch button.new[aria-pressed="true"] { background: var(--new); color: #1d1300; }
.switch button:disabled { cursor: not-allowed; opacity: .4; }

dialog { margin: auto; width: min(420px, calc(100% - 32px)); background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
dialog::backdrop { background: rgba(6, 3, 12, .75); }
dialog p { margin: 10px 0 20px; color: var(--muted); }
.actions { display: flex; justify-content: flex-end; gap: 10px; }

@media (max-width: 760px) { #groups { grid-template-columns: 1fr; } }
