/* ==========================================================================
   ikleer.top design system
   Brand: navy #1C4B69 (book) + orange #F9822F (brain), font Nunito.
   ========================================================================== */

:root {
  --navy: #1C4B69;
  --navy-600: #173F58;
  --navy-700: #123246;
  --navy-800: #0E2636;
  --orange: #F9822F;
  --orange-600: #E36F1C;
  --orange-100: #FFF1E6;

  --bg: #F4F7FB;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --text: #1B2733;
  --muted: #64748B;
  --border: #E5EAF0;
  --shadow: 0 1px 2px rgba(16, 35, 52, .04), 0 8px 24px -12px rgba(16, 35, 52, .18);
  --shadow-lg: 0 20px 40px -16px rgba(16, 35, 52, .28);

  --blue: #2F6FED;   --blue-soft: #E8EFFD;
  --indigo: #6C5CE7; --indigo-soft: #EEEBFD;
  --teal: #0FA3A3;   --teal-soft: #E3F6F6;
  --orange-c: #F9822F; --orange-soft: #FFF1E6;
  --pink: #E5488D;   --pink-soft: #FDE8F1;
  --green: #22A06B;  --green-soft: #E4F6EE;
  --red: #E5484D;    --red-soft: #FDE8E9;
  --yellow: #F5A524; --yellow-soft: #FFF5E0;
  --gray: #64748B;   --gray-soft: #EEF2F6;

  --radius: 16px;
  --radius-sm: 12px;
  --sidebar-w: 264px;

  --bs-primary: var(--navy);
  --bs-primary-rgb: 28, 75, 105;
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-border-color: var(--border);
  --bs-link-color: var(--navy);
  --bs-link-hover-color: var(--navy-700);
  --bs-font-sans-serif: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

[data-bs-theme="dark"] {
  --bg: #0F1720;
  --surface: #16212C;
  --surface-2: #1C2936;
  --text: #E6EDF3;
  --muted: #94A3B8;
  --border: #263241;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
  --shadow-lg: 0 20px 40px -16px rgba(0, 0, 0, .6);
  --blue-soft: #1B2A4A; --indigo-soft: #26224A; --teal-soft: #123838; --orange-soft: #3B2616;
  --pink-soft: #3D1A2C; --green-soft: #14362A; --red-soft: #3D1C1E; --yellow-soft: #3A2E12; --gray-soft: #222E3B;
  --orange-100: #3B2616;
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-border-color: var(--border);
  --bs-link-color: #8FB8DA;
  --bs-link-hover-color: #B9D4EA;
}

html { font-size: 15.5px; }
body { font-family: var(--bs-font-sans-serif); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .fw-bold { font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; margin: 0; }
a { text-decoration: none; }
.link-plain { color: inherit; }
.link-plain:hover { color: var(--navy); }
[data-bs-theme="dark"] .link-plain:hover { color: #fff; }
.text-muted { color: var(--muted) !important; }
.min-w-0 { min-width: 0; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
kbd { background: var(--gray-soft); color: var(--text); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; font-size: .8em; }

/* Bootstrap overrides */
.btn { border-radius: 999px; font-weight: 700; padding: .5rem 1.1rem; transition: transform .12s ease, box-shadow .12s ease, background .12s; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .7rem 1.5rem; font-size: 1.05rem; }
.btn-sm { padding: .3rem .8rem; font-size: .85rem; }
.btn-primary { background: var(--navy); border-color: var(--navy); }
.btn-primary:hover, .btn-primary:focus { background: var(--navy-600); border-color: var(--navy-600); box-shadow: 0 8px 20px -8px rgba(28, 75, 105, .6); }
.btn-accent { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-accent:hover, .btn-accent:focus { background: var(--orange-600); border-color: var(--orange-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(249, 130, 47, .7); }
.btn-outline-secondary { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline-secondary:hover, .btn-outline-secondary.active { background: var(--gray-soft); border-color: var(--border); color: var(--text); }
.btn-outline-primary { color: var(--navy); border-color: var(--navy); }
[data-bs-theme="dark"] .btn-outline-primary { color: #8FB8DA; border-color: #8FB8DA; }
.btn-outline-primary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-success { background: var(--green); border-color: var(--green); }
.btn-outline-danger { color: var(--red); border-color: var(--red); }
.form-control, .form-select { border-radius: var(--radius-sm); border-color: var(--border); background: var(--surface); color: var(--text); padding: .6rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(28, 75, 105, .12); background: var(--surface); color: var(--text); }
.form-control-lg { padding: .75rem 1rem; font-size: 1.05rem; }
.form-label { font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.form-text { color: var(--muted); }
.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.form-switch .form-check-input { width: 2.6em; height: 1.4em; }
.input-group-lg > .form-control { border-top-left-radius: var(--radius-sm); border-bottom-left-radius: var(--radius-sm); }
.input-group > .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card-hover { transition: transform .15s ease, box-shadow .15s ease; color: inherit; display: block; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.alert { border-radius: var(--radius-sm); border: 0; font-weight: 600; }
.alert-success { background: var(--green-soft); color: #14663F; }
.alert-danger { background: var(--red-soft); color: #A3272B; }
.alert-warning { background: var(--yellow-soft); color: #8A5A00; }
.alert-info { background: var(--blue-soft); color: #1F4FB8; }
[data-bs-theme="dark"] .alert-success { color: #7EE2B0; } [data-bs-theme="dark"] .alert-danger { color: #FF9EA1; }
[data-bs-theme="dark"] .alert-warning { color: #FFD27A; } [data-bs-theme="dark"] .alert-info { color: #9DBBFF; }
.dropdown-menu { border-radius: var(--radius-sm); border-color: var(--border); background: var(--surface); padding: .4rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .8rem; color: var(--text); font-weight: 600; }
.dropdown-item:hover { background: var(--gray-soft); color: var(--text); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--border); }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; border-bottom-width: 1px; }
.table td, .table th { padding: .75rem 1rem; }
.table-items td { vertical-align: middle; }
.row-wrong td { background: var(--red-soft); }
.divide > li + li { border-top: 1px solid var(--border); }
.divide > li.unread { background: var(--blue-soft); }
.bg-body-tertiary { background: var(--surface-2) !important; }
.sticky-top { z-index: 5; }

/* Chips / badges */
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--navy); color: #fff; line-height: 1.4; }
.chip-soft { background: var(--gray-soft); color: var(--muted); }
.chip-success { background: var(--green-soft); color: var(--green); }
.chip-danger { background: var(--red-soft); color: var(--red); }
.chip-warning { background: var(--yellow-soft); color: #8A5A00; }
.chip-accent { background: var(--orange-soft); color: var(--orange-600); }
[data-bs-theme="dark"] .chip-warning { color: #FFD27A; }

/* Progress */
.progress-track { height: 8px; border-radius: 999px; background: var(--gray-soft); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--orange), #FFB070); transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.ring { --p: 0; width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(var(--orange) calc(var(--p) * 1%), var(--gray-soft) 0); display: grid; place-items: center; flex-shrink: 0; }
.ring span { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: .72rem; font-weight: 800; }

/* Avatar / icon buttons */
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), #FFB070); color: #fff; font-weight: 800; display: inline-grid; place-items: center; flex-shrink: 0; font-size: .9rem; border: 0; }
.avatar-sm { width: 34px; height: 34px; font-size: .8rem; }
.avatar-btn { cursor: pointer; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px rgba(249, 130, 47, .3); }
.btn-icon { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1.05rem; transition: background .12s, transform .12s; text-decoration: none; }
.btn-icon:hover { background: var(--gray-soft); color: var(--text); transform: translateY(-1px); }
.btn-icon.text-danger:hover { background: var(--red-soft); }
.badge-dot { position: absolute; top: -4px; right: -4px; background: var(--orange); color: #fff; font-size: .65rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--surface); }

/* ---------------------------------------------------------------- shell */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); flex-shrink: 0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 1.25rem 1rem; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-800) 100%); color: #DCE8F1; z-index: 40; }
.brand { display: flex; align-items: center; gap: .6rem; padding: .25rem .5rem 1.25rem; color: #fff; }
.brand-mark { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(160deg, #FFFFFF, #EEF4F9); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .45), 0 0 0 3px rgba(249, 130, 47, .25); }
.brand img { width: 32px; height: auto; }
.brand-text { font-weight: 900; font-size: 1.35rem; letter-spacing: -.02em; }
.dot { color: var(--orange); }
.side-nav { display: flex; flex-direction: column; gap: .25rem; flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.side-link { display: flex; align-items: center; gap: .75rem; height: 46px; padding: 0 .85rem; border-radius: 12px; color: #C6D6E2; font-weight: 700; transition: background .12s, color .12s; flex-shrink: 0; }
.side-link > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-link i { font-size: 1.15rem; width: 22px; text-align: center; line-height: 1; }
.side-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-link.active { background: var(--orange); color: #fff; box-shadow: 0 8px 18px -8px rgba(249, 130, 47, .8); }
.side-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #7FA0B8; font-weight: 800; padding: 1rem .85rem .35rem; }
.side-cta { margin-top: 1.25rem; display: flex; align-items: center; justify-content: center; gap: .5rem; height: 48px; padding: 0 .7rem; flex-shrink: 0; white-space: nowrap; border-radius: 12px; border: 1.5px dashed rgba(255, 255, 255, .35); color: #fff; font-weight: 800; transition: background .12s; }
.side-cta:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.sidebar { overflow: hidden; }
.brand { height: 64px; flex-shrink: 0; }
.side-admin, .side-footer, .side-collapse { flex-shrink: 0; }
.side-admin { margin-top: auto; padding-top: .75rem; }
.side-admin + .side-footer { margin-top: .75rem; }
.side-admin-toggle { width: 100%; border: 0; background: rgba(255, 255, 255, .06); text-align: left; }
.side-admin-toggle:hover, .side-admin.open .side-admin-toggle:not(.active) { background: rgba(255, 255, 255, .14); color: #fff; }
.side-admin-toggle > span { flex: 1; }
.side-admin-caret { font-size: .85rem !important; width: auto !important; transition: transform .15s; transform: rotate(90deg); }
.side-admin.open .side-admin-caret { transform: rotate(-90deg); }
.side-admin-menu { display: none; flex-direction: column; gap: .15rem; padding: .35rem 0 0 .6rem; }
.side-admin.open .side-admin-menu { display: flex; }
.side-admin-menu .side-link { padding: .5rem .75rem; font-size: .92rem; }
.side-admin-menu .side-link i { font-size: 1.05rem; }
@media (min-width: 992px) {
  /* Desktop: a flyout to the right of the Beheer button (fixed, so the scrolling sidebar cannot clip it). */
  .side-admin-caret, .side-admin.open .side-admin-caret { transform: none; }
  .side-admin-menu { position: fixed; z-index: 60; width: 236px; padding: .5rem; background: var(--navy-800); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); animation: flyIn .12s ease; }
  .side-admin-menu::before { content: ""; position: absolute; left: -7px; bottom: 18px; width: 12px; height: 12px; background: var(--navy-800); border-left: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14); transform: rotate(45deg); }
  .side-admin-menu .side-link { padding: .55rem .8rem; }
  .sb-collapsed .side-admin-menu .side-link { justify-content: flex-start; padding: .55rem .8rem; }
  .sb-collapsed .side-admin-menu .side-link span { display: inline; }
  .sb-collapsed .side-admin-menu .side-link i { width: 22px; font-size: 1.05rem; }
  .sb-collapsed .side-admin-caret { display: none; }
}
@keyframes flyIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.side-footer { margin-top: auto; display: flex; align-items: center; gap: .7rem; padding: .85rem .5rem 0; border-top: 1px solid rgba(255, 255, 255, .12); color: #fff; }
.side-footer .text-muted { color: #9DB6C8 !important; }
a.side-footer { text-decoration: none; border-radius: 12px; padding: .85rem .5rem .5rem; margin: auto -.25rem 0; transition: background .12s; }
a.side-footer:hover { background: rgba(255, 255, 255, .08); color: #fff; }
a.side-footer.active .avatar { box-shadow: 0 0 0 2px var(--navy-800), 0 0 0 4px var(--orange); }
.side-footer-icon { margin-left: auto; color: #7FA0B8; font-size: 1rem; }
.sb-collapsed .side-footer-icon { display: none; }
.side-collapse { margin-top: .75rem; display: flex; align-items: center; justify-content: center; gap: .5rem; height: 34px; padding: 0 .45rem; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .06); color: #9DB6C8; font-size: .8rem; font-weight: 700; }
.side-collapse:hover { background: rgba(255, 255, 255, .12); color: #fff; }
@media (min-width: 992px) {
  .sb-collapsed .sidebar { width: 84px; padding: 1.25rem .6rem; }
  .sb-collapsed .brand { justify-content: center; padding-left: 0; padding-right: 0; }
  .sb-collapsed .brand-text, .sb-collapsed .side-link span, .sb-collapsed .side-section, .sb-collapsed .side-cta span, .sb-collapsed .side-collapse span, .sb-collapsed .side-footer .min-w-0 { display: none; }
  .sb-collapsed .side-link { justify-content: center; padding: 0; }
  .sb-collapsed .side-link i { width: auto; font-size: 1.3rem; }
  .sb-collapsed .side-cta { padding: 0; }
  .sb-collapsed .side-footer { justify-content: center; padding-left: 0; padding-right: 0; }
  .sb-collapsed .side-collapse i { transform: rotate(180deg); }
}
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(10, 20, 30, .5); z-index: 39; backdrop-filter: blur(2px); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.75rem; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
.page-title { font-size: 1.25rem; margin: 0; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: .6rem; }
.content { padding: 1.75rem; flex: 1; max-width: 1400px; width: 100%; }
.app-footer { padding: 1rem 1.75rem; color: var(--muted); font-size: .8rem; }

@media (max-width: 991.98px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .app-shell.sidebar-open .sidebar { transform: translateX(0); }
  .app-shell.sidebar-open .sidebar-backdrop { display: block; }
  .content { padding: 1.1rem; }
  .topbar { padding: .7rem 1rem; }
}

/* ---------------------------------------------------------------- pages */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.75rem 2rem; border-radius: 20px; margin-bottom: 1.5rem; color: #fff; background: radial-gradient(1200px 400px at 100% 0%, rgba(249, 130, 47, .45), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%); box-shadow: var(--shadow-lg); }
.hero-kicker { font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; color: #FFC58E; font-weight: 800; }
.hero-title { font-size: 1.8rem; margin: .2rem 0 .3rem; color: #fff; }
.hero-sub { color: #D4E2ED; }
.hero-sub strong { color: #FFC58E; }
@media (max-width: 767.98px) { .hero { flex-direction: column; align-items: flex-start; padding: 1.4rem; } .hero-title { font-size: 1.45rem; } }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 991.98px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-tile { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; flex-shrink: 0; }
.stat-value { font-size: 1.5rem; font-weight: 900; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: .82rem; font-weight: 600; }
.stat-money { font-size: 1.2rem; white-space: nowrap; }
.bg-blue { background: var(--blue); } .bg-teal { background: var(--teal); } .bg-orange { background: var(--orange); } .bg-pink { background: var(--pink); }

.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.link-more { font-weight: 700; font-size: .9rem; }

.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.list-card { display: flex; flex-direction: column; position: relative; transition: transform .15s, box-shadow .15s; }
.list-card:hover, .list-card:has(.dropdown-menu.show), .list-row:has(.dropdown-menu.show) { z-index: 20; }
.list-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.list-card-body { display: flex; flex-direction: column; padding: 1.15rem 1.15rem .9rem; color: inherit; flex: 1; }
.list-card-body .list-title { min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-card-body > .small, .list-card-body > .list-meta { margin-bottom: 1rem; }
.list-card-body .progress-track { margin-top: auto !important; }
.list-card-meta { margin-top: auto; padding-top: .75rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.ring-sm { width: 40px; height: 40px; }
.ring-sm span { width: 30px; height: 30px; font-size: .66rem; }
.list-title { font-size: 1.05rem; margin: 0 0 .35rem; line-height: 1.3; }
.list-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .35rem; }
.list-card-footer { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.list-card-due { border-color: rgba(249, 130, 47, .5); }
.list-actions { display: flex; align-items: center; gap: .4rem; width: 100%; flex-wrap: wrap; }
.list-actions .dropdown { margin-left: auto; }
.mode-quick { display: flex; gap: .3rem; width: 100%; order: 10; padding-top: .55rem; margin-top: .1rem; border-top: 1px dashed var(--border); }
.mq { width: 34px; height: 34px; border-radius: 10px; border: 0; color: #fff; display: inline-grid; place-items: center; font-size: .95rem; transition: transform .12s, filter .12s; }
.mq:hover { transform: translateY(-1px); filter: brightness(1.08); }
.dropdown-toggle-plain::after { display: none; }
.dropdown-item { display: flex; align-items: center; gap: .5rem; }
.mode-dot { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; color: #fff; font-size: .8rem; flex-shrink: 0; }
.list-rows { overflow: visible; }
.list-row { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.list-row-main { flex: 1; min-width: 0; color: inherit; }
.list-row-due { background: var(--orange-soft); }
.list-row .list-actions { width: auto; flex-wrap: nowrap; }
.list-row .mode-quick { width: auto; order: 0; border: 0; padding: 0; margin: 0 .5rem 0 0; }
.list-row .list-actions .dropdown { margin-left: 0; }
.year-group { margin-bottom: 1.75rem; }
.year-head, .year-group > summary { display: flex; align-items: center; gap: .45rem; font-weight: 800; font-size: .95rem; color: var(--muted); margin-bottom: .85rem; }
.year-group > summary { cursor: pointer; list-style: none; padding: .7rem 1rem; border: 1px dashed var(--border); border-radius: 14px; background: var(--surface); user-select: none; }
.year-group > summary:hover { border-color: var(--navy); color: var(--text); }
.year-group > summary::-webkit-details-marker { display: none; }
.year-group > summary i { transition: transform .15s; }
.year-group[open] > summary { margin-bottom: 1rem; }
.year-group[open] > summary i { transform: rotate(90deg); }
.filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.chip-filter { border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.chip-filter.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-filter.active .text-muted { color: #C6D6E2 !important; }
@media (max-width: 575.98px) { .list-grid { grid-template-columns: 1fr; } .list-row { padding: .7rem .75rem; gap: .5rem; } .toolbar > .d-flex { flex-wrap: wrap; width: 100%; } .toolbar .btn-group .btn { white-space: nowrap; padding: .45rem .7rem; font-size: .9rem; } .toolbar .search { width: 100%; max-width: none; } .toolbar .btn-primary { margin-left: auto; } }

.mode-buttons { display: flex; gap: .35rem; flex-wrap: wrap; }
.mode-btn { border: 0; border-radius: 10px; padding: .45rem .75rem; font-weight: 800; color: #fff; display: inline-flex; align-items: center; gap: .4rem; transition: transform .12s, filter .12s; }
.mode-btn-sm { padding: .35rem .55rem; font-size: .95rem; }
.mode-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.mode-blue { background: var(--blue); } .mode-indigo { background: var(--indigo); } .mode-teal { background: var(--teal); } .mode-orange { background: var(--orange-c); } .mode-pink { background: var(--pink); } .mode-gray { background: var(--gray); } .mode-green { background: var(--green); }
.mode-blue-soft { background: var(--blue-soft); } .mode-indigo-soft { background: var(--indigo-soft); } .mode-teal-soft { background: var(--teal-soft); } .mode-orange-soft { background: var(--orange-soft); } .mode-pink-soft { background: var(--pink-soft); } .mode-green-soft { background: var(--green-soft); }
.mode-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; flex-shrink: 0; }
.mode-icon-sm { width: 36px; height: 36px; font-size: 1rem; border-radius: 10px; }
.mode-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; }
@media (max-width: 1199.98px) { .mode-grid { grid-template-columns: repeat(3, 1fr); } }
.mode-card { position: relative; }
.mode-card .recommended { position: absolute; top: -.5rem; left: 50%; transform: translateX(-50%); white-space: nowrap; }
@media (max-width: 575.98px) { .mode-grid { grid-template-columns: repeat(2, 1fr); } }
.mode-card { width: 100%; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.2rem .75rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); text-align: center; transition: transform .15s, box-shadow .15s; color: var(--text); }
.mode-card:hover:not(:disabled) { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mode-card:disabled { opacity: .5; }
.mode-name { font-weight: 800; }
.mode-sub { font-size: .78rem; color: var(--muted); }
.resume-card { padding: 1rem; border: 0; }

.empty-state { text-align: center; padding: 3rem 1.5rem; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty-state img { opacity: .9; margin-bottom: .75rem; }
.hard-word { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem 0; }
.hard-word + .hard-word { border-top: 1px solid var(--border); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.search { position: relative; flex: 1; max-width: 460px; }
.search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .form-control { padding-left: 2.6rem; border-radius: 999px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); font-weight: 700; font-size: .85rem; margin-bottom: .4rem; }
.back-link:hover { color: var(--navy); }
.invite-link { display: flex; gap: .5rem; align-items: center; }
.fg-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.group-card { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; color: inherit; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.group-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }
.group-card-pending { opacity: .7; pointer-events: none; }
.group-card-invited { border-color: rgba(249, 130, 47, .5); align-items: flex-start; }
.group-mark { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: inline-grid; place-items: center; font-weight: 800; font-size: 1.15rem; color: #fff; background: linear-gradient(135deg, var(--navy), #2F6690); }
.group-mark-lg { width: 56px; height: 56px; font-size: 1.4rem; border-radius: 16px; }
.group-mark-xl { width: 72px; height: 72px; font-size: 1.8rem; border-radius: 20px; }
.friend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.friend-card { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; }
.avatar-lg { width: 46px; height: 46px; font-size: 1.05rem; }
.avatar-muted { background: var(--gray-soft); color: var(--muted); }
.avatar-tone-1 { background: linear-gradient(135deg, #2F6690, #5BA4D6); }
.avatar-tone-2 { background: linear-gradient(135deg, #1E8E6A, #57C79A); }
.avatar-tone-3 { background: linear-gradient(135deg, #7B4FB8, #B48CE8); }
.btn-icon-sm { width: 34px; height: 34px; font-size: .95rem; }
.empty-icon { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto .75rem; display: grid; place-items: center; font-size: 1.8rem; color: var(--navy); background: var(--blue-soft); }
.text-accent { color: var(--orange) !important; }
.card-attention { border-color: rgba(249, 130, 47, .5); }
.qr-box { display: flex; justify-content: center; }
.qr-box img, .qr-box canvas { border-radius: 12px; background: #fff; padding: 8px; }
.join-card { max-width: 560px; }
.locked-card { max-width: 560px; padding: 2.5rem 2rem; text-align: center; }
.locked-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; font-size: 2rem; color: var(--muted); background: var(--gray-soft); }
.list-card-locked, .list-row-locked { opacity: .65; }
.list-card-locked:hover { opacity: .9; }
.invite-link .form-control { font-family: ui-monospace, monospace; font-size: .8rem; }

/* list editor */
.items-head, .item-row { display: grid; grid-template-columns: 2.2rem 1fr 1fr 2.4rem; gap: .5rem; align-items: center; padding: .45rem 1rem; }
.items-head { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; border-bottom: 1px solid var(--border); }
.item-row + .item-row { border-top: 1px solid var(--border); }
.item-num { color: var(--muted); font-size: .85rem; font-weight: 700; text-align: center; }
.item-row .form-control { padding: .45rem .7rem; }
.type-picker { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.type-option input { position: absolute; opacity: 0; }
.type-option span { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem .5rem; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-weight: 700; font-size: .85rem; cursor: pointer; transition: all .12s; }
.type-option input:checked + span { border-color: var(--navy); background: var(--blue-soft); color: var(--navy); }
[data-bs-theme="dark"] .type-option input:checked + span { color: #B9D4EA; }
.ai-import { padding: 1.15rem 1.25rem; border-color: rgba(249, 130, 47, .4); background: linear-gradient(135deg, var(--orange-100), var(--surface) 60%); }
.ai-import-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 1.5rem; }
.flash { box-shadow: var(--shadow); }
.error-page { text-align: center; padding: 4rem 1rem; }
.error-code { font-size: 5rem; font-weight: 900; color: var(--orange); line-height: 1; }

/* ----------------------------------------------------------------- auth */
.auth-shell { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 520px); justify-content: center; column-gap: 3rem; min-height: 100vh; }
.auth-art { display: flex; align-items: center; justify-content: flex-end; padding: 3rem; color: #fff; background: radial-gradient(900px 500px at 20% 10%, rgba(249, 130, 47, .5), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 100%); }
.auth-art-inner { max-width: 420px; }
.auth-logo-wrap { position: relative; display: inline-grid; place-items: center; width: 176px; height: 176px; margin-bottom: 1.5rem; border-radius: 40px; background: linear-gradient(160deg, #FFFFFF 0%, #EEF4F9 100%); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .55), 0 0 0 6px rgba(255, 255, 255, .08); }
.auth-logo-wrap::before { content: ''; position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(circle, rgba(249, 130, 47, .45), transparent 65%); z-index: -1; filter: blur(6px); }
.auth-logo { width: 126px; height: auto; }
.auth-art h2 { font-size: 2.6rem; font-weight: 900; color: #fff; margin-bottom: .75rem; }
.auth-art p { color: #D4E2ED; font-size: 1.05rem; }
.auth-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: .5rem; font-weight: 700; }
.auth-points i { color: #FFC58E; margin-right: .5rem; }
.auth-panel { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 2rem 1.25rem; }
@media (max-width: 991.98px) { .auth-panel { align-items: center; } }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 2.25rem; box-shadow: var(--shadow-lg); transition: max-width .2s; }
/* De registratiepagina is breder: de velden staan in twee kolommen, zodat alles op een scherm past. */
.auth-card:has(#registerSubmit) { max-width: 660px; padding: 1.75rem 2rem; }
.auth-card:has(#registerSubmit) .form-text { font-size: .76rem; margin-top: .15rem; }
.auth-card:has(#registerSubmit) .auth-title { font-size: 1.5rem; }
@media (min-width: 992px) { .auth-shell:has(#registerSubmit) { grid-template-columns: minmax(0, 440px) minmax(0, 700px); column-gap: 2.5rem; } }
.auth-brand { display: flex; align-items: center; gap: .5rem; font-weight: 900; font-size: 1.3rem; color: var(--navy); margin-bottom: 1.25rem; }
.auth-title { font-size: 1.7rem; margin-bottom: .25rem; }
.auth-footer { margin-top: 1.5rem; color: var(--muted); font-size: .8rem; }
.auth-kicker { display: inline-block; font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 800; color: #FFC58E; margin-bottom: .5rem; }
a.auth-logo-wrap { text-decoration: none; }
/* Auth pages in the "fris" landing theme: one continuous light canvas with the same colour blobs as
   the homepage across the whole page; the form floats on it as a card. */
.auth-shell[data-theme="fris"] { position: relative; overflow: hidden; background: #FFFDF9; }
/* Vast aan het venster: als absolute vlekken staken ze onder de pagina uit en kon je nutteloos scrollen. */
.auth-shell[data-theme="fris"]::before, .auth-shell[data-theme="fris"]::after { content: ""; position: fixed; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; z-index: 0; }
.auth-shell[data-theme="fris"]::before { width: 640px; height: 640px; background: #FFB070; top: -220px; left: 32%; }
.auth-shell[data-theme="fris"]::after { width: 560px; height: 560px; background: #9FE3E3; bottom: -260px; left: -180px; }
.auth-shell[data-theme="fris"] .auth-art { position: relative; z-index: 1; color: var(--text); background: transparent; }
.auth-shell[data-theme="fris"] .auth-panel { position: relative; z-index: 1; background: transparent; }
.auth-shell[data-theme="fris"] .auth-panel::before { content: ""; position: fixed; width: 420px; height: 420px; border-radius: 50%; filter: blur(70px); opacity: .4; background: #BFD7F2; right: -160px; bottom: -120px; pointer-events: none; z-index: -1; }
.auth-shell[data-theme="fris"] .auth-logo-wrap { box-shadow: 0 24px 48px -20px rgba(28, 75, 105, .45), 0 0 0 6px rgba(255, 255, 255, .8); }
.auth-shell[data-theme="fris"] .auth-logo-wrap::before { opacity: .6; }
.auth-shell[data-theme="fris"] .auth-kicker { color: var(--orange-600); }
.auth-shell[data-theme="fris"] .auth-art h2 { color: var(--navy); }
.auth-shell[data-theme="fris"] .auth-art p { color: var(--muted); }
.auth-shell[data-theme="fris"] .auth-points { color: var(--text); }
.auth-shell[data-theme="fris"] .auth-points i { color: var(--teal); }
.auth-shell[data-theme="fris"] .auth-card { border-color: rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); box-shadow: 0 30px 60px -28px rgba(28, 75, 105, .4); }
.auth-shell[data-theme="fris"] .auth-footer { color: var(--muted); }
@media (max-width: 991.98px) { .auth-shell { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-panel { background: linear-gradient(180deg, var(--blue-soft), var(--bg) 40%); } }

/* ------------------------------------------------------------- practice */
.practice-shell { display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); }
.practice-bar { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.25rem; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.practice-bar-title { min-width: 0; flex: 1; }
.practice-bar-title { margin-right: auto; }
.practice-progress { display: flex; align-items: center; gap: 1rem; width: 100%; max-width: 720px; margin: 0 auto 1.25rem; padding: .85rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow); }
.practice-progress .progress-track { flex: 1; height: 12px; }
.progress-label { font-weight: 800; font-size: .95rem; color: var(--muted); white-space: nowrap; }
.progress-label i { color: var(--orange); margin-right: .25rem; }
.practice-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 1rem 2rem; }
.match-wrap .match-head { justify-content: center; }
@media (max-width: 575.98px) { .practice-progress { padding: .6rem .9rem; } }
.practice-card { width: 100%; max-width: 720px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 2.25rem; text-align: center; animation: pop-in .25s ease; }
.practice-hint { color: var(--muted); font-size: .85rem; margin-top: 1.25rem; text-align: center; }
.q-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; margin-bottom: .5rem; }
.q-text { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; line-height: 1.2; margin-bottom: 1.75rem; word-break: break-word; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 575.98px) { .choices { grid-template-columns: 1fr; } .practice-card { padding: 1.4rem; } }
.choice { position: relative; display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; padding: 1rem 1.1rem; border-radius: 16px; border: 2px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 1.05rem; transition: all .15s; }
@media (hover: hover) { .choice:hover:not(:disabled) { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow); } }
.choice:disabled { cursor: default; }
.choice .key { width: 26px; height: 26px; border-radius: 8px; background: var(--gray-soft); color: var(--muted); display: grid; place-items: center; font-size: .8rem; flex-shrink: 0; }
.choice.correct { border-color: var(--green); background: var(--green-soft); color: var(--green); animation: pop .35s ease; }
.choice.incorrect { border-color: var(--red); background: var(--red-soft); color: var(--red); animation: shake .4s ease; }
.choice.dim { opacity: .45; }
.feedback { min-height: 2rem; margin-top: 1.25rem; font-weight: 800; font-size: 1.1rem; }
.feedback.ok { color: var(--green); }
.feedback.bad { color: var(--red); }
.feedback .answer { display: block; font-weight: 600; color: var(--text); margin-top: .25rem; font-size: 1rem; }

.type-input-wrap { display: flex; gap: .6rem; }
.profile-hero .hero-sub { color: #C6D6E2; }
.avatar-xl { width: 72px; height: 72px; font-size: 1.6rem; border: 3px solid rgba(255, 255, 255, .25); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.chip-hero { background: rgba(255, 255, 255, .14); color: #fff; }
.stat-link { color: inherit; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.stat-link:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-head h3 { display: flex; align-items: center; gap: .6rem; }
.head-icon { width: 32px; height: 32px; border-radius: 10px; display: inline-grid; place-items: center; color: #fff; font-size: .95rem; flex-shrink: 0; }
.bg-purple { background: #7B4FB8; } .bg-red { background: var(--red); }
.theme-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.theme-option { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .9rem .5rem; border: 2px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); }
.theme-option i { font-size: 1.4rem; margin-bottom: .2rem; }
.theme-option:hover { border-color: var(--navy); color: var(--text); }
.theme-option.active { border-color: var(--orange); background: var(--orange-soft); color: var(--text); }
.danger-zone { border-color: rgba(220, 53, 69, .35); }
.danger-zone > summary { cursor: pointer; list-style: none; border-bottom: 0; }
.danger-zone > summary::-webkit-details-marker { display: none; }
.danger-zone[open] > summary { border-bottom: 1px solid var(--border); }
.danger-zone[open] > summary .bi-chevron-down { transform: rotate(180deg); display: inline-block; }
@media (max-width: 575.98px) { .theme-picker { grid-template-columns: 1fr; } .pref-indent { padding-left: 0; } }
.oauth-block { margin-top: 1.5rem; }
.oauth-block-top { margin: 0 0 1.25rem; }
.oauth-divider-below { margin: 1rem 0 0; }
.oauth-note { margin: .7rem 0 0; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.oauth-note i { color: var(--orange-600); margin-right: .2rem; }
.oauth-divider { position: relative; text-align: center; margin-bottom: 1rem; }
.oauth-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--border); }
.oauth-divider span { position: relative; background: var(--surface); padding: 0 .75rem; color: var(--muted); font-size: .85rem; font-weight: 700; }
.oauth-buttons { display: grid; gap: .6rem; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .7rem 1rem; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font-weight: 800; text-decoration: none; transition: border-color .12s, background .12s, transform .12s; }
.oauth-btn:hover { border-color: var(--navy); background: var(--surface-2); color: var(--text); transform: translateY(-1px); }
.oauth-btn svg { flex-shrink: 0; }
@media (min-width: 480px) { .oauth-buttons { grid-template-columns: 1fr 1fr; } }
.ik-confirm { position: fixed; inset: 0; z-index: 1080; background: rgba(12, 30, 45, .55); display: flex; align-items: center; justify-content: center; padding: 1rem; animation: ikFade .12s ease; }
.ik-confirm-card { width: 100%; max-width: 460px; background: var(--surface); border-radius: 20px; padding: 1.75rem; box-shadow: var(--shadow-lg); text-align: center; animation: sheetUp .18s ease; }
.ik-confirm-icon { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; font-size: 1.6rem; background: var(--blue-soft); color: var(--navy); }
.ik-confirm-icon.danger { background: var(--red-soft); color: var(--red); }
.ik-confirm-card h3 { font-size: 1.25rem; font-weight: 900; margin: 0 0 .5rem; }
.ik-confirm-card p { color: var(--muted); margin: 0 0 1.5rem; line-height: 1.55; }
.ik-confirm-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.ik-confirm-actions .btn { min-width: 130px; }
@keyframes ikFade { from { opacity: 0; } to { opacity: 1; } }
.report-sheet { position: fixed; inset: 0; z-index: 1050; background: rgba(12, 30, 45, .55); display: flex; align-items: flex-end; justify-content: center; padding: 1rem; }
.report-card { width: 100%; max-width: 520px; background: var(--surface); border-radius: 20px; padding: 1.5rem; box-shadow: var(--shadow-lg); animation: sheetUp .2s ease; }
@media (min-width: 576px) { .report-sheet { align-items: center; } }
@keyframes sheetUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.report-pair { padding: .6rem .8rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.report-option { display: flex; align-items: center; gap: .6rem; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; margin: 0; }
.report-option:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.report-note { padding: .5rem .75rem; border-left: 3px solid var(--orange); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.report-photo img { max-width: 100%; max-height: 220px; border-radius: 12px; border: 1px solid var(--border); object-fit: cover; }
.item-hidden td { opacity: .55; text-decoration: line-through; }
.item-hidden td .chip { text-decoration: none; }
.side-badge { display: inline-block; min-width: 1.4em; padding: 0 .4em; margin-left: .3rem; border-radius: 999px; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 800; text-align: center; }
.live-hint { transition: color .15s; }
.form-control.is-valid { border-color: var(--green); background-image: none; }
.form-control.is-invalid { border-color: var(--red); background-image: none; }
.save-state { font-size: .8rem; font-weight: 700; white-space: nowrap; }
.save-state.saving { color: var(--muted); }
.save-state.saved { color: var(--green); }
.save-state.saved::before { content: "\2713  "; }
.save-state.error { color: var(--red); }
.pref-row { display: flex; align-items: flex-start; gap: .8rem; margin: 0; cursor: pointer; }
.pref-row .form-check-input { flex-shrink: 0; width: 2.6em; height: 1.45em; margin: .1rem 0 0; border-radius: 2em; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e"); background-position: left center; background-repeat: no-repeat; background-size: contain; transition: background-position .15s; }
.pref-row .form-check-input:checked { background-position: right center; background-color: var(--navy); border-color: var(--navy); }
.pref-sub { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; margin-top: .1rem; }
.pref-indent { padding-left: 3.4rem; }
.char-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; margin-top: .7rem; }
.char-bar button { min-width: 2.5rem; padding: .35rem .6rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.char-bar button:hover { border-color: var(--navy); background: var(--blue-soft); }
.char-bar-help { width: 100%; text-align: center; font-size: .75rem; color: var(--muted); }
.type-input { flex: 1; font-size: 1.35rem; font-weight: 700; padding: .85rem 1.2rem; border-radius: 999px; border: 2px solid var(--border); background: var(--surface-2); color: var(--text); text-align: center; outline: none; transition: all .15s; }
.type-input:focus { border-color: var(--navy); box-shadow: 0 0 0 5px rgba(28, 75, 105, .12); }
.type-input.correct { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.type-input.incorrect { border-color: var(--red); background: var(--red-soft); color: var(--red); animation: shake .4s ease; }
@media (max-width: 575.98px) { .type-input-wrap { flex-direction: column; } }

.match-wrap { width: 100%; max-width: 980px; }
.match-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
@media (max-width: 767.98px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { min-height: 96px; display: flex; align-items: center; justify-content: center; text-align: center; padding: .75rem; border-radius: 16px; border: 2px solid var(--border); background: var(--surface); font-weight: 800; font-size: 1rem; word-break: break-word; cursor: pointer; transition: all .15s; box-shadow: var(--shadow); color: var(--text); }
@media (hover: hover) { .tile:hover { transform: translateY(-2px); border-color: var(--navy); } }
.tile.selected { border-color: var(--orange); background: var(--orange-soft); transform: scale(1.03); }
.tile.correct { border-color: var(--green); background: var(--green-soft); color: var(--green); animation: pop .35s ease; }
.tile.incorrect { border-color: var(--red); background: var(--red-soft); color: var(--red); animation: shake .4s ease; }
.tile.gone { opacity: 0; transform: scale(.6); pointer-events: none; }

/* charts (single-hue bars, thin marks, recessive axes) */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; border-bottom: 1px solid var(--border); }
.bar-fill { width: 100%; max-width: 22px; margin: 0 auto; background: var(--navy); border-radius: 4px 4px 0 0; min-height: 2px; transition: height .3s; }
[data-bs-theme="dark"] .bar-fill { background: #8FB8DA; }
.bar-fill.bar-thin { opacity: .3; }
.bar-stack { width: 100%; max-width: 22px; margin: 0 auto; height: 100%; display: flex; flex-direction: column-reverse; justify-content: flex-start; gap: 2px; }
.bar-seg { width: 100%; border-radius: 3px; min-height: 2px; }
.bar-seg-empty { height: 2px; background: var(--border); }
.bar-col:hover .bar-seg { filter: brightness(1.15); }
.funnel-bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: .3rem; }
.funnel-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--blue)); border-radius: 999px; }
.funnel-bar-sm { height: 6px; }
.table-usage td, .table-usage th { padding: .45rem 1rem; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: var(--muted); }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.bar-col:hover .bar-fill { background: var(--orange); }
.bar-label { font-size: .68rem; color: var(--muted); height: 1.2rem; margin-top: 4px; white-space: nowrap; }
.hbars { display: flex; flex-direction: column; gap: .5rem; }
.hbar { display: grid; grid-template-columns: 6.5rem 1fr 3.2rem; align-items: center; gap: .6rem; }
.hbar-thin .hbar-fill { opacity: .35; }
.hbar-label { font-size: .85rem; font-weight: 700; color: var(--muted); text-align: right; }
.hbar-track { height: 10px; border-radius: 999px; background: var(--gray-soft); overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 999px; background: var(--navy); transition: width .3s; }
[data-bs-theme="dark"] .hbar-fill { background: #8FB8DA; }
.hbar:hover .hbar-fill { background: var(--orange); }
.hbar-value { font-size: .85rem; font-weight: 800; }
.insights-card { border-color: rgba(249, 130, 47, .35); }
.insight { padding: .9rem 1rem; border-radius: 14px; background: var(--surface-2); height: 100%; }
.advice { padding: 1rem 1.15rem; border-radius: 14px; background: var(--blue-soft); }

/* calendar */
.week { display: flex; flex-direction: column; gap: .75rem; }
.sys-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.sys-tab { padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--muted); font-weight: 800; font-size: .9rem; transition: all .12s; }
.sys-tab:hover { border-color: var(--navy); color: var(--text); }
.sys-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.day { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.day-today { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249, 130, 47, .15); }
.day-empty { opacity: .6; }
.day-past > summary { cursor: pointer; list-style: none; border-bottom: 0; opacity: .75; }
.day-past > summary::-webkit-details-marker { display: none; }
.day-past[open] > summary { border-bottom: 1px solid var(--border); opacity: 1; }
.day-caret { color: var(--muted); font-size: .85rem; transition: transform .15s; }
.day-past[open] .day-caret { transform: rotate(180deg); }
.day-head { padding: .75rem 1rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .4rem; }
.event { display: flex; align-items: flex-start; gap: .85rem; padding: .6rem 1rem; border-left: 4px solid var(--border); }
.event + .event { border-top: 1px solid var(--border); }
.event-toets { border-left-color: var(--red); background: var(--red-soft); }
.event-huiswerk { border-left-color: var(--yellow); background: var(--yellow-soft); }
.event-list-chip { position: relative; display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem; padding: .12rem .55rem .2rem; border-radius: 999px; font-size: .76rem; font-weight: 700; color: var(--orange-600); background: var(--orange-soft); text-decoration: none; overflow: hidden; max-width: 100%; }
.event-list-chip:hover { color: var(--orange-600); background: var(--orange-100); }
.event-list-chip .text-muted { font-weight: 600; }
.event-list-bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--orange); }
.event-time { font-size: .8rem; font-weight: 800; color: var(--muted); white-space: nowrap; width: 6.5rem; padding-top: .15rem; }

/* review + test */
.review-card { border-color: rgba(249, 130, 47, .45); background: linear-gradient(135deg, var(--orange-100), var(--surface) 55%); }
.grade { display: inline-grid; place-items: center; width: 120px; height: 120px; border-radius: 32px; font-size: 3rem; font-weight: 900; color: #fff; margin-bottom: .75rem; animation: pop .5s ease; }
.grade-pass { background: linear-gradient(135deg, var(--green), #3BC58A); box-shadow: 0 16px 30px -14px rgba(34, 160, 107, .8); }
.grade-fail { background: linear-gradient(135deg, var(--red), #F2707A); box-shadow: 0 16px 30px -14px rgba(229, 72, 77, .8); }

/* reminders / due dates */
.push-banner { border-color: rgba(249, 130, 47, .4); background: linear-gradient(135deg, var(--orange-100), var(--surface) 60%); }
.due-card { border-left: 4px solid var(--orange); }
.due-card.due-soon { border-left-color: var(--red); }
.due-day { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 16px; background: var(--orange-soft); color: var(--orange-600); flex-shrink: 0; }
.due-soon .due-day { background: var(--red-soft); color: var(--red); }
.due-num { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.due-unit { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
html.pwa .app-footer { padding-bottom: env(safe-area-inset-bottom); }

/* learn mode */
.learn-steps { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.25rem; }
.learn-steps .step { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gray-soft); color: var(--muted); font-size: .95rem; transition: all .2s; }
.learn-steps .step.done { background: var(--green-soft); color: var(--green); }
.learn-steps .step.active { background: var(--navy); color: #fff; transform: scale(1.12); box-shadow: 0 6px 14px -6px rgba(28, 75, 105, .7); }
[data-bs-theme="dark"] .learn-steps .step.active { background: var(--orange); }
#stepShow { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.learn-arrow { color: var(--muted); font-size: 1.4rem; line-height: 1; margin-top: -.75rem; }
.learn-answer { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--navy); padding: 1rem 2rem; border-radius: 16px; background: var(--blue-soft); display: block; width: 100%; max-width: 480px; }
#stepShow .btn { margin-top: 0 !important; min-width: 200px; }
[data-bs-theme="dark"] .learn-answer { color: #B9D4EA; }
.learn-hint { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 1.4rem; letter-spacing: .15em; font-weight: 700; color: var(--orange-600); margin-bottom: 1rem; word-break: break-word; }

/* QR hand-off modal */
.qr-box { display: grid; place-items: center; padding: 1rem; background: #fff; border-radius: 16px; border: 1px solid var(--border); }
.qr-box canvas, .qr-box img { max-width: 100%; height: auto; }

.flash-wrap { width: 100%; max-width: 680px; text-align: center; }
.flashcard { position: relative; height: 340px; perspective: 1200px; cursor: pointer; outline: none; }
.flash-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); backface-visibility: hidden; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.flash-back { transform: rotateY(180deg); background: linear-gradient(135deg, var(--navy), var(--navy-800)); color: #fff; }
.flash-back .q-label { color: #FFC58E; }
.flashcard.flipped .flash-front { transform: rotateY(180deg); }
.flashcard.flipped .flash-back { transform: rotateY(360deg); }
.flash-text { font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 900; line-height: 1.2; word-break: break-word; }
.flash-hint { position: absolute; bottom: 1rem; color: var(--muted); font-size: .8rem; }
.flash-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.flash-actions .btn { min-width: 180px; }
.result-hero { text-align: center; padding: 1rem 0 1.5rem; }
.result-emoji { font-size: 4rem; line-height: 1; margin-bottom: .5rem; animation: pop .5s ease; }
.done-card { text-align: center; }
.done-card .result-emoji { font-size: 5rem; }

/* ============================================================ landing */
html:has(body.landing) { background: var(--navy); }
.landing { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }
.landing *, .landing *::before, .landing *::after { box-sizing: border-box; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--orange); color: #fff; padding: .5rem 1rem; border-radius: 0 0 12px 0; z-index: 100; }
.skip-link:focus { left: 0; }
.l-wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.l-narrow { max-width: 780px; }
.l-header { position: sticky; top: 0; z-index: 50; background: rgba(28, 75, 105, .92); backdrop-filter: blur(10px); color: #fff; }
.l-nav { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.l-brand { display: flex; align-items: center; gap: .6rem; color: #fff; }
.l-links { display: flex; gap: 1.25rem; margin-left: auto; }
.l-links a { color: #D4E2ED; font-weight: 700; }
.l-links a:hover { color: #fff; }
.l-cta { display: flex; gap: .5rem; margin-left: auto; }
.l-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.2rem; border-radius: 999px; font-weight: 800; transition: transform .12s, box-shadow .12s, background .12s; }
.l-btn:active { transform: translateY(1px); }
.l-btn-lg { padding: .85rem 1.6rem; font-size: 1.1rem; }
.l-btn-accent { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(249, 130, 47, .8); }
.l-btn-accent:hover { background: var(--orange-600); color: #fff; transform: translateY(-1px); }
.l-btn-ghost { border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; }
.l-btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.l-kicker { display: inline-block; font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 800; color: var(--orange); margin-bottom: .6rem; }
.l-accent { color: var(--orange); }
.l-lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.l-muted { color: var(--muted); }

.l-hero { color: #fff; padding: 4.5rem 0 5rem; background: radial-gradient(900px 500px at 85% 0%, rgba(249, 130, 47, .45), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(143, 184, 218, .25), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 100%); overflow: hidden; }
.l-hero .l-kicker { color: #FFC58E; }
.l-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.l-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; font-weight: 900; margin: 0 0 1rem; color: #fff; }
.l-hero .l-lead { color: #D4E2ED; font-size: 1.2rem; }
.l-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1.75rem 0 1.25rem; }
.l-hero-note { color: #D4E2ED; font-size: .9rem; }
.l-hero-note i { color: #FFC58E; margin-right: .3rem; }
.l-proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; font-weight: 700; color: #fff; }
.l-proof i { color: #FFC58E; margin-right: .3rem; }
.l-hero-visual { position: relative; display: flex; justify-content: center; padding: 3rem 0; }
.l-phone { width: 320px; background: var(--surface); color: var(--text); border-radius: 32px; padding: 1.4rem 1.3rem 1.6rem; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 10px #10202D, 0 0 0 12px #2B4457; animation: float 6s ease-in-out infinite; }
.l-phone-bar { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: .9rem; margin-bottom: .75rem; }
.l-pill { background: var(--green-soft); color: var(--green); border-radius: 999px; padding: .1rem .6rem; font-size: .75rem; }
.l-phone-progress { height: 8px; border-radius: 999px; background: var(--gray-soft); overflow: hidden; margin-bottom: 1rem; }
.l-phone-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #FFB070); border-radius: 999px; }
.l-steps { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1rem; }
.l-steps i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--gray-soft); color: var(--muted); font-size: .9rem; }
.l-steps i.done { background: var(--green-soft); color: var(--green); }
.l-steps i.active { background: var(--navy); color: #fff; transform: scale(1.1); }
.l-q-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; text-align: center; }
.l-q { font-size: 1.8rem; font-weight: 900; text-align: center; margin: .25rem 0 .5rem; }
.l-hint { font-family: ui-monospace, monospace; letter-spacing: .15em; color: var(--orange-600); font-weight: 700; text-align: center; margin-bottom: .75rem; }
.l-input { border: 2px solid var(--green); background: var(--green-soft); color: var(--green); border-radius: 999px; padding: .7rem 1rem; font-weight: 700; text-align: center; font-size: 1.1rem; }
.l-caret { display: inline-block; width: 2px; height: 1.1em; background: var(--green); margin-left: 2px; vertical-align: middle; animation: blink 1s steps(1) infinite; }
.l-feedback { text-align: center; color: var(--green); font-weight: 800; margin-top: .75rem; }
.l-float { position: absolute; background: var(--surface); color: var(--text); border-radius: 14px; padding: .6rem .9rem; font-size: .85rem; font-weight: 700; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .5rem; }
.l-float i { color: var(--orange); }
.l-float-1 { top: 0; left: 0; animation: float 7s ease-in-out infinite 1s; }
.l-float-2 { bottom: 0; right: 0; animation: float 8s ease-in-out infinite .5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blink { 50% { opacity: 0; } }

.l-section { padding: 4.5rem 0; }
.l-section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.l-section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.l-section-head.l-left { text-align: left; margin: 0 0 2rem; }
.l-section h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 900; margin: 0 0 .75rem; }
.l-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.l-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1.5rem; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.l-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.l-card h3 { font-size: 1.1rem; margin: 1rem 0 .4rem; }
.l-card p { color: var(--muted); margin: 0; }
.l-steps-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.l-steps-list li { display: flex; gap: 1rem; }
.l-steps-list h3 { font-size: 1.1rem; margin: .2rem 0 .4rem; }
.l-steps-list p { color: var(--muted); margin: 0; }
.l-num { width: 44px; height: 44px; border-radius: 14px; background: var(--orange); color: #fff; font-weight: 900; font-size: 1.2rem; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 10px 20px -10px rgba(249, 130, 47, .9); }
.l-modes-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.l-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.l-mode { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.1rem .75rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .35rem; box-shadow: var(--shadow); }
.l-mode strong { font-size: .95rem; }
.l-mode span:last-child { font-size: .78rem; color: var(--muted); }
.l-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 1.25rem; margin-bottom: .75rem; box-shadow: var(--shadow); }
.l-faq summary { list-style: none; cursor: pointer; padding: 1.1rem 0; font-weight: 800; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary i { color: var(--orange); transition: transform .2s; }
.l-faq details[open] summary i { transform: rotate(45deg); }
.l-faq p { margin: 0 0 1.1rem; color: var(--muted); }
.l-promises { list-style: none; padding: 0; margin: -1rem 0 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; font-weight: 700; font-size: .95rem; color: var(--text); }
.l-promises li { display: flex; align-items: center; gap: .45rem; }
.l-promises i { color: var(--teal); font-size: 1.1rem; }
.l-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.l-price { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 1.75rem 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .35rem; }
.l-price h3 { margin: .75rem 0 0; font-size: 1.25rem; }
.l-price-amount { font-size: 2.4rem; font-weight: 900; letter-spacing: -.03em; color: var(--navy); line-height: 1.1; }
.l-price-sub { color: var(--muted); font-size: .9rem; margin-bottom: .75rem; }
.l-price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .95rem; }
.l-price li { display: flex; gap: .55rem; align-items: flex-start; }
.l-price li i { color: var(--teal); margin-top: .15em; flex-shrink: 0; }
.l-price li i.bi-camera, .l-price li i.bi-stars, .l-price li i.bi-people { color: var(--orange-600); }
.l-save { display: inline-block; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: .78rem; padding: .15rem .55rem; border-radius: 999px; margin-left: .25rem; }
.l-price-plus { border: 2px solid var(--orange); box-shadow: 0 24px 48px -24px rgba(249, 130, 47, .55); }
.l-price-plus .l-price-amount { color: var(--orange-600); }
.l-price-badge { position: absolute; top: -.8rem; right: 1.25rem; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: .3rem .7rem; border-radius: 999px; }
.l-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.l-extra { display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1rem 1.2rem; color: var(--text); box-shadow: var(--shadow); }
.l-extra i { font-size: 1.5rem; color: var(--orange-600); flex-shrink: 0; }
.l-extra strong { display: block; }
.l-extra span { font-size: .95rem; color: var(--muted); }
.pay-option { display: flex; gap: .75rem; align-items: flex-start; border: 1px solid var(--border); border-radius: 14px; padding: .75rem .9rem; cursor: pointer; background: var(--surface); }
.pay-option:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(28, 75, 105, .15); }
.pay-option-asked { background: var(--orange-soft); }
.voucher-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.7rem; font-weight: 800; letter-spacing: .08em; color: var(--navy); background: var(--orange-soft); border: 2px dashed var(--orange); border-radius: 14px; padding: .8rem 1rem; margin: 1rem 0; }
.l-price-note { text-align: center; font-size: .9rem; margin: 1.75rem auto 0; max-width: 720px; }
.crop-stage { max-height: 60vh; overflow: hidden; border-radius: 12px; background: #111; touch-action: none; overscroll-behavior: contain; }
.crop-stage img { max-height: 60vh; }
.cropper-container { touch-action: none; }
.crop-overlay { position: fixed; inset: 0; z-index: 2000; background: #111; display: flex; flex-direction: column; padding: max(.75rem, env(safe-area-inset-top)) .75rem max(.75rem, env(safe-area-inset-bottom)); }
.crop-overlay .crop-stage { flex: 1; max-height: none; border-radius: 0; display: flex; align-items: center; justify-content: center; }
.crop-overlay .crop-stage img { max-height: 100%; }
.crop-overlay p { color: #cbd5e1; margin: 0 0 .5rem; }
body.cropping { overflow: hidden; }
.plan-box { border: 1px solid var(--border); border-radius: 18px; padding: 1.1rem; background: var(--surface); }
.plan-box-plus { border-color: var(--orange); background: var(--orange-soft, rgba(249, 130, 47, .06)); }
.l-final { background: radial-gradient(800px 400px at 50% 0%, rgba(249, 130, 47, .35), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 100%); color: #fff; }
.l-final-inner { text-align: center; }
.l-final h2 { color: #fff; }
.l-final .l-lead { color: #D4E2ED; margin: 0 auto 1.5rem; }
.l-footer { padding: 2.5rem 0; }
.l-footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: start; }
.l-footer .brand-text { color: var(--navy); }
[data-bs-theme="dark"] .l-footer .brand-text { color: #fff; }
.l-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; font-weight: 700; justify-content: flex-end; }
.l-footer nav a { color: var(--text); }
.l-copy { grid-column: 1 / -1; font-size: .85rem; margin: 0; }
.l-prose h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 1rem; }
/* Guide pages (/uitleg and the SEO pages) */
.l-guide h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.12; margin: 0 0 1rem; }
.l-crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.l-crumbs a { color: var(--muted); text-decoration: none; }
.l-crumbs a:hover { color: var(--orange-600); }
.l-crumbs i { font-size: .7rem; }
.l-guide-head { margin-bottom: 2rem; }
.l-guide-meta { font-size: .85rem; margin: .75rem 0 0; }
.l-toc { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; box-shadow: var(--shadow); }
.l-toc-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--muted); }
.l-toc ol { margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.l-toc a { color: var(--navy); font-weight: 700; text-decoration: none; }
.l-toc a:hover { color: var(--orange-600); text-decoration: underline; }
.l-guide-steps { margin-bottom: 2.5rem; }
.l-guide-steps h2, .l-guide-faq h2, .l-guide-related h2, .l-guide-cta h2 { font-size: 1.5rem; font-weight: 900; margin: 0 0 1.25rem; }
.l-howto { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.l-howto li { display: flex; gap: 1rem; align-items: flex-start; }
.l-howto strong { display: block; font-size: 1.05rem; }
.l-howto p { margin: .2rem 0 0; color: var(--muted); }
.l-num-sm { width: 34px; height: 34px; border-radius: 11px; font-size: 1rem; }
.l-prose section { margin-bottom: 2.25rem; }
.l-prose section h2 { font-size: 1.5rem; font-weight: 900; margin: 0 0 .75rem; scroll-margin-top: 90px; }
.l-prose p { color: var(--text); line-height: 1.7; margin: 0 0 .9rem; }
.l-prose ol { padding-left: 1.3rem; display: grid; gap: .5rem; margin-bottom: 1rem; }
.l-prose ol li { line-height: 1.6; }
.l-check { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.l-check li { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.6; }
.l-check i { color: var(--teal); margin-top: .25em; flex-shrink: 0; }
.l-note { background: var(--orange-soft); border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; padding: .85rem 1.1rem; color: var(--text) !important; }
.l-note i { color: var(--orange-600); margin-right: .3rem; }
.l-guide-faq { margin: 3rem 0; scroll-margin-top: 90px; }
.l-guide-cta { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 2.5rem 1.5rem; box-shadow: var(--shadow); margin: 3rem 0; }
.l-guide-cta .l-hero-actions { justify-content: center; margin-bottom: 0; }
.l-guide-block { margin-bottom: 3rem; }
.l-guide-block-head { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); }
.l-guide-block-head h2 { font-size: 1.35rem; font-weight: 900; margin: 0; }
.l-guide-block-head p { margin: 0; font-size: .92rem; }
.l-related-grid-sm { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.l-related-sm { padding: 1rem 1.15rem; }
.l-related-sm strong { font-size: 1rem; }
.l-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.l-related { display: flex; flex-direction: column; gap: .3rem; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.25rem; box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.l-related:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text); }
.l-related strong { font-size: 1.05rem; line-height: 1.3; }
.l-related .l-kicker { margin-bottom: 0; }
.l-related-more { margin-top: .4rem; font-weight: 800; color: var(--orange-600); font-size: .9rem; }
.l-prose h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
.l-prose ul { padding-left: 1.2rem; }
.l-prose li { margin-bottom: .5rem; }
/* --- landing theme "fris": light, playful, colourful blobs --- */
.landing[data-theme="fris"] .l-header { background: rgba(255, 255, 255, .85); color: var(--navy); border-bottom: 1px solid var(--border); }
.landing[data-theme="fris"] .l-brand, .landing[data-theme="fris"] .l-links a { color: var(--navy); }
.landing[data-theme="fris"] .l-links a:hover { color: var(--orange-600); }
.landing[data-theme="fris"] .l-btn-ghost { border-color: var(--navy); color: var(--navy); }
.landing[data-theme="fris"] .l-btn-ghost:hover { background: var(--navy); color: #fff; }
.landing[data-theme="fris"] .l-hero { color: var(--text); background: #FFFDF9; }
.landing[data-theme="fris"] .l-hero::before, .landing[data-theme="fris"] .l-hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 0; pointer-events: none; }
.landing[data-theme="fris"] .l-hero::before { width: 520px; height: 520px; background: #FFB070; top: -160px; right: -120px; }
.landing[data-theme="fris"] .l-hero::after { width: 460px; height: 460px; background: #9FE3E3; bottom: -220px; left: -160px; }
.landing[data-theme="fris"] .l-hero { position: relative; }
.landing[data-theme="fris"] .l-hero-grid { position: relative; z-index: 1; }
.landing[data-theme="fris"] .l-hero h1 { color: var(--navy); }
.landing[data-theme="fris"] .l-hero .l-lead { color: var(--muted); }
.landing[data-theme="fris"] .l-hero .l-kicker { color: var(--orange-600); }
.landing[data-theme="fris"] .l-hero-note, .landing[data-theme="fris"] .l-proof { color: var(--text); }
.landing[data-theme="fris"] .l-hero-note i, .landing[data-theme="fris"] .l-proof i { color: var(--teal); }
.landing[data-theme="fris"] .l-phone { box-shadow: 0 40px 80px -30px rgba(28, 75, 105, .45), 0 0 0 10px #1B2733, 0 0 0 12px #3B4A5A; }
.landing[data-theme="fris"] .l-num { background: var(--teal); box-shadow: 0 10px 20px -10px rgba(15, 163, 163, .9); }
.landing[data-theme="fris"] .l-promises { list-style: none; padding: 0; margin: -1rem 0 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; font-weight: 700; font-size: .95rem; color: var(--text); }
.l-promises li { display: flex; align-items: center; gap: .45rem; }
.l-promises i { color: var(--teal); font-size: 1.1rem; }
.l-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.l-price { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 1.75rem 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .35rem; }
.l-price h3 { margin: .75rem 0 0; font-size: 1.25rem; }
.l-price-amount { font-size: 2.4rem; font-weight: 900; letter-spacing: -.03em; color: var(--navy); line-height: 1.1; }
.l-price-sub { color: var(--muted); font-size: .9rem; margin-bottom: .75rem; }
.l-price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .95rem; }
.l-price li { display: flex; gap: .55rem; align-items: flex-start; }
.l-price li i { color: var(--teal); margin-top: .15em; flex-shrink: 0; }
.l-price li i.bi-camera, .l-price li i.bi-stars, .l-price li i.bi-people { color: var(--orange-600); }
.l-save { display: inline-block; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: .78rem; padding: .15rem .55rem; border-radius: 999px; margin-left: .25rem; }
.l-price-plus { border: 2px solid var(--orange); box-shadow: 0 24px 48px -24px rgba(249, 130, 47, .55); }
.l-price-plus .l-price-amount { color: var(--orange-600); }
.l-price-badge { position: absolute; top: -.8rem; right: 1.25rem; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: .3rem .7rem; border-radius: 999px; }
.l-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.l-extra { display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1rem 1.2rem; color: var(--text); box-shadow: var(--shadow); }
.l-extra i { font-size: 1.5rem; color: var(--orange-600); flex-shrink: 0; }
.l-extra strong { display: block; }
.l-extra span { font-size: .95rem; color: var(--muted); }
.pay-option { display: flex; gap: .75rem; align-items: flex-start; border: 1px solid var(--border); border-radius: 14px; padding: .75rem .9rem; cursor: pointer; background: var(--surface); }
.pay-option:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(28, 75, 105, .15); }
.pay-option-asked { background: var(--orange-soft); }
.voucher-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.7rem; font-weight: 800; letter-spacing: .08em; color: var(--navy); background: var(--orange-soft); border: 2px dashed var(--orange); border-radius: 14px; padding: .8rem 1rem; margin: 1rem 0; }
.l-price-note { text-align: center; font-size: .9rem; margin: 1.75rem auto 0; max-width: 720px; }
.l-final { background: linear-gradient(135deg, #F9822F 0%, #FFB070 45%, #F9A93A 100%); }
.landing[data-theme="fris"] .l-final .l-lead { color: #fff; }
.landing[data-theme="fris"] .l-final .l-btn-accent { background: var(--navy); box-shadow: 0 10px 24px -10px rgba(28, 75, 105, .8); }
.landing[data-theme="fris"] .l-final .l-btn-accent:hover { background: var(--navy-700); }
html:has(body.landing[data-theme="fris"]) { background: #FFFDF9; }

/* --- landing theme "energie": warm orange-to-pink-to-purple gradient --- */
.landing[data-theme="energie"] .l-header { background: rgba(60, 20, 70, .7); }
.landing[data-theme="energie"] .l-hero { background: radial-gradient(800px 500px at 90% 10%, rgba(255, 220, 120, .35), transparent 60%), linear-gradient(135deg, #F9822F 0%, #E5488D 55%, #6C5CE7 100%); }
.landing[data-theme="energie"] .l-hero .l-kicker { color: #FFE8CC; }
.landing[data-theme="energie"] .l-hero .l-accent { color: #FFE066; }
.landing[data-theme="energie"] .l-hero .l-lead, .landing[data-theme="energie"] .l-hero-note { color: rgba(255, 255, 255, .9); }
.landing[data-theme="energie"] .l-hero-note i, .landing[data-theme="energie"] .l-proof i { color: #FFE066; }
.landing[data-theme="energie"] .l-hero .l-btn-accent { background: #fff; color: #E5488D; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .35); }
.landing[data-theme="energie"] .l-hero .l-btn-accent:hover { background: #FFF3F8; color: #C9367A; }
.landing[data-theme="energie"] .l-phone { box-shadow: 0 40px 80px -30px rgba(80, 20, 90, .7), 0 0 0 10px #2A1330, 0 0 0 12px #5A3A63; }
.landing[data-theme="energie"] .l-kicker { color: #E5488D; }
.landing[data-theme="energie"] .l-num { background: linear-gradient(135deg, #E5488D, #6C5CE7); box-shadow: 0 10px 20px -10px rgba(229, 72, 141, .9); }
.landing[data-theme="energie"] .l-promises { list-style: none; padding: 0; margin: -1rem 0 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; font-weight: 700; font-size: .95rem; color: var(--text); }
.l-promises li { display: flex; align-items: center; gap: .45rem; }
.l-promises i { color: var(--teal); font-size: 1.1rem; }
.l-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.l-price { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 1.75rem 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .35rem; }
.l-price h3 { margin: .75rem 0 0; font-size: 1.25rem; }
.l-price-amount { font-size: 2.4rem; font-weight: 900; letter-spacing: -.03em; color: var(--navy); line-height: 1.1; }
.l-price-sub { color: var(--muted); font-size: .9rem; margin-bottom: .75rem; }
.l-price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .95rem; }
.l-price li { display: flex; gap: .55rem; align-items: flex-start; }
.l-price li i { color: var(--teal); margin-top: .15em; flex-shrink: 0; }
.l-price li i.bi-camera, .l-price li i.bi-stars, .l-price li i.bi-people { color: var(--orange-600); }
.l-save { display: inline-block; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: .78rem; padding: .15rem .55rem; border-radius: 999px; margin-left: .25rem; }
.l-price-plus { border: 2px solid var(--orange); box-shadow: 0 24px 48px -24px rgba(249, 130, 47, .55); }
.l-price-plus .l-price-amount { color: var(--orange-600); }
.l-price-badge { position: absolute; top: -.8rem; right: 1.25rem; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: .3rem .7rem; border-radius: 999px; }
.l-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.l-extra { display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1rem 1.2rem; color: var(--text); box-shadow: var(--shadow); }
.l-extra i { font-size: 1.5rem; color: var(--orange-600); flex-shrink: 0; }
.l-extra strong { display: block; }
.l-extra span { font-size: .95rem; color: var(--muted); }
.pay-option { display: flex; gap: .75rem; align-items: flex-start; border: 1px solid var(--border); border-radius: 14px; padding: .75rem .9rem; cursor: pointer; background: var(--surface); }
.pay-option:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(28, 75, 105, .15); }
.pay-option-asked { background: var(--orange-soft); }
.voucher-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.7rem; font-weight: 800; letter-spacing: .08em; color: var(--navy); background: var(--orange-soft); border: 2px dashed var(--orange); border-radius: 14px; padding: .8rem 1rem; margin: 1rem 0; }
.l-price-note { text-align: center; font-size: .9rem; margin: 1.75rem auto 0; max-width: 720px; }
.l-final { background: linear-gradient(135deg, #6C5CE7 0%, #E5488D 60%, #F9822F 100%); }
.landing[data-theme="energie"] .l-final .l-btn-accent { background: #fff; color: #E5488D; }
html:has(body.landing[data-theme="energie"]) { background: #6C5CE7; }

@media (max-width: 991.98px) {
  .l-hero-grid, .l-modes-wrap, .l-footer-inner, .l-prices, .l-extras { grid-template-columns: 1fr; }
  .l-hero { padding: 3rem 0; }
  .l-hero-visual { margin-top: 1rem; }
  .l-grid, .l-steps-list { grid-template-columns: 1fr 1fr; }
  .l-links { display: none; }
  .l-footer nav { justify-content: flex-start; }
}
@media (max-width: 575.98px) {
  .l-nav { gap: .5rem; }
  .l-nav .brand-text { font-size: 1.1rem; }
  .l-cta { gap: .35rem; }
  .l-cta .l-btn { padding: .45rem .75rem; font-size: .85rem; white-space: nowrap; }
  .l-grid, .l-steps-list, .l-modes { grid-template-columns: 1fr; }
  .l-modes { grid-template-columns: 1fr 1fr; }
  .l-phone { width: 280px; }
  .l-float { display: none; }
  .l-section { padding: 3rem 0; }
}
@media (prefers-reduced-motion: reduce) { .l-phone, .l-float, .l-caret { animation: none; } }

@keyframes pop { 0% { transform: scale(.94); } 50% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
