:root {
  color-scheme: dark;
  --bg: #070b0f;
  --panel: #101821;
  --panel-soft: rgba(16, 24, 33, 0.74);
  --line: rgba(206, 226, 240, 0.14);
  --line-strong: rgba(67, 183, 205, 0.38);
  --text: #eef7fb;
  --muted: #9fb2c0;
  --soft: #cbe2ef;
  --cyan: #36b8d0;
  --gold: #f2b84b;
  --green: #49c57a;
  --red: #ef5b67;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: Inter, "Segoe UI", system-ui, sans-serif; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 11, 15, 0.66), var(--bg) 78%), url("assets/banner-amsterdam-roleplay.webp") center / cover; opacity: 0.55; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
p, li { color: var(--muted); }
ul { margin: 12px 0 0; padding-left: 18px; }
.container { width: min(100% - 32px, 1180px); margin: 0 auto; }
.portal-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(7, 11, 15, 0.86); backdrop-filter: blur(16px); }
.portal-nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 220px; }
.brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; }
.brand strong { display: block; font-size: 0.98rem; }
.brand small { display: block; color: var(--muted); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; }
.top-links, .subnav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-links a, .subnav a { border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; color: var(--soft); background: rgba(255, 255, 255, 0.03); font-size: 0.86rem; font-weight: 850; }
.top-links a:hover, .subnav a:hover, .subnav a.is-active { border-color: var(--line-strong); color: var(--text); background: rgba(54, 184, 208, 0.12); }
.subnav { padding: 0 0 14px; }
.hero-panel { border-bottom: 1px solid var(--line); }
.hero-grid { min-height: 390px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr); gap: 34px; align-items: center; padding: 52px 0; }
.eyebrow { color: var(--gold); font-size: 0.78rem; font-weight: 950; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { margin-top: 10px; font-size: clamp(2.45rem, 6vw, 5rem); line-height: 0.96; }
.hero-copy p:not(.eyebrow) { margin-top: 18px; max-width: 680px; font-size: 1.05rem; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid transparent; border-radius: 8px; padding: 12px 16px; color: #071016; background: linear-gradient(135deg, var(--cyan), var(--gold)); font-weight: 950; }
.button.secondary { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.metric-grid { display: grid; gap: 12px; }
.metric-grid div { min-height: 108px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 18px; background: linear-gradient(140deg, rgba(16, 24, 33, 0.94), rgba(7, 11, 15, 0.92)); box-shadow: var(--shadow); }
.metric-grid span { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 950; text-transform: uppercase; }
.metric-grid strong { display: block; margin-top: 8px; font-size: 2rem; }
.section { padding: 48px 0; }
.section.slim { padding-top: 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-head h2 { margin-top: 6px; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.05; }
.card-grid, .rule-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-card, .rule-card, .notice-panel { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: var(--panel-soft); box-shadow: var(--shadow); }
.tool-card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: rgba(54, 184, 208, 0.09); }
.tool-card span, .rule-card span { display: inline-flex; width: fit-content; border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; color: var(--soft); font-size: 0.7rem; font-weight: 950; text-transform: uppercase; }
.tool-card h3, .rule-card h3, .notice-panel h3 { margin-top: 12px; font-size: 1.15rem; }
.tool-card p, .rule-card p, .notice-panel p { margin-top: 8px; font-size: 0.92rem; }
.rule-section + .rule-section { margin-top: 34px; }
.rule-section h2 { margin: 0 0 14px; font-size: 1.4rem; }
.rule-card small { display: block; margin-top: 10px; color: var(--soft); }
.section-head.compact { align-items: flex-start; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.section-head.compact h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.staff-card { border: 1px solid rgba(139, 92, 246, 0.28); border-radius: 20px; padding: 28px 30px; margin-bottom: 22px; background: rgba(21, 16, 33, 0.84); box-shadow: var(--shadow); }
.staff-card-title { display: flex; align-items: center; gap: 10px; border-left: 4px solid #8b5cf6; padding-left: 14px; margin-bottom: 18px; color: var(--text); font-size: 1.24rem; font-weight: 950; }
.staff-card-icon { color: #8b5cf6; font-size: 1.22rem; line-height: 1; }
.staff-empty { color: #9ca3af; font-size: 0.92rem; font-style: italic; }
.staff-functies-card { margin-bottom: 24px; }
.staff-functie-sectie { border-bottom: 1px solid rgba(139, 92, 246, 0.16); }
.staff-functie-sectie:last-child { border-bottom: 0; }
.staff-functie-toggle { width: 100%; display: flex; align-items: flex-start; gap: 12px; border: 0; padding: 20px 0; margin: 0; color: #f3f0ff; background: transparent; font: inherit; font-size: 1.12rem; font-weight: 850; line-height: 1.35; text-align: left; cursor: pointer; }
.staff-functie-toggle:hover { color: #fff; }
.staff-functie-chevron { width: 10px; height: 10px; flex: 0 0 auto; margin-top: 8px; border-right: 3px solid #b894ff; border-bottom: 3px solid #b894ff; transform: rotate(-45deg); transition: transform 0.18s ease; }
.staff-functie-toggle.open .staff-functie-chevron { transform: rotate(45deg); }
.staff-functie-toggle-label { flex: 1; min-width: 0; }
.staff-functie-panel { display: none; padding: 4px 0 22px 34px; }
.staff-functie-panel.open { display: block; }
.staff-role-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.staff-role-chip { --role-color: #c084fc; display: inline-flex; align-items: center; gap: 10px; max-width: 100%; border: 1px solid color-mix(in srgb, var(--role-color), transparent 50%); border-radius: 13px; padding: 11px 16px; color: #f7f2ff; background: rgba(0, 0, 0, 0.28); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.staff-role-chip:hover { border-color: var(--role-color); background: color-mix(in srgb, var(--role-color), transparent 88%); transform: translateY(-1px); }
.staff-role-chip.copied { border-color: #22c55e; background: rgba(34, 197, 94, 0.12); }
.staff-role-dot { width: 15px; height: 15px; border-radius: 50%; flex: 0 0 auto; background: var(--role-color); }
.staff-role-chip-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.staff-role-name { font-size: 1rem; font-weight: 950; line-height: 1.12; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.staff-role-id-hint { color: #a3a0ae; font: 0.78rem ui-monospace, Consolas, monospace; }
.staff-role-chip-unknown .staff-role-name { color: #ffd1d1; }
.staff-functie-vanaf-label { margin: 18px 0 10px; color: #b894ff; font-size: 0.86rem; font-weight: 850; text-transform: uppercase; letter-spacing: 0.04em; }
.staff-list { list-style: none; margin: 0; padding: 0; }
.staff-list li { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); color: #ddd8e8; font-size: 1.08rem; }
.staff-angle { color: #a855f7; font-size: 1.45rem; line-height: 0.95; }
.team-root { display: block; }
.staff-live-badge { display: flex; align-items: center; gap: 7px; margin: 0 0 14px; color: #a3a0ae; font-size: 0.86rem; }
.staff-rank-block { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.staff-rank-block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.staff-rank-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.staff-rank-dot { width: 13px; height: 13px; border-radius: 50%; flex: 0 0 auto; background: #8b5cf6; }
.staff-rank-head h3 { margin: 0; font-size: 1.15rem; font-weight: 950; }
.staff-rank-meta { margin-left: auto; color: #8f8a9f; font-size: 0.78rem; font-weight: 850; }
.staff-member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.staff-member { display: flex; align-items: center; gap: 13px; min-height: 76px; border-radius: 13px; padding: 12px 16px; background: rgba(5, 4, 12, 0.48); }
.staff-member-avatar { width: 48px; height: 48px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; background: #101018; }
.staff-member-text { min-width: 0; color: #f5f3ff; font-weight: 850; }
.staff-member small { display: block; margin-top: 3px; color: #878392; font-size: 0.8rem; font-weight: 600; }
.dossier-layout { display: grid; grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr); gap: 22px; align-items: start; }
.dossier-form.staff-card, .dossier-list-wrap.staff-card { margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
label { display: grid; gap: 7px; margin-top: 12px; color: #cbc3df; font-size: 0.82rem; font-weight: 900; }
input, select, textarea { width: 100%; border: 1px solid rgba(139, 92, 246, 0.24); border-radius: 12px; padding: 12px 13px; color: var(--text); background: rgba(5, 4, 12, 0.42); font: inherit; outline: none; }
textarea { resize: vertical; min-height: 106px; }
input:focus, select:focus, textarea:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14); }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.form-actions span { color: var(--muted); font-size: 0.86rem; font-weight: 850; }
.dossier-filters { display: grid; grid-template-columns: minmax(180px, 1fr) 170px 170px; gap: 10px; margin: 0 0 14px; }
.dossier-list { display: grid; gap: 12px; }
.dossier-card { border: 1px solid rgba(139, 92, 246, 0.18); border-radius: 16px; padding: 16px; background: rgba(5, 4, 12, 0.42); }
.dossier-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.dossier-card h3 { margin: 0; color: #f5f3ff; font-size: 1.12rem; }
.dossier-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.status-badge { display: inline-flex; border: 1px solid rgba(139, 92, 246, 0.28); border-radius: 999px; padding: 5px 9px; color: #d8cdf8; background: rgba(139, 92, 246, 0.1); font-size: 0.73rem; font-weight: 950; }
.dossier-card p { margin-top: 10px; color: #c9c3d5; }
.dossier-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mini-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(139, 92, 246, 0.24); border-radius: 10px; padding: 8px 11px; color: #f7f2ff; background: rgba(139, 92, 246, 0.08); font: inherit; font-size: 0.78rem; font-weight: 950; cursor: pointer; text-decoration: none; }
.mini-button:hover { border-color: #8b5cf6; background: rgba(139, 92, 246, 0.16); }
.mini-button.danger { color: #ffc5ca; border-color: rgba(239, 91, 103, 0.28); }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-status-list { display: grid; gap: 10px; }
.admin-status-list div { border: 1px solid rgba(139, 92, 246, 0.18); border-radius: 14px; padding: 14px; background: rgba(5, 4, 12, 0.36); }
.admin-status-list span { display: block; color: #a3a0ae; font-size: 0.78rem; font-weight: 950; text-transform: uppercase; }
.admin-status-list strong { display: block; margin-top: 4px; color: #f5f3ff; font-size: 1.1rem; }
.admin-status-list p, .admin-note { margin-top: 6px; color: #c9c3d5; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-module-grid { display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.admin-form.staff-card { margin-bottom: 0; }
.record-grid { display: grid; gap: 12px; }
.record-grid.compact { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.record-card { border: 1px solid rgba(139, 92, 246, 0.18); border-radius: 16px; padding: 16px; background: rgba(5, 4, 12, 0.42); }
.record-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 9px; }
.record-card h3 { margin: 0; color: #f5f3ff; font-size: 1.08rem; line-height: 1.2; }
.record-card p { margin-top: 8px; color: #c9c3d5; font-size: 0.9rem; }
.record-card .dossier-meta { margin-top: 8px; }
.record-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.profile-hero { margin-bottom: 18px; }
.profile-hero h1 { margin-top: 8px; font-size: clamp(2.2rem, 6vw, 4rem); }
.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.profile-grid .staff-card { display: grid; gap: 12px; }
.dossier-link-list, .dossier-note-list { margin-top: 12px; border: 1px solid rgba(139, 92, 246, 0.16); border-radius: 12px; padding: 11px; background: rgba(139, 92, 246, 0.06); }
.dossier-link-list strong, .dossier-note-list strong { display: block; margin-bottom: 8px; color: #f5f3ff; font-size: 0.82rem; }
.dossier-link-list a { display: inline-flex; margin: 0 8px 8px 0; color: var(--gold); font-weight: 900; }
.dossier-note-list p { margin: 6px 0 0; }
.login-page { min-height: 100vh; overflow-x: hidden; }
.login-page::before { background: radial-gradient(circle at 30% 22%, rgba(53, 120, 229, 0.25), transparent 34%), radial-gradient(circle at 74% 72%, rgba(54, 184, 208, 0.18), transparent 30%), linear-gradient(180deg, rgba(7, 11, 15, 0.72), rgba(7, 11, 15, 0.96)), url("assets/banner-amsterdam-roleplay.webp") center / cover; opacity: 1; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 34px 16px; }
.login-card { width: min(500px, 100%); border: 1px solid rgba(54, 184, 208, 0.28); border-radius: 8px; padding: 34px; text-align: center; background: rgba(16, 24, 33, 0.94); box-shadow: 0 30px 100px rgba(0, 0, 0, 0.48); backdrop-filter: blur(18px); }
.login-logo { width: 92px; height: 92px; object-fit: contain; margin-bottom: 14px; }
.login-card h1 { margin-top: 6px; font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1; }
.login-card h1 span { color: var(--cyan); }
.login-lead { max-width: 350px; margin: 12px auto 0; font-size: 0.96rem; }
.auth-status { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--muted); background: rgba(255, 255, 255, 0.045); font-size: 0.82rem; font-weight: 800; }
.auth-status.is-ok { color: var(--green); border-color: rgba(73, 197, 122, 0.35); background: rgba(73, 197, 122, 0.1); }
.auth-status.is-error { color: var(--red); border-color: rgba(239, 91, 103, 0.35); background: rgba(239, 91, 103, 0.1); }
.discord-login { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 24px; border-radius: 999px; color: #fff; background: #5865f2; font-weight: 950; box-shadow: 0 12px 30px rgba(88, 101, 242, 0.26); }
.login-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.login-links a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; color: var(--muted); font-size: 0.76rem; font-weight: 850; }
.login-card footer { margin-top: 18px; color: rgba(203, 226, 239, 0.52); font-size: 0.72rem; }
.portal-footer { border-top: 1px solid var(--line); background: rgba(7, 11, 15, 0.9); }
.footer-row { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; color: var(--muted); font-size: 0.86rem; }
@media (max-width: 1080px) { .card-grid, .rule-list, .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dossier-layout, .admin-grid, .admin-module-grid, .profile-grid { grid-template-columns: 1fr; } }
@media (max-width: 740px) {
  .container { width: min(100% - 24px, 1180px); }
  .portal-nav, .section-head, .footer-row { align-items: flex-start; flex-direction: column; }
  .subnav { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 12px; }
  .subnav a { white-space: nowrap; }
  .hero-grid, .card-grid, .rule-list, .function-list, .team-grid, .form-grid { grid-template-columns: 1fr; }
  .dossier-filters { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; padding: 40px 0; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.3rem); }
}
