/* ==========================================================================
   SVB CYBER ADVISORY - MULTI-TENANT KLANTENPORTAAL STIJLEN (client-portal.css)
   Full-width screen, Industrial Tech, Dark/Light mode & geanimeerde interacties
   ========================================================================== */

html,
body {
  overflow-x: clip !important;
}

/* Full-width container voor maximale schermbenutting */
.portal-container {
  width: 100%;
  max-width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .portal-container {
    padding: 0 20px;
  }
}

.portal-page {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Navigatiebalk voor klant */
.portal-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

[data-theme="dark"] .portal-nav {
  background: rgba(13, 19, 29, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
}

.portal-nav .portal-container {
  padding: 0 28px;
}

.portal-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.portal-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-headline);
  letter-spacing: -0.01em;
}

.portal-client-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 158, 0.12);
  border: 1px solid rgba(0, 212, 158, 0.3);
  font-family: var(--font-sans, 'Plus Jakarta Sans', system-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--mint-deep);
  white-space: nowrap;
  flex-shrink: 0;
}

[data-theme="dark"] .portal-client-badge {
  color: var(--mint-light);
}

/* Portal Main Navigation Menu (Dashboard vs Post Studio vs Marketingkalender vs Documentatie) */
.portal-main-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 8px;
  flex-shrink: 0;
}

  /* Hamburger Knop voor Portaal op Mobiel */
  .portal-hamburger-btn {
    display: none !important;
    width: 38px;
    height: 38px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-light, #cbd5e1);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  [data-theme="dark"] .portal-hamburger-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
  }

  /* 3-Bar Flex Hamburger (Standaard SVB methode - Steekt NOOIT uit) */
  .portal-hamburger-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--text-headline);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    transform-origin: center;
    margin: 0 auto;
  }

  [data-theme="dark"] .portal-hamburger-bar {
    background-color: #f1f5f9;
  }

  .portal-hamburger-btn.is-active .portal-hamburger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .portal-hamburger-btn.is-active .portal-hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .portal-hamburger-btn.is-active .portal-hamburger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Fallback voor span.hamburger-box structuur */
  .hamburger-box {
    width: 20px;
    height: 14px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .hamburger-inner,
  .hamburger-inner::before,
  .hamburger-inner::after {
    width: 18px;
    height: 2px;
    background-color: var(--text-headline);
    border-radius: 2px;
    position: absolute;
    left: 0 !important;
    right: 0 !important;
    margin: auto !important;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  [data-theme="dark"] .hamburger-inner,
  [data-theme="dark"] .hamburger-inner::before,
  [data-theme="dark"] .hamburger-inner::after {
    background-color: #f1f5f9;
  }

  .hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
  }

  .hamburger-inner::before {
    content: '';
    display: block !important;
    top: -6px;
  }

  .hamburger-inner::after {
    content: '';
    display: block !important;
    bottom: -6px;
  }

  .portal-hamburger-btn.is-active .hamburger-inner {
    background-color: transparent !important;
  }

  .portal-hamburger-btn.is-active .hamburger-inner::before {
    transform: translateY(6px) rotate(45deg);
  }

  .portal-hamburger-btn.is-active .hamburger-inner::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Backdrop Overlay */
  .portal-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
  }

  .portal-nav.mobile-menu-open ~ .portal-nav-backdrop,
  .portal-nav-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  body.portal-menu-locked {
    overflow: hidden !important;
  }

  /* Desktop Standaard Verbergen van Mobiele Elementen */
  .portal-mobile-menu-footer {
    display: none !important;
  }

@media (max-width: 900px) {
  .portal-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg, rgba(255, 255, 255, 0.96));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  }

  [data-theme="dark"] .portal-nav {
    background: rgba(7, 10, 15, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.60);
  }

  .portal-nav .portal-container {
    padding: 0 16px;
  }

  .portal-nav-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 !important;
    gap: 12px !important;
    position: relative !important;
  }

  .portal-nav-inner > div:first-child {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  /* Brand Logo links */
  .portal-brand {
    flex-shrink: 0 !important;
  }

  .portal-brand .brand-svb {
    font-size: 1.35rem;
  }

  .portal-brand .brand-sub {
    font-size: 0.52rem;
  }

  /* Klantbadge compact */
  .portal-client-badge {
    padding: 3px 9px;
    font-size: 0.74rem;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1 !important;
  }

  /* Acties rechts: Thema knop + Hamburger knop */
  .portal-nav-actions {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  .portal-nav-actions .theme-toggle-btn {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  /* Verberg de desktop uitlogknop in de navigatiebalk (zit nu in het hamburgermenu) */
  .portal-nav-actions .portal-tab-btn {
    display: none !important;
  }

  .portal-hamburger-btn {
    display: inline-flex !important;
  }

  /* Mobiel Uitklapmenu (Hamburger Drawer / Dropdown) */
  .portal-main-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 16px 16px 16px !important;
    background: var(--glass-bg, rgba(255, 255, 255, 0.98)) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-top: 1px solid var(--border-light) !important;
    border-bottom: 1px solid var(--border-light) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    z-index: 1001 !important;
    box-sizing: border-box !important;
    /* Vloeiende Dropdown Animatie */
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) scale(0.99) !important;
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
    pointer-events: none !important;
  }

  [data-theme="dark"] .portal-main-menu {
    background: rgba(10, 15, 24, 0.98) !important;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
    border-bottom-color: rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.70) !important;
  }

  .portal-nav.mobile-menu-open .portal-main-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
  }

  .portal-nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 12px 16px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    min-height: 48px !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
    background: var(--bg-surface-soft, rgba(0, 0, 0, 0.02)) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-headline) !important;
    transition: all 0.18s ease !important;
  }

  [data-theme="dark"] .portal-nav-link {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
  }

  .portal-nav-link.active {
    background: var(--mint-primary, #00d49e) !important;
    color: #04241b !important;
    border-color: var(--mint-primary, #00d49e) !important;
    box-shadow: 0 4px 14px rgba(0, 212, 158, 0.25) !important;
  }

  [data-theme="dark"] .portal-nav-link.active {
    background: var(--mint-primary, #00d49e) !important;
    color: #04241b !important;
  }

  .portal-nav-link svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
  }

  .portal-nav-badge-new {
    margin-left: auto !important;
    padding: 2px 7px !important;
    font-size: 0.65rem !important;
  }

  /* Mobiele Menu Footer met Klantinfo & Uitloggen */
  .portal-mobile-menu-footer {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 6px !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--border-light) !important;
  }

  [data-theme="dark"] .portal-mobile-menu-footer {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
  }

  .portal-mobile-client-info {
    font-size: 0.78rem !important;
    color: var(--text-muted) !important;
    padding: 2px 4px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .portal-mobile-logout-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 11px 16px !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #dc2626 !important;
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    text-decoration: none !important;
    transition: all 0.18s ease !important;
  }

  .portal-nav-link.active {
    background: var(--mint-primary) !important;
    color: #070a0f !important;
    border-color: var(--mint-primary) !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 10px rgba(0, 212, 158, 0.35) !important;
  }

  [data-theme="dark"] .portal-nav-link.active {
    background: var(--mint-primary) !important;
    color: #070a0f !important;
    border-color: var(--mint-primary) !important;
  }
}

@media (max-width: 520px) {
  .portal-client-badge {
    max-width: 100px;
    font-size: 0.70rem;
    padding: 2px 7px;
  }
}

@media (max-width: 380px) {
  .portal-client-badge {
    display: none !important;
  }
}


.portal-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.portal-nav-link:hover {
  color: var(--text-headline);
  background: var(--bg-panel);
  border-color: var(--border-light);
}

.portal-nav-link.active {
  color: var(--text-headline);
  background: var(--bg-panel);
  border-color: var(--border-light);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .portal-nav-link.active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.portal-nav-badge-new {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 999px;
  background: #1877f2;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.portal-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 1366px) {
  .portal-nav .portal-container {
    padding: 0 16px;
  }
  .portal-main-menu {
    gap: 3px;
    margin: 0 4px;
  }
  .portal-nav-link {
    padding: 5px 9px;
    font-size: 0.78rem;
    gap: 5px;
  }
  .portal-client-badge {
    padding: 3px 8px;
    font-size: 0.74rem;
  }
}

/* Hero / Welkomststrip */
.portal-welcome-strip {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .portal-welcome-strip {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.portal-welcome-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient-mint);
}

.portal-welcome-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-headline);
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.portal-welcome-sub {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-domain-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint-deep);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 158, 0.08);
  border: 1px solid rgba(0, 212, 158, 0.2);
  transition: var(--transition-smooth);
}

[data-theme="dark"] .portal-domain-link {
  color: var(--mint-light);
}

.portal-domain-link:hover {
  background: rgba(0, 212, 158, 0.18);
}

/* KPI Statistiek Kaarten Grid (Bovenin) */
.portal-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

.portal-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .portal-stat-card {
  border-color: rgba(255, 255, 255, 0.08);
}

.portal-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 212, 158, 0.35);
}

.portal-stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.portal-stat-title {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.portal-stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(0, 212, 158, 0.1);
  color: var(--mint-deep);
}

[data-theme="dark"] .portal-stat-icon-wrap {
  color: var(--mint-light);
}

.portal-stat-main-num {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-headline);
  line-height: 1.1;
  margin-bottom: 6px;
}

.portal-stat-sub-num {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* PageSpeed / Lighthouse Diagnostics Bar & Strategy Switcher */
.lighthouse-diagnose-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.lighthouse-diagnose-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-headline);
  letter-spacing: -0.01em;
}

.lighthouse-compass-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(0, 212, 158, 0.12);
  color: var(--mint-deep);
}

[data-theme="dark"] .lighthouse-compass-icon {
  color: var(--mint-light);
}

.lighthouse-strategy-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 3px;
}

[data-theme="dark"] .lighthouse-strategy-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-strategy-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-strategy-tab:hover {
  color: var(--text-headline);
}

.btn-strategy-tab.active {
  background: var(--bg-card);
  color: var(--mint-deep);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .btn-strategy-tab.active {
  background: rgba(0, 212, 158, 0.18);
  color: var(--mint-light);
  border: 1px solid rgba(0, 212, 158, 0.35);
  box-shadow: 0 1px 6px rgba(0, 212, 158, 0.15);
}

/* 5 Metrics Row (Performance, A11y, Best Practices, SEO, Agentic Browsing) */
.lighthouse-metrics-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: start;
  margin: 8px 0;
}

@media (max-width: 640px) {
  .lighthouse-metrics-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 8px;
  }
}

.lh-metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.lh-gauge {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lh-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
}

.lh-circle-bg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.07);
  stroke-width: 3.2;
}

[data-theme="dark"] .lh-circle-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

.lh-circle-arc {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  transition: stroke-dasharray 0.8s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}

.lh-gauge-val {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
  transition: color 0.3s ease;
}

.lh-metric-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-headline);
  line-height: 1.2;
  max-width: 85px;
  word-break: break-word;
}

/* Lighthouse Gauge Color Scales */
/* Good (>= 90) */
.lh-gauge.score-good {
  background: rgba(16, 185, 129, 0.06);
}
.lh-gauge.score-good .lh-circle-arc {
  stroke: #10b981;
}
.lh-gauge.score-good .lh-gauge-val {
  color: #059669;
}
[data-theme="dark"] .lh-gauge.score-good .lh-gauge-val {
  color: #34d399;
}

/* Average (50 - 89) */
.lh-gauge.score-avg {
  background: rgba(245, 158, 11, 0.06);
}
.lh-gauge.score-avg .lh-circle-arc {
  stroke: #f59e0b;
}
.lh-gauge.score-avg .lh-gauge-val {
  color: #d97706;
}
[data-theme="dark"] .lh-gauge.score-avg .lh-gauge-val {
  color: #fbbf24;
}

/* Poor (< 50) */
.lh-gauge.score-poor {
  background: rgba(239, 68, 68, 0.06);
}
.lh-gauge.score-poor .lh-circle-arc {
  stroke: #ef4444;
}
.lh-gauge.score-poor .lh-gauge-val {
  color: #dc2626;
}
[data-theme="dark"] .lh-gauge.score-poor .lh-gauge-val {
  color: #f87171;
}

/* None / Pending */
.lh-gauge.score-none {
  background: rgba(148, 163, 184, 0.06);
}
.lh-gauge.score-none .lh-circle-arc {
  stroke: #94a3b8;
}
.lh-gauge.score-none .lh-gauge-val {
  color: #94a3b8;
}

/* Agentic Browsing Pill Badge (0/2 of 2/2 AI Agent Protocols) */
.lh-metric-slot {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lh-agentic-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  transition: all 0.3s ease;
}

.lh-agentic-badge.is-warning {
  background: #fde8e8;
  color: #e02424;
  border: 1px solid rgba(224, 36, 36, 0.2);
}

[data-theme="dark"] .lh-agentic-badge.is-warning {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.lh-agentic-badge.is-good {
  background: #def7ec;
  color: #0e9f6e;
  border: 1px solid rgba(14, 159, 110, 0.2);
}

[data-theme="dark"] .lh-agentic-badge.is-good {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.lh-agentic-icon {
  font-size: 0.76rem;
  line-height: 1;
}

.lh-agentic-val {
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Fallback / Legacy Speed gauges */
.pagespeed-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

.speed-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  transition: var(--transition-smooth);
}

[data-theme="dark"] .speed-box {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

.speed-gauge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 8px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
}

.speed-gauge.score-good {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 3px solid #10b981;
}
[data-theme="dark"] .speed-gauge.score-good { color: #34d399; }

.speed-gauge.score-avg {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 3px solid #f59e0b;
}
[data-theme="dark"] .speed-gauge.score-avg { color: #fbbf24; }

.speed-gauge.score-poor {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 3px solid #ef4444;
}
[data-theme="dark"] .speed-gauge.score-poor { color: #f87171; }

.speed-gauge.score-none {
  background: rgba(148, 163, 184, 0.15);
  color: #64748b;
  border: 3px solid #94a3b8;
}

.speed-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* PageSpeed Acties & Live Knop */
.pagespeed-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-pagespeed-web-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 153, 112, 0.08);
  color: var(--mint-deep);
  border: 1px solid rgba(0, 153, 112, 0.22);
  transition: var(--transition-smooth);
}

[data-theme="dark"] .portal-pagespeed-web-link {
  background: rgba(0, 212, 158, 0.1);
  color: var(--mint-light);
  border-color: rgba(0, 212, 158, 0.25);
}

.portal-pagespeed-web-link:hover {
  background: var(--mint-primary);
  color: #070a0f;
  border-color: var(--mint-primary);
  transform: translateY(-1px);
}

.btn-refresh-speed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(0, 153, 112, 0.3);
  background: rgba(0, 153, 112, 0.08);
  color: var(--mint-deep);
  transition: var(--transition-smooth);
}

[data-theme="dark"] .btn-refresh-speed {
  background: rgba(0, 212, 158, 0.12);
  color: var(--mint-light);
  border-color: rgba(0, 212, 158, 0.3);
}

.btn-refresh-speed:hover {
  background: var(--mint-primary);
  color: #070a0f;
  border-color: var(--mint-primary);
  box-shadow: 0 2px 10px rgba(0, 212, 158, 0.3);
  transform: translateY(-1px);
}

.btn-refresh-speed:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.speed-spin-icon.is-spinning {
  animation: spinIcon 0.8s linear infinite;
}

/* PageSpeed Waiting Notice (1-2 minuten toelichting) */
.pagespeed-wait-notice {
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(0, 153, 112, 0.05);
  border: 1px dashed rgba(0, 153, 112, 0.22);
  border-radius: 8px;
  font-size: 0.77rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  transition: all 0.3s ease;
}

.pagespeed-wait-notice strong {
  color: var(--mint-deep);
  font-weight: 700;
}

[data-theme="dark"] .pagespeed-wait-notice {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .pagespeed-wait-notice strong {
  color: var(--mint-primary);
}

.pagespeed-wait-notice.is-measuring {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.35);
  border-style: solid;
  color: var(--text-headline);
}

.pagespeed-wait-notice.is-measuring svg {
  color: #f59e0b;
  animation: pulseNotice 1.5s ease-in-out infinite;
}

@keyframes pulseNotice {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}
.portal-progress-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .portal-progress-card {
  border-color: rgba(255, 255, 255, 0.08);
}

.portal-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.portal-progress-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-headline);
  margin: 0;
}

.portal-progress-counter {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--mint-deep);
}

[data-theme="dark"] .portal-progress-counter {
  color: var(--mint-light);
}

.portal-progress-track {
  width: 100%;
  height: 16px;
  background: var(--border-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 12px;
}

[data-theme="dark"] .portal-progress-track {
  background: rgba(255, 255, 255, 0.08);
}

.portal-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #00c993, #00e5ff);
  box-shadow: 0 0 16px rgba(0, 212, 158, 0.4);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Categorie Filters & Zoekbalk */
.portal-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.portal-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.portal-tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.portal-tab-btn:hover {
  background: var(--bg-panel);
  border-color: var(--border-subtle);
}

.portal-tab-btn.active {
  background: var(--mint-primary);
  color: #070a0f;
  border-color: var(--mint-primary);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 212, 158, 0.25);
}

/* ==========================================================================
   PORTAL FILTER CONSOLE & HIGH-TECH PRIORITY STRIP
   ========================================================================== */
.portal-filter-console {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg, 16px);
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

[data-theme="dark"] .portal-filter-console {
  background: rgba(13, 20, 32, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.portal-filter-console .portal-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
}

.portal-filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Priority Strip */
.portal-priority-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

[data-theme="dark"] .portal-priority-strip {
  border-top-color: rgba(255, 255, 255, 0.07);
}

.priority-strip-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  user-select: none;
  flex-shrink: 0;
}

.priority-pills-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Priority Filter Buttons */
.priority-filter-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 14px 6px 12px !important;
  border-radius: 9999px !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light) !important;
  color: var(--text-body) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  line-height: 1.2 !important;
  outline: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .priority-filter-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.priority-filter-btn:hover {
  transform: translateY(-1px) !important;
  background: var(--bg-panel) !important;
  border-color: var(--border-subtle) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="dark"] .priority-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Dots with glowing pulse */
.priority-filter-btn .priority-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-kritiek {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

.dot-hoog {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

.dot-gemiddeld {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
}

/* Badge counts inside buttons */
.prio-btn-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  line-height: 1;
}

[data-theme="dark"] .prio-btn-badge {
  background: rgba(255, 255, 255, 0.1);
}

/* Active State: Alle */
.priority-filter-btn.prio-btn-all.active {
  background: var(--mint-primary) !important;
  color: #070a0f !important;
  border-color: var(--mint-primary) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(0, 212, 158, 0.35) !important;
}
.priority-filter-btn.prio-btn-all.active .prio-btn-badge {
  background: rgba(7, 10, 15, 0.18) !important;
  color: #070a0f !important;
}

/* Active State: Kritiek */
.priority-filter-btn.prio-btn-kritiek.active {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #dc2626 !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444, 0 4px 14px rgba(239, 68, 68, 0.25) !important;
}
.priority-filter-btn.prio-btn-kritiek.active .prio-btn-badge {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #dc2626 !important;
}
[data-theme="dark"] .priority-filter-btn.prio-btn-kritiek.active {
  background: rgba(239, 68, 68, 0.22) !important;
  color: #fca5a5 !important;
  border-color: #f87171 !important;
  box-shadow: 0 0 0 1px #f87171, 0 4px 18px rgba(239, 68, 68, 0.4) !important;
}
[data-theme="dark"] .priority-filter-btn.prio-btn-kritiek.active .prio-btn-badge {
  background: rgba(239, 68, 68, 0.35) !important;
  color: #fef2f2 !important;
}

/* Active State: Hoog */
.priority-filter-btn.prio-btn-hoog.active {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #d97706 !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 1px #f59e0b, 0 4px 14px rgba(245, 158, 11, 0.25) !important;
}
.priority-filter-btn.prio-btn-hoog.active .prio-btn-badge {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #d97706 !important;
}
[data-theme="dark"] .priority-filter-btn.prio-btn-hoog.active {
  background: rgba(245, 158, 11, 0.22) !important;
  color: #fde68a !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 0 1px #fbbf24, 0 4px 18px rgba(245, 158, 11, 0.4) !important;
}
[data-theme="dark"] .priority-filter-btn.prio-btn-hoog.active .prio-btn-badge {
  background: rgba(245, 158, 11, 0.35) !important;
  color: #fffbeb !important;
}

/* Active State: Gemiddeld */
.priority-filter-btn.prio-btn-gemiddeld.active {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #2563eb !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 1px #3b82f6, 0 4px 14px rgba(59, 130, 246, 0.25) !important;
}
.priority-filter-btn.prio-btn-gemiddeld.active .prio-btn-badge {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #2563eb !important;
}
[data-theme="dark"] .priority-filter-btn.prio-btn-gemiddeld.active {
  background: rgba(59, 130, 246, 0.22) !important;
  color: #93c5fd !important;
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 1px #60a5fa, 0 4px 18px rgba(59, 130, 246, 0.4) !important;
}
[data-theme="dark"] .priority-filter-btn.prio-btn-gemiddeld.active .prio-btn-badge {
  background: rgba(59, 130, 246, 0.35) !important;
  color: #eff6ff !important;
}

.priority-strip-hint {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  opacity: 0.75;
}

/* ==========================================================================
   PORTAL SEARCH FILTER COMPONENT
   ========================================================================== */
.portal-search-box,
.clients-search-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  min-width: 260px;
  max-width: 360px;
  flex: 0 1 360px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}


[data-theme="dark"] .portal-search-box,
[data-theme="dark"] .clients-search-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.portal-search-box:hover,
.clients-search-box:hover {
  border-color: rgba(0, 212, 158, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .portal-search-box:hover,
[data-theme="dark"] .clients-search-box:hover {
  border-color: rgba(0, 212, 158, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.portal-search-box:focus-within,
.clients-search-box:focus-within {
  border-color: var(--mint-primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(0, 212, 158, 0.2), 0 6px 18px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .portal-search-box:focus-within,
[data-theme="dark"] .clients-search-box:focus-within {
  background: rgba(13, 20, 32, 0.95);
  border-color: var(--mint-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 158, 0.25), 0 6px 18px rgba(0, 0, 0, 0.4);
}

.portal-search-icon,
.clients-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.portal-search-box:focus-within .portal-search-icon,
.clients-search-box:focus-within .clients-search-icon {
  color: var(--mint-deep);
  transform: translateY(-50%) scale(1.1);
}

[data-theme="dark"] .portal-search-box:focus-within .portal-search-icon,
[data-theme="dark"] .clients-search-box:focus-within .clients-search-icon {
  color: var(--mint-primary);
}

.portal-search-input,
.clients-search-box input {
  width: 100%;
  height: 40px;
  padding: 0 42px 0 40px;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-headline);
  line-height: 40px;
  box-sizing: border-box;
}

.portal-search-input::placeholder,
.clients-search-box input::placeholder {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 400;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.portal-search-box:focus-within .portal-search-input::placeholder,
.clients-search-box:focus-within input::placeholder {
  opacity: 0.45;
}

.portal-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  padding: 0;
  transition: all 0.2s ease;
  z-index: 2;
}

[data-theme="dark"] .portal-search-clear {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-body);
}

.portal-search-clear:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  transform: translateY(-50%) scale(1.1);
}

.portal-search-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2;
}

[data-theme="dark"] .portal-search-badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

.portal-search-box.has-query .portal-search-badge {
  display: none !important;
}

.portal-search-box.has-query .portal-search-clear {
  display: flex !important;
}

/* Empty Search Results State */
.search-no-results {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
  margin: 20px 0 32px 0;
}

[data-theme="dark"] .search-no-results {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1);
}

.no-results-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  opacity: 0.8;
}

.no-results-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-headline);
  margin-bottom: 6px;
}

.no-results-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 16px auto;
  line-height: 1.5;
}

/* De 20 SEO & GEO Kaarten Grid & Accordion Sectors */
.checklist-category-section {
  margin-bottom: 32px;
  transition: margin-bottom 0.25s ease;
}

.checklist-category-section.is-collapsed {
  margin-bottom: 12px;
}

.category-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 22px;
  background: var(--bg-panel);
  border-radius: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--mint-primary);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.checklist-category-section.is-collapsed .category-section-header {
  margin-bottom: 0;
}

.category-section-header:hover {
  background: var(--bg-card);
  border-color: rgba(0, 212, 158, 0.35);
  border-left-color: var(--mint-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .category-section-header {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  border-left-color: var(--mint-primary);
}

[data-theme="dark"] .category-section-header:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 212, 158, 0.4);
  border-left-color: var(--mint-hover);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.category-section-header:focus-visible {
  outline: 2px solid var(--mint-primary);
  outline-offset: 2px;
}

.category-header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.category-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.category-title,
.category-section-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-headline);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.category-description,
.category-section-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  font-weight: 400;
}

[data-theme="dark"] .category-description,
[data-theme="dark"] .category-section-desc {
  color: rgba(255, 255, 255, 0.65);
}

.category-progress-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--bg-card);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

[data-theme="dark"] .category-progress-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.category-progress-pill.is-all-done {
  background: rgba(0, 212, 158, 0.12);
  color: var(--mint-deep);
  border-color: rgba(0, 212, 158, 0.3);
  font-weight: 700;
}

[data-theme="dark"] .category-progress-pill.is-all-done {
  color: var(--mint-primary);
}

.category-toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

[data-theme="dark"] .category-toggle-icon {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.category-section-header:hover .category-toggle-icon {
  color: var(--mint-deep);
  border-color: var(--mint-primary);
}

[data-theme="dark"] .category-section-header:hover .category-toggle-icon {
  color: var(--mint-primary);
}

/* Expanded state (when not .is-collapsed) */
.checklist-category-section:not(.is-collapsed) .category-toggle-icon {
  transform: rotate(180deg);
  background: var(--mint-primary);
  color: #070a0f;
  border-color: var(--mint-primary);
}

/* Collapsed state hides grid */
.checklist-category-section.is-collapsed .checklist-cards-grid {
  display: none;
}

.checklist-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .checklist-cards-grid {
    grid-template-columns: 1fr;
  }
}

.checklist-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
}

[data-theme="dark"] .checklist-card {
  background: rgba(13, 19, 29, 0.85);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .checklist-card:hover {
  border-color: rgba(0, 212, 158, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 158, 0.15);
}

/* Completed Card: Subtiele zachte salie/mint tint + strakke groene accentstreep links */
.checklist-card.is-completed {
  border-color: #d1fae5 !important;
  border-left: 4px solid #10b981 !important;
  background: #f4fbf7 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.04);
  opacity: 0.96;
}

[data-theme="dark"] .checklist-card.is-completed {
  border-color: rgba(16, 185, 129, 0.22) !important;
  border-left: 4px solid #00d49e !important;
  background: rgba(16, 185, 129, 0.045) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.checklist-card.is-completed:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.09);
}

[data-theme="dark"] .checklist-card.is-completed:hover {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.checklist-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.checklist-item-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-panel);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.checklist-card.is-completed .checklist-item-num {
  background: rgba(16, 185, 129, 0.08);
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .checklist-card.is-completed .checklist-item-num {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.25);
}

/* Priority Badges (Kritiek, Hoog, Gemiddeld) */
.priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  user-select: none;
  line-height: 1.2;
}

.priority-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* Kritiek: Rood */
.priority-kritiek {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.28);
}
.priority-kritiek .priority-dot {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}
[data-theme="dark"] .priority-kritiek {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}
[data-theme="dark"] .priority-kritiek .priority-dot {
  background: #f87171;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.8);
}

/* Hoog: Oranje / Amber */
.priority-hoog {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.28);
}
.priority-hoog .priority-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}
[data-theme="dark"] .priority-hoog {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}
[data-theme="dark"] .priority-hoog .priority-dot {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.8);
}

/* Gemiddeld: Blauw / Slate */
.priority-gemiddeld {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border-color: rgba(59, 130, 246, 0.28);
}
.priority-gemiddeld .priority-dot {
  background: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
}
[data-theme="dark"] .priority-gemiddeld {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}
[data-theme="dark"] .priority-gemiddeld .priority-dot {
  background: #60a5fa;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.8);
}

.status-badge-portal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  background: transparent;
}

.status-badge-portal:focus-visible {
  outline: 2px solid var(--mint-primary);
  outline-offset: 2px;
}

.status-completed {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .status-completed {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
}

.status-completed:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

[data-theme="dark"] .status-completed:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.18);
}

.status-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.35);
}

[data-theme="dark"] .status-pending {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}

.status-pending:hover {
  background: rgba(16, 185, 129, 0.2);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .status-pending:hover {
  color: #34d399;
  background: rgba(16, 185, 129, 0.25);
}

.status-badge-portal.is-updating {
  opacity: 0.5;
  pointer-events: none;
  transform: scale(0.95);
}

/* Toast popup notification */
.portal-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--mint-primary);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-float);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-headline);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

[data-theme="dark"] .portal-toast {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.portal-toast.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.checklist-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-headline);
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.checklist-card-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.55;
  margin: 0 0 10px 0;
}

/* Officiële Richtlijn / Tool knop per checklist-kaart (Neutraal & Strak) */
.checklist-ext-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  transition: var(--transition-smooth);
}

[data-theme="dark"] .checklist-ext-tool-link {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.12);
}

.checklist-ext-tool-link:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .checklist-ext-tool-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Advies / Notitie box van SVB Cyber Advisory (Professioneel Blauw Accent) */
.consultant-notes-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 3px solid #3b82f6;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 14px;
}

[data-theme="dark"] .consultant-notes-box {
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-left: 3px solid #60a5fa;
}

.consultant-notes-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #1d4ed8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.consultant-notes-head svg {
  color: #2563eb;
}

[data-theme="dark"] .consultant-notes-head {
  color: #93c5fd;
}

[data-theme="dark"] .consultant-notes-head svg {
  color: #60a5fa;
}

.consultant-notes-content {
  font-size: 0.85rem;
  color: #1e293b;
  line-height: 1.5;
}

[data-theme="dark"] .consultant-notes-content {
  color: #e2e8f0;
}

/* ==========================================================================
   ACTIEPUNTEN BULLET POINTS STYLING (PER CHECKLIST KAART - Neutraal Leisteen)
   ========================================================================== */
.checklist-action-bullets {
  margin: 14px 0;
  padding: 13px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #94a3b8;
  border-radius: 10px;
}

[data-theme="dark"] .checklist-action-bullets {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  border-left-color: #64748b;
}

.checklist-action-bullets-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.checklist-action-bullets-title svg {
  color: #64748b;
}

[data-theme="dark"] .checklist-action-bullets-title {
  color: #cbd5e1;
}

[data-theme="dark"] .checklist-action-bullets-title svg {
  color: #94a3b8;
}

.checklist-bullet-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-body);
}

.checklist-bullet-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.6em;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: none;
}

[data-theme="dark"] .checklist-bullet-list li::before {
  background: #64748b;
  box-shadow: none;
}

/* ==========================================================================
   SOCIAL MEDIA AUDIT & ENTITEITSVERIFICATIE WIDGET
   ========================================================================== */
.portal-social-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .portal-social-section {
  border-color: rgba(255, 255, 255, 0.08);
}

.portal-social-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.portal-social-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-headline);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-social-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.social-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-social-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-light);
  background: var(--bg-panel);
  color: var(--text-headline);
}

.btn-social-action:hover {
  background: var(--bg-card);
  border-color: var(--mint-primary);
  color: var(--mint-deep);
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-social-action:hover {
  color: var(--mint-primary);
}

.social-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 992px) {
  .social-channels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .social-channels-grid {
    grid-template-columns: 1fr;
  }
}

.social-channel-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-channel-card:hover {
  border-color: rgba(0, 212, 158, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

[data-theme="dark"] .social-channel-card {
  background: rgba(13, 19, 29, 0.80);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.40);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .social-channel-card:hover {
  border-color: rgba(0, 212, 158, 0.45);
  background: rgba(17, 26, 40, 0.92);
  box-shadow: 0 8px 25px rgba(0, 212, 158, 0.15);
  transform: translateY(-2px);
}

.social-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .social-icon-box {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.social-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-headline);
}

.social-type {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.social-badge.is-connected {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

[data-theme="dark"] .social-badge.is-connected {
  color: #34d399;
}

.social-badge.is-missing {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

[data-theme="dark"] .social-badge.is-missing {
  color: #fbbf24;
}

.social-card-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
}

.social-card-action-link.btn-view {
  background: rgba(0, 153, 112, 0.08);
  color: var(--mint-deep);
  border: 1px solid rgba(0, 153, 112, 0.22);
}

[data-theme="dark"] .social-card-action-link.btn-view {
  color: var(--mint-light);
  border-color: rgba(0, 212, 158, 0.25);
}

.social-card-action-link.btn-view:hover {
  background: var(--mint-primary);
  color: #070a0f;
  border-color: var(--mint-primary);
}

.social-card-action-link.btn-create {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
  border: 1px dashed rgba(245, 158, 11, 0.4);
}

[data-theme="dark"] .social-card-action-link.btn-create {
  color: #fbbf24;
}

.social-card-action-link.btn-create:hover {
  background: #f59e0b;
  color: #070a0f;
  border-color: #f59e0b;
}

/* Direct Social Card Link Management */
.social-card-bottom-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.btn-manage-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-manage-social-link:hover {
  color: var(--mint-deep);
  border-color: rgba(0, 212, 158, 0.45);
  background: rgba(0, 212, 158, 0.08);
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-manage-social-link {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .btn-manage-social-link:hover {
  color: var(--mint-light);
  border-color: rgba(0, 212, 158, 0.45);
  background: rgba(0, 212, 158, 0.12);
}

.social-inline-edit-box {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: socialInlineFadeIn 0.2s ease-out;
}

[data-theme="dark"] .social-inline-edit-box {
  background: rgba(20, 27, 40, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

@keyframes socialInlineFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.social-inline-field-label {
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: block;
}

.social-inline-input-row {
  width: 100%;
}

.social-inline-input {
  width: 100%;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-family: inherit;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-headline);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.social-inline-input:focus {
  border-color: var(--mint-primary);
  box-shadow: 0 0 0 2px rgba(0, 212, 158, 0.2);
}

[data-theme="dark"] .social-inline-input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
}

.social-inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn-inline-cancel {
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 5px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-inline-cancel:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-headline);
}

[data-theme="dark"] .btn-inline-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-inline-save {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: 5px;
  border: none;
  background: var(--mint-primary);
  color: #070a0f;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-inline-save:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-inline-save:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Quick Edit Drawer */
.social-edit-drawer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.social-edit-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 22px;
  margin-bottom: 18px;
}

.social-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.social-input-label {
  font-family: var(--font-sans, system-ui);
  font-size: 0.80rem;
  font-weight: 700;
  color: var(--text-headline);
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-pill, 9999px);
  padding: 6px 16px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.social-input-bar:focus-within {
  background: #ffffff;
  border-color: var(--mint-primary, #00d49e);
  box-shadow: 0 0 0 3px var(--mint-subtle, rgba(0, 212, 158, 0.15)), 0 4px 16px rgba(0, 212, 158, 0.10);
}

[data-theme="dark"] .social-input-bar {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .social-input-bar:focus-within {
  background: rgba(13, 19, 29, 0.95);
  border-color: var(--mint-primary, #00e5a3);
  box-shadow: 0 0 0 3px var(--mint-subtle, rgba(0, 212, 158, 0.20)), 0 4px 20px rgba(0, 212, 158, 0.15);
}

.social-input-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
}

.social-input-field {
  width: 100%;
  border: none !important;
  background: transparent !important;
  color: var(--text-headline, #0b111c) !important;
  font-family: var(--font-sans, system-ui) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  padding: 4px 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.social-input-field::placeholder {
  color: var(--text-muted, #94a3b8);
  font-family: var(--font-sans, system-ui);
  opacity: 0.8;
}

@media (max-width: 768px) {
  .social-edit-form-grid {
    grid-template-columns: 1fr;
  }

  .portal-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .portal-search-box,
  .clients-search-box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    flex: none !important;
  }

  .category-section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .category-header-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   FACEBOOK POST STUDIO // META GRAPH API COMPOSER & LIVE FEED MOCKUP
   ========================================================================== */
.fb-studio-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--mint-primary, #00d49e);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

[data-theme="dark"] .fb-studio-section {
  border-color: rgba(255, 255, 255, 0.08);
  border-left-color: var(--mint-primary, #00d49e);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.fb-studio-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

[data-theme="dark"] .fb-studio-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.fb-studio-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-headline);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px 0;
}

.fb-studio-title svg {
  flex-shrink: 0;
}

.fb-studio-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 680px;
}

.fb-studio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  margin-top: 22px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .fb-studio-grid {
    grid-template-columns: 1fr;
  }
  .fb-mockup-wrap {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
    padding-right: 0 !important;
  }
}

/* Composer linkerkolom */
.fb-composer-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fb-composer-subhead {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
}

.fb-quick-templates-select {
  width: 100%;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-family: var(--font-sans);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fb-quick-templates-select:focus {
  border-color: #1877f2;
}

.fb-chips-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.fb-chip-pill {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-pill, 9999px);
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-headline, #0b111c);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  user-select: none;
}

.fb-chip-pill:hover {
  border-color: var(--mint-primary, #00d49e);
  background: #ffffff;
  color: var(--text-headline, #0b111c);
  box-shadow: 0 4px 14px var(--mint-subtle, rgba(0, 212, 158, 0.15));
  transform: translateY(-1px);
}

.fb-chip-pill.is-active {
  background: #ffffff;
  border-color: var(--mint-primary, #00d49e);
  color: var(--mint-deep, #009970);
  font-weight: 800;
  box-shadow: 0 2px 8px var(--mint-subtle, rgba(0, 212, 158, 0.18));
}

[data-theme="dark"] .fb-chip-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.11);
  color: #cbd5e1;
}

[data-theme="dark"] .fb-chip-pill:hover {
  border-color: var(--mint-primary, #00e5a3);
  background: rgba(0, 212, 158, 0.10);
  color: #ffffff;
}

[data-theme="dark"] .fb-chip-pill.is-active {
  background: rgba(0, 212, 158, 0.18);
  border-color: var(--mint-primary, #00e5a3);
  color: var(--mint-light, #5eead4);
  box-shadow: 0 2px 10px rgba(0, 212, 158, 0.25);
}

.fb-chip-text {
  background: transparent;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  padding: 5px 8px 5px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.fb-chip-text:hover {
  color: var(--mint-deep, #009970);
}

[data-theme="dark"] .fb-chip-text:hover {
  color: var(--mint-light, #5eead4);
}

.fb-chip-del {
  background: transparent;
  border: none;
  border-left: 1px solid var(--border-light, #e2e8f0);
  color: var(--text-muted, #94a3b8);
  font-size: 1rem;
  line-height: 1;
  padding: 5px 9px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .fb-chip-del {
  border-left-color: rgba(255, 255, 255, 0.1);
}

.fb-chip-pill:hover .fb-chip-del {
  border-left-color: var(--border-subtle, rgba(0, 212, 158, 0.3));
}

.fb-chip-del:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

/* Geïntegreerde Hashtag Invoerbalk - Perfect gealigneerd met SVB Cyber Advisory */
.fb-add-hashtag-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-pill, 9999px);
  padding: 4px 5px 4px 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.fb-add-hashtag-bar:focus-within {
  background: #ffffff;
  border-color: var(--mint-primary, #00d49e);
  box-shadow: 0 0 0 3px var(--mint-subtle, rgba(0, 212, 158, 0.15)), 0 4px 16px rgba(0, 212, 158, 0.10);
}

[data-theme="dark"] .fb-add-hashtag-bar {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .fb-add-hashtag-bar:focus-within {
  background: rgba(13, 19, 29, 0.95);
  border-color: var(--mint-primary, #00e5a3);
  box-shadow: 0 0 0 3px var(--mint-subtle, rgba(0, 212, 158, 0.20)), 0 4px 20px rgba(0, 212, 158, 0.15);
}

.fb-add-hashtag-input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 5px;
  min-width: 0;
}

.fb-hashtag-prefix {
  font-family: var(--font-mono, monospace);
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--mint-deep, #009970);
  flex-shrink: 0;
  user-select: none;
  transition: color 0.2s ease;
}

.fb-add-hashtag-bar:focus-within .fb-hashtag-prefix {
  color: var(--mint-primary, #00d49e);
}

.fb-add-hashtag-field {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-headline, #0b111c);
  font-family: var(--font-sans, system-ui);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 0;
  outline: none;
}

.fb-add-hashtag-field::placeholder {
  color: var(--text-muted, #94a3b8);
  font-family: var(--font-sans, system-ui);
  font-size: 0.80rem;
  font-weight: 400;
}

.fb-btn-add-hashtag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gradient-mint, linear-gradient(135deg, #00f0b5 0%, #00c993 100%));
  color: #04241b;
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 7px 16px;
  border: none;
  border-radius: var(--radius-pill, 9999px);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 212, 158, 0.28);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fb-btn-add-hashtag:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 212, 158, 0.45);
  filter: brightness(1.05);
}

.fb-btn-add-hashtag:active {
  transform: translateY(0) scale(0.98);
}

/* ==========================================================================
   WEBLINK INVOERBALK - IDENTIEK GESTYLED AAN DE HASHTAG INVOERBALK
   ========================================================================== */
.fb-weblink-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-pill, 9999px);
  padding: 4px 5px 4px 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.fb-weblink-bar:focus-within {
  background: #ffffff;
  border-color: var(--mint-primary, #00d49e);
  box-shadow: 0 0 0 3px var(--mint-subtle, rgba(0, 212, 158, 0.15)), 0 4px 16px rgba(0, 212, 158, 0.10);
}

[data-theme="dark"] .fb-weblink-bar {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .fb-weblink-bar:focus-within {
  background: rgba(13, 19, 29, 0.95);
  border-color: var(--mint-primary, #00e5a3);
  box-shadow: 0 0 0 3px var(--mint-subtle, rgba(0, 212, 158, 0.20)), 0 4px 20px rgba(0, 212, 158, 0.15);
}

.fb-weblink-input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  min-width: 0;
}

.fb-weblink-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mint-deep, #009970);
  flex-shrink: 0;
  user-select: none;
  transition: color 0.2s ease;
}

.fb-weblink-bar:focus-within .fb-weblink-prefix {
  color: var(--mint-primary, #00d49e);
}

.fb-weblink-field {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-headline, #0b111c);
  font-family: var(--font-sans, system-ui);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 0;
  outline: none;
}

.fb-weblink-field::placeholder {
  color: var(--text-muted, #94a3b8);
  font-family: var(--font-sans, system-ui);
  font-size: 0.82rem;
  font-weight: 400;
}

[data-theme="dark"] .fb-weblink-field {
  color: #f1f5f9;
}

.fb-btn-weblink-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gradient-mint, linear-gradient(135deg, #00f0b5 0%, #00c993 100%));
  color: #04241b;
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 7px 16px;
  border: none;
  border-radius: var(--radius-pill, 9999px);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 212, 158, 0.28);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fb-btn-weblink-open:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 212, 158, 0.45);
  filter: brightness(1.05);
  color: #04241b;
}

.fb-btn-weblink-open:active {
  transform: translateY(0) scale(0.98);
}

.fb-textarea-container {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px 16px 10px 16px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02), 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .fb-textarea-container {
  background: #090e17;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
}

.fb-textarea-container:focus-within {
  background: #ffffff;
  border-color: var(--mint-primary, #00d49e);
  box-shadow: 0 0 0 3px var(--mint-subtle, rgba(0, 212, 158, 0.16)), 0 4px 18px rgba(0, 212, 158, 0.10);
}

[data-theme="dark"] .fb-textarea-container:focus-within {
  background: #0b111c;
  border-color: var(--mint-primary, #00e5a3);
  box-shadow: 0 0 0 3px var(--mint-subtle, rgba(0, 212, 158, 0.22)), 0 4px 20px rgba(0, 212, 158, 0.15);
}

.fb-post-textarea {
  width: 100%;
  min-height: 125px;
  border: none;
  background: transparent;
  color: var(--text-headline, #0b111c);
  font-family: var(--font-sans, system-ui);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.6;
  resize: vertical;
  outline: none;
}

[data-theme="dark"] .fb-post-textarea {
  color: #f8fafc;
}

.fb-post-textarea::placeholder {
  color: var(--text-muted, #94a3b8);
  font-weight: 400;
}

/* =========================================================================
   TEXTAREA TOOLBAR & SNELLE EMOJI BALK
   ========================================================================= */
.fb-textarea-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 0.78rem;
  color: var(--text-muted);
}

[data-theme="dark"] .fb-textarea-toolbar {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.fb-emoji-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.fb-emoji-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}

.fb-emoji-scroll-track {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  padding: 2px 2px 3px 2px;
  flex: 1;
  min-width: 0;
}

.fb-emoji-scroll-track::-webkit-scrollbar {
  display: none;
}

/* Fallback voor containers zonder scroll track wrapper */
.fb-emoji-group:not(:has(.fb-emoji-scroll-track)) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  padding: 2px 2px 3px 2px;
}
.fb-emoji-group:not(:has(.fb-emoji-scroll-track))::-webkit-scrollbar {
  display: none;
}

.fb-emoji-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 34px;
  min-block-size: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 9px;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.fb-emoji-btn:hover {
  background: rgba(0, 212, 158, 0.12);
  border-color: var(--mint-primary, #00d49e);
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 3px 8px rgba(0, 212, 158, 0.20);
}

.fb-emoji-btn:active {
  transform: scale(0.92);
  background: rgba(0, 212, 158, 0.22);
}

.fb-emoji-btn:focus-visible {
  outline: 2px solid var(--mint-primary, #00d49e);
  outline-offset: 2px;
}

.fb-char-counter-wrap {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

[data-theme="dark"] .fb-emoji-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .fb-emoji-btn:hover {
  background: rgba(0, 212, 158, 0.20);
  border-color: var(--mint-primary, #00d49e);
  box-shadow: 0 3px 10px rgba(0, 212, 158, 0.35);
}

[data-theme="dark"] .fb-emoji-btn:active {
  background: rgba(0, 212, 158, 0.30);
  transform: scale(0.92);
}

@media (pointer: coarse) {
  .fb-emoji-btn {
    min-inline-size: 38px;
    min-block-size: 38px;
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }
}

/* =========================================================================
   GEOTAGGING / PLACE SEARCH RESULTS
   ========================================================================= */
#placeSearchResults {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-light, #cbd5e1);
  border-radius: 10px;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.16);
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

[data-theme="dark"] #placeSearchResults {
  background: #111a2e !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
}

.place-result-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s ease;
}

.place-result-item:last-child {
  border-bottom: none;
}

.place-result-item:hover,
.place-result-item.is-active-nav {
  background: var(--bg-card, #f1f5f9) !important;
}

[data-theme="dark"] .place-result-item {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .place-result-item:hover,
[data-theme="dark"] .place-result-item.is-active-nav {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Post Styler & Engagement Meter Dark Mode */
[data-theme="dark"] .fb-styler-toolbar {
  background: #0d1422 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .fb-styler-label {
  color: #94a3b8 !important;
}

[data-theme="dark"] .fb-styler-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
}

[data-theme="dark"] .fb-styler-btn strong,
[data-theme="dark"] .fb-styler-btn em,
[data-theme="dark"] .fb-styler-btn span {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .fb-styler-btn:hover {
  background: rgba(0, 212, 158, 0.18) !important;
  border-color: var(--mint-primary, #00d49e) !important;
  color: #00f0b5 !important;
  transform: translateY(-1px);
}

[data-theme="dark"] .fb-styler-btn:hover strong,
[data-theme="dark"] .fb-styler-btn:hover em,
[data-theme="dark"] .fb-styler-btn:hover span {
  color: #00f0b5 !important;
}

[data-theme="dark"] .fb-styler-btn.is-reset {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px dashed rgba(255, 255, 255, 0.14) !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .fb-styler-btn.is-reset span {
  color: #94a3b8 !important;
}

[data-theme="dark"] .fb-styler-btn.is-reset:hover {
  background: rgba(239, 68, 68, 0.16) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
}

[data-theme="dark"] .fb-styler-btn.is-reset:hover span {
  color: #fca5a5 !important;
}

[data-theme="dark"] .fb-engagement-meter-wrap {
  background: rgba(10, 15, 24, 0.90) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .fb-meter-badge,
[data-theme="dark"] .fb-meter-badge.is-initial {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .fb-meter-badge.is-optimal {
  background: rgba(16, 185, 129, 0.20) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.40) !important;
}

[data-theme="dark"] .fb-meter-badge.is-long {
  background: rgba(59, 130, 246, 0.20) !important;
  color: #60a5fa !important;
  border-color: rgba(59, 130, 246, 0.40) !important;
}

[data-theme="dark"] .fb-meter-badge.is-warn {
  background: rgba(245, 158, 11, 0.20) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.40) !important;
}

[data-theme="dark"] .fb-meter-badge.is-error {
  background: rgba(239, 68, 68, 0.20) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.40) !important;
}

[data-theme="dark"] .fb-meter-hint {
  color: #94a3b8 !important;
}

[data-theme="dark"] .fb-meter-char-pill,
[data-theme="dark"] .fb-meter-hashtag-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .fb-meter-char-pill span,
[data-theme="dark"] .fb-meter-hashtag-pill span {
  color: #ffffff !important;
}

[data-theme="dark"] .fb-meter-char-max {
  color: #64748b !important;
}

[data-theme="dark"] .fb-meter-hashtag-pill.is-optimal {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: #34d399 !important;
}

[data-theme="dark"] .fb-meter-hashtag-pill.is-optimal span {
  color: #34d399 !important;
}

[data-theme="dark"] .fb-meter-hashtag-pill.is-warn {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #fbbf24 !important;
}

[data-theme="dark"] .fb-meter-hashtag-pill.is-warn span {
  color: #fbbf24 !important;
}

[data-theme="dark"] .fb-engagement-progress-track {
  background: rgba(255, 255, 255, 0.10) !important;
}

[data-theme="dark"] .fb-engagement-marker {
  background: rgba(255, 255, 255, 0.35) !important;
}

[data-theme="dark"] .fb-engagement-subinfo {
  color: #94a3b8 !important;
}

[data-theme="dark"] #fbPostQualityHint {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  color: #94a3b8 !important;
}


/* Dropzone voor Foto */
.fb-dropzone {
  border: 2px dashed var(--border-light);
  border-radius: 10px;
  padding: 14px 18px;
  text-align: center;
  background: var(--bg-panel);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.fb-dropzone:hover,
.fb-dropzone.dragover {
  border-color: var(--mint-primary, #00d49e);
  background: rgba(0, 212, 158, 0.05);
}

.fb-dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.fb-preview-image-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.fb-preview-image-wrap img {
  max-height: 180px;
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.fb-btn-remove-img {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.fb-btn-remove-img:hover {
  background: #ef4444;
  transform: scale(1.1);
}

/* =========================================================================
   FB POST SCHEDULING & ARCHIVE STATUS
   ========================================================================= */

/* Modus Selector: Nu Live vs Inplannen */
.fb-schedule-mode-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-panel, #f1f5f9);
  border: 1px solid var(--border-light, #cbd5e1);
  border-radius: var(--radius-pill, 9999px);
  padding: 4px;
  gap: 4px;
  margin-top: 10px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .fb-schedule-mode-toggle {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.fb-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-pill, 9999px);
  border: none;
  background: transparent;
  color: var(--text-muted, #64748b);
  font-family: var(--font-sans, system-ui);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.fb-mode-btn:hover:not(.is-active) {
  color: var(--text-headline, #0f172a);
}

[data-theme="dark"] .fb-mode-btn:hover:not(.is-active) {
  color: #ffffff;
}

.fb-mode-btn.is-active {
  background: #ffffff;
  color: var(--text-headline, #0f172a);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .fb-mode-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.fb-mode-btn.is-active[data-mode="now"] {
  color: #059669;
}

.fb-mode-btn.is-active[data-mode="schedule"] {
  color: #059669;
}

[data-theme="dark"] .fb-mode-btn.is-active[data-mode="now"] {
  color: #34d399;
}

[data-theme="dark"] .fb-mode-btn.is-active[data-mode="schedule"] {
  color: #34d399;
}

/* Scheduler Box Container */
.fb-schedule-box {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #cbd5e1);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  animation: fbFadeSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .fb-schedule-box {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

@keyframes fbFadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fb-schedule-label {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-headline, #0f172a);
  margin-bottom: 8px;
}

/* DateTime Input Bar - Pill matching .fb-weblink-bar */
.fb-schedule-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-pill, 9999px);
  padding: 4px 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.fb-schedule-bar:focus-within {
  background: #ffffff;
  border-color: var(--mint-primary, #00d49e);
  box-shadow: 0 0 0 3px var(--mint-subtle, rgba(0, 212, 158, 0.15)), 0 4px 16px rgba(0, 212, 158, 0.10);
}

[data-theme="dark"] .fb-schedule-bar {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .fb-schedule-bar:focus-within {
  background: rgba(13, 19, 29, 0.95);
  border-color: var(--mint-primary, #00e5a3);
  box-shadow: 0 0 0 3px var(--mint-subtle, rgba(0, 212, 158, 0.20)), 0 4px 20px rgba(0, 212, 158, 0.15);
}

.fb-schedule-input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 10px;
  min-width: 0;
}

.fb-schedule-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mint-deep, #009970);
  flex-shrink: 0;
  user-select: none;
}

.fb-schedule-bar:focus-within .fb-schedule-prefix {
  color: var(--mint-primary, #00d49e);
}

.fb-schedule-field {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-headline, #0b111c);
  font-family: var(--font-sans, system-ui);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 0;
  outline: none;
  color-scheme: light dark;
}

[data-theme="dark"] .fb-schedule-field {
  color: #f1f5f9;
}

/* Verberg de onduidelijke native browser indicator zodat onze knop de centrale trigger is */
.fb-schedule-field::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 0;
  height: 0;
  display: none !important;
  -webkit-appearance: none;
}

/* Prominente knop om direct de Visuele Marketingkalender te openen vanuit de datumkiezer */
.fb-btn-open-marketing-cal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--mint-subtle, rgba(0, 212, 158, 0.12));
  color: var(--mint-deep, #009970);
  border: 1px solid rgba(0, 212, 158, 0.35);
  border-radius: var(--radius-pill, 9999px);
  padding: 6px 14px;
  font-family: var(--font-sans, system-ui);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.fb-btn-open-marketing-cal:hover {
  background: var(--mint-primary, #00d49e);
  color: #022c22;
  border-color: var(--mint-primary, #00d49e);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 212, 158, 0.35);
}

[data-theme="dark"] .fb-btn-open-marketing-cal {
  background: rgba(0, 212, 158, 0.16);
  color: #00e5a3;
  border-color: rgba(0, 212, 158, 0.35);
}

[data-theme="dark"] .fb-btn-open-marketing-cal:hover {
  background: #00e5a3;
  color: #022c22;
}

/* ==========================================================================
   EVERGREEN / RECURRING POST PANEL & CONTROLS
   ========================================================================== */
.fb-recurring-panel {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fb-recurring-panel:hover {
  border-color: rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .fb-recurring-panel {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.fb-recurring-title-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: #065f46;
  transition: color 0.15s ease;
}

[data-theme="dark"] .fb-recurring-title-label {
  color: #34d399;
}

.fb-recurring-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #059669;
  cursor: pointer;
  border-radius: 4px;
  margin: 0;
  flex-shrink: 0;
}

.fb-recurring-title-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fb-recurring-badge {
  font-size: 0.74rem;
  font-weight: 600;
  opacity: 0.85;
  color: #047857;
}

[data-theme="dark"] .fb-recurring-badge {
  color: #6ee7b7;
}

.fb-recurring-options {
  animation: fbFadeSlideDown 0.22s ease-out;
}

@keyframes fbFadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fb-recurring-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(16, 185, 129, 0.25);
}

@media (max-width: 600px) {
  .fb-recurring-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.fb-recurring-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fb-recurring-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #047857;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

[data-theme="dark"] .fb-recurring-label {
  color: #6ee7b7;
}

/* Unified Modern Input & Select Controls for Recurring Panel */
.fb-recurring-select,
.fb-recurring-date {
  width: 100%;
  height: 42px;
  background-color: #ffffff !important;
  color: var(--text-headline, #0f172a);
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0 14px;
  outline: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.fb-recurring-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  cursor: pointer;
}

.fb-recurring-date {
  color-scheme: light dark;
  cursor: pointer;
  padding-right: 12px;
  -webkit-appearance: none;
}

.fb-recurring-select:hover,
.fb-recurring-date:hover {
  border-color: #059669;
}

.fb-recurring-select:focus,
.fb-recurring-select:focus-visible,
.fb-recurring-date:focus,
.fb-recurring-date:focus-within,
.fb-recurring-date:focus-visible {
  outline: none !important;
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18), 0 2px 6px rgba(16, 185, 129, 0.10) !important;
  background-color: #ffffff !important;
}

[data-theme="dark"] .fb-recurring-select,
[data-theme="dark"] .fb-recurring-date {
  background-color: #0d1422 !important;
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .fb-recurring-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="dark"] .fb-recurring-select:hover,
[data-theme="dark"] .fb-recurring-date:hover {
  border-color: #34d399;
}

[data-theme="dark"] .fb-recurring-select:focus,
[data-theme="dark"] .fb-recurring-select:focus-visible,
[data-theme="dark"] .fb-recurring-date:focus,
[data-theme="dark"] .fb-recurring-date:focus-within,
[data-theme="dark"] .fb-recurring-date:focus-visible {
  border-color: #34d399 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.28), 0 2px 8px rgba(16, 185, 129, 0.15) !important;
  background-color: #111a2d !important;
}

.fb-recurring-select option {
  background-color: #ffffff;
  color: #0f172a;
  padding: 8px 12px;
}

[data-theme="dark"] .fb-recurring-select option {
  background-color: #0d1422;
  color: #f1f5f9;
}

.fb-recurring-date::-webkit-inner-spin-button {
  display: none;
  -webkit-appearance: none;
}

.fb-recurring-date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.15s ease;
  filter: invert(35%) sepia(85%) saturate(550%) hue-rotate(125deg);
}

[data-theme="dark"] .fb-recurring-date::-webkit-calendar-picker-indicator {
  filter: invert(70%) sepia(80%) saturate(400%) hue-rotate(110deg);
}

.fb-recurring-date::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  background-color: rgba(16, 185, 129, 0.12);
}

.fb-recurring-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.75rem;
  color: #047857;
  margin-top: 12px;
  line-height: 1.45;
  font-weight: 500;
  background: rgba(16, 185, 129, 0.08);
  padding: 8px 12px;
  border-radius: 8px;
}

.fb-recurring-hint-icon {
  flex-shrink: 0;
  font-size: 0.85rem;
  line-height: 1.2;
}

[data-theme="dark"] .fb-recurring-hint {
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
}

/* ==========================================================================
   EDITING SCHEDULED POST BANNER & CONTROLS
   ========================================================================== */
.fb-editing-post-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.08);
  animation: fbFadeSlideDown 0.22s ease-out;
}

[data-theme="dark"] .fb-editing-post-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(180, 83, 9, 0.12));
  border-color: rgba(245, 158, 11, 0.45);
}

.fb-editing-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.fb-editing-banner-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.fb-editing-banner-text {
  flex: 1;
  min-width: 0;
}

.fb-editing-banner-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #92400e;
}

[data-theme="dark"] .fb-editing-banner-title {
  color: #fde68a;
}

.fb-editing-banner-sub {
  font-size: 0.74rem;
  color: #b45309;
  margin-top: 2px;
  line-height: 1.4;
}

[data-theme="dark"] .fb-editing-banner-sub {
  color: #fcd34d;
}

.fb-btn-cancel-edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.10);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.fb-btn-cancel-edit:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}



.fb-calendar-container.is-picking-date {
  border-color: var(--mint-primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 212, 158, 0.25), 0 8px 24px rgba(0, 212, 158, 0.15) !important;
  animation: fbCalPulse 1.5s ease-in-out infinite alternate;
}

@keyframes fbCalPulse {
  0% { box-shadow: 0 0 0 2px rgba(0, 212, 158, 0.2), 0 4px 16px rgba(0, 0, 0, 0.05); }
  100% { box-shadow: 0 0 0 5px rgba(0, 212, 158, 0.4), 0 8px 28px rgba(0, 212, 158, 0.2); }
}

.fb-cal-day.is-selected-date {
  border-color: #00d49e !important;
  background: rgba(0, 212, 158, 0.14) !important;
  box-shadow: 0 0 0 2px #00d49e !important;
}

/* Quick Chips */
.fb-schedule-quick-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.fb-schedule-chip-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  margin-right: 2px;
}

.fb-schedule-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill, 9999px);
  border: 1px solid var(--border-light, #e2e8f0);
  background: var(--bg-panel, #f8fafc);
  color: var(--text-body, #334155);
  font-family: var(--font-sans, system-ui);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fb-schedule-chip:hover {
  background: var(--mint-subtle, rgba(0, 212, 158, 0.12));
  color: var(--mint-deep, #007a59);
  border-color: var(--mint-primary, #00d49e);
  transform: translateY(-1px);
}

[data-theme="dark"] .fb-schedule-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

[data-theme="dark"] .fb-schedule-chip:hover {
  background: rgba(0, 212, 158, 0.18);
  color: #00f0b5;
  border-color: #00d49e;
}

.fb-schedule-hint {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-muted, #64748b);
  line-height: 1.4;
}

/* Status Badges in Archive */
.fb-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.70rem;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.01em;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-status-pill.is-live {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.fb-status-pill.is-scheduled {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

[data-theme="dark"] .fb-status-pill.is-live {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .fb-status-pill.is-scheduled {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

/* Filter Tabs in Archive */
.fb-archive-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 12px;
}

.fb-filter-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill, 9999px);
  border: 1px solid var(--border-light, #cbd5e1);
  background: var(--bg-card, #ffffff);
  color: var(--text-muted, #64748b);
  font-size: 0.74rem;
  font-weight: 700;
  font-family: var(--font-sans, system-ui);
  cursor: pointer;
  transition: all 0.2s ease;
}

.fb-filter-tab-btn:hover {
  color: var(--text-headline, #0f172a);
  border-color: #94a3b8;
}

[data-theme="dark"] .fb-filter-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

[data-theme="dark"] .fb-filter-tab-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.fb-filter-tab-btn.is-active {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

[data-theme="dark"] .fb-filter-tab-btn.is-active {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

/* Composer Knoppen */
.fb-composer-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.btn-fb-publish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  min-height: 44px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: 1px solid #047857;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  line-height: 1.4;
}

.btn-fb-publish:hover:not(:disabled) {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  border-color: #065f46;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.48);
}

.btn-fb-publish:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Opnieuw Beginnen Knop - Exact dezelfde grootte, hoogte en padding als de Publicatie Knop */
.btn-fb-clear,
#btnClearStudioForm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  min-height: 44px;
  box-sizing: border-box;
  background: var(--bg-card, #ffffff);
  color: var(--text-headline, #0f172a);
  border: 1px solid var(--border-light, #cbd5e1);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  line-height: 1.4;
  text-decoration: none;
}

.btn-fb-clear:hover,
#btnClearStudioForm:hover {
  background: var(--bg-panel, #f8fafc);
  color: #0b111c;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-fb-clear:active,
#btnClearStudioForm:active {
  transform: translateY(0) scale(0.98);
}

[data-theme="dark"] .btn-fb-clear,
[data-theme="dark"] #btnClearStudioForm {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .btn-fb-clear:hover,
[data-theme="dark"] #btnClearStudioForm:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-fb-meta-suite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--bg-panel);
  color: var(--text-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-fb-meta-suite:hover {
  background: #e2e8f0;
  color: var(--text-headline);
}

[data-theme="dark"] .btn-fb-meta-suite:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Rechterkolom: Live Facebook Feed Mockup - Blijft soepel meescrollen naast de composer */
.fb-mockup-wrap {
  position: -webkit-sticky;
  position: sticky;
  top: 90px;
  align-self: start;
  z-index: 30;
  max-height: calc(100vh - 105px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 158, 0.4) transparent;
}

.fb-mockup-wrap::-webkit-scrollbar {
  width: 5px;
}

.fb-mockup-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.fb-mockup-wrap::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 158, 0.35);
  border-radius: 4px;
}

.fb-mockup-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fb-mockup-card {
  background: #ffffff;
  border: 1px solid #ced0d4;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #050505;
}

[data-theme="dark"] .fb-mockup-card {
  background: #242526;
  border-color: #3e4042;
  color: #e4e6eb;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.fb-mockup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.fb-mockup-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fb-mockup-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1877f2, #00d49e);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.fb-mockup-user-name {
  font-size: 0.90rem;
  font-weight: 700;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fb-mockup-verified-badge {
  display: inline-block;
  width: 14px;
  height: 14px;
}

.fb-mockup-subtext {
  font-size: 0.74rem;
  color: #65676b;
  margin-top: 2px;
}

[data-theme="dark"] .fb-mockup-subtext {
  color: #b0b3b8;
}

.fb-mockup-content {
  padding: 6px 16px 14px 16px;
  font-size: 0.90rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.fb-mockup-content .fb-mockup-placeholder {
  color: #8c8f94;
  font-style: italic;
}

.fb-mockup-image-box {
  width: 100%;
  background: #f0f2f5;
  overflow: hidden;
  max-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .fb-mockup-image-box {
  background: #18191a;
}

.fb-mockup-image-box img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.fb-mockup-action-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 0.78rem;
  color: #65676b;
  border-bottom: 1px solid #ced0d4;
}

[data-theme="dark"] .fb-mockup-action-stats {
  color: #b0b3b8;
  border-bottom-color: #3e4042;
}

.fb-mockup-actions-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px 12px;
}

.fb-mockup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #65676b;
  cursor: default;
}

[data-theme="dark"] .fb-mockup-btn {
  color: #b0b3b8;
}

/* Recente Facebook Berichten */
.fb-recent-posts-wrap {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

[data-theme="dark"] .fb-recent-posts-wrap {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.fb-recent-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.fb-recent-post-card {
  background: var(--bg-panel, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  position: relative;
}

.fb-recent-post-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.fb-post-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.fb-post-card-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

.fb-recent-post-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid var(--border-light, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-recent-post-thumb.is-video {
  background: #0f172a;
  color: #ffffff;
  font-size: 1.2rem;
}

.fb-recent-post-thumb.is-text {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-size: 1.1rem;
}

.fb-post-gallery-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.fb-post-card-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fb-post-card-meta-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-muted, #64748b);
  font-family: var(--font-mono);
}

.fb-post-date {
  font-weight: 600;
  color: var(--text-headline, #0f172a);
}

.fb-post-author-tag {
  font-size: 0.68rem;
  color: var(--text-muted, #94a3b8);
}

.fb-post-channels-list {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.fb-channel-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  line-height: 1.3;
}

.fb-channel-tag.is-fb {
  background: rgba(24, 119, 242, 0.08);
  color: #1877f2;
  border: 1px solid rgba(24, 119, 242, 0.2);
}

.fb-channel-tag.is-ig {
  background: rgba(225, 48, 108, 0.08);
  color: #e1306c;
  border: 1px solid rgba(225, 48, 108, 0.2);
}

.fb-post-card-status-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.fb-recent-post-text {
  font-size: 0.82rem;
  color: var(--text-headline, #1e293b);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  min-height: 2.2em;
}

.fb-post-stats-panel {
  background: var(--bg-surface, #f8fafc);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 9px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted, #64748b);
  font-family: var(--font-mono);
}

[data-theme="dark"] .fb-post-stats-panel {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
}

.fb-stats-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fb-stat-impressions {
  font-weight: 600;
  color: var(--text-headline, #0f172a);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fb-stat-impressions strong {
  color: #2563eb;
  font-weight: 800;
}

.fb-btn-refresh-stats {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid var(--border-light, #cbd5e1);
  background: var(--bg-card, #ffffff);
  color: var(--text-muted, #64748b);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.fb-btn-refresh-stats:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: rotate(90deg);
}

.fb-btn-refresh-stats.is-spinning {
  animation: spin 0.8s linear infinite;
}

.fb-stats-channel-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px dashed var(--border-light, #e2e8f0);
  padding-top: 5px;
}

.fb-stat-channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.70rem;
  line-height: 1.3;
}

.fb-stat-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  color: var(--text-headline, #334155);
}

.fb-stat-counts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted, #64748b);
}

.fb-stat-counts strong {
  color: var(--text-headline, #0f172a);
  font-weight: 700;
}

.fb-stat-dot {
  color: #cbd5e1;
  font-size: 8px;
}

.fb-recent-post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border-light, #f1f5f9);
}

.fb-post-ext-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fb-post-ext-link {
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.fb-post-ext-link.is-fb {
  color: #1877f2;
}

.fb-post-ext-link.is-fb:hover {
  text-decoration: underline;
}

.fb-post-ext-link.is-ig {
  color: #e1306c;
}

.fb-post-ext-link.is-ig:hover {
  text-decoration: underline;
}

.fb-recent-post-del-btn {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #dc2626;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.70rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.fb-recent-post-del-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: #dc2626;
}

.fb-recent-post-del-btn svg {
  stroke: currentColor;
  flex-shrink: 0;
}

.fb-recent-post-del-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: #ef4444;
  color: #dc2626;
  transform: translateY(-1px);
}

.fb-recent-post-del-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

[data-theme="dark"] .fb-recent-post-del-btn {
  border-color: rgba(239, 68, 68, 0.38);
  color: #f87171;
}

[data-theme="dark"] .fb-recent-post-del-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: #ef4444;
}

/* ==========================================================================
   MULTI-CHANNEL SELECTOR & INSTAGRAM PREVIEW MOCKUP
   ========================================================================== */
.studio-channel-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.studio-channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.studio-channel-pill.is-active {
  background: rgba(24, 119, 242, 0.12);
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.35);
}

[data-theme="dark"] .studio-channel-pill.is-active {
  background: rgba(24, 119, 242, 0.22);
  color: #60a5fa;
  border-color: rgba(24, 119, 242, 0.45);
}

.studio-channel-pill.is-inactive {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.35);
  cursor: pointer;
}

[data-theme="dark"] .studio-channel-pill.is-inactive {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.45);
}

.studio-channel-pill.is-inactive:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.6);
  transform: translateY(-1px);
}

.studio-pill-badge-warn {
  font-size: 0.68rem;
  background: rgba(245, 158, 11, 0.2);
  color: #b45309;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-weight: 700;
}

[data-theme="dark"] .studio-pill-badge-warn {
  background: rgba(245, 158, 11, 0.25);
  color: #fde68a;
}

.studio-channel-pill.is-coming-soon {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ==========================================================================
   POST STUDIO - APARTE SECTIE: API MANAGEMENT & LIVE TEST CONTROLS
   ========================================================================== */
.studio-api-section {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #cbd5e1);
  border-radius: var(--radius-lg, 14px);
  padding: 16px 20px;
  margin-bottom: 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-api-section:hover {
  border-color: rgba(24, 119, 242, 0.35);
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.08);
}

[data-theme="dark"] .studio-api-section {
  background: rgba(13, 19, 29, 0.90);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .studio-api-section:hover {
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 6px 24px rgba(24, 119, 242, 0.18);
}

.studio-api-section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.studio-api-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 280px;
}

.studio-api-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(24, 119, 242, 0.10);
  border: 1px solid rgba(24, 119, 242, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.studio-api-section:hover .studio-api-icon-wrap {
  transform: scale(1.05);
}

[data-theme="dark"] .studio-api-icon-wrap {
  background: rgba(24, 119, 242, 0.20);
  border-color: rgba(24, 119, 242, 0.35);
}

.studio-api-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.studio-api-title {
  font-family: var(--font-sans, system-ui);
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-headline, #0b111c);
  letter-spacing: -0.01em;
}

.studio-api-subtext {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
  margin: 0;
  line-height: 1.45;
}

.studio-api-subtext code {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-headline, #0b111c);
}

[data-theme="dark"] .studio-api-subtext code {
  background: rgba(255, 255, 255, 0.10);
  color: #93c5fd;
}

.studio-api-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-api-section-test {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-pill, 9999px);
  font-family: var(--font-sans, system-ui);
  font-size: 0.80rem;
  font-weight: 700;
  background: rgba(0, 212, 158, 0.12);
  color: var(--mint-deep, #009970);
  border: 1px solid rgba(0, 212, 158, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-api-section-test:hover {
  background: rgba(0, 212, 158, 0.22);
  border-color: rgba(0, 212, 158, 0.6);
  color: var(--mint-deep, #009970);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 212, 158, 0.20);
}

[data-theme="dark"] .btn-api-section-test {
  background: rgba(0, 212, 158, 0.16);
  color: #00d49e;
  border-color: rgba(0, 212, 158, 0.4);
}

[data-theme="dark"] .btn-api-section-test:hover {
  background: rgba(0, 212, 158, 0.28);
  border-color: #00d49e;
  box-shadow: 0 4px 16px rgba(0, 212, 158, 0.30);
}

.btn-api-section-manage {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-pill, 9999px);
  font-family: var(--font-sans, system-ui);
  font-size: 0.80rem;
  font-weight: 700;
  background: #ffffff;
  color: var(--text-headline, #0b111c);
  border: 1px solid var(--border-light, #cbd5e1);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-api-section-manage:hover {
  background: var(--bg-panel, #f8fafc);
  border-color: rgba(24, 119, 242, 0.4);
  color: #1877f2;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.12);
}

[data-theme="dark"] .btn-api-section-manage {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

[data-theme="dark"] .btn-api-section-manage:hover {
  background: rgba(24, 119, 242, 0.15);
  border-color: rgba(96, 165, 250, 0.5);
  color: #60a5fa;
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.25);
}

.btn-api-section-doc {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-pill, 9999px);
  font-family: var(--font-sans, system-ui);
  font-size: 0.80rem;
  font-weight: 700;
  background: rgba(0, 212, 158, 0.08);
  color: var(--mint-deep, #00a87d);
  border: 1px solid rgba(0, 212, 158, 0.25);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-api-section-doc:hover {
  background: rgba(0, 212, 158, 0.16);
  border-color: var(--mint-primary, #00d49e);
  color: #008764;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 212, 158, 0.2);
}

[data-theme="dark"] .btn-api-section-doc {
  background: rgba(0, 212, 158, 0.12);
  border-color: rgba(0, 212, 158, 0.3);
  color: #00f0b5;
}

[data-theme="dark"] .btn-api-section-doc:hover {
  background: rgba(0, 212, 158, 0.22);
  border-color: #00f0b5;
  color: #5effd4;
  box-shadow: 0 4px 18px rgba(0, 212, 158, 0.3);
}

.btn-studio-api-manage {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-headline);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-studio-api-manage:hover {
  background: var(--bg-panel);
  border-color: rgba(24, 119, 242, 0.4);
  color: #1877f2;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.12);
}

.btn-studio-api-manage svg {
  color: #1877f2;
  flex-shrink: 0;
}

[data-theme="dark"] .btn-studio-api-manage {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

[data-theme="dark"] .btn-studio-api-manage:hover {
  background: rgba(24, 119, 242, 0.15);
  border-color: rgba(96, 165, 250, 0.5);
  color: #60a5fa;
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.25);
}

.studio-api-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.studio-api-badge.is-live {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .studio-api-badge.is-live {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.studio-api-badge.is-warn {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

[data-theme="dark"] .studio-api-badge.is-warn {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.studio-api-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: studio-pulse-dot 2s infinite ease-in-out;
}

@keyframes studio-pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.studio-pill-badge-manage {
  font-size: 0.68rem;
  background: rgba(24, 119, 242, 0.15);
  color: #1877f2;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-weight: 700;
  margin-left: 4px;
}

[data-theme="dark"] .studio-pill-badge-manage {
  background: rgba(24, 119, 242, 0.25);
  color: #93c5fd;
}

.btn-test-api-modal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(0, 212, 158, 0.12);
  color: var(--mint-deep);
  border: 1px solid rgba(0, 212, 158, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-test-api-modal:hover {
  background: rgba(0, 212, 158, 0.22);
  border-color: rgba(0, 212, 158, 0.6);
  color: var(--mint-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 212, 158, 0.18);
}

[data-theme="dark"] .btn-test-api-modal {
  background: rgba(0, 212, 158, 0.16);
  color: #00d49e;
  border-color: rgba(0, 212, 158, 0.4);
}

[data-theme="dark"] .btn-test-api-modal:hover {
  background: rgba(0, 212, 158, 0.28);
  border-color: #00d49e;
  box-shadow: 0 4px 16px rgba(0, 212, 158, 0.3);
}

/* Modal Primaire Opslaan Knop - Meta Blue Gradient & Crisp SVB Styling */
.btn-save-api-modal,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 22px;
  background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-pill, 9999px);
  font-family: var(--font-sans, system-ui);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-save-api-modal svg,
.btn-primary svg {
  stroke: #ffffff;
  color: #ffffff;
  flex-shrink: 0;
}

.btn-save-api-modal:hover:not(:disabled),
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #2583fa 0%, #126ee2 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.48);
  color: #ffffff !important;
}

.btn-save-api-modal:active:not(:disabled),
.btn-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

.btn-save-api-modal:disabled,
.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-modal-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: var(--bg-panel, #f1f5f9);
  color: var(--text-body, #64748b);
  border: 1px solid var(--border-light, #cbd5e1);
  border-radius: var(--radius-pill, 9999px);
  font-family: var(--font-sans, system-ui);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-modal-cancel:hover {
  background: #e2e8f0;
  color: var(--text-headline, #0b111c);
  border-color: #94a3b8;
}

[data-theme="dark"] .btn-modal-cancel {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

[data-theme="dark"] .btn-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Ongekoppelde Post Studio Hero Card */
.studio-unconnected-hero {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  max-width: 860px;
  margin: 16px auto 36px auto;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

[data-theme="dark"] .studio-unconnected-hero {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.studio-preview-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.studio-preview-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  font-weight: 700;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.studio-preview-tab-btn.active {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
}

.studio-preview-tab-btn#btnTabFbPreview.active {
  background: #1877f2 !important;
  color: #ffffff !important;
  border-color: #1877f2 !important;
  box-shadow: 0 2px 10px rgba(24, 119, 242, 0.35) !important;
}

.studio-preview-tab-btn#btnTabFbPreview:hover:not(.active) {
  border-color: rgba(24, 119, 242, 0.5);
  color: #1877f2;
  background: rgba(24, 119, 242, 0.08);
}

.studio-preview-tab-btn#btnTabIgPreview.active {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 3px 12px rgba(225, 48, 108, 0.45) !important;
}

.studio-preview-tab-btn#btnTabIgPreview:hover:not(.active) {
  border-color: #e1306c;
  color: #e1306c;
  background: rgba(225, 48, 108, 0.08);
}

/* Instagram Feed Mockup Card */
.ig-mockup-card {
  background: #ffffff;
  border: 1px solid #dbdbdb;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #262626;
}

[data-theme="dark"] .ig-mockup-card {
  background: #121212;
  border-color: #262626;
  color: #f5f5f5;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.ig-mockup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #efefef;
}

[data-theme="dark"] .ig-mockup-head {
  border-bottom-color: #262626;
}

.ig-mockup-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-mockup-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  color: #121212;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

[data-theme="dark"] .ig-mockup-avatar-inner {
  background: #121212;
  color: #ffffff;
}

.ig-mockup-media-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

[data-theme="dark"] .ig-mockup-media-box {
  background: #1a1a1a;
}

.ig-mockup-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-mockup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px 14px;
}

.ig-mockup-caption {
  padding: 0 14px 14px 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ==========================================================================
   PORTAL MODAL COMPONENT (FACEBOOK API SETUP & SETTINGS)
   ========================================================================== */
.portal-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: rgba(7, 10, 15, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.portal-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.portal-modal-window {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(20px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.portal-modal-backdrop.is-open .portal-modal-window {
  transform: translateY(0) scale(1);
}

[data-theme="dark"] .portal-modal-window {
  background: #0d1420;
  border-color: rgba(255, 255, 255, 0.12);
}

.portal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

[data-theme="dark"] .portal-modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.portal-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-headline);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.portal-modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: all 0.15s ease;
}

.portal-modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-headline);
}

[data-theme="dark"] .portal-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.portal-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.portal-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-panel);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

[data-theme="dark"] .portal-modal-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.portal-guide-accordion {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}

.portal-guide-summary {
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1877f2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.portal-guide-content {
  padding: 0 16px 14px 16px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-body);
}

.portal-guide-content ol {
  margin: 6px 0 0 0;
  padding-left: 18px;
}

.portal-guide-content li {
  margin-bottom: 6px;
}

/* ==========================================================================
   POST STUDIO CUSTOMER UX OPTIMIZATIONS (STEP-BY-STEP & CLEAR FLOW)
   ========================================================================== */

/* Step Header & Badges */
.studio-step-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px 18px;
  transition: all 0.2s ease;
  position: relative;
}

[data-theme="dark"] .studio-step-card {
  background: rgba(13, 20, 32, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
}

.studio-step-card:focus-within {
  border-color: rgba(24, 119, 242, 0.5);
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.08);
}

/* Google CTA Type Dropdown Input Styling */
.gmb-cta-select {
  width: 100%;
  height: 42px;
  background-color: #ffffff !important;
  color: var(--text-headline, #0f172a);
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0 38px 0 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.gmb-cta-select:hover {
  border-color: #94a3b8;
  background-color: #ffffff !important;
}

.gmb-cta-select:focus {
  outline: none;
  border-color: #4285F4;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18), 0 2px 6px rgba(66, 133, 244, 0.10);
}

.gmb-cta-select option {
  background-color: #ffffff;
  color: #0f172a;
  padding: 8px 12px;
}

[data-theme="dark"] .gmb-cta-select {
  background-color: #0d1422 !important;
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .gmb-cta-select:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background-color: #111a2d !important;
}

[data-theme="dark"] .gmb-cta-select:focus {
  border-color: #4285F4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.25), 0 2px 8px rgba(66, 133, 244, 0.15);
}

[data-theme="dark"] .gmb-cta-select option {
  background-color: #0d1422;
  color: #f1f5f9;
}

.studio-step-header {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.studio-step-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.studio-step-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.studio-step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d49e, #059669);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 212, 158, 0.35);
}

.studio-step-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-headline);
  line-height: 1.25;
  margin: 0;
}

.studio-step-optional {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  white-space: nowrap;
}

.studio-step-desc {
  font-size: 0.79rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 0 34px;
}

@media (max-width: 640px) {
  .studio-step-desc {
    margin-left: 0;
  }
}

.studio-step-badge-ig,
.doc-badge-status-ig {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(225, 48, 108, 0.12);
  color: #e1306c;
  font-weight: 700;
  border: 1px solid rgba(225, 48, 108, 0.28);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.01em;
}

/* Quick Theme Buttons (Klantgerichte Sjabloonknoppen) */
.studio-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.studio-theme-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--text-body);
}

.studio-theme-btn:hover {
  border-color: #059669;
  background: rgba(0, 212, 158, 0.06);
  transform: translateY(-1px);
}

.studio-theme-btn.is-active {
  border-color: #059669;
  background: rgba(0, 212, 158, 0.14);
  color: #065f46;
  font-weight: 700;
}

[data-theme="dark"] .studio-theme-btn.is-active {
  color: #34d399;
  background: rgba(0, 212, 158, 0.22);
  border-color: #059669;
}

.studio-theme-btn-title {
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.studio-theme-btn-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.25;
}

/* Hashtag Chip Active State */
.fb-chip-btn.is-active {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

/* Customer Onboarding Banner (als API nog niet gekoppeld is) */
.studio-onboarding-banner {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.08), rgba(0, 212, 158, 0.06));
  border: 1px solid rgba(24, 119, 242, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .studio-onboarding-banner {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.15), rgba(0, 212, 158, 0.08));
  border-color: rgba(24, 119, 242, 0.35);
}

.studio-onboarding-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 680px;
}

.studio-onboarding-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #1877f2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}

.studio-onboarding-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-headline);
  margin-bottom: 4px;
}

.studio-onboarding-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Mockup Link Preview Card */
.fb-link-preview-box {
  border-top: 1px solid #ced0d4;
  background: #f0f2f5;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.2s ease;
}

[data-theme="dark"] .fb-link-preview-box {
  background: #18191a;
  border-top-color: #3e4042;
}

.fb-link-preview-domain {
  font-size: 0.70rem;
  text-transform: uppercase;
  color: #65676b;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

[data-theme="dark"] .fb-link-preview-domain {
  color: #b0b3b8;
}

.fb-link-preview-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #050505;
  line-height: 1.3;
}

[data-theme="dark"] .fb-link-preview-title {
  color: #e4e6eb;
}

.fb-link-preview-desc {
  font-size: 0.74rem;
  color: #65676b;
  line-height: 1.35;
}

[data-theme="dark"] .fb-link-preview-desc {
  color: #b0b3b8;
}

/* Mockup Toolbar (Kopiëren & Wissen) */
.fb-mockup-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 8px;
}

.btn-studio-action-ghost {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-studio-action-ghost:hover {
  background: var(--bg-panel);
  color: var(--text-headline);
  border-color: var(--border-subtle);
}

/* Slimme Tips Card voor Klanten */
.studio-tips-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 0;
  margin-bottom: 14px;
}

.studio-tips-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-headline);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.studio-tips-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.studio-tip-item strong {
  color: var(--text-body);
}

/* ==========================================================================
   ADVANCED POST STUDIO: MULTI-PHOTO, MARKETING KALENDER & STATISTIEKEN
   ========================================================================== */

/* Multi-photo Dropzone & Thumbnails */
.fb-photos-counter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.fb-btn-add-more-photos {
  background: var(--mint-subtle);
  border: 1px dashed var(--mint-primary);
  color: var(--mint-deep);
  border-radius: var(--radius-pill, 9999px);
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

[data-theme="dark"] .fb-btn-add-more-photos {
  color: var(--mint-primary);
}

.fb-btn-add-more-photos:hover {
  background: var(--mint-primary);
  color: #022c22;
  transform: translateY(-1px);
}

.fb-multi-preview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.fb-multi-thumb-box {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-surface, #f8fafc);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.fb-multi-thumb-box:hover {
  transform: scale(1.04);
  border-color: var(--mint-primary);
}

.fb-multi-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fb-multi-thumb-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.92);
  color: #ffffff;
  border: none;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: transform 0.15s ease, background 0.15s ease;
  line-height: 1;
}

.fb-multi-thumb-del:hover {
  background: #dc2626;
  transform: scale(1.15);
}

.fb-multi-thumb-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  z-index: 6;
  pointer-events: none;
}

.fb-multi-thumb-edit {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.15s ease;
  z-index: 15;
  line-height: 1;
}

.fb-multi-thumb-edit:hover {
  background: #059669;
  border-color: var(--mint-primary, #00d49e);
  transform: scale(1.18);
}

.fb-multi-thumb-moves {
  position: absolute;
  bottom: 4px;
  left: 4px;
  display: flex;
  gap: 3px;
  z-index: 10;
}

.fb-multi-thumb-move {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.fb-multi-thumb-move:hover {
  background: #059669;
}

/* Multi-photo Mockup Layouts (1 tot 5 foto's) */
.fb-mockup-gallery {
  width: 100%;
  background: #000000;
  overflow: hidden;
  position: relative;
}

.fb-mockup-gallery[data-count="1"] img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.fb-mockup-gallery[data-count="2"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  height: 240px;
}

.fb-mockup-gallery[data-count="2"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-mockup-gallery[data-count="3"] {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  height: 260px;
}

.fb-mockup-gallery[data-count="3"] img:nth-child(1) {
  grid-row: 1 / span 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-mockup-gallery[data-count="3"] img:nth-child(2),
.fb-mockup-gallery[data-count="3"] img:nth-child(3) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-mockup-gallery[data-count="4"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  height: 260px;
}

.fb-mockup-gallery[data-count="4"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-mockup-gallery[data-count="5"] {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  height: 270px;
}

.fb-mockup-gallery[data-count="5"] .fb-mg-item:nth-child(1),
.fb-mockup-gallery[data-count="5"] .fb-mg-item:nth-child(2) {
  grid-column: span 3;
  height: 100%;
}

.fb-mockup-gallery[data-count="5"] .fb-mg-item:nth-child(3),
.fb-mockup-gallery[data-count="5"] .fb-mg-item:nth-child(4),
.fb-mockup-gallery[data-count="5"] .fb-mg-item:nth-child(5) {
  grid-column: span 2;
  height: 100%;
}

.fb-mockup-gallery .fb-mg-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.fb-mockup-gallery .fb-mg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Weergave Switcher (Lijst vs Kalender) */
.fb-view-switcher-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.fb-view-segmented {
  display: inline-flex;
  background: var(--bg-surface, #f1f5f9);
  padding: 3px;
  border-radius: var(--radius-pill, 9999px);
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .fb-view-segmented {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.fb-view-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-pill, 9999px);
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.fb-view-btn.is-active {
  background: var(--bg-panel);
  color: var(--mint-deep);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

[data-theme="dark"] .fb-view-btn.is-active {
  color: var(--mint-primary);
  background: rgba(255, 255, 255, 0.12);
}

/* PORTAL SEGMENTED CONTROLS */
.portal-segmented-group {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-soft, rgba(0, 0, 0, 0.04));
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  vertical-align: middle;
}

[data-theme="dark"] .portal-segmented-group {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
}

.portal-segmented-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  outline: none;
  box-sizing: border-box;
}

.portal-segmented-btn svg {
  transition: transform 0.2s ease, stroke 0.2s ease;
  flex-shrink: 0;
}

.portal-segmented-btn:hover {
  color: var(--text-headline, #0f172a);
}

.portal-segmented-btn.is-active {
  background: var(--bg-surface, #ffffff);
  color: var(--mint-deep, #059669);
  border-color: var(--border-light, #e2e8f0);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.portal-segmented-btn.is-active svg {
  stroke: var(--mint-deep, #059669);
}

[data-theme="dark"] .portal-segmented-btn.is-active {
  background: rgba(0, 212, 158, 0.15);
  color: var(--mint-primary, #00d49e);
  border-color: rgba(0, 212, 158, 0.35);
  box-shadow: 0 0 14px rgba(0, 212, 158, 0.25);
}

[data-theme="dark"] .portal-segmented-btn.is-active svg {
  stroke: var(--mint-primary, #00d49e);
}

/* VISUELE MARKETINGKALENDER COMPONENT */
.fb-calendar-container {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 18px;
  margin-top: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.fb-cal-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.fb-cal-month-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-headline);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fb-cal-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fb-cal-btn {
  background: var(--bg-surface, #f8fafc);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.fb-cal-btn:hover {
  background: var(--mint-subtle);
  border-color: var(--mint-primary);
  color: var(--mint-deep);
}

[data-theme="dark"] .fb-cal-btn:hover {
  color: var(--mint-primary);
}

.fb-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.fb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
}

.fb-cal-day {
  min-height: 110px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  transition: all 0.15s ease;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
}

.fb-cal-day:hover {
  border-color: rgba(0, 212, 158, 0.65);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.fb-cal-day.is-outside {
  opacity: 0.65 !important;
  background: #f1f5f9 !important;
  border: 1px dashed #cbd5e1 !important;
}

.fb-cal-day.is-outside .fb-cal-day-num {
  color: #94a3b8 !important;
}

.fb-cal-day.is-past {
  opacity: 1 !important;
  background: #eaeff5 !important;
  border: 1px solid #cbd5e1 !important;
  cursor: default !important;
  user-select: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.fb-cal-day.is-past .fb-cal-day-num {
  color: #64748b !important;
  font-weight: 700;
}

.fb-cal-day.is-past:hover {
  transform: none !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  border-color: #cbd5e1 !important;
}

.fb-cal-day.is-too-far {
  opacity: 0.75 !important;
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  cursor: not-allowed !important;
  user-select: none;
}

.fb-cal-day.is-too-far:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: #cbd5e1 !important;
}

[data-theme="dark"] .fb-cal-day.is-past {
  opacity: 1 !important;
  background: #0a0f18 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .fb-cal-day.is-past .fb-cal-day-num {
  color: #64748b !important;
}

[data-theme="dark"] .fb-cal-day.is-outside {
  opacity: 0.55 !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px dashed rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .fb-cal-day.is-too-far {
  opacity: 0.60 !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px dashed rgba(255, 255, 255, 0.08) !important;
}

.fb-cal-day.is-today {
  border-color: var(--mint-primary);
  box-shadow: 0 0 0 1px var(--mint-primary);
  background: rgba(0, 212, 158, 0.04);
}

.fb-cal-day.is-dragover {
  border: 2px dashed var(--mint-primary) !important;
  background: rgba(0, 212, 158, 0.15) !important;
  transform: scale(1.02);
}

.fb-cal-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.fb-cal-day-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
}

.fb-cal-day.is-today .fb-cal-day-num {
  color: var(--mint-deep);
  font-weight: 800;
}

[data-theme="dark"] .fb-cal-day.is-today .fb-cal-day-num {
  color: var(--mint-primary);
}

.fb-cal-today-badge {
  background: var(--mint-primary);
  color: #022c22;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.fb-cal-schedule-plus {
  opacity: 0;
  background: transparent;
  border: none;
  color: var(--mint-deep);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  transition: opacity 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

[data-theme="dark"] .fb-cal-schedule-plus {
  color: var(--mint-primary);
}

.fb-cal-day:hover .fb-cal-schedule-plus {
  opacity: 1;
}

.fb-cal-schedule-plus:hover {
  transform: scale(1.25);
}

.fb-cal-chips-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 150px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-right: 2px;
}

.fb-cal-chip {
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 0.70rem;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.fb-cal-chip.is-scheduled {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #d97706;
  cursor: grab;
}

.fb-cal-chip.is-scheduled:active {
  cursor: grabbing;
  opacity: 0.65;
}

.fb-cal-chip.is-live {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #059669;
}

[data-theme="dark"] .fb-cal-chip.is-scheduled {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

[data-theme="dark"] .fb-cal-chip.is-live {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.fb-cal-chip.is-failed {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.38);
  color: #dc2626;
  cursor: grab;
}

[data-theme="dark"] .fb-cal-chip.is-failed {
  background: rgba(239, 68, 68, 0.22);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.45);
}

.fb-cal-chip.is-publishing {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.38);
  color: #2563eb;
  cursor: wait;
}

[data-theme="dark"] .fb-cal-chip.is-publishing {
  background: rgba(59, 130, 246, 0.22);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.45);
}

.fb-cal-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  filter: brightness(1.05);
}

.fb-cal-chip-thumb {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}

.fb-cal-chip-time {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.66rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.fb-cal-chip-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  font-weight: 600;
  display: block;
}

/* Live Bereik & Statistieken Row (ROI Inzicht) */
.fb-post-stats-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .fb-post-stats-row {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.fb-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.fb-stat-pill strong {
  color: var(--text-headline);
  font-weight: 700;
}

.fb-stat-pill.is-fb {
  background: rgba(24, 119, 242, 0.08);
  color: #1877f2;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid rgba(24, 119, 242, 0.22);
}

.fb-stat-pill.is-ig {
  background: rgba(225, 48, 108, 0.08);
  color: #e1306c;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid rgba(225, 48, 108, 0.22);
}

.fb-stat-pill.is-fb strong,
.fb-stat-pill.is-ig strong {
  color: inherit;
  font-weight: 800;
}

[data-theme="dark"] .fb-stat-pill.is-fb {
  background: rgba(24, 119, 242, 0.16);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.28);
}

[data-theme="dark"] .fb-stat-pill.is-ig {
  background: rgba(225, 48, 108, 0.16);
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.28);
}

.fb-btn-refresh-stats {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-muted);
  transition: all 0.2s ease;
  line-height: 1;
}

.fb-btn-refresh-stats:hover {
  border-color: var(--mint-primary);
  color: var(--mint-deep);
  transform: rotate(45deg);
}

[data-theme="dark"] .fb-btn-refresh-stats:hover {
  color: var(--mint-primary);
}

.fb-btn-refresh-stats.is-spinning {
  animation: fbSpin 0.7s linear infinite;
  pointer-events: none;
  border-color: var(--mint-primary);
  color: var(--mint-primary);
}

@keyframes fbSpin {
  100% {
    transform: rotate(360deg);
  }
}

/* Post Detail Modal / Drawer voor Kalender Posts */
.fb-post-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.fb-post-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.fb-post-modal-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
}

.fb-post-modal-backdrop.is-open .fb-post-modal-card {
  transform: translateY(0) scale(1);
}

.fb-post-modal-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fb-post-modal-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-headline);
}

.fb-post-modal-close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s ease;
}

.fb-post-modal-close:hover {
  color: var(--text-headline);
}

.fb-post-modal-body {
  padding: 18px;
}

/* TIJDSTIP KIEZER MODAL VOOR MARKETINGKALENDER */
.fb-time-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (max-width: 480px) {
  .fb-time-preset-grid {
    grid-template-columns: 1fr;
  }
}

.fb-time-preset-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.fb-time-preset-btn:hover:not(:disabled) {
  border-color: var(--mint-primary);
  background: var(--mint-subtle, rgba(0, 212, 158, 0.10));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 212, 158, 0.15);
}

.fb-time-preset-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.02);
  border-color: var(--border-light);
}

.fb-time-preset-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fb-time-preset-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-headline);
}

.fb-time-preset-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.fb-time-preset-time {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--mint-deep, #009970);
}

[data-theme="dark"] .fb-time-preset-btn {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .fb-time-preset-time {
  color: var(--mint-primary, #00d49e);
}

.fb-btn-confirm-time {
  background: var(--mint-primary, #00d49e);
  color: #022c22;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.fb-btn-confirm-time:hover {
  background: #00b887;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .fb-cal-weekdays,
  .fb-cal-grid {
    font-size: 0.65rem;
  }
  .fb-cal-day {
    min-height: 70px;
    padding: 3px;
  }
  .fb-cal-chip-text {
    display: none;
  }
}

/* ==========================================================================
   STUDIO FULL-SCREEN ACTION FREEZE OVERLAY (Glassmorphic)
   ========================================================================== */
body.studio-is-frozen {
  overflow: hidden !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.studio-loading-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: rgba(247, 249, 252, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
}

[data-theme="dark"] .studio-loading-overlay {
  background: rgba(11, 17, 28, 0.84);
}

.studio-loading-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  cursor: wait;
}

.studio-loading-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(24, 119, 242, 0.22);
  border-radius: 20px;
  padding: 34px 38px;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16),
              0 0 0 1px rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .studio-loading-card {
  background: #151d2a;
  border-color: rgba(24, 119, 242, 0.38);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(255, 255, 255, 0.08);
}

.studio-loading-overlay.is-active .studio-loading-card {
  transform: scale(1);
}

.studio-loading-spinner-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-loading-spinner-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 4px solid rgba(24, 119, 242, 0.15);
  border-top-color: #1877f2;
  border-right-color: #00d49e;
  animation: studioSpin 0.9s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

.studio-loading-spinner-icon {
  position: absolute;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: studioPulse 1.6s ease-in-out infinite;
}

@keyframes studioSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes studioPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.85; }
  50% { transform: scale(1.12); opacity: 1; }
}

.studio-loading-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-headline);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.studio-loading-sub {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.studio-loading-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(24, 119, 242, 0.12);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .studio-loading-bar-track {
  background: rgba(255, 255, 255, 0.08);
}

.studio-loading-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, #1877f2, #00d49e);
  border-radius: 9999px;
  animation: studioProgress 1.4s ease-in-out infinite;
}

@keyframes studioProgress {
  0% { left: -40%; width: 30%; }
  50% { width: 55%; }
  100% { left: 100%; width: 30%; }
}

/* Kanaal-status overzicht in de studio modal (Facebook & Instagram) */
.studio-loading-card.has-channels {
  max-width: 520px;
  text-align: left;
  padding: 30px 32px;
}

.studio-loading-channels {
  width: 100%;
  margin: 18px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.studio-channel-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .studio-channel-status-row {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.studio-channel-status-row.state-running {
  border-color: rgba(24, 119, 242, 0.35);
  background: rgba(24, 119, 242, 0.05);
}

.studio-channel-status-row.state-success {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.05);
}

.studio-channel-status-row.state-error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.05);
}

.studio-channel-status-row.state-skipped {
  opacity: 0.65;
}

.studio-channel-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.studio-channel-info {
  flex: 1;
  min-width: 0;
}

.studio-channel-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-headline);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.studio-channel-detail {
  font-size: 0.77rem;
  color: var(--text-muted);
  line-height: 1.35;
  word-break: break-word;
}

.studio-channel-detail a {
  color: #1877f2;
  font-weight: 700;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.studio-badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-family: var(--font-mono, monospace);
}

.studio-badge-pill.is-pending {
  background: rgba(148, 163, 184, 0.15);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.studio-badge-pill.is-running {
  background: rgba(24, 119, 242, 0.12);
  color: #1877f2;
  border: 1px solid rgba(24, 119, 242, 0.3);
  animation: studioPulse 1.2s infinite alternate;
}

.studio-badge-pill.is-success {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.studio-badge-pill.is-error {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.32);
}

.studio-badge-pill.is-skipped {
  background: rgba(148, 163, 184, 0.10);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.20);
}

.studio-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  animation: studioPulse 0.9s infinite alternate;
}

.studio-spinner-mini {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  display: inline-block;
  animation: studioSpin 0.7s linear infinite;
}

.studio-loading-footer {
  width: 100%;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-studio-loading-close {
  width: 100%;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #1877f2 0%, #00d49e 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-studio-loading-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.35);
  filter: brightness(1.05);
}

.btn-studio-loading-close.is-secondary {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-normal, #cbd5e1);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: none;
  font-weight: 600;
}

.btn-studio-loading-close.is-secondary:hover {
  background: rgba(148, 163, 184, 0.2);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  filter: none;
}

.btn-studio-loading-retry {
  width: 100%;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-studio-loading-retry:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
  filter: brightness(1.06);
}

.btn-studio-loading-retry.is-ig {
  background: linear-gradient(135deg, #f09433 0%, #e1306c 50%, #bc1888 100%);
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.32);
}

.btn-studio-loading-retry.is-ig:hover {
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.45);
}

.btn-studio-loading-retry.is-fb {
  background: linear-gradient(135deg, #1877f2 0%, #0d5ec4 100%);
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.32);
}

.btn-studio-loading-retry.is-fb:hover {
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.45);
}

.studio-loading-autoclose-note {
  font-size: 0.73rem;
  color: var(--text-muted);
  font-family: var(--font-mono, monospace);
  opacity: 0.85;
}

/* ==========================================================================
   DOCUMENTATIE & HANDLEIDING CENTRUM (user/documentation.php)
   2-Column Responsive Layout: Sticky TOC + Search & Context Content Viewer
   ========================================================================== */

.doc-layout {
  display: grid;
  grid-template-columns: minmax(385px, 415px) 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 24px;
  transition: grid-template-columns 0.3s ease;
}

/* Inhoudstafel inklappen / uitklappen: Gesloten venster aan de zijkant van het scherm */
.doc-layout.toc-sidebar-collapsed {
  grid-template-columns: 56px 1fr;
  gap: 24px;
}

.doc-layout.toc-sidebar-collapsed .doc-sidebar {
  display: flex !important;
  width: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  padding: 16px 8px !important;
  height: calc(100vh - 120px);
  min-height: 480px;
  cursor: pointer;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  align-items: center;
  justify-content: space-between;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.doc-layout.toc-sidebar-collapsed .doc-sidebar:hover {
  border-color: var(--mint-primary);
  background: var(--bg-card-hover, rgba(0, 212, 158, 0.04));
  box-shadow: 0 6px 24px rgba(0, 212, 158, 0.16);
  transform: translateX(2px);
}

[data-theme="dark"] .doc-layout.toc-sidebar-collapsed .doc-sidebar {
  background: rgba(18, 26, 38, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .doc-layout.toc-sidebar-collapsed .doc-sidebar:hover {
  border-color: #00f0b5;
  background: rgba(0, 240, 181, 0.06);
  box-shadow: 0 6px 24px rgba(0, 240, 181, 0.2);
}

/* Weergave binnen de zijbalk: geopend vs gesloten venster */
.doc-sidebar-expanded {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.doc-sidebar-collapsed-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  user-select: none;
}

.doc-layout.toc-sidebar-collapsed .doc-sidebar-expanded {
  display: none !important;
}

.doc-layout.toc-sidebar-collapsed .doc-sidebar-collapsed-panel {
  display: flex !important;
}

/* Gesloten venster strip styling aan de zijkant */
.doc-collapsed-strip-top {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-bottom: 8px;
}

.doc-collapsed-expand-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-headline);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.doc-sidebar:hover .doc-collapsed-expand-btn,
.doc-collapsed-expand-btn:hover {
  background: var(--mint-primary);
  color: #000;
  border-color: var(--mint-primary);
  transform: scale(1.06);
}

[data-theme="dark"] .doc-collapsed-expand-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.doc-collapsed-strip-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: center;
  margin: 16px 0;
}

.doc-collapsed-icon {
  font-size: 1.15rem;
  opacity: 0.9;
  line-height: 1;
}

.doc-collapsed-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-headline);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.doc-sidebar:hover .doc-collapsed-label {
  color: var(--mint-deep);
}

[data-theme="dark"] .doc-sidebar:hover .doc-collapsed-label {
  color: #00f0b5;
}

.doc-collapsed-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(24, 119, 242, 0.12);
  color: #1877f2;
  border: 1px solid rgba(24, 119, 242, 0.25);
  line-height: 1;
}

.doc-collapsed-strip-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 8px;
}

.doc-collapsed-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.05);
  border-radius: 99px;
  padding: 2px 7px;
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .doc-collapsed-count {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

@media (max-width: 1100px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .doc-layout.toc-sidebar-collapsed {
    grid-template-columns: 52px 1fr;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .doc-layout.toc-sidebar-collapsed {
    grid-template-columns: 46px 1fr;
    gap: 12px;
  }
  .doc-layout.toc-sidebar-collapsed .doc-sidebar {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    padding: 12px 4px !important;
  }
}

/* Linkerkolom: Sticky Sidebar & Inhoudsopgave */
.doc-sidebar {
  position: sticky;
  top: 92px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 16px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  transition: all 0.3s ease;
}

.doc-btn-toc-action {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
}

.doc-btn-toc-action:hover {
  background: rgba(0, 212, 158, 0.12);
  color: var(--mint-deep);
  border-color: rgba(0, 212, 158, 0.35);
}

[data-theme="dark"] .doc-btn-toc-action {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

[data-theme="dark"] .doc-btn-toc-action:hover {
  background: rgba(0, 212, 158, 0.18);
  color: #00f0b5;
  border-color: rgba(0, 212, 158, 0.4);
}

/* Extra spatie tussen opsommingstekens / bullet points */
.doc-content ul li + li,
.doc-content ol li + li,
.doc-card ul li + li,
.doc-card ol li + li,
.doc-substep ul li + li,
.doc-substep ol li + li {
  margin-top: 14px !important;
}

.doc-content ul li,
.doc-content ol li,
.doc-card ul li,
.doc-card ol li {
  line-height: 1.65;
}

[data-theme="dark"] .doc-sidebar {
  background: rgba(18, 26, 38, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Zoekbalk bovenaan */
.doc-search-box {
  position: relative;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.doc-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.doc-search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.doc-search-input {
  width: 100%;
  padding: 12px 38px 12px 42px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-surface, #f8fafc);
  color: var(--text-headline);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.03);
}

[data-theme="dark"] .doc-search-input {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.doc-search-input:focus {
  border-color: var(--mint-primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(0, 212, 158, 0.18);
}

.doc-search-input:focus ~ .doc-search-icon {
  color: var(--mint-primary);
}

.doc-search-clear-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.doc-search-clear-btn:hover {
  color: var(--text-headline);
  background: rgba(0,0,0,0.06);
}

/* Zoek Resultaten Status */
.doc-search-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 6px;
  padding: 0 4px;
}

/* Inhoudsopgave Scroll Container */
.doc-toc-container {
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 158, 0.3) transparent;
}

.doc-toc-container::-webkit-scrollbar {
  width: 5px;
}
.doc-toc-container::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 158, 0.3);
  border-radius: 4px;
}

/* Inhoudsopgave Groepen & Uitvouwbare Menu's (Default Gesloten) */
.doc-toc-group {
  margin-bottom: 8px;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  background: var(--bg-surface, #f8fafc);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

[data-theme="dark"] .doc-toc-group {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.doc-toc-group:hover {
  border-color: rgba(0, 212, 158, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.doc-toc-group.is-open {
  border-color: rgba(0, 212, 158, 0.45);
  background: var(--bg-card);
  box-shadow: 0 4px 14px rgba(0, 212, 158, 0.08);
}

[data-theme="dark"] .doc-toc-group.is-open {
  border-color: rgba(0, 212, 158, 0.45);
  background: rgba(18, 26, 38, 0.7);
}

.doc-toc-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.doc-toc-group-toggle:hover {
  background: rgba(0, 0, 0, 0.025);
}

[data-theme="dark"] .doc-toc-group-toggle:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Hoofdcontainer van titel en badge: strikt 1 lijn */
.doc-toc-group-main {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.doc-toc-group-title {
  font-family: var(--font-sans, 'Plus Jakarta Sans', -apple-system, sans-serif);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-headline);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

/* Badge tags voor de groep headers */
.doc-toc-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 3px 7px;
  border-radius: 6px;
  flex-shrink: 0;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.doc-badge-studio {
  background: rgba(0, 212, 158, 0.12);
  color: var(--mint-deep, #008764);
  border: 1px solid rgba(0, 212, 158, 0.28);
}

.doc-badge-planning {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.28);
}

.doc-badge-google {
  background: rgba(66, 133, 244, 0.12);
  color: #1a73e8;
  border: 1px solid rgba(66, 133, 244, 0.28);
}

.doc-badge-facebook {
  background: rgba(24, 119, 242, 0.12);
  color: #1877f2;
  border: 1px solid rgba(24, 119, 242, 0.28);
}

.doc-badge-instagram {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.15), rgba(131, 58, 180, 0.15));
  color: #e1306c;
  border: 1px solid rgba(225, 48, 108, 0.3);
}

.doc-badge-linkedin {
  background: rgba(10, 102, 194, 0.12);
  color: #0a66c2;
  border: 1px solid rgba(10, 102, 194, 0.28);
}

[data-theme="dark"] .doc-badge-studio {
  background: rgba(0, 212, 158, 0.18);
  color: #00f0b5;
  border-color: rgba(0, 212, 158, 0.35);
}

[data-theme="dark"] .doc-badge-planning {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.35);
}

[data-theme="dark"] .doc-badge-google {
  background: rgba(66, 133, 244, 0.2);
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.35);
}

[data-theme="dark"] .doc-badge-facebook {
  background: rgba(24, 119, 242, 0.2);
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.35);
}

[data-theme="dark"] .doc-badge-instagram {
  background: rgba(225, 48, 108, 0.22);
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.35);
}

[data-theme="dark"] .doc-badge-linkedin {
  background: rgba(10, 102, 194, 0.2);
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.35);
}

.doc-toc-group-right {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  margin-left: 6px;
}

.doc-toc-chevron {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
  width: 13px;
  height: 13px;
}

.doc-toc-group.is-open .doc-toc-chevron {
  transform: rotate(180deg);
  color: var(--mint-deep);
}

[data-theme="dark"] .doc-toc-group.is-open .doc-toc-chevron {
  color: #00f0b5;
}

.doc-toc-group-count {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 7px;
  border-radius: 99px;
  color: var(--text-muted);
  line-height: 1.2;
}

[data-theme="dark"] .doc-toc-group-count {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.doc-toc-upcoming-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex-shrink: 0;
}

[data-theme="dark"] .doc-toc-upcoming-badge {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

.doc-toc-nav {
  display: none;
  flex-direction: column;
  gap: 3px;
  padding: 4px 8px 10px;
  border-top: 1px solid var(--border-light);
}

[data-theme="dark"] .doc-toc-nav {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.doc-toc-group.is-open .doc-toc-nav {
  display: flex;
}

/* Subtitels tussen fasen in de inhoudstafel */
.doc-toc-subheading {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 10px 10px 4px;
}

/* Toekomstige / Binnenkort modules (Instagram, Google, etc.) */
.doc-toc-group-upcoming {
  border: 1px dashed var(--border-light);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  margin-bottom: 10px;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.doc-toc-group-upcoming:hover {
  opacity: 0.95;
}

[data-theme="dark"] .doc-toc-group-upcoming {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Hoofdstuk introductiebalk in de documentatie */
.doc-chapter-intro-banner {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.08) 0%, rgba(0, 212, 158, 0.06) 100%), var(--bg-card);
  border: 1px solid rgba(24, 119, 242, 0.2);
  border-left: 4px solid #1877f2;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: -10px;
}

[data-theme="dark"] .doc-chapter-intro-banner {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.12) 0%, rgba(0, 212, 158, 0.08) 100%), rgba(18, 26, 38, 0.85);
  border-color: rgba(24, 119, 242, 0.3);
}

.doc-toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  border: 1px solid transparent;
}

.doc-toc-link:hover {
  background: var(--bg-surface, rgba(0, 0, 0, 0.03));
  color: var(--text-headline);
  transform: translateX(3px);
}

[data-theme="dark"] .doc-toc-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.doc-toc-link.active {
  background: rgba(0, 212, 158, 0.12);
  color: var(--mint-deep, #00a87d);
  border-color: rgba(0, 212, 158, 0.25);
  font-weight: 700;
}

[data-theme="dark"] .doc-toc-link.active {
  background: rgba(0, 212, 158, 0.15);
  color: #00f0b5;
  border-color: rgba(0, 212, 158, 0.35);
}

.doc-toc-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3.5px;
  background: var(--mint-primary);
  border-radius: 0 4px 4px 0;
}

/* Badge Tags: Perfect Gealigneerd (Vaste Breedte: 66px) & Harmonieuze Kleuren */
.doc-badge-step {
  width: 66px;
  min-width: 66px;
  max-width: 66px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 0;
  border-radius: 6px;
  flex-shrink: 0;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-headline);
}

[data-theme="dark"] .doc-badge-step {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

/* Categorie Overzicht (Intro, Studio) - Zacht Cyaan/Blauw */
.doc-badge-step.tag-overview {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.28);
}
[data-theme="dark"] .doc-badge-step.tag-overview {
  background: rgba(14, 165, 233, 0.18);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}

/* Categorie Voorbereiding (Fases, Scopes) - Zacht Paars/Indigo */
.doc-badge-step.tag-prep {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
  border: 1px solid rgba(139, 92, 246, 0.28);
}
[data-theme="dark"] .doc-badge-step.tag-prep {
  background: rgba(139, 92, 246, 0.18);
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.35);
}

/* Stappenplan 01 t/m 06 - Prachtig Levendig Mint/Groen (Allemaal Uniform!) */
.doc-badge-step.step-highlight,
.doc-badge-step.tag-finish {
  background: rgba(0, 212, 158, 0.14);
  color: var(--mint-deep, #008764);
  border: 1px solid rgba(0, 212, 158, 0.3);
  font-weight: 800;
}
[data-theme="dark"] .doc-badge-step.step-highlight,
[data-theme="dark"] .doc-badge-step.tag-finish {
  background: rgba(0, 212, 158, 0.20);
  color: #00f0b5;
  border-color: rgba(0, 212, 158, 0.4);
}

/* Categorie Support & FAQ - Zacht Amber/Oranje */
.doc-badge-step.tag-support,
.doc-badge-step.tag-faq {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.28);
}
[data-theme="dark"] .doc-badge-step.tag-support,
[data-theme="dark"] .doc-badge-step.tag-faq {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}

.doc-toc-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-toc-page-tag {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: var(--text-muted);
  opacity: 0.75;
  flex-shrink: 0;
}

/* Rechterkolom: Inhoud */
.doc-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Document Hero Header */
.doc-hero-banner {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.05) 0%, rgba(0, 212, 158, 0.08) 100%), var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 36px 36px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .doc-hero-banner {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.1) 0%, rgba(0, 212, 158, 0.12) 100%), rgba(18, 26, 38, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.doc-hero-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.doc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(0, 212, 158, 0.12);
  color: var(--mint-deep);
  border: 1px solid rgba(0, 212, 158, 0.25);
}
[data-theme="dark"] .doc-hero-badge {
  background: rgba(0, 212, 158, 0.18);
  color: #00f0b5;
  border-color: rgba(0, 212, 158, 0.35);
}

.doc-hero-title {
  font-family: var(--font-sans);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-headline);
  line-height: 1.25;
  margin: 0 0 12px;
}

.doc-hero-lead {
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.65;
  max-width: 860px;
  margin: 0 0 24px;
}

.doc-hero-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.doc-feature-pill {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform 0.2s ease;
}

.doc-feature-pill:hover {
  transform: translateY(-2px);
}

[data-theme="dark"] .doc-feature-pill {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.doc-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 158, 0.12);
  color: var(--mint-deep);
  flex-shrink: 0;
}
[data-theme="dark"] .doc-feature-icon {
  background: rgba(0, 212, 158, 0.2);
  color: #00f0b5;
}

.doc-feature-text h4 {
  font-size: 0.90rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text-headline);
}

.doc-feature-text p {
  font-size: 0.80rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Document Secties / Hoofdstukken */
.doc-section {
  scroll-margin-top: 100px;
}

.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: border-color 0.25s ease;
}

[data-theme="dark"] .doc-card {
  background: rgba(18, 26, 38, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.doc-card:hover {
  border-color: rgba(0, 212, 158, 0.3);
}

/* Sectie Header */
.doc-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

[data-theme="dark"] .doc-section-head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.doc-step-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.doc-step-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 212, 158, 0.15);
  color: var(--mint-deep, #008764);
  border: 1px solid rgba(0, 212, 158, 0.3);
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
}

[data-theme="dark"] .doc-step-tag {
  background: rgba(0, 212, 158, 0.2);
  color: #00f0b5;
  border-color: rgba(0, 212, 158, 0.4);
}

.doc-step-tag.tag-overview {
  background: rgba(14, 165, 233, 0.15);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.3);
}
[data-theme="dark"] .doc-step-tag.tag-overview {
  background: rgba(14, 165, 233, 0.22);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}

.doc-step-tag.tag-prep {
  background: rgba(139, 92, 246, 0.15);
  color: #7c3aed;
  border: 1px solid rgba(139, 92, 246, 0.3);
}
[data-theme="dark"] .doc-step-tag.tag-prep {
  background: rgba(139, 92, 246, 0.22);
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.35);
}

.doc-step-tag.tag-finish {
  background: rgba(0, 212, 158, 0.18);
  color: var(--mint-deep, #008764);
  border: 1px solid rgba(0, 212, 158, 0.35);
}
[data-theme="dark"] .doc-step-tag.tag-finish {
  background: rgba(0, 212, 158, 0.25);
  color: #00f0b5;
  border-color: rgba(0, 212, 158, 0.45);
}

.doc-step-tag.tag-faq,
.doc-step-tag.tag-support {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
[data-theme="dark"] .doc-step-tag.tag-faq,
[data-theme="dark"] .doc-step-tag.tag-support {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}

.doc-section-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-headline);
  margin: 0;
}

.doc-section-subtitle {
  font-size: 0.94rem;
  color: var(--text-body);
  margin-top: 6px;
  line-height: 1.5;
}

.doc-external-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #1877f2;
  background: rgba(24, 119, 242, 0.08);
  border: 1px solid rgba(24, 119, 242, 0.2);
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.doc-external-link-btn:hover {
  background: rgba(24, 119, 242, 0.16);
  border-color: #1877f2;
  transform: translateY(-1px);
}

[data-theme="dark"] .doc-external-link-btn {
  background: rgba(24, 119, 242, 0.18);
  border-color: rgba(24, 119, 242, 0.4);
  color: #60a5fa;
}

/* Stappen Sub-Items */
.doc-substep {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-light);
}

[data-theme="dark"] .doc-substep {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.doc-substep:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.doc-substep-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.doc-substep-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-headline);
  margin: 0;
}

.doc-substep-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 24px;
  padding: 2px 7px;
  box-sizing: border-box;
  border-radius: 7px;
  background: var(--gradient-mint, linear-gradient(135deg, #00f0b5, #00c993));
  color: #04241b;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 212, 158, 0.25);
}

.doc-substep-stage-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0,0,0,0.04);
  padding: 3px 8px;
  border-radius: 6px;
}

[data-theme="dark"] .doc-substep-stage-pill {
  background: rgba(255, 255, 255, 0.06);
}

.doc-substep-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 16px;
}

/* Screenshot Frame & Lightbox Trigger */
.doc-screenshot-frame {
  margin: 18px 0 24px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: var(--bg-surface, #f8fafc);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

[data-theme="dark"] .doc-screenshot-frame {
  background: rgba(13, 19, 29, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.doc-screenshot-frame:hover {
  border-color: var(--mint-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 158, 0.15);
}

.doc-screenshot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

[data-theme="dark"] .doc-screenshot-bar {
  background: rgba(255, 255, 255, 0.04);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.doc-browser-dots {
  display: flex;
  gap: 5px;
}

.doc-browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

[data-theme="dark"] .doc-browser-dot {
  background: #475569;
}

.doc-screenshot-zoom-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--mint-deep);
  font-weight: 700;
}
[data-theme="dark"] .doc-screenshot-zoom-hint {
  color: #00f0b5;
}

.doc-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.doc-screenshot-caption {
  padding: 10px 14px;
  font-size: 0.80rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  background: var(--bg-card);
  line-height: 1.4;
}

[data-theme="dark"] .doc-screenshot-caption {
  background: rgba(255, 255, 255, 0.02);
  border-top-color: rgba(255, 255, 255, 0.06);
}

/* Callout Boxen */
.doc-callout {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  margin: 18px 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.doc-callout-tip {
  background: rgba(0, 212, 158, 0.08);
  border: 1px solid rgba(0, 212, 158, 0.25);
  border-left: 4px solid var(--mint-primary);
  color: var(--text-headline);
}

.doc-callout-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-left: 4px solid #f59e0b;
  color: var(--text-headline);
}

.doc-callout-info {
  background: rgba(24, 119, 242, 0.08);
  border: 1px solid rgba(24, 119, 242, 0.25);
  border-left: 4px solid #1877f2;
  color: var(--text-headline);
}

.doc-callout-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Scopes Tabel */
.doc-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .doc-table-wrapper {
  border-color: rgba(255, 255, 255, 0.1);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}

.doc-table th {
  background: var(--bg-surface, #f1f5f9);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-headline);
  border-bottom: 1px solid var(--border-light);
}

[data-theme="dark"] .doc-table th {
  background: rgba(255, 255, 255, 0.05);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.doc-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
}

[data-theme="dark"] .doc-table td {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.doc-scope-code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(24, 119, 242, 0.09);
  color: #1877f2;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

[data-theme="dark"] .doc-scope-code {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
}

.doc-btn-copy-scope {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 2px 4px;
  opacity: 0.65;
  transition: opacity 0.2s;
}
.doc-btn-copy-scope:hover {
  opacity: 1;
}

.doc-badge-status-req {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .doc-badge-status-req {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.doc-badge-status-ig {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(225, 48, 108, 0.12);
  color: #e1306c;
  border: 1px solid rgba(225, 48, 108, 0.3);
}

[data-theme="dark"] .doc-badge-status-ig {
  background: rgba(225, 48, 108, 0.2);
  color: #ff6584;
}

/* Lightbox Modal voor Schermvoorbeelden */
.doc-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.doc-lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.doc-lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.doc-lightbox-modal.active .doc-lightbox-content {
  transform: scale(1);
}

.doc-lightbox-img {
  max-width: 100%;
  max-height: calc(85vh - 70px);
  object-fit: contain;
  display: block;
}

.doc-lightbox-caption-bar {
  padding: 12px 20px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-headline);
  font-weight: 600;
}

[data-theme="dark"] .doc-lightbox-caption-bar {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.1);
}

.doc-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all 0.2s ease;
  z-index: 2;
}

.doc-lightbox-close:hover {
  background: #ef4444;
  transform: scale(1.08);
}

/* ==========================================================================
   PLATFORM NAVIGATION TABS (Post Studio vs Google Bedrijfsprofiel vs LinkedIn)
   ========================================================================== */
.platform-nav-wrapper {
  margin-bottom: 24px;
}

.platform-nav-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  width: 100%;
}

.platform-nav-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg, 16px);
  text-decoration: none;
  color: var(--text-headline);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.platform-nav-tab:hover:not(.is-disabled) {
  border-color: rgba(0, 212, 158, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.platform-nav-tab.is-active {
  border-color: var(--mint-primary, #00d49e);
  background: var(--bg-panel);
  box-shadow: 0 6px 20px rgba(0, 212, 158, 0.12);
}

[data-theme="dark"] .platform-nav-tab {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .platform-nav-tab:hover:not(.is-disabled) {
  border-color: rgba(0, 212, 158, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .platform-nav-tab.is-active {
  background: #131d33;
  border-color: var(--mint-primary, #00d49e);
  box-shadow: 0 6px 24px rgba(0, 212, 158, 0.15);
}

.platform-nav-tab.is-disabled {
  opacity: 0.65;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.platform-tab-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-tab-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .platform-tab-icon-wrap {
  background: rgba(255, 255, 255, 0.05);
}

.platform-tab-title {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-headline);
}

.platform-tab-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

.platform-tab-badge {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill, 99px);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.platform-tab-badge.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .platform-tab-badge.badge-active {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.platform-tab-badge.badge-connected {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .platform-tab-badge.badge-connected {
  background: rgba(59, 130, 246, 0.22);
  color: #60a5fa;
}

.platform-tab-badge.badge-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.platform-tab-badge.badge-upcoming {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Cross-post concept banner */
.crosspost-import-banner {
  background: linear-gradient(135deg, rgba(0, 212, 158, 0.12), rgba(24, 119, 242, 0.12));
  border: 1px solid rgba(0, 212, 158, 0.35);
  border-radius: var(--radius-md, 12px);
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   GOOGLE BEDRIJFSPROFIEL HUB (google_business.php)
   ========================================================================== */
.google-hub-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.google-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg, 16px);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

[data-theme="dark"] .google-stat-card {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
}

.google-stat-label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.google-stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-headline);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.google-subtabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill, 99px);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

[data-theme="dark"] .google-subtabs-nav {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
}

.google-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill, 99px);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.google-subtab-btn:hover {
  color: var(--text-headline);
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .google-subtab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.google-subtab-btn.is-active {
  background: var(--mint-primary, #00d49e);
  color: #032014;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 212, 158, 0.25);
}

.subtab-text-short {
  display: none !important;
}
.subtab-text-full {
  display: inline !important;
}

/* Review Cards & Listing */
.google-reviews-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.google-review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg, 16px);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

[data-theme="dark"] .google-review-card {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
}

.google-review-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.google-review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.reviewer-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #475569;
}

.reviewer-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-headline);
  margin-bottom: 2px;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.gold-stars {
  color: #f59e0b;
  display: inline-flex;
  gap: 2px;
  font-size: 1rem;
}

.review-comment {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-body);
  margin: 12px 0 16px 0;
  white-space: pre-line;
}

.owner-reply-box {
  background: rgba(66, 133, 244, 0.05);
  border-left: 3px solid #4285f4;
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin-top: 14px;
}

[data-theme="dark"] .owner-reply-box {
  background: rgba(66, 133, 244, 0.10);
  border-left-color: #60a5fa;
}

.owner-reply-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.80rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 6px;
}

[data-theme="dark"] .owner-reply-title {
  color: #93c5fd;
}

.owner-reply-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-headline);
}

/* Reply Composer Form */
.review-reply-composer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-light);
}

[data-theme="dark"] .review-reply-composer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.btn-ai-suggest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill, 99px);
  font-size: 0.78rem;
  font-weight: 700;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ai-suggest:hover {
  background: rgba(124, 58, 237, 0.2);
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-ai-suggest {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.22);
}

/* Google Maps Search & Knowledge Panel Mockup */
.google-preview-card {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(60, 64, 67, 0.12);
  color: #202124;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 480px;
  margin: 0 auto;
}

.google-preview-header {
  padding: 14px 16px 10px 16px;
  border-bottom: 1px solid #f1f3f4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.google-preview-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #1a73e8;
  flex-shrink: 0;
}

.google-preview-brand-info {
  flex: 1;
  min-width: 0;
}

.google-preview-brand-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.google-preview-brand-sub {
  font-size: 0.74rem;
  color: #5f6368;
  display: flex;
  align-items: center;
  gap: 4px;
}

.google-preview-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f1f3f4;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.google-preview-body {
  padding: 16px;
}

.google-preview-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #3c4043;
  margin-bottom: 14px;
  white-space: pre-line;
  word-break: break-word;
}

.google-preview-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  background: #1a73e8;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
  transition: background 0.15s ease;
}

.google-preview-cta-btn:hover {
  background: #1557b0;
}

.google-preview-footer {
  padding: 10px 16px;
  background: #f8f9fa;
  border-top: 1px solid #f1f3f4;
  font-size: 0.72rem;
  color: #70757a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Fallback Box Styles (Geen Klantprofiel) */
body.no-client-body { background: #070a0f; color: #f1f5f9; display: flex; align-items: center; justify-content: center; height: 100vh; font-family: sans-serif; }
.no-client-box { background: #0d131d; padding: 40px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); text-align: center; max-width: 500px; }

/* Dashboard Print Styles */
@media print {
  .portal-nav, .portal-filter-console, .portal-filter-bar, .admin-preview-banner, .btn-print-report, #theme-toggle {
    display: none !important;
  }
  .portal-page {
    padding: 0 !important;
  }
  .checklist-card {
    page-break-inside: avoid;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}

/* ==========================================================================
   PORTAL MOBILE RESPONSIVE OPTIMIZATIONS (<= 768px & <= 480px)
   ========================================================================== */
@media (max-width: 768px) {
  .portal-container {
    padding: 0 14px !important;
  }

  .portal-page {
    padding-top: 14px !important;
    padding-bottom: 60px !important;
  }

  .portal-welcome-strip {
    padding: 18px 16px !important;
    margin-bottom: 18px !important;
    border-radius: 16px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .portal-welcome-title {
    font-size: clamp(1.25rem, 5vw, 1.55rem) !important;
  }

  .portal-welcome-sub {
    font-size: 0.84rem !important;
    gap: 8px !important;
  }

  .portal-stat-card {
    padding: 16px 14px !important;
    border-radius: 16px !important;
  }

  /* Filter Console Container */
  .portal-filter-console {
    padding: 14px 14px 12px !important;
    border-radius: 16px !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }

  .portal-filter-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  /* Horizontal swipeable category chips */
  .portal-filter-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 2px 2px 4px 2px !important;
    margin: 0 !important;
  }

  .portal-filter-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .portal-tab-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.82rem !important;
    padding: 7px 14px !important;
    border-radius: 9999px !important;
  }

  /* Actions: Expand/collapse all + Search input */
  .portal-filter-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
  }

  #btnToggleAllSectors {
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.82rem !important;
    border-radius: 9999px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }

  /* Search Box: strict 42px height, prevents oval/egg flex-basis stretching */
  .portal-search-box,
  .clients-search-box {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 9999px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
  }

  .portal-search-input,
  .clients-search-box input {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    line-height: 40px !important;
    font-size: 15px !important;
    padding: 0 38px 0 38px !important;
    box-sizing: border-box !important;
  }

  .portal-search-icon,
  .clients-search-icon {
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  /* Priority Filter Strip: compact horizontal scroll */
  .portal-priority-strip {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    padding-top: 10px !important;
    border-top: 1px solid var(--border-light) !important;
  }

  .priority-strip-label {
    font-size: 0.72rem !important;
    letter-spacing: 0.05em !important;
  }

  .priority-pills-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 2px 2px 4px 2px !important;
  }

  .priority-pills-group::-webkit-scrollbar {
    display: none !important;
  }

  .priority-filter-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.78rem !important;
    padding: 6px 12px !important;
  }

  .priority-strip-hint,
  .hide-mobile {
    display: none !important;
  }

  /* Checklist Category Header on Mobile */
  .checklist-category-section {
    margin-bottom: 18px !important;
  }

  .category-section-header {
    padding: 12px 14px !important;
    border-radius: 12px !important;
    gap: 8px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    margin-bottom: 12px !important;
  }

  .category-header-left {
    width: 100% !important;
  }

  .category-header-right {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 6px !important;
    border-top: 1px dashed rgba(0, 0, 0, 0.06) !important;
  }

  [data-theme="dark"] .category-header-right {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
  }

  .category-title,
  .category-section-title {
    font-size: 0.98rem !important;
    line-height: 1.3 !important;
  }

  .category-description,
  .category-section-desc {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }

  .category-progress-pill {
    font-size: 0.75rem !important;
    padding: 4px 10px !important;
  }

  .checklist-card {
    padding: 16px 14px !important;
    border-radius: 14px !important;
  }

  .checklist-card-top {
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .checklist-card-title {
    font-size: 1.02rem !important;
    line-height: 1.35 !important;
  }

  .fb-composer-steps-bar {
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .portal-welcome-strip {
    padding: 16px 14px;
  }
  .portal-welcome-sub {
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 4px;
  }
  .portal-stat-card {
    padding: 16px 14px;
  }
  .lighthouse-metrics-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 4px;
  }
  .lh-gauge {
    width: 58px;
    height: 58px;
  }
  .lh-gauge-val {
    font-size: 1.05rem;
  }
  .lh-metric-label {
    font-size: 0.68rem;
  }
  .lighthouse-diagnose-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .lighthouse-strategy-toggle {
    width: 100%;
  }
  .btn-strategy-tab {
    flex: 1;
    justify-content: center;
  }
  /* Lighthouse / Core Web Vitals Header Mobiel (Afbeelding 2 fix) */
  .pagespeed-card-expanded .portal-stat-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
  }
  .pagespeed-card-expanded .portal-stat-title {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    text-align: left !important;
  }
  .pagespeed-header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }
  .portal-pagespeed-web-link {
    flex: 1 !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 8px 12px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }
  .pagespeed-header-actions .portal-stat-icon-wrap {
    width: 38px !important;
    height: 38px !important;
    font-size: 18px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  /* Sociale Media Status Pillen (Afbeelding 3 fix) */
  .studio-channel-pills {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 12px 0 16px 0 !important;
  }
  .studio-channel-pill {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
    gap: 10px !important;
  }
  .studio-channel-pill > span:first-of-type {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: left !important;
    font-size: 0.82rem !important;
  }
  .studio-pill-badge-active,
  .studio-pill-badge-warn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 0.70rem !important;
    padding: 4px 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
  }
}

/* =========================================================================
   POST STUDIO & MOBIELE GEBRUIKERS OPTIMALISATIE (<= 900px)
   Herstelt alle proporties, voorkomt horizontale overflow, past knoppen
   en marges perfect aan voor mobiele telefoons en tablets.
   ========================================================================= */
@media (max-width: 900px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .portal-page {
    padding-top: 14px !important;
    padding-bottom: 40px !important;
    min-height: auto !important;
  }

  .portal-container {
    padding: 0 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Post Studio Sub-Navigatie: Strakke 3-knops gesegmenteerde balk op mobiel */
  .google-subtabs-nav.post-studio-subtabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    padding: 4px !important;
    background: var(--bg-surface, #ffffff) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-pill, 99px) !important;
    margin-bottom: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: visible !important;
  }
  .google-subtabs-nav:not(.post-studio-subtabs) {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding: 6px !important;
    background: var(--bg-surface, #ffffff) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-pill, 99px) !important;
    margin-bottom: 14px !important;
    scrollbar-width: none !important;
  }
  [data-theme="dark"] .google-subtabs-nav {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
  }
  .google-subtab-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 8px 4px !important;
    border-radius: var(--radius-pill, 99px) !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    gap: 4px !important;
    min-height: 38px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid transparent !important;
    white-space: nowrap !important;
  }
  .subtab-text-full {
    display: none !important;
  }
  .subtab-text-short {
    display: inline !important;
    white-space: nowrap !important;
  }
  .google-subtab-btn.is-active {
    background: var(--mint-primary, #00d49e) !important;
    color: #032014 !important;
    box-shadow: 0 2px 8px rgba(0, 212, 158, 0.25) !important;
  }
  [data-theme="dark"] .google-subtab-btn.is-active {
    background: var(--mint-primary, #00d49e) !important;
    color: #032014 !important;
  }

  /* Post Studio Sectie: evenwichtige padding, geen afwijkende dikke groene booglijn */
  .fb-studio-section {
    padding: 12px 10px !important;
    border-left: 1px solid var(--border-light) !important;
    border-radius: 14px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  [data-theme="dark"] .fb-studio-section {
    border-left-color: rgba(255, 255, 255, 0.08) !important;
  }

  /* Studio Header */
  .fb-studio-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
  }
  .fb-studio-title {
    font-size: 1.12rem !important;
    line-height: 1.25 !important;
  }
  .fb-studio-desc {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
  }

  /* Grid naar 1 kolom: 100% schermbreedte benutting */
  .fb-studio-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin-top: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .fb-composer-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 12px !important;
  }

  /* Stepper Bar: soepel swipebaar, compacte ronde pillen */
  .fb-composer-steps-bar {
    padding: 10px 8px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .fb-steps-track {
    margin-bottom: 8px !important;
  }
  .fb-steps-items {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
    padding-bottom: 2px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .fb-steps-items::-webkit-scrollbar {
    display: none !important;
  }
  .fb-step-pill {
    flex-shrink: 0 !important;
    padding: 5px 9px !important;
    font-size: 0.74rem !important;
    gap: 5px !important;
  }
  .fb-step-pill-circle {
    width: 16px !important;
    height: 16px !important;
    font-size: 0.64rem !important;
  }

  /* Stappenkaarten algemeen */
  .studio-step-card {
    padding: 12px 10px !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .studio-step-header {
    margin-bottom: 8px !important;
  }
  .studio-step-header-top {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
  }
  .studio-step-title-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .studio-step-badge {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.75rem !important;
    flex-shrink: 0 !important;
  }
  .studio-step-title {
    font-size: 0.98rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
  }
  .studio-step-desc {
    font-size: 0.80rem !important;
    line-height: 1.35 !important;
    margin-top: 4px !important;
  }
  .studio-step-meta-hint {
    font-family: var(--font-mono) !important;
    font-size: 0.68rem !important;
    color: var(--text-muted) !important;
    font-weight: 700 !important;
    display: block !important;
    margin-top: 2px !important;
  }
  .studio-channels-wrapper {
    padding: 10px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .studio-channels-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .studio-channel-label {
    width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
  }

  /* Stap 2: Startthema Knoppen (In 2 nette kolommen, zonder afkappen van woorden) */
  .studio-theme-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .studio-theme-btn {
    padding: 10px 10px !important;
    min-height: 52px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
    text-align: left !important;
  }
  .studio-theme-btn-title {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.25 !important;
  }
  .studio-theme-btn-sub {
    font-size: 0.68rem !important;
    color: var(--text-muted) !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.25 !important;
    margin-top: 2px !important;
  }

  /* Stap 3: Bericht Tekstveld & Toolbar */
  .fb-post-textarea,
  .fb-textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important; /* Voorkomt auto-zoom op mobiel iOS/Android */
    padding: 12px 14px !important;
    min-height: 110px !important;
    line-height: 1.45 !important;
  }
  .fb-styler-toolbar {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    padding: 6px 8px !important;
    scrollbar-width: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .fb-styler-toolbar::-webkit-scrollbar {
    display: none !important;
  }
  .fb-styler-btn {
    flex-shrink: 0 !important;
    padding: 4px 7px !important;
    font-size: 0.72rem !important;
  }

  /* Stap 3: Emoji Toolbar & Woordenteller voor Mobiel */
  .fb-textarea-toolbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-top: 8px !important;
    padding-top: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .fb-emoji-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .fb-emoji-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    user-select: none !important;
  }
  .fb-emoji-scroll-track {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    touch-action: pan-x pan-y !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 3px 2px 5px 2px !important;
    box-sizing: border-box !important;
  }
  .fb-emoji-scroll-track::-webkit-scrollbar {
    display: none !important;
  }
  .fb-emoji-btn {
    min-inline-size: 38px !important;
    min-block-size: 38px !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 1.25rem !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
  }
  .fb-char-counter-wrap {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
    font-family: var(--font-mono) !important;
    font-size: 0.70rem !important;
    color: var(--text-muted) !important;
    padding-right: 2px !important;
    box-sizing: border-box !important;
  }

  /* Stap 4: Media Dropzone */
  .fb-dropzone {
    padding: 18px 12px !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Stap 5: Actieknoppen */
  .fb-composer-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .btn-fb-publish,
  .btn-fb-clear,
  #btnCopyDraftToGoogle {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 12px 16px !important;
    font-size: 0.90rem !important;
    box-sizing: border-box !important;
  }
  .fb-weblink-field,
  .fb-schedule-field,
  #inputPlaceSearch,
  #inputNewHashtag {
    font-size: 16px !important;
  }

  /* Rechterkolom: Live Preview Mockup (Onder de composer op mobiel) */
  .fb-mockup-wrap {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 14px !important;
  }
  .studio-tips-box {
    padding: 12px 14px !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .fb-mockup,
  .fb-mockup-card,
  .facebook-preview-card,
  .instagram-preview-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }

  /* Documentatie Mobiel: Inhoudstafel nooit sticky over tekst, netjes klapbaar */
  .doc-layout,
  .doc-layout.toc-sidebar-collapsed {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }
  .doc-sidebar {
    position: static !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    margin-bottom: 18px !important;
    z-index: 1 !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }
  .doc-layout.toc-sidebar-collapsed .doc-sidebar {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
  }
  .doc-layout.toc-sidebar-collapsed .doc-sidebar-collapsed-panel {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0 !important;
    gap: 10px !important;
  }
  .doc-layout.toc-sidebar-collapsed .doc-collapsed-strip-center {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    transform: none !important;
    writing-mode: horizontal-tb !important;
  }
  .doc-layout.toc-sidebar-collapsed .doc-collapsed-label {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    letter-spacing: 0.05em !important;
    font-size: 0.78rem !important;
  }
  .doc-layout.toc-sidebar-collapsed .doc-collapsed-strip-top,
  .doc-layout.toc-sidebar-collapsed .doc-collapsed-strip-bottom {
    display: flex !important;
    align-items: center !important;
  }

  .checklist-card {
    padding: 16px 14px;
  }
  .checklist-card-title {
    font-size: 1rem;
  }
  .checklist-card-top {
    flex-wrap: wrap;
    gap: 6px;
  }
}

