/* ═══════════════════════════════════════════════════════════════
   IRIDESCENT KLANTPORTAAL — Design System
   Stijl: Warm & persoonlijk | Doelgroep: 45+ | Palette: Navy + Blauw
   Fonts: Tenor Sans (titels) · Montserrat (body, buttons)
   ═══════════════════════════════════════════════════════════════ */

/* fonts geladen via <link> in de <head> van elke pagina (sneller dan @import) */

/* ── Variabelen ── */
:root {
  /* Navy & blauw */
  --navy:        #293053;
  --navy-deep:   #1c2240;
  --navy-soft:   #3d4a7a;
  --mid:         #6289ba;
  --light:       #cbdbeb;
  --light-soft:  #e8f0f8;
  --light-bg:    #f0f5fb;

  /* Goud — enkel voor primaire CTA's en accenten */
  --gold:        #c9972a;
  --gold-warm:   #d2a44b;
  --gold-light:  #f5e6b8;
  --gold-bg:     #fffbf0;

  /* Zacht blauw als accent (vervangt geel op niet-CTA plekken) */
  --blue-accent: #dce8f5;
  --blue-border: #b8cfe8;
  --blue-text:   #2a4a7a;

  /* Neutraal */
  --cream:       #f8f9fc;
  --cream-warm:  #f2f5f9;
  --white:       #ffffff;
  --text:        #1a1f36;
  --text-soft:   #374061;
  --text-muted:  #6e7a9a;
  --border:      #dce3ee;
  --border-soft: #e8edf6;

  /* Feedback */
  --success:     #2e7d4f;
  --success-bg:  #eaf6ef;
  --warning:     #9a6e00;
  --warning-bg:  #fff8e1;
  --error:       #c0392b;
  --error-bg:    #fdf0ee;

  /* Schaduw & vorm */
  --shadow-sm:   0 2px 8px rgba(41, 48, 83, 0.07);
  --shadow-md:   0 4px 20px rgba(41, 48, 83, 0.10);
  --shadow-lg:   0 8px 36px rgba(41, 48, 83, 0.13);
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   18px;
  --transition:  0.18s ease;
  --dur-fast:    120ms;
  --dur:         200ms;
  --dur-slow:    320ms;
  --ease-out:    cubic-bezier(.16, 1, .3, 1);

  /* Typografie */
  --font-title:  'Tenor Sans', Georgia, serif;
  --font-body:   'Montserrat', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); }
img { display: block; max-width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   PORTAL HEADER
   ═══════════════════════════════════════════════════════════════ */

.portal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.portal-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.portal-logo {
  height: 32px;
  width: auto;
}
.portal-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.portal-user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}
.portal-logout {
  font-size: 13px;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  cursor: pointer;
  transition: all var(--transition);
}
.portal-logout:hover { border-color: var(--navy); color: var(--navy); }

/* ── Service-nav balk (op subpagina's) ── */
.service-nav-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  padding: 0 24px;
}
.service-nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 52px;
  overflow-x: auto;
  scrollbar-width: none;
}
.service-nav-inner::-webkit-scrollbar { display: none; }
.service-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  background: none;
  cursor: pointer;
}
.service-nav-link:hover { color: var(--navy); background: var(--cream); }
.service-nav-link.active { color: var(--navy); background: var(--light-soft); border-color: var(--light); font-weight: 600; }
.service-nav-link.nav-academy { background: var(--gold); color: var(--navy); font-weight: 700; border-color: var(--gold); margin-left: auto; }
.service-nav-link.nav-academy:hover { background: var(--gold-warm); }

/* ═══════════════════════════════════════════════════════════════
   PORTAL DASHBOARD (portaal.html hoofdpagina)
   ═══════════════════════════════════════════════════════════════ */

.portal-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

/* Welkomst hero */
.welcome-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  color: var(--white);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.welcome-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(98, 137, 186, 0.15);
  pointer-events: none;
}
.welcome-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 60%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(98, 137, 186, 0.08);
  pointer-events: none;
}
.welcome-greeting {
  font-size: 12px;
  font-weight: 500;
  color: var(--light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.welcome-name {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.25;
}
.welcome-text {
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  max-width: 520px;
}

/* Notificatie-strip */
.notif-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--blue-accent);
  border: 1.5px solid var(--blue-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--blue-text);
  font-weight: 500;
}
.notif-strip-icon { font-size: 20px; flex-shrink: 0; }
.notif-strip-text { flex: 1; line-height: 1.45; }
.notif-strip-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
  transition: background var(--transition);
  cursor: pointer;
  border: none;
}
.notif-strip-link:hover { background: var(--navy-soft); }

/* Sectie-titels op het dashboard */
.dashboard-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Grote navigatie-kaarten */
.nav-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.nav-card {
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.nav-card:hover {
  border-color: var(--mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.nav-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--light-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.nav-card.gold-card .nav-card-icon { background: var(--blue-accent); }
.nav-card-body { flex: 1; min-width: 0; }
.nav-card-label {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 4px;
}
.nav-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.nav-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.nav-card-arrow {
  color: var(--mid);
  font-size: 18px;
  align-self: center;
  flex-shrink: 0;
}

/* Dashboard info-kaart (samenwerking, meldingen, berichten) */
.dash-card {
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: background var(--transition);
}
.dash-card-header:hover { background: var(--cream); }
.dash-card-header.open { border-bottom-color: var(--border-soft); }
.dash-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 400;
  color: var(--navy);
}
.dash-card-title-icon { font-size: 20px; }
.dash-card-chevron {
  color: var(--text-muted);
  font-size: 14px;
  transition: transform var(--transition);
}
.dash-card-chevron.open { transform: rotate(180deg); }
.dash-card-body { padding: 20px 22px; display: none; }
.dash-card-body.open { display: block; }

/* ═══════════════════════════════════════════════════════════════
   GEMEENSCHAPPELIJKE PAGINA-ELEMENTEN (service pages)
   ═══════════════════════════════════════════════════════════════ */

.page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

/* Pagina-hero op service pages */
.page-hero {
  margin-bottom: 28px;
}
.page-hero h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.page-hero p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Sectie-blokken */
.section-blok {
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 18px;
}
.section-blok h2 {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-blok h3 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Info-rijen (label + waarde) */
.info-rij {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.info-rij:last-child { border-bottom: none; padding-bottom: 0; }
.info-label {
  min-width: 140px;
  flex-shrink: 0;
  color: var(--text-muted);
  font-weight: 500;
}
.info-value {
  color: var(--text);
  font-weight: 400;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.badge-gold    { background: var(--gold-light); color: var(--warning); }
.badge-green   { background: var(--success-bg); color: var(--success); }
.badge-navy    { background: var(--navy); color: white; }
.badge-light   { background: var(--light-soft); color: var(--navy); }
.badge-red     { background: var(--error-bg); color: var(--error); }

/* ═══════════════════════════════════════════════════════════════
   KNOPPEN
   ═══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-navy  { background: var(--navy); color: white; border-color: var(--navy); }
.btn-navy:hover  { background: var(--navy-deep); }
.btn-gold  { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 700; }
.btn-gold:hover  { background: var(--gold-warm); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--navy); background: var(--cream); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--navy); background: var(--cream); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 6px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }
.btn-full { width: 100%; }

/* Terug-knop */
.btn-terug {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  transition: color var(--transition);
}
.btn-terug:hover { color: var(--navy); }

/* ═══════════════════════════════════════════════════════════════
   CONTENT KALENDER
   ═══════════════════════════════════════════════════════════════ */

.maand-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.maand-nav h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  text-transform: capitalize;
}
.maand-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.maand-nav-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }

.status-filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.status-tab {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.status-tab.active { background: var(--navy); color: white; border-color: var(--navy); }

.post-kaart {
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: box-shadow var(--transition);
}
.post-kaart:hover { box-shadow: var(--shadow-sm); }
.post-kaart.wacht-goedkeuring { border-left: 4px solid var(--gold); }
.post-kaart.goedgekeurd { border-left: 4px solid var(--success); }
.post-kaart.afgewezen { border-left: 4px solid var(--error); }

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.post-datum { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.post-kanaal { font-size: 12px; font-weight: 600; }

.post-tekst {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
  white-space: pre-line;
}

.post-acties {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Feedback textarea */
.feedback-zone {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  display: none;
}
.feedback-zone.open { display: block; }
.feedback-zone textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color var(--transition);
  background: var(--cream);
  margin-bottom: 8px;
}
.feedback-zone textarea:focus { border-color: var(--mid); background: var(--white); }

/* ═══════════════════════════════════════════════════════════════
   CHAT (FAB + PANEL)
   ═══════════════════════════════════════════════════════════════ */

.chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(41,48,83,0.3);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 22px;
}
.chat-fab:hover { background: var(--navy-deep); transform: scale(1.06); box-shadow: 0 6px 28px rgba(41,48,83,0.38); }

.chat-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 360px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1.5px solid var(--border-soft);
  max-height: 520px;
}
.chat-panel.open { display: flex; }

.chat-panel-header {
  background: var(--navy);
  color: white;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-panel-header span { font-size: 14px; font-weight: 600; }
.chat-panel-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
}
.chat-panel-close:hover { color: white; }

/* Type-knoppen in chat */
.chat-type-row {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--cream);
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.chat-type-btn {
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.chat-type-btn.active { background: var(--navy); color: white; border-color: var(--navy); }

.chat-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg-systeem {
  background: var(--light-soft);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.chat-msg-klant {
  background: var(--light-soft);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 12px 12px 12px 3px;
  font-size: 14px;
  max-width: 85%;
  align-self: flex-start;
  line-height: 1.5;
}
.chat-msg-admin {
  background: var(--navy);
  color: white;
  padding: 10px 14px;
  border-radius: 12px 12px 3px 12px;
  font-size: 14px;
  max-width: 85%;
  align-self: flex-end;
  line-height: 1.5;
}
.chat-msg-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  padding: 0 2px;
}

.chat-panel-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
  background: var(--white);
}
.chat-panel-footer textarea {
  flex: 1;
  min-height: 60px;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  resize: none;
  outline: none;
  color: var(--text);
  background: var(--cream);
  line-height: 1.5;
}
.chat-panel-footer textarea:focus { border-color: var(--mid); background: var(--white); }
.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.chat-send-btn:hover { background: var(--navy-deep); }
.chat-send-btn svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════════════════════════
   MELDINGEN (client-facing)
   ═══════════════════════════════════════════════════════════════ */

.melding-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.melding-item:last-child { border-bottom: none; padding-bottom: 0; }
.melding-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.melding-body { flex: 1; min-width: 0; }
.melding-titel {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 3px;
}
.melding-tekst {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 6px;
}
.melding-datum { font-size: 12px; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════
   DOCUMENTEN
   ═══════════════════════════════════════════════════════════════ */

.doc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.doc-item:last-child { border-bottom: none; }
.doc-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--light-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.doc-naam { font-size: 14px; font-weight: 600; color: var(--navy); }
.doc-datum { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Links / materiaal */
.link-kaart {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--cream);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}
.link-kaart:hover { border-color: var(--mid); background: var(--white); }
.link-kaart-icon { font-size: 20px; flex-shrink: 0; }
.link-kaart-naam { font-size: 14px; font-weight: 600; color: var(--navy); }
.link-kaart-url { font-size: 12px; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════
   ADVERTENTIES
   ═══════════════════════════════════════════════════════════════ */

.campagne-kaart {
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
  transition: box-shadow var(--transition);
}
.campagne-kaart:hover { box-shadow: var(--shadow-sm); }
.campagne-naam { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.campagne-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

.resultaat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.resultaat-item {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-align: center;
}
.resultaat-getal { font-size: 22px; font-weight: 700; color: var(--navy); }
.resultaat-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.4px; }

/* ═══════════════════════════════════════════════════════════════
   BRANDING & WEBSITE
   ═══════════════════════════════════════════════════════════════ */

.kleur-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 4px 4px 4px 0;
}
.kleur-staal { width: 24px; height: 24px; border-radius: 5px; border: 1px solid rgba(0,0,0,0.06); }
.kleur-naam { font-size: 13px; font-weight: 500; color: var(--text); }
.kleur-hex  { font-size: 11px; color: var(--text-muted); font-family: monospace; }

.tov-tag {
  display: inline-block;
  background: var(--light-soft);
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  margin: 3px;
}

/* Kanban (branding traject) */
.kanban-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 16px; align-items: flex-start; }
.kanban-col { min-width: 240px; max-width: 260px; background: var(--cream); border-radius: var(--radius); padding: 14px; flex-shrink: 0; }
.kanban-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.kanban-kaart { background: var(--white); border: 1.5px solid var(--border-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; font-size: 14px; color: var(--text); line-height: 1.5; }
.kanban-kaart.done { opacity: 0.65; text-decoration: line-through; }

/* ═══════════════════════════════════════════════════════════════
   ACADEMY
   ═══════════════════════════════════════════════════════════════ */

.cursus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.cursus-kaart {
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}
.cursus-kaart:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cursus-cover {
  height: 90px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.cursus-body { padding: 16px; }
.cursus-titel { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.cursus-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.45; margin-bottom: 12px; }
.cursus-progress-bar { height: 4px; background: var(--border-soft); border-radius: 2px; overflow: hidden; }
.cursus-progress-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.4s; }
.cursus-progress-label { font-size: 11px; color: var(--text-muted); margin-top: 5px; }

.stap-accordion {
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--white);
}
.stap-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: background var(--transition);
}
.stap-header:hover { background: var(--cream); }
.stap-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--light-soft);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stap-num.done { background: var(--success); color: white; }
.stap-titel { font-size: 14px; font-weight: 600; color: var(--navy); flex: 1; }
.stap-check { color: var(--success); font-size: 16px; }
.stap-body { padding: 0 18px 16px; display: none; border-top: 1px solid var(--border-soft); }
.stap-body.open { display: block; }
.stap-body p { font-size: 14px; color: var(--text-soft); line-height: 1.65; margin-bottom: 12px; padding-top: 14px; }
.stap-video-wrap { aspect-ratio: 16/9; background: #000; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 12px; }
.stap-video-wrap iframe { width: 100%; height: 100%; border: none; }
.stap-video-placeholder { aspect-ratio: 16/9; background: var(--cream-warm); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: var(--text-muted); font-size: 13px; margin-bottom: 12px; border: 2px dashed var(--border); }

/* ═══════════════════════════════════════════════════════════════
   FORMULIEREN & INPUTS
   ═══════════════════════════════════════════════════════════════ */

.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--cream);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.form-input:focus { border-color: var(--mid); background: var(--white); }
.form-input::placeholder { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════
   SCOPE / SAMENWERKING
   ═══════════════════════════════════════════════════════════════ */

.scope-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.scope-item:last-child { border-bottom: none; }
.scope-check { color: var(--gold); font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.scope-text strong { font-size: 14px; font-weight: 600; color: var(--navy); display: block; }
.scope-text span { font-size: 13px; color: var(--text-muted); }

.price-banner {
  background: var(--navy);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.price-label { font-size: 10px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.price-value { font-size: 20px; font-weight: 700; color: var(--gold-light); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .portal-main, .page-content { padding: 20px 16px 48px; }
  .welcome-hero { padding: 24px 20px; }
  .welcome-name { font-size: 20px; }
  .nav-card-grid { grid-template-columns: 1fr; }
  .resultaat-grid { grid-template-columns: repeat(2, 1fr); }
  .chat-panel { width: calc(100vw - 32px); right: 16px; }
  .info-label { min-width: 110px; }
}
@media (max-width: 480px) {
  .portal-header-inner { padding: 0 16px; }
  .service-nav-bar { padding: 0 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   POLISH-SOKKEL — skeletons, empty states, dialogen, toasts, focus
   Gebruikt door util.js (K.skelet/K.laadFout/K.bevestig/K.vraag/
   K.metBusy/K.toast) en de PRODUCTIEKOPPELING-blokken.
   ═══════════════════════════════════════════════════════════════ */

/* ── Skeletons ── */
.skel { position: relative; overflow: hidden; background: var(--border-soft); border-radius: var(--radius-sm); }
.skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: skel-glans 1.4s infinite; }
@keyframes skel-glans { to { transform: translateX(100%); } }
.skel-line  { height: 14px; margin: 8px 0; }
.skel-card  { height: 90px; margin: 0 0 12px; }
.skel-kolom { flex: 0 0 220px; height: 260px; border-radius: var(--radius); }

/* ── Empty / fout-state ── */
.k-leeg { text-align: center; padding: 34px 20px; color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 8px; }
.k-leeg-icoon { font-size: 30px; opacity: .75; }
.k-leeg-titel { font-size: 14px; font-weight: 600; color: var(--text-soft); }
.k-leeg-tekst { font-size: 13px; max-width: 380px; }
.k-leeg .btn  { margin-top: 6px; }

/* ── Fade-in na data-load ── */
.k-fade-in { animation: kFadeIn var(--dur) var(--ease-out); }
@keyframes kFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── Dialogen (vervangen alert/confirm/prompt) ── */
.k-dialog-overlay { position: fixed; inset: 0; background: rgba(26,31,54,.45); z-index: 100000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: kFadeIn var(--dur-fast) var(--ease-out); }
.k-dialog { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 24px 26px; max-width: 430px; width: 100%; animation: kDialogIn var(--dur) var(--ease-out); }
@keyframes kDialogIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.k-dialog h3 { font-family: var(--font-title); font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.k-dialog p  { font-size: 14px; color: var(--text-soft); margin-bottom: 18px; white-space: pre-line; line-height: 1.55; }
.k-dialog input, .k-dialog textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 14px;
  margin-bottom: 18px; outline: none; resize: vertical; }
.k-dialog input:focus, .k-dialog textarea:focus { border-color: var(--mid); }
.k-dialog-knoppen { display: flex; justify-content: flex-end; gap: 10px; }
.k-dialog-knoppen .btn-gevaar { background: var(--error); color: #fff; }
.k-dialog-knoppen .btn-gevaar:hover { background: #a53125; }

/* ── Toasts v2 (gestapeld, aria-live) ── */
#kiara-toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 100001; max-width: 92vw; pointer-events: none; }
.k-toast { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff;
  padding: 11px 18px; border-radius: 10px; font-size: 14px; font-family: var(--font-body);
  box-shadow: 0 8px 24px rgba(41,48,83,.35); animation: kToastIn var(--dur) var(--ease-out);
  max-width: 92vw; pointer-events: auto; }
.k-toast.ok   { background: var(--success); }
.k-toast.fout { background: var(--error); }
.k-toast.weg  { opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur), transform var(--dur); }
.k-toast button { background: none; border: none; color: #fff; font-size: 14px; cursor: pointer;
  font-family: inherit; font-weight: 700; text-decoration: underline; padding: 0; }
@keyframes kToastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Binnenkort-badge (bewust uitgeschakelde functies) ── */
.k-binnenkort { opacity: .55; pointer-events: none; position: relative; }
.k-binnenkort-badge { display: inline-block; margin-left: 8px; padding: 2px 8px;
  background: var(--blue-accent); color: var(--blue-text); border: 1px solid var(--blue-border);
  border-radius: 999px; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; vertical-align: middle; }

/* ── Focus & beweging ── */
:focus-visible { outline: 2px solid var(--mid); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .skel::after { animation: none; }
}
