/* Centrale vormgeving voor DoeMaarWel. Bewerk kleuren en maten hier.
   Oude style/theme/dashboard/enhancements/usability CSS-bestanden zijn alleen legacy. */
:root {
  --accent-secondary: var(--accent);
  --accent-rgb: 116,64,217;
  --surface-rgb: 255,255,255;
  --page-glow-opacity: 0;
  --page-pattern-opacity: 0;
  --radius-card: 8px;
  --radius-control: 6px;
  --radius-pill: 5px;
  --site-shadow: none;
  --site-shadow-hover: none;
  --motion-fast: 0.18s;
  --motion-normal: 0.24s;
  --site-font: Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  --bg: #f6f6f8;
  --surface: #ffffff;
  --surface-2: #f0f0f4;
  --surface-hover: #ededf2;
  --text: #20212a;
  --muted: #606171;
  --muted-2: #686978;
  --border: #dedee6;
  --border-strong: #b8b9c7;
  --accent: #7440d9;
  --accent-hover: #6330c3;
  --accent-soft: rgba(116,64,217,.07);
  --shadow-card: none;
  --max-width: 1240px;
  color-scheme: light;
}

/* Basis en paginacomponenten */
* {
  box-sizing: border-box;
}



html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% -15%, rgba(139, 92, 246, 0.14), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--border);
}

.logo {
  flex: 0 0 auto;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.logo-mark {
  color: var(--accent-hover);
}

.nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -31px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

main {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent-hover);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.25rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.page-hero {
  max-width: 790px;
  padding: 105px 0 68px;
}

.page-hero p {
  max-width: 630px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.back-link {
  display: inline-flex;
  margin-top: 28px;
  color: #d9dbe1;
  font-weight: 750;
}

.back-link:hover {
  color: #fff;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 780;
  transition: transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.035);
}

.button.secondary:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.065);
}

/* Homepage */

.home-hero {
  min-height: 575px;
  display: flex;
  align-items: center;
  padding: 82px 0;
}

.home-hero-inner {
  max-width: 830px;
}

.home-hero h1 {
  max-width: 860px;
}

.home-hero p {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.featured {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 38px;
  border: 1px solid rgba(159, 122, 234, 0.24);
  border-radius: 22px;
  background: radial-gradient(circle at 92% 15%, rgba(139, 92, 246, 0.18), transparent 32%),
    rgba(255, 255, 255, 0.025);
}

.featured::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(transparent, var(--accent-hover), transparent);
}

.featured-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.featured-kicker {
  color: var(--accent-hover);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.featured h2 {
  margin: 10px 0 10px;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.featured p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}

.featured-stats {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px;
}

.stat {
  min-width: 108px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.14);
}

.stat strong {
  display: block;
  font-size: 1.15rem;
}

.stat span {
  color: var(--muted-2);
  font-size: 0.75rem;
  font-weight: 700;
}

.featured-actions {
  margin-top: 26px;
}

.home-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 72px 0 20px;
}

.home-section-head h2 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.home-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 90px;
}

.quick-card {
  min-height: 225px;
  padding: 27px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.018);
  transition: transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.quick-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.quick-icon,
.item-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 35px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.85rem;
  font-weight: 850;
}

.quick-card h3 {
  margin: 0 0 7px;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.quick-card p {
  min-height: 49px;
  margin: 0 0 21px;
  color: var(--muted);
  font-size: 0.94rem;
}

.quick-card a {
  font-weight: 780;
}

/* Projects */

.project-list {
  display: grid;
  gap: 14px;
  padding-bottom: 90px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-color: rgba(159, 122, 234, 0.27);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
}

.badge {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
}

.badge.active {
  border-color: rgba(98, 199, 131, 0.25);
  background: rgba(98, 199, 131, 0.09);
  color: #7cd696;
}

.project-card h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}

.project-card p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.project-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #eceef2;
  font-size: 1.2rem;
}

.project-card:hover .project-arrow {
  border-color: rgba(159, 122, 234, 0.36);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

/* Empty-state pages */

.empty-panel {
  margin-bottom: 90px;
  padding: 55px 36px;
  border: 1px dashed var(--border-strong);
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.012);
}

.empty-symbol {
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
  border: 1px solid var(--border);
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 850;
}

.empty-panel h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.empty-panel p {
  max-width: 510px;
  margin: 0 auto;
  color: var(--muted);
}

/* Legacy cards kept for compatibility */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 90px;
}

.item-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.item-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.item-card p {
  margin: 0 0 26px;
  color: var(--muted);
}

.item-card a {
  font-weight: 750;
}

.site-footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #6f7682;
  font-size: 0.88rem;
}

.footer-note {
  color: #606772;
}

@media (max-width: 860px) {
  .quick-grid,
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .featured-top {
    flex-direction: column;
  }
  .featured-stats {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
  .project-card {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 28px), var(--max-width));
  }
  .site-header {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    padding: 18px 0;
  }
  .nav {
    width: 100%;
    gap: 15px;
    flex-wrap: wrap;
  }
  .nav a {
    font-size: 0.86rem;
  }
  .nav a.active::after {
    display: none;
  }
  .home-hero {
    min-height: 490px;
    padding: 70px 0;
  }
  .page-hero {
    padding: 72px 0 48px;
  }
  .featured {
    padding: 26px;
  }
  .featured-stats {
    grid-template-columns: 1fr 1fr;
  }
  .home-section-head {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 55px;
  }
  .quick-grid,
  .grid {
    grid-template-columns: 1fr;
  }
  .quick-card {
    min-height: 0;
  }
  .project-card {
    grid-template-columns: 1fr;
  }
  .project-arrow {
    width: 100%;
  }
  .button-row {
    flex-direction: column;
  }
  .button {
    width: 100%;
  }
  .site-footer {
    flex-direction: column;
    gap: 4px;
  }
}

/* =========================================================
   Personal Links page
   ========================================================= */

.links-hero {
  padding-bottom: 44px;
}

.links-hero h1 {
  max-width: 760px;
}

.personal-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding-bottom: 26px;
}

.personal-link-card {
  position: relative;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  overflow: hidden;
  background: radial-gradient(circle at 0 0, rgba(139,92,246,.065), transparent 42%),
    rgba(255,255,255,.018);
  text-decoration: none;
  transition: transform .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.personal-link-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  opacity: .5;
  background: var(--link-accent, var(--accent));
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform .22s ease, opacity .22s ease;
}

.personal-link-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--link-accent, var(--accent)) 38%, var(--border));
  background: radial-gradient(circle at 0 0, color-mix(in srgb, var(--link-accent, var(--accent)) 9%, transparent), transparent 46%),
    rgba(255,255,255,.025);
}

.personal-link-card:hover::after {
  transform: scaleX(1);
  opacity: .9;
}

.personal-link-icon {
  width: 52px;
  height: 52px;
  border: 1px solid color-mix(in srgb, var(--link-accent, var(--accent)) 22%, var(--border));
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--link-accent, var(--accent)) 8%, transparent);
  color: var(--link-accent, var(--accent-hover));
}

.personal-link-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.personal-link-icon .icon-fill {
  fill: currentColor;
  stroke: none;
}

.personal-link-copy {
  min-width: 0;
}

.personal-link-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--link-accent, var(--accent-hover));
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.personal-link-copy h2 {
  margin: 0;
  color: #eef0f5;
  font-size: 1.08rem;
}

.personal-link-copy p {
  margin: 6px 0 0;
  color: #818895;
  font-size: .82rem;
  line-height: 1.5;
}

.personal-link-arrow {
  width: 35px;
  height: 35px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #7c8490;
  font-size: 1rem;
  transition: .18s ease;
}

.personal-link-card:hover .personal-link-arrow {
  border-color: color-mix(in srgb, var(--link-accent, var(--accent)) 30%, var(--border));
  color: var(--link-accent, var(--accent-hover));
  transform: translate(2px, -2px);
}

.personal-link-card.steam {
  --link-accent: #8ab5d7;
}

.personal-link-card.kofi {
  --link-accent: #ff6b7a;
}

.personal-link-card.twitch {
  --link-accent: #a970ff;
}

.personal-link-card.instagram {
  --link-accent: #d98ccf;
}

.personal-link-card.statsfm {
  --link-accent: #7ddba1;
}

.personal-link-card.onlyfans-joke {
  --link-accent: #68c9e8;
}

.personal-link-card.namemc {
  --link-accent: #78c58d;
}

.personal-link-card.discord {
  --link-accent: #8897f7;
}

.links-bottom-note {
  margin: 4px 0 70px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255,255,255,.012);
  color: #707783;
  font-size: .8rem;
}

.links-bottom-note a {
  color: #a990f2;
  font-weight: 760;
  text-decoration: none;
}

.links-bottom-note a:hover {
  color: #c7b6ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 780px) {
  .personal-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .personal-link-card {
    min-height: 0;
    padding: 17px;
    grid-template-columns: 45px minmax(0, 1fr) auto;
    gap: 13px;
  }
  .personal-link-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
  }
  .personal-link-icon svg {
    width: 23px;
    height: 23px;
  }
  .personal-link-copy p {
    font-size: .76rem;
  }
  .links-bottom-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   Contact page
   ========================================================= */

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-links a {
  color: #8f96a3;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: #b9a8f7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-hero {
  padding-bottom: 42px;
}

.contact-hero h1 {
  max-width: 760px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: radial-gradient(circle at 0 0, rgba(139,92,246,.055), transparent 42%),
    rgba(255,255,255,.016);
}

.contact-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(159,122,234,.22);
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(139,92,246,.065);
  color: #ab93f3;
  flex: 0 0 auto;
}

.contact-icon.bug-icon {
  color: #e6af6d;
  border-color: rgba(230,175,109,.22);
  background: rgba(230,175,109,.055);
}

.contact-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-kicker {
  display: block;
  color: #9177de;
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.contact-card h2 {
  margin: 2px 0 0;
  color: #eef0f4;
  font-size: 1.1rem;
}

.contact-card > p {
  margin: 0 0 16px;
  color: #858c98;
  font-size: .84rem;
  line-height: 1.55;
}

.discord-username-box {
  padding: 13px;
  border: 1px solid rgba(159,122,234,.22);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(139,92,246,.055);
}

.discord-username-box > div {
  display: grid;
  gap: 2px;
}

.discord-username-box span {
  color: #787f8a;
  font-size: .7rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.discord-username-box strong {
  color: #eeeafc;
  font-size: 1.05rem;
}

.contact-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.contact-action-btn {
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.02);
  color: #c7cbd3;
  font: inherit;
  font-size: .78rem;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  transition: .18s ease;
}

.contact-action-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(159,122,234,.28);
  background: rgba(139,92,246,.055);
}

.contact-action-btn.primary {
  border-color: rgba(159,122,234,.3);
  background: rgba(139,92,246,.1);
  color: #d8ccff;
}

.contact-note {
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #7f8792;
  font-size: .76rem;
  line-height: 1.5;
}

.contact-note strong {
  color: #b8a5f0;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 11px;
}

.contact-field {
  display: grid;
  gap: 6px;
}

.contact-field.full {
  grid-column: 1 / -1;
}

.contact-field label {
  color: #aeb3bc;
  font-size: .76rem;
  font-weight: 760;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.018);
  color: #d7dbe2;
  font: inherit;
  font-size: .8rem;
  outline: none;
}

.contact-field input,
.contact-field select {
  min-height: 41px;
  padding: 0 11px;
}

.contact-field textarea {
  resize: vertical;
  padding: 11px;
  line-height: 1.5;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: rgba(159,122,234,.4);
  box-shadow: 0 0 0 3px rgba(139,92,246,.06);
}

.generated-report {
  margin-top: 13px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(0,0,0,.14);
}

.generated-report > span {
  display: block;
  margin-bottom: 7px;
  color: #7c838f;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.generated-report pre {
  margin: 0;
  color: #b9bec7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.contact-tips {
  margin: 14px 0 70px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255,255,255,.012);
}

.contact-tips h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.contact-tip-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}

.contact-tip-grid > div {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.contact-tip-grid strong {
  display: block;
  color: #c7cbd3;
  font-size: .78rem;
}

.contact-tip-grid span {
  display: block;
  margin-top: 4px;
  color: #7c838f;
  font-size: .73rem;
  line-height: 1.45;
}

@media (max-width: 850px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .discord-username-box {
    align-items: stretch;
    flex-direction: column;
  }
  .contact-form-grid,
  .contact-tip-grid {
    grid-template-columns: 1fr;
  }
  .contact-field.full {
    grid-column: auto;
  }
  .footer-links {
    align-items: flex-end;
    flex-direction: column;
    gap: 4px;
  }
}

/* ================= DoeMaarWel shared styles ================= */

.site-header {
  position: relative;
}

.site-header-actions {
  display: flex;
  gap: 7px;
  margin-left: -8px;
}

.site-icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  color: var(--muted);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.site-icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255,255,255,.05);
}

.site-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  padding: 8vh 20px;
  background: rgba(3,5,8,.72);
  backdrop-filter: blur(12px);
  overflow: auto;
}

.site-overlay[hidden] {
  display: none;
}

.site-dialog {
  position: relative;
  width: min(680px,100%);
  margin: 0 auto;
  padding: 26px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: #10131a;
  box-shadow: 0 30px 100px rgba(0,0,0,.45);
}

.site-dialog-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.site-dialog-kicker {
  color: var(--accent-hover);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.site-dialog h2 {
  margin: 6px 45px 2px 0;
  font-size: 1.6rem;
}

.site-dialog-sub {
  margin: 4px 0 20px;
  color: var(--muted);
  font-size: .84rem;
}

.site-search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 0 13px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.site-search-field input {
  width: 100%;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: 0;
  font: inherit;
}

.site-search-results {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  max-height: 52vh;
  overflow: auto;
}

.site-search-result {
  position: relative;
  padding: 11px 38px 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  background: rgba(255,255,255,.012);
}

.site-search-result:hover {
  border-color: rgba(159,122,234,.28);
  background: rgba(139,92,246,.055);
}

.site-search-type {
  color: var(--accent-hover);
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.site-search-result strong {
  font-size: .86rem;
}

.site-search-result small {
  color: var(--muted);
  font-size: .72rem;
}

.site-search-result b {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.site-search-hint {
  padding: 24px 10px;
  color: var(--muted);
  text-align: center;
  font-size: .8rem;
}

.settings-group {
  padding: 15px 0;
  border-top: 1px solid var(--border);
}

.settings-group>strong {
  display: block;
  margin-bottom: 9px;
  color: #cfd3db;
  font-size: .8rem;
}

.accent-options {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 7px;
}

.accent-choice,.segmented button {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255,255,255,.018);
  color: var(--muted);
  font: inherit;
  font-size: .75rem;
  font-weight: 730;
  cursor: pointer;
}

.accent-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.accent-choice.active,.segmented button.active {
  border-color: rgba(159,122,234,.35);
  color: var(--text);
  background: var(--accent-soft);
}

.accent-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.accent-dot.purple {
  background: #8b5cf6;
}

.accent-dot.pink {
  background: #d965a7;
}

.accent-dot.blue {
  background: #4f8ee8;
}

.accent-dot.green {
  background: #51a87a;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 7px;
}

.settings-reset {
  width: 100%;
  margin-top: 7px;
}

.site-black {
  background: #000 !important;
}

.site-black .site-header,.site-black .tool-panel,.site-black .quick-card {
  background-color: rgba(255,255,255,.006);
}

body.site-compact .page-hero {
  padding-top: 70px;
  padding-bottom: 46px;
}

body.site-compact .tool-hero {
  padding-top: 65px;
  padding-bottom: 34px;
}

body.site-compact .tool-panel {
  padding: 21px;
}

body.site-compact .site-header {
  min-height: 68px;
}

body.site-compact .nav a.active::after {
  bottom: -23px;
}

.home-hero-layout {
  min-height: 620px;
}

.home-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.home-mini-stats span {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: .76rem;
}

.home-mini-stats strong {
  color: #e4e5e9;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: 1.3fr .85fr;
  gap: 14px;
}

.home-feature-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.018);
  transition: .18s ease;
}

.home-feature-card.major {
  grid-row: span 2;
  min-height: 474px;
  justify-content: flex-end;
  background: radial-gradient(circle at 85% 10%,rgba(139,92,246,.18),transparent 40%),rgba(255,255,255,.02);
  border-color: rgba(159,122,234,.22);
}

.home-feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background-color: rgba(255,255,255,.035);
}

.card-kicker {
  color: var(--accent-hover);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .11em;
}

.home-feature-card h2 {
  margin: 8px 0;
  font-size: clamp(1.45rem,3vw,2.3rem);
  letter-spacing: -.045em;
}

.home-feature-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.home-feature-card b {
  margin-top: auto;
  font-size: .82rem;
}

.home-card-meta {
  display: flex;
  gap: 7px;
  margin: 4px 0 25px;
}

.home-card-meta span {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: .7rem;
}

.section-link {
  color: #b7a4ee;
  font-size: .8rem;
  font-weight: 760;
}

.compact-card-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
}

.compact-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.014);
}

.compact-card>span {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 850;
}

.compact-card h3 {
  margin: 0;
}

.compact-card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.compact-card b {
  color: var(--muted);
}

.updates-preview {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  padding-bottom: 90px;
}

.updates-preview article {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.012);
}

.updates-preview time {
  color: var(--accent-hover);
  font-size: .68rem;
  font-weight: 800;
}

.updates-preview h3 {
  margin: 7px 0 4px;
}

.updates-preview p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
}

.project-group {
  margin-bottom: 55px;
}

.project-group-head {
  margin-bottom: 14px;
}

.project-group-head>span,.tools-category-head>span {
  color: var(--accent-hover);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.project-group-head h2,.tools-category-head h2 {
  margin: 4px 0 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
}

.project-card-featured {
  border-color: rgba(159,122,234,.22);
  background: rgba(139,92,246,.035);
}

.tools-category {
  margin-bottom: 58px;
}

.tools-category-head {
  margin-bottom: 16px;
}

.tools-category-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .86rem;
}

.featured-tool {
  border-color: rgba(159,122,234,.16);
}

.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 750px;
}

.error-code {
  font-size: clamp(5rem,16vw,10rem);
  font-weight: 900;
  line-height: .8;
  color: rgba(159,122,234,.11);
}

.error-page h1 {
  font-size: clamp(2.8rem,7vw,5rem);
}

.error-page p {
  color: var(--muted);
}

.changelog {
  padding-bottom: 90px;
}

.changelog-entry {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}

.changelog-entry.current {
  border-top-color: rgba(159,122,234,.3);
}

.change-date {
  display: grid;
  align-content: start;
  gap: 6px;
}

.change-date time {
  color: var(--muted);
  font-size: .75rem;
}

.change-date span {
  width: max-content;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent-hover);
  font-size: .7rem;
  font-weight: 800;
}

.changelog-entry h2 {
  margin: 0;
}

.changelog-entry ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.7;
}

@media (max-width:850px) {
  .site-header {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .nav {
    order: 3;
    width: 100%;
    gap: 16px;
    overflow: auto;
    padding-bottom: 2px;
  }
  .nav a {
    white-space: nowrap;
  }
  .nav a.active::after {
    display: none;
  }
  .site-header-actions {
    margin-left: auto;
  }
  .home-feature-grid {
    grid-template-columns: 1fr;
  }
  .home-feature-card.major {
    grid-row: auto;
    min-height: 320px;
  }
  .updates-preview {
    grid-template-columns: 1fr;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:620px) {
  main,.site-header {
    width: min(calc(100% - 28px),var(--max-width));
  }
  .accent-options {
    grid-template-columns: repeat(2,1fr);
  }
  .compact-card-grid {
    grid-template-columns: 1fr;
  }
  .home-hero {
    min-height: 520px;
    padding-top: 60px;
  }
  .home-hero-layout h1 {
    font-size: clamp(2.65rem,15vw,4.6rem);
  }
  .changelog-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .home-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

/* Gedeelde bediening */
/*
  DoeMaarWel v1 — algemene gebruiks- en toegankelijkheidsverbeteringen
  Deze stylesheet staat bewust los van de bestaande layoutbestanden.
*/

:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.55);
  outline-offset: 3px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.logo-image {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), 0.18));
}

.logo-word {
  display: inline;
}

.home-brand-mark {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 28px rgba(var(--accent-rgb), 0.18));
}

.tool-card,
.general-tool {
  position: relative;
}

.tool-favorite-btn {
  position: absolute;
  z-index: 4;
  top: 11px;
  right: 11px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  color: var(--muted-2);
  font-size: 1rem;
  cursor: pointer;
}

.tool-favorite-btn:hover,
.tool-favorite-btn.active {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  color: #e6bd54;
  background: var(--accent-soft);
}

.general-tool .tool-favorite-btn {
  position: static;
  flex: 0 0 auto;
}

.tools-control-center {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto 30px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.tools-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tools-filter {
  min-height: 39px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 780;
  cursor: pointer;
}

.tools-filter:hover,
.tools-filter.active {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--border));
  background: var(--accent-soft);
  color: var(--text);
}

.tools-category-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tools-category-shortcuts a {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 740;
  text-decoration: none;
}

.tools-category-shortcuts a:hover {
  color: var(--accent-hover);
}

.tools-personal-results {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto 34px;
}

.tool-card.admin-hidden {
  display: none !important;
}

.home-personal-head {
  margin-top: 26px;
}

.home-personal-grid {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto 54px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-personal-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.home-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.home-panel-heading h3 {
  margin: 0;
  font-size: 0.92rem;
}

.home-panel-heading span {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
}

.home-dynamic-tools {
  display: grid;
  gap: 8px;
}

.home-dynamic-tool {
  min-width: 0;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface-2) 50%, transparent);
  color: inherit;
  text-decoration: none;
}

.home-dynamic-tool:hover {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
  background: var(--accent-soft);
}

.home-dynamic-tool > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.69rem;
  font-weight: 850;
}

.home-dynamic-tool strong,
.home-dynamic-tool small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-dynamic-tool strong {
  font-size: 0.76rem;
}

.home-dynamic-tool small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.64rem;
}

.home-empty-state {
  padding: 13px;
  border: 1px dashed var(--border);
  border-radius: 11px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.home-pinned-section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto 52px;
}

.home-pinned-section .home-section-head {
  width: 100%;
  margin-inline: 0;
}

.home-category-grid {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto 58px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-category-card {
  padding: 17px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: inherit;
  text-decoration: none;
}

.home-category-card:hover {
  transform: translateY(-2px);
}

.home-category-card.minecraft:hover {
  border-color: rgba(88, 170, 122, 0.34);
}

.home-category-card.fivem:hover {
  border-color: rgba(143, 124, 242, 0.34);
}

.home-category-card.general:hover {
  border-color: rgba(204, 101, 159, 0.34);
}

.home-category-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 900;
}

.minecraft .home-category-icon {
  background: rgba(88, 170, 122, 0.10);
  color: #77c392;
}

.fivem .home-category-icon {
  background: rgba(143, 124, 242, 0.10);
  color: #b3a7f6;
}

.general .home-category-icon {
  background: rgba(204, 101, 159, 0.10);
  color: #df91bd;
}

.home-category-card strong,
.home-category-card small {
  display: block;
}

.home-category-card strong {
  font-size: 0.83rem;
}

.home-category-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.66rem;
}

.site-tool-utility {
  width: min(var(--max-width), calc(100% - 40px));
  margin: -20px auto 30px;
  padding: 10px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.site-tool-utility button {
  min-height: 36px;
}

.site-tool-status {
  margin-left: auto;
  align-self: center;
  color: var(--muted-2);
  font-size: 0.65rem;
}

.history-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.history-entry {
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--surface-2) 58%, transparent);
}

.history-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.history-entry small {
  color: var(--muted);
}

.history-entry pre {
  max-height: 120px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.67rem;
}

.error-quick-links {
  width: min(720px, 100%);
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.error-quick-links a {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: inherit;
  text-decoration: none;
}

.error-quick-links strong,
.error-quick-links span {
  display: block;
}

.error-quick-links strong {
  font-size: 0.78rem;
}

.error-quick-links span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.66rem;
}

.category-page-content {
  padding-top: 0;
}

.site-more-dialog {
  width: min(620px, 100%);
}

.more-settings-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.more-setting-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface-2) 54%, transparent);
}

.more-setting-card strong {
  display: block;
  margin-bottom: 4px;
}

.more-setting-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.site-toast {
  position: fixed;
  z-index: 1200;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100% - 40px));
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  box-shadow: var(--site-shadow);
  color: var(--text);
  font-size: 0.72rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.2s ease;
}

.site-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* De bestaande thema-swatches worden echte mini-previews. */
.theme-choice {
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
}

.theme-swatch {
  position: relative;
  width: 100% !important;
  height: 54px !important;
  overflow: hidden;
  border-radius: 10px !important;
}

.theme-swatch::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 9px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  opacity: 0.45;
}

.theme-swatch::after {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 8px;
  width: 55%;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

/* Admin */
.admin-panel {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto 70px;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.admin-toolbar h2,
.admin-toolbar p {
  margin: 0;
}

.admin-toolbar p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.74rem;
}

.admin-help {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: var(--radius-card);
  background: var(--accent-soft);
  display: grid;
  gap: 3px;
  font-size: 0.72rem;
}

.admin-help span {
  color: var(--muted);
}

.admin-tool-list {
  display: grid;
  gap: 7px;
}

.admin-tool-row {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 95px 90px 100px 90px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 68%, transparent);
}

.admin-tool-row strong,
.admin-tool-row small {
  display: block;
}

.admin-tool-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.64rem;
}

.admin-tool-row label {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 0.66rem;
}

.admin-order {
  width: 75px;
}

.admin-stats {
  margin-top: 34px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-stat-card {
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.admin-stat-card strong,
.admin-stat-card span {
  display: block;
}

.admin-stat-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.66rem;
}

@media (max-width: 860px) {
  .home-personal-grid,
  .home-category-grid {
    grid-template-columns: 1fr;
  }

  .admin-tool-row {
    grid-template-columns: 1fr 1fr;
  }

  .admin-tool-row > div:first-child {
    grid-column: 1 / -1;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-tool-status {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .logo-word {
    display: none;
  }

  .logo-image {
    width: 38px;
    height: 38px;
  }

  .error-quick-links,
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-tool-row {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Vaste vormgeving */
/* DoeMaarWel v1 — gedeelde dashboardvormgeving; tooluitvoer behoudt eigen kleuren. */
html:root:root .pv-output {
  color: #000;
  background: #fff;
  font-size: .875rem;
  line-height: 1.7;
}


html:root:root body { background: var(--bg); font-size: 1rem; line-height: 1.6; }
html:root:root body::before, html:root:root body::after { display: none; }
html:root:root .site-header { min-height: 72px; gap: 20px; background: var(--bg); backdrop-filter: none; box-shadow: none; }
html:root:root .logo-image { width: 30px; height: 30px; }
html:root:root .nav { gap: 20px; flex-wrap: wrap; }
html:root:root .nav a.active::after { bottom: -24px; }
html:root:root .home-hero, html:root:root .page-hero, html:root:root .tool-hero {
  min-height: 0; max-width: none; padding: 44px 0 30px; text-align: left;
}
html:root:root .home-hero-inner { max-width: 860px; margin: 0; }
html:root:root .home-brand-mark { display: none; }
html:root:root .home-hero h1, html:root:root .page-hero h1, html:root:root .tool-hero h1 {
  margin: 8px 0 0; max-width: 100%; font-size: clamp(1.85rem,3.2vw,2.65rem);
  line-height: 1.18; letter-spacing: -.035em; font-weight: 700;
  color: var(--text); background: none; -webkit-text-fill-color: var(--text);
}
html:root:root .home-hero p, html:root:root .page-hero p, html:root:root .tool-hero p {
  max-width: 760px; margin: 14px 0 0; font-size: 1rem; color: var(--muted);
}
html:root:root .eyebrow, html:root:root .card-kicker { font-size: .75rem; letter-spacing: .08em; font-weight: 650; color: var(--muted); }
html:root:root .button-row { margin-top: 22px; gap: 8px; }
html:root:root .button, html:root:root .action-btn, html:root:root .site-icon-btn, html:root:root .tools-filter,
html:root:root .segmented button, html:root:root .manage-actions button {
  min-height: 36px; padding: 7px 12px; font-size: .875rem; font-weight: 600;
  border-radius: var(--radius-control) !important; box-shadow: none; text-shadow: none;
}
html:root:root .button.primary, html:root:root .action-btn.primary {
  background: var(--accent) !important; border-color: var(--accent) !important; color: white !important;
}
html:root:root .button.secondary, html:root:root .action-btn:not(.primary) {
  background: var(--surface); border-color: var(--border); color: var(--text);
}
html:root:root .button:hover, html:root:root .action-btn:hover { transform: none; box-shadow: none; }
html:root:root .button.primary:hover, html:root:root .action-btn.primary:hover { filter: brightness(1.08); }
html:root:root :is(a,button,input,select,textarea,summary):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
html:root:root :is(.home-feature-card,.compact-card,.project-card,.personal-link-card,.quick-card,
.tool-panel,.tool-card,.result-card,.tool-note,.tool-result,.site-dialog,.catalog-item,
.item-card,.category-card,.contact-card,.contact-option,.update-card,.home-personal-panel,
.home-category-card,.manage-card,.general-tool,.more-setting-card) {
  background: var(--surface) !important; border: 1px solid var(--border) !important;
  border-radius: var(--radius-card) !important; box-shadow: none !important; backdrop-filter: none;
}
html:root:root :is(.home-feature-card,.compact-card,.project-card,.personal-link-card,.quick-card,
.tool-card,.catalog-item,.item-card,.category-card,.home-category-card):hover {
  transform: none !important; box-shadow: none !important; border-color: var(--border-strong) !important;
}
html:root:root .home-mini-stats { margin-top: 22px; gap: 24px; }
html:root:root .home-mini-stats span { padding: 0; border: 0; border-radius: 0; font-size: .875rem; }
html:root:root .home-mini-stats strong { color: var(--text); font-weight: 650; }
html:root:root .home-feature-grid { grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; }
html:root:root .home-feature-card, html:root:root .home-feature-card.major {
  grid-row: auto; min-height: 218px; padding: 24px; justify-content: flex-start;
}
html:root:root .home-feature-card.major { border-top: 3px solid var(--accent) !important; padding-top: 22px; }
html:root:root .home-feature-card h2 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -.025em; }
html:root:root .home-feature-card p { font-size: .9375rem; }
html:root:root .home-feature-card b, html:root:root .section-link { font-size: .875rem; color: var(--accent-hover); }
html:root:root .home-card-meta { gap: 16px; margin: 0 0 16px; }
html:root:root .home-card-meta span { border: 0; padding: 0; font-size: .8125rem; }
html:root:root .home-section-head { margin-top: 38px; margin-bottom: 16px; }
html:root:root .home-section-head h2 { font-size: 1.35rem; letter-spacing: -.025em; }
html:root:root .home-section-head p { font-size: .9375rem; }
html:root:root .home-personal-panel { padding: 20px; }
html:root:root .home-panel-heading h3 { font-size: 1rem; font-weight: 650; }
html:root:root .home-category-card { padding: 18px 20px; }
html:root:root .home-category-icon { width: 32px; height: 32px; background: transparent; color: var(--muted); border-radius: 4px; font-size: .875rem; }
html:root:root .compact-card { padding: 16px 0; background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--border) !important; border-radius: 0 !important; }
html:root:root .compact-card > span, html:root:root .tool-card-icon, html:root:root .personal-link-icon {
  background: var(--surface-2) !important; border-color: var(--border) !important;
  color: var(--muted) !important; border-radius: 5px; font-size: 1rem;
}
html:root:root .tool-panel { padding: 24px; }
html:root:root .tool-panel h2 { font-size: 1.2rem; }
html:root:root .tool-layout { gap: 24px; }
html:root:root .field label, html:root:root .field-label { color: var(--text); font-size: .875rem; font-weight: 600; }
html:root:root .field small, html:root:root .helper { color: var(--muted); font-size: .8125rem; }
html:root:root .input, html:root:root .select, html:root:root .textarea { font-size: 1rem; border-radius: var(--radius-control) !important; box-shadow: none; }
html:root:root .pill, html:root:root .badge, html:root:root .tool-category, html:root:root .site-tool-status { border-radius: 4px; font-size: .8125rem; }
html:root:root .tools-control-center { background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0 0 20px; }
html:root:root .tools-filter.active { color: var(--accent-hover); border-color: var(--accent); background: var(--accent-soft); }
html:root:root .manage-stat { background: var(--surface-2); border-radius: var(--radius-control); }
html:root:root .manage-alert { font-size: .875rem; }
html:root:root .site-dialog { box-shadow: 0 16px 48px #0003 !important; }
html:root:root .fivem-special-section, html:root:root .fivem-output-section { border-radius: 0; box-shadow: none; }
html:root:root .site-footer { margin-top: 48px; }
@media (max-width: 800px) {
  html:root:root .home-feature-grid { grid-template-columns: 1fr; }
  html:root:root .home-feature-card, html:root:root .home-feature-card.major { min-height: 0; gap: 4px; }
  html:root:root .home-feature-card b { margin-top: 8px; }
  html:root:root .home-hero, html:root:root .page-hero, html:root:root .tool-hero { padding-top: 28px; }
  html:root:root .tool-layout { grid-template-columns: minmax(0,1fr); }
  html:root:root .site-header { flex-wrap: wrap; padding: 14px 0; gap: 12px; }
  html:root:root .nav a.active::after { bottom: -5px; }
}
@media (max-width: 480px) {
  html:root:root .home-personal-grid, html:root:root .home-category-grid { grid-template-columns: 1fr; }
  html:root:root .home-mini-stats { gap: 12px 20px; }
  html:root:root .tool-panel { padding: 18px; }
  html:root:root .button, html:root:root .action-btn, html:root:root .site-icon-btn { min-height: 42px; }
}

/* Formulieren */
.user-tools,.user-steps,.user-step-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 20px}
.user-save-status{font-size:.875rem;color:var(--muted);flex-basis:100%}
.user-field-error{color:#a71924;font-size:.875rem;margin:5px 0 10px}
[aria-invalid="true"]{outline:2px solid #a71924;outline-offset:1px}
.user-steps{border-bottom:1px solid var(--border);padding-bottom:14px}
.user-steps [aria-current="step"]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-hover)}
.user-form-step[hidden],.pv-section[hidden]{display:none!important}
.user-step-actions{margin-top:18px;justify-content:space-between}
.home-personal-head{border-top:1px solid var(--border);padding-top:26px}
@media(max-width:600px){.user-steps .button{flex:1 1 40%}.user-tools .button{min-height:44px}}

/* Gemeenschappelijke zoek- en toolbediening */
[hidden]{display:none!important}
.tools-search{max-width:720px;margin:0 0 20px}
.tools-search label{display:block;font-weight:650;margin-bottom:8px}
.tools-search input{width:100%;min-height:48px}
.tools-search p{color:var(--muted);font-size:.875rem;margin:8px 0 0}
#toolsResumeActions:empty{display:none}
.home-personal-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
.user-tools.site-tool-utility{display:flex;align-items:center;gap:8px;padding:12px 0;margin:0 0 24px;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent}
.tool-more{position:relative}
.tool-more summary{cursor:pointer;padding:8px 12px;font-size:.875rem;font-weight:600}
.tool-more-actions{display:flex;flex-wrap:wrap;gap:8px;padding:12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);margin-top:8px}
.user-save-status{order:10;flex-basis:100%}
.result-actions{margin-top:20px}
@media(max-width:600px){.tools-search input{font-size:1rem}.user-tools .button,.tool-more summary{min-height:44px}.user-tools.site-tool-utility{align-items:flex-start}}

/* Leesbare tekst op de vaste lichte achtergrond */
html[data-appearance="light"] .back-link,
html[data-appearance="light"] .back-link:hover,
html[data-appearance="light"] .personal-link-copy h2,
html[data-appearance="light"] .contact-card h2,
html[data-appearance="light"] .discord-username-box strong,
html[data-appearance="light"] .home-mini-stats strong,
html[data-appearance="light"] .field label,
html[data-appearance="light"] .field-label,
html[data-appearance="light"] .source-box a,
html[data-appearance="light"] .hostage-preview-line strong,
html[data-appearance="light"] .hostage-preview-calc strong,
html[data-appearance="light"] .empty-selected strong,
html[data-appearance="light"] .selected-law-title-wrap > strong,
html[data-appearance="light"] .article-subtotal strong,
html[data-appearance="light"] .switch-row strong,
html[data-appearance="light"] .drug-total-card strong,
html[data-appearance="light"] .big-summary-card strong,
html[data-appearance="light"] .status-item strong,
html[data-appearance="light"] .recent-item-main strong,
html[data-appearance="light"] .control-item > strong,
html[data-appearance="light"] .pv-toolbar strong,
html[data-appearance="light"] .suspect-card-heading strong,
html[data-appearance="light"] .pv-question label,
html[data-appearance="light"] .stack-summary strong,
html[data-appearance="light"] .price-row-head > strong,
html[data-appearance="light"] .price-row-result strong,
html[data-appearance="light"] .contact-tip-grid strong {
  color: var(--text) !important;
}

html[data-appearance="light"] .hostage-preview-line,
html[data-appearance="light"] .pv-code,
html[data-appearance="light"] .contact-action-btn,
html[data-appearance="light"] .law-link,
html[data-appearance="light"] .drug-law-links a {
  color: var(--muted) !important;
}

html[data-appearance="light"] .output-box,
html[data-appearance="light"] .pv-code {
  background:
    color-mix(in srgb, var(--surface-2) 78%, white) !important;
}

html[data-appearance="light"] .site-overlay {
  background: rgba(35, 39, 48, 0.48);
}


.input,.select,.textarea,.contact-field input,.contact-field select,.contact-field textarea{background:var(--surface);border-color:var(--border);color:var(--text)}
.contact-field label,.generated-report pre{color:var(--text)}
.contact-card p,.contact-note,.contact-tip-grid span,.generated-report>span{color:var(--muted)}
.contact-field input,.contact-field select,.contact-field textarea{font-size:1rem;border-radius:var(--radius-control)}
.contact-action-btn{min-height:44px;border-radius:var(--radius-control)}
.contact-action-btn.primary{background:var(--accent);color:#fff!important;border-color:var(--accent)}
.generated-report{background:var(--surface-2)}
.contact-note strong{color:var(--accent)}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important}}

@media(max-width:680px){
 html:root:root .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 0}
 html:root:root .site-header .logo{grid-column:1;grid-row:1;min-width:0;font-size:.9375rem}
 html:root:root .logo-word{display:inline}
 html:root:root .site-header-actions{grid-column:2;grid-row:1;justify-self:end;margin:0;width:auto}
 html:root:root .nav{grid-column:1/-1;grid-row:2;width:100%;justify-content:flex-start;gap:24px}
 html:root:root .site-icon-btn{min-width:40px}
}

html:root:root .contact-action-btn.primary{color:#fff!important;background:var(--accent);border-color:var(--accent)}
