/* ═══ Senly site-widgets: cookiebanner + support-chat + optimalisatietest ═══
   Auto-geëxtraheerd uit app/globals.css + app/landing.css — bron blijft leidend.
   Regenereren: zie scripts/build-site-widgets.mjs */

/* ── CSS-variabelen (light-theme waarden uit globals.css), gescoped op de
      widget-roots zodat ze de eigen vars van de statische pagina's nooit raken ── */
.ck-bar, .support-panel, .support-fab, .support-tooltip,
.optquiz-wrap, .optquiz-modal, .optquiz-backdrop {
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --text: #0c2422;
  --text-mute: #4a615f;
  --text-dim: #6b8280;
  --text-sub: #a0aec0;
  --text-secondary: #4a615f;
  --bg-mid: #e2e9e8;
  --bg-elev: #ffffff;
  --bg-dark: #eef2f1;
}

/* ── ck- (CookieBanner) — witte kaart, gesynct met globals.css ── */
@keyframes ck-in {
  from { transform: translateX(-50%) translateY(130%); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}
@keyframes ck-out {
  from { transform: translateX(-50%) translateY(0); opacity: 1; }
  to   { transform: translateX(-50%) translateY(130%); opacity: 0; }
}

.ck-bar {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, calc(100vw - 28px));
  z-index: 8999;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(10, 35, 42, 0.08);
  box-shadow:
    0 24px 60px -16px rgba(12, 45, 55, 0.28),
    0 4px 14px rgba(12, 45, 55, 0.06);
  animation: ck-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.ck-bar--out {
  animation: ck-out 0.32s cubic-bezier(0.4, 0, 1, 1) both;
}

.ck-bar-inner {
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ck-bar-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ck-bar-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #eef4f4;
  border: 1px solid rgba(46, 107, 116, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2e6b74;
}

.ck-bar-copy { min-width: 0; }

.ck-bar-title {
  margin: 1px 0 5px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0c1d22;
}

.ck-bar-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(12, 29, 34, 0.62);
  margin: 0 0 9px;
}

.ck-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: #2e6b74;
  text-decoration: none;
  transition: color 0.18s var(--ease-out-quart);
}
.ck-bar-link:hover { color: #21525a; }
.ck-bar-link svg { flex-shrink: 0; }

.ck-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ck-bar-btn-decline {
  flex: 1;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(10, 35, 42, 0.14);
  background: #ffffff;
  color: #0c1d22;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s var(--ease-out-quart), border-color 0.18s var(--ease-out-quart);
}
.ck-bar-btn-decline:hover { background: #f4f8f8; border-color: rgba(10, 35, 42, 0.22); }

.ck-bar-btn-accept {
  flex: 1;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  /* Site-CTA teal; wit op #2c656d ≈ 6:1 (contrast ok). */
  background: #2c656d;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s var(--ease-out-quart), transform 0.12s var(--ease-out-quart);
}
.ck-bar-btn-accept:hover { background: #21525a; }
.ck-bar-btn-accept:active { transform: scale(0.97); }

@media (max-width: 480px) {
  .ck-bar { width: calc(100vw - 24px); bottom: 16px; }
  .ck-bar-inner { padding: 20px 18px 16px; }
}

/* Tablet/desktop: brede balk — icoon + tekst links, knoppen rechts. */
@media (min-width: 640px) {
  .ck-bar { width: min(880px, calc(100vw - 40px)); }
  .ck-bar-inner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 18px 22px;
  }
  .ck-bar-top { flex: 1; min-width: 0; align-items: center; }
  .ck-bar-title { margin: 0 0 3px; font-size: 15px; }
  .ck-bar-text { font-size: 13px; margin: 0 0 4px; }
  .ck-bar-actions { flex-shrink: 0; }
  .ck-bar-btn-decline, .ck-bar-btn-accept { flex: none; padding: 11px 20px; }
}


/* ── support- (LandingSupportWidget) — globals.css ── */
.support-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  box-shadow:
    0 4px 20px -4px rgba(0,0,0,0.5),
    0 2px 8px -2px rgba(0,0,0,0.3);
  transition: box-shadow 0.3s var(--ease-out-quart);
  overflow: visible;
}
/* Pulserende ring uitgeschakeld (v6.28) — gaf een donkergroene halo
   achter de FAB die op witte achtergrond visueel rommelig oogde. */
.support-fab::before,
.support-fab::after {
  display: none;
}
.support-fab:hover {
  box-shadow:
    0 8px 32px -6px rgba(0,0,0,0.55),
    0 4px 12px -4px rgba(0,0,0,0.35),
    0 0 0 8px color-mix(in srgb, var(--support-color, #2c656d) 18%, transparent);
}

/* Unread badge */
.support-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--bg-dark, #0f1214);
  box-shadow: 0 2px 8px rgba(239,68,68,0.5);
  pointer-events: none;
}

/* Tooltip bubble */
/* Apple/Linear-stijl: frosted-glass kaart met hairline en zachte diepe
   schaduw — geen speech-pijltje, de kaart zweeft los boven de fab. */
.support-tooltip {
  position: fixed;
  bottom: 100px;
  right: 28px;
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(10,35,42,0.08);
  border-radius: 16px;
  box-shadow:
    0 16px 44px -12px rgba(12,45,55,0.22),
    0 2px 8px rgba(12,45,55,0.05),
    inset 0 1px 0 rgba(255,255,255,0.7);
  padding: 13px 38px 13px 14px; /* rechts extra ruimte voor de close-button */
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1199;
  cursor: pointer;
  width: 272px;
  user-select: none;
  transition: box-shadow 0.2s var(--ease-out-quart), border-color 0.2s var(--ease-out-quart);
}
.support-tooltip:hover {
  border-color: rgba(10,35,42,0.14);
  box-shadow:
    0 20px 52px -12px rgba(12,45,55,0.28),
    0 2px 8px rgba(12,45,55,0.06),
    inset 0 1px 0 rgba(255,255,255,0.7);
}
.support-tooltip-logo {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.support-tooltip-logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.support-tooltip-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.support-tooltip-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0c1d22;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.support-tooltip-sub {
  font-size: 12px;
  color: rgba(12,29,34,0.55);
  line-height: 1.35;
  font-weight: 400;
}
.support-tooltip-close {
  position: absolute;
  top: 8px;
  right: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Explicit width/height + box-sizing zodat iOS Safari de button niet
     verticaal uitrekt (anders zag de gebruiker een ei-vorm i.p.v. een
     ronde knop). Plus font-size:0 + line-height:0 voorkomen dat een
     UA text-baseline extra hoogte claimt onder de SVG. */
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  box-sizing: border-box;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(12,29,34,0.35);
  padding: 0;
  margin: 0;
  font-size: 0;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  transition: background 0.18s var(--ease-out-quart), color 0.18s var(--ease-out-quart);
}
.support-tooltip-close:hover {
  background: rgba(12,29,34,0.06);
  color: rgba(12,29,34,0.7);
}

/* Panel */
.support-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 360px;
  max-height: 560px;
  /* Standaard wit — ook op de landing page zonder dark-theme */
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  box-shadow: 0 20px 60px -12px rgba(0,0,0,0.18), 0 4px 16px -4px rgba(0,0,0,0.1);
  z-index: 1199;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
html[data-theme="dark"] .support-panel {
  background: var(--bg-elev, #181b1f);
  border-color: rgba(255,255,255,0.08);
  box-shadow:
    0 24px 64px -16px rgba(0,0,0,0.7),
    0 8px 24px -8px rgba(0,0,0,0.4),
    0 1px 0 rgba(255,255,255,0.06) inset;
}
/* Landing-variant: altijd wit, ook als dark-theme via cookie actief is */
html[data-theme="dark"] .support-panel--landing {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 20px 60px -12px rgba(0,0,0,0.18), 0 4px 16px -4px rgba(0,0,0,0.1);
}
html[data-theme="dark"] .support-panel--landing .support-tabs {
  background: #f8f9fa;
  border-bottom-color: rgba(0,0,0,0.07);
}
html[data-theme="dark"] .support-panel--landing .support-msg-bubble {
  background: #f0f2f4;
  border-color: rgba(0,0,0,0.06);
  color: #1a1a1a;
}
html[data-theme="dark"] .support-panel--landing .support-messages::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
}
/* Skeletons (help center laadtoestand) altijd licht op de landing page */
html[data-theme="dark"] .support-panel--landing .support-search-skeleton,
html[data-theme="dark"] .support-panel--landing .support-article-skeleton {
  background: linear-gradient(90deg, #e9ebee 0%, #f3f4f6 50%, #e9ebee 100%);
  background-size: 200% 100%;
}
/* Artikelen-lijst achtergrond ook wit houden */
html[data-theme="dark"] .support-panel--landing .support-articles-list {
  background: #ffffff;
  color: #111827;
}
html[data-theme="dark"] .support-panel--landing .support-search-input {
  background: #f3f4f6;
  color: #111827;
  border-color: rgba(0,0,0,0.1);
}
html[data-theme="dark"] .support-panel--landing .support-articles-label {
  color: #6b7280;
}
html[data-theme="dark"] .support-panel--landing .support-article-btn {
  color: #111827;
  border-bottom-color: rgba(0,0,0,0.06);
}
html[data-theme="dark"] .support-panel--landing .support-article-btn:hover {
  background: #f8f9fa;
}
html[data-theme="dark"] .support-panel--landing .support-article-icon {
  background: rgba(44, 101, 109,0.1);
  color: #2c656d;
}

/* Panel header */
.support-header {
  padding: 18px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.support-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.support-header-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.support-header-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.support-header-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}
.support-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: dash-pulse 2s ease-in-out infinite;
}
.support-header-close {
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s var(--ease-out-quart);
  flex-shrink: 0;
}
.support-header-close:hover { background: rgba(255,255,255,0.25); }

/* Tabs */
.support-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  flex-shrink: 0;
  padding: 0 4px;
  background: #f8f9fa;
}
html[data-theme="dark"] .support-tabs {
  background: var(--bg-dark, #0f1214);
  border-bottom-color: rgba(255,255,255,0.06);
}
.support-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mute);
  transition: color 0.18s var(--ease-out-quart), border-color 0.18s var(--ease-out-quart);
  margin-bottom: -1px;
}
.support-tab:hover { color: var(--text); }
.support-tab.is-active { font-weight: 600; }

/* Chat area */
.support-chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Messages scroll area */
.support-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 8px;
  scroll-behavior: smooth;
  min-height: 200px;
  max-height: 360px;
}
.support-messages::-webkit-scrollbar { width: 4px; }
.support-messages::-webkit-scrollbar-track { background: transparent; }
.support-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 4px; }
html[data-theme="dark"] .support-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

/* Empty state */
.support-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 20px;
  text-align: center;
}
.support-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.support-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.support-empty-sub {
  font-size: 13px;
  color: var(--text-mute);
  margin: 0;
  line-height: 1.5;
}

/* Message list */
.support-msg-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.support-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
}
.support-msg--own {
  flex-direction: row-reverse;
}
.support-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  align-self: flex-start;
  /* Geen margin-top — top van avatar lijnt exact uit met top van de sender-row,
     die min-height: 32px heeft zodat de naam vertikaal gecentreerd staat. */
  margin-top: 0;
  overflow: hidden;
}
.support-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.support-msg-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 75%;
}
.support-msg--own .support-msg-col {
  align-items: flex-end;
}
.support-msg-sender {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  padding-left: 4px;
  /* min-height = avatar hoogte → naam staat verticaal gecentreerd naast de avatar.
     Zonder dit blijft de naam ~14px hoog terwijl de avatar 32px is, waardoor
     de avatar visueel onder de naam uit lijkt te steken. */
  min-height: 32px;
  display: flex;
  align-items: center;
  /* Negatieve margin-bottom compenseert de extra ruimte die min-height creëert,
     zodat de bubble net zo dicht onder de naam staat als voorheen. */
  margin-bottom: -6px;
}
.support-msg-bubble {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #1a1a1a;
  background: #f0f2f4;
  border: 1px solid rgba(0,0,0,0.06);
  word-break: break-word;
}
html[data-theme="dark"] .support-msg-bubble {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.06);
  color: var(--text);
}
.support-msg--own .support-msg-bubble {
  border-color: transparent;
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}
.support-msg--other .support-msg-bubble {
  border-radius: 4px 14px 14px 14px;
}
/* Rich-text bot bubble: alinea's met goede spacing + vet */
.support-msg-bubble--rich .support-msg-paragraph {
  margin: 0 0 8px 0;
}
.support-msg-bubble--rich .support-msg-paragraph:last-child {
  margin-bottom: 0;
}
.support-msg-bubble--rich .support-msg-spacer {
  display: block;
  height: 4px;
}
.support-msg-bubble--rich strong {
  font-weight: 600;
  color: inherit;
}
.support-msg-time {
  font-size: 10px;
  color: var(--text-dim, #4a5568);
  padding: 0 4px;
}

/* Input row */
.support-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
html[data-theme="light"] .support-input-row { border-top-color: rgba(0,0,0,0.07); }
.support-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: border-color 0.18s var(--ease-out-quart);
}
.support-input::placeholder { color: var(--text-mute); }
.support-input:focus { border-color: var(--support-color, #2c656d); }
html[data-theme="light"] .support-input {
  background: #f0f2f4;
  border-color: rgba(0,0,0,0.1);
  color: #1a1a1a;
}
.support-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  color: var(--text-mute);
  transition: background 0.2s var(--ease-out-quart), transform 0.18s var(--ease-out-quart);
}
.support-send-btn:not(:disabled) { color: white; }
.support-send-btn:not(:disabled):hover { transform: scale(1.06); }
.support-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Human-mode banner */
.support-human-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid;
  border-bottom: 1px solid;
  font-size: 11.5px;
  line-height: 1.4;
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
}
html[data-theme="light"] .support-human-banner { background: rgba(0,0,0,0.03); }
.support-human-banner svg { flex-shrink: 0; margin-top: 2px; }
.support-human-banner div { display: flex; flex-direction: column; gap: 1px; }
.support-human-banner strong { font-weight: 600; }
.support-human-banner span { opacity: 0.75; }

/* Typing indicator (drie stippen) */
.support-typing-bubble {
  display: flex !important;
  align-items: center;
  gap: 4px;
  padding: 10px 14px !important;
  min-width: 48px;
}
.support-typing-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  animation: support-bounce 1.2s infinite ease-in-out;
}
.support-typing-dot:nth-child(1) { animation-delay: 0s; }
.support-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.support-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes support-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 0.9; }
}

/* Medewerker-knop onderaan de chat */
.support-ask-human-row {
  display: flex;
  justify-content: center;
  padding: 6px 14px 8px;
  flex-shrink: 0;
}
.support-ask-human-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-mute);
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
  transition: color 0.18s var(--ease-out-quart), background 0.18s var(--ease-out-quart);
}
.support-ask-human-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
}
html[data-theme="light"] .support-ask-human-btn:hover:not(:disabled) {
  background: rgba(0,0,0,0.05);
}
.support-ask-human-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Artikelen tab */
.support-articles-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 12px;
}
/* Zoekbalk */
.support-search-wrap {
  position: relative;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
html[data-theme="light"] .support-search-wrap { border-bottom-color: rgba(0,0,0,0.06); }
.support-search-icon {
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  pointer-events: none;
  margin-top: 1px;
}
.support-search-input {
  width: 100%;
  padding: 8px 32px 8px 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s var(--ease-out-quart), background 0.18s var(--ease-out-quart);
  box-sizing: border-box;
}
html[data-theme="light"] .support-search-input {
  border-color: rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.03);
}
.support-search-input:focus {
  border-color: color-mix(in srgb, var(--support-color, #2c656d) 55%, transparent);
  background: rgba(255,255,255,0.07);
}
.support-search-input::placeholder { color: var(--text-mute); }
.support-search-input::-webkit-search-cancel-button { display: none; }
.support-search-clear {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  margin-top: 1px;
  border-radius: 4px;
  transition: color 0.18s var(--ease-out-quart);
}
.support-search-clear:hover { color: var(--text); }
.support-search-skeleton {
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--bg-mid) 0%, var(--bg-elev) 50%, var(--bg-mid) 100%);
  background-size: 200% 100%;
  animation: dash-shimmer 1.4s ease-in-out infinite;
}
/* Geen resultaten */
.support-no-results {
  padding: 32px 20px;
  text-align: center;
}
.support-no-results p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}
.support-no-results span {
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.5;
}
/* Categorie label */
.support-articles-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--text-mute);
  padding: 12px 16px 6px;
}
/* Wrapper per item — bevat rij + accordion-antwoord */
.support-article-item {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
html[data-theme="light"] .support-article-item { border-bottom-color: rgba(0,0,0,0.05); }
.support-article-item.is-open { border-bottom-color: transparent; }

.support-article-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.18s var(--ease-out-quart);
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.support-article-row:hover { background: rgba(255,255,255,0.04); }
html[data-theme="light"] .support-article-row:hover { background: rgba(0,0,0,0.03); }
.is-open > .support-article-row { background: rgba(255,255,255,0.03); }
.support-article-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.support-article-title {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
}
.support-article-arrow {
  color: var(--text-mute);
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.support-article-arrow.is-rotated { transform: rotate(90deg); }
.support-article-row:hover .support-article-arrow:not(.is-rotated) { transform: translateX(2px); }

/* Accordion antwoord */
.support-article-answer {
  overflow: hidden;
}
.support-article-answer-inner {
  padding: 0 16px 14px 60px;
  border-left: 2px solid;
  margin-left: 16px;
  margin-bottom: 8px;
}
.support-article-answer-inner p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub, #a0aec0);
  margin: 0 0 4px;
}
html[data-theme="light"] .support-article-answer-inner p { color: #4a5568; }
.support-article-answer-inner br { display: block; height: 6px; content: ''; }
.support-article-read-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.18s var(--ease-out-quart);
}
.support-article-read-more:hover { opacity: 1; }
.support-answer-spacer { display: block; height: 6px; }

.support-article-skeleton {
  height: 52px;
  margin: 4px 16px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--bg-mid) 0%, var(--bg-elev) 50%, var(--bg-mid) 100%);
  background-size: 200% 100%;
  animation: dash-shimmer 1.4s ease-in-out infinite;
}

/* Responsive: op kleine schermen iets smaller */
@media (max-width: 420px) {
  .support-panel {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 90px;
  }
  .support-fab {
    bottom: 20px;
    right: 16px;
  }
}

/* ── optquiz- (OptimizationQuiz) — landing.css ── */
.optquiz-wrap {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 300px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(44, 101, 109,0.07) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #ffffff 0%, #f6fbfa 100%);
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 24px 60px -16px rgba(15, 23, 42, 0.28),
    0 6px 18px -8px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  z-index: 1199;
  overflow: hidden;
}
.optquiz-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(44, 101, 109,0.55) 25%, rgba(9, 25, 30,0.55) 75%, transparent 100%);
  pointer-events: none;
}

.optquiz-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 26px;
  height: 26px;
  border: none;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  z-index: 2;
}
.optquiz-close:hover { background: rgba(15, 23, 42, 0.1); color: #334155; transform: rotate(90deg); }

.optquiz-body { padding: 24px 22px 22px; }

.optquiz-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2c656d 0%, #26565d 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  box-shadow:
    0 8px 20px -6px rgba(44, 101, 109, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.optquiz-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2c656d;
  margin-bottom: 9px;
}
.optquiz-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #2c656d;
  box-shadow: 0 0 0 3px rgba(44, 101, 109, 0.16);
}

.optquiz-title {
  font-size: 15.5px; font-weight: 600; color: #0f172a;
  margin: 0 0 6px; line-height: 1.3; padding-right: 22px;
  letter-spacing: -0.015em;
}
.optquiz-sub {
  font-size: 12.5px; color: #64748b;
  margin: 0 0 18px; line-height: 1.55;
}
.optquiz-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 12px 14px;
  background: linear-gradient(180deg, #2c656d 0%, #26565d 100%);
  color: #fff; font-size: 13.5px; font-weight: 650;
  text-align: center; border: none; border-radius: 12px;
  cursor: pointer; text-decoration: none;
  letter-spacing: -0.005em;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease;
  box-shadow:
    0 8px 22px -6px rgba(44, 101, 109, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.optquiz-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px -6px rgba(44, 101, 109, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.optquiz-cta:active { transform: translateY(0); }
.optquiz-cta-arrow {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.optquiz-cta:hover .optquiz-cta-arrow { transform: translateX(4px); }

@media (max-width: 768px) {
  /* Bureau-scan popup verbergen op mobiel — te weinig ruimte naast chat-widget */
  .optquiz-wrap { display: none; }
}

/* ─── Backdrop ───────────────────────────────────────────── */
.optquiz-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 17, 32, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1200;
}

/* ─── Full-screen modal ──────────────────────────────────── */
.optquiz-modal {
  position: fixed;
  inset: 14px;
  background: #fff;
  border-radius: 22px;
  z-index: 1201;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255,255,255,0.08);
}

.optquiz-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border: none;
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8;
  transition: background 0.15s, color 0.15s;
  z-index: 2;
}
.optquiz-modal-close:hover { background: rgba(0,0,0,0.1); color: #0f172a; }

.optquiz-modal-body {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 56px 56px;
  max-width: 620px; width: 100%;
  margin: 0 auto;
  overflow-y: auto;
}

/* Progress */
.optquiz-modal-progress {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 48px;
}
.optquiz-progress-bar-track {
  flex: 1; height: 3px;
  background: #f1f5f9;
  border-radius: 99px; overflow: visible;
  position: relative;
}
.optquiz-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2c656d 0%, #26565d 100%);
  border-radius: 99px;
  position: relative;
}
.optquiz-progress-glow {
  position: absolute;
  right: -1px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2c656d;
  box-shadow: 0 0 0 3px rgba(44, 101, 109,0.25), 0 0 8px rgba(44, 101, 109,0.5);
}
.optquiz-progress-label {
  font-size: 12px; font-weight: 600;
  color: #94a3b8; white-space: nowrap; letter-spacing: 0.02em;
}
.optquiz-progress-sep { color: #cbd5e1; }

/* Category + Question */
.optquiz-modal-category {
  font-size: 11px; font-weight: 700;
  color: #2c656d;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin: 0 0 12px;
}
.optquiz-modal-question {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700; color: #0f172a;
  margin: 0 0 32px; line-height: 1.3;
  padding-right: 40px;
  letter-spacing: -0.02em;
}

/* Options */
.optquiz-modal-options {
  display: flex; flex-direction: column; gap: 9px;
}
.optquiz-modal-option {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 15px 18px;
  background: #fafafa;
  border: 1.5px solid #e8edf2;
  border-radius: 13px;
  font-size: 15px; color: #334155; font-weight: 500;
  text-align: left; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  position: relative; overflow: hidden;
}
.optquiz-modal-option::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(44, 101, 109,0.06) 0%, rgba(44, 101, 109,0.04) 100%);
  opacity: 0; transition: opacity 0.15s;
  pointer-events: none;
}
.optquiz-modal-option:hover { border-color: #2c656d; box-shadow: 0 0 0 3px rgba(44, 101, 109,0.08); }
.optquiz-modal-option:hover::before { opacity: 1; }
.optquiz-modal-option.is-selected {
  border-color: #2c656d;
  background: rgba(44, 101, 109,0.07);
  box-shadow: 0 0 0 3px rgba(44, 101, 109,0.15);
}
.optquiz-modal-option.is-selected::before { opacity: 1; }

.optquiz-option-dot {
  width: 18px; height: 18px; flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.optquiz-modal-option:hover .optquiz-option-dot,
.optquiz-modal-option.is-selected .optquiz-option-dot {
  border-color: #2c656d;
  background: #2c656d;
  box-shadow: 0 0 0 3px rgba(44, 101, 109,0.2);
}
.optquiz-option-text { flex: 1; line-height: 1.35; }
.optquiz-option-arrow {
  font-size: 14px; color: #cbd5e1;
  transition: color 0.15s, transform 0.15s;
  margin-left: 4px;
}
.optquiz-modal-option:hover .optquiz-option-arrow,
.optquiz-modal-option.is-selected .optquiz-option-arrow {
  color: #2c656d; transform: translateX(3px);
}

/* Results */
.optquiz-modal-body--results { text-align: center; }

.optquiz-results-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(44, 101, 109,0.12) 0%, rgba(44, 101, 109,0.08) 100%);
  color: #2c656d;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.optquiz-modal-results-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800; color: #0f172a;
  margin: 0 0 12px; letter-spacing: -0.03em;
}
.optquiz-modal-results-sub {
  font-size: 15px; color: #64748b; margin: 0 0 36px;
  line-height: 1.6; max-width: 420px; margin-inline: auto;
}

.optquiz-modal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 32px;
}
.optquiz-modal-metric {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 14px;
  background: linear-gradient(135deg, #f3f7f7 0%, #edf2f2 100%);
  border-radius: 16px;
  border: 1.5px solid rgba(44, 101, 109,0.15);
}
.optquiz-modal-metric-num {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800; color: #2c656d; line-height: 1;
  letter-spacing: -0.03em;
}
.optquiz-modal-metric-label {
  font-size: 12px; color: #64748b; font-weight: 500;
  text-align: center; line-height: 1.35;
}
.optquiz-modal-disclaimer {
  font-size: 11.5px; color: #94a3b8; font-style: italic;
  text-align: center; margin: 14px 0 0;
}

.optquiz-modal .optquiz-modal-cta {
  display: block; width: 100%;
  padding: 16px 24px;
  background: linear-gradient(180deg, #2c656d 0%, #26565d 100%) !important;
  color: #fff; font-size: 15px; font-weight: 700;
  text-align: center; border: none; border-radius: 13px;
  cursor: pointer; text-decoration: none;
  transition: opacity 0.15s, transform 0.12s;
  box-shadow: 0 6px 20px rgba(44, 101, 109,0.4);
  margin-bottom: 14px;
}
.optquiz-modal .optquiz-modal-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.optquiz-modal-cta-foot {
  font-size: 12.5px; color: #94a3b8; margin: 0; text-align: center;
}

@media (max-width: 640px) {
  .optquiz-modal { inset: 10px; border-radius: 18px; }
  .optquiz-modal-body { padding: 56px 22px 32px; justify-content: flex-start; }
  .optquiz-modal-metrics { grid-template-columns: 1fr; }
}

/* ── Petrol-thema: FAB en panel-header exact als de g2-strip op de homepage ── */
.support-fab {
  background: linear-gradient(180deg, #2c656d 0%, #26565d 100%) !important;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07) inset, 0 12px 32px rgba(9, 25, 30,0.38);
}
.support-header {
  background: linear-gradient(180deg, #2c656d 0%, #26565d 100%) !important;
}
