/* ============================================================
   STATIEGELD TELLER - MAIN CSS
   Fonts: system stack (display + body)
   ============================================================ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* CSS VARIABELEN */
:root {
  --bg:         #0a0f1e;
  --bg2:        #0f172a;
  --card:       #1a2236;
  --card2:      #1e293b;
  --border:     #2a3a52;
  --teal:       #06b6d4;
  --teal-glow:  rgba(6,182,212,0.15);
  --teal-dark:  #0e7490;
  --action-primary: #0e7490;
  --action-primary-hover: #155e75;
  --focus-ring: #0e7490;
  --text:       #e2e8f0;
  --muted:      #64748b;
  --muted2:     #94a3b8;
  --green:      #22c55e;
  --red:        #ef4444;
  --orange:     #f97316;
  --radius:     12px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.4);
  --font-display: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nav-height: 60px;
  --bottom-nav: 65px;
}

html[data-theme="dark"] {
  --teal-dark: #67e8f9;
  --muted: #cbd5e1;
}

[data-theme="light"] {
  --bg:         #f0f4f8;
  --bg2:        #e8edf3;
  --card:       #ffffff;
  --card2:      #f8fafc;
  --border:     #e2e8f0;
  --text:       #0f172a;
  --muted:      #64748b;
  --muted2:     #94a3b8;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.12);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: var(--bottom-nav);
  transition: background 0.3s, color 0.3s;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--nav-height);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--action-primary);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 0 16px var(--teal-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.logo-mark:hover {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(6,182,212,0.4);
}

.app-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-btn {
  padding: 7px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.nav-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-glow);
}

.nav-btn.active-nav {
  background: var(--teal-glow);
  border-color: var(--teal);
  color: var(--teal);
}

.danger-btn:hover {
  border-color: var(--red) !important;
  color: var(--red) !important;
  background: rgba(239,68,68,0.1) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  animation: fadeIn 0.2s ease;
}

.mobile-menu.open {
  display: flex;
}

body.landing-mobile-menu-open { overflow: hidden; }

.mobile-menu .nav-btn {
  border-radius: 10px;
  text-align: left;
  padding: 12px 16px;
}

/* ============================================================
   SUMMARY BAR
   ============================================================ */
.summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  animation: fadeIn 0.5s ease 0.1s both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.summary-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.summary-count {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.summary-dot { color: var(--muted); }

.summary-total, .summary-profile {
  font-size: 14px;
  color: var(--muted2);
}

.teal-text { color: var(--teal); font-weight: 600; }

.summary-actions {
  display: flex;
  gap: 8px;
}

.btn-export {
  padding: 8px 16px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-export:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.teal-btn {
  padding: 8px 18px;
  background: var(--action-primary);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 12px var(--teal-glow);
}

.teal-btn:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(6,182,212,0.3);
}

.teal-btn:active { transform: scale(0.97); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ============================================================
   ADD PANEL
   ============================================================ */
.add-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: fadeIn 0.5s ease 0.2s both;
  transition: box-shadow 0.2s;
}

.add-panel:hover {
  box-shadow: 0 0 0 1px var(--teal), var(--shadow);
}

.add-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}

.add-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.add-panel-title strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.add-panel-title p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.add-icon {
  width: 32px;
  height: 32px;
  background: var(--teal-glow);
  border: 1px solid var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 18px;
  font-weight: 300;
}

.chevron {
  color: var(--muted);
  font-size: 18px;
  transition: transform 0.3s;
}

.chevron.open { transform: rotate(180deg); }

/* #80: open/dicht van .add-panel-body komt uit variables.css
   (.add-panel.open .add-panel-body { display:block }), gedreven door de JS-toggle op
   .add-panel (ui-events.js). De oude max-height:0 + overflow:hidden hier clipte de body
   naar 0px hoogte óók wanneer variables.css 'm op display:block zette -> zowel het Pro
   add-item-form als de Free upgrade-card werden onzichtbaar. Conflicterend tweede
   animatie-model verwijderd; variables.css (display:none/block + fadeIn) is leidend. */

.add-form {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
  flex-wrap: wrap;
}

.form-input {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.form-input::placeholder { color: var(--muted); }

/* ============================================================
   CHARTS ROW
   ============================================================ */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  animation: fadeIn 0.5s ease 0.3s both;
}

.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chart-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}

.chart-select {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted2);
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
  outline: none;
}

.chart-menu {
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  letter-spacing: 2px;
}

/* ============================================================
   ITEMS GRID
   ============================================================ */
.items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  animation: fadeIn 0.5s ease 0.4s both;
}

.item-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.item-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.item-card:hover::before { transform: scaleX(1); }

.item-card:hover {
  border-color: var(--teal);
  box-shadow: 0 0 20px var(--teal-glow);
  transform: translateY(-2px);
}

.item-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.item-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

.item-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.item-price {
  font-size: 13px;
  color: var(--muted2);
  white-space: nowrap;
}

.item-delete {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  margin-left: 6px;
}

.item-delete:hover {
  color: var(--red);
  background: rgba(239,68,68,0.1);
}

/* COUNTER ROW */
.counter-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 4px;
}

.counter-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.counter-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-glow);
}

.counter-btn:active { transform: scale(0.9); }

.counter-btn.minus:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(239,68,68,0.1);
}

.counter-display {
  min-width: 44px;
  height: 36px;
  background: var(--action-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 0 12px var(--teal-glow);
  transition: transform 0.15s;
}

.counter-display.bump {
  animation: bump 0.2s ease;
}

@keyframes bump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* QUICK BUTTONS */
.counter-quick {
  display: flex;
  gap: 6px;
}

.quick-btn {
  flex: 1;
  padding: 6px 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.quick-btn:hover {
  background: var(--teal-glow);
  border-color: var(--teal);
  color: var(--teal);
}

.quick-btn:active { transform: scale(0.95); }

/* ============================================================
   TRANSACTIONS TABLE
   ============================================================ */
.transactions-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: fadeIn 0.5s ease 0.5s both;
}

.section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  padding: 20px 20px 0;
  margin-bottom: 14px;
}

.table-wrap { overflow-x: auto; }

.transactions-table {
  width: 100%;
  border-collapse: collapse;
}

.transactions-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.transactions-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.transactions-table tr:last-child td { border-bottom: none; }

.transactions-table tr:hover td {
  background: var(--teal-glow);
}

.badge-positive {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(34,197,94,0.15);
  color: var(--green);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.badge-negative {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(239,68,68,0.12);
  color: var(--red);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.badge-done {
  padding: 3px 10px;
  background: rgba(34,197,94,0.12);
  color: var(--green);
  border-radius: 20px;
  font-size: 12px;
}

.empty-row td {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 14px;
}

.view-all-link {
  display: block;
  text-align: center;
  padding: 14px;
  color: var(--teal);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-top: 1px solid var(--border);
  transition: background 0.2s;
}

.view-all-link:hover { background: var(--teal-glow); }

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  z-index: 100;
  backdrop-filter: blur(12px);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  padding: 8px 0;
  transition: color 0.2s;
  position: relative;
}

.bottom-nav-item::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: var(--teal);
  border-radius: 0 0 4px 4px;
  transform: scaleX(0);
  transition: transform 0.2s;
}

.bottom-nav-item.active {
  color: var(--teal);
}

.bottom-nav-item.active::before {
  transform: scaleX(1);
}

.bottom-nav-icon { font-size: 20px; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.login-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.5s ease;
}

.login-icon-wrap {
  width: 68px;
  height: 68px;
  background: var(--teal-glow);
  border: 1px solid var(--teal);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--teal-glow); }
  50%       { box-shadow: 0 0 0 8px transparent; }
}

/* ============================================================
   GESCHIEDENIS PAGE
   ============================================================ */
.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  animation: fadeIn 0.4s ease;
}

.page-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 0 16px;
  animation: fadeIn 0.4s ease 0.1s both;
}

.filter-input {
  flex: 1;
  min-width: 140px;
  padding: 9px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.filter-input:focus { border-color: var(--teal); }

.btn-filter {
  padding: 9px 20px;
  background: var(--action-primary);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-filter:hover { background: var(--action-primary-hover); }

.btn-outline {
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-tabs {
  display: flex;
  gap: 4px;
  padding: 16px 20px 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.admin-tab {
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.user-card:hover {
  border-color: var(--teal);
  box-shadow: 0 0 12px var(--teal-glow);
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal-glow);
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--teal);
  font-size: 16px;
  flex-shrink: 0;
}

.role-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.role-admin {
  background: var(--teal-glow);
  color: var(--teal);
  border: 1px solid var(--teal);
}

.role-user {
  background: var(--card2);
  color: var(--muted2);
  border: 1px solid var(--border);
}

/* TOGGLE SWITCH */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle input:checked + .toggle-slider { background: var(--teal); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* STAT CARDS */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 16px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}

.stat-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--teal);
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   INSTELLINGEN PAGE
   ============================================================ */
.settings-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.settings-section-title {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
}

.settings-row:last-child { border-bottom: none; }
.settings-row:hover { background: var(--bg2); }

.settings-row-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.settings-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.danger-zone {
  background: rgba(239,68,68,0.05);
  border-color: rgba(239,68,68,0.2);
}

.danger-row {
  color: var(--red);
}

/* SEGMENT CONTROL */
.segment {
  display: flex;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.segment-btn {
  flex: 1;
  padding: 7px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.segment-btn.active {
  background: var(--card);
  color: var(--teal);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ============================================================
   RAPPORT PAGE
   ============================================================ */
.rapport-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}

.rapport-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: all 0.2s;
}

.rapport-stat:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.rapport-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}

.rapport-stat-label {
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   FLOATING ACTION BUTTON
   ============================================================ */
.fab {
  position: fixed;
  bottom: calc(var(--bottom-nav) + 16px);
  right: 16px;
  width: 52px;
  height: 52px;
  background: var(--action-primary);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(6,182,212,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 90;
}

.fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 24px rgba(6,182,212,0.5);
}

/* oude footer CSS verwijderd - site-footer is leidend */

/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */
@media (max-width: 768px) {
  .navbar-right { display: none; }
  .hamburger { display: flex; }
  .bottom-nav { display: flex; }
  .fab { display: flex; }

  /* LT-07: extra ruimte onderaan voor FAB clearance op mobiel */
  body { padding-bottom: calc(var(--bottom-nav) + 72px); }

  .items-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .charts-row {
    grid-template-columns: 1fr;
  }

  .stat-cards {
    grid-template-columns: 1fr;
  }

  .rapport-stats {
    grid-template-columns: 1fr;
  }

  .summary-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .add-form {
    flex-direction: column;
  }

  .form-input { min-width: unset; }

  .filter-bar {
    margin: 0 12px;
  }

  .page-title { font-size: 22px; }
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .items-grid {
    grid-template-columns: 1fr;
  }

  .navbar { padding: 0 14px; }
  .main-content { padding: 14px 12px; }

  .summary-count { font-size: 18px; }

  .counter-btn { width: 44px; height: 44px; }
  .counter-display { min-width: 44px; height: 44px; font-size: 14px; }

  .rapport-stats { grid-template-columns: 1fr 1fr; }

  .login-card { padding: 28px 20px; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .navbar, .bottom-nav, .fab, .summary-actions,
  .add-panel, .charts-row { display: none !important; }
  body { background: #fff; color: #000; }
  .item-card, .transactions-card { border: 1px solid #ccc; }
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  white-space: nowrap;
}

.toast.success { border-color: var(--green); color: var(--green); }
.toast.error   { border-color: var(--red);   color: var(--red);   }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ============================================================
   v1.2 - GAST CTA CARD
   ============================================================ */
.guest-cta-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 20px;
    margin: 28px 0 20px;
    box-shadow: var(--shadow-sm);
}
.guest-cta-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}
.guest-cta-content {
    flex: 1;
    min-width: 0;
}
.guest-cta-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}
.guest-cta-sub {
    font-size: 13px;
    color: var(--muted-light);
    line-height: 1.4;
}
.guest-cta-btn {
    flex-shrink: 0;
    font-size: 13px;
    white-space: nowrap;
}
.guest-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.guest-cta-login {
    font-size: 12px;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.guest-cta-login:hover,
.guest-cta-login:focus {
    color: var(--teal);
}
@media (max-width: 480px) {
    .guest-cta-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .guest-cta-actions { width: 100%; }
    .guest-cta-btn { width: 100%; text-align: center; }
}

/* Gast onboarding tooltip (SGT-005 / #65) - first-visit, dismissable */
.guest-onboarding-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    background: var(--teal-soft, rgba(6,182,212,0.08));
    border: 1px solid var(--teal-glow, rgba(6,182,212,0.20));
    border-radius: var(--radius-sm, 10px);
    padding: 10px 14px;
    margin: 12px 0;
    font-size: 14px;
    color: var(--text-2, #334155);
}
.guest-onboarding-hint.is-dismissed { display: none; }
.guest-onboarding-text { flex: 1; }
.guest-onboarding-dismiss {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--muted, #64748b);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
}
.guest-onboarding-dismiss:hover,
.guest-onboarding-dismiss:focus { color: var(--teal, #06b6d4); background: var(--bg-2, #f0f4f8); }

.free-discover-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--teal-soft);
    border: 1px solid var(--teal-glow);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-2);
}
.free-discover-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.free-discover-text {
    flex: 1;
    line-height: 1.5;
}
.free-discover-text a {
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
}
.free-discover-text a:hover { text-decoration: underline; }
.free-discover-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted-light);
    font-size: 14px;
    padding: 2px 4px;
    line-height: 1;
    flex-shrink: 0;
}
.free-discover-close:hover { color: var(--text); }

.guest-save-nudge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(6,182,212,0.08);
    border: 1px solid rgba(6,182,212,0.25);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin: 8px 0 4px;
    font-size: 13px;
    animation: fadeInDown 0.3s ease;
}
.save-nudge-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.save-nudge-text {
    flex: 1;
    color: var(--text-2);
    line-height: 1.5;
}
.save-nudge-cta {
    background: var(--action-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.save-nudge-cta:hover { opacity: 0.85; }
.save-nudge-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted-light);
    font-size: 14px;
    padding: 2px 4px;
    line-height: 1;
    flex-shrink: 0;
}
.save-nudge-close:hover { color: var(--text); }

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

/* ============================================================
   v1.2 - DISABLED PLAN FEATURES (gierig maken)
   ============================================================ */
.plan-feature-disabled {
    opacity: 0.45;
    pointer-events: none;
    position: relative;
}
.plan-feature-disabled::after {
    content: attr(data-plan-label);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 700;
    color: var(--muted-light);
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2px 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.plan-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted-light);
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2px 10px;
    white-space: nowrap;
}

/* ============================================================
   v1.2 - GESCHIEDENIS WARNING BANNER (Free 30-dagen)
   ============================================================ */
.history-warning-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fef9c3;
    border: 1.5px solid #ca8a04;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-top: 0;
    margin-bottom: 20px;
}
[data-theme="dark"] .history-warning-banner {
    background: rgba(234,179,8,0.10);
    border-color: rgba(234,179,8,0.45);
}
.history-urgency-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff1f2;
    border: 1.5px solid #e11d48;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-top: 0;
    margin-bottom: 16px;
}
[data-theme="dark"] .history-urgency-banner {
    background: rgba(225,29,72,0.10);
    border-color: rgba(225,29,72,0.45);
}
.history-urgency-banner .history-warning-text { color: #9f1239; }
[data-theme="dark"] .history-urgency-banner .history-warning-text { color: var(--text-2); }
.history-urgency-banner .history-warning-text strong { color: #be123c; }
[data-theme="dark"] .history-urgency-banner .history-warning-text strong { color: #fda4af; }
.history-urgency-banner .history-warning-text a { color: #0369a1; font-weight: 600; }
[data-theme="dark"] .history-urgency-banner .history-warning-text a { color: var(--teal); }
.history-warning-icon { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.history-warning-text { flex: 1; font-size: 13px; color: #713f12; line-height: 1.5; }
[data-theme="dark"] .history-warning-text { color: var(--text-2); }
.history-warning-text strong { color: #92400e; font-weight: 700; }
[data-theme="dark"] .history-warning-text strong { color: #fbbf24; }
.history-warning-text a { color: #0369a1; text-decoration: none; font-weight: 600; }
[data-theme="dark"] .history-warning-text a { color: var(--teal); }
.history-warning-text a:hover { text-decoration: underline; }

/* ============================================================
   v1.2 - INSTELLINGEN: PLAN VERGELIJKINGSTABEL
   ============================================================ */
.plan-current-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.plan-current-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-compare-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 900px) {
    .plan-compare-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 420px) {
    .plan-compare-grid { grid-template-columns: 1fr; }
}

.plan-compare-col {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s;
}
.plan-compare-active {
    border-color: var(--teal);
    background: var(--teal-glow-2);
}
.plan-compare-highlight {
    border-color: var(--teal);
}
.plan-compare-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.plan-compare-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.plan-compare-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--teal);
}
.plan-compare-price small { font-size: 11px; color: var(--muted-light); }

.plan-compare-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}
.plan-compare-features li {
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.4;
}
.plan-feat-locked {
    color: var(--muted) !important;
    text-decoration: line-through;
    opacity: 0.6;
}

.plan-compare-current {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.plan-compare-btn {
    font-size: 12px !important;
    padding: 8px 10px !important;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
}

/* oude footer-legal CSS verwijderd - site-footer is leidend */


/* ============================================================
   SITE FOOTER - enkele footer voor hele applicatie
   Altijd gecentreerd, geen versienummer, professioneel
   ============================================================ */
.site-footer {
  text-align: center;
  padding: 32px 20px 80px;
  margin-top: 40px;
  border-top: 1px solid var(--border, #e2e8f0);
  position: relative;
  z-index: 1;
  clear: both;
}
.site-footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.site-footer-links a {
  color: var(--muted, #94a3b8);
  text-decoration: none;
  font-size: 13px;
}
.site-footer-links a:hover {
  color: var(--teal, #0d9488);
}
.site-footer-copy {
  font-size: 12px;
  color: var(--muted, #94a3b8);
  opacity: 0.7;
}
@media (max-width: 600px) {
  .site-footer {
    padding-bottom: max(100px, calc(var(--bottom-nav, 65px) + 2rem + env(safe-area-inset-bottom)));
  }
}


/* ============================================================
   LANDING PAGE - index.html
   Scoped via data-page="landing" op <html>
   ============================================================ */

[data-page="landing"] {
  --font-display: var(--font);
  --teal:       #06b6d4;
  --teal-dark:  #0891b2;
  --teal-glow:  rgba(6,182,212,0.12);
  --teal-soft:  rgba(6,182,212,0.08);
  --green:      #22c55e;
  --bg:         #f8fafc;
  --bg-2:       #f0f4f8;
  --card:       #ffffff;
  --text:       #0f172a;
  --text-2:     #334155;
  --muted:      #64748b;
  --border:     #e2e8f0;
  --shadow:     0 4px 24px rgba(15,23,42,0.08);
  --shadow-lg:  0 16px 48px rgba(15,23,42,0.12);
  --radius:     16px;
  --radius-sm:  10px;
  --font:       "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:       "DM Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

[data-page="landing"][data-theme="dark"] {
  --bg:         #0a0f1e;
  --bg-2:       #0f172a;
  --card:       #1a2235;
  --text:       #f0f6ff;
  --text-2:     #cbd5e1;
  --muted:      #94a3b8;
  --border:     #2a3a52;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.5);
  --teal-glow:  rgba(6,182,212,0.15);
  --teal-soft:  rgba(6,182,212,0.10);
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248,250,252,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.25s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(6,182,212,0.20);
}

.nav-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-link:hover { color: var(--text); background: var(--bg-2); }

.nav-cta {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--action-primary);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  box-shadow: 0 8px 20px rgba(6,182,212,0.20);
}

.nav-cta:hover { background: var(--action-primary-hover); transform: translateY(-1px); }

@media (max-width: 760px) {
  .nav-links .nav-link { display: none; }
  .nav-name { font-size: 15px; }
  .nav-cta { padding: 9px 14px; font-size: 13px; }
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 24px 84px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(6,182,212,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(34,197,94,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-glow);
  border: 1px solid rgba(6,182,212,0.28);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}

.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text);
  max-width: 900px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero-title .highlight {
  color: var(--teal);
  position: relative;
  white-space: nowrap;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), transparent);
  border-radius: 2px;
  opacity: 0.4;
}

.hero-sub {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--muted);
  max-width: 650px;
  line-height: 1.65;
  margin-bottom: 34px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 26px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.4s forwards;
}

.btn-hero {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--action-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(6,182,212,0.22);
}

.btn-primary:hover {
  background: var(--action-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(6,182,212,0.30);
}

.btn-ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-2);
  transform: translateY(-2px);
}

.hero-mini-proof {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.45s forwards;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 640px;
  width: 100%;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.48s forwards;
}

.usp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

.usp-icon {
  font-size: 22px;
  line-height: 1;
}

.usp-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.usp-sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .usp-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .usp-item {
    padding: 14px 8px;
  }
  .usp-label {
    font-size: 12px;
  }
}

.hero-demo {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
  width: 100%;
  max-width: 430px;
}

.demo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.demo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.demo-total {
  font-family: var(--mono);
  font-size: 52px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.demo-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.demo-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
}

.demo-item-icon { font-size: 20px; }

.demo-item-info { flex: 1; }

.demo-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.demo-item-price {
  font-size: 11px;
  color: var(--muted);
}

.demo-item-count {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--teal);
  min-width: 32px;
  text-align: right;
}

.demo-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* SOCIAL PROOF COUNTER */
.social-proof-strip {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.55s forwards;
}

.social-proof-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.social-proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.social-proof-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--teal);
  font-family: var(--font);
  letter-spacing: -0.02em;
}

.social-proof-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.social-proof-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

@media (max-width: 600px) {
  .social-proof-inner {
    gap: 20px;
    padding: 16px;
  }
  .social-proof-number {
    font-size: 20px;
  }
  .social-proof-label {
    font-size: 11px;
  }
}

.trust-strip {
  padding: 14px 24px 52px;
  display: flex;
  justify-content: center;
}

.trust-inner {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 900px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
  color: var(--text-2);
  box-shadow: var(--shadow);
}

.section {
  padding: 80px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1.04;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.65;
  margin-bottom: 56px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .pain-grid { grid-template-columns: 1fr; }
}

.pain-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.pain-card strong {
  display: block;
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--text);
}

.pain-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(6,182,212,0.25);
}

.step-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 18px;
}

.step-icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: block;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.step-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.audience {
  background: linear-gradient(135deg, #0f172a 0%, #1a2235 100%);
  padding: 80px 24px;
}

.audience-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.audience .section-title { color: #fff; }
.audience .section-label { color: var(--teal); }
.audience .section-sub   { color: rgba(255,255,255,0.68); }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 760px) {
  .audience-grid { grid-template-columns: 1fr; }
}

.audience-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}

.audience-card:hover {
  background: rgba(6,182,212,0.08);
  border-color: rgba(6,182,212,0.3);
  transform: translateY(-2px);
}

.audience-emoji { font-size: 36px; margin-bottom: 16px; display: block; }

.audience-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.audience-text {
  font-size: 14px;
  color: rgba(255,255,255,0.60);
  line-height: 1.65;
}

.audience-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 4px 10px;
  border-radius: 999px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

.feature {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(6,182,212,0.25);
}

.feature-icon { font-size: 28px; margin-bottom: 12px; display: block; }

.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.feature-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1000px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--teal);
  background: linear-gradient(135deg, rgba(6,182,212,0.04), var(--card));
  box-shadow: 0 0 0 1px var(--teal), var(--shadow-lg);
}

.pricing-card.featured::before {
  content: '\2B50 Beste start na gratis';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--action-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.pricing-price {
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 15px;
  color: var(--muted);
  font-family: var(--font);
}

.pricing-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.55;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 18px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 22px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
}

.pricing-features li .check { color: var(--green); flex-shrink: 0; }
.pricing-features li .cross { color: var(--muted); flex-shrink: 0; }

.pricing-btn {
  display: block;
  text-align: center;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.pricing-btn-primary {
  background: var(--action-primary);
  color: #fff;
}

.pricing-btn-primary:hover { background: var(--action-primary-hover); }

.pricing-btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.pricing-btn-outline:hover { background: var(--bg-2); }

.pricing-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 720px;
}

.cta-banner {
  background: linear-gradient(135deg, #0f172a, #0a1628);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(6,182,212,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.62);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.cta-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  position: relative;
  z-index: 1;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─────────────────────────────────────────────────────
   Utility + state classes - added 2026-05-05
   Replaces inline style="display:none" + ad-hoc styling
   per SGT_AUDIT_2026-05-05 PRIO 1
   ───────────────────────────────────────────────────── */

.hidden { display: none !important; }

.btn--small { font-size: 13px; }

.pro-badge-inline {
    font-size: 11px;
    background: var(--action-primary);
    color: #fff;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 600;
}

.upgrade-card-center {
    text-align: center;
    padding: 16px 0;
}

.upgrade-card-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.upgrade-card-text {
    font-size: 13px;
    color: var(--muted-light);
    margin-bottom: 12px;
}
/* Navbar utility - 2026-05-05 */
.bottom-nav-item--accent { color: var(--teal); }

/* sr-only - accessibility helper, added 2026-05-05 audit2 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─────────────────────────────────────────────────────
   WCAG 2.1 :focus-visible - added 2026-05-05 audit2
   Replaces missing accessible focus indicators
   per SGT_AUDIT_2026-05-05 Sprint 17.5
   ───────────────────────────────────────────────────── */

/* Generic interactive elements */
*:focus { outline: none; }
*:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Buttons */
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-export:focus-visible,
.btn-filter:focus-visible,
.btn-outline:focus-visible,
.btn-hero:focus-visible,
.btn-ghost:focus-visible,
.btn--small:focus-visible,
.btn-submit:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--teal-glow);
}

/* Form inputs */
.form-control:focus-visible,
input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="password"]:focus-visible,
input[type="search"]:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 1px;
    border-color: var(--teal);
}

/* Input wrappers - show focus on parent */
.input-wrap:focus-within {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Navigation */
.bottom-nav-item:focus-visible,
.tab-btn:focus-visible,
.toggle-password:focus-visible,
.save-nudge-close:focus-visible,
.free-discover-close:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    background: var(--teal-soft);
    border-radius: 4px;
}

/* Cards en clickable items */
.card:focus-visible,
.card-item:focus-visible,
.list-item:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

/* Links */
a:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Skip-link helper (sr-only complement) */
.sr-only-focusable:not(:focus):not(:focus-within) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─────────────────────────────────────────────────────
   Site footer landing - added 2026-05-05
   Geünifieerd footer-design conform voor-gezinnen.php pattern
   per TheMos request: dashboard footer = voor-gezinnen footer
   ───────────────────────────────────────────────────── */

.site-footer-landing {
    margin-top: auto;
    background: transparent;
}

.site-footer-landing .footer {
    padding: 40px 24px max(env(safe-area-inset-bottom, 0px), 40px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.footer-logo-mini {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.footer-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover { color: var(--text); }

.footer-copy {
    font-size: 13px;
    color: var(--muted);
}

/* Hide empty footer-note (gast mode) */
.footer-note:empty { display: none; }

@media (max-width: 600px) {
    .site-footer-landing .footer {
        flex-direction: column;
        text-align: center;
    }
}

/* ─────────────────────────────────────────────────────
   Landing-nav (login-navbar) - moved from login.css
   2026-05-05 - beschikbaar voor alle pages die
   includes/landing-nav.php includen
   ───────────────────────────────────────────────────── */

.login-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: var(--nav-height, 60px);
    border-bottom: 1px solid var(--border);
    background: rgba(240, 244, 248, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

[data-theme="dark"] .login-navbar {
    background: rgba(10, 15, 30, 0.9);
}

.login-navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 17px;
}

.login-navbar-brand img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
}

.login-navbar-help {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.login-navbar-help:hover { color: var(--teal); }

/* ─────────────────────────────────────────────────────
   PWA Install Banner (toast-style)
   2026-05-05 - added missing CSS, replaces JS inline style.display
   per TheMos report: banner ongestyled, lijkt extra footer
   ───────────────────────────────────────────────────── */

.pwa-banner {
    display: none;
    position: fixed;
    bottom: max(env(safe-area-inset-bottom, 0px), 16px);
    left: 16px;
    right: 16px;
    max-width: 480px;
    margin: 0 auto;
    background: var(--card, #fff);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    z-index: 89;
    align-items: center;
    gap: 12px;
    animation: pwaBannerSlideUp 0.3s ease-out;
}

.pwa-banner.visible {
    display: flex;
}

.pwa-banner-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.pwa-banner-text {
    flex: 1;
    font-size: 13px;
    color: var(--text);
    line-height: 1.4;
}

.pwa-banner-text strong {
    display: block;
    font-weight: 700;
    margin-bottom: 2px;
}

.pwa-banner-install {
    background: var(--action-primary);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

.pwa-banner-install:hover { background: var(--action-primary-hover); }

.pwa-banner .btn,
.pwa-banner-install,
.pwa-banner-close {
    min-height: 44px;
}

.pwa-banner-close {
    background: none;
    border: none;
    color: var(--muted-light);
    cursor: pointer;
    font-size: 16px;
    min-width: 44px;
    padding: 6px;
    line-height: 1;
    flex-shrink: 0;
}

.pwa-banner-close:hover { color: var(--text); }

@keyframes pwaBannerSlideUp {
    from {
        transform: translateY(20px);
    }
    to {
        transform: translateY(0);
    }
}

/* Op mobile boven bottom-nav (bottom-nav heeft eigen height var) */
@media (max-width: 600px) {
    .pwa-banner {
        bottom: calc(var(--bottom-nav, 65px) + 60px + 48px + env(safe-area-inset-bottom));
    }
}

/* Skip-link a11y - added 2026-05-05 (post team-audit, was missing!) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 8px;
    background: var(--action-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 4px 0;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus,
.skip-link:focus-visible {
    top: 0;
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

/* prefers-reduced-motion - WCAG 2.3.3 + a11y v2.1
   2026-05-05 - added per a11y-tester P2 finding */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Account page + plan badges - Sprint 18 part 1 */
.account-section {
    margin-bottom: 24px;
    padding: 24px;
}
.account-grid {
    display: grid;
    gap: 12px;
}
.account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.account-row:last-child { border-bottom: none; }
.account-label {
    font-weight: 600;
    color: var(--muted-light);
}
.account-value {
    min-width: 0;
    overflow-wrap: anywhere;
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.account-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; }

.plan-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.plan-badge--free      { background: var(--muted); color: #fff; }
.plan-badge--pro       { background: var(--action-primary); color: #fff; }
.plan-badge--groepen   { background: var(--action-primary-hover); color: #fff; }
.plan-badge--business  { background: linear-gradient(135deg, var(--action-primary), var(--action-primary-hover)); color: #fff; }

.account-actions .btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.65;
}

.alert-success {
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid #22c55e;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* CTA fullwidth utility - Sprint 18 plannen.php */
.cta-fullwidth {
    width: 100%;
    cursor: pointer;
    border: none;
}


/* A11y contrast fix - .link-teal voor 4.5:1 ratio op light bg
   Sprint 17.5 a11y P1 (6 mei 2026) */
.link-teal,
.footer-link.link-teal {
    color: var(--teal-dark);
}
.link-teal:hover {
    color: var(--text);
}

/* btn-hero modifier - small + nowrap, voor voor-gezinnen/voor-bedrijven CTA buttons
   Sprint 17.5 clean code (6 mei 2026) */
.btn-hero--small-nowrap {
    font-size: 14px;
    white-space: nowrap;
}

/* Utility classes - Sprint 17.5 clean-code (6 mei 2026)
   voor-bedrijven + voor-gezinnen inline style extraction */
.section-center { text-align: center; margin-bottom: 36px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mb-8  { margin-bottom: 8px; }
.btn-hero--block { display: block; text-align: center; }

/* Usecase cards op donkere bg (voor-bedrijven hero section) */
.usecase-card--dark {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.10);
}
.usecase-title--light { color: #fff; }
.usecase-text--light  { color: rgba(255, 255, 255, 0.60); }

/* Section width modifiers */
.section-narrow-1120 {
    padding: 0 24px 80px;
    max-width: 1120px;
    margin-inline: auto;
}
.usecase-grid--spaced { margin-top: 8px; }

/* ─────────────────────────────────────────────────────
   Plannen.php - wl-modal BEM block + utilities
   Sprint 17.5 clean-code (6 mei 2026) - extract 35 inline styles
   ───────────────────────────────────────────────────── */

/* Section-level utilities */
.container--narrow { max-width: 900px; margin-inline: auto; }
.plan-badge-top--muted-light { background: var(--muted-light); }
.plan-badge-top--locked { background: var(--muted); }
.cta-soon--block {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 14px;
}

/* Honeypot - invisible voor bots */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* wl-modal - Wachtlijst modal (BEM) */
.wl-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.wl-modal.is-open { display: flex; }

.wl-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.wl-modal__panel {
    position: relative;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    width: min(420px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.wl-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--muted-light);
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
}
.wl-modal__close:hover { color: var(--text); }

.wl-modal__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 4px;
}

.wl-modal__intro {
    font-size: 13px;
    color: var(--muted-light);
    margin: 0 0 20px;
    line-height: 1.5;
}

.wl-modal__field { margin-bottom: 14px; }
.wl-modal__field--last { margin-bottom: 18px; }

.wl-modal__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.wl-modal__label--gap-8 { margin-bottom: 8px; }

.wl-modal__required {
    color: var(--teal);
}

.wl-modal__input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    min-height: 44px;
}
.wl-modal__input:focus {
    border-color: var(--teal);
    outline: 2px solid var(--teal-glow);
    outline-offset: 1px;
}

.wl-modal__radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wl-modal__radio-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
}
.wl-modal__radio-row:hover { border-color: var(--teal); }
.wl-modal__radio-row input[type="radio"] {
    accent-color: var(--teal);
    width: 18px;
    height: 18px;
}

.wl-modal__error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 12px;
}
.wl-modal__error[hidden] { display: none; }

.wl-modal__submit {
    width: 100%;
    padding: 12px 16px;
    background: var(--action-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    min-height: 44px;
}
.wl-modal__submit:hover { background: var(--action-primary-hover); }
.wl-modal__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wl-modal__success {
    text-align: center;
    padding: 20px 0;
}
.wl-modal__success[hidden] { display: none; }

/* ─── B.6 plannen.php - extra wl-modal sub-classes ─── */
.wl-modal__success-emoji { font-size: 36px; margin-bottom: 12px; }
.wl-modal__success-title { font-size: 17px; font-weight: 800; color: var(--text); margin: 0 0 8px; }
.wl-modal__success-text  { font-size: 13px; color: var(--muted-light); line-height: 1.6; margin: 0 0 6px; }
.wl-modal__success-pos   { font-size: 13px; color: var(--muted-light); margin: 0 0 20px; }
.wl-modal__teller        { margin-bottom: 8px; font-size: 12px; color: var(--muted-light); }
.wl-modal__teller--last  { margin-bottom: 20px; }
.wl-modal__share-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #25d366;
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.wl-modal__notice {
    margin-top: 16px;
    padding: 10px 12px;
    background: rgba(20,184,166,0.1);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--teal);
    text-align: center;
}

/* ─── B.6 utilities - class-based toggles (waitlist.js refactor) ─── */
.is-hidden        { display: none !important; }
.is-scroll-locked { overflow: hidden; }


/* Export lock indicator in nav */
.nav-lock { font-size: 10px; opacity: 0.7; }
.nav-link-locked { opacity: 0.6; }
.ham-link-locked { opacity: 0.6; }

/* ── MOBIEL BOTTOM NAV - verbeterde UX ── */
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* gap: 4px - niet iOS 13 (Safari <14.1) */
    padding: 6px 4px 8px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item .nav-icon {
    font-size: 22px;
    line-height: 1;
    display: block;
    transition: transform 0.2s ease;
}
.bottom-nav-item > * + * { margin-top: 2px; }
.bottom-nav-item span:last-child {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.bottom-nav-item.active {
    color: var(--teal, #0ea5e9);
}
.bottom-nav-item.active .nav-icon {
    transform: translateY(-2px) scale(1.15);
}
.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    background: var(--teal, #0ea5e9);
    border-radius: 0 0 3px 3px;
}
[data-theme="dark"] .bottom-nav-item {
    color: #6b7280;
}
[data-theme="dark"] .bottom-nav-item.active {
    color: var(--teal, #0ea5e9);
}

/* Hamburger dropdown */
.nav-hamburger-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    right: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 9998;
    min-width: 200px;
    padding: 8px 0;
    animation: menuSlide 0.15s ease;
}
.nav-hamburger-menu.open { display: block; }
@keyframes menuSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ham-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s;
}
.ham-link:hover, .ham-link.active { background: var(--teal-glow); color: var(--teal); }
.ham-divider { height: 1px; background: var(--border); margin: 4px 0; }
.ham-logout { color: var(--red) !important; }
.ham-logout:hover { background: var(--red-bg) !important; }

/* Desktop: hamburger knop alleen zichtbaar als JS het activeert OF als viewport smal genoeg is */
@media (min-width: 769px) {
    .hamburger { display: none !important; }
    .nav-hamburger-menu { display: none !important; }
}

/* P0 #227: herstelmelding voor bestaande PWA-installaties op de oude www-origin. */
.pwa-host-recovery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: min(1180px, calc(100% - 2rem));
    margin: 0.75rem auto;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 0.75rem;
    background: #ecfeff;
    color: #0f172a;
    font-size: 0.9rem;
    line-height: 1.45;
}

.pwa-host-recovery a {
    color: #0e7490;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

@media (max-width: 767px) {
    .pwa-host-recovery {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }
}
.account-action-status,
.checkout-action-status {
    min-height: 1.5em;
    margin-top: 12px;
    color: var(--text-2, #475569);
    font-size: 14px;
}

.account-action-status.is-error,
.checkout-action-status.is-error {
    color: var(--red, #dc2626);
}

button[aria-busy="true"],
.btn[aria-busy="true"],
[data-submit-lock][aria-busy="true"] {
    cursor: progress;
}

button:disabled,
.btn:disabled,
[aria-disabled="true"] {
    cursor: not-allowed;
}
