/* ============================================================
   Designsysteem — tokens, basis, shells en componenten.
   Licht/donker via <html data-bs-theme="light|dark"> (ook Bootstrap 5.3).
   Lettertype Inter (OFL), lokaal gehost — geen externe CDN.
   ============================================================ */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root, [data-bs-theme="light"] {
  --cc-brand: #4453e0; --cc-brand-2: #16b3c9; --cc-brand-ink: #2b37b8;
  --cc-bg: #f5f7fb; --cc-surface: #ffffff; --cc-surface-2: #eef1f7; --cc-border: #e1e6ef;
  --cc-text: #0e1726; --cc-muted: #5a667c; --cc-subtle: #8a95a8;
  --cc-success: #16a34a; --cc-success-bg: #e7f7ec; --cc-warn: #b45309; --cc-warn-bg: #fff4e0; --cc-danger: #dc2626; --cc-danger-bg: #fdecec; --cc-info-bg: #e9edff;
  --cc-shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 16px rgba(16,24,40,.06);
  --cc-shadow-lg: 0 20px 50px rgba(16,24,40,.16);
  --cc-radius: 14px; --cc-radius-sm: 10px;
  --cc-sidebar: 248px;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-bg: var(--cc-bg); --bs-body-color: var(--cc-text); --bs-border-color: var(--cc-border);
  --bs-secondary-color: var(--cc-muted); --bs-link-color-rgb: 68,83,224; --bs-link-hover-color-rgb: 43,55,184;
  --bs-primary: #4453e0; --bs-primary-rgb: 68,83,224; --bs-border-radius: 10px; --bs-border-radius-lg: 14px;
  color-scheme: light;
}
[data-bs-theme="dark"] {
  --cc-brand: #6b78ff; --cc-brand-2: #22c3d8; --cc-brand-ink: #a9b2ff;
  --cc-bg: #0a0f17; --cc-surface: #111824; --cc-surface-2: #172131; --cc-border: #243147;
  --cc-text: #e7ecf4; --cc-muted: #9aa6ba; --cc-subtle: #6f7c92;
  --cc-success: #34d399; --cc-success-bg: rgba(52,211,153,.12); --cc-warn: #fbbf24; --cc-warn-bg: rgba(251,191,36,.12); --cc-danger: #f87171; --cc-danger-bg: rgba(248,113,113,.12); --cc-info-bg: rgba(107,120,255,.14);
  --cc-shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.25);
  --bs-body-bg: var(--cc-bg); --bs-body-color: var(--cc-text); --bs-border-color: var(--cc-border);
  --bs-secondary-color: var(--cc-muted); --bs-link-color-rgb: 140,150,255; --bs-link-hover-color-rgb: 180,188,255;
  --bs-primary: #6b78ff; --bs-primary-rgb: 107,120,255;
  --bs-tertiary-bg: var(--cc-surface-2); --bs-secondary-bg: var(--cc-surface-2);
  color-scheme: dark;
}

/* ---------- Basis ---------- */
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--bs-body-font-family); background: var(--cc-bg); color: var(--cc-text); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 700; letter-spacing: -.015em; color: var(--cc-text); }
.text-muted, .form-text, .small.text-muted { color: var(--cc-muted) !important; }
a { text-underline-offset: .15em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--cc-brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
.cc-icon { flex: none; vertical-align: -.2em; }
.visually-hidden-focusable:focus { position: fixed !important; top: .5rem; left: .5rem; z-index: 2000; background: var(--cc-surface); padding: .5rem 1rem; border-radius: 8px; box-shadow: var(--cc-shadow); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Knoppen ---------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-padding-x: 1rem; --bs-btn-padding-y: .5rem; --bs-btn-border-radius: 10px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; letter-spacing: -.005em; }
.btn-sm { --bs-btn-padding-x: .7rem; --bs-btn-padding-y: .3rem; --bs-btn-font-size: .85rem; min-height: 34px; }
.btn-lg { --bs-btn-padding-x: 1.4rem; --bs-btn-padding-y: .75rem; min-height: 50px; }
.btn-primary { --bs-btn-bg: var(--cc-brand); --bs-btn-border-color: var(--cc-brand); --bs-btn-hover-bg: var(--cc-brand-ink); --bs-btn-hover-border-color: var(--cc-brand-ink);
  --bs-btn-active-bg: var(--cc-brand-ink); --bs-btn-active-border-color: var(--cc-brand-ink); --bs-btn-disabled-bg: var(--cc-brand); --bs-btn-disabled-border-color: var(--cc-brand); box-shadow: 0 1px 2px rgba(16,24,40,.08), inset 0 1px 0 rgba(255,255,255,.15); }
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: #0b0f1a; --bs-btn-hover-color: #0b0f1a; --bs-btn-active-color: #0b0f1a; --bs-btn-hover-bg: #8c96ff; --bs-btn-hover-border-color: #8c96ff; }
.btn-outline-primary { --bs-btn-color: var(--cc-brand); --bs-btn-border-color: color-mix(in srgb, var(--cc-brand) 45%, transparent); --bs-btn-hover-bg: var(--cc-brand); --bs-btn-hover-border-color: var(--cc-brand); }
.btn-outline-secondary { --bs-btn-color: var(--cc-text); --bs-btn-border-color: var(--cc-border); --bs-btn-hover-bg: var(--cc-surface-2); --bs-btn-hover-color: var(--cc-text); --bs-btn-hover-border-color: var(--cc-border); --bs-btn-active-bg: var(--cc-surface-2); --bs-btn-active-color: var(--cc-text); background: var(--cc-surface); }
.btn-ghost { --bs-btn-color: var(--cc-muted); --bs-btn-hover-bg: var(--cc-surface-2); --bs-btn-hover-color: var(--cc-text); border: 0; }
.btn-gradient { color: #fff; border: 0; background: linear-gradient(135deg, var(--cc-brand) 0%, color-mix(in srgb, var(--cc-brand) 55%, var(--cc-brand-2)) 100%); box-shadow: 0 8px 24px color-mix(in srgb, var(--cc-brand) 35%, transparent); }
.btn-gradient:hover { color: #fff; filter: brightness(1.06); }

/* ---------- Formulieren ---------- */
.form-control, .form-select { border-radius: 10px; border-color: var(--cc-border); background-color: var(--cc-surface); color: var(--cc-text); min-height: 42px; }
.form-control:focus, .form-select:focus { border-color: var(--cc-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cc-brand) 18%, transparent); }
.form-label { font-weight: 600; font-size: .875rem; margin-bottom: .3rem; color: var(--cc-text); }
.form-check-input:checked { background-color: var(--cc-brand); border-color: var(--cc-brand); }
.validation-message, .text-danger { color: var(--cc-danger) !important; }

/* ---------- Kaarten, meldingen, badges ---------- */
.cc-card { background: var(--cc-surface); border: 1px solid var(--cc-border); border-radius: var(--cc-radius); box-shadow: var(--cc-shadow); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.cc-card > :last-child { margin-bottom: 0; }
.cc-card-title { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1rem; margin-bottom: .75rem; }
details.cc-card > summary { list-style: none; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
details.cc-card > summary::-webkit-details-marker { display: none; }
details.cc-card > summary::after { content: ""; margin-left: auto; width: .55rem; height: .55rem; border-right: 2px solid var(--cc-subtle); border-bottom: 2px solid var(--cc-subtle); transform: rotate(45deg); transition: transform .15s; }
details.cc-card[open] > summary::after { transform: rotate(225deg); }
details.cc-card[open] > summary { margin-bottom: .6rem; }
.alert { border-radius: 12px; border: 1px solid transparent; display: flex; gap: .6rem; align-items: flex-start; }
.alert-success { background: var(--cc-success-bg); color: var(--cc-text); border-color: color-mix(in srgb, var(--cc-success) 30%, transparent); }
.alert-warning { background: var(--cc-warn-bg); color: var(--cc-text); border-color: color-mix(in srgb, var(--cc-warn) 30%, transparent); }
.alert-danger { background: var(--cc-danger-bg); color: var(--cc-text); border-color: color-mix(in srgb, var(--cc-danger) 30%, transparent); }
.alert-info { background: var(--cc-info-bg); color: var(--cc-text); border-color: color-mix(in srgb, var(--cc-brand) 25%, transparent); }
.cc-status { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--cc-surface-2); color: var(--cc-muted); }
.cc-status::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; opacity: .9; }
.cc-status.Online { background: var(--cc-success-bg); color: var(--cc-success); }
.cc-status.Offline { background: var(--cc-danger-bg); color: var(--cc-danger); }
.cc-status.Connecting { background: var(--cc-warn-bg); color: var(--cc-warn); }
.cc-status.Online::before { box-shadow: 0 0 0 3px color-mix(in srgb, var(--cc-success) 25%, transparent); animation: cc-pulse 2s infinite; }
@keyframes cc-pulse { 50% { box-shadow: 0 0 0 6px transparent; } }
.cc-badge { display: inline-flex; align-items: center; font-size: .7rem; font-weight: 600; padding: .05rem .45rem; border-radius: 999px; background: var(--cc-surface-2); color: var(--cc-muted); margin-left: .3rem; }
.cc-badge.cont { background: var(--cc-info-bg); color: var(--cc-brand); }
.cc-badge.lock { background: var(--cc-warn-bg); color: var(--cc-warn); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--cc-text); --bs-table-border-color: var(--cc-border); }
.list-group { --bs-list-group-bg: var(--cc-surface); --bs-list-group-border-color: var(--cc-border); --bs-list-group-color: var(--cc-text); }
.progress { --bs-progress-bg: var(--cc-surface-2); --bs-progress-bar-bg: var(--cc-brand); border-radius: 999px; }
kbd { background: var(--cc-surface-2); color: var(--cc-text); border: 1px solid var(--cc-border); }

/* Lege toestand en laden */
.cc-empty { text-align: center; padding: 2.2rem 1rem; color: var(--cc-muted); }
.cc-empty .cc-empty-icon { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--cc-info-bg); color: var(--cc-brand); margin-bottom: .75rem; }
.cc-empty h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.cc-skeleton { background: linear-gradient(90deg, var(--cc-surface-2) 25%, color-mix(in srgb, var(--cc-surface-2) 60%, var(--cc-surface)) 50%, var(--cc-surface-2) 75%); background-size: 200% 100%; animation: cc-shimmer 1.2s infinite; border-radius: 10px; }
@keyframes cc-shimmer { to { background-position: -200% 0; } }

/* ---------- Logo ---------- */
.cc-logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; color: var(--cc-text); text-decoration: none; }
.cc-logo-name { line-height: 1; }

/* ---------- App-shell (aangemeld) ---------- */
.cc-app { min-height: 100vh; }
.cc-sidebar { display: none; }
.cc-appbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem; padding-top: max(.6rem, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--cc-surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--cc-border); }
.cc-appbar .cc-logo { margin-right: auto; text-decoration: none; }
.cc-content { padding: 1rem; padding-bottom: calc(84px + env(safe-area-inset-bottom)); max-width: 1240px; margin: 0 auto; }
.cc-bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--cc-surface) 94%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--cc-border); padding-bottom: env(safe-area-inset-bottom); }
.cc-bottomnav a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem .2rem .45rem; font-size: .68rem; font-weight: 600; color: var(--cc-muted); text-decoration: none; min-height: 56px; justify-content: center; }
.cc-bottomnav a.active { color: var(--cc-brand); }
.cc-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--cc-border); background: var(--cc-surface); color: var(--cc-text); }
.cc-iconbtn:hover { background: var(--cc-surface-2); }
.cc-theme-toggle .cc-icon-dark { display: none; }
[data-bs-theme="dark"] .cc-theme-toggle .cc-icon-dark { display: inline; }
[data-bs-theme="dark"] .cc-theme-toggle .cc-icon-light { display: none; }
.cc-pagehead { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: .25rem 0 1.1rem; }
.cc-pagehead h1 { font-size: 1.45rem; margin: 0; }
.cc-pagehead p { margin: 0; color: var(--cc-muted); flex-basis: 100%; }
.cc-pagehead .cc-actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 575px) { .cc-pagehead h1 { font-size: 1.3rem; } .cc-pagehead .cc-actions .btn { --bs-btn-padding-x: .75rem; min-height: 38px; font-size: .88rem; } }

@media (min-width: 992px) {
  .cc-app { display: grid; grid-template-columns: var(--cc-sidebar) minmax(0, 1fr); }
  .cc-sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 1.1rem .85rem; background: var(--cc-surface); border-right: 1px solid var(--cc-border); }
  .cc-sidebar .cc-logo { padding: .25rem .5rem 1.1rem; }
  .cc-side-nav { display: flex; flex-direction: column; gap: .15rem; }
  .cc-side-nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 10px; color: var(--cc-muted); font-weight: 600; font-size: .92rem; text-decoration: none; }
  .cc-side-nav a:hover { background: var(--cc-surface-2); color: var(--cc-text); }
  .cc-side-nav a.active { background: var(--cc-info-bg); color: var(--cc-brand); }
  .cc-side-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--cc-subtle); padding: 1rem .7rem .35rem; }
  .cc-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: .5rem; border-top: 1px solid var(--cc-border); padding-top: .8rem; }
  .cc-side-user { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--cc-muted); overflow: hidden; }
  .cc-side-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cc-appbar, .cc-bottomnav { display: none; }
  .cc-content { padding: 1.75rem 2rem 2.5rem; }
}

/* ---------- Publieke site ---------- */
.cc-public { min-height: 100vh; display: flex; flex-direction: column; }
.cc-public main { flex: 1; }
.cc-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.1rem; }
.cc-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--cc-bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--cc-border) 70%, transparent); }
.cc-header-inner { display: flex; align-items: center; gap: 1rem; height: 66px; }
.cc-header nav.cc-mainnav { display: none; gap: .25rem; }
.cc-header nav.cc-mainnav a { color: var(--cc-muted); font-weight: 600; font-size: .93rem; text-decoration: none; padding: .45rem .7rem; border-radius: 8px; }
.cc-header nav.cc-mainnav a:hover, .cc-header nav.cc-mainnav a.active { color: var(--cc-text); background: var(--cc-surface-2); }
.cc-header-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.cc-header-actions .cc-hide-sm { display: none; }
.cc-mobilemenu { position: relative; }
.cc-mobilemenu > summary { list-style: none; cursor: pointer; }
.cc-mobilemenu > summary::-webkit-details-marker { display: none; }
.cc-mobilemenu-panel { position: absolute; right: 0; top: calc(100% + .5rem); width: min(88vw, 320px); background: var(--cc-surface); border: 1px solid var(--cc-border); border-radius: 14px; box-shadow: var(--cc-shadow-lg); padding: .5rem; display: flex; flex-direction: column; }
.cc-mobilemenu-panel a { padding: .7rem .8rem; border-radius: 10px; color: var(--cc-text); font-weight: 600; text-decoration: none; }
.cc-mobilemenu-panel a:hover { background: var(--cc-surface-2); }
@media (max-width: 479px) { .cc-header-actions .cc-hide-xs { display: none; } .cc-hero-cta .btn { width: 100%; } }
.cc-mobilemenu-panel a.btn { color: #fff; }
@media (min-width: 900px) { .cc-header nav.cc-mainnav { display: flex; } .cc-mobilemenu { display: none; } .cc-header-actions .cc-hide-sm { display: inline-flex; } }

.cc-section { padding: 4.5rem 0; }
.cc-section-alt { background: var(--cc-surface); border-top: 1px solid var(--cc-border); border-bottom: 1px solid var(--cc-border); }
.cc-eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--cc-brand); margin-bottom: .6rem; }
.cc-section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.cc-section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: .6rem; }
.cc-section-head p { color: var(--cc-muted); font-size: 1.08rem; margin: 0; }
.cc-lead { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--cc-muted); }

.cc-hero { position: relative; overflow: hidden; padding: 3.5rem 0 4rem; }
.cc-hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 120%; z-index: -1;
  background: radial-gradient(60% 50% at 20% 20%, color-mix(in srgb, var(--cc-brand) 18%, transparent), transparent 70%),
              radial-gradient(50% 45% at 85% 10%, color-mix(in srgb, var(--cc-brand-2) 18%, transparent), transparent 70%); }
.cc-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.cc-hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; margin-bottom: 1.1rem; }
.cc-hero h1 .cc-grad { background: linear-gradient(120deg, var(--cc-brand), var(--cc-brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cc-hero-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 1.1rem; }
.cc-hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: var(--cc-muted); font-size: .9rem; padding: 0; list-style: none; margin: 0; }
.cc-hero-points li { display: inline-flex; align-items: center; gap: .35rem; }
.cc-hero-points .cc-icon { color: var(--cc-success); }
@media (min-width: 992px) { .cc-hero { padding: 5rem 0 5.5rem; } .cc-hero-grid { grid-template-columns: 1.02fr 1fr; } }

/* Dashboard-mockup (abstract, geen echte beelden) */
.cc-mock { border-radius: 18px; background: #0d1420; border: 1px solid #1f2a3d; box-shadow: var(--cc-shadow-lg); overflow: hidden; color: #cbd5e1; transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); }
.cc-mock-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; border-bottom: 1px solid #1f2a3d; font-size: .72rem; }
.cc-mock-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: #2a3650; display: inline-block; }
.cc-mock-bar b { margin-left: .4rem; font-weight: 600; color: #e2e8f0; }
.cc-mock-bar .cc-mock-live { margin-left: auto; color: #f87171; font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; }
.cc-mock-bar .cc-mock-live::before { content: ""; width: .45rem; height: .45rem; background: #ef4444; border-radius: 50%; }
.cc-mock-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr 1fr; gap: 4px; padding: 4px; aspect-ratio: 16/10; }
.cc-mock-grid > div { position: relative; border-radius: 6px; overflow: hidden; }
.cc-mock-grid > div:first-child { grid-row: span 3; }
.cc-mock-grid span { position: absolute; left: .45rem; top: .35rem; font-size: .62rem; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.cc-mock-grid em { position: absolute; right: .45rem; bottom: .35rem; font-style: normal; font-size: .58rem; color: #e2e8f0; opacity: .8; }
.cc-scene-a { background: linear-gradient(180deg, #2c4a6b 0%, #4e7aa0 38%, #8fb6c9 39%, #5e7d63 60%, #3e5a43 100%); }
.cc-scene-a::after { content: ""; position: absolute; left: 12%; bottom: 18%; width: 30%; height: 34%; background: linear-gradient(#c5ced8, #9aa7b6); clip-path: polygon(0 35%, 50% 0, 100% 35%, 100% 100%, 0 100%); }
.cc-scene-a::before { content: ""; position: absolute; left: 58%; top: 50%; width: 18%; height: 22%; border: 2px solid #fbbf24; border-radius: 4px; z-index: 1; }
.cc-scene-b { background: linear-gradient(180deg, #3a3f4b 0%, #555c6b 50%, #6b6f78 51%, #4b4f57 100%); }
.cc-scene-b::after { content: ""; position: absolute; left: 20%; bottom: 20%; width: 45%; height: 22%; background: #9ca3af; border-radius: 6px 10px 4px 4px; }
.cc-scene-c { background: linear-gradient(160deg, #1f3b2d, #3c6b4f 60%, #6a9a72); }
.cc-scene-d { background: linear-gradient(180deg, #202938 0%, #2f3b52 55%, #3d4b63 100%); }
.cc-scene-d::after { content: ""; position: absolute; right: 18%; top: 22%; width: 20%; height: 56%; background: linear-gradient(#5b6c8a, #46546e); border-radius: 3px; }
.cc-mock-time { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border-top: 1px solid #1f2a3d; }
.cc-mock-track { flex: 1; height: 8px; border-radius: 4px; background: #1d2738; position: relative; overflow: hidden; }
.cc-mock-track i { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: #ef4444; }
.cc-mock-track i.c { background: #3b82f6; opacity: .7; }
.cc-mock-float { position: absolute; display: flex; align-items: center; gap: .6rem; background: var(--cc-surface); color: var(--cc-text); border: 1px solid var(--cc-border); border-radius: 14px; box-shadow: var(--cc-shadow-lg); padding: .65rem .85rem; font-size: .82rem; }
.cc-mock-float .cc-ico { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--cc-info-bg); color: var(--cc-brand); }
.cc-mock-wrap { position: relative; padding: 1rem 0 2rem; }
.cc-mock-wrap .cc-mock-float.one { left: -.5rem; bottom: .3rem; }
.cc-mock-wrap .cc-mock-float.two { right: -.25rem; top: -.2rem; }
@media (max-width: 575px) { .cc-mock-wrap .cc-mock-float.two { display: none; } .cc-mock { transform: none; } }

.cc-features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cc-feature { background: var(--cc-surface); border: 1px solid var(--cc-border); border-radius: var(--cc-radius); padding: 1.35rem; box-shadow: var(--cc-shadow); }
.cc-feature h3 { font-size: 1.05rem; margin: .8rem 0 .35rem; }
.cc-feature p { color: var(--cc-muted); margin: 0; font-size: .95rem; }
.cc-feature-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--cc-brand); background: var(--cc-info-bg); }
.cc-steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.cc-step { position: relative; padding: 1.4rem 1.35rem 1.35rem; border-radius: var(--cc-radius); background: var(--cc-bg); border: 1px dashed var(--cc-border); }
.cc-step::before { counter-increment: step; content: counter(step); width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--cc-brand), var(--cc-brand-2)); margin-bottom: .7rem; }
.cc-step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.cc-step p { color: var(--cc-muted); margin: 0; font-size: .95rem; }
.cc-brands { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.cc-brands span { padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--cc-border); background: var(--cc-surface); color: var(--cc-muted); font-weight: 600; font-size: .9rem; }

.cc-pricing { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); align-items: stretch; }
.cc-plan { position: relative; display: flex; flex-direction: column; background: var(--cc-surface); border: 1px solid var(--cc-border); border-radius: 18px; padding: 1.4rem 1.1rem; box-shadow: var(--cc-shadow); }
.cc-plan.featured { border: 2px solid var(--cc-brand); box-shadow: 0 18px 44px color-mix(in srgb, var(--cc-brand) 22%, transparent); }
.cc-plan .cc-plan-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--cc-brand); color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px; white-space: nowrap; }
[data-bs-theme="dark"] .cc-plan .cc-plan-tag { color: #0b0f1a; }
.cc-plan h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.cc-plan .cc-plan-desc { color: var(--cc-muted); font-size: .88rem; min-height: 2.5em; }
.cc-plan .cc-price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; margin: .6rem 0 0; }
.cc-plan .cc-price small { font-size: .9rem; font-weight: 500; color: var(--cc-muted); letter-spacing: 0; }
.cc-plan .cc-price-note { font-size: .78rem; color: var(--cc-subtle); margin-bottom: 1rem; }
.cc-plan ul { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; gap: .5rem; font-size: .92rem; }
.cc-plan li { display: flex; gap: .5rem; align-items: flex-start; }
.cc-plan li .cc-icon { color: var(--cc-success); margin-top: .1rem; }
.cc-plan .btn { margin-top: auto; width: 100%; }

.cc-trust { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cc-trust-item { display: flex; gap: .85rem; align-items: flex-start; }
.cc-trust-item .cc-feature-icon { flex: none; }
.cc-trust-item h3 { font-size: 1rem; margin: 0 0 .2rem; }
.cc-trust-item p { margin: 0; color: var(--cc-muted); font-size: .93rem; }

.cc-faq { max-width: 820px; margin: 0 auto; display: grid; gap: .6rem; }
.cc-faq details { background: var(--cc-surface); border: 1px solid var(--cc-border); border-radius: 12px; padding: 1rem 1.15rem; }
.cc-faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; align-items: center; gap: .5rem; }
.cc-faq summary::-webkit-details-marker { display: none; }
.cc-faq summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--cc-brand); line-height: 1; }
.cc-faq details[open] summary::after { content: "–"; }
.cc-faq details p { color: var(--cc-muted); margin: .7rem 0 0; }

.cc-cta { border-radius: 22px; padding: 2.5rem 1.5rem; text-align: center; color: #fff; background: radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--cc-brand-2) 70%, transparent), transparent 60%), linear-gradient(135deg, #2b37b8, #4453e0 55%, #16a3b9); box-shadow: var(--cc-shadow-lg); }
.cc-cta h2 { color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.cc-cta p { color: rgba(255,255,255,.85); margin: .4rem auto 1.4rem; max-width: 560px; }
.cc-cta .btn-light { font-weight: 700; color: #2b37b8; }

.cc-footer { border-top: 1px solid var(--cc-border); background: var(--cc-surface); padding: 3rem 0 2rem; margin-top: 4rem; font-size: .92rem; }
.cc-footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.cc-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cc-subtle); margin-bottom: .8rem; }
.cc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.cc-footer a { color: var(--cc-muted); text-decoration: none; }
.cc-footer a:hover { color: var(--cc-text); }
.cc-footer-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; border-top: 1px solid var(--cc-border); margin-top: 2rem; padding-top: 1.3rem; color: var(--cc-subtle); font-size: .85rem; }
.cc-placeholder { background: var(--cc-warn-bg); color: var(--cc-warn); border-radius: 4px; padding: 0 .25rem; font-weight: 600; }

/* Inhoudspagina's (juridisch) */
.cc-prose { max-width: 780px; margin: 0 auto; }
.cc-prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.cc-prose h2 { font-size: 1.25rem; margin-top: 2rem; }
.cc-prose p, .cc-prose li { color: var(--cc-muted); line-height: 1.7; }

/* Auth-pagina's: gecentreerde kaart */
.cc-auth { max-width: 480px; margin: 2rem auto 0; background: var(--cc-surface); border: 1px solid var(--cc-border); border-radius: 18px; box-shadow: var(--cc-shadow-lg); padding: 1.75rem 1.5rem; }
.cc-auth h1 { font-size: 1.5rem; margin-bottom: 1rem; }
.cc-auth hr { border-color: var(--cc-border); opacity: 1; margin: 1rem 0; }
.cc-auth .form-floating > .form-control { min-height: 56px; }
.cc-auth .form-floating > label { color: var(--cc-muted); font-weight: 500; }
.cc-auth a { text-decoration: none; font-weight: 600; }
.cc-auth .row { --bs-gutter-x: 0; }
.cc-auth .col-lg-6, .cc-auth .col-md-4 { width: 100%; }
.cc-auth .cc-card { box-shadow: none; border-color: var(--cc-border); }
@media (max-width: 575px) { .cc-auth { margin-top: 1rem; padding: 1.25rem 1rem; border-radius: 14px; } }
@media (min-width: 768px) { .cc-auth:has(form[name="register"]), .cc-auth:has(.cc-card) { max-width: 760px; } }

/* ---------- Dashboard ---------- */
.cc-statrow { display: grid; gap: .85rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 1.25rem; }
@media (min-width: 1100px) { .cc-statrow { grid-template-columns: repeat(4, 1fr); } }
.cc-stat { display: flex; align-items: center; gap: .8rem; background: var(--cc-surface); border: 1px solid var(--cc-border); border-radius: var(--cc-radius); padding: .9rem 1rem; box-shadow: var(--cc-shadow); min-width: 0; }
.cc-stat > div { min-width: 0; }
.cc-stat-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--cc-brand); background: var(--cc-info-bg); }
.cc-stat-value { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.cc-stat-value small { font-size: .85rem; font-weight: 600; color: var(--cc-muted); }
.cc-stat-label { font-size: .78rem; color: var(--cc-muted); line-height: 1.25; }
.cc-dash-grid { display: grid; gap: 1.25rem; }
@media (min-width: 1200px) { .cc-dash-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.cc-camcards { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 768px) { .cc-camcards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .85rem; } }
.cc-camcard { display: block; text-decoration: none; color: inherit; background: var(--cc-surface); border: 1px solid var(--cc-border); border-radius: var(--cc-radius); overflow: hidden; box-shadow: var(--cc-shadow); transition: transform .12s, box-shadow .12s; }
.cc-camcard:hover { transform: translateY(-2px); box-shadow: var(--cc-shadow-lg); color: inherit; }
.cc-camcard-img { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #152033, #0c121c); }
.cc-camcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-camcard-none { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #4b5a73; }
.cc-camcard-img .cc-status { position: absolute; left: .55rem; top: .55rem; background: rgba(10,15,23,.72); backdrop-filter: blur(6px); }
.cc-camcard-play { position: absolute; right: .55rem; bottom: .55rem; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.92); color: #0e1726; opacity: 0; transition: opacity .15s; }
.cc-camcard:hover .cc-camcard-play { opacity: 1; }
.cc-camcard-body { padding: .7rem .85rem; display: flex; flex-direction: column; gap: .1rem; }
.cc-camcard-body span { font-size: .78rem; color: var(--cc-muted); }

/* ---------- Accountbeheer ---------- */
.cc-manage { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.cc-manage > * { min-width: 0; }
.cc-subnav { flex-wrap: nowrap; overflow-x: auto; gap: .25rem; scrollbar-width: none; padding-bottom: .25rem; }
.cc-subnav::-webkit-scrollbar { display: none; }
.cc-subnav .nav-link { white-space: nowrap; border-radius: 999px; padding: .4rem .85rem; color: var(--cc-muted); font-weight: 600; font-size: .88rem; border: 1px solid var(--cc-border); background: var(--cc-surface); }
.cc-subnav .nav-link.active { background: var(--cc-brand); border-color: var(--cc-brand); color: #fff; }
[data-bs-theme="dark"] .cc-subnav .nav-link.active { color: #0b0f1a; }
@media (min-width: 1200px) {
  .cc-manage { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
  .cc-subnav { flex-direction: column; overflow: visible; }
  .cc-subnav .nav-link { border: 0; background: transparent; border-radius: 10px; }
  .cc-subnav .nav-link:hover { background: var(--cc-surface-2); color: var(--cc-text); }
}
.cc-compare th, .cc-compare td { padding: .8rem 1rem; text-align: center; }
.cc-compare tbody th { text-align: left; font-weight: 600; }

/* Kebab-/meer-menu */
.cc-cam-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; align-items: center; }
.cc-more { position: relative; }
.cc-more > summary { list-style: none; }
.cc-more > summary::-webkit-details-marker { display: none; }
.cc-more-menu { position: absolute; z-index: 20; top: calc(100% + .35rem); left: 0; min-width: 210px; background: var(--cc-surface); border: 1px solid var(--cc-border); border-radius: 12px; box-shadow: var(--cc-shadow-lg); padding: .35rem; display: flex; flex-direction: column; }
.cc-more-menu > button, .cc-more-menu > a { display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left; background: none; border: 0; padding: .55rem .65rem; border-radius: 8px; color: var(--cc-text); font-size: .9rem; text-decoration: none; }
.cc-more-menu > button:hover, .cc-more-menu > a:hover { background: var(--cc-surface-2); }
.cc-more-menu > .text-danger { color: var(--cc-danger) !important; }
