/* VernuxSMP - gedeelde stijl voor de homepage, /vote, /regels en het beheer */
:root {
  --bg: #100d14;
  --bg-2: #0c0a0f;
  --card: #17141c;
  --card-2: #211c28;
  --line: #2b2433;
  --text: #bdb5c9;
  --muted: #8a8296;
  --white: #fff;
  --accent: #b33df5;
  --accent-hi: #c665ff;
  --accent-glow: rgba(179, 61, 245, .45);
  --radius: 6px;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1140px, 100% - 2rem); margin-inline: auto; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 42px; padding: .55rem 1.3rem; cursor: pointer;
  background: var(--accent); color: #fff; border: 0; border-radius: 4px;
  font-weight: 600; font-size: .92rem;
  box-shadow: 0 0 18px var(--accent-glow);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--accent-hi); transform: translateY(-1px); box-shadow: 0 0 26px var(--accent-glow); }
.btn-dark { background: var(--card-2); color: #e4dded; box-shadow: none; }
.btn-dark:hover { background: #2c2535; box-shadow: none; }

.round-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font-size: .9rem;
  box-shadow: 0 0 16px var(--accent-glow);
}
.round-btn.square { border-radius: 9px; font-size: 1.05rem; }
.round-btn.big { width: 52px; height: 52px; font-size: 1.15rem; transition: transform .2s; }
.round-btn.big.square { font-size: 1.45rem; }
.round-btn .fa-play { margin-left: 3px; }

/* ---------- Navigatie ---------- */
.topnav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.topnav-inner { display: flex; align-items: center; justify-content: center; min-height: 64px; }
.menu { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .95rem; border-radius: 4px;
  color: rgba(255, 255, 255, .65); font-weight: 600; font-size: .95rem;
  transition: color .15s, background .15s;
}
.menu a:hover { color: #fff; }
.menu a.active { color: #fff; }
.menu a.pill { background: var(--accent); color: #fff; box-shadow: 0 0 16px var(--accent-glow); }
.menu a.pill:hover { background: var(--accent-hi); }
.menu-toggle, .mobile-icons { display: none; }

/* ---------- Header ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 70px;
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(150, 40, 220, .55), transparent 70%),
    linear-gradient(to bottom, #3a0d57 0%, #250a3a 45%, var(--bg) 100%);
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; pointer-events: none; }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem;
}
.logo { display: block; line-height: 0; animation: float 6s ease-in-out infinite; }
.logo img { width: clamp(190px, 22vw, 250px); height: auto; filter: drop-shadow(0 10px 30px rgba(179, 61, 245, .45)); }
@keyframes float { 50% { transform: translateY(-10px); } }

.stat {
  display: flex; align-items: center; gap: 1rem;
  background: none; border: 0; padding: .5rem; cursor: pointer; text-align: inherit;
}
.stat-left { justify-self: end; text-align: right; }
.stat-right { justify-self: start; text-align: left; }
.stat-text { display: flex; flex-direction: column; line-height: 1.3; }
.stat-main { color: var(--accent-hi); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .02em; }
.stat-main b { color: #fff; }
.stat-sub { color: #fff; font-weight: 700; font-size: .82rem; letter-spacing: .03em; }
.stat-hint { color: rgba(255, 255, 255, .5); font-size: .75rem; }
.stat:hover .round-btn.big { transform: scale(1.08); }
.stat.off .stat-main { color: #ff6b81; }

/* ---------- Kaarten ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

.intro {
  position: relative; z-index: 2; margin-top: -24px;
  display: grid; grid-template-columns: 2fr 1fr; gap: 1rem;
}
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 1.6rem; }
.welcome h1 { margin: 0 0 .15rem; color: var(--accent-hi); font-size: 1.3rem; font-weight: 700; }
.welcome p { margin: 0; }
.welcome .version { margin-top: .4rem; color: var(--muted); font-size: .85rem; }
.welcome .version i { color: var(--accent); margin-right: .25rem; }
.welcome .version { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.welcome .version b { color: #fff; }
.dot::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: .45rem; border-radius: 50%; background: #6b6375; vertical-align: 1px; }
.dot.on::before { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.dot.off::before { background: #ff6b81; }
.welcome-btns { display: flex; flex-direction: column; gap: .55rem; flex: none; }

.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 1.6rem; color: #fff;
  background: linear-gradient(135deg, #a42fe6, #7d1fc2);
  border: 2px solid var(--accent-hi);
  box-shadow: 0 0 28px var(--accent-glow);
  transition: transform .2s, box-shadow .2s;
}
.cta:hover { transform: translateY(-3px); box-shadow: 0 0 40px rgba(198, 101, 255, .6); }
.cta strong { display: block; font-size: 1.75rem; font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1.1; }
.cta small { font-size: .9rem; font-weight: 500; opacity: .9; }
.cta i { font-size: 2.2rem; opacity: .9; transition: transform .2s; }
.cta:hover i { transform: rotate(-12deg) scale(1.1); }

/* ---------- Secties ---------- */
.section { padding-top: 3.5rem; }
.title {
  display: flex; align-items: center; gap: .8rem;
  margin: 0 0 .35rem; color: #fff; font-size: 1.6rem; font-weight: 700;
}
.title::after { content: ''; width: 22px; height: 8px; border-radius: 8px; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.title.small { font-size: 1.3rem; margin-bottom: .6rem; }
.lead { margin: 0 0 1.5rem; color: var(--muted); }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature {
  position: relative; display: flex; flex-direction: column; padding: 1.5rem 1.4rem 1.3rem; overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.feature::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.feature:hover { transform: translateY(-4px); border-color: #4a2f63; }
.feature-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1rem;
  border-radius: 10px; background: rgba(179, 61, 245, .14); color: var(--accent-hi); font-size: 1.3rem;
}
.feature h3 { margin: 0 0 .4rem; color: #fff; font-size: 1.15rem; font-weight: 700; }
.feature p { margin: 0 0 1.1rem; font-size: .92rem; flex: 1; }
.feature code {
  align-self: flex-start; padding: .25rem .6rem; border-radius: 4px;
  background: var(--card-2); color: var(--accent-hi); font: 600 .82rem ui-monospace, Consolas, monospace;
}

.staff { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 1rem; }
.member {
  --role: #fff;
  display: flex; flex-direction: column; align-items: center; padding: 1.4rem 1rem 1.2rem; text-align: center;
  border-bottom: 3px solid var(--role);
  transition: transform .2s;
}
.member:hover { transform: translateY(-4px); }
.member img { width: 80px; height: 80px; margin-bottom: .8rem; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.member-name { color: #fff; font-weight: 700; overflow-wrap: anywhere; }
.member-role {
  margin-top: .35rem; padding: .1rem .65rem; border-radius: 20px;
  color: var(--role); background: color-mix(in srgb, var(--role) 14%, transparent);
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.empty { padding: 1.5rem; border-style: dashed; }

/* ---------- Footer ---------- */
.footer { margin-top: 5rem; background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; padding: 3rem 0 2.5rem; }
.footer p { margin: 0 0 1rem; font-size: .93rem; }
.ip-btn { text-transform: uppercase; letter-spacing: .03em; font-size: .85rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.footer-links a { font-weight: 500; transition: color .15s; }
.footer-links a:hover { color: var(--accent-hi); }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 0 1.6rem; font-size: .9rem; }
.footer-bottom strong { color: #fff; }
.footer-bottom small { color: var(--muted); }
.footer-icons { display: flex; gap: .5rem; }
.footer-icons a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 6px;
  background: var(--card); color: var(--muted); transition: color .15s, background .15s;
}
.footer-icons a:hover { color: #fff; background: var(--accent); }
.footer-icons a.admin:hover { background: #c0394f; }

/* ---------- Melding ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: .7rem 1.2rem; border-radius: 6px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: .92rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5), 0 0 20px var(--accent-glow);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .topnav-inner { justify-content: space-between; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .5rem; padding: .4rem 0;
    background: none; border: 0; cursor: pointer; color: rgba(255, 255, 255, .85); font-size: 1.05rem; font-weight: 500;
  }
  .mobile-icons { display: flex; gap: .7rem; }
  .menu {
    display: none; position: absolute; top: 60px; left: 1rem; right: 1rem;
    flex-direction: column; gap: .15rem; padding: .6rem;
    background: rgba(23, 20, 28, .97); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
  }
  .menu.open { display: flex; }
  .menu a { display: flex; padding: .7rem .9rem; }
  .menu a.active { background: var(--card-2); }

  .hero { padding: 76px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; justify-items: center; gap: 0; }
  .stat { display: none; }
  .intro { grid-template-columns: 1fr; margin-top: -10px; }
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .welcome { flex-direction: column; align-items: stretch; padding: 1.2rem; }
  .welcome-btns { flex-direction: row; }
  .welcome-btns .btn { flex: 1; }
  .features { grid-template-columns: 1fr; }
  .staff { grid-template-columns: repeat(2, 1fr); }
  .cta { padding: 1.1rem 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .logo { animation: none; }
  * { transition: none !important; }
}

/* ===================================================================
   Subpagina's (vote, regels)
   =================================================================== */
.hero-sm { padding: 76px 0 54px; }
.hero-sm .logo img { width: clamp(150px, 15vw, 185px); }

.page-grid { position: relative; z-index: 2; margin-top: -20px; display: grid; gap: 1rem; align-items: start; }
.page-grid.side-right { grid-template-columns: minmax(0, 1fr) 320px; }
.page-grid.side-left { grid-template-columns: 260px minmax(0, 1fr); }
.panel { padding: 1.5rem 1.6rem; }
.page-grid > div, .page-grid > aside { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.page-grid > aside.toc { display: block; }
.panel-title { margin: 0 0 1rem; color: var(--accent-hi); font-size: 1.15rem; font-weight: 700; }
.page-head h1 { margin: 0 0 .4rem; color: var(--accent-hi); font-size: 1.6rem; font-weight: 700; line-height: 1.25; }
.page-head p { margin: 0; }
.sticky { position: sticky; top: 1rem; }
.admin-edit {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem;
  color: var(--accent-hi); font-weight: 600; font-size: .9rem;
}
.admin-edit:hover { text-decoration: underline; }

/* ---------- Vote ---------- */
.vper {
  display: flex; align-items: center; gap: .7rem; margin-top: 1.1rem; padding: .75rem 1rem;
  background: rgba(179, 61, 245, .12); border: 1px solid rgba(179, 61, 245, .35); border-radius: var(--radius);
  color: #f1e6ff; font-weight: 600; font-size: .92rem;
}
.vper i { color: #ffc94d; }
.vname-box { margin-top: 1.1rem; }
.vname-box label { display: block; margin-bottom: .35rem; color: #fff; font-weight: 600; font-size: .9rem; }
.vname-box small { display: block; margin-top: .35rem; color: var(--muted); font-size: .82rem; }
.vote-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .6rem; }
.vsite {
  display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem .8rem .8rem;
  background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius);
  color: #fff; transition: border-color .15s, transform .15s, background .15s;
}
.vsite:hover { border-color: var(--accent); transform: translateX(3px); }
.vnum {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 6px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 1.05rem; box-shadow: 0 0 14px var(--accent-glow);
}
.vlabel { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.vtitle { font-weight: 700; overflow-wrap: anywhere; }
.vagain { color: var(--muted); font-size: .8rem; }
.vagain:empty { display: none; }
.vgo {
  flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 4px;
  background: var(--accent); font-weight: 600; font-size: .85rem;
}
.vgo .ok { display: none; }
.vsite.done { background: rgba(74, 222, 128, .06); border-color: rgba(74, 222, 128, .3); }
.vsite.done .vnum { background: #22c55e; box-shadow: none; }
.vsite.done .vgo { background: rgba(74, 222, 128, .15); color: #86efac; }
.vsite.done .vgo .go { display: none; }
.vsite.done .vgo .ok { display: inline; }
.progress-top { display: flex; justify-content: space-between; margin-bottom: .45rem; color: #fff; font-weight: 600; font-size: .9rem; }
.bar { height: 10px; border-radius: 10px; background: var(--card-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); border-radius: 10px; transition: width .4s; }
.rewards { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.rewards li {
  display: flex; align-items: center; gap: .8rem; padding: .6rem .75rem;
  background: var(--card-2); border-radius: var(--radius); font-size: .9rem;
}
.rewards b {
  flex: none; min-width: 74px; padding: .2rem .5rem; border-radius: 4px; text-align: center;
  background: rgba(179, 61, 245, .16); color: var(--accent-hi); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em;
}
.rewards span { color: #ece6f5; }
.note { margin: .9rem 0 0; color: var(--muted); font-size: .85rem; }

/* ---------- Regels ---------- */
.toc { padding: 1.3rem 0 .8rem; }
.toc .panel-title { padding: 0 1.3rem; }
.toc-link {
  display: flex; align-items: center; gap: .8rem; padding: .7rem 1.3rem; border-left: 3px solid transparent;
  color: var(--text); font-weight: 600; font-size: .92rem; text-transform: uppercase; letter-spacing: .02em;
  transition: color .15s, background .15s, border-color .15s;
}
.toc-link:hover { color: #fff; background: rgba(255, 255, 255, .03); }
.toc-link.active { color: #fff; border-left-color: var(--accent); background: rgba(179, 61, 245, .08); }
.toc-icon { width: 1.6rem; text-align: center; font-size: 1.15rem; }
.toc-name { flex: 1; min-width: 0; }
.toc-count { padding: .05rem .5rem; border-radius: 20px; background: var(--card-2); color: var(--muted); font-size: .75rem; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .9rem; color: var(--muted); font-size: .85rem; }
.meta i { color: var(--accent); margin-right: .3rem; }
.search {
  display: flex; align-items: center; gap: .7rem; margin-top: 1.2rem; padding: 0 1rem;
  background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.search:focus-within { border-color: var(--accent); }
.search i { color: var(--muted); }
.search input { flex: 1; min-width: 0; padding: .8rem 0; background: none; border: 0; outline: none; color: #fff; font: inherit; }
.rule-section { scroll-margin-top: 1rem; }
.sec-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .4rem; }
.sec-icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px;
  background: color-mix(in srgb, var(--c, var(--accent)) 18%, transparent); font-size: 1.4rem;
}
.sec-num { color: var(--accent-hi); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.sec-head h2 { margin: 0; color: #fff; font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.sec-intro { margin: .6rem 0 0; color: var(--muted); font-size: .92rem; }
.rules { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.rule {
  position: relative; display: flex; gap: 1rem; padding: 1rem 3rem 1rem 1rem;
  background: var(--card-2); border: 1px solid transparent; border-radius: var(--radius); scroll-margin-top: 6rem;
}
.rule.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { border-color: var(--accent-hi); box-shadow: 0 0 24px var(--accent-glow); } }
.rule-num {
  flex: none; min-width: 42px; height: 30px; padding: 0 .4rem; display: grid; place-items: center; border-radius: 4px;
  background: rgba(179, 61, 245, .16); color: var(--accent-hi); font-weight: 800; font-size: .85rem;
}
.rule-body { flex: 1; min-width: 0; }
.rule-title { margin: .15rem 0 .3rem; color: #fff; font-size: 1.02rem; font-weight: 700; }
.rule-text { font-size: .92rem; }
.rule-text strong { color: #fff; }
.rule-link {
  position: absolute; top: .75rem; right: .7rem; display: grid; place-items: center; width: 32px; height: 32px;
  background: none; border: 0; border-radius: 6px; color: var(--muted); cursor: pointer; opacity: .6;
}
.rule:hover .rule-link, .rule-link:focus-visible { opacity: 1; }
.rule-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.ladder { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .8rem; }
.ladder-label { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-right: .2rem; }
.ladder-label i { margin-right: .3rem; }
.ladder-steps { display: contents; list-style: none; }
.step { display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .6rem .22rem .25rem; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.step:not(:has(.step-n)) { padding-left: .65rem; }
.step-n { display: grid; place-items: center; min-width: 26px; height: 20px; padding: 0 .3rem; border-radius: 20px; background: rgba(0, 0, 0, .3); font-size: .7rem; }
.lv0 { background: rgba(250, 204, 21, .14); color: #fde68a; }
.lv1 { background: rgba(251, 146, 60, .15); color: #fdba74; }
.lv2 { background: rgba(248, 113, 113, .15); color: #fca5a5; }
.lv3 { background: rgba(239, 68, 68, .22); color: #fecaca; }
.outro { display: flex; gap: 1rem; align-items: center; }
.outro i { font-size: 1.6rem; color: var(--accent-hi); }
.outro b { display: block; color: #fff; }
.no-results { padding: 1.5rem; text-align: center; }

/* ===================================================================
   Beheer (admin.php)
   =================================================================== */
.admin-body { min-height: 100vh; background:
  radial-gradient(ellipse 60% 40% at 50% 0%, rgba(150, 40, 220, .25), transparent 70%), var(--bg); }
.admin-top { border-bottom: 1px solid var(--line); background: rgba(12, 10, 15, .7); }
.admin-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.admin-brand { display: flex; align-items: center; gap: .8rem; color: #fff; font-weight: 700; }
.admin-brand img { width: 44px; height: 44px; object-fit: contain; }
.admin-brand small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.admin-main { padding: 2rem 0 4rem; }
.tabs { display: flex; gap: .35rem; margin-bottom: 1.5rem; overflow-x: auto; scrollbar-width: none; }
.tabs a {
  flex: none; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 6px;
  color: var(--muted); font-weight: 600; font-size: .92rem; background: var(--card); border: 1px solid var(--line);
}
.tabs a:hover { color: #fff; }
.tabs a.active { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.admin-main h1 { margin: 0 0 .25rem; color: #fff; font-size: 1.5rem; }
.admin-main .sub { margin: 0 0 1.5rem; color: var(--muted); }
.box { padding: 1.3rem 1.4rem; margin-bottom: 1rem; }
.box h2 { margin: 0 0 1rem; color: #fff; font-size: 1.1rem; font-weight: 700; }
.box h2 small { color: var(--muted); font-weight: 500; font-size: .85rem; }
.msg { padding: .8rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-weight: 500; }
.msg.ok { background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .4); color: #bbf7d0; }
.msg.err { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .4); color: #fecaca; }
.msg.warn { background: rgba(250, 204, 21, .1); border: 1px solid rgba(250, 204, 21, .4); color: #fde68a; }

.field { display: block; }
.field > span { display: block; margin-bottom: .3rem; color: #e9e3f2; font-weight: 600; font-size: .85rem; }
.field small { display: block; margin-top: .3rem; color: var(--muted); font-size: .8rem; font-weight: 400; }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: .6rem .75rem; border-radius: 5px; border: 1px solid var(--line);
  background: var(--bg-2); color: #fff; font: inherit; font-size: .93rem;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.field input[type=color] { height: 42px; padding: .25rem; cursor: pointer; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form-grid { display: grid; gap: .9rem; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-all { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; }
.btn-sm { min-height: 34px; padding: .35rem .8rem; font-size: .83rem; }
.btn-danger { background: transparent; color: #fca5a5; border: 1px solid rgba(248, 113, 113, .5); box-shadow: none; }
.btn-danger:hover { background: #ef4444; color: #fff; box-shadow: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 5px; cursor: pointer;
  background: var(--card-2); border: 1px solid var(--line); color: var(--muted); font-size: .85rem;
}
.icon-btn:hover:not(:disabled) { color: #fff; border-color: var(--accent); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn.danger:hover { background: #ef4444; border-color: #ef4444; color: #fff; }
.inline { display: inline; margin: 0; }

.rows { list-style: none; margin: 0; padding: 0; }
.row { border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row-main { display: flex; align-items: center; gap: .9rem; padding: .75rem 0; }
.row-main img { width: 44px; height: 44px; border-radius: 6px; background: var(--card-2); image-rendering: pixelated; object-fit: contain; }
.row-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row-info b { color: #fff; }
.row-info small { display: block; color: var(--muted); font-size: .82rem; }
.row-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.row-tools select { width: auto; padding: .4rem .5rem; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: .4rem; }
.badge { display: inline-block; padding: .05rem .55rem; border-radius: 20px; font-size: .75rem; font-weight: 700; background: var(--card-2); color: var(--muted); }

details.edit > summary { list-style: none; cursor: pointer; }
details.edit > summary::-webkit-details-marker { display: none; }
details.edit[open] > summary .icon-btn { color: #fff; border-color: var(--accent); }
.edit-body { padding: 0 0 1rem; }

.sec-admin { padding: 0; overflow: hidden; }
.sec-admin-head { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; background: rgba(255, 255, 255, .02); border-bottom: 1px solid var(--line); }
.sec-admin-head .sec-icon { width: 40px; height: 40px; font-size: 1.15rem; }
.sec-admin-body { padding: .3rem 1.2rem 1rem; }
.sec-admin .rule-num { min-width: 38px; height: 26px; font-size: .78rem; }
.add-rule { margin-top: .6rem; }
.add-rule > summary { display: inline-flex; }

.preview { display: flex; align-items: center; gap: .8rem; margin-top: .8rem; color: var(--muted); font-size: .85rem; }
.preview[hidden] { display: none; }
.preview img { width: 44px; height: 44px; border-radius: 6px; background: var(--card-2); image-rendering: pixelated; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem 1rem; }
.login { width: min(400px, 100%); padding: 2rem 1.8rem; text-align: center; }
.login img { width: 120px; height: auto; margin-bottom: .6rem; filter: drop-shadow(0 8px 24px rgba(179, 61, 245, .45)); }
.login h1 { margin: 0 0 .2rem; color: #fff; font-size: 1.35rem; }
.login p { margin: 0 0 1.4rem; color: var(--muted); font-size: .9rem; }
.login form { text-align: left; }
.login .btn { width: 100%; margin-top: 1rem; }
.login .back { display: inline-block; margin-top: 1.2rem; color: var(--muted); font-size: .85rem; }
.login .back:hover { color: #fff; }

/* ---------- Responsive subpagina's en beheer ---------- */
@media (max-width: 960px) {
  .page-grid.side-right, .page-grid.side-left { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .toc, .page-grid > aside.toc { display: none; }
}
@media (max-width: 860px) {
  .hero-sm { padding: 70px 0 44px; }
  .page-grid { margin-top: -6px; }
}
@media (max-width: 640px) {
  .panel { padding: 1.2rem; }
  .cols-2, .cols-3 { grid-template-columns: minmax(0, 1fr); }
  .rule { padding: .9rem 2.6rem .9rem .8rem; gap: .7rem; }
  .vgo span { display: none; }
  .admin-brand small { display: none; }
  .row-main { flex-wrap: wrap; }
  .row-tools { width: 100%; }
  .sec-admin-head { flex-wrap: wrap; }
  .sec-admin-head .row-tools { width: 100%; }
}
