/* Privacy en veiligheid (/privacy-en-veiligheid/). Bouwt verder op base.css, style.css en features.css.
   Mockups volgen de schermen Privacylog, Team, Betalingen en de donateurpagina van het platform. */

/* ---------- Hero: het scherm Privacylog ---------- */
.pv-toolbar { flex-wrap: wrap; gap: 12px; padding-block: 12px; }
.pv-tabs { display: inline-flex; align-items: center; height: 40px; padding: 3px; border-radius: 999px; background: var(--subtle); max-width: 100%; overflow: hidden; flex: none; }
.pv-tabs span { display: inline-flex; align-items: center; gap: 7px; height: 100%; padding: 0 14px; border-radius: 999px; font-size: 13.5px; white-space: nowrap; color: color-mix(in srgb, var(--subtle-foreground) 80%, transparent); }
.pv-tabs span i { font-size: 15px; }
.pv-tabs span.on { background: var(--card); color: var(--foreground); box-shadow: var(--shadow-raised); }
.dark .pv-tabs span.on { background: rgb(255 255 255 / 0.14); }
.pv-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pv-filters .btn { font-weight: 400; }
.pv-caret { font-size: 11px !important; margin-left: 2px; color: var(--muted-foreground); }
.pv-date { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted-foreground); white-space: nowrap; }
.pv-input { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 12px; background: var(--subtle); color: var(--foreground); font-family: var(--font-mono); font-size: 12.5px; }

.pv-plog { border-radius: 20px; }
.pv-plog-row {
  display: grid; align-items: center; gap: 4px 16px;
  grid-template-columns: 8.6rem minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
  padding: 13px 22px; border-top: 1px solid var(--hairline); font-size: 13.5px;
}
.pv-plog-row > span { min-width: 0; }
.pv-plog-head { border-top: 0; color: var(--subtle-foreground); font-size: 13.5px; padding-block: 12px; }
.pv-who, .pv-donor { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-muted { color: var(--muted-foreground); }
.pv-why { overflow-wrap: anywhere; }

/* ---------- Kaartjes naast elkaar of onder elkaar ---------- */
.pv-pair { position: relative; width: min(440px, 100%); display: grid; gap: 14px; }
.pv-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 14px; border-bottom: 1px solid var(--hairline); }

/* Kaart Gegevens van een donateur */
.pv-data { position: relative; width: 100%; background: var(--card); }
.pv-dl { margin: 0; }
.pv-dl > div { display: flex; align-items: flex-start; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--hairline); font-size: 13.5px; }
.pv-dl > div:first-child { border-top: 0; }
.pv-dl dt { display: flex; align-items: center; gap: 10px; color: var(--muted-foreground); flex: none; }
.pv-dl dt i { font-size: 18px; }
.pv-dl dd { margin: 0; min-width: 0; flex: 1; display: grid; justify-items: end; text-align: right; gap: 2px; }
.pv-rrn-row { flex-wrap: wrap; }
/* Het nummer staat onder het label: zo verspringt niets als Kopieer en Verberg verschijnen */
.pv-rrn-row { row-gap: 8px; }
.pv-rrn-row dd { gap: 6px; flex-basis: 100%; justify-items: start; text-align: left; padding-left: 28px; }
.pv-rrn-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-height: 24px; }
.pv-rrn-line .pv-rrn { margin-right: 4px; }
.pv-rrn { font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
.pv-rrn.is-shown { color: var(--foreground); user-select: all; }
.pv-mini { height: 28px; padding: 0 8px; margin-block: -4px; font-size: 13px; gap: 5px; color: var(--muted-foreground); font-weight: 400; }
.pv-mini:hover { color: var(--foreground); }
.pv-mini i { font-size: 15px; }
.pv-mini[hidden] { display: none; }
.pv-note { font-size: 12px; color: var(--muted-foreground); }
.pv-last { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 2px; }
.pv-note[hidden] { display: none; }
.pv-nw { white-space: nowrap; }

/* Venster: waarom bekijk je het nummer? (Dialog in het platform) */
.pv-overlay { position: absolute; inset: -10px; z-index: 2; display: grid; place-items: center; padding: 10px; background: rgb(0 0 0 / 0.1); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); border-radius: 30px; }
.dark .pv-overlay { background: rgb(0 0 0 / 0.4); }
.pv-overlay[hidden] { display: none; }
.pv-dialog { width: 100%; max-width: 380px; background: var(--popover); border-radius: 24px; box-shadow: var(--shadow-float); padding: 22px; display: grid; gap: 14px; text-align: left; animation: pv-pop 260ms var(--ease-out-expo); }
@keyframes pv-pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
.pv-dialog-title { font-size: 16px; letter-spacing: -0.01em; }
.pv-dialog-desc { font-size: 13.5px; line-height: 1.5; color: var(--muted-foreground); }
.pv-reasons { display: grid; gap: 6px; }
.pv-reasons label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--subtle); font-size: 13.5px; cursor: pointer; transition: background-color 200ms var(--ease-hover); }
.pv-reasons label:has(input:checked) { background: color-mix(in srgb, var(--subtle), var(--foreground) 6%); }
.pv-reasons label:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 40%, transparent); }
/* Focus zoals in het platform: een zachte ring van 3 px, geen zwarte rand */
.pv-pair-rrn .btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--ring) 40%, transparent); outline-offset: 0; }
.pv-reasons input:focus-visible { outline: none; }
.pv-reasons input { width: 17px; height: 17px; margin: 0; accent-color: var(--primary); flex: none; }
.pv-other { width: 100%; resize: none; border: 1px solid transparent; border-radius: 12px; background: var(--subtle); color: var(--foreground); font: 13.5px/1.4 var(--font-sans); padding: 9px 12px; }
.pv-other:focus { outline: none; background: var(--card); border-color: var(--input); box-shadow: 0 0 0 4px color-mix(in srgb, var(--foreground) 6%, transparent); }
.pv-other[hidden] { display: none; }
.pv-error { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--red-ink); }
.pv-error i { font-size: 18px; flex: none; }
.pv-error[hidden] { display: none; }
.pv-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

/* Kleine privacylog onder de kaart */
.pv-minilog { width: 100%; }
.pv-mini-rows { list-style: none; margin: 0; padding: 0; }
.pv-mini-rows li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 4px 14px; padding: 11px 20px; border-top: 1px solid var(--hairline); font-size: 13px; }
.pv-mini-rows li:first-child { border-top: 0; }
.pv-mini-main { display: grid; gap: 1px; min-width: 0; }
.pv-mini-main b { font-weight: 400; }
.pv-mini-main span { color: var(--muted-foreground); overflow-wrap: anywhere; }
.pv-mini-rows li.is-new { animation: pv-in 600ms var(--ease-out-expo); background: color-mix(in srgb, var(--green) 7%, transparent); transition: background-color 1600ms var(--ease-hover); }
.pv-mini-rows li.is-new.is-settled { background: transparent; }
@keyframes pv-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Extra code ---------- */
.split-vis > .pv-unlock { width: min(400px, 100%); background: var(--popover); border-radius: 24px; }
.pv-unlock .m-pad { display: grid; gap: 12px; padding: 24px; }
.pv-unlock-title { display: flex; align-items: center; gap: 8px; font-size: 16px; letter-spacing: -0.01em; }
.pv-unlock-title i { font-size: 20px; }
.pv-label { margin-top: 4px; font-size: 13.5px; font-weight: 500; }
.pv-code-input { height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--card); border: 1px solid var(--input); box-shadow: 0 0 0 4px color-mix(in srgb, var(--foreground) 6%, transparent); font-family: var(--font-mono); font-size: 20px; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }

/* ---------- Breed blok: wie ziet wat ---------- */
.pv-wide.wide-inverse .wide-text p b { color: #f2f2f2; }
.pv-matrix { border-radius: 20px; }
.pv-matrix table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14.5px; }
.pv-matrix th, .pv-matrix td { padding: 13px 22px; border-top: 1px solid var(--hairline); text-align: center; }
.pv-matrix thead th { border-top: 0; padding-block: 16px; }
.pv-matrix tbody th { text-align: left; font-weight: 400; }
.pv-matrix thead th:first-child, .pv-matrix tbody th { width: 46%; }
.pv-yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 99px; font-size: 12px; background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green-ink); }
.pv-no { display: inline-grid; place-items: center; width: 24px; height: 24px; font-size: 13px; color: color-mix(in srgb, var(--muted-foreground) 60%, transparent); }
.pv-income td { font-size: 13px; color: var(--muted-foreground); white-space: nowrap; }
.pv-income th, .pv-income td { background: var(--surface); }
.pv-rolecards { display: none; }

/* ---------- Team ---------- */
.pv-pair-team { width: min(460px, 100%); }
.pv-team { width: 100%; }
.pv-team-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--hairline); }
.pv-team-row:first-child { border-top: 0; }
.pv-team-who { min-width: 0; }
.pv-team-who .m-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-team-who .m-name > span:first-child { min-width: 0; }
.pv-team-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.pv-inv { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber-ink); font-size: 18px; }
.pv-switch-card { width: min(360px, 92%); justify-self: end; }
.pv-switch-card .m-pad { padding: 20px; }
.pv-switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pv-switch-row > span:first-child { display: grid; gap: 4px; min-width: 0; }
.pv-switch-row b { font-weight: 500; font-size: 14.5px; }
.pv-switch-row .m-sub { font-size: 13px; line-height: 1.45; }
/* Switch van het platform: 32 x 18,4 px, duim van 16 px */
.pv-switch { flex: none; margin-top: 3px; width: 32px; height: 18.4px; border-radius: 99px; background: var(--input); position: relative; }
.pv-switch::after { content: ""; position: absolute; top: 1.2px; left: 1px; width: 16px; height: 16px; border-radius: 99px; background: var(--card); box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); }
.dark .pv-switch { background: rgb(255 255 255 / 0.16); }
.dark .pv-switch::after { background: #f2f2f2; }

/* ---------- Mail bij een nieuw toestel ---------- */
.split-vis > .pv-mail { width: min(420px, 100%); }
.pv-mail .m-pad { padding: 24px; }
.pv-mail-from { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.pv-mail-kicker { margin-top: 18px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }
.pv-mail-h { margin-top: 4px; font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; }
.pv-mail-p { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--subtle-foreground); }
.pv-mail-table { margin-top: 14px; border-radius: 12px; background: var(--subtle); padding: 4px 14px; }
.pv-mail-table div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; border-top: 1px solid var(--hairline); }
.pv-mail-table div:first-child { border-top: 0; }
.pv-mail-table div > span:first-child { color: var(--muted-foreground); }
.pv-mail-table div > span:last-child { text-align: right; }
.pv-mail-btn { margin-top: 14px; }

/* ---------- Bewaartermijn: log van één donateur ---------- */
.pv-wiped { width: 100%; }
.pv-chip { height: 30px; font-size: 12.5px; padding: 0 10px 0 12px; font-weight: 400; gap: 6px; }
.pv-chip i { font-size: 11px !important; }
.pv-wiped-row { display: grid; gap: 2px; padding: 13px 20px; border-top: 1px solid var(--hairline); font-size: 13.5px; }
.pv-wiped-row:nth-child(2) { border-top: 0; }
.pv-wiped-row b { font-weight: 400; margin-top: 2px; }
.pv-absent { width: min(340px, 88%); justify-self: end; }

/* ---------- Mollie (Section uit Betalingen: kop met hairline, dan de inhoud) ---------- */
.split-vis > .pv-mollie { width: min(484px, 100%); }
.pv-mollie-head { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--hairline); }
.pv-tile { width: 36px; height: 36px; border-radius: 11px; font-size: 20px; background: var(--subtle); color: var(--subtle-foreground); }
.pv-mollie-title { min-width: 0; flex: 1; }
.pv-mollie-name { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 24px; }
.pv-mollie-title .m-sub { margin-top: 4px; font-size: 12.5px; line-height: 1.45; }
.pv-mollie-body { display: grid; gap: 14px; padding: 20px; }
.pv-mollie-rows { margin: 0; border-radius: 14px; box-shadow: 0 0 0 1px var(--hairline); overflow: hidden; }
.pv-mollie-rows > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; padding: 9px 14px; font-size: 13.5px; border-top: 1px solid var(--hairline); }
.pv-mollie-rows > div:first-child { border-top: 0; }
.pv-mollie-rows dt { color: var(--subtle-foreground); }
.pv-mollie-rows dd { margin: 0; font-weight: 500; text-align: right; }
.pv-notice { display: flex; gap: 9px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; font-size: 13px; line-height: 1.45; background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green-ink); }
.pv-notice i { font-size: 17px; flex: none; margin-top: 1px; }
.pv-mollie-btns { display: flex; flex-wrap: wrap; gap: 2px; }
.pv-mollie-btns .btn-ghost { padding-inline: 10px; }
/* Te smal voor drie knoppen op een rij: de twee stille knoppen blijven samen */
.pv-mollie-ghosts { display: flex; flex-wrap: wrap; gap: 2px; }

/* ---------- CTA ---------- */
.cta-vis .pv-cta-card { width: min(360px, 100%); }
.pv-cta-card .pv-team-row { padding: 13px 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pv-plog-row { grid-template-columns: 8.6rem minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.1fr); }
  .pv-via { display: none; }
  .pv-plog-head > :nth-child(5) { display: none; }
}
@media (max-width: 860px) {
  .pv-toolbar { padding-inline: 16px; }
  .pv-tabs { overflow-x: auto; scrollbar-width: none; }
  .pv-tabs::-webkit-scrollbar { display: none; }
  .pv-filters .pv-date { display: none; }
  .pv-plog-head { display: none; }
  .pv-plog-row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; gap: 2px 12px; }
  .pv-plog-row > span:nth-child(1) { grid-column: 2; grid-row: 1; }
  .pv-plog-row > span:nth-child(4) { grid-column: 1; grid-row: 1; }
  .pv-plog-row > .pv-who, .pv-plog-row > .pv-donor { grid-column: 1 / -1; font-size: 13px; color: var(--muted-foreground); }
  .pv-plog-row > .pv-why { grid-column: 1 / -1; font-size: 13px; }
  .pv-plog-row > .pv-why:empty { display: none; }
  .pv-matrix th, .pv-matrix td { padding-inline: 12px; }
  .pv-matrix table { font-size: 14px; }
  .pv-matrix thead th:first-child, .pv-matrix tbody th { width: 40%; padding-left: 20px; }
}
@media (max-width: 640px) {
  .pv-matrix { display: none; }
  .pv-rolecards { display: grid; gap: 12px; }
  .pv-rolecard { padding: 20px; }
  .pv-rolecard p { margin-top: 10px; font-size: 13.5px; color: var(--muted-foreground); }
  .pv-rolecard ul { margin-top: 12px; display: grid; gap: 7px; }
  .pv-rolecard li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 20px; }
  .pv-rolecard li.off { color: var(--muted-foreground); }
  .pv-rolecard .pv-yes, .pv-rolecard .pv-no { width: 22px; height: 22px; flex: none; margin-top: -1px; }
  .pv-dl > div { padding-inline: 16px; }
  .pv-rrn-row dd { padding-left: 0; }
  .pv-card-head, .pv-mini-rows li, .pv-wiped-row { padding-inline: 16px; }
  .pv-mini-rows li { grid-template-columns: minmax(0, 1fr); }
  .pv-team-row { padding-inline: 14px; gap: 10px; }
  .pv-team-row .m-avatar { width: 34px; height: 34px; }
  .pv-hide-sm { display: none; }
  .pv-mail .m-pad, .pv-unlock .m-pad { padding: 18px; }
  .pv-mollie-head { padding: 16px; gap: 12px; }
  .pv-mollie-body { padding: 16px; }
  .pv-dialog-actions .btn, .pv-mollie-btns .btn { padding-inline: 11px; }
  .pv-dialog { padding: 16px; }
}
@media (max-width: 360px) {
  .pv-team-row { grid-template-columns: auto minmax(0, 1fr); }
  .pv-team-tags { grid-column: 2; justify-content: flex-start; }
  .pv-mail-table div { flex-direction: column; gap: 0; }
  .pv-mail-table div > span:last-child { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-dialog, .pv-mini-rows li.is-new { animation: none; }
}
