/* ==========================================================
   FiveM panel — stijl
   Accentkleur komt uit Instellingen (--accent).
   ========================================================== */
:root {
  --bg: #0a0c10;
  --bg-2: #0f1218;
  --surface: #141820;
  --surface-2: #1a1f29;
  --line: #252b37;
  --line-2: #313848;
  --text: #e9ecf2;
  --muted: #8b93a5;
  --accent: #2e8cff;
  --accent-ink: #ffffff;
  --sunset-1: #ff8a3d;
  --sunset-2: #e0527a;
  --sunset-3: #6b4fd8;
  --green: #3ecf8e;
  --red: #ff5a5f;
  --blue: #5aa9ff;
  --yellow: #ffc94d;
  --purple: #b48cff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Archivo", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 420px at 90% -10%, color-mix(in srgb, var(--sunset-1) 10%, transparent), transparent 60%),
    radial-gradient(900px 500px at 10% -20%, color-mix(in srgb, var(--sunset-3) 12%, transparent), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
p { margin: 0 0 .8em; }
code { font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: #cdd3df; }
code.trunc { display: inline-block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
code.copy { cursor: pointer; word-break: break-all; }
pre.code { background: var(--bg); border: 1px solid var(--line); padding: 14px; border-radius: var(--radius-sm); overflow-x: auto; font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.mt { margin-top: 24px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 12px 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 800 17px var(--display); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; filter: drop-shadow(0 2px 8px color-mix(in srgb, var(--sunset-1) 35%, transparent)); }
.mainnav { display: flex; gap: 2px; flex: 1; align-items: center; flex-wrap: nowrap; min-width: 0; }
.mainnav a { color: var(--muted); padding: 7px 11px; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.mainnav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.mainnav a.active { color: var(--text); background: var(--surface-2); }
.mainnav a.nav-staff { color: var(--accent); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang-switch a { padding: 5px 9px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lang-switch a.active { background: var(--surface-2); color: var(--text); }
.lang-switch a:hover { text-decoration: none; color: var(--text); }
.usermenu { display: flex; align-items: center; gap: 10px; }
.usermenu img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-2); }
.usermenu-text { display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; }
.usermenu-text .role { margin-top: 3px; align-self: flex-start; }
.usermenu form { margin: 0; }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--muted); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.icon-btn:hover { color: var(--red); border-color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* ---------- Layout ---------- */
.public-main { width: 100%; max-width: 1100px; margin: 0 auto; padding: 36px 24px 60px; flex: 1; }
.staff-shell { display: flex; flex: 1; width: 100%; }
.sidebar {
  width: 236px; flex-shrink: 0; padding: 22px 14px;
  border-right: 1px solid var(--line); background: var(--bg-2);
  position: sticky; top: 59px; height: calc(100vh - 59px); overflow-y: auto;
}
.sidebar-label { font: 700 11px var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); padding: 0 12px 12px; }
.sidebar a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: var(--muted); font-weight: 500; margin-bottom: 2px; position: relative; }
.sidebar a svg { width: 18px; height: 18px; fill: currentColor; opacity: .8; flex-shrink: 0; }
.sidebar a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.sidebar a.active { background: var(--surface-2); color: var(--text); }
.sidebar a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.sidebar a.active svg { color: var(--accent); opacity: 1; }
.side-group { margin-bottom: 6px; }
.side-group + .side-group { border-top: 1px solid var(--line); padding-top: 8px; }
.side-head { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; cursor: pointer; padding: 6px 12px 6px; font: 700 10.5px var(--display); text-transform: uppercase; letter-spacing: .13em; color: var(--muted); opacity: .75; text-align: left; }
.side-head:hover { opacity: 1; }
.side-head span { flex: 1; }
.side-head i { font-style: normal; font-size: 10px; transition: transform .15s; }
.side-group.closed .side-head i { transform: rotate(-90deg); }
.side-group.closed .side-items { display: none; }
.side-gcount { display: none; }
.side-group.closed .side-gcount { display: inline-block; margin-left: 0 !important; }
.sidebar a { padding: 8px 12px; }
.sidebar .count { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; background: var(--accent); color: var(--accent-ink); border-radius: 20px; padding: 1px 7px; }
.staff-main { flex: 1; min-width: 0; padding: 30px 34px 60px; max-width: 1400px; }

.footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: 4px; }
.page-head p { margin: 0; }
.page-actions { display: flex; gap: 8px; align-items: center; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow-x: auto; }
.card-foot { padding: 16px 22px; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.side-panel { position: sticky; top: 80px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.grid-2.align-start { align-items: start; gap: 20px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 9px 16px; font: 600 14px var(--font); cursor: pointer;
  transition: transform .12s, filter .12s, background .12s;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-sm { padding: 5px 11px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--red); color: #fff; }
.btn-success { background: var(--green); color: #04150d; }
.btn-discord { background: #5865f2; color: #fff; }
.discord-icon { width: 18px; height: 18px; fill: currentColor; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 4px; }
.link-btn:hover { color: var(--red); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 600; font-size: 13.5px; }
input[type=text], input[type=number], input[type=search], input:not([type]), select, textarea {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 10px 12px; font: 14px var(--font);
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type=color] { width: 70px; height: 42px; padding: 3px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--red); }
.error { color: var(--red); font-style: normal; font-size: 13px; }
.char-count { font-size: 12px; color: var(--muted); text-align: right; margin-top: -2px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.switch { appearance: none; width: 38px; height: 22px; border-radius: 22px; background: var(--line-2); position: relative; cursor: pointer; transition: background .15s; flex-shrink: 0; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(16px); }
.switch:disabled { opacity: .5; cursor: not-allowed; }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.toolbar input[type=search] { max-width: 320px; }
.toolbar select { width: auto; min-width: 170px; }
.inline, .inline-form { display: inline-flex; gap: 8px; margin: 0; align-items: center; }
.inline-form input { max-width: 240px; padding: 6px 10px; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 700 11px var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); white-space: nowrap; }
.card:not(.flush) .table th { background: none; padding-left: 0; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.card:not(.flush) .table td { padding-left: 0; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--surface-2); }
.table th.center, .table td.center { text-align: center; }
.perm-table .group-row td { background: var(--bg-2); font: 700 11px var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); padding: 10px 16px; }
.pager { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 34px; text-align: center; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); }
.pager a.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pager a:hover { text-decoration: none; color: var(--text); }

/* ---------- Badges ---------- */
.badge, .role, .tag {
  display: inline-flex; align-items: center; gap: 5px;
  font: 700 11px var(--font); text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 9px; border-radius: 20px; white-space: nowrap;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-2);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-open, .badge-pending { color: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 35%, transparent); background: color-mix(in srgb, var(--yellow) 10%, transparent); }
.badge-in_progress { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 35%, transparent); background: color-mix(in srgb, var(--blue) 10%, transparent); }
.badge-accepted, .badge-clean { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); background: color-mix(in srgb, var(--green) 10%, transparent); }
.badge-rejected, .badge-banned, .badge-active { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent); background: color-mix(in srgb, var(--red) 10%, transparent); }
.badge-internal { color: var(--purple); border-color: color-mix(in srgb, var(--purple) 35%, transparent); }
.role { border-radius: 6px; }
.role-owner { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.role-host { color: #1a1300; background: linear-gradient(135deg, #ffd76a, #ff9f43); border-color: #ffc94d; }
.role-head_admin { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.role-admin { color: var(--purple); border-color: color-mix(in srgb, var(--purple) 40%, transparent); }
.role-moderator { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 40%, transparent); }
.tag { border-radius: 6px; }
.tag-warn { color: var(--yellow); }
.tag-kick { color: var(--blue); }
.tag-note { color: var(--muted); }
.log-action { font-weight: 600; font-size: 13px; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2); white-space: nowrap; }
.user-chip { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; vertical-align: middle; }
.user-chip img { width: 22px; height: 22px; border-radius: 50%; }

/* ---------- Flash ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; border: 1px solid; font-weight: 500; }
.flash-success { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); background: color-mix(in srgb, var(--green) 8%, transparent); }
.flash-error { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); background: color-mix(in srgb, var(--red) 8%, transparent); }

/* ---------- Hero / home ---------- */
.hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 22px;
  padding: 70px 54px 46px; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-2) 100%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 90% at 85% 20%, #000 10%, transparent 70%);
  opacity: .7;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -60px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sunset-1) 40%, transparent) 0%, color-mix(in srgb, var(--sunset-2) 22%, transparent) 35%, color-mix(in srgb, var(--sunset-3) 12%, transparent) 55%, transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.hero-logo {
  position: absolute; z-index: 1; right: 50px; top: 50%; transform: translateY(-50%) rotate(-4deg);
  width: min(380px, 34%); filter: drop-shadow(0 25px 45px rgba(0,0,0,.55));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(calc(-50% - 10px)) rotate(-2deg); } }
.hero-title {
  background: linear-gradient(100deg, #fff 30%, #9cc8ff 70%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow { background: linear-gradient(90deg, var(--sunset-1), var(--sunset-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-inner { position: relative; z-index: 2; max-width: 600px; }
.eyebrow { display: inline-block; font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .2em; color: var(--accent); margin-bottom: 14px; }
.hero-title { font-size: clamp(42px, 7vw, 78px); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; margin-bottom: 18px; }
.hero-intro { font-size: 17px; color: #c4cad6; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 38px; }
.hero-stats { display: flex; gap: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-stats strong { display: block; font: 800 30px var(--display); }
.hero-stats span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.tiles-2 { grid-template-columns: repeat(2, 1fr); }
.tile {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; color: var(--text); transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.tile-num { display: block; font: 800 13px var(--display); color: var(--accent); margin-bottom: 30px; letter-spacing: .1em; }
.tile h3 { font-size: 20px; text-transform: none; letter-spacing: -.01em; }
.tile p { color: var(--muted); margin: 0; }
.tile-closed { opacity: .55; }
.rules-body { color: #c4cad6; columns: 2 280px; column-gap: 40px; }

.auth-card { max-width: 440px; margin: 40px auto; display: flex; flex-direction: column; gap: 14px; }
.auth-card h1 { margin: 0; }
.empty-state { text-align: center; padding: 50px 20px; }
.big-code { font: 800 90px var(--display); color: var(--accent); line-height: 1; }

/* ---------- Staff widgets ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--text); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.stat:hover { text-decoration: none; border-color: var(--line-2); }
.stat strong { display: block; font: 800 32px var(--display); }
.stat span { font-size: 13px; color: var(--muted); }
.list { list-style: none; padding: 0; margin: 0; }
.list li, .list-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li > .muted { white-space: nowrap; }
.list-row select { width: auto; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; margin: 0 0 16px; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; min-width: 0; }
.mini-stats { display: flex; gap: 22px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.mini-stats strong { color: var(--text); font: 800 18px var(--display); }
.ban { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; background: var(--bg-2); }
.ban-active { border-color: color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 6%, var(--bg-2)); }
.ban p { margin: 8px 0 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 14px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--muted); }
.timeline li.tl-warn::before { border-color: var(--yellow); }
.timeline li.tl-kick::before { border-color: var(--blue); }
.timeline li p { margin: 6px 0 0; color: #c4cad6; }
.tabs { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 10px; margin-bottom: 14px; border: 1px solid var(--line); }
.tab { flex: 1; background: none; border: 0; color: var(--muted); padding: 7px 10px; border-radius: 7px; cursor: pointer; font: 600 13px var(--font); }
.tab.active { background: var(--surface-2); color: var(--text); }
.qa-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.qa-item:first-child { padding-top: 0; }
.qa-item:last-child { border-bottom: 0; padding-bottom: 0; }
.qa-item div { color: #d3d8e2; white-space: normal; }

/* ---------- Ticket thread ---------- */
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.msg header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.msg header time { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.msg-author { border-left: 3px solid var(--line-2); }
.msg-staff { border-left: 3px solid var(--accent); }
.msg-internal { border-left: 3px solid var(--purple); background: color-mix(in srgb, var(--purple) 5%, var(--surface)); }
.msg-body { color: #d3d8e2; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
  .side-panel { position: static; }
}
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .nav-toggle { display: block; }
  .mainnav, .topbar-right { display: none; width: 100%; }
  .nav-open .mainnav { display: flex; flex-direction: column; align-items: stretch; }
  .nav-open .topbar-right { display: flex; justify-content: space-between; }
  .staff-shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; display: flex; overflow-x: auto; padding: 8px; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-label, .side-head { display: none; }
  .side-group, .side-items, .side-group.closed .side-items { display: contents; }
  .side-group + .side-group { border: 0; padding: 0; }
  .sidebar a { white-space: nowrap; margin: 0; }
  .sidebar a.active::before { display: none; }
  .staff-main { padding: 22px 16px 50px; }
  .tiles, .tiles-2, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 44px 24px 30px; }
  .hero-logo { position: static; transform: none; width: 180px; display: block; margin: 0 auto 20px; animation: none; }
  .public-main { padding: 22px 16px 50px; }
}

/* ==========================================================
   Infosite
   ========================================================== */
.display, .section-title, .hero-title, .vacancy h3, .cta h2, .team-card h3 {
  font-family: var(--display); font-style: italic; font-stretch: 75%; text-transform: uppercase; letter-spacing: -.005em;
}
.display { font-size: clamp(48px, 8vw, 92px); font-weight: 900; line-height: .9; margin: 0 0 18px; }
.hero-title { font-stretch: 75%; font-weight: 900; }
.section { margin: 64px 0; }
.section-title { font-size: clamp(30px, 4vw, 44px); font-weight: 900; margin: 0 0 22px; }
.section-head { align-items: flex-end; margin-bottom: 22px; }
.section-head .section-title { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--sunset-1), var(--sunset-2)); }
.lead { font-size: 17px; color: #c4cad6; max-width: 620px; }
.page-hero { padding: 30px 0 10px; }
.legend { display: flex; gap: 22px; margin-top: 22px; font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot-open { background: var(--green); box-shadow: 0 0 10px var(--green); }
.mb { margin-bottom: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.row-end { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.row-start { display: flex; align-items: center; gap: 14px; }
.table td.actions { width: 1%; white-space: nowrap; }
.danger-text { color: var(--red); }
.is-disabled { opacity: .5; pointer-events: none; }
.badge-btn { background: none; border: 0; padding: 0; cursor: pointer; }
.badge-closed, .badge-draft { color: var(--muted); }
.badge-published { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.lang-tag { font: 700 10px var(--font); padding: 1px 6px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); vertical-align: middle; }
.lang-tag.warn { color: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 40%, transparent); }
.thumb { width: 120px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.thumb.round { width: 70px; height: 70px; border-radius: 50%; }
.tabs-links { display: inline-flex; margin-bottom: 18px; }
.tabs-links .tab { text-decoration: none; padding: 8px 18px; }

/* Navigatie-dropdown */
.dropdown { position: relative; }
.dropdown-toggle { background: none; border: 0; color: var(--muted); padding: 7px 12px; border-radius: 8px; font: 500 15px var(--font); cursor: pointer; }
.dropdown-toggle span { font-size: 11px; }
.dropdown-toggle { white-space: nowrap; }
.dropdown-compact { min-width: 190px; }
.dropdown-compact a { padding: 8px 12px; font-weight: 500; }
.dropdown-compact a.active { background: var(--surface-2); }
.dropdown.active .dropdown-toggle, .dropdown-toggle:hover { color: var(--text); background: var(--surface); }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s;
}
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.dropdown-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); }
.dropdown-menu a:hover { background: var(--surface-2); text-decoration: none; }
.dropdown-menu small { display: block; color: var(--muted); font-size: 12.5px; }

/* Hero extra's */
.hero-tagline { font: italic 800 22px var(--display); font-stretch: 85%; text-transform: uppercase; color: #9cc8ff; margin: -6px 0 14px; letter-spacing: .02em; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 12px; border-radius: 30px; font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 60%, transparent); }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-pill.is-online { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.status-pill.is-online i { background: var(--green); box-shadow: 0 0 0 0 var(--green); animation: pulse 2s infinite; }
.status-pill.is-offline { color: var(--red); }
.status-pill.is-offline i { background: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Over ons + features */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.prose { color: #c9cfda; }
.prose h3 { margin: 1.4em 0 .5em; color: var(--text); font-size: 15px; }
.prose h3:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding-left: 0; list-style: none; }
.prose li { position: relative; padding: 6px 0 6px 22px; border-bottom: 1px solid var(--line); }
.prose li:last-child { border-bottom: 0; }
.prose li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 2px; background: var(--accent); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature-icon { font-size: 26px; display: block; margin-bottom: 12px; }
.feature h3 { font-size: 15px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

/* Stappen */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; }
.step-num { position: absolute; right: 14px; top: -8px; font: italic 900 92px/1 var(--display); font-stretch: 75%; color: color-mix(in srgb, var(--accent) 18%, transparent); }
.steps h3 { position: relative; font-size: 15px; margin-top: 30px; }
.steps p { color: var(--muted); font-size: 14px; position: relative; }
.steps a { font-weight: 600; font-size: 14px; position: relative; }

/* Nieuws */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: border-color .15s, transform .15s; }
.news-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.news-img { aspect-ratio: 16 / 8; background: center / cover no-repeat; }
.news-img-empty { background: linear-gradient(135deg, var(--sunset-3), var(--sunset-2) 55%, var(--sunset-1)); opacity: .55; position: relative; }
.news-img-empty::after { content: ""; position: absolute; inset: 0; background: url(logo-small.png) center / 64px no-repeat; opacity: .9; }
.news-body { padding: 18px 20px 20px; }
.news-body time { font: 700 11px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.news-body h3 { font-size: 17px; text-transform: none; letter-spacing: -.01em; margin: 6px 0 8px; }
.news-body p { color: var(--muted); font-size: 14px; margin: 0; }
.article { max-width: 780px; margin: 0 auto; }
.article h1 { font-size: clamp(30px, 5vw, 46px); margin: 14px 0 8px; }
.article-image { width: 100%; border-radius: var(--radius); margin: 14px 0 18px; border: 1px solid var(--line); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.team-grid.single { grid-template-columns: 1fr; max-width: 260px; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px 22px; text-align: center; position: relative; overflow: hidden; }
.team-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 70px; background: linear-gradient(135deg, color-mix(in srgb, var(--sunset-3) 35%, transparent), color-mix(in srgb, var(--sunset-1) 25%, transparent)); }
.team-photo { position: relative; width: 104px; height: 104px; margin: 6px auto 14px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--sunset-1), var(--sunset-2), var(--accent)); }
.team-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--bg); border: 3px solid var(--surface); }
.team-card h3 { font-size: 22px; font-weight: 900; margin: 0 0 8px; text-transform: none; }
.team-card p { color: var(--muted); font-size: 13.5px; margin: 10px 0 0; }
.team-role-title .muted { font-size: .5em; vertical-align: middle; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font: 400 22px/1 var(--font); color: var(--accent); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { border-color: var(--line-2); }
.faq-item .prose { padding: 0 22px 18px; }
.rules-page { max-width: 900px; }

/* Vacatures */
.vacancy-grid { display: flex; flex-direction: column; gap: 14px; }
.vacancy { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; display: grid; grid-template-columns: 1fr auto; gap: 6px 30px; align-items: center; transition: border-color .15s; }
.vacancy:hover { border-color: var(--line-2); }
.vacancy-head { display: flex; align-items: center; gap: 14px; grid-column: 1; }
.vacancy h3 { font-size: 32px; font-weight: 900; margin: 0; text-transform: uppercase; letter-spacing: 0; }
.vacancy p { grid-column: 1; color: var(--muted); margin: 0; max-width: 640px; }
.vacancy-foot { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.vacancy.is-closed h3 { color: var(--muted); }
.q-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); font: 700 12px var(--font); color: var(--accent); margin-right: 4px; }

/* Vragen-editor */
.q-editor { display: flex; flex-direction: column; gap: 8px; }
.q-row { display: grid; grid-template-columns: 18px 1.2fr 1fr 1fr 1fr 120px 70px auto; gap: 8px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.q-row input, .q-row select { padding: 8px 10px; }
.q-handle { color: var(--muted); font-size: 12px; text-align: center; }
.q-buttons { display: flex; }
.q-buttons .link-btn { font-size: 15px; padding: 4px 6px; }

/* Call-to-action band */
.cta {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 34px 38px; border-radius: 20px; margin: 64px 0 10px;
  background: linear-gradient(110deg, color-mix(in srgb, var(--sunset-3) 55%, var(--surface)), color-mix(in srgb, var(--sunset-2) 45%, var(--surface)) 55%, color-mix(in srgb, var(--sunset-1) 45%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--sunset-1) 30%, transparent);
}
.cta h2 { font-size: 34px; font-weight: 900; margin: 0 0 4px; }
.cta p { margin: 0; color: #f0e6ee; }

/* Footer */
.footer { display: grid; grid-template-columns: auto 1fr; gap: 18px 30px; align-items: center; padding: 30px 28px 22px; margin-top: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 46px; height: 46px; }
.footer-links { display: flex; gap: 6px 20px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; font-size: 12.5px; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--text); }
.is-staff .footer { margin-top: 0; }

@media (max-width: 1000px) {
  .about { grid-template-columns: 1fr; }
  .steps, .news-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .q-row { grid-template-columns: 1fr 1fr; }
  .q-handle { display: none; }
}
@media (max-width: 900px) {
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; background: none; }
  .dropdown-toggle { display: none; }
  .vacancy { grid-template-columns: 1fr; }
  .vacancy-foot { grid-column: 1; grid-row: auto; align-items: flex-start; flex-direction: row; justify-content: space-between; width: 100%; margin-top: 10px; }
  .footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .steps, .news-grid, .features, .grid-4 { grid-template-columns: 1fr; }
}
.vacancy .badge-open, .legend .badge-open { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); background: color-mix(in srgb, var(--green) 10%, transparent); }

/* ---------- Grote schermen en tv's: alles meeschalen ---------- */
@media (min-width: 1700px) {
  html { --z: 1.12; zoom: var(--z); }
  .public-main { max-width: 1240px; }
}
@media (min-width: 2300px) {
  html { --z: 1.45; }
}
@media (min-width: 3200px) {
  html { --z: 2; }
}

/* ---------- Serverbeheer ---------- */
.srv-state i { background: var(--muted); }
.srv-running { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.srv-running i { background: var(--green); animation: pulse 2s infinite; }
.srv-starting, .srv-restarting, .srv-stopping { color: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 40%, transparent); }
.srv-starting i, .srv-restarting i, .srv-stopping i { background: var(--yellow); }
.srv-stopped, .srv-crashed, .srv-manager_offline { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.srv-stopped i, .srv-crashed i, .srv-manager_offline i { background: var(--red); }
.btn-row.wrap { flex-wrap: wrap; }
.btn-row form { flex: 1; }
.btn-row form .btn { width: 100%; }
.tab-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 11px; }
.terminal {
  background: #05070a; border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
  height: min(62vh, 640px); overflow-y: auto; padding: 14px 16px;
  font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #cdd3df; white-space: pre-wrap; word-break: break-word;
}
.terminal-input { display: flex; align-items: center; gap: 10px; background: #0a0d12; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding: 8px 10px; }
.terminal-input > span { color: var(--accent); font: 700 14px ui-monospace, monospace; }
.terminal-input input { border: 0; background: transparent; font-family: ui-monospace, monospace; padding: 6px 4px; }
.terminal-input input:focus { box-shadow: none; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; box-shadow: var(--shadow); background: var(--surface); max-width: 360px; animation: toastin .2s ease-out; }
@keyframes toastin { from { transform: translateY(10px); opacity: 0; } }

.role-developer { color: #3ecf8e; border-color: color-mix(in srgb, #3ecf8e 40%, transparent); }
.founder { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font: 700 11px var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--yellow); }
.tabs-links .tab { white-space: nowrap; flex: 0 0 auto; }

/* ===== Embed-maker ===== */
.embed-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 480px); gap: 20px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 20px; }
.card h3.mt, .mt { margin-top: 18px; }
.rep { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.rep-row { display: grid; grid-template-columns: 1fr 2fr 150px 32px; gap: 8px; align-items: start; }
.rep-row.rep-btn { grid-template-columns: 64px 1fr 2fr 32px; }
.rep-row textarea { min-height: 40px; resize: vertical; }
.field input[type=file] { margin-top: 6px; font-size: .8rem; }
.dc-preview { background: #313338; border-radius: 12px; padding: 16px 16px 18px; color: #dbdee1; font-family: "gg sans", "Noto Sans", Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.375; overflow: hidden; }
.dc-msg { display: flex; gap: 14px; }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; background: #1e1f22; object-fit: cover; }
.dc-body { min-width: 0; flex: 1; }
.dc-name { font-weight: 600; color: #f2f3f5; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dc-app { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.dc-time { color: #949ba4; font-size: 12px; font-weight: 400; }
.dc-content { margin: 2px 0 4px; word-wrap: break-word; }
.dc-embed { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; background: #2b2d31; border-left: 4px solid #2e8cff; border-radius: 4px; padding: 10px 16px 14px 12px; max-width: 432px; margin-top: 4px; }
.dc-embed-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dc-author, .dc-footer { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #f2f3f5; }
.dc-author img, .dc-footer img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.dc-footer { font-size: 12px; font-weight: 500; color: #b5bac1; margin-top: 4px; }
.dc-footer img { width: 20px; height: 20px; }
.dc-title { font-weight: 700; color: #00a8fc; font-size: 16px; }
.dc-desc { font-size: 14px; white-space: normal; word-wrap: break-word; }
.dc-desc a, .dc-content a, .dc-field-value a { color: #00a8fc; }
.dc-desc code, .dc-field-value code { background: #1e1f22; padding: 0 4px; border-radius: 3px; font-size: 85%; }
.dc-desc pre { background: #1e1f22; padding: 8px; border-radius: 4px; white-space: pre-wrap; margin: 4px 0; }
.dc-desc .h1 { font-size: 22px; display: block; margin: 6px 0 2px; color: #f2f3f5; }
.dc-desc .h2 { font-size: 18px; display: block; margin: 6px 0 2px; color: #f2f3f5; }
.dc-desc .h3 { font-size: 16px; display: block; margin: 4px 0 2px; color: #f2f3f5; }
.dc-desc .quote { display: block; border-left: 4px solid #4e5058; padding-left: 10px; }
.dc-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 14px; }
.dc-fields:empty { display: none; }
.dc-field { grid-column: 1 / -1; }
.dc-field.inline { grid-column: auto; }
.dc-field-name { font-weight: 700; color: #f2f3f5; margin-bottom: 2px; }
.dc-thumb { width: 80px; height: 80px; border-radius: 4px; object-fit: cover; }
.dc-image { width: 100%; border-radius: 4px; margin-top: 8px; max-height: 300px; object-fit: cover; }
.dc-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dc-buttons:empty { display: none; }
.dc-button { display: inline-flex; align-items: center; gap: 6px; background: #4e5058; color: #fff; padding: 6px 14px; border-radius: 4px; font-size: 14px; font-weight: 500; }
@media (max-width: 1100px) { .embed-editor { grid-template-columns: 1fr; } .embed-side { position: static; } }
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .rep-row, .rep-row.rep-btn { grid-template-columns: 1fr 32px; }
  .rep-row > :not(.link-btn) { grid-column: 1; }
  .rep-row > .link-btn { grid-column: 2; grid-row: 1; }
  .dc-embed { grid-template-columns: 1fr; }
  .dc-thumb { display: none !important; }
}
@media (min-width: 2200px) { .embed-editor { grid-template-columns: minmax(0, 1fr) 560px; } }

/* ===== server.cfg-editor ===== */
.cfg-card { padding: 0; overflow: hidden; }
.cfg-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.row-gap { display: flex; gap: 8px; }
.cfg-editor { display: grid; grid-template-columns: auto 1fr; height: min(70vh, 900px); background: #0b0d12; }
.cfg-lines, #cfg-text { margin: 0; padding: 14px 12px; font: 13px/1.6 ui-monospace, "Cascadia Code", Consolas, monospace; }
.cfg-lines { color: #4b5363; text-align: right; user-select: none; overflow: hidden; border-right: 1px solid var(--line); min-width: 52px; }
#cfg-text { width: 100%; height: 100%; resize: none; border: 0; outline: 0; background: transparent; color: #d7dbe4; white-space: pre; overflow: auto; tab-size: 4; border-radius: 0; }
#cfg-text:disabled { opacity: .5; }
.cfg-card.loading { opacity: .75; pointer-events: none; }
.cfg-hint { padding: 10px 16px 14px; margin: 0; border-top: 1px solid var(--line); }
@media (min-width: 2200px) { .cfg-lines, #cfg-text { font-size: 15px; } }

/* ===== Discord-bot instellingen ===== */
.bot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; align-items: start; }
.bot-grid .wide { grid-column: 1 / -1; }
.bot-grid .check.big { font-size: 1.05rem; font-weight: 600; padding: 12px 14px; background: var(--surface-2, rgba(255,255,255,.03)); border-radius: 12px; }
.bot-grid select[multiple] { min-height: 140px; }
.bot-row { align-items: end; }
.bot-row .mini { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bot-row textarea { min-height: 42px; }
.tab .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #555c6b; margin-left: 6px; vertical-align: middle; }
.tab .dot.on { background: #3ecf8e; box-shadow: 0 0 6px #3ecf8e; }
.card-head { padding: 14px 16px; border-bottom: 1px solid var(--line); gap: 12px; }
@media (max-width: 760px) {
  .bot-grid { grid-template-columns: 1fr; }
  .bot-row { grid-template-columns: 1fr 32px !important; }
  .bot-row > :not(.link-btn) { grid-column: 1; }
  .bot-row > .link-btn { grid-column: 2; grid-row: 1; }
}

/* ===== Ranglijst ===== */
.lb-list { display: flex; flex-direction: column; gap: 10px; }
.lb-row { display: grid; grid-template-columns: 54px 48px minmax(0, 1fr) 180px 90px; align-items: center; gap: 14px; padding: 12px 16px; background: var(--surface, #151922); border: 1px solid var(--line); border-radius: 14px; }
.lb-pos { font: 800 1.3rem/1 var(--display, inherit); text-align: center; color: var(--muted); }
.lb-row.top1 .lb-pos { color: #ffc94d; } .lb-row.top2 .lb-pos { color: #c9d1dc; } .lb-row.top3 .lb-pos { color: #e09b5a; }
.lb-row.top1 { border-color: rgba(255, 201, 77, .45); }
.lb-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--surface-2, #1c2230); }
.lb-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-bar { height: 8px; border-radius: 8px; background: var(--surface-2, #1c2230); overflow: hidden; }
.lb-bar span { display: block; height: 100%; background: var(--accent); }
.lb-level { text-align: right; } .lb-level strong { font-size: 1.25rem; display: block; }
@media (max-width: 700px) {
  .lb-row { grid-template-columns: 36px 40px minmax(0, 1fr) 64px; }
  .lb-row .lb-progress { display: none; }
  .lb-avatar { width: 40px; height: 40px; }
}
@media (min-width: 2200px) { .lb-row { padding: 18px 24px; font-size: 1.15rem; } }

/* Resources: actief = groen, gestopt = grijs (rood blijft voor actieve bans) */
.badge-running { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); background: color-mix(in srgb, var(--green) 10%, transparent); }
.badge-stopped { color: var(--muted); }

/* Instellingen: blokken op de homepage */
.feature-edit { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.feature-edit-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px; }
.feature-icons { display: flex; gap: 8px; }
.feature-icons input { width: 70px; text-align: center; font-size: 1.3rem; }
@media (max-width: 640px) { .feature-edit-row { grid-template-columns: 1fr; } }

/* ===== Live spelers: compacte actieknoppen ===== */
.live-players td { vertical-align: middle; }
.live-players th.right { text-align: right; }
.pid { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 7px; background: var(--surface-2, #1c2230); font-weight: 700; font-size: .82rem; color: var(--muted); }
.lp-name strong { display: block; }
.lp-profile { font-size: .78rem; color: var(--accent); text-decoration: none; opacity: .85; }
.lp-profile:hover { opacity: 1; text-decoration: underline; }
.lp-char span { display: block; }
.lp-char small { color: var(--muted); font-size: .78rem; }
.ping { font-size: .85rem; white-space: nowrap; }
.ping::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: currentColor; vertical-align: middle; }
.ping.good { color: var(--green); } .ping.ok { color: var(--yellow); } .ping.bad { color: var(--red); }
.act-bar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: nowrap; }
.act-group { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2, #1c2230); }
.act-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; background: none; border: 0; color: var(--text); font: 600 .8rem var(--font, inherit); cursor: pointer; white-space: nowrap; }
.act-group .act-btn + .act-btn { border-left: 1px solid var(--line); }
.act-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.act-btn:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.act-btn[data-act="heal"] svg { color: #ff6b81; } .act-btn[data-act="revive"] svg { color: var(--green); }
.act-btn[data-act="freeze"] svg { color: #6fc3ff; } .act-btn[data-act="unfreeze"] svg { color: var(--yellow); } .act-btn[data-act="dm"] svg { color: var(--accent); }
.act-btn.danger { border: 1px solid color-mix(in srgb, var(--red) 40%, transparent); border-radius: 10px; color: var(--red); }
.act-btn.danger:hover { background: color-mix(in srgb, var(--red) 14%, transparent); }
/* Smallere schermen: alleen iconen (tekst bij aanwijzen) */
@media (max-width: 1400px) { .act-btn span { display: none; } .act-btn { padding: 8px 10px; } }
@media (max-width: 700px) { .live-players th:nth-child(3), .live-players td:nth-child(3) { display: none; } }

/* Verwijderknoppen in het spelersdossier */
.del-form { margin-top: 8px; }
.del-btn { background: none; border: 1px solid color-mix(in srgb, var(--red) 35%, transparent); color: var(--red); border-radius: 8px; padding: 3px 9px; font-size: .78rem; cursor: pointer; }
.del-btn:hover { background: color-mix(in srgb, var(--red) 12%, transparent); }
.timeline .del-btn { margin-left: 8px; }

/* Rollen met eigen kleur (Staff > Rollen) */
.role[style*="--rc"] { color: var(--rc); border-color: color-mix(in srgb, var(--rc) 40%, transparent); background: color-mix(in srgb, var(--rc) 10%, transparent); }

/* ===== Doneren ===== */
.nav-donate { color: #ff7a93 !important; }
.don-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.don-steps > div { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 14px); }
.don-steps span { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--accent); color: #fff; }
.don-steps p { margin: 4px 0 0; }
.don-packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.don-package { --tc: var(--accent); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--tc); border-radius: var(--radius, 14px); overflow: hidden; display: flex; flex-direction: column; }
.don-package img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.don-package-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.don-package-body .btn { margin-top: auto; }
.don-package h3 { margin: 0; }
.don-price { font: 800 30px var(--display, inherit); }
.don-tier-chip { align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--tc); border: 1px solid color-mix(in srgb, var(--tc) 45%, transparent); border-radius: 999px; padding: 2px 9px; }
.don-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.don-tier { --tc: var(--accent); padding: 20px; border-radius: var(--radius, 14px); background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 16%, var(--surface)), var(--surface) 60%); border: 1px solid color-mix(in srgb, var(--tc) 40%, var(--line)); }
.don-tier h3 { margin: 0; color: var(--tc); font: 800 22px var(--display, inherit); text-transform: uppercase; letter-spacing: .02em; }
.don-range { font-weight: 700; margin: 4px 0 12px; }
.don-rewards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.don-rewards li { padding-left: 22px; position: relative; }
.don-rewards li::before { content: "✓"; position: absolute; left: 0; color: var(--green, #3ecf8e); font-weight: 800; }
.don-info p { margin: 10px 0; }
.don-tier-edit { display: flex; flex-direction: column; gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
@media (max-width: 760px) { .don-steps { grid-template-columns: 1fr; } }
@media (min-width: 2200px) { .don-packages { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }

/* Emblemen en extra rollen (v26) */
.team-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.role.emblem { font-weight: 700; }
.role.emblem i { font-style: normal; }
.badge-cell { min-width: 180px; }
.badge-cell .role { margin: 2px 2px 2px 0; }
.badge-editor { display: inline-block; position: relative; vertical-align: middle; }
.badge-editor > summary { list-style: none; cursor: pointer; }
.badge-editor > summary::-webkit-details-marker { display: none; }
.badge-editor[open] .badge-form { position: absolute; z-index: 20; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.45); display: grid; gap: 6px; text-align: left; }
.badge-form .check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.row-gap { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.badge-row input { width: auto; }
.badge-preview { min-width: 170px; }
.usermenu-me { position: relative; display: inline-flex; }
.usermenu-me .count { position: absolute; top: -4px; right: -6px; background: var(--red, #ef4444); color: #fff; font-style: normal; font-size: 10px; font-weight: 800; border-radius: 999px; padding: 1px 5px; }

/* News likes */
.like-row { display: flex; justify-content: flex-end; margin-top: 12px; }
.like-form { margin: 0; }
.like-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 700 14px var(--display); cursor: pointer; transition: border-color .15s, color .15s, background .15s; text-decoration: none; }
.like-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.like-btn:hover { border-color: #e5484d; color: #e5484d; text-decoration: none; }
.like-btn.liked { color: #e5484d; border-color: #e5484d; background: rgba(229, 72, 77, .1); }
.like-btn.liked svg { fill: currentColor; }
.like-btn.pop svg { animation: like-pop .35s ease; }
@keyframes like-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.news-likes { float: right; font: 700 12px var(--display); color: var(--muted); }

/* ---------- Eigen pagina's en blokken (Websitebeheer) ---------- */
.cms-page { max-width: 860px; margin: 0 auto; padding: 40px 20px 60px; display: flex; flex-direction: column; gap: 22px; }
.cms-page-block { display: flex; flex-direction: column; gap: 22px; }
.cms-heading { margin: 10px 0 0; }
.cms-image { margin: 0; }
.cms-image img { width: 100%; border-radius: var(--radius); display: block; }
.cms-image figcaption { margin-top: 6px; }
.cms-w-medium { max-width: 50%; }
.cms-w-small { max-width: 30%; }
.cms-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.cms-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cms-spacer { height: 40px; }
.cms-button { margin: 0; }
@media (max-width: 700px) { .cms-w-medium, .cms-w-small { max-width: 100%; } }
