/* ============================================================
   goud999safe — pagina-CSS: Beheer profiel + account bewerken
   Afgesplitst uit de oude pagina-CSS (fase 2). Alleen deze pagina('s).
   ============================================================ */

  .bp-head-meta { margin-left: auto; font-size: var(--fs-12); color: var(--text-soft); font-weight: 500; text-align: right; }
  .bp-head-meta strong { display: block; color: var(--forest); font-weight: 700; font-size: var(--fs-14); font-variant-numeric: tabular-nums; }
  /* Compacte header met avatar naast de naam (gebruiker bewerken). */
  .bp-head-compact .bp-head-title { flex-direction: row; align-items: center; gap: 13px; }
  .bp-head-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%); color: var(--gold-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: none; }
  .bp-head-avatar svg { width: 22px; height: 22px; }
  /* Account-avatar: zelfde huisstijl (forest gradient + goud) als gebruiker bewerken. */
  .bp-head-compact .bp-head-text { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .bp-head-compact .bp-head-text .card-title { line-height: 1.15; }
  .bp-head-compact .bp-head-text .bp-head-sub { margin-top: 1px; }
  .bp-head-name-sub { color: var(--text-muted); font-weight: 500; font-size: var(--fs-14); }
  .bp-head-role { margin-top: 6px; }
  .bp-head-compact .bp-head-meta strong { display: inline; margin-left: 5px; font-size: var(--fs-13); }

  /* Lock-notice */
  .bp-locknotice { display: flex; align-items: center; gap: 10px; background: var(--cream); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 28px; font-size: var(--fs-13); line-height: 1.5; color: var(--ink); }
  .bp-locknotice > svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold); }
  .bp-inline-lock { width: 11px; height: 11px; color: var(--gold); vertical-align: -1px; display: inline-block; }

  /* Form-secties */
  .bp-section { padding-top: 8px; }
  .bp-section + .bp-section { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--grey-line); }
  .bp-section + .bp-section.bp-section--no-divider { border-top: 0; padding-top: 0; }
  .bp-section-title { font-size: var(--fs-11); font-weight: 700; color: var(--forest); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 6px; }
  .bp-section-desc { font-size: var(--fs-13); color: var(--text-soft); line-height: 1.55; margin-bottom: 20px; }

  /* Grids + velden */
  .bp-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; margin-bottom: 18px; }
  .bp-row:last-child { margin-bottom: 0; }
  .bp-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
  /* Slot-icoon met hover-tooltip (info over beveiligde velden). */
  .bp-lock { position: relative; display: inline-flex; width: 12px; height: 12px; color: var(--gold); cursor: help; }
  .bp-lock svg { width: 12px; height: 12px; }
  .bp-lock::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 230px; background: var(--ink); color: #fff; font-size: var(--fs-12); font-weight: 500; line-height: 1.4; text-align: left; white-space: normal; padding: 8px 11px; border-radius: var(--r-md); box-shadow: var(--shadow-float); opacity: 0; visibility: hidden; transition: opacity var(--t-fast); z-index: 60; pointer-events: none; }
  .bp-lock::before { content: ''; position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); opacity: 0; visibility: hidden; transition: opacity var(--t-fast); }
  .bp-lock:hover::after, .bp-lock:hover::before, .bp-lock:focus-visible::after, .bp-lock:focus-visible::before { opacity: 1; visibility: visible; }
  .bp-phone { display: flex; gap: 8px; }
  .bp-phone .bp-select { width: 120px; flex-shrink: 0; }
  .bp-phone .bp-input { flex: 1; }

  /* Sectie-acties */
  .bp-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
  .bp-actions-note { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); color: var(--text-soft); }
  .bp-actions-note svg { width: 12px; height: 12px; color: var(--gold); flex-shrink: 0; }
  .bp-actions-note--muted { color: var(--text-muted); }
  .bp-actions--end { justify-content: flex-end; }
  .bp-actions-btns { display: flex; gap: 10px; align-items: center; }

  /* Identificatiedocumenten */
  .bp-id-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--status-ok-bg); border-radius: var(--r-sm); margin-bottom: 20px; font-size: var(--fs-13); color: var(--status-ok); font-weight: 600; }
  .bp-id-status > svg { width: 16px; height: 16px; flex-shrink: 0; }
  /* Desktop: titel + datum op één regel (datum rechts). Mobiel: datum eronder. */
  .bp-id-status-text { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
  .bp-id-expiry { margin-left: auto; font-weight: 500; color: var(--text-soft); font-size: var(--fs-12); }
  .bp-id-grid { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
  .bp-id-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--grey-line); border-radius: var(--r-sm); background: var(--paper); min-width: 240px; flex: 1; }
  .bp-id-icon { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--grey-soft); display: flex; align-items: center; justify-content: center; color: var(--text-muted); flex-shrink: 0; }
  .bp-id-icon svg { width: 20px; height: 20px; }
  .bp-id-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
  /* Download-knop (origineel openen) rechts in de gevalideerde ID-kaart. */
  .bp-id-download { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--grey-line); border-radius: var(--r-sm); color: var(--forest); background: var(--paper); transition: background var(--t-fast), border-color var(--t-fast); }
  .bp-id-download svg { width: 17px; height: 17px; }
  .bp-id-download:hover { background: var(--forest-tint); border-color: rgba(22,46,37,0.3); }
  .bp-id-label { font-size: var(--fs-13); font-weight: 600; color: var(--ink); }
  .bp-id-meta { font-size: var(--fs-12); color: var(--text-muted); }
  .bp-id-tag { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-11); font-weight: 700; margin-top: 2px; }
  .bp-id-tag svg { width: 12px; height: 12px; }
  .bp-id-tag.ok { color: var(--status-ok); }
  .bp-id-tag.pending { color: #b8742c; }

  /* Veiligheid-panels */
  .bp-security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
  .bp-sec-panel { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; border: 1px solid var(--grey-line); border-radius: var(--r-md); background: var(--paper); }
  .bp-sec-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--forest); flex-shrink: 0; }
  .bp-sec-icon svg { width: 30px; height: 30px; }
  /* itsme-logo als afbeelding i.p.v. icoon: eigen merkkleur, geen tint-achtergrond. */
  .bp-sec-icon--img { background: none; padding: 0; overflow: hidden; }
  .bp-sec-icon--img img { width: 44px; height: 44px; border-radius: var(--r-lg); display: block; }
  .bp-sec-title { font-size: var(--fs-16); font-weight: 700; color: var(--ink); line-height: 1.2; }
  .bp-sec-desc { font-size: var(--fs-13); color: var(--text-soft); line-height: 1.55; flex: 1; }
  .bp-sec-panel .btn-on-white--ghost { align-self: stretch; width: 100%; justify-content: center; }

  /* Verwijder-zone */
  .bp-delete { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--grey-line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .bp-delete-label { font-size: var(--fs-13); color: var(--text-soft); line-height: 1.5; }
  .bp-delete-warn { color: var(--status-error); font-size: var(--fs-12); }
  /* Subtiele verwijder-link (i.p.v. opvallende knop). */
  .bp-delete-link { display: inline-flex; align-items: center; gap: 7px; color: var(--status-error); font-size: var(--fs-13); font-weight: 600; }
  .bp-delete-link svg { width: 14px; height: 14px; }
  .bp-delete-link:hover { text-decoration: underline; }

  @media (max-width: 1100px) { .bp-security-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 768px) {
    .bp-row, .bp-row.cols-3 { grid-template-columns: 1fr; }
    .bp-group.span-2 { grid-column: span 1; }
    .bp-security-grid { grid-template-columns: 1fr; }
    .bp-head-meta { margin-left: 0; text-align: left; }
    /* Profielnummer op mobiel op 2 regels: label boven, waarde eronder. */
    .bp-head-compact .bp-head-meta strong { display: block; margin-left: 0; }
    /* Velden op mobiel even hoog/leesbaar als koop/verkoop. */
    .bp-input, .bp-select { font-size: 16px; }
    /* iOS rendert <input type="date"> standaard hoger/breder — normaliseren
       zodat het exact als de andere velden oogt. */
    .bp-input[type="date"] { -webkit-appearance: none; appearance: none; min-height: 0; }
    /* ID-status: geldigheidsdatum onder de "gevalideerd"-tekst (enkel mobiel). */
    .bp-id-status-text { flex-direction: column; align-items: flex-start; gap: 2px; }
    .bp-id-expiry { margin-left: 0; }
    .bp-actions-btns { width: 100%; }
    .bp-actions-btns .btn-on-white--solid, .bp-actions-btns .btn-on-white--ghost { flex: 1; justify-content: center; }
  }
.ba-bank-action { justify-content: flex-end; }
.ba-bank-action .btn-on-white--ghost { align-self: flex-start; }
.ba-display-action { margin-top: 12px; }
.ba-display-action .btn-on-white--ghost { align-self: flex-start; }

/* Subhead + helptekst binnen card-body */
.ba-subhead { font-size: var(--fs-14); font-weight: 700; color: var(--forest); margin: 26px 0 12px; }
.ba-subhead--spaced { margin-top: 36px; }
.ba-help { font-size: var(--fs-12); color: var(--text-muted); line-height: 1.45; margin: -4px 0 14px; }

/* Sorteerbare metaal-lijst (drag & drop) */
.ba-sortable { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.ba-sort-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--grey-line); border-radius: var(--r-sm); cursor: grab; transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); user-select: none; }
.ba-sort-item:hover { border-color: var(--forest); box-shadow: none; transform: translateX(2px); }
.ba-sort-item:active, .ba-sort-item.dragging { cursor: grabbing; box-shadow: none; background: var(--cream); }
.ba-grip { color: var(--text-muted); flex-shrink: 0; display: flex; }
.ba-grip svg { width: 16px; height: 16px; }
.ba-metal-dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 -1px 2px rgba(0,0,0,0.15); flex-shrink: 0; }
.ba-metal-dot.goud { background: #f9da47; }
.ba-metal-dot.zilver { background: #d5d5d5; }
.ba-metal-dot.platina { background: #4d58f0; }
.ba-metal-dot.palladium { background: #6cc0f2; }
.ba-metal-name { font-size: var(--fs-14); font-weight: 600; color: var(--ink); flex: 1; }

/* Gebruikerstabel */
.ba-users-wrap { overflow-x: auto; }
.ba-users { width: 100%; border-collapse: collapse; }
.ba-users thead th { text-align: left; padding: 10px 14px; font-size: var(--fs-11); font-weight: 700; color: var(--forest); letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--grey-line); background: var(--grey-soft); white-space: nowrap; }
.ba-users tbody td { padding: 14px; font-size: var(--fs-14); color: var(--ink); border-bottom: 1px solid var(--grey-line); }
.ba-users thead th:nth-child(3), .ba-users thead th:nth-child(4),
.ba-users tbody td:nth-child(3), .ba-users tbody td:nth-child(4) { text-align: right; }
.ba-role { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill); font-size: var(--fs-11); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.ba-role.eigenaar { background: var(--gold-light); color: var(--forest-deep); }
.ba-role.handelend { background: rgba(22,46,37,0.12); color: var(--forest); }
.ba-role.raadplegend { background: var(--grey-soft); color: var(--text-soft); }

@media (max-width: 768px) {
  .ba-bank-action { justify-content: flex-start; }
  .ba-display-action .btn-on-white--ghost { align-self: stretch; width: 100%; justify-content: center; }
  .ba-valprefix { font-size: var(--fs-14); padding: 10px 12px; }
  .ba-valdigit { width: 44px; height: 44px; font-size: 16px; }
  .ba-users thead th, .ba-users tbody td { padding: 10px 10px; font-size: var(--fs-13); }
}
