/* ═══════════════════════════════════════════
   BASE.CSS — All structural + visual styles
   Theme tokens are loaded via theme-a/b.css
═══════════════════════════════════════════ */

/* ─── CSS RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── UTILITY CLASSES ─── */

/* Display & Visibility */
.hidden       { display: none !important; }
.block        { display: block; }
.flex         { display: flex; }
.inline-flex  { display: inline-flex; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-center   { align-items: center; }
.items-baseline { align-items: baseline; }
.items-start    { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.flex-1    { flex: 1; }
.flex-none { flex: 0 0 auto; }

/* Gaps */
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 10px; }
.gap-4 { gap: 12px; }
.gap-5 { gap: 16px; }
.gap-6 { gap: 20px; }
.gap-7 { gap: 28px; }

/* Margins */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 6px; }
.mb-3 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 12px; }
.mb-5 { margin-bottom: 14px; }
.mb-6 { margin-bottom: 16px; }
.mb-7 { margin-bottom: 20px; }
.mb-8 { margin-bottom: 24px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 6px; }
.mt-3 { margin-top: 8px; }
.mt-4 { margin-top: 12px; }
.mt-5 { margin-top: 14px; }
.mt-0 { margin-top: 0; }
.mr-2 { margin-right: 6px; }

/* Padding */
.pb-1 { padding-bottom: 4px; }
.pt-2 { padding-top: 8px; }
.pb-0 { padding-bottom: 0; }
.py-3 { padding-top: 14px; padding-bottom: 14px; }
.p-4  { padding: 16px 20px; }
.px-3 { padding-left: 14px; padding-right: 14px; }
.py-2 { padding-top: 10px; padding-bottom: 14px; }

/* Layout */
.relative { position: relative; }
.w-full   { width: 100%; }
.min-w-200 { min-width: 200px; }
.max-w-420 { max-width: 420px; }
.max-w-460 { max-width: 460px; }
.max-w-520 { max-width: 520px; }
.max-w-600 { max-width: 600px; }
.max-w-640 { max-width: 640px; }
.w-90  { width: 90%; }
.w-92  { width: 92%; }
.float-right { float: right; }

/* Text alignment & whitespace */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.whitespace-nowrap { white-space: nowrap; }
.no-decoration { text-decoration: none; }

/* Other structural */
.cursor-pointer { cursor: pointer; }
.overflow-x-auto { overflow-x: auto; }
.pointer-events-none { pointer-events: none; }
.disabled      { opacity: 0.45; pointer-events: none; }

/* ─── UTILITY — Typography (structural: alignment handled above) ─── */
/* NOTE: font-size, font-weight, font-family, etc. are in theme-a.css */

/* ─── UTILITY — Borders (structural) ─── */
/* NOTE: border colors are in theme-a.css */

/* ─── STATE CLASSES (structural pointer-events) ─── */
/* NOTE: colors for state classes are in theme-a.css */

/* ─── LABEL PATTERN ─── */
.label-upper {
  text-transform: uppercase;
}

/* Form label pattern (modals) */
.form-label {
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Section intro pattern */
.section-intro { margin-bottom: 16px; }
.section-intro-lg { margin-bottom: 20px; }
.section-title-h {
  margin-bottom: 4px;
}
.section-desc {
  line-height: 1.6;
}

/* ─── MODAL OVERLAY ─── */
.modal-overlay {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-overlay--darkest { z-index: 300; }
.modal-overlay--confirm { z-index: 400; }
.modal-overlay--top     { z-index: 10000; }

/* Modal box */
.modal-box {
  border-radius: 16px;
  animation: fadeIn .25s ease both;
}
.modal-box--confirm {
  border-radius: 14px;
}
.modal-box--sm { padding: 28px 28px 24px; max-width: 380px; width: 90%; }
.modal-box--md { padding: 32px; max-width: 420px; width: 90%; }
.modal-box--lg { padding: 36px; max-width: 460px; width: 92%; }

/* Form input (modals) */
.form-input {
  width: 100%;
  border-radius: 8px;
  padding: 10px 14px;
  outline: none;
}
.form-input--lg { padding: 11px 14px; }
.form-input--euro { padding-left: 28px; }
.form-input--select { cursor: pointer; appearance: none; }
.form-input-prefix {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
}

/* Fin table description column */
.fin-th-desc { min-width: 180px; }

/* Roadmap year select */
.rm-year-select { width: 100px; }

/* Primary action button (modals) */
.btn-action {
  padding: 12px;
  border-radius: 8px;
  border: none; cursor: pointer;
}
.btn-action--lg { padding: 13px; border-radius: 9px; }

/* Cancel/secondary button (modals) */
.btn-cancel {
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
}

/* Confirm/delete button */
.btn-confirm-delete {
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* Danger button (solid red) */
.btn-danger {
  padding: 9px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

/* Doorverwijzing buttons */
.dv-btn {
  padding: 8px 16px;
  border-radius: 7px;
  cursor: pointer;
}

/* Landing page instrument demo bars */
.demo-bar-sector  { width: 72%; }
.demo-bar-recurring { width: 45%; }
.demo-bar-dga     { width: 60%; }
.demo-bar-groei   { width: 80%; }

/* Legal pages nav */
.legal-nav {
  padding: 20px 48px;
  display: flex; align-items: center;
}

/* Verwachtingskloof card */
.vk-card {
  border-radius: 10px;
  padding: 16px 20px;
  display: flex; align-items: center;
  gap: 28px; flex-wrap: wrap;
}
.vk-arrow { flex: 0 0 auto; }
.vk-detail {
  flex: 1; min-width: 200px;
  padding-left: 24px;
}

/* Driver unknown CTA */
.drv-cta {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* Roadmap link */
.roadmap-link {
  text-decoration: none;
}

/* Sidebar reset button */
.btn-reset {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 7px;
  padding: 7px 12px;
  text-align: left;
}

/* Toast notification */
.toast-notification {
  position: fixed; top: 68px; left: 50%;
  transform: translateX(-50%);
  border-radius: 8px;
  padding: 10px 20px;
  z-index: 300;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}

/* Dev stamp */
.dev-stamp {
  position: fixed; bottom: 10px; left: 16px;
  z-index: 9998;
  pointer-events: none;
}

/* Waarde verhogen auto-berekend card */
.wv-auto-card {
  border-radius: 8px;
  padding: 14px;
}

/* Wv-confirm message */
.wv-confirm {
  margin-top: 14px;
  padding-top: 12px;
}

/* Chart container */
.chart-container { position: relative; }
.chart-container--sm { height: 220px; }
.chart-container--md { height: 260px; }

/* ─── GLOBAL ELEMENTS ─── */
html { height: 100%; scroll-behavior: smooth; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════
   INDEX — LANDINGSPAGINA
═══════════════════════════════════════════ */

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 64px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}

.nav-logo .logo-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
}

.nav-cta {
  padding: 8px 20px;
  border-radius: 6px;
}

/* NAV USER STATE */
.nav-user {
  display: none; align-items: center; gap: 10px;
  padding-left: 20px; margin-left: 4px;
}

.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.nav-user-info { display: flex; flex-direction: column; gap: 1px; }

.nav-user-email {
  max-width: 160px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

.nav-user-link {
  text-decoration: none;
}

/* INDEX — MOBILE NAV */
.nav-hamburger {
  display: none;
  width: 36px; height: 36px;
  border-radius: 6px;
  cursor: pointer;
  align-items: center; justify-content: center;
  border: none;
  background: none;
  font-size: 20px;
  line-height: 1;
}

.nav-mobile {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  z-index: 99;
  padding: 8px 12px 12px;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  display: block;
}

/* HERO */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: center;
  padding: 0 48px;
  overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  top: -100px; right: -100px;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  bottom: 0; left: 200px;
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 640px;
  animation: fadeUp .8s ease both;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding: 6px 14px;
  border-radius: 100px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-h1 {
  margin-bottom: 12px;
}

.hero-sub {
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  border: none; cursor: pointer;
  text-decoration: none;
}

.btn-primary--lg { padding: 16px 32px; }

.btn-ghost {
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}

.hero-trust {
  position: absolute; bottom: 40px; left: 48px; right: 48px;
  display: flex; align-items: center; gap: 40px;
  z-index: 2;
  animation: fadeUp 1s .3s ease both;
}

.hero-trust-item {
  display: flex; align-items: center; gap: 10px;
}

.hero-divider {
  width: 1px; height: 32px;
}

/* INSTRUMENT PANEL */
.hero-instrument {
  position: absolute; right: 48px; top: 50%;
  transform: translateY(-50%);
  width: 340px;
  z-index: 2;
  animation: fadeUp .9s .2s ease both;
}

.instrument-card {
  border-radius: 16px;
  padding: 28px;
}

.instrument-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}

.instrument-label {
  text-transform: uppercase;
}

.instrument-live {
  display: flex; align-items: center; gap: 5px;
}

.live-dot { width: 5px; height: 5px; border-radius: 50%; }

.instrument-value {
  margin-bottom: 4px;
}

.instrument-range {
  margin-bottom: 20px;
}

.band-label {
  display: flex; justify-content: space-between;
  margin-bottom: 6px;
}

.band {
  height: 6px; border-radius: 3px;
  position: relative; margin-bottom: 20px;
}

.band-indicator {
  position: absolute; top: 50%; left: 60%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  border-radius: 50%;
}

.instrument-drivers {
  display: flex; flex-direction: column; gap: 8px;
}

.instrument-drivers .driver-row {
  display: flex; align-items: center; justify-content: space-between;
}

.driver-bar-wrap {
  flex: 1; margin: 0 12px;
  height: 3px;
  border-radius: 2px; overflow: hidden;
}

.instrument-drivers .driver-bar { height: 100%; border-radius: 2px; }

.instrument-drivers .driver-val { min-width: 32px; text-align: right; }

.instrument-footer {
  margin-top: 20px; padding-top: 16px;
}

/* SECTIONS */
section { padding: 96px 48px; }

.container { max-width: 1100px; margin: 0 auto; }

/* HOW IT WORKS */
.section-eyebrow {
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-h2 {
  margin-bottom: 16px;
}

.section-sub {
  max-width: 520px;
  margin-bottom: 56px;
}

/* STEPS GRID */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  margin-top: 48px;
}

.step-col {
  padding: 36px 28px;
  border-radius: 12px;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  margin-top: 36px;
  font-size: 22px;
  opacity: 0.3;
}

.step-num {
  font-family: var(--serif);
  font-size: 40px; font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-size: 16px; font-weight: 600;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px; line-height: 1.6;
  margin-bottom: 16px;
}

.step-meta {
  font-size: 11px;
}

/* BEDRIJFSPROFIEL CATEGORIE CARDS */
.profile-cat-header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  margin: -24px -24px 20px;
  border-radius: 10px 10px 0 0;
  border-bottom: 1px solid var(--border);
}
.profile-cat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.profile-cat-title {
  font-size: 15px; font-weight: 600;
  font-family: var(--sans);
}
.profile-cat-sub {
  font-size: 12px; margin-top: 2px;
}
.wd-driver--last {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* PAIN SECTION */
.section-pain {
  position: relative; overflow: hidden;
}

.pain-grid-bg {
  position: absolute; inset: 0;
}

.pain-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

.pain-stat { margin-bottom: 32px; }

.pain-stat-num {
  line-height: 1;
  margin-bottom: 8px;
}

.pain-stat-label {
  max-width: 320px; line-height: 1.6;
}

.pain-quote {
  padding-left: 24px;
  margin-bottom: 24px;
}

.pain-quote-attr {
  padding-left: 24px;
}

/* FEATURES */
.features-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.feature-card {
  border-radius: 12px;
  padding: 28px;
}

.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.feature-title {
  margin-bottom: 8px;
}

.feature-body {
  line-height: 1.65;
}

/* CTA SECTION */
.section-cta {
  text-align: center;
  position: relative; overflow: hidden;
}

.cta-glow {
  position: absolute; inset: 0;
  pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-h2 {
  margin-bottom: 16px;
}

.cta-sub {
  margin-bottom: 40px;
  max-width: 480px; margin-left: auto; margin-right: auto;
}

.cta-buttons {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
}

.cta-note {
  margin-top: 20px;
}

/* FOOTER */
footer {
  padding: 40px 48px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}

.footer-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }

.footer-disclaimer {
  max-width: 780px;
  padding-top: 14px;
}

/* COOKIE CONSENT BANNER */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  padding: 20px 32px;
}
.cookie-banner-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 240px; }
.cookie-banner-text strong { display: block; margin-bottom: 4px; font-size: 14px; }
.cookie-banner-text p { margin: 0; font-size: 13px; line-height: 1.5; }
.cookie-banner-text a { text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; align-items: center; }
.cookie-btn-accept {
  border: none; border-radius: 6px;
  padding: 9px 22px; cursor: pointer; font-size: 13px; font-weight: 500;
}
.cookie-btn-reject {
  border-radius: 6px; padding: 9px 16px; cursor: pointer; font-size: 13px;
  background: transparent;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* HERO INPUT */
.hero-input-row {
  display: flex; gap: 0;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  max-width: 420px;
}

.hero-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding: 10px 16px 0;
}

.hero-select {
  flex: 1;
  border: none; outline: none;
  padding: 4px 36px 12px 16px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.hero-input {
  flex: 1;
  border: none; outline: none;
  padding: 4px 16px 12px;
}

.hero-go {
  display: block;
  width: 100%;
  max-width: 420px;
  border: none; cursor: pointer;
  border-radius: 0 0 10px 10px;
  padding: 15px 24px;
  text-align: center;
  margin-bottom: 20px;
}

.hero-input-hint {
  margin-bottom: 28px;
}

/* ─── INDEX MEDIA QUERIES ─── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  nav .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 100px 24px 48px; }
  .hero-instrument { display: none; }
  .hero-trust { left: 24px; right: 24px; flex-wrap: wrap; gap: 20px; }
  section { padding: 64px 24px; }
  .pain-content { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-input-row { flex-direction: column; border-radius: 10px 10px 0 0; }
  .hero-input { border-left: none !important; border-top: 1px solid var(--border); }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-trust { display: none; }
}

/* ═══════════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════════ */

/* ─── SIDEBAR ─── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: fixed; left: 0; top: 0; bottom: 0;
  z-index: 50;
}

.sidebar-logo {
  padding: 22px 20px 20px;
  display: flex; align-items: center; gap: 10px;
}

.logo-mark {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}

.sidebar-section { padding: 20px 12px 8px; }

.sidebar-label {
  text-transform: uppercase;
  padding: 0 8px;
  margin-bottom: 6px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 2px;
  text-decoration: none;
}

.nav-icon {
  width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.nav-item.locked {
  opacity: 0.4; cursor: default;
  pointer-events: none;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 16px 12px;
}

.level-badge {
  padding: 3px 8px; border-radius: 100px;
}

/* ─── MOBILE SIDEBAR TOGGLE ─── */
.sidebar-toggle {
  display: none;
  width: 36px; height: 36px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  border: none;
  background: none;
  font-size: 20px;
  margin-right: 4px;
  line-height: 1;
}

.sidebar-close {
  display: none;
  width: 28px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  border: none;
  background: none;
  margin-left: auto;
  font-size: 14px;
  line-height: 1;
}

.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  z-index: 48;
  cursor: pointer;
  background: rgba(var(--shadow-rgb),0.55);
}
.sidebar-backdrop.open { display: block; }

/* ─── MAIN ─── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* TOP BAR */
.topbar {
  min-height: 70px;
  display: flex; align-items: center;
  padding: 0 28px;
  gap: 0;
  position: sticky; top: 0; z-index: 40;
}

.topbar-company {
  display: flex; flex-direction: column; justify-content: center;
  padding-right: 28px;
  min-width: 0;
}

.topbar-title-input {
  border: none; outline: none;
  padding: 0; width: auto; max-width: 200px;
  display: block;
}

.topbar-sub {
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 3px;
}

.sector-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  border-radius: 10px; padding: 6px; min-width: 210px;
  z-index: 200;
  display: none;
}
.sector-dropdown.open { display: block; }
.sector-opt {
  padding: 8px 12px;
  border-radius: 6px; cursor: pointer;
}

/* CENTER VALUATION */
.topbar-val-center {
  display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative;
  padding: 0 32px;
  min-width: 200px;
}

.topbar-val-info {
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.topbar-val-label {
  text-transform: uppercase;
  margin-bottom: 2px;
}

.topbar-val-main {
  line-height: 1.1;
}

/* Disclaimer popover - topbar */
.val-info-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  padding: 2px 0 0;
}
.val-info-icon {
  line-height: 1;
}
.val-disclaimer-popover {
  display: none; position: absolute;
  top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: 380px; max-width: 92vw;
  border-radius: 12px; padding: 24px;
  z-index: 9000; text-align: left;
}
.val-disclaimer-popover.show { display: block; }
.val-disclaimer-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none;
  cursor: pointer; line-height: 1;
}
.val-disclaimer-title {
  margin-bottom: 12px;
}
.val-disclaimer-body p {
  margin: 0 0 10px;
}
.val-disclaimer-body p:last-child { margin-bottom: 0; }
.val-disclaimer-highlight {
  padding: 10px 12px; border-radius: 0 8px 8px 0;
}

.topbar-val-range {
  margin-top: 1px;
}


.topbar-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 12px;
  padding-left: 28px;
}

.accuracy-pill {
  display: flex; align-items: center; gap: 6px;
  border-radius: 100px;
  padding: 5px 12px;
}

.accuracy-dot {
  width: 6px; height: 6px; border-radius: 50%;
  animation: glow-amber 2s infinite;
}

@keyframes glow-amber {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--amber-rgb),0); }
  50% { box-shadow: 0 0 0 4px rgba(var(--amber-rgb),0.2); }
}

.btn-upgrade {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 7px;
  border: none; cursor: pointer;
}

.btn-save {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 7px;
  cursor: pointer;
}

/* ─── EMAIL CAPTURE BAR ─── */
.email-capture-bar {
  padding: 11px 28px;
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap;
}

.email-capture-text {
  flex: 1; min-width: 200px;
}

.email-capture-form { display: flex; gap: 8px; align-items: center; }

.email-capture-input {
  border-radius: 7px;
  padding: 8px 14px;
  outline: none; width: 220px;
}

.email-capture-btn {
  padding: 8px 16px; border-radius: 7px;
  border: none; cursor: pointer;
  white-space: nowrap;
}

.email-capture-btn:disabled { opacity: 0.6; cursor: default; }

/* ─── USER AVATAR ─── */
.user-avatar-wrap { position: relative; }

.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  user-select: none;
}

.user-dropdown {
  display: none;
  position: absolute; top: calc(100% + 10px); right: 0;
  border-radius: 10px;
  padding: 6px;
  min-width: 210px;
  z-index: 200;
  animation: fadeIn .15s ease;
}

.user-avatar.open + .user-dropdown { display: block; }

.user-dropdown-header {
  padding: 8px 10px 10px;
  margin-bottom: 4px;
}

.user-dropdown-label {
  text-transform: uppercase;
  margin-bottom: 3px;
}

.user-dropdown-email {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.user-dropdown-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 10px;
  background: none; border: none;
  border-radius: 6px; cursor: pointer;
  text-align: left;
}

/* ─── CONTENT ─── */
.content {
  padding: 24px 28px;
  flex: 1;
}

/* GRID */
.grid-mid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* CARDS */
.card {
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  animation: fadeIn .4s ease both;
}

.card:nth-child(1) { animation-delay: .05s; }
.card:nth-child(2) { animation-delay: .1s; }
.card:nth-child(3) { animation-delay: .15s; }
.card:nth-child(4) { animation-delay: .2s; }
.card:nth-child(5) { animation-delay: .25s; }

.card-label {
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* VALUATION CARD */

.val-main {
  line-height: 1;
  margin-bottom: 4px;
}

.val-range {
  margin-bottom: 16px;
}

/* Bandwidth visualizer */
.bw-track {
  position: relative;
  height: 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  overflow: visible;
}

.bw-fill {
  position: absolute;
  top: 0; height: 100%; border-radius: 4px;
  left: 10%; right: 15%;
}

.bw-pointer {
  position: absolute;
  top: 50%; left: 58%;
  transform: translate(-50%, -50%);
  width: 16px; height: 16px;
  border-radius: 50%;
}

.bw-labels {
  display: flex; justify-content: space-between;
  margin-bottom: 14px;
}

.bw-note {
  padding: 8px 12px;
  border-radius: 7px;
}

/* STAT CARDS */
.stat-value {
  line-height: 1;
  margin-bottom: 4px;
}

/* LOCKED OVERLAY */
.lock-overlay {
  position: absolute; inset: 0;
  border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  z-index: 10;
  cursor: pointer;
}

/* DRIVERS CARD */
.drivers-list { display: flex; flex-direction: column; gap: 10px; }

.driver-row {
  display: flex; align-items: center; gap: 10px;
}

.driver-label {
  min-width: 130px;
}

.driver-bar-bg {
  flex: 1; height: 5px;
  border-radius: 3px; overflow: hidden;
}

.driver-bar { height: 100%; border-radius: 3px; }

.driver-val {
  min-width: 48px; text-align: right;
}

.driver-impact {
  min-width: 60px; text-align: right;
}

.driver-row.blurred .driver-bar-bg,
.driver-row.blurred .driver-val,
.driver-row.blurred .driver-impact {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

/* EXIT READINESS */
.readiness-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.readiness-item {
  border-radius: 8px;
  padding: 12px;
}

.readiness-name {
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 5px;
}

.readiness-score-row {
  display: flex; align-items: center; gap: 8px;
}

.readiness-bar-bg {
  flex: 1; height: 4px;
  border-radius: 2px; overflow: hidden;
}

.readiness-bar { height: 100%; border-radius: 2px; }

.readiness-blurred .readiness-num,
.readiness-blurred .readiness-bar-bg {
  filter: blur(5px);
}

/* SECTION HEADER */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}

.section-action {
  cursor: pointer;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── DASHBOARD MOBILE ─── */
@media (max-width: 900px) {
  /* Sidebar wordt overlay die van links inschuift */
  .sidebar {
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 200;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(var(--shadow-rgb),.55);
  }
  .sidebar-toggle { display: flex; }
  .sidebar-close  { display: flex; }
  .main { margin-left: 0; }
  footer { margin-left: 0 !important; }
  .grid-mid { grid-template-columns: 1fr; }
  .topbar-val-info { display: none; }
}

@media (max-width: 640px) {
  .wv-auto-grid { grid-template-columns: 1fr; }
  .wv-driver-card { gap: 12px; }
  .ic-amounts-header, .ic-amounts-inputs { grid-template-columns: repeat(3, 1fr) !important; }
  .vk-detail { border-left: none !important; padding-left: 0; border-top: 1px solid var(--border); padding-top: 12px; }
  .wd-driver { flex-direction: column; gap: 6px; }
  .wd-driver-meta { flex: none; }
  .email-capture-form { flex-direction: column; width: 100%; }
  .email-capture-input { width: 100%; }
}

@media (max-width: 560px) {
  .content { padding: 14px; }
  .topbar { padding: 0 12px; min-height: 60px; }
  .topbar-company { padding-right: 8px; }
  .topbar-val-center { padding: 0 10px; min-width: 0; border-left: none !important; }
  .topbar-val-range { display: none; }
  .topbar-val-label { display: none; }
  .topbar-right { padding-left: 8px; gap: 8px; }
  .dash-section { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fin-table { min-width: 520px; }
  .fc-table { min-width: 480px; }
  .er-summary { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* FIN TABLE */
.dash-section { padding: 24px; }
#section-forecast,
#section-normalisaties,
#section-consolidatie { max-width: 960px; }
.fin-table { width: auto; border-collapse: collapse; table-layout: auto; }
.fin-table th {
  text-align: right; padding: 8px 10px;
  white-space: nowrap;
}
.fin-table th:first-child { text-align: left; min-width: 170px; }
.fin-table td { padding: 6px 8px; }
.fin-table th:not(:first-child),
.fin-table td:not(:first-child):not([colspan]) { min-width: 140px; }
.fin-table td:first-child { min-width: 170px; }
.fin-input {
  width: 100%;
  border-radius: 6px; padding: 7px 10px;
  outline: none; text-align: right;
  box-sizing: border-box;
}

.fin-section-header td {
  text-transform: uppercase;
  padding: 16px 8px 5px; border: none;
}

/* BV TABS */
.bv-tabs { display: flex; gap: 4px; margin-bottom: -1px; flex-wrap: wrap; }
.bv-tab {
  padding: 7px 18px; border-radius: 8px 8px 0 0;
  border-bottom: none;
  cursor: pointer;
}
.bv-tab-x {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 7px; width: 14px; height: 14px; border-radius: 50%;
  line-height: 1;
}
.bv-container { border-top-left-radius: 0; }
.btn-add-bv {
  background: none;
  padding: 8px 16px; border-radius: 8px;
  cursor: pointer; white-space: nowrap;
}

/* DERIVED ROWS */
.fin-calc-cell { text-align: right; padding: 7px 8px; white-space: nowrap; }

.fin-derived-sub { display: block; margin-top: 2px; }

/* INTERCOMPANY ROWS */
.ic-row { border-radius: 8px; padding: 16px 20px; margin-bottom: 10px; }
.ic-row:last-child { margin-bottom: 0; }
.ic-row-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ic-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ic-flow-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ic-arrow { font-size: 14px; }
.ic-select { border-radius: 6px; padding: 5px 8px; font-size: 13px; font-family: var(--sans); outline: none; cursor: pointer; min-width: 110px; }
.ic-select:focus { border-color: var(--gold-border); }
.ic-remove { background: none; border: none; font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 4px; margin-left: auto; flex-shrink: 0; }
.ic-amounts-section { border-top: 1px solid var(--border); padding-top: 12px; }
.ic-amounts-header { display: grid; gap: 8px; margin-bottom: 4px; }
.ic-amounts-inputs { display: grid; gap: 8px; }
.ic-year-lbl { font-size: 11px; font-weight: 500; text-align: center; padding: 0 2px; }

/* JAARCIJFERS INDENT */
.fin-indent td.fin-label { padding-left: 26px !important; }

/* EXTRA KOSTEN BUTTON */
.btn-add-cost { background: none; padding: 5px 12px; border-radius: 6px; cursor: pointer; }

/* FORECAST */
.fc-table { width: auto; border-collapse: collapse; }
.fc-table th { text-align: right; padding: 6px 10px; }
.fc-table th:first-child { text-align: left; }
.fc-table td { padding: 8px 10px; }
.fc-table td:first-child { min-width: 170px; }
.fc-table td.fc-base { text-align: right; }
.fc-table td.fc-pct { text-align: center; }
.fc-table td.fc-pct input { width: 62px; border-radius: 5px; padding: 4px 8px; text-align: center; outline: none; }
.fc-table td.fc-proj { text-align: right; }
.fc-table tr.fc-section-hdr td { text-transform: uppercase; padding: 5px 10px; }

/* FORECAST REDESIGN */
.fc-table td.fc-ref { text-align: right; padding: 8px 10px; }

/* STEPPER BUTTON */
.fc-step-btn {
  width: 26px; height: 26px; border-radius: 5px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; line-height: 1;
}

/* SCENARIOS */
.sc-btn { padding: 6px 12px; border-radius: 7px; cursor: pointer; }

/* EXIT READINESS */
.er-summary { display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: 10px; margin-bottom: 20px; }
.er-score-meta { flex: 1; }
.er-score-label { margin-bottom: 2px; }
.er-score-status { margin-top: 4px; }
.er-progress-bg { height: 8px; border-radius: 4px; margin-top: 10px; overflow: hidden; }
.er-progress-fill { height: 100%; border-radius: 4px; transition: width .5s ease; }

/* M&A TIMELINE */
.ma-date-sel { display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 12px 16px; }
.ma-phase-card { display: flex; gap: 14px; padding: 12px 0; align-items: flex-start; }
.ma-phase-card:last-child { border-bottom: none; padding-bottom: 0; }
.ma-phase-num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.ma-phase-info { flex: 1; }
.ma-phase-heading { margin-bottom: 2px; }
.ma-phase-when { margin-bottom: 3px; }
.ma-phase-sub { line-height: 1.5; }

/* WAARDEPROFIEL */
.wd-driver {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
}
.wd-driver:last-child { border-bottom: none; padding-bottom: 0; }
.wd-driver-meta { flex: 0 0 200px; min-width: 0; }
.wd-driver-name { margin-bottom: 2px; }
.wd-driver-desc { line-height: 1.4; }
.wd-opts { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; align-items: center; }
.wd-btn {
  flex: 1; min-width: 80px; padding: 8px 12px; border-radius: 7px;
  cursor: pointer;
  text-align: center; line-height: 1.3;
}
.wd-btn-val { display: none; }
.wd-impact { display: none; }

/* BEDRIJFSGEREEDHEID */
.bg-section { margin-bottom: 12px; }
.bg-section-title {
  padding: 10px 14px 8px;
  border-radius: 8px 8px 0 0;
}
.bg-items { border-radius: 0 0 8px 8px; overflow: hidden; }
.bg-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
}
.bg-item:last-child { border-bottom: none; }
.bg-checkbox {
  width: 16px; height: 16px; border-radius: 4px;
  background: transparent; cursor: pointer; appearance: none; -webkit-appearance: none;
  flex-shrink: 0; margin-top: 2px;
}
.bg-item-body { flex: 1; min-width: 0; }
.bg-item-label { line-height: 1.4; }
.bg-item-why { margin-top: 2px; line-height: 1.4; }
.bg-cat-score { flex-shrink: 0; }

/* PLANNING HORIZON */
.ph-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px;
}
.ph-label {
  white-space: nowrap; flex-shrink: 0;
}
.ph-pills { display: flex; gap: 6px; }
.ph-pill {
  padding: 4px 10px; border-radius: 100px;
  cursor: pointer;
}

/* VALUE CHART CARD */
.val-method-badge {
  padding: 2px 8px; border-radius: 100px;
  text-transform: none; letter-spacing: 0;
  margin-left: 8px; vertical-align: middle;
}

.wv-auto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.wv-auto-tip {
  font-size: 11px; line-height: 1.5;
  padding: 8px 10px;
  border-radius: 6px;
  border-left: 2px solid var(--gold-border);
}

/* Fundamentals grid */
.wv-fundamentals-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px;
  padding: 4px 0 2px;
}
.wv-fund-col { display: flex; flex-direction: column; gap: 8px; }
.wv-fund-label { font-size: 13px; font-weight: 600; }
.wv-fund-body { font-size: 12px; line-height: 1.6; }
.wv-fund-list {
  margin: 0; padding-left: 16px;
  font-size: 12px; line-height: 1.8;
}
.wv-fund-list li { }

@media (max-width: 860px) {
  .wv-fundamentals-grid { grid-template-columns: 1fr; }
}

/* ─── WAARDE VERHOGEN — grid layout ─── */

/* Stat pills row */
.wv-stat-row {
  display: flex;
  gap: 12px;
}

.wv-stat-pill {
  flex: 1;
  padding: 14px 16px;
  min-width: 0;
}

.wv-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.wv-stat-val {
  font-size: 20px;
  font-family: var(--serif);
  font-weight: 700;
  margin-bottom: 6px;
}

.wv-stat-tip {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* 2-column grid for driver cards */
.wv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Group header — spans both columns */
.wv-group-hdr {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 4px;
  border-bottom: 1px solid var(--border);
  margin-top: 4px;
}

.wv-group-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wv-group-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Driver card */
.wv-item {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wv-item-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wv-item-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.wv-item-name {
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  color: var(--text-primary);
}

/* Badges */
.wv-item-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  flex-shrink: 0;
  white-space: nowrap;
}

.wv-badge-unknown {
  background: var(--surface);
  color: var(--text-secondary);
}

.wv-badge-best {
  background: rgba(var(--green-rgb),0.15);
  color: var(--green);
}

.wv-badge-pot {
  background: rgba(var(--gold-rgb),0.15);
  color: var(--gold-light);
}

/* Current status row */
.wv-cur-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wv-cur-lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.wv-cur-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.wv-cur-pos { background: rgba(var(--green-rgb),0.12); color: var(--green); }
.wv-cur-neg { background: rgba(var(--red-rgb),0.12); color: var(--red); }
.wv-cur-neu { background: var(--surface); color: var(--text-secondary); }

/* Optimal message */
.wv-optimal {
  font-size: 11px;
  line-height: 1.5;
  color: var(--green);
  padding: 6px 10px;
  background: rgba(var(--green-rgb),0.08);
  border-radius: 6px;
}

/* Option buttons list */
.wv-opts-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wv-opt-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: background 0.15s, border-color 0.15s;
}

.wv-opt-btn:hover {
  background: var(--navy-3);
  border-color: var(--gold-border);
}

.wv-opt-delta {
  font-weight: 700;
  color: var(--gold-light);
}

.wv-opt-eur {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 8px;
}

/* Tip text */
.wv-tip {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-secondary);
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

/* Not set yet */
.wv-not-set {
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
}

/* Empty state */
.wv-empty {
  padding: 28px 24px;
  text-align: center;
}

.wv-empty-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.wv-empty-btn {
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--gold);
  border: none;
  color: var(--contrast);
}

.wv-empty-btn:hover { opacity: 0.88; }

@media (max-width: 700px) {
  .wv-grid { grid-template-columns: 1fr; }
  .wv-stat-row { flex-direction: column; }
}

/* ─── PRINT DISCLAIMER ─── */
@media screen {
  .print-disclaimer { display: none; }
}
@media print {
  .print-disclaimer {
    display: block !important;
    position: fixed; bottom: 0; left: 0; right: 0;
    padding: 8px 16px;
    font-size: 8pt; line-height: 1.4;
    color: #666; border-top: 1px solid #ccc;
    text-align: center; font-family: sans-serif;
  }
}

/* ═══════════════════════════════════════════
   VISUAL STYLES (merged from theme)
═══════════════════════════════════════════ */


/* ─── UTILITY CLASSES — Typography ─── */
.text-xs   { font-size: 10px; }
.text-sm   { font-size: 11px; }
.text-md   { font-size: 12px; }
.text-base { font-size: 13px; }
.text-lg   { font-size: 14px; }
.text-xl   { font-size: 16px; }
.text-2xl  { font-size: 18px; }
.text-3xl  { font-size: 20px; }
.text-4xl  { font-size: 22px; }
.text-5xl  { font-size: 24px; }
.text-6xl  { font-size: 28px; }
.font-serif  { font-family: var(--serif); }
.font-bold   { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-light  { font-weight: 300; }
.font-normal { font-weight: 400; }
.leading-snug    { line-height: 1.5; }
.leading-relaxed { line-height: 1.6; }
.uppercase    { text-transform: uppercase; }
.tracking-wide { letter-spacing: .08em; }
.tracking-wider { letter-spacing: .1em; }
.italic { font-style: italic; }

/* ─── UTILITY CLASSES — Colors ─── */
.color-gold       { color: var(--gold); }
.color-gold-light { color: var(--gold-light); }
.color-primary    { color: var(--text-primary); }
.color-secondary  { color: var(--text-secondary); }
.color-tertiary   { color: var(--text-tertiary); }
.color-amber      { color: var(--amber); }
.color-green      { color: var(--green); }
.color-red        { color: var(--red); }
.color-white      { color: var(--white); }
.color-border     { color: var(--border); }

/* ─── UTILITY CLASSES — Borders (color) ─── */
.border-top-gold  { border-top: 1px solid rgba(var(--gold-rgb),0.12); }
.border-top-subtle { border-top: 1px solid var(--border); }

/* ─── UTILITY CLASSES — Other visual ─── */
.opacity-0    { opacity: 0; }
.opacity-half { opacity: 0.5; }
.transition-colors  { transition: color .15s; }
.transition-opacity { transition: opacity .4s; }
.transition-all     { transition: all .15s; }

/* ─── STATE CLASSES ─── */
.state-success { color: var(--green); }
.state-warning { color: var(--amber); }
.state-error   { color: var(--red); }
input.state-error,
select.state-error   { border-color: var(--red); }
input.state-warning,
select.state-warning { border-color: var(--amber); }
.state-growth-pos { color: rgba(var(--green-rgb),0.55); }
.state-growth-neg { color: rgba(var(--red-rgb),0.55); }

/* ─── LABEL PATTERN ─── */
.label-upper {
  font-size: 10px; font-weight: 600;
  letter-spacing: .08em;
  color: var(--text-tertiary);
}

/* Form label pattern (modals) */
.form-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: .07em;
  color: var(--text-tertiary);
}

/* Section intro pattern */
.section-title-h {
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  color: var(--text-primary);
}
.section-desc {
  font-size: 13px; color: var(--text-secondary);
}

/* ─── MODAL OVERLAY ─── */
.modal-overlay--dark   { background: rgba(var(--overlay-rgb),0.9); }
.modal-overlay--darker { background: rgba(var(--overlay-rgb),0.92); }
.modal-overlay--darkest { background: rgba(var(--overlay-rgb),0.95); }

/* Modal box */
.modal-box {
  background: var(--navy-2);
  border: 1px solid var(--gold-border);
}
.modal-box--confirm {
  border-color: var(--border-hover);
}

/* Form input (modals) */
.form-input {
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color .15s;
}
.form-input:focus { border-color: var(--gold-border); }
.form-input-prefix {
  font-size: 14px; color: var(--text-tertiary);
}

/* Primary action button (modals) */
.btn-action {
  background: var(--gold);
  color: var(--contrast);
  font-family: var(--sans);
  font-size: 14px; font-weight: 500;
  transition: background .15s;
}
.btn-action:hover { opacity: 0.88; }
.btn-action--lg { font-size: 15px; }
.btn-action--success { background: var(--green); color: var(--contrast); }

/* Cancel/secondary button (modals) */
.btn-cancel {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--sans);
}

/* Confirm/delete button */
.btn-confirm-delete {
  background: rgba(var(--red-rgb),0.12);
  border: 1px solid rgba(var(--red-rgb),0.3);
  color: var(--red);
  font-size: 13px; font-weight: 500;
  font-family: var(--sans);
  transition: background .15s;
}
.btn-confirm-delete:hover { background: rgba(var(--red-rgb),0.22); }

/* Danger button (solid red) */
.btn-danger {
  background: var(--red);
  color: var(--white);
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
}
.btn-danger:hover { opacity: 0.88; }

/* Doorverwijzing buttons */
.dv-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-family: var(--sans);
  transition: all .15s;
}
.dv-btn.dv-active-yes  { background: rgba(var(--green-rgb),0.15); border-color: var(--green); color: var(--green); }
.dv-btn.dv-active-gold { background: rgba(var(--gold-rgb),0.12); border-color: var(--gold-border); color: var(--gold-light); }

/* Landing page instrument demo bars */
.demo-bar-sector  { background: var(--gold); }
.demo-bar-recurring { background: rgba(var(--gold-rgb),0.5); }
.demo-bar-dga     { background: rgba(var(--gold-rgb),0.4); }
.demo-bar-groei   { background: rgba(var(--gold-rgb),0.6); }

/* Verwachtingskloof card */
.vk-card {
  background: rgba(var(--gold-rgb),0.04);
  border: 1px solid var(--gold-border);
}
.vk-value {
  font-family: var(--serif); font-size: 24px; font-weight: 700;
}
.vk-arrow { font-size: 20px; color: var(--border); }
.vk-detail {
  border-left: 1px solid var(--border);
}

/* Driver unknown CTA */
.drv-cta {
  background: rgba(var(--gold-rgb),0.06);
  border: 1px solid rgba(var(--gold-rgb),0.15);
}

/* Roadmap link */
.roadmap-link {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color .15s;
}
.roadmap-link:hover { color: var(--gold-light); }

/* Sidebar reset button */
.btn-reset {
  background: transparent;
  border: 1px dashed rgba(var(--fg-rgb),0.1);
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-tertiary);
  transition: all .15s;
}
.btn-reset:hover { border-color: rgba(var(--fg-rgb),0.2); color: rgba(var(--fg-rgb),0.4); }

/* Toast notification */
.toast-notification {
  background: var(--green-bg);
  border: 1px solid var(--green);
  font-size: 13px; color: var(--green);
  box-shadow: 0 4px 16px rgba(var(--shadow-rgb),.3);
}

/* Dev stamp */
.dev-stamp {
  font-size: 10px; color: rgba(var(--fg-rgb),0.15);
  font-family: monospace;
}

/* Waarde verhogen auto-berekend card */
.wv-auto-card {
  background: var(--surface);
  border: 1px solid var(--border);
}
.wv-auto-tip { background: rgba(var(--gold-rgb),0.05); color: var(--text-secondary); }
.wv-fund-label { color: var(--text-primary); }
.wv-fund-body { color: var(--text-secondary); }
.wv-fund-list { color: var(--text-secondary); }
.wv-fund-col { border-right: 1px solid var(--border); padding-right: 20px; }
.wv-fund-col:last-child { border-right: none; padding-right: 0; }

/* BG (bedrijf op orde) doorverwijzing variant */
.bg-section--gold {
  background: rgba(var(--gold-rgb),0.04);
  border-color: var(--gold-border);
}
.bg-section--gold .bg-section-title { color: var(--gold-light); }

/* Wv-confirm message */
.wv-confirm {
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--green);
}

/* ─── GLOBAL ELEMENTS ─── */
body {
  font-family: var(--sans);
  background: var(--navy);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════
   INDEX — LANDINGSPAGINA
═══════════════════════════════════════════ */

/* NAV */
nav {
  background: rgba(var(--navy-rgb), 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-border);
}

.nav-logo {
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  color: var(--white); letter-spacing: 0.01em;
}

.nav-logo .logo-icon {
  background: var(--gold);
  font-size: 14px;
}

.nav-links a {
  font-size: 14px; font-weight: 400;
  color: var(--text-secondary);
  transition: color .2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--contrast) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  transition: background .2s !important;
}

.nav-cta:hover { background: var(--gold-light) !important; }

/* NAV USER STATE */
.nav-user {
  border-left: 1px solid var(--border);
}

.nav-avatar {
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  font-size: 11px; font-weight: 600; color: var(--gold);
}

.nav-user-email {
  font-size: 11px; color: var(--text-tertiary);
}

.nav-user-link {
  font-size: 12px; font-weight: 500;
  color: var(--gold);
  transition: color .2s;
}

.nav-user-link:hover { color: var(--gold-light); }

/* BETA BADGE */
.beta-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: middle;
  margin-left: 4px;
  flex-shrink: 0;
}

/* INDEX — MOBILE NAV */
.nav-hamburger {
  color: var(--text-secondary);
  transition: color .15s;
}
.nav-hamburger:hover { color: var(--white); }

.nav-mobile {
  background: rgba(var(--navy-rgb),0.98);
  border-bottom: 1px solid var(--gold-border);
  backdrop-filter: blur(8px);
}
.nav-mobile a {
  font-size: 15px; color: var(--text-secondary);
  transition: color .15s, background .15s;
}
.nav-mobile a:hover { background: var(--surface-hover); color: var(--white); }
.nav-mobile .nav-cta {
  background: var(--gold) !important;
  color: var(--contrast) !important;
  font-weight: 500 !important;
  text-align: center;
}

/* HERO */
.hero {
  background: var(--navy);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(var(--gold-rgb),0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--gold-rgb),0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  background: radial-gradient(circle, rgba(var(--gold-rgb),0.12) 0%, transparent 70%);
}

.hero-glow-2 {
  background: radial-gradient(circle, rgba(var(--glow2-rgb),0.6) 0%, transparent 70%);
}

.hero-eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .1em;
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.hero-eyebrow::before {
  background: var(--gold);
}

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
}

.hero-h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 17px; font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-sub strong {
  color: var(--text-primary);
  font-weight: 400;
}

.btn-primary {
  background: var(--gold);
  color: var(--contrast);
  font-family: var(--sans);
  font-size: 15px; font-weight: 500;
  transition: background .2s, transform .15s;
}

.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-primary--lg { font-size: 16px; }

.btn-ghost {
  font-size: 14px; font-weight: 400;
  color: var(--text-secondary);
  transition: color .2s;
}

.btn-ghost:hover { color: var(--text-primary); }

.hero-trust {
  opacity: 0;
}

.hero-trust-item {
  font-size: 13px; color: var(--text-tertiary);
}

.hero-trust-num {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700;
  color: var(--text-primary);
}

.hero-divider {
  background: var(--border);
}

/* INSTRUMENT PANEL */
.hero-instrument {
  opacity: 0;
}

.instrument-card {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.instrument-label {
  font-size: 11px; font-weight: 500; letter-spacing: .08em;
  color: var(--gold);
}

.instrument-live {
  font-size: 11px; color: var(--text-tertiary);
}

.live-dot { background: var(--live-dot-color); }

.instrument-value {
  font-family: var(--serif);
  font-size: 42px; font-weight: 700;
  color: var(--white);
}

.instrument-range {
  font-size: 13px; color: var(--text-secondary);
}

.band-label {
  font-size: 11px; color: var(--text-tertiary);
}

.band {
  background: linear-gradient(90deg, rgba(var(--gold-rgb),0.2) 0%, var(--gold) 60%, rgba(var(--gold-rgb),0.4) 100%);
}

.band-indicator {
  background: var(--white);
  border: 2px solid var(--gold);
}

.instrument-drivers .driver-row {
  font-size: 12px;
}

.instrument-drivers .driver-name { color: var(--text-tertiary); }

.driver-bar-wrap {
  background: var(--border);
}

.instrument-drivers .driver-val { font-weight: 500; color: var(--text-secondary); }

.instrument-footer {
  border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-tertiary);
  line-height: 1.5;
}

/* SECTIONS */
/* HOW IT WORKS */
.section-how { background: var(--navy-2); }

.section-eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .1em;
  color: var(--gold);
}

.section-h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700; line-height: 1.15;
  color: var(--text-primary);
}

.section-sub {
  font-size: 17px; color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

/* STEPS GRID */
.step-col {
  background: var(--navy-2);
  border: 1px solid var(--border);
  transition: border-color .2s;
}

.step-col:hover { border-color: var(--gold-border); }

.step-num {
  color: rgba(var(--fg-rgb),0.07);
}

.step-title {
  color: var(--text-primary);
}

.step-desc {
  color: var(--text-secondary);
}

.step-meta {
  color: var(--gold-light);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* BEDRIJFSPROFIEL CATEGORIE CARDS */
.profile-cat-header { background: var(--navy-3); }
.profile-cat-title { color: var(--text-primary); }
.profile-cat-sub { color: var(--text-secondary); }
.profile-cat-header--green .profile-cat-icon { background: rgba(var(--green-rgb),0.12); color: var(--green); }
.profile-cat-header--amber .profile-cat-icon { background: rgba(var(--amber-rgb),0.12); color: var(--amber); }
.profile-cat-header--gold  .profile-cat-icon { background: var(--gold-pale); color: var(--gold-light); }

/* PAIN SECTION */
.section-pain {
  background: var(--navy);
}

.pain-grid-bg {
  background-image:
    linear-gradient(rgba(var(--gold-rgb),0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--gold-rgb),0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.pain-stat-num {
  font-family: var(--serif);
  font-size: 64px; font-weight: 700;
  color: var(--gold);
}

.pain-stat-label {
  font-size: 16px; font-weight: 300;
  color: var(--text-secondary);
}

.pain-quote {
  font-family: var(--serif);
  font-size: 22px; font-style: italic;
  line-height: 1.5;
  color: var(--text-primary);
  border-left: 3px solid var(--gold);
}

.pain-quote-attr {
  font-size: 13px; color: var(--text-tertiary);
}

/* FEATURES */
.section-features { background: var(--navy); }

.feature-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
}

.feature-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
}

.feature-icon {
  background: var(--gold-pale);
  font-size: 18px;
}

.feature-title {
  font-family: var(--serif);
  font-size: 16px; font-weight: 700;
  color: var(--text-primary);
}

.feature-body {
  font-size: 14px; color: var(--text-secondary);
  font-weight: 300;
}

/* CTA SECTION */
.section-cta {
  background: var(--navy-2);
}

.cta-glow {
  background: radial-gradient(ellipse at center, rgba(var(--gold-rgb),0.12) 0%, transparent 65%);
}

.cta-h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700; line-height: 1.15;
  color: var(--white);
}

.cta-h2 em { font-style: italic; color: var(--gold-light); }

.cta-sub {
  font-size: 16px; font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

.cta-note {
  font-size: 13px; color: var(--text-tertiary);
}

/* FOOTER */
footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
}

.footer-logo {
  font-family: var(--serif);
  font-size: 16px; font-weight: 700;
  color: var(--text-secondary);
}

.footer-links a { font-size: 12px; color: var(--text-secondary); }
.footer-links a:hover { color: var(--gold-light); }
.footer-links span { font-size: 12px; color: var(--text-tertiary); }

.footer-company { font-size: 11px; color: var(--text-tertiary); }

.footer-disclaimer {
  font-size: 11px; color: rgba(var(--fg-rgb),0.22);
  line-height: 1.6;
  border-top: 1px solid var(--border);
}

.disclaimer-link {
  font-size: 14px;
  color: var(--text-tertiary);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity .2s;
}
.disclaimer-link:hover {
  opacity: 1;
  color: var(--gold-light);
}

.footer-copy { font-size: 11px; color: var(--text-tertiary); }

/* COOKIE CONSENT BANNER */
#cookie-banner {
  background: var(--cookie-bg); border-top: 1px solid var(--gold-border);
  box-shadow: 0 -4px 24px rgba(var(--shadow-rgb),0.4);
}
.cookie-banner-text strong { color: var(--text-primary); }
.cookie-banner-text p { color: rgba(var(--fg-rgb),0.65); }
.cookie-banner-text a { color: var(--gold-light); }
.cookie-btn-accept {
  background: var(--gold); color: var(--contrast);
  font-family: var(--sans);
}
.cookie-btn-accept:hover { background: var(--gold-light); }
.cookie-btn-reject {
  color: var(--text-secondary); border: 1px solid var(--border);
  font-family: var(--sans);
}
.cookie-btn-reject:hover { border-color: var(--border-hover); color: var(--text-primary); }

/* HERO INPUT */
.hero-input-row {
  background: var(--surface);
  border: 1px solid var(--border-hover);
}

.hero-select {
  background: transparent;
  font-family: var(--sans);
  font-size: 14px; color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(var(--fg-rgb),0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.hero-select option { background: var(--navy); color: var(--white); }

.hero-input {
  background: transparent;
  border-left: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 14px; color: var(--white);
}

.hero-input::placeholder { color: var(--text-tertiary); }

.hero-go {
  background: var(--gold);
  font-family: var(--sans);
  font-size: 15px; font-weight: 600;
  color: var(--contrast);
  transition: background .2s;
}

.hero-go:hover { background: var(--gold-light); }

.hero-input-hint {
  font-size: 12px; color: var(--text-tertiary);
}

/* ─── INDEX MEDIA QUERIES (visual overrides) ─── */
@media (max-width: 900px) {
  .step-col { margin-bottom: 12px; }
}

/* ═══════════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════════ */

/* ─── SIDEBAR ─── */
.sidebar {
  background: var(--navy-2);
  border-right: 1px solid var(--border);
}

.sidebar-logo {
  border-bottom: 1px solid var(--border);
}

.logo-mark {
  background: var(--gold);
  font-size: 14px; color: var(--contrast);
}

.logo-name {
  font-family: var(--serif);
  font-size: 16px; font-weight: 700;
  color: var(--white);
}

.sidebar-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: .1em;
  color: var(--text-tertiary);
}

.nav-item {
  color: var(--text-secondary);
  font-size: 13px;
  transition: background .15s, color .15s;
}

.nav-item:hover { background: var(--surface-hover); color: var(--text-primary); }

.nav-item.active {
  background: var(--gold-pale);
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
}

.nav-icon {
  font-size: 13px; opacity: 0.7;
}

.nav-item.active .nav-icon { opacity: 1; }

.sidebar-bottom {
  border-top: 1px solid var(--border);
}

/* MOBILE SIDEBAR TOGGLE */
.sidebar-toggle {
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color .15s, background .15s;
}
.sidebar-toggle:hover { color: var(--text-primary); background: var(--surface-hover); }

.sidebar-close {
  color: var(--text-tertiary);
  transition: color .15s;
}
.sidebar-close:hover { color: var(--text-primary); }


.level-badge {
  font-size: 11px; font-weight: 500;
  color: var(--gold);
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
}

/* TOP BAR */
.topbar {
  background: linear-gradient(135deg, var(--navy-3) 0%, var(--navy-2) 100%);
  border-bottom: 1px solid var(--gold-border);
}

.topbar-title-input {
  font-family: var(--serif);
  font-size: 15px; font-weight: 700;
  color: var(--text-primary);
  background: transparent;
  border-bottom: 1px dashed transparent;
  transition: border-color .15s;
}
.topbar-title-input:hover,
.topbar-title-input:focus { border-bottom-color: var(--border-hover); }

.topbar-sub {
  font-size: 11px; color: var(--text-tertiary);
  transition: color .15s;
}
.topbar-sub:hover { color: var(--text-secondary); }

.sector-dropdown {
  background: var(--navy-2); border: 1px solid var(--gold-border);
  box-shadow: 0 8px 24px rgba(var(--shadow-rgb),.5);
}
.sector-opt {
  font-size: 13px; color: var(--text-secondary);
  transition: all .1s;
}
.sector-opt:hover { background: var(--surface-hover); color: var(--text-primary); }
.sector-opt.active { background: var(--gold-pale); color: var(--gold-light); }

/* CENTER VALUATION */
.topbar-val-center {
  border-left: 1px solid var(--gold-border);
}

.topbar-val-info {
  border-right: 1px solid var(--gold-border);
}
.topbar-val-label {
  font-size: 10px; letter-spacing: .1em;
  color: var(--text-tertiary);
}
.topbar-val-main {
  font-family: var(--serif); font-size: 28px; font-weight: 700;
  color: var(--gold-light);
}

/* Disclaimer popover - topbar */
.val-info-trigger {
  font-family: var(--sans); font-size: 10px;
  color: var(--text-tertiary);
  transition: color .15s;
}
.val-info-trigger:hover { color: var(--gold-light); }
.val-info-icon {
  font-size: 12px;
}
.val-disclaimer-popover {
  background: var(--navy-2); border: 1px solid var(--gold-border);
  box-shadow: 0 12px 40px rgba(var(--shadow-rgb),.45);
}
.val-disclaimer-close {
  color: var(--text-tertiary);
  font-size: 20px;
}
.val-disclaimer-close:hover { color: var(--white); }
.val-disclaimer-title {
  font-family: var(--serif); font-size: 15px; font-weight: 700;
  color: var(--gold-light);
}
.val-disclaimer-body p {
  font-size: 12.5px; line-height: 1.65; color: var(--text-primary);
}
.val-disclaimer-highlight {
  background: var(--gold-pale); border-left: 3px solid var(--gold);
}
.val-disclaimer-footer {
  font-size: 11px !important; color: var(--text-secondary) !important;
  font-style: italic;
}

.topbar-val-range {
  font-size: 11px; color: var(--text-tertiary);
}

.val-info-link {
  color: var(--text-tertiary);
  text-decoration: none;
  font-style: normal;
  transition: color .15s;
}
.val-info-link:hover { color: var(--gold-light); }

.accuracy-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
}

.accuracy-dot {
  background: var(--amber);
}

.btn-upgrade {
  background: var(--gold);
  color: var(--contrast);
  font-size: 13px; font-weight: 500;
  font-family: var(--sans);
  transition: background .15s;
}

.btn-upgrade:hover { background: var(--gold-light); }

.btn-save {
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px; font-weight: 400;
  border: 1px solid var(--border);
  font-family: var(--sans);
  transition: all .15s;
}

.btn-save:hover { background: var(--surface-hover); color: var(--text-primary); border-color: var(--border-hover); }

/* ─── EMAIL CAPTURE BAR ─── */
.email-capture-bar {
  background: linear-gradient(135deg, rgba(var(--gold-rgb),0.08), rgba(var(--gold-rgb),0.04));
  border-bottom: 1px solid var(--gold-border);
  transition: opacity .4s;
}

.email-capture-text {
  font-size: 13px; color: var(--text-secondary);
}

.email-capture-text strong { color: var(--gold-light); font-weight: 500; }

.email-capture-input {
  background: rgba(var(--fg-rgb),0.06);
  border: 1px solid var(--border);
  font-family: var(--sans); font-size: 13px;
  color: var(--text-primary);
  transition: border-color .15s;
}

.email-capture-input:focus { border-color: var(--gold-border); }
.email-capture-input::placeholder { color: var(--text-tertiary); }

.email-capture-btn {
  background: var(--gold); color: var(--contrast);
  font-size: 13px; font-weight: 500;
  font-family: var(--sans);
  transition: background .15s;
}

.email-capture-btn:hover { background: var(--gold-light); }

/* ─── USER AVATAR ─── */
.user-avatar {
  background: rgba(var(--gold-rgb),0.15);
  border: 1px solid rgba(var(--gold-rgb),0.35);
  font-size: 11px; font-weight: 600; color: var(--gold-light);
  transition: border-color .15s, background .15s;
}

.user-avatar:hover, .user-avatar.open {
  background: rgba(var(--gold-rgb),0.25);
  border-color: var(--gold);
}

.user-dropdown {
  background: var(--navy-3);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(var(--shadow-rgb),.4);
}

.user-dropdown-header {
  border-bottom: 1px solid var(--border);
}

.user-dropdown-label {
  font-size: 10px; font-weight: 500; letter-spacing: .07em;
  color: var(--text-tertiary);
}

.user-dropdown-email {
  font-size: 13px; color: var(--text-primary);
}

.user-dropdown-item {
  font-family: var(--sans); font-size: 13px;
  color: var(--text-secondary);
  transition: background .12s, color .12s;
}

.user-dropdown-item:hover { background: var(--surface-hover); color: var(--text-primary); }

/* CARDS */
.card {
  background: var(--navy-2);
  border: 1px solid var(--border);
}

.card-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: .08em;
  color: var(--text-tertiary);
}

/* VALUATION CARD */
.card-valuation {
  background: linear-gradient(135deg, var(--navy-3) 0%, var(--navy-2) 100%);
  border-color: var(--gold-border);
}

.val-main {
  font-family: var(--serif);
  font-size: 48px; font-weight: 700;
  color: var(--white);
}

.val-range {
  font-size: 13px; color: var(--text-secondary);
}

.val-range span { color: var(--gold); font-weight: 500; }

/* Bandwidth visualizer */
.bw-track {
  background: var(--border);
}

.bw-fill {
  background: linear-gradient(90deg, rgba(var(--gold-rgb),0.3), var(--gold), rgba(var(--gold-rgb),0.3));
}

.bw-pointer {
  background: var(--white);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(var(--gold-rgb),0.15);
}

.bw-labels {
  font-size: 11px; color: var(--text-tertiary);
}

.bw-note {
  font-size: 11px; color: var(--text-tertiary);
  line-height: 1.5;
  background: var(--surface);
  border: 1px solid var(--border);
}
.bw-note strong { color: var(--gold); font-weight: 500; }

.bw-info { text-align: right; margin-top: 4px; }
.bw-info-link {
  font-size: 14px;
  color: var(--text-tertiary);
  text-decoration: none;
  opacity: 0.4;
  transition: opacity .2s, color .2s;
}
.bw-info-link:hover { opacity: 1; color: var(--gold-light); }

/* STAT CARDS */
.stat-value {
  font-family: var(--serif);
  font-size: 30px; font-weight: 700;
  color: var(--text-primary);
}

/* LOCKED OVERLAY */
.lock-overlay {
  background: rgba(var(--navy-rgb),0.85);
  backdrop-filter: blur(3px);
  transition: background .15s;
}

.lock-overlay:hover { background: rgba(var(--navy-rgb),0.78); }

/* DRIVERS CARD */
.driver-label {
  font-size: 12px; color: var(--text-secondary);
}

.driver-bar-bg {
  background: var(--border);
}

.driver-val {
  font-size: 12px; font-weight: 500;
  color: var(--text-primary);
}

.driver-impact {
  font-size: 11px;
}

.impact-pos { color: var(--green); }
.impact-neg { color: var(--red); }
.impact-neu { color: var(--text-tertiary); }
.impact-unknown { color: var(--text-tertiary); font-style: italic; }

.driver-row.blurred .driver-label { color: var(--text-tertiary); }

/* EXIT READINESS */
.readiness-item {
  background: var(--surface);
  border: 1px solid var(--border);
}

.readiness-name {
  font-size: 11px; color: var(--text-secondary);
}

.readiness-num {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700;
}

.readiness-bar-bg {
  background: var(--border);
}

.score-green { color: var(--green); }
.score-green .readiness-bar { background: var(--green); }
.score-amber { color: var(--amber); }
.score-amber .readiness-bar { background: var(--amber); }
.score-red { color: var(--red); }
.score-red .readiness-bar { background: var(--red); }

/* SECTION HEADER */
.section-title {
  font-family: var(--serif);
  font-size: 15px; font-weight: 700;
  color: var(--text-primary);
}

.section-action {
  font-size: 12px; color: var(--text-tertiary);
  transition: color .15s;
}

.section-action:hover { color: var(--gold); }

/* FIN TABLE */
.fin-table th {
  font-size: 11px; font-weight: 500; color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.fin-table td { border-bottom: 1px solid rgba(var(--fg-rgb),0.03); }
.fin-label { font-size: 13px; font-weight: 500; color: var(--text-primary); white-space: nowrap; }
.fin-input {
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-primary); font-family: var(--sans);
  transition: border-color .15s;
}
.fin-input:focus { border-color: var(--gold-border); }
.fin-prog .fin-input { background: rgba(var(--gold-rgb),0.06); border-color: rgba(var(--gold-rgb),0.15); }
.fin-th-prog { color: var(--gold-light) !important; }

.fin-section-header td {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  background: transparent;
}

/* BV TABS */
.bv-tab {
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text-secondary);
  font-family: var(--sans); font-size: 13px; transition: all .15s;
}
.bv-tab:hover { color: var(--text-primary); background: var(--surface-hover); }
.bv-tab.active { background: var(--navy-3); color: var(--text-primary); border-color: var(--border-hover); }
.bv-tab-add { color: var(--gold) !important; border-color: var(--gold-border) !important; }
.bv-tab-add:hover { background: var(--gold-pale) !important; }
.bv-tab-x {
  font-size: 12px; color: var(--text-tertiary);
  transition: background .12s, color .12s;
}
.bv-tab-x:hover { background: rgba(var(--red-rgb),0.2); color: var(--red); }
.btn-add-bv {
  border: 1px dashed var(--border); color: var(--text-tertiary);
  font-size: 12px; font-family: var(--sans);
  transition: all .15s;
}
.btn-add-bv:hover { border-color: var(--border-hover); color: var(--text-secondary); }

/* DERIVED ROWS */
.fin-derived-row td { background: rgba(var(--fg-rgb),0.02); }
.fin-derived-row .fin-label { color: var(--text-secondary); font-weight: 500; }
.fin-bruto td { border-top: 1px solid var(--border); }
.fin-bruto .fin-label { color: var(--text-secondary); font-weight: 600; }
.fin-netto td { border-top: 1px solid var(--border); }
.fin-netto .fin-label { color: var(--text-secondary) !important; font-weight: 600 !important; }
.fin-netto-bel td { border-top: 1px solid var(--border); }
.fin-netto-bel .fin-label { color: var(--text-secondary) !important; font-weight: 600 !important; }
.fin-derived-sub { font-size: 10px; color: var(--text-tertiary); font-weight: 400; }
.fin-calc-val { font-size: 13px; font-family: var(--sans); }
.fin-neg { color: var(--red); }
.fin-pos { color: var(--text-primary); }
.fin-zero { color: var(--text-tertiary); }

/* INTERCOMPANY ROWS */
.ic-flow-label { color: var(--text-tertiary); }
.ic-arrow { color: var(--text-tertiary); }
.ic-select { background: var(--navy-3); border: 1px solid var(--border); color: var(--text-primary); }
.ic-select option { background: var(--navy-2); }
.ic-remove { color: var(--text-tertiary); }
.ic-remove:hover { color: var(--red); background: rgba(var(--red-rgb),0.1); }
.ic-year-lbl { color: var(--text-tertiary); }
.ic-year-lbl.prog { color: rgba(var(--gold-rgb),0.6); }

/* JAARCIJFERS INDENT */
.fin-indent td.fin-label { font-weight: 400; color: var(--text-secondary); }

/* EXTRA KOSTEN BUTTON */
.btn-add-cost { border: 1px dashed var(--border); color: var(--text-tertiary); font-size: 12px; font-family: var(--sans); transition: all .15s; }
.btn-add-cost:hover { border-color: var(--gold-border); color: var(--gold); }

/* FORECAST */
.fc-table th { font-size: 11px; font-weight: 500; color: var(--text-tertiary); border-bottom: 1px solid var(--border); }
.fc-table td { font-size: 13px; border-bottom: 1px solid var(--border); }
.fc-table td:first-child { color: var(--text-secondary); }
.fc-table td.fc-base { color: var(--text-tertiary); font-size: 12px; }
.fc-table td.fc-pct input { background: var(--surface); border: 1px solid var(--border); color: var(--text-primary); font-size: 12px; font-family: var(--sans); transition: border-color .15s; }
.fc-table td.fc-pct input:focus { border-color: var(--gold-border); }
.fc-table td.fc-proj { font-size: 13px; color: var(--text-primary); }
.fc-table tr.fc-section-hdr td { background: var(--surface); font-size: 10px; font-weight: 600; letter-spacing: .08em; color: var(--text-tertiary); }
.fc-table tr.fc-ebitda-row td { border-top: 2px solid var(--gold-border); background: rgba(var(--gold-rgb),0.04); font-weight: 700; color: var(--gold-light); }
.fc-table tr.fc-ebitda-row td.fc-base { color: rgba(var(--gold-rgb),0.7); }
.fc-proj-pos { color: var(--green) !important; }
.fc-proj-neg { color: var(--red) !important; }

/* FORECAST REDESIGN */
.fc-table th.fc-ref-th { color: var(--text-tertiary); opacity: 0.5; font-size: 10px; }
.fc-table th.fc-sep { border-left: 2px solid var(--gold-border); }
.fc-table td.fc-sep-cell { border-left: 2px solid var(--gold-border); }
.fc-table td.fc-ref { font-size: 12px; color: rgba(var(--fg-rgb),0.3); }
.fc-compound { background: rgba(var(--gold-rgb),0.08) !important; border-color: var(--gold-border) !important; color: var(--gold-light) !important; }

/* STEPPER BUTTON */
.fc-step-btn {
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  font-family: var(--sans);
  transition: all .15s;
}
.fc-step-btn:hover { background: var(--surface-hover); color: var(--text-primary); border-color: var(--border-hover); }

/* SCENARIOS */
.sc-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text-tertiary); font-size: 12px; font-family: var(--sans); transition: all .15s; }
.sc-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.sc-btn.sc-pos { border-color: rgba(var(--green-rgb),0.4); background: rgba(var(--green-rgb),0.1); color: var(--green); }
.sc-btn.sc-neg { border-color: rgba(var(--red-rgb),0.4); background: rgba(var(--red-rgb),0.1); color: var(--red); }
.sc-btn.sc-neu { border-color: var(--gold-border); background: var(--gold-pale); color: var(--gold); }

/* EXIT READINESS */
.er-summary { background: var(--surface); border: 1px solid var(--border); }
.er-score-big { font-family: var(--serif); font-size: 52px; font-weight: 700; line-height: 1; }
.er-score-label { font-size: 13px; color: var(--text-secondary); }
.er-score-status { font-size: 12px; }
.er-progress-bg { background: var(--border); }

/* M&A TIMELINE */
.ma-date-sel { background: var(--surface); border: 1px solid var(--gold-border); }
.ma-phase-card { border-bottom: 1px solid var(--border); }
.ma-phase-num { font-size: 11px; font-weight: 700; color: var(--contrast); }
.ma-phase-heading { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.ma-phase-when { font-size: 11px; color: var(--gold); font-weight: 500; }
.ma-phase-sub { font-size: 12px; color: var(--text-tertiary); }

/* WAARDEPROFIEL */
.wd-driver {
  border-bottom: 1px solid var(--border);
}
.wd-driver-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.wd-driver-desc { font-size: 11px; color: var(--text-tertiary); }
.wd-btn {
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-tertiary); font-size: 13px;
  font-family: var(--sans); transition: all .15s;
}
.wd-btn:hover { border-color: var(--border-hover); color: var(--text-secondary); }
.wd-btn.wd-neg { border-color: rgba(var(--red-rgb),0.4); background: rgba(var(--red-rgb),0.08); color: var(--red); }
.wd-btn.wd-neu { border-color: var(--gold-border); background: var(--gold-pale); color: var(--gold); }
.wd-btn.wd-pos { border-color: rgba(var(--green-rgb),0.4); background: rgba(var(--green-rgb),0.1); color: var(--green); }

/* BEDRIJFSGEREEDHEID */
.bg-section-title {
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  background: rgba(var(--fg-rgb),0.02);
  border: 1px solid var(--border); border-bottom: none;
}
.bg-items { border: 1px solid var(--border); }
.bg-item {
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.bg-item:hover { background: var(--surface); }
.bg-checkbox {
  border: 1.5px solid var(--border);
  transition: all .15s;
}
.bg-checkbox:checked {
  background: var(--green); border-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%230b1a2e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px 8px; background-repeat: no-repeat; background-position: center;
}
.bg-item-label { font-size: 13px; color: var(--text-secondary); }
.bg-item-why { font-size: 11px; color: var(--text-tertiary); }
.bg-cat-score { font-size: 13px; font-weight: 700; font-family: var(--serif); }

/* PLANNING HORIZON */
.ph-row {
  border-top: 1px solid var(--border);
}
.ph-label {
  font-size: 11px; color: var(--text-tertiary);
}
.ph-pill {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-secondary); transition: all .15s;
}
.ph-pill:hover { border-color: var(--gold-border); color: var(--gold); }
.ph-pill.active { background: var(--gold-pale); border-color: var(--gold-border); color: var(--gold); }
.ph-hint { font-size: 11px; color: var(--text-tertiary); }

/* VALUE CHART CARD */
.val-method-badge {
  font-size: 11px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-tertiary);
}
.val-method-badge--omzet { color: var(--amber); border-color: rgba(var(--amber-rgb),0.3); }

/* ─── LEGAL PAGES (privacy, voorwaarden) ─── */
.legal-nav { background: rgba(var(--navy-rgb),0.97); border-bottom: 1px solid var(--gold-border); }
.legal-wrap { max-width: 760px; margin: 80px auto 120px; padding: 0 32px; color: var(--text-primary); }
.legal-wrap h1 { font-family: var(--serif); font-size: 32px; margin-bottom: 8px; }
.legal-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 48px; }
.legal-wrap h2 { font-family: var(--serif); font-size: 19px; margin: 36px 0 12px; color: var(--gold-light); }
.legal-wrap h3 { font-size: 14px; font-weight: 600; margin: 20px 0 8px; color: var(--text-primary); }
.legal-wrap p { font-size: 14px; line-height: 1.75; color: var(--text-secondary); margin-bottom: 12px; }
.legal-wrap ul, .legal-wrap ol { padding-left: 20px; margin-bottom: 12px; }
.legal-wrap li { font-size: 14px; line-height: 1.75; color: var(--text-secondary); margin-bottom: 4px; }
.legal-wrap ol li { margin-bottom: 6px; }
.legal-wrap a { color: var(--gold-light); }
.legal-wrap table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 13px; }
.legal-wrap th { text-align: left; padding: 8px 12px; background: var(--surface); color: var(--text-secondary); font-weight: 500; border-bottom: 1px solid var(--border); }
.legal-wrap td { padding: 8px 12px; color: var(--text-secondary); border-bottom: 1px solid var(--border); vertical-align: top; }
.placeholder { background: var(--gold-pale); border: 1px solid var(--gold-border); border-radius: 4px; padding: 2px 6px; font-size: 12px; color: var(--gold-light); font-style: italic; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); text-decoration: none; margin-bottom: 40px; }
.back-link:hover { color: var(--gold-light); }
.highlight-box { background: rgba(var(--gold-rgb),0.07); border: 1px solid var(--gold-border); border-radius: 8px; padding: 16px 20px; margin: 16px 0 24px; }
.highlight-box p { margin-bottom: 8px; }
.highlight-box p:last-child { margin-bottom: 0; }

/* ─── MOBILE RESPONSIVE OVERRIDES ─── */
@media (max-width: 560px) {
  .topbar-val-main { font-size: 22px; }
  .val-main { font-size: 36px; }
}
