/* EclipseMC Tickets — huisstijl van eclipsemc.be (navy, paars, oranje · Orbitron + Barlow), strak uitgevoerd */
:root {
    --bg: #00062e;
    --surface: #060d37;
    --surface-2: #0b1344;
    --surface-3: #131b55;
    --border: #1f1d55;
    --border-strong: #2f2a6e;
    --text: #f2f3f8;
    --text-2: #a9aecb;
    --text-3: #747aa3;
    --accent: #ff8c00;
    --accent-hover: #ffa033;
    --accent-text: #160c00;
    --accent-soft: rgba(255, 140, 0, .14);
    --purple: #9b5cff;
    --purple-strong: #7a2fe0;
    --purple-soft: rgba(155, 92, 255, .16);
    --green: #3fbf87;
    --green-soft: rgba(63, 191, 135, .14);
    --amber: #f2b33d;
    --amber-soft: rgba(242, 179, 61, .14);
    --red: #ff6464;
    --red-soft: rgba(255, 100, 100, .14);
    --blue: #6aa2ff;
    --radius: 10px;
    --radius-sm: 7px;
    --font: "Barlow", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Orbitron", "Barlow", sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
    --hero: linear-gradient(115deg, #4b168f 0%, #2e1a86 42%, #0d1552 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: tabular-nums;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: .02em; }
h2 { font-size: 15px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 12px; background: var(--surface-3); padding: 1px 5px; border-radius: 4px; color: var(--text-2); }
svg { flex: none; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.small { font-size: 14px; }
.xsmall { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden { display: none !important; }
.mt { margin-top: 16px; }
.mt-sm { margin-top: 8px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--border); margin: 16px 0; border: 0; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, #170b52 0%, var(--surface) 34%, var(--surface) 100%);
    border-right: 1px solid var(--border);
    padding: 18px 12px;
    overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 22px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .03em; }
.brand-tag { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-top: 3px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-section { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); padding: 18px 12px 6px; }
.nav a, .nav button {
    display: flex; align-items: center; gap: 11px;
    width: 100%;
    padding: 8px 12px;
    border: 0; border-radius: var(--radius-sm);
    background: none;
    color: var(--text-2);
    font: inherit; font-weight: 500; text-align: left;
    cursor: pointer;
}
.nav svg { width: 17px; height: 17px; color: var(--text-3); }
.nav a:hover, .nav button:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.nav a.active { background: var(--purple-soft); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.nav a.active svg { color: var(--accent); }
.nav .count { margin-left: auto; font-size: 12px; font-weight: 600; min-width: 22px; text-align: center; padding: 1px 6px; border-radius: 10px; background: var(--accent); color: var(--accent-text); }
.sidebar-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.user { display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; min-width: 0; }
.avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--hero); border: 1px solid var(--border-strong);
    font-family: var(--font-display); font-size: 12px; font-weight: 700; color: #fff;
}
.user-meta { min-width: 0; }
.user-name { font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-role { font-size: 12px; color: var(--text-3); }

.main { min-width: 0; }
.topbar {
    display: none; align-items: center; justify-content: space-between;
    padding: 10px 16px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 20;
}
.content { max-width: 1260px; margin: 0 auto; padding: 28px 32px 56px; }

.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-subtitle { color: var(--text-2); margin-top: 5px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--text-3); margin-bottom: 10px; }
.breadcrumb a { color: var(--text-2); }

/* Merkband bovenaan het dashboard */
.hero {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    padding: 24px 28px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    border: 1px solid #3a2a8a;
    background: var(--hero);
}
.hero::after {
    content: ""; position: absolute; right: -40px; top: -60px; width: 260px; height: 260px;
    background: url("https://eclipsemc.be/img/logo-t.png") center / contain no-repeat;
    opacity: .09; pointer-events: none;
}
.hero h1 { font-size: 22px; }
.hero p { color: #d6d0f5; margin-top: 6px; }
.hero > * { position: relative; z-index: 1; }

/* ---------- Kaarten ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-header .link { font-size: 14px; color: var(--text-2); }
.card-header .link:hover { color: var(--accent); }
.card-body { padding: 18px; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.grid-detail { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }

.kpi { padding: 16px 18px; position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--border-strong); }
.kpi.accent::before { background: var(--accent); }
.kpi.purple::before { background: var(--purple); }
.kpi-label { color: var(--text-2); font-size: 14px; }
.kpi-value { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-top: 8px; line-height: 1.2; letter-spacing: .01em; }
.kpi-value .unit { font-family: var(--font); font-size: 15px; color: var(--text-2); font-weight: 500; margin-left: 4px; }
.kpi-hint { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.kpi-hint .warn { color: var(--amber); }
.chart { position: relative; height: 260px; }
.chart.sm { height: 210px; }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--text-2); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 3px; border-radius: 2px; }
.swatch.accent { background: var(--accent); }
.swatch.purple { background: var(--purple); }

.dist { display: flex; flex-direction: column; gap: 13px; }
.dist-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: center; }
.dist-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dist-value { color: var(--text-2); font-size: 14px; }
.dist-bar { grid-column: 1 / -1; height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.dist-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--purple-strong), var(--accent)); border-radius: 3px; }
.dist-bar.alt span { background: var(--purple); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
    text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
    padding: 11px 18px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
td { padding: 11px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, .02); }
td.num, th.num { text-align: right; }
td select { width: auto; min-width: 140px; height: 32px; }
td .check { margin-top: 6px; }
.cell-title { font-weight: 600; color: var(--text); }
.cell-sub { font-size: 13px; color: var(--text-3); margin-top: 1px; }
.ticket-no { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
a.ticket-no:hover { color: var(--accent); }
.empty { text-align: center; color: var(--text-3); padding: 40px 16px; }

/* Discord-gebruiker: naam + kopieerbaar ID */
.duser { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; max-width: 100%; vertical-align: middle; }
.duser-avatar { width: 20px; height: 20px; border-radius: 50%; }
.duser-name { font-weight: 500; }
.duser-id {
    font-family: var(--mono); font-size: 11.5px; color: var(--text-3);
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px;
    padding: 0 5px; line-height: 18px; cursor: copy;
}
.duser-id:hover { color: var(--text); border-color: var(--border-strong); }
.duser-id.copied { color: var(--green); border-color: rgba(63, 191, 135, .5); }
.duser.compact { gap: 5px; }

/* ---------- Badges & prioriteit ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    height: 23px; padding: 0 9px;
    border-radius: 12px;
    font-size: 12.5px; font-weight: 600;
    background: var(--surface-3); color: var(--text-2);
    white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge-open { background: var(--green-soft); color: var(--green); }
.badge-closed { background: var(--amber-soft); color: var(--amber); }
.badge-deleted { background: var(--surface-3); color: var(--text-3); }
.badge-role { background: var(--purple-soft); color: #c4a6ff; }
.badge-danger { background: var(--red-soft); color: var(--red); }
.prio { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.prio-groen { background: var(--green); }
.prio-oranje { background: #f08a3c; }
.prio-geel { background: var(--amber); }
.prio-rood { background: var(--red); }
.prio-sos { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

/* ---------- Formulieren ---------- */
label, .label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.help { color: var(--text-3); font-size: 13px; margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
    width: 100%; height: 38px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 0 11px;
    font: inherit;
    transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; min-height: 100px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23747aa3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:hover, select:hover, textarea:hover { border-color: #43399a; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=color] { width: 46px; height: 38px; padding: 3px; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 500; margin: 0; cursor: pointer; color: var(--text); }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.check-list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px;
    max-height: 240px; overflow-y: auto;
    padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg);
}
.check-list .check { font-size: 14px; min-width: 0; }
.check-list .check span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .field { margin: 0; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--border); }

.section { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; padding: 26px 0; border-top: 1px solid var(--border); }
.section:first-child { border-top: 0; padding-top: 0; }
.section-intro h2 { font-family: var(--font-display); font-size: 14px; letter-spacing: .03em; }
.section-intro p { color: var(--text-2); font-size: 14px; margin-top: 6px; }
.filters, .transcript-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.search { flex: 1 1 280px; position: relative; }
.search svg { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: var(--text-3); }
.search input { padding-left: 36px; }
.filters select, .transcript-tools select { width: auto; min-width: 160px; }
.question { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; background: var(--surface-2); }
.question + .question { margin-top: 10px; }
.question-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.question-grid { display: grid; grid-template-columns: minmax(0, 1fr) 160px 110px; gap: 12px; margin-bottom: 12px; }
.question-grid .field { margin: 0; }

/* ---------- Knoppen ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 36px; padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
    font: inherit; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    transition: background .12s, border-color .12s, color .12s;
}
.btn svg { width: 16px; height: 16px; color: var(--text-2); }
.btn:hover { background: var(--surface-3); border-color: #43399a; color: var(--text); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary svg { color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
.btn-purple { background: var(--purple-strong); border-color: var(--purple-strong); color: #fff; }
.btn-purple svg { color: #fff; }
.btn-purple:hover { background: #8a45ef; border-color: #8a45ef; color: #fff; }
.btn-danger { color: var(--red); }
.btn-danger svg { color: var(--red); }
.btn-danger:hover { background: var(--red-soft); border-color: rgba(255, 100, 100, .45); color: var(--red); }
.btn-ghost { background: none; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); border-color: transparent; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 14px; }
.btn-block { width: 100%; }
.inline-form { display: inline; margin: 0; }

.segmented { display: inline-flex; padding: 3px; background: rgba(0, 6, 46, .55); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-sm); }
.segmented a { padding: 5px 13px; border-radius: 5px; font-size: 14px; color: #cfc9f0; font-weight: 600; }
.segmented a:hover { color: #fff; }
.segmented a.active { background: var(--accent); color: var(--accent-text); }

/* ---------- Meldingen ---------- */
.alert { display: flex; gap: 10px; padding: 11px 14px; margin-bottom: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); word-break: break-word; }
.alert::before { content: ""; flex: none; width: 3px; border-radius: 2px; background: var(--text-3); }
.alert-success::before { background: var(--green); }
.alert-error { border-color: rgba(255, 100, 100, .35); }
.alert-error::before { background: var(--red); }
.alert-info::before { background: var(--purple); }
.alert-warn::before { background: var(--amber); }
.alert .btn { margin-left: auto; align-self: center; }

/* ---------- Ticketdetail ---------- */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.dl dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.dl dd { margin: 0; word-break: break-word; }
.qa + .qa { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.qa-q { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.qa-a { white-space: pre-wrap; word-break: break-word; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.timeline li::after { content: ""; position: absolute; left: 6.5px; top: 19px; bottom: 0; width: 1px; background: var(--border); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.ev-opened::before, .timeline li.ev-reopened::before { background: var(--green); }
.timeline li.ev-closed::before { background: var(--amber); }
.timeline li.ev-deleted::before { background: var(--red); }
.timeline li.ev-transcript::before, .timeline li.ev-transcript_sent::before { background: var(--purple); }
.timeline .ev-title { font-weight: 600; }
.timeline .ev-meta { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.timeline .ev-detail { font-size: 14px; color: var(--text-2); margin-top: 3px; }
.actions { display: flex; flex-direction: column; gap: 8px; }
.actions form { margin: 0; }
.rating { color: var(--accent); letter-spacing: 1px; }
.rating .off { color: var(--border-strong); }
.opener { display: flex; align-items: center; gap: 12px; }
.opener img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border-strong); }

/* ---------- Setup ---------- */
.progress { height: 8px; background: rgba(0, 6, 46, .55); border-radius: 4px; overflow: hidden; margin-top: 12px; max-width: 360px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: 0; }
.check-icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.check-icon svg { width: 15px; height: 15px; }
.check-icon.ok { background: var(--green-soft); color: var(--green); }
.check-icon.warn { background: var(--amber-soft); color: var(--amber); }
.check-icon.error { background: var(--red-soft); color: var(--red); }
.check-title { font-weight: 600; }
.check-detail { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.check-detail ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Discord-voorbeeld (paneel) ---------- */
.dc-preview { background: #313338; border-radius: var(--radius-sm); padding: 16px; font-family: "gg sans", "Noto Sans", "Helvetica Neue", Arial, sans-serif; color: #dbdee1; font-size: 15px; }
.dc-message { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; background: #1e1f22; }
.dc-name { font-weight: 600; color: #f2f3f5; }
.dc-app { font-size: 10px; font-weight: 600; background: #5865f2; color: #fff; border-radius: 3px; padding: 1px 4px; margin-left: 4px; vertical-align: 2px; }
.dc-time { font-size: 12px; color: #949ba4; margin-left: 6px; }
.dc-embed { margin-top: 6px; max-width: 520px; background: #2b2d31; border-left: 4px solid #9b59b6; border-radius: 4px; padding: 10px 16px 14px 12px; }
.dc-embed-title { font-weight: 700; color: #f2f3f5; font-size: 16px; }
.dc-embed-desc { margin-top: 6px; font-size: 14px; word-break: break-word; }
.dc-embed-image { margin-top: 12px; max-width: 100%; border-radius: 4px; display: block; }
.dc-embed-footer { margin-top: 8px; font-size: 12px; color: #b5bac1; }
.dc-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dc-button { height: 32px; padding: 0 16px; border-radius: 3px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: #fff; background: #4e5058; }
.dc-button.Primary { background: #5865f2; }
.dc-button.Success { background: #248046; }
.dc-button.Danger { background: #da373c; }
.dc-select { margin-top: 8px; max-width: 420px; height: 40px; border-radius: 4px; background: #1e1f22; border: 1px solid #1e1f22; color: #949ba4; display: flex; align-items: center; padding: 0 12px; font-size: 14px; }

/* ---------- Paginering ---------- */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-3); }
.pagination .pages { display: flex; gap: 4px; }
.pagination a, .pagination span.current { min-width: 32px; height: 30px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--text-2); }
.pagination a:hover { border-color: var(--border-strong); color: var(--text); }
.pagination span.current { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }

/* ---------- Inlogpagina's ---------- */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; background: linear-gradient(180deg, #3d1484 0%, #1c1468 38%, var(--bg) 100%); }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 24px; text-align: center; }
.auth-brand img { width: 64px; height: 64px; }
.auth-brand span { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.auth-brand small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; padding: 30px; box-shadow: 0 24px 60px rgba(0, 3, 25, .55); }
.auth-card h1 { font-size: 18px; }
.auth-card .page-subtitle { margin-bottom: 22px; }
.auth-footer { margin-top: 20px; font-size: 13px; color: var(--text-3); text-align: center; }

/* ---------- Responsief ---------- */
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-wide, .grid-detail { grid-template-columns: minmax(0, 1fr); }
    .section { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 860px) {
    .layout { grid-template-columns: minmax(0, 1fr); }
    .sidebar { position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 40; transform: translateX(-100%); transition: transform .18s ease; }
    .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); }
    .topbar { display: flex; }
    .content { padding: 20px 16px 40px; }
    .hero { padding: 20px; }
    .grid-2, .form-grid, .question-grid, .dl { grid-template-columns: minmax(0, 1fr); }
    td, th { padding-left: 14px; padding-right: 14px; }
    .hide-sm { display: none; }
}
@media (max-width: 520px) {
    .grid-4 { grid-template-columns: minmax(0, 1fr); }
    .filters select, .transcript-tools select { flex: 1 1 140px; }
}
