/* ============================================================
   Baanreserveren – Mobile-first stylesheet (Telegram WebApp)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --primary:         #2e7d52;
  --primary-hover:   #236040;
  --primary-light:   #e8f5ee;
  --primary-border:  #b2d8c2;

  --danger:          #d9534f;
  --danger-hover:    #b52b27;
  --danger-light:    #fdecea;

  --warning:         #e6a817;
  --warning-light:   #fff8e1;

  --success:         #3a9c5e;
  --success-light:   #e6f4ed;

  --gray-50:         #f7f9f8;
  --gray-100:        #eef2ef;
  --gray-200:        #dde6e0;
  --gray-400:        #9db8a6;
  --gray-600:        #5a7265;
  --gray-800:        #1e2e26;

  --bg:              #f2f5f3;
  --card-radius:     14px;
  --card-shadow:     0 1px 6px rgba(0,0,0,0.07);

  /* Bottom nav */
  --nav-height:      58px;
  --nav-bg:          #ffffff;

  /* Topbar */
  --topbar-height:   54px;

  --transition:      0.15s ease;
}

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: var(--gray-800);
  background: var(--bg);
  /* Reserve space for fixed bottom nav + safe area */
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom));
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* Disable tap highlight */
* { -webkit-tap-highlight-color: transparent; }

/* ── Topbar ────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  /* Telegram safe area top */
  padding-top: env(safe-area-inset-top);
}

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

.topbar-icon {
  font-size: 20px;
  line-height: 1;
}

.topbar-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -0.2px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Bottom navigation ─────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-top: 1px solid var(--gray-200);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  min-height: var(--nav-height);
  color: var(--gray-400);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

.bottom-nav a i {
  font-size: 22px;
  line-height: 1;
}

.bottom-nav a.active {
  color: var(--primary);
}

.bottom-nav a.active i {
  /* Filled icon feel via font-weight trick with Bootstrap Icons */
}

.bottom-nav a:active {
  opacity: 0.6;
}

.nav-badge {
  position: absolute;
  top: 6px;
  left: 50%;
  margin-left: 6px;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

/* ── Page content ──────────────────────────────────────────── */
.page-content {
  padding: 16px;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  margin-bottom: 12px;
}

.card-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 7px;
}

.card-body {
  padding: 16px;
}
.card-body.p-0 { padding: 0; }

/* ── Stat grid ─────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.stat-card {
  background: #fff;
  border-radius: var(--card-radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--card-shadow);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card .stat-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 6px;
}

.stat-card .stat-icon.green  { background: var(--primary-light); color: var(--primary); }
.stat-card .stat-icon.orange { background: var(--warning-light); color: var(--warning); }
.stat-card .stat-icon.red    { background: var(--danger-light);  color: var(--danger); }
.stat-card .stat-icon.blue   { background: #e3f2fd; color: #1976d2; }
.stat-card .stat-icon.purple { background: #f3e5f5; color: #7b1fa2; }

.stat-card .stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--gray-600);
  font-weight: 500;
  line-height: 1.3;
}

.stat-card .stat-change {
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
}
.stat-card .stat-change.up   { color: var(--success); }
.stat-card .stat-change.down { color: var(--danger); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), opacity var(--transition);
  white-space: nowrap;
  min-height: 44px; /* Touch target */
  font-family: inherit;
}

.btn:active { opacity: 0.75; }

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

.btn-danger    { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
}
.btn-outline:hover { background: var(--gray-100); }

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  padding: 8px 12px;
}
.btn-ghost:hover { background: var(--gray-100); }

.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
  min-height: 36px;
  border-radius: 8px;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 16px;
  min-height: 50px;
  border-radius: 12px;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 10px;
}

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success  { background: var(--success-light); color: var(--success); }
.badge-warning  { background: var(--warning-light); color: #996b00; }
.badge-danger   { background: var(--danger-light);  color: var(--danger); }
.badge-info     { background: #e3f2fd; color: #1565c0; }
.badge-neutral  { background: var(--gray-100); color: var(--gray-600); }

/* ── Reservation list items ────────────────────────────────── */
.res-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}
.res-item:last-child { border-bottom: none; }
.res-item:active     { background: var(--gray-50); }

.res-date-block {
  text-align: center;
  min-width: 46px;
  background: var(--primary-light);
  border-radius: 10px;
  padding: 6px 4px;
  flex-shrink: 0;
}

.res-date-block .day { font-size: 20px; font-weight: 700; color: var(--primary); line-height: 1; }
.res-date-block .mon { font-size: 10px; font-weight: 600; color: var(--primary); text-transform: uppercase; margin-top: 2px; }

.res-info { flex: 1; min-width: 0; }
.res-info .res-title  { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.res-info .res-meta   { font-size: 12.5px; color: var(--gray-600); margin-top: 4px; display: flex; flex-direction: column; gap: 3px; }
.res-info .res-meta-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Player avatars */
.res-players {
  display: flex;
  flex-direction: row;
}

.player-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  margin-left: -6px;
  flex-shrink: 0;
}

.player-avatar:first-child { margin-left: 0; }
.player-avatar.av-2 { background: #1976d2; }
.player-avatar.av-3 { background: #7b1fa2; }
.player-avatar.av-4 { background: #c62828; }
.player-avatar.av-5 { background: #ef6c00; }
.player-avatar.av-6 { background: #00796b; }

/* ── Player list items (spelers pagina) ────────────────────── */
.player-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.player-list-item:last-child { border-bottom: none; }

.player-list-item .big-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.player-list-item .player-name { font-weight: 600; font-size: 15px; }
.player-list-item .player-id   { font-size: 12px; color: var(--gray-600); margin-top: 2px; }

.player-list-item .player-actions { margin-left: auto; }

/* ── Wachtrij items ────────────────────────────────────────── */
.queue-item {
  background: #fff;
  border-radius: var(--card-radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 12px;
}

.queue-item-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.queue-date-col {
  text-align: center;
  background: var(--primary-light);
  border-radius: 10px;
  padding: 8px 12px;
  flex-shrink: 0;
}

.queue-date-col .q-day    { font-size: 24px; font-weight: 700; color: var(--primary); line-height: 1; }
.queue-date-col .q-mon    { font-size: 10px; font-weight: 600; color: var(--primary); text-transform: uppercase; }
.queue-date-col .q-weekday{ font-size: 10px; color: var(--gray-600); margin-top: 2px; }

.queue-info { flex: 1; min-width: 0; }
.queue-info .q-title  { font-weight: 700; font-size: 15px; }
.queue-info .q-meta   { font-size: 12.5px; color: var(--gray-600); margin-top: 4px; display: flex; flex-direction: column; gap: 3px; }
.queue-info .q-window { font-size: 12px; color: var(--gray-600); margin-top: 6px; display: flex; align-items: center; gap: 5px; }

.queue-item-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ── Forms & inputs ────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--gray-800);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  min-height: 46px;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,125,82,0.12);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a7265' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ── Step wizard (mobile) ──────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 0 4px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}

.step.completed::after { background: var(--primary); }

.step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.step.active    .step-num { background: var(--primary); color: #fff; }
.step.completed .step-num { background: var(--primary); color: #fff; }

.step-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  margin-top: 5px;
  text-align: center;
}
.step.active    .step-label { color: var(--primary); }
.step.completed .step-label { color: var(--primary); }

/* ── Account select cards ──────────────────────────────────── */
.account-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-card {
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  gap: 14px;
}
.account-card:active   { background: var(--primary-light); }
.account-card.selected { border-color: var(--primary); background: var(--primary-light); }

.account-card .acc-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-card .acc-info { flex: 1; }
.account-card .acc-name  { font-weight: 600; font-size: 15px; }
.account-card .acc-email { font-size: 12px; color: var(--gray-600); margin-top: 2px; }
.account-card .acc-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  color: transparent;
  flex-shrink: 0;
  font-size: 12px;
}
.account-card.selected .acc-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Duration selector ─────────────────────────────────────── */
.duration-selector {
  display: flex;
  gap: 10px;
}

.duration-option {
  flex: 1;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 14px 10px;
  cursor: pointer;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.duration-option:active  { background: var(--primary-light); }
.duration-option.selected { border-color: var(--primary); background: var(--primary-light); }
.duration-option .dur-label { font-weight: 800; font-size: 26px; color: var(--primary); line-height: 1; }
.duration-option .dur-spelers { font-size: 12px; color: var(--primary); font-weight: 600; }
.duration-option .dur-sub { font-size: 11px; color: var(--gray-600); }

/* ── Player toggle list ────────────────────────────────────── */
.player-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  user-select: none;
  min-height: 56px;
}
.player-toggle:active  { background: var(--primary-light); }
.player-toggle.selected { border-color: var(--primary); background: var(--primary-light); }
.player-toggle.disabled { opacity: 0.4; pointer-events: none; }

.player-toggle input[type="checkbox"] { display: none; }

.player-toggle .toggle-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.player-toggle .toggle-name  { font-weight: 500; font-size: 14.5px; flex: 1; }
.player-toggle .toggle-check { color: var(--gray-300); font-size: 18px; flex-shrink: 0; }
.player-toggle.selected .toggle-check { color: var(--primary); }

/* ── Confirm rows ──────────────────────────────────────────── */
.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--gray-100);
}
.confirm-row:last-child { border-bottom: none; }
.confirm-row .cr-label { font-size: 13px; color: var(--gray-600); flex-shrink: 0; }
.confirm-row .cr-value { font-weight: 600; font-size: 14px; text-align: right; }

/* ── Info boxes ────────────────────────────────────────────── */
.info-box {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}

.info-box i { flex-shrink: 0; margin-top: 2px; font-size: 15px; }
.info-box.info    { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }
.info-box.success { background: var(--success-light); color: var(--success); border: 1px solid var(--primary-border); }
.info-box.warning { background: var(--warning-light); color: #7a5200; border: 1px solid #ffe082; }
.info-box.danger  { background: var(--danger-light);  color: var(--danger); border: 1px solid #ffcdd2; }

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: flex-end; /* Bottom sheet op mobile */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(40px);
  transition: transform 0.25s ease;
  padding-bottom: env(safe-area-inset-bottom);
}

.modal-overlay.open .modal { transform: translateY(0); }

/* Handle bar */
.modal::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin: 10px auto 0;
}

.modal-header {
  padding: 14px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-100);
}
.modal-header h3 { font-size: 16px; font-weight: 700; }

.modal-close {
  background: var(--gray-100); border: none;
  font-size: 18px; cursor: pointer;
  color: var(--gray-600);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:active { opacity: 0.7; }

.modal-body   { padding: 16px 20px; }
.modal-footer { padding: 12px 20px 16px; display: flex; gap: 10px; flex-direction: column; }
.modal-footer .btn { width: 100%; }

/* ── Countdown ─────────────────────────────────────────────── */
.countdown {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--warning);
  background: var(--warning-light);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── Toast ─────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: calc(var(--topbar-height) + 8px);
  left: 12px; right: 12px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--gray-800);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  animation: toastIn 0.25s ease;
  pointer-events: all;
}

.toast.success { background: var(--primary); }
.toast.danger  { background: var(--danger); }

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

/* ── Progress bars ─────────────────────────────────────────── */
.progress-bar-wrap {
  background: var(--gray-100);
  border-radius: 6px;
  height: 7px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: 6px;
  background: var(--primary);
  transition: width 0.6s ease;
}
.progress-bar.danger { background: var(--danger); }

/* ── Status dot ────────────────────────────────────────────── */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.online  { background: #4caf50; box-shadow: 0 0 0 3px rgba(76,175,80,0.25); }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 0 3px rgba(217,83,79,0.25); }
.status-dot.warning { background: var(--warning); box-shadow: 0 0 0 3px rgba(230,168,23,0.25); }

/* ── Weather strip ─────────────────────────────────────────── */
.weather-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 12px;
}
.weather-strip .temp { font-size: 16px; font-weight: 700; }

/* ── Empty state ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--gray-600);
}
.empty-state i { font-size: 48px; opacity: 0.25; margin-bottom: 14px; display: block; }
.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--gray-800); }
.empty-state p  { font-size: 13.5px; margin-top: 6px; line-height: 1.5; }

/* ── Meer menu (list links) ────────────────────────────────── */
.meer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}
.meer-item:last-child { border-bottom: none; }
.meer-item:active { background: var(--gray-50); }

.meer-item .meer-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.meer-item .meer-label  { font-weight: 600; font-size: 15px; flex: 1; }
.meer-item .meer-arrow  { color: var(--gray-400); font-size: 16px; }

/* ── Section divider ───────────────────────────────────────── */
.section-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray-600);
  margin: 20px 0 8px;
}

/* ── Table (voor grotere schermen) ────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

thead th {
  background: var(--gray-50);
  color: var(--gray-600);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}

tbody tr { border-bottom: 1px solid var(--gray-100); }
tbody tr:last-child { border-bottom: none; }
tbody tr:active { background: var(--gray-50); }
tbody td { padding: 12px 14px; vertical-align: middle; }

/* ── Stat status row ───────────────────────────────────────── */
.status-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.status-row:last-child { border-bottom: none; }

.status-row .s-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.status-row .s-info { flex: 1; min-width: 0; }
.status-row .s-title { font-weight: 600; font-size: 14.5px; }
.status-row .s-sub   { font-size: 12px; color: var(--gray-600); margin-top: 2px; }

/* ── Utility ───────────────────────────────────────────────── */
.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8           { gap: 8px; }
.gap-10          { gap: 10px; }
.gap-12          { gap: 12px; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.text-sm     { font-size: 12.5px; }
.text-muted  { color: var(--gray-600); }
.text-green  { color: var(--primary); }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.w-full { width: 100%; }

/* ── Responsive: 2-col layout vanaf 520px ─────────────────── */
@media (min-width: 520px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .account-cards { flex-direction: row; }
  .account-card { flex-direction: column; text-align: center; flex: 1; }
  .account-card .acc-check { display: none; }
  .duration-selector .dur-label { font-size: 32px; }
  .modal { border-radius: 16px; max-width: 480px; margin: auto; }
  .modal-overlay { align-items: center; }
  .modal::before { display: none; }
}
