:root {
  --sand-50: #faf6ef;
  --sand-100: #f2e9da;
  --ink: #16242b;
  --ink-soft: rgba(22, 36, 43, 0.66);
  --ink-faint: rgba(22, 36, 43, 0.45);
  --sea: #0f6e80;
  --sea-deep: #0a4d5a;
  --sea-tint: #e7f1f2;
  --accent: #df6b46;
  --accent-soft: #fbe7dd;
  --line: rgba(22, 36, 43, 0.1);
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(16, 36, 43, 0.05), 0 4px 14px rgba(16, 36, 43, 0.05);
  --shadow-md: 0 12px 32px rgba(16, 36, 43, 0.09);
  --shadow-lg: 0 30px 70px rgba(16, 36, 43, 0.14);
  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 12px;
  --maxw: 1180px;
  --space: clamp(20px, 3.2vw, 30px);
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(120% 80% at 100% 0, var(--sea-tint), transparent 45%),
    linear-gradient(180deg, var(--sand-50), #fbf8f3 60%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { color: var(--ink-soft); margin: 0.6em 0; }
small { color: var(--ink-faint); display: block; }

.eyebrow {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

/* Topbar */
.topbar {
  align-items: center;
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  align-items: center;
  display: flex;
  font-family: var(--font-display);
  font-size: 1.5rem;
  gap: 10px;
}
.brand-mark {
  background: linear-gradient(140deg, var(--sea), #3ba0b3);
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
  height: 22px;
  position: relative;
  width: 22px;
}
.brand-mark::after {
  border: 2px solid #fff;
  border-radius: 50%;
  content: "";
  height: 8px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
}
.topbar nav { align-items: center; display: flex; gap: 6px; }
.topbar nav > a {
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 9px 16px;
  transition: background 0.2s ease, color 0.2s ease;
}
.topbar nav > a:hover { background: var(--sea-tint); color: var(--sea-deep); }
.topbar form { margin: 0; }

/* Buttons */
button { cursor: pointer; }
.primary, .secondary, .approve, .reject, .link-danger, .ghost, .pay-button, .pay-toggle {
  border: 0;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}
.primary, .approve, .pay-button {
  background: linear-gradient(135deg, var(--sea), var(--sea-deep));
  box-shadow: 0 10px 24px rgba(15, 110, 128, 0.28);
  color: #fff;
  width: 100%;
}
.primary:hover, .approve:hover, .pay-button:hover { box-shadow: 0 14px 30px rgba(15, 110, 128, 0.34); transform: translateY(-2px); }
.primary:active, .approve:active, .pay-button:active { transform: translateY(0); }
.secondary {
  background: var(--ink);
  color: #fff;
}
.secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ghost {
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  padding: 9px 18px;
}
.ghost:hover { opacity: 0.85; }
.reject, .link-danger {
  background: var(--accent-soft);
  color: #a23a18;
}
.reject:hover, .link-danger:hover { background: #f7d8cb; }

/* Forms */
label { display: grid; font-weight: 600; gap: 6px; margin-top: 14px; }
input, textarea, select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  outline: none;
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: var(--sea);
  box-shadow: 0 0 0 4px rgba(15, 110, 128, 0.14);
}
.two { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }

.alert {
  background: var(--accent-soft);
  border: 1px solid #f3cbbb;
  border-radius: var(--r-md);
  color: #a23a18;
  font-weight: 600;
  margin: 16px 0;
  padding: 12px 16px;
}
.note {
  background: var(--sand-100);
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  margin: 12px 0 0;
  padding: 10px 14px;
}

/* Login */
.login {
  align-items: center;
  background:
    radial-gradient(90% 60% at 50% -10%, rgba(15, 110, 128, 0.22), transparent 60%),
    linear-gradient(160deg, var(--sea-tint), var(--sand-50) 55%);
  display: grid;
  min-height: 100vh;
  padding: 20px;
}
.login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
  max-width: 430px;
  padding: clamp(28px, 4vw, 40px);
  width: 100%;
}
.login-intro { margin-bottom: 22px; }
.login-mark {
  background: linear-gradient(140deg, var(--sea), #3ba0b3);
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(15, 110, 128, 0.3);
  display: block;
  height: 52px;
  margin-bottom: 18px;
  position: relative;
  width: 52px;
}
.login-mark::after {
  border: 3px solid #fff;
  border-radius: 50%;
  content: "";
  height: 18px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
}
.login-card h2 { font-size: 1.3rem; margin-top: 4px; }

/* Layout shells */
.page-grid, .admin {
  margin: var(--space) auto;
  max-width: var(--maxw);
  padding: 0 clamp(16px, 4vw, 28px);
}
.page-grid {
  align-items: stretch;
  display: grid;
  gap: var(--space);
}
.hero-col {
  display: flex;
  flex-direction: column;
  gap: var(--space);
  min-width: 0;
}
.hero-col .aanvragen-panel { flex: 1; margin: 0; max-width: none; }
.gallery, .panel, .admin-grid { margin-left: auto; margin-right: auto; max-width: var(--maxw); }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space);
  padding: clamp(20px, 3vw, 30px);
}
.panel h2 { margin-bottom: 4px; }

/* Hero */
.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-banner {
  background:
    radial-gradient(130% 130% at 85% -20%, rgba(255, 255, 255, 0.4), transparent 55%),
    linear-gradient(135deg, var(--sea-deep), var(--sea) 55%, #45a7b8);
  height: clamp(150px, 24vw, 220px);
  position: relative;
}
.hero-banner::after {
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.5));
  bottom: 0;
  clip-path: polygon(0 60%, 16% 68%, 36% 54%, 58% 70%, 80% 56%, 100% 66%, 100% 100%, 0 100%);
  content: "";
  height: 55%;
  left: 0;
  opacity: 0.45;
  position: absolute;
  right: 0;
}
.hero-price {
  align-items: baseline;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  bottom: 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 7px;
  left: 24px;
  padding: 10px 16px;
  position: absolute;
}
.hero-price small { color: var(--ink-faint); }
.hero-price b { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; line-height: 1; }
.hero-price span { color: var(--ink-soft); font-size: 0.85rem; }
.hero-body { padding: clamp(20px, 3vw, 30px); }
.stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}
.stats span {
  background: var(--sand-50);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.stats strong { font-size: 1.05rem; }
.hero-steps {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.hero-steps li {
  align-items: center;
  color: var(--ink-soft);
  display: flex;
  font-weight: 600;
  gap: 12px;
}
.hero-steps span {
  align-items: center;
  background: var(--sea-tint);
  border-radius: 50%;
  color: var(--sea-deep);
  display: flex;
  flex: 0 0 auto;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  width: 28px;
}

/* Calendar (shared) */
.calendar-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(20px, 3vw, 30px);
}
.calendar-head {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}
.calendar-head h2 { margin-top: 2px; }
.calendar-head > div:last-child { display: flex; flex: 0 0 auto; gap: 8px; }
.calendar-head button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 8px 14px;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.calendar-head button:hover { background: var(--sea-tint); border-color: var(--sea); }
.calendar-box {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-top: 16px;
  padding: 14px;
}
.calendar-box > strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; text-transform: capitalize; }
.weekdays, .days { display: grid; gap: 6px; grid-template-columns: repeat(7, 1fr); }
.weekdays {
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 14px 0 8px;
  text-align: center;
  text-transform: uppercase;
}
.day {
  align-items: center;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  display: flex;
  font-size: 0.9rem;
  font-weight: 600;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease, color 0.15s ease;
}
.day:not(:disabled):hover { background: var(--sea-tint); }
.day.selected { background: linear-gradient(135deg, var(--sea), var(--sea-deep)); border-color: transparent; color: #fff; }
.day.range { background: rgba(15, 110, 128, 0.14); border-color: transparent; }
.day.blocked {
  background: repeating-linear-gradient(45deg, #f3eadf, #f3eadf 4px, #ece0d0 4px, #ece0d0 8px);
  color: var(--ink-faint);
  cursor: not-allowed;
}
.day.muted { opacity: 0.3; }
.day.past { background: transparent; border-color: transparent; color: rgba(22, 36, 43, 0.22); cursor: not-allowed; }

.booking-form { margin-top: 18px; }
.estimate {
  align-items: baseline;
  background: var(--sea-tint);
  border-radius: var(--r-md);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 14px;
  padding: 14px 16px;
}
.estimate small { color: var(--sea-deep); width: 100%; }
.estimate strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.estimate p { color: var(--ink-soft); margin: 0; }

/* Gallery */
.gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: var(--space);
  padding: 0 clamp(16px, 4vw, 28px);
}
.gallery-item {
  background: transparent;
  border: 0;
  border-radius: var(--r-md);
  cursor: zoom-in;
  overflow: hidden;
  padding: 0;
  position: relative;
}
.gallery-item img {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  transition: transform 0.35s ease;
  width: 100%;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:first-child { grid-column: span 2; }
.gallery-item:first-child img { aspect-ratio: 16 / 9; }

.gallery-row .gallery-item:first-child { grid-column: auto; grid-row: auto; }
.gallery-row .gallery-item:first-child img { aspect-ratio: 4 / 3; height: auto; }

/* Rows / requests (guest) */
.row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 12px;
  padding: 14px 16px;
}
.row-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.row-actions form { margin: 0; }
.row-actions .link-danger { padding: 8px 14px; }

.next-stay {
  align-items: center;
  background: linear-gradient(135deg, var(--sea-tint), #fff);
  border-color: rgba(15, 110, 128, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}
.next-stay h2 { margin: 6px 0; }
.next-stay p { margin: 0; }

.request-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-top: 12px;
  padding: 16px 18px;
}
.request-card-top {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}
.request-card-top strong { font-size: 1.05rem; }
.pay-box {
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
}
.pay-box .pay-button { max-width: 300px; width: auto; }
.transfer-wrap > summary { color: var(--sea); cursor: pointer; font-weight: 700; }
.transfer-details { display: grid; gap: 8px; margin-top: 12px; }
.kv {
  background: var(--sand-50);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 13px;
}
.kv strong { word-break: break-word; }
.kv small { margin-bottom: 2px; }

/* Badges */
.badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 5px 12px;
  white-space: nowrap;
}
.badge-pending { background: #fbecc8; color: #8a5a00; }
.badge-approved { background: #d6f0e0; color: #166b41; }
.badge-rejected { background: var(--accent-soft); color: #a23a18; }
.badge-cancelled { background: rgba(22, 36, 43, 0.08); color: var(--ink-soft); }
.badge-admin { background: var(--sea); color: #fff; }
.badge-role-user { background: var(--sea-tint); color: var(--sea-deep); }
.pay-unpaid { background: #fbecc8; color: #8a5a00; }
.pay-pending { background: #dde9ff; color: #1f4f9c; }
.pay-paid { background: #d6f0e0; color: #166b41; }
.pay-failed { background: var(--accent-soft); color: #a23a18; }

/* Admin */
.admin-head { margin-bottom: 6px; }
.admin-tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 4px;
  margin: 14px 0 var(--space);
  overflow-x: auto;
  scrollbar-width: thin;
}
.admin-tabs .tab {
  background: transparent;
  border: 0;
  border-radius: 10px 10px 0 0;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 12px 16px;
  position: relative;
  white-space: nowrap;
}
.admin-tabs .tab:hover { color: var(--ink); }
.admin-tabs .tab.is-active { color: var(--sea-deep); }
.admin-tabs .tab.is-active::after {
  background: var(--sea);
  border-radius: 3px 3px 0 0;
  bottom: -1px;
  content: "";
  height: 3px;
  left: 12px;
  position: absolute;
  right: 12px;
}
.tab-count {
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  margin-left: 7px;
  padding: 1px 7px;
}
.tab-panel[hidden] { display: none; }
.duo { display: grid; gap: var(--space); }

.setting-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-top: 14px;
  padding: 16px 18px;
}
.setting-head { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.settings-form .panel { margin-bottom: var(--space); }
.settings-actions { display: flex; }
.settings-actions .primary { max-width: 260px; width: auto; }
.settings-saved { background: #d6f0e0; border: 1px solid rgba(22, 107, 65, 0.25); color: #166b41; font-weight: 600; }
.template-details > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
}
.template-details > summary::-webkit-details-marker { display: none; }
.summary-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.summary-hint { color: var(--sea-deep); font-size: 0.85rem; font-weight: 600; }
.template-details[open] > summary .summary-hint::after { content: " ▲"; }
.template-details:not([open]) > summary .summary-hint::after { content: " ▼"; }
.template-desc { color: var(--ink-soft); margin: 12px 0 0; }
.template-grid { display: grid; gap: var(--space); grid-template-columns: 1fr; margin-top: 18px; }
.log-details > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  list-style: none;
}
.log-details > summary::-webkit-details-marker { display: none; }
.log-details > summary .eyebrow { margin: 0; }
.log-details > summary .summary-title { flex: 1; font-size: 1.05rem; }
.log-details > summary small { color: var(--ink-soft); }
.log-body { margin-top: 16px; }
.template-fields { display: flex; flex-direction: column; gap: 14px; }
.template-fields textarea { font-family: inherit; line-height: 1.5; resize: vertical; }
.template-codes { background: var(--sand-50); border: 1px solid var(--line); border-radius: var(--r-md); height: fit-content; padding: 16px; }
.template-codes-title { color: var(--ink-soft); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; margin: 0 0 12px; text-transform: uppercase; }
.chips { display: flex; flex-direction: column; gap: 8px; }
.chip {
  align-items: baseline;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
}
.chip:hover { background: rgba(15, 110, 128, 0.08); border-color: rgba(15, 110, 128, 0.3); }
.chip code { color: var(--sea-deep); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.chip small { color: var(--ink-soft); }
@media (min-width: 720px) {
  .template-grid { grid-template-columns: 1.6fr 1fr; }
}
.setting-card .transfer-details { margin-top: 14px; }
.note code {
  background: rgba(15, 110, 128, 0.1);
  border-radius: 6px;
  color: var(--sea-deep);
  font-size: 0.85em;
  padding: 2px 6px;
}
.admin-grid { align-items: start; display: grid; gap: var(--space); }
.admin-grid > aside { display: grid; gap: var(--space); align-content: start; }

.request {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-top: 14px;
  padding: 16px;
}
.request-head { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.request-period { color: var(--ink); font-weight: 700; margin: 12px 0 2px; }
.request-actions { align-items: start; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.request-actions form { flex: 1 1 160px; margin: 0; }
.request-actions .approve { width: 100%; }
.reject-wrap { flex: 1 1 160px; }
.reject-wrap > summary {
  background: var(--accent-soft);
  border-radius: 12px;
  color: #a23a18;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding: 12px 18px;
  text-align: center;
}
.reject-wrap > summary::-webkit-details-marker { display: none; }
.reject-wrap .reject { margin-top: 8px; width: 100%; }
.reject-wrap textarea { margin-top: 8px; }

/* Admin calendar */
.admin-calendar-grid { align-items: start; display: grid; gap: var(--space); margin-top: 18px; }
.admin-calendar .day.free { color: var(--ink-faint); cursor: pointer; }
.admin-calendar .day.free:hover { background: rgba(15, 110, 128, 0.1); border-color: rgba(15, 110, 128, 0.25); }
.admin-calendar .day.selected { color: #fff; }
.admin-calendar .day.occupied { cursor: pointer; }
.day.occupied-booking { background: #d6f0e0; border-color: rgba(22, 107, 65, 0.35); color: #166b41; }
.day.occupied-manual { background: #dde9ff; border-color: rgba(31, 79, 156, 0.3); color: #1f4f9c; }
.admin-calendar .day.occupied:hover { filter: brightness(0.96); }
.admin-calendar .day.active { box-shadow: 0 0 0 3px var(--sea); }
.calendar-legend {
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 18px;
  margin-top: 16px;
}
.calendar-legend span { align-items: center; display: flex; gap: 8px; }
.dot { border-radius: 5px; height: 16px; width: 16px; }
.dot-booking { background: #aedcc1; }
.dot-manual { background: #b9cdf3; }
.dot-select { background: linear-gradient(135deg, var(--sea), var(--sea-deep)); }
.calendar-detail {
  background: var(--sand-50);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
}
.calendar-detail .badge { margin-bottom: 14px; }
.detail-empty { color: var(--ink-soft); margin: 0; }
.detail-who strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.detail-period { font-weight: 700; margin: 14px 0 4px; }
.detail-meta { color: var(--ink-soft); margin: 0; }
.detail-delete { margin-top: 16px; }
.bezet-form { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.bezet-form h3 { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 8px; }
.bezet-hint { color: var(--ink-soft); font-size: 0.85rem; margin: 0 0 14px; }
.bezet-form .two { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.bezet-form .primary { margin-top: 14px; width: 100%; }

/* Section head + user management */
.section-head { margin-bottom: 22px; }
.section-head p { max-width: 60ch; }
.user-form {
  background: var(--sand-50);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
}
.user-form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.user-form-grid label { margin-top: 0; }
.user-form .primary { margin-top: 16px; max-width: 240px; }
.user-list { display: grid; gap: 12px; margin-top: 18px; }
.user-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.user-card:hover { box-shadow: var(--shadow-sm); }
.user-card-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 16px 18px;
}
.user-id { align-items: center; display: flex; gap: 12px; min-width: 0; }
.user-id strong { display: block; }
.user-id small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  align-items: center;
  background: linear-gradient(140deg, var(--sea), #3ba0b3);
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  width: 42px;
}
.user-meta { align-items: flex-end; display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tag-self { color: var(--ink-faint); font-size: 0.78rem; font-weight: 700; }
.user-last-login { color: var(--ink-soft); flex-basis: 100%; font-size: 0.78rem; text-align: right; }
.user-edit-wrap { border-top: 1px solid var(--line); }
.user-edit-wrap > summary {
  color: var(--sea);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding: 13px 18px;
}
.user-edit-wrap > summary::-webkit-details-marker { display: none; }
.user-edit-wrap > summary::after { content: " \25BC"; font-size: 0.7em; }
.user-edit-wrap[open] > summary { color: var(--ink); }
.user-edit-wrap[open] > summary::after { content: " \25B2"; }
.user-edit { padding: 0 18px 18px; }
.user-edit-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.user-edit-actions form { margin: 0; }

/* Lightbox */
.lightbox {
  align-items: center;
  background: rgba(8, 16, 22, 0.9);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 60;
}
.lightbox.open { display: flex; }
.lightbox img { border-radius: var(--r-md); max-height: 88vh; max-width: min(1100px, 92vw); object-fit: contain; }
.lightbox-close {
  background: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4rem;
  height: 46px;
  position: fixed;
  right: 20px;
  top: 20px;
  width: 46px;
}

/* Bevestigingspopup */
.modal-overlay {
  align-items: center;
  animation: modal-fade 0.2s ease;
  background: rgba(8, 16, 22, 0.55);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 70;
}
.modal {
  animation: modal-pop 0.22s ease;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  padding: 32px;
  text-align: center;
  width: 100%;
}
.modal-icon {
  align-items: center;
  background: #d6f0e0;
  border-radius: 999px;
  color: #166b41;
  display: inline-flex;
  font-size: 1.6rem;
  height: 56px;
  justify-content: center;
  margin-bottom: 16px;
  width: 56px;
}
.modal h2 { font-family: var(--font-display); margin: 0 0 10px; }
.modal p { color: var(--ink-soft); margin: 0 0 16px; }
.modal-tip {
  background: var(--sand-50);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  margin-bottom: 22px;
  padding: 12px 14px;
  text-align: left;
}
.modal .primary { width: 100%; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Responsive */
@media (min-width: 720px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery-item:first-child img { aspect-ratio: 1 / 1; height: 100%; }
}

@media (min-width: 940px) {
  .page-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: 1.3fr 0.85fr; }
  .duo { grid-template-columns: 1fr 1fr; }
  .admin-calendar-grid { grid-template-columns: 1.5fr 1fr; }
  .section-head { align-items: start; display: grid; gap: 18px; grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { gap: 10px; }
  .two, .stats { grid-template-columns: 1fr; }
  .calendar-head { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
