/* =========================================================================
   Yoga Farm – Prototype styling
   Warm, rustig, duidelijk, mobiel-first.
   ========================================================================= */

.yf-root {
  --primary: #7c8a6b;      /* salie groen */
  --primary-dark: #5f6c50;
  --primary-soft: #eaeee3;
  --accent: #c98a6b;       /* warme terracotta */
  --accent-soft: #f6e7df;
  --bg: #f6f4ee;           /* warm crème */
  --surface: #ffffff;
  --ink: #2f3128;
  --muted: #7c7a70;
  --line: #e7e3d8;
  --ok: #4f8a5b;
  --ok-soft: #e4f0e3;
  --warn: #b8703a;
  --warn-soft: #f7e8da;
  --danger: #b4503f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 22px rgba(70, 66, 50, 0.08);
  --shadow-lg: 0 14px 40px rgba(70, 66, 50, 0.16);
  --maxw: 1400px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 88px; /* ruimte voor mobiele onderbalk */
}

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
p { margin: 0; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Iconen (inline Phosphor SVG) ---------- */
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex-shrink: 0; }
.ic { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }

/* ---------- App-frame ---------- */
.app { width: 100%; max-width: none; margin: 0; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: rgba(246, 244, 238, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-logo {
  width: 118px;
  height: 84px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: 1.25rem;
}
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.topbar .spacer { flex: 1; }
.mobile-context { display: none; }
.who {
  display: flex; align-items: center; gap: 9px;
  font-size: .9rem; color: var(--muted);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: .82rem;
}

/* ---------- Layout met sidebar (beheer) ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 230px; flex-shrink: 0;
  padding: 18px 14px; border-right: 1px solid var(--line);
  position: fixed; top: 0; left: 0; bottom: 0; align-self: flex-start; height: 100vh;
  overflow-y: auto; z-index: 40;
}
.sidebar .nav-group { margin-top: 6px; }
.sidebar a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 12px;
  text-decoration: none; color: var(--ink);
  font-size: .94rem; font-weight: 500; margin-bottom: 2px;
}
.sidebar a .ic { width: 22px; font-size: 1.3rem; opacity: .85; }
.sidebar a:hover { background: var(--primary-soft); }
.sidebar a.active { background: var(--primary); color: #fff; }
.sidebar a.active .ic { opacity: 1; }
.content { flex: 1; min-width: 0; padding: 22px clamp(16px, 4vw, 34px) 60px; }
.main-panel { margin-left: 230px; width: calc(100vw - 230px); }

/* Ledenkant gebruikt een centrale kolom */
.member-main { padding: 22px clamp(16px, 5vw, 56px) 48px; }

/* ---------- Views ---------- */
.view { display: none; animation: fade .25s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to {opacity:1; transform:none;} }

.view-head { margin-bottom: 18px; }
.view-head .eyebrow { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.view-head h1 { margin-top: 2px; }
.view-head p.sub { color: var(--muted); margin-top: 4px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 14px; }
.card h2 { margin-bottom: 4px; }
.card .card-cta { margin-top: 14px; }

.grid { display: grid; gap: 14px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Highlight-kaart lessenpakket */
.package-card {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.package-card .big-number { font-size: 2.6rem; font-weight: 700; line-height: 1; }
.package-card .big-label { color: var(--muted); margin-top: 2px; }
.package-card .mini-stats { display: flex; gap: 18px; margin-top: 16px; flex-wrap: wrap; }
.package-card .mini-stats div { font-size: .9rem; }
.package-card .mini-stats strong { display: block; font-size: 1.15rem; }
.package-card .progress { margin-top: 16px; height: 8px; border-radius: 999px; background: var(--primary-soft); overflow: hidden; }
.package-card .progress > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }

/* Stat-kaarten (beheer dashboard) */
.stat { text-align: left; }
.stat .num { font-size: 2rem; font-weight: 700; line-height: 1; }
.stat .lbl { color: var(--muted); margin-top: 6px; font-size: .9rem; }
.stat .ic-badge {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-dark); margin-bottom: 12px; font-size: 1.4rem;
}

/* ---------- Lijst / leskaarten ---------- */
.day-group { margin-bottom: 22px; }
.day-label {
  font-weight: 650; margin-bottom: 10px; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.day-label .pill-today { background: var(--accent); color: #fff; font-size: .68rem; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }

.lesson-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px;
}
.lesson-row .time {
  font-weight: 700; font-size: 1.05rem; min-width: 52px;
}
.lesson-row .time small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.lesson-row .body { flex: 1; min-width: 0; }
.lesson-row .body .title { font-weight: 600; }
.lesson-row .body .meta { color: var(--muted); font-size: .86rem; margin-top: 2px; }
.lesson-row .body .meta .dot { margin: 0 6px; opacity: .5; }
.lesson-row .action { flex-shrink: 0; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: none; border-radius: 12px; padding: 11px 18px;
  font-size: .94rem; font-weight: 600; background: var(--primary-soft); color: var(--primary-dark);
  transition: transform .05s ease, filter .15s ease;
  text-decoration: none;
  box-shadow: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn:hover, .btn:focus, .btn:visited { color: var(--primary-dark); background: var(--primary-soft); text-decoration: none; box-shadow: none; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:visited { background: var(--primary); color: #fff; filter: brightness(1.05); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover, .btn-accent:focus, .btn-accent:visited { background: var(--accent); color: #fff; filter: brightness(1.04); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover, .btn-ghost:focus, .btn-ghost:visited { background: var(--primary-soft); color: var(--ink); border-color: var(--line); }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid #e8c7c0; }
.btn-danger:hover, .btn-danger:focus, .btn-danger:visited { background: #fff; color: var(--danger); border-color: #e8c7c0; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 22px; font-size: 1rem; }
.btn-sm { padding: 8px 13px; font-size: .85rem; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }

/* ---------- Status-labels ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark);
}
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.muted { background: #eee9df; color: var(--muted); }
.tag.full { background: #efe2dd; color: var(--danger); }
.tag.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.spots { font-size: .86rem; color: var(--muted); }
.spots.low { color: var(--warn); font-weight: 600; }
.spots.none { color: var(--danger); font-weight: 600; }

/* ---------- Zoekbalk ---------- */
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.search input { border: none; outline: none; font-size: 1rem; flex: 1; background: transparent; color: var(--ink); }
.search .ic { opacity: .45; font-size: 1.25rem; }

/* ---------- Tabel / ledenlijst ---------- */
.member-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px;
}
.member-card .av { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.member-card .info { flex: 1; min-width: 0; }
.member-card .info .name { font-weight: 600; }
.member-card .info .sub { color: var(--muted); font-size: .85rem; }
.member-card .nums { text-align: right; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.member-card .nums strong { color: var(--ink); font-size: 1.05rem; display: block; }

/* ---------- Definitielijst (liddetail) ---------- */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: .94rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; }

/* Mini-stats rij */
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-chip { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; flex: 1; min-width: 110px; }
.stat-chip .n { font-size: 1.4rem; font-weight: 700; }
.stat-chip .l { color: var(--muted); font-size: .8rem; }

/* ---------- Aanwezigheid-lijst ---------- */
.attend-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 6px; border-bottom: 1px solid var(--line);
}
.attend-row:last-child { border-bottom: none; }
.attend-row label { display: flex; align-items: center; gap: 12px; flex: 1; cursor: pointer; }
.attend-row input[type=checkbox] {
  width: 24px; height: 24px; accent-color: var(--primary); cursor: pointer;
}
.attend-row .av { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; font-weight: 700; font-size: .8rem; }

/* ---------- Historie ---------- */
.log-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.log-row:last-child { border-bottom: none; }
.log-row .amt { font-weight: 700; min-width: 46px; }
.log-row .amt.plus { color: var(--ok); }
.log-row .amt.minus { color: var(--danger); }
.log-row .lbl { flex: 1; }
.log-row .when { color: var(--muted); font-size: .82rem; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(47, 49, 40, 0.45);
  display: none; align-items: flex-end; justify-content: center; z-index: 60; padding: 0;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface); width: 100%; max-width: 460px;
  border-radius: 22px 22px 0 0; padding: 24px 22px 26px;
  box-shadow: var(--shadow-lg); animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal h2 { margin-bottom: 6px; }
.modal .summary {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; margin: 14px 0;
}
.modal .summary .dl { font-size: .92rem; }
.modal .highlight {
  background: var(--accent-soft); color: var(--warn); font-weight: 600;
  border-radius: 12px; padding: 11px 14px; margin: 12px 0; font-size: .92rem;
}
.modal .modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal .modal-actions .btn { flex: 1; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 14px;
  box-shadow: var(--shadow-lg); font-size: .92rem; font-weight: 500;
  opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 80;
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: var(--ok); }

/* ---------- Mobiele onderbalk (leden) ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: none; background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(47,49,40,.1); padding: 7px 5px calc(7px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 26px rgba(47,49,40,.06);
}
.tabbar a {
  flex: 1; text-align: center; text-decoration: none; color: var(--muted);
  min-width: 0; font-size: .67rem; font-weight: 550; padding: 3px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tabbar a .ic { width: 34px; height: 29px; border-radius: 9px; display: grid; place-items: center; font-size: 1.2rem; transition: background .16s ease, color .16s ease; }
.tabbar a.active { color: var(--primary-dark); font-weight: 700; }
.tabbar a.active .ic { background: var(--primary-soft); color: var(--primary-dark); }

/* ---------- Empty state ---------- */
.empty { text-align: center; color: var(--muted); padding: 36px 18px; }
.empty .ic { font-size: 2rem; }

/* ---------- Hint banner ---------- */
.banner {
  background: var(--warn-soft); border: 1px solid #ecd7c2; color: var(--warn);
  border-radius: 14px; padding: 13px 16px; font-size: .9rem; margin-bottom: 16px;
}

/* ---------- Snelle acties (beheer) ---------- */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.quick button {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 14px; text-align: left; box-shadow: var(--shadow);
  font-weight: 600; display: flex; align-items: center; gap: 11px; color: var(--ink);
}
.quick button .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.3rem; }
.quick button:hover { border-color: var(--primary); }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px;
  font-size: .95rem; font-family: inherit; background: var(--surface); color: var(--ink);
}
.yf-root input[type="text"],
.yf-root input[type="email"],
.yf-root input[type="password"],
.yf-root input[type="tel"],
.yf-root input[type="search"],
.yf-root input[type="number"],
.yf-root input[type="date"],
.yf-root input[type="time"],
.yf-root input[type="url"],
.yf-root select,
.yf-root textarea {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  line-height: 1.25;
  box-shadow: none;
  outline: none;
}
.yf-root input[type="search"]::-webkit-search-cancel-button,
.yf-root input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
.yf-root input[type="date"]::-webkit-calendar-picker-indicator,
.yf-root input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: .55;
  cursor: pointer;
}
.yf-root select {
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.yf-root input:focus,
.yf-root select:focus,
.yf-root textarea:focus {
  border-color: #b8c99f;
  box-shadow: 0 0 0 4px rgba(124, 138, 107, .16);
}
.field textarea { resize: vertical; min-height: 70px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.checklist label {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; background: var(--surface);
}
.checklist label:hover { border-color: var(--primary); }
.checklist input { width: 20px; height: 20px; accent-color: var(--primary); }
.checklist .li-title { font-weight: 600; }
.checklist .li-sub { color: var(--muted); font-size: .84rem; }
.checklist .li-main { flex: 1; }

/* Settings */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row .t-label { font-weight: 500; }
.toggle-row .t-label small { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; }
.settings-stack { display: grid; gap: 16px; }
.settings-card { padding: 0; overflow: visible; }
.settings-card-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px 16px; }
.settings-card-head h2 { font-size: 1.05rem; margin: 0 0 3px; }
.settings-card-head p, .setting-copy p { color: var(--muted); margin: 0; font-size: .84rem; line-height: 1.45; }
.settings-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-dark); font-size: 1.15rem; flex: 0 0 auto; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 76px; padding: 15px 22px; border-top: 1px solid var(--line); }
.setting-copy { min-width: 0; }
.setting-label { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; font-size: .92rem; font-weight: 650; color: var(--ink); }
.setting-number { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--muted); font-size: .82rem; }
.yf-root .setting-number input[type="number"] { width: 76px; min-height: 40px; padding: 8px 9px; text-align: center; font-weight: 700; }
.switch { position: relative; display: block; width: 48px; height: 28px; flex: 0 0 48px; cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #d8d9d4; transition: background .18s ease; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.switch span::after { content: ""; position: absolute; width: 24px; height: 24px; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(37, 42, 31, .24); transition: transform .18s ease; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 4px rgba(124, 138, 107, .2); }
.setting-help { position: relative; display: inline-grid; }
.setting-help button { display: grid; place-items: center; width: 19px; height: 19px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); font-family: inherit; font-size: .72rem; font-weight: 700; line-height: 1; cursor: help; }
.setting-help button:hover, .setting-help button:focus { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); box-shadow: none; }
.setting-help-text { position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 9px); width: min(270px, 70vw); padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: .78rem; font-weight: 400; line-height: 1.45; opacity: 0; visibility: hidden; transform: translate(-50%, 4px); transition: .15s ease; pointer-events: none; }
.setting-help:hover .setting-help-text, .setting-help:focus-within .setting-help-text { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.settings-savebar { position: sticky; z-index: 8; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 12px 14px 12px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 10px 28px rgba(50,57,42,.12); backdrop-filter: blur(10px); }
.settings-savebar > span { color: var(--muted); font-size: .84rem; }
.lesson-waitlist-setting { margin: 2px 0 4px; padding-inline: 0; }
.waitlist-row { border-color: #d8dfcb; background: #f8faf5; }
.waitlist-position { display: grid; place-items: center; align-content: center; width: 50px; min-width: 50px; min-height: 50px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-dark); }
.waitlist-position strong { font-size: 1.05rem; line-height: 1; }
.waitlist-position small { margin-top: 3px; font-size: .65rem; color: var(--muted); }
.waitlist-member { gap: 12px; }
.waitlist-actions { display: flex; gap: 7px; margin-left: auto; }

@media (max-width: 640px) {
  .setting-row { align-items: flex-start; padding: 15px 16px; gap: 14px; }
  .setting-number-row { display: grid; grid-template-columns: 1fr; }
  .settings-card-head { padding: 18px 16px 14px; }
  .settings-savebar > span { display: none; }
  .settings-savebar .btn { width: 100%; }
  .waitlist-member { align-items: flex-start; flex-wrap: wrap; }
  .waitlist-member .info { width: calc(100% - 66px); }
  .waitlist-actions { width: 100%; margin-left: 62px; }
}

/* Back link */
.back {
  display: inline-flex; align-items: center; gap: 6px; color: var(--muted);
  font-size: .9rem; font-weight: 600; background: none; border: none; padding: 4px 0; margin-bottom: 10px;
}
.back:hover, .back:focus { color: var(--primary-dark); background: transparent; box-shadow: none; }

.section-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 22px 0 10px; }

/* ---------- Weergave-wissel (lijst / agenda) ---------- */
.segmented { display: inline-flex; background: var(--primary-soft); border-radius: 12px; padding: 3px; margin-bottom: 16px; gap: 2px; }
.segmented button { border: none; background: transparent; padding: 8px 18px; border-radius: 9px; font-weight: 600; color: var(--primary-dark); font-size: .9rem; }
.segmented button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- Weekkalender ---------- */
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cal-label { font-weight: 650; }
.cal { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cal-gutter { flex: 0 0 50px; border-right: 1px solid var(--line); }
.cal-corner { height: 48px; border-bottom: 1px solid var(--line); }
.cal-hours { position: relative; }
.cal-hour { position: absolute; left: 0; right: 5px; text-align: right; font-size: .68rem; color: var(--muted); transform: translateY(-6px); }
.cal-days { display: flex; flex: 1; overflow-x: auto; }
.cal-day { flex: 1 0 0; min-width: 116px; border-right: 1px solid var(--line); }
.cal-day:last-child { border-right: none; }
.cal-dhead { height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cal-dhead strong { font-size: 1.05rem; color: var(--ink); margin-top: 1px; }
.cal-dhead.is-today { color: var(--accent); }
.cal-dhead.is-today strong { color: #fff; background: var(--accent); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.cal-body { position: relative; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 50px, var(--line) 50px, var(--line) 51px); }
.cal-ev { position: absolute; left: 3px; right: 3px; border: none; border-radius: 8px; padding: 4px 7px; text-align: left; overflow: hidden; display: flex; flex-direction: column; gap: 1px; cursor: pointer; font-family: inherit; }
.cal-ev .ev-t { font-weight: 650; font-size: .73rem; line-height: 1.15; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.cal-ev .ev-s { font-size: .67rem; opacity: .85; }
.cal-ev.ev-open { background: var(--primary-soft); color: var(--primary-dark); }
.cal-ev.ev-full { background: #efe2dd; color: var(--danger); }
.cal-ev.ev-enrolled { background: var(--accent); color: #fff; }
.cal-ev.ev-past { background: #eee9df; color: var(--muted); cursor: default; }
.cal-ev:not(.ev-past):hover { filter: brightness(.96); }

/* ---------- Header & zijbalk (SIXPAY-stijl) ---------- */
.topbar { gap: 16px; }
.topbar-search {
  flex: 1; max-width: 440px; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px;
}
.topbar-search input { border: none; outline: none; background: transparent; flex: 1; font-size: .92rem; color: var(--ink); min-height: 0; padding: 0; box-shadow: none; }
.topbar-search .ic { opacity: .45; font-size: 1.15rem; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: var(--ink); position: relative; font-size: 1.2rem; cursor: pointer;
}
.icon-btn:hover { background: var(--primary-soft); }
.dot-badge { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.acct-pill {
  display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 5px 16px 5px 6px; cursor: pointer; font-weight: 600; color: var(--ink); font-family: inherit;
}
.acct-pill:hover { background: var(--primary-soft); }
.acct-pill .avatar { margin: 0; }
.acct-name { font-size: .9rem; }

/* Zachtere actieve zijbalk-knop (pill) */
.sidebar { display: flex; flex-direction: column; }
.sidebar a.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.sidebar a.active .ic { color: var(--primary); opacity: 1; }

.sidebar-foot { margin-top: auto; padding-top: 14px; }
.sidebar-foot .nav-group { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 14px; }
.promo { background: linear-gradient(160deg, var(--primary-dark) 0%, #3c4733 100%); color: #fff; border-radius: 16px; padding: 16px; }
.promo .promo-ic { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 11px; }
.promo h4 { margin: 0 0 4px; font-size: .95rem; }
.promo p { font-size: .8rem; opacity: .82; margin-bottom: 12px; line-height: 1.45; }
.promo .btn { width: 100%; }

@media (max-width: 860px) {
  .topbar-search { display: none; }
  .topbar-actions .btn-cta, .acct-name { display: none; }
  .topbar { gap: 10px; }
}

/* ---------- Premium dashboard ---------- */
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.dash-head h1 { font-size: 1.75rem; margin-top: 2px; }
.dash-head .sub { color: var(--muted); margin-top: 4px; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi.accent { background: linear-gradient(150deg, var(--accent) 0%, #b9785b 100%); border: none; color: #fff; }
.kpi-head { display: flex; align-items: center; justify-content: space-between; min-height: 38px; margin-bottom: 12px; }
.kpi-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; font-size: 1.25rem; }
.kpi.accent .kpi-ic { background: rgba(255, 255, 255, .22); color: #fff; }
.kpi-row-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.kpi-num { font-size: 2rem; font-weight: 750; line-height: 1; letter-spacing: -0.02em; }
.kpi-label { color: var(--muted); font-size: .86rem; margin-top: 5px; }
.kpi.accent .kpi-label { color: rgba(255, 255, 255, .85); }
.kpi-foot { margin-top: 11px; font-size: .78rem; color: var(--muted); }
.kpi.accent .kpi-foot { color: rgba(255, 255, 255, .8); }
.kpi-progress { height: 6px; border-radius: 999px; background: var(--primary-soft); margin-top: 12px; overflow: hidden; }
.kpi-progress > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.spark { width: 74px; height: 34px; flex-shrink: 0; }
.trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: .78rem; padding: 4px 9px; border-radius: 999px; }
.trend .ico { width: .95em; height: .95em; }
.trend.up { background: var(--ok-soft); color: var(--ok); }
.trend.down { background: #f4ddd6; color: var(--danger); }

.dash-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; align-items: start; }
.dash-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dash-main .section-title { margin-top: 0; }
.dash-right { display: flex; flex-direction: column; gap: 16px; }

/* Eenvoudige cijfer-chips voor de deelnemer (geen analyses) */
.chip-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.m-chip { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.m-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.m-num { font-size: 1.8rem; font-weight: 750; line-height: 1; }
.m-lbl { color: var(--muted); font-size: .85rem; margin-top: 2px; }

/* Snelle acties in één kolom (beheer rechterkolom) */
.quick-col { grid-template-columns: 1fr; }

.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.muted-sub { color: var(--muted); font-size: .86rem; margin-top: 2px; }
.chart-summary { display: flex; gap: 28px; margin-bottom: 6px; flex-wrap: wrap; }
.chart-summary .cs-num { font-size: 1.2rem; font-weight: 700; display: block; }
.chart-summary .cs-lbl { color: var(--muted); font-size: .8rem; }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 196px; padding-top: 22px; border-bottom: 1px solid var(--line); }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar { width: 60%; max-width: 40px; background: linear-gradient(180deg, var(--primary) 0%, #a7b693 100%); border-radius: 8px 8px 3px 3px; position: relative; min-height: 6px; }
.bar-val { position: absolute; top: -19px; left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 700; color: var(--ink); }
.bar-x { margin-top: 8px; font-size: .72rem; color: var(--muted); white-space: nowrap; }

.pkg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ring-wrap { position: relative; width: 154px; height: 154px; margin: 8px auto 12px; }
.ring { width: 154px; height: 154px; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-num { font-size: 2.2rem; font-weight: 750; line-height: 1; }
.ring-lbl { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.pkg-stats { display: flex; justify-content: space-between; margin: 4px 0 16px; text-align: center; }
.pkg-stats strong { display: block; font-size: 1.15rem; }
.pkg-stats span { color: var(--muted); font-size: .78rem; }

@media (max-width: 980px) {
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .chip-row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .dash-head h1 { font-size: 1.45rem; }
}

/* ---------- Lessen kopen ---------- */
.product { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product.is-popular { border-color: var(--primary); box-shadow: 0 12px 32px rgba(124, 138, 107, .2); }
.ribbon { position: absolute; top: 14px; right: 14px; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .03em; padding: 4px 11px; border-radius: 999px; }
.product-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.product-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.55rem; flex-shrink: 0; }
.is-popular .product-ic { background: var(--primary-soft); color: var(--primary-dark); }
.product-name { font-weight: 700; font-size: 1.1rem; }
.product-tag { color: var(--muted); font-size: .86rem; }
.product-lessons { font-size: .95rem; margin-bottom: 6px; }
.product-lessons strong { font-size: 1.35rem; }
.product-note { color: var(--muted); font-size: .88rem; flex: 1; margin-bottom: 14px; }
.product-price { margin-bottom: 14px; font-size: .9rem; color: var(--muted); }
.product-price strong { font-size: 1.3rem; color: var(--ink); }
.muted-inline { color: var(--muted); font-size: .82rem; display: block; margin-top: 2px; }

.pay-opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; min-width: 0; overflow: hidden; }
.pay-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.pay-opt input { width: 20px; height: 20px; accent-color: var(--primary); flex-shrink: 0; }
.pay-main { flex: 1; min-width: 0; overflow: hidden; }
.pay-t { font-weight: 600; display: block; overflow-wrap: anywhere; }
.pay-s { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.pay-ic { color: var(--primary); font-size: 1.3rem; flex: 0 0 auto; }

button.avatar { padding: 0; font: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main-panel { margin-left: 0; width: 100vw; }
  .row-2 { grid-template-columns: 1fr; }
  .content { padding: 18px 16px calc(92px + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; }
  .topbar-actions { display: none; }
  .mobile-context { display: flex; align-items: center; min-width: 0; margin-left: 10px; padding-left: 12px; border-left: 1px solid rgba(47,49,40,.12); }
  .mobile-context strong { overflow: hidden; color: var(--ink); font-size: .94rem; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
}
@media (min-width: 861px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .modal-backdrop { align-items: center; }
  .modal { border-radius: 22px; }
  .toast { bottom: 30px; }
}

/* Desktop: toon beide stat-grids netjes */
@media (min-width: 600px) and (max-width: 860px) {
  .grid.cols-4 { grid-template-columns: 1fr 1fr; }
}

/* ---------- Beheer dashboard: sidebar + header zoals referentie ---------- */
body[data-app="manager"] {
  background:
    linear-gradient(180deg, #f7f4ee 0%, #f7f4ee 72%, #edf3e8 100%);
  color: #171a17;
}

body[data-app="manager"] .app {
  max-width: none;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body[data-app="manager"] .shell {
  min-height: 100vh;
  background: #f6f4ee;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

body[data-app="manager"] .sidebar {
  width: 276px;
  height: 100vh;
  top: 0;
  padding: 28px 18px 22px;
  background: rgba(255, 255, 255, .72);
  border-right: 1px solid rgba(34, 42, 32, .08);
}

body[data-app="manager"] .sidebar-brand {
  margin: 0 8px 24px;
}

body[data-app="manager"] .brand {
  gap: 12px;
  font-size: 1.22rem;
}

body[data-app="manager"] .brand .logo {
  background: #111711;
  border-radius: 13px;
  color: #cfff6d;
}

body[data-app="manager"] .brand-logo {
  width: 142px;
  height: 102px;
}

body[data-app="manager"] .brand small {
  color: #778073;
  letter-spacing: .03em;
}

body[data-app="manager"] .sidebar a {
  min-height: 44px;
  border-radius: 14px;
  padding: 10px 12px;
  color: #303427;
}

body[data-app="manager"] .sidebar a .ic {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(25, 35, 24, .14);
  border-radius: 10px;
  font-size: 1.08rem;
  background: rgba(255, 255, 255, .62);
}

body[data-app="manager"] .sidebar a:hover,
body[data-app="manager"] .sidebar a.active {
  background: #e8efdc;
  color: #25341f;
}

body[data-app="manager"] .sidebar a.active .ic {
  background: rgba(255, 255, 255, .72);
  color: #5f6c50;
}

body[data-app="manager"] .sidebar-foot .nav-group {
  margin-top: 0;
}

body[data-app="manager"] .promo {
  background: #42543a;
  border-radius: 16px;
  padding: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

body[data-app="manager"] .promo .btn {
  background: #f1d8c9;
  color: #4b3328;
}

body[data-app="manager"] .main-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

body[data-app="manager"] .topbar {
  position: sticky;
  top: 0;
  margin: 0;
  padding: 20px 24px;
  background: rgba(255, 255, 255, .84);
  border-bottom: 1px solid rgba(36, 44, 34, .06);
  backdrop-filter: blur(14px);
}

body[data-app="manager"] .topbar-search {
  max-width: 340px;
  min-height: 46px;
  border-radius: 14px;
  box-shadow: none;
}

body[data-app="manager"] .mobile-brand {
  display: none;
}

body[data-app="manager"] .btn-primary {
  background: #dfeac8;
  color: #25341f;
}

body[data-app="manager"] .btn-primary:hover {
  filter: brightness(.98);
}

body[data-app="manager"] .icon-btn {
  border-radius: 50%;
  background: #f4f8f1;
}

body[data-app="manager"] .acct-pill {
  min-height: 46px;
  background: #e8efdc;
  border: none;
  border-radius: 14px;
  padding: 6px 14px 6px 8px;
}

body[data-app="manager"] .avatar {
  background: #eef4e8;
  color: #5f6c50;
}

body[data-app="manager"] .content {
  padding: 28px 24px 60px;
}

body[data-app="manager"] .dash-head h1,
body[data-app="manager"] .view-head h1 {
  font-size: clamp(1.65rem, 2vw, 2.15rem);
  letter-spacing: 0;
}

body[data-app="manager"] .eyebrow {
  color: #7b8278;
}

body[data-app="manager"] .card,
body[data-app="manager"] .kpi,
body[data-app="manager"] .lesson-row,
body[data-app="manager"] .member-card,
body[data-app="manager"] .search,
body[data-app="manager"] .cal,
body[data-app="manager"] .product {
  border-color: rgba(28, 36, 27, .08);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(31, 39, 30, .045);
}

body[data-app="manager"] .kpi {
  min-height: 168px;
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98) 0%, rgba(252,253,249,.98) 100%);
}

body[data-app="manager"] .kpi-ic,
body[data-app="manager"] .quick button .ic,
body[data-app="manager"] .stat-chip {
  background: #eaeee3;
  color: #5f6c50;
}

body[data-app="manager"] .kpi.accent {
  background:
    radial-gradient(circle at 82% 18%, rgba(241, 216, 201, .22), transparent 34%),
    linear-gradient(145deg, #5f6c50 0%, #415039 100%);
}

body[data-app="manager"] .trend.up,
body[data-app="manager"] .tag.ok {
  background: #e4f0e3;
  color: #4f8a5b;
}

body[data-app="manager"] .bar {
  background: linear-gradient(180deg, #b8c99f 0%, #8fa277 100%);
  border-radius: 9px 9px 4px 4px;
}

body[data-app="manager"] .kpi .spark {
  display: block;
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: 112px;
  height: 54px;
  opacity: .98;
  overflow: visible;
}

body[data-app="manager"] .kpi .spark polygon {
  opacity: .11;
}

body[data-app="manager"] .kpi .spark polyline {
  stroke-width: 2.1;
}

body[data-app="manager"] .kpi .spark-dots circle {
  vector-effect: non-scaling-stroke;
}

body[data-app="manager"] .kpi-head {
  margin-bottom: 18px;
}

body[data-app="manager"] .kpi-ic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72);
}

body[data-app="manager"] .trend {
  background: #f4f8ef;
  border: 1px solid rgba(95,108,80,.1);
  font-size: .75rem;
  padding: 5px 9px;
}

body[data-app="manager"] .kpi-num {
  font-size: clamp(1.9rem, 2.4vw, 2.35rem);
  font-weight: 780;
  letter-spacing: 0;
}

body[data-app="manager"] .kpi-label {
  color: #61685e;
  font-size: .9rem;
}

body[data-app="manager"] .kpi-foot {
  max-width: 58%;
  line-height: 1.35;
}

body[data-app="manager"] .chart-card {
  padding: 22px 24px 24px;
  background:
    linear-gradient(180deg, #fff 0%, #fff 62%, #fbfcf8 100%);
}

body[data-app="manager"] .chart-head h2 {
  font-size: 1.34rem;
}

body[data-app="manager"] .chart-summary {
  background: rgba(246,244,238,.72);
  border: 1px solid rgba(70,66,50,.06);
  border-radius: 16px;
  padding: 12px 14px;
  width: fit-content;
}

body[data-app="manager"] .bars {
  height: 220px;
  gap: 16px;
  padding: 28px 8px 0;
  border-bottom-color: rgba(70,66,50,.08);
  background-image: linear-gradient(to bottom, transparent 0, transparent 24%, rgba(70,66,50,.05) 24.5%, transparent 25%, transparent 49%, rgba(70,66,50,.05) 49.5%, transparent 50%, transparent 74%, rgba(70,66,50,.05) 74.5%, transparent 75%);
}

body[data-app="manager"] .bar {
  width: 54%;
  max-width: 42px;
  border-radius: 10px 10px 5px 5px;
  box-shadow: 0 10px 18px rgba(143,162,119,.16);
}

body[data-app="manager"] .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,.22), transparent);
}

body[data-app="manager"] .bar-val {
  background: #fff;
  border: 1px solid #dce8cf;
  border-radius: 999px;
  padding: 3px 7px;
  top: -25px;
  box-shadow: 0 6px 14px rgba(31,39,30,.06);
}

body[data-app="manager"] .lesson-row,
body[data-app="manager"] .member-card {
  box-shadow: none;
  background: rgba(255,255,255,.86);
}

body[data-app="manager"] .lesson-row .time {
  background: #eef3e8;
  border-radius: 14px;
  min-width: 66px;
  padding: 8px 10px;
  text-align: center;
  color: #4f6047;
}

body[data-app="manager"] .attention-list button,
body[data-app="manager"] .quick button {
  box-shadow: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

body[data-app="manager"] .attention-list button:hover,
body[data-app="manager"] .quick button:hover {
  transform: translateY(-1px);
}

body[data-app="manager"] .quick button {
  box-shadow: none;
}

body[data-app="manager"] .section-title {
  color: #5f675d;
}

@media (min-width: 1120px) {
  body[data-app="manager"] .dash-grid {
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, .7fr);
  }
}

@media (max-width: 860px) {
  body[data-app="manager"] .app {
    margin: 0;
    padding: 0;
  }

  body[data-app="manager"] .shell {
    min-height: 100vh;
    border: none;
    border-radius: 0;
  }

  body[data-app="manager"] .main-panel {
    width: 100%;
  }

  body[data-app="manager"] .topbar {
    min-height: 60px;
    padding: 8px 14px;
  }

  body[data-app="manager"] .mobile-brand {
    display: flex;
    margin-right: 0;
    font-size: .98rem;
  }

  body[data-app="manager"] .mobile-brand .logo {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  body[data-app="manager"] .mobile-brand .brand-logo {
    width: 68px;
    height: 42px;
  }

  body[data-app="manager"] .content {
    padding: 18px 14px 92px;
  }

  body[data-app="manager"] .kpi-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Deelnemersportaal: zelfde dashboardkwaliteit, zachter yoga ---------- */
body[data-app="member"] {
  background:
    linear-gradient(180deg, #f8f5ef 0%, #f8f5ef 70%, #eef4ea 100%);
  color: #2f3128;
}

body[data-app="member"] .app {
  max-width: none;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body[data-app="member"] .shell {
  min-height: 100vh;
  background: #f6f4ee;
  border: 0;
}

body[data-app="member"] .sidebar {
  width: 276px;
  height: 100vh;
  top: 0;
  padding: 28px 18px 22px;
  background: rgba(255, 255, 255, .74);
  border-right: 1px solid rgba(70, 66, 50, .09);
}

body[data-app="member"] .sidebar-brand {
  margin: 0 8px 24px;
}

body[data-app="member"] .brand {
  gap: 12px;
  font-size: 1.18rem;
}

body[data-app="member"] .brand .logo {
  background: #5f6c50;
  border-radius: 13px;
  color: #fff;
}

body[data-app="member"] .brand-logo {
  width: 142px;
  height: 102px;
}

body[data-app="member"] .sidebar a {
  min-height: 44px;
  border-radius: 14px;
  padding: 10px 12px;
  color: #303427;
}

body[data-app="member"] .sidebar a .ic {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(70, 66, 50, .14);
  border-radius: 10px;
  font-size: 1.08rem;
  background: rgba(255, 255, 255, .62);
}

body[data-app="member"] .sidebar a:hover,
body[data-app="member"] .sidebar a.active {
  background: #e8efdc;
  color: #25341f;
}

body[data-app="member"] .sidebar a.active .ic {
  background: rgba(255, 255, 255, .76);
  color: #5f6c50;
}

body[data-app="member"] .promo {
  background: #5f6c50;
  border-radius: 16px;
  padding: 18px;
}

body[data-app="member"] .promo .btn {
  background: #f1d8c9;
  color: #4b3328;
}

body[data-app="member"] .main-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

body[data-app="member"] .topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  justify-content: flex-end;
  padding: 20px 24px;
  background: rgba(255, 255, 255, .84);
  border-bottom: 1px solid rgba(70, 66, 50, .08);
  backdrop-filter: blur(14px);
}

body[data-app="member"] .mobile-brand {
  display: none;
}

body[data-app="member"] .topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

body[data-app="member"] .icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #f4f8f1;
  display: grid;
  place-items: center;
  color: #303427;
  font-size: 1.18rem;
}

body[data-app="member"] .acct-pill {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #e8efdc;
  border: none;
  border-radius: 14px;
  padding: 6px 14px 6px 8px;
  font-weight: 650;
}

body[data-app="member"] .avatar {
  background: #eef4e8;
  color: #5f6c50;
}

body[data-app="member"] .content {
  padding: 28px 24px 60px;
}

body[data-app="member"] .dash-head h1,
body[data-app="member"] .view-head h1 {
  font-size: clamp(1.65rem, 2vw, 2.15rem);
  letter-spacing: 0;
}

body[data-app="member"] .card,
body[data-app="member"] .m-chip,
body[data-app="member"] .lesson-row,
body[data-app="member"] .product,
body[data-app="member"] .search,
body[data-app="member"] .cal {
  border-color: rgba(70, 66, 50, .09);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(70, 66, 50, .06);
}

body[data-app="member"] .btn-primary {
  background: #dfeac8;
  color: #25341f;
}

body[data-app="member"] .btn-accent {
  background: #c98a6b;
  color: #fff;
}

body[data-app="member"] .m-ic,
body[data-app="member"] .product-ic,
body[data-app="member"] .stat-chip {
  background: #eaeee3;
  color: #5f6c50;
}

body[data-app="member"] .pkg-card {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid rgba(70, 66, 50, .09);
}

body[data-app="member"] .bar {
  background: linear-gradient(180deg, #b8c99f 0%, #8fa277 100%);
}

@media (max-width: 860px) {
  body[data-app="member"] .sidebar {
    display: none;
  }

  body[data-app="member"] .topbar {
    min-height: 60px;
    padding: 8px 14px;
    justify-content: flex-start;
  }

  body[data-app="member"] .mobile-brand {
    display: flex;
    margin-right: 0;
    font-size: .98rem;
  }

  body[data-app="member"] .mobile-brand .logo {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  body[data-app="member"] .mobile-brand .brand-logo {
    width: 68px;
    height: 42px;
  }

  body[data-app="member"] .topbar-actions { display: none; }

  body[data-app="member"] .content {
    padding: 18px 14px 92px;
  }
}

/* ---------- Login / aanmelden / checkout ---------- */
body[data-app="auth"] {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(234, 238, 227, .95), transparent 34%),
    linear-gradient(180deg, #f8f5ef 0%, #eef4ea 100%);
  color: var(--ink);
  padding-bottom: 0;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(22px, 5vw, 64px);
}

.auth-brand {
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 8vw, 96px);
  max-width: 520px;
}

.auth-brand .brand {
  font-size: 1.2rem;
}

.auth-brand .logo {
  background: #5f6c50;
  color: #fff;
}

.auth-brand h1 {
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  line-height: .98;
  letter-spacing: 0;
  max-width: 760px;
}

.auth-brand .sub {
  color: var(--muted);
  margin-top: 16px;
  font-size: 1rem;
  max-width: 460px;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(320px, 1.18fr);
  gap: 16px;
  align-items: stretch;
}

.auth-card {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(70, 66, 50, .09);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(70, 66, 50, .09);
}

.auth-card-strong {
  border-color: rgba(95, 108, 80, .24);
}

.auth-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.auth-card-head p,
.auth-note {
  color: var(--muted);
  font-size: .86rem;
}

.auth-note {
  margin-top: 10px;
  text-align: center;
}

.auth-ic {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eaeee3;
  color: #5f6c50;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.checkout-options {
  display: grid;
  gap: 8px;
  margin: 2px 0 14px;
}

.checkout-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  background: #fff;
  cursor: pointer;
}

.checkout-option:has(input:checked) {
  border-color: #8fa277;
  background: #f2f6ed;
}

.checkout-option input {
  width: 19px;
  height: 19px;
  accent-color: #5f6c50;
}

.checkout-option strong,
.checkout-option small {
  display: block;
}

.checkout-option small {
  color: var(--muted);
  margin-top: 2px;
}

.checkout-option b {
  color: #5f6c50;
}

.pay-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .86rem;
  background: #f6f4ee;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 13px;
  margin-bottom: 14px;
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.filter-chips button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: .84rem;
}

.filter-chips button.on {
  background: #e8efdc;
  border-color: #d3ddc4;
  color: #25341f;
}

.attention-list {
  display: grid;
  gap: 8px;
}

.attention-list button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-weight: 650;
}

.attention-list button .ic {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eaeee3;
  color: #5f6c50;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.attention-list button:hover {
  border-color: #cbd7bd;
  background: #fbfcf8;
}

.attention-refund {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 8px;
}

.attention-refund > button {
  width: 100%;
  border: none;
  padding: 8px;
}

.attention-refund > div {
  display: flex;
  gap: 8px;
  padding: 4px 4px 2px 50px;
  flex-wrap: wrap;
}

.install-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.install-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.install-main h2 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.install-main p {
  color: var(--muted);
  font-size: .86rem;
}

.install-ic {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eaeee3;
  color: #5f6c50;
  display: grid;
  place-items: center;
  font-size: 1.32rem;
  flex-shrink: 0;
}

.install-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.install-steps span {
  background: #eaeee3;
  color: #5f6c50;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 700;
}
.install-guide { margin: 16px 0 4px; padding: 0; list-style: none; counter-reset: install-step; }
.install-guide li { position: relative; min-height: 32px; padding: 5px 0 10px 42px; color: var(--ink); font-size: .9rem; line-height: 1.4; counter-increment: install-step; }
.install-guide li::before { content: counter(install-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 750; }
.install-ios-flow { display: grid; gap: 10px; margin: 16px 0 18px; }
.install-ios-step { display: grid; grid-template-columns: 26px minmax(0, 1fr) 42px; align-items: center; gap: 9px; }
.install-ios-step:nth-child(n+2) { grid-template-columns: 26px minmax(0, 1fr); }
.install-ios-number { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-dark); font-size: .75rem; font-weight: 800; }
.install-ios-step > strong { color: #007aff; font-size: .76rem; text-align: center; }
.install-ios-browser { display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: center; min-height: 50px; padding: 7px 9px; border: 1px solid #d7d7dc; border-radius: 13px; background: #f2f2f7; }
.install-ios-url { overflow: hidden; padding: 8px 10px; border-radius: 9px; background: #fff; color: #6e6e73; font-size: .7rem; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.install-ios-share, .install-ios-home { display: grid; place-items: center; color: #007aff; }
.install-ios-share svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.install-ios-action { display: grid; grid-template-columns: 30px minmax(0, 1fr) 12px; align-items: center; min-height: 52px; padding: 8px 12px; border: 1px solid #e2e2e7; border-radius: 13px; background: #fff; color: #1c1c1e; font-size: .86rem; }
.install-ios-action > b { color: #a5a5aa; font-size: 1.3rem; font-weight: 400; }
.install-ios-home svg { width: 25px; height: 25px; fill: none; stroke: #1c1c1e; stroke-width: 1.6; }
.install-ios-add { display: flex; justify-content: space-between; padding: 12px 14px; border: 1px solid #e2e2e7; border-radius: 13px; background: #f9f9fb; color: #007aff; font-size: .86rem; }
.install-ios-add strong { font-weight: 700; }

@media (max-width: 560px) {
  .install-card {
    align-items: stretch;
    flex-direction: column;
  }

  .install-card .btn {
    width: 100%;
  }

  .install-steps {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .auth-page,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    gap: 28px;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .auth-page {
    padding: 18px 14px 28px;
  }

  .auth-grid {
    gap: 12px;
  }

  .auth-card {
    padding: 18px;
  }
}

.auth-simple {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.auth-panel {
  width: min(100%, 520px);
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(70, 66, 50, .09);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(70, 66, 50, .1);
}

.auth-logo {
  justify-content: center;
  margin-bottom: 20px;
}

.auth-logo .logo {
  background: #5f6c50;
  color: #fff;
}

.auth-brand-logo {
  width: 164px;
  height: 118px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #eaeee3;
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 18px;
}

.auth-tabs button {
  border: none;
  border-radius: 11px;
  background: transparent;
  color: #5f6c50;
  font-weight: 700;
  padding: 11px 10px;
}

.auth-tabs button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(70, 66, 50, .08);
}

.auth-error {
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid #e8c7c0;
  border-radius: 11px;
  background: #fff7f5;
  color: var(--danger);
  font-size: .88rem;
  font-weight: 600;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.account-package {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin: 4px 0 14px;
  background: #fbfaf7;
}

.account-package-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.account-package-head h2 {
  font-size: 1rem;
}

.package-admin-list {
  display: grid;
  gap: 8px;
}

.package-admin-list button {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px;
  text-align: left;
}

.package-admin-list button.on {
  border-color: #cbd7bd;
  background: #f5f8f0;
}

.package-admin-list strong,
.package-admin-list small {
  display: block;
}

.package-admin-list small {
  color: var(--muted);
  margin-top: 2px;
}

@media (max-width: 560px) {
  .auth-simple {
    padding: 14px;
    place-items: start center;
  }

  .auth-panel {
    padding: 18px;
    border-radius: 18px;
  }
}
