/* =========================================================================
   Bonnetje - visuele opzet
   Eén tokenset bovenaan, daaronder de componenten. Kleuren volgen de
   huisstijl (teal + geel), maar met meer rust, ruimte en contrast.
   ========================================================================= */

:root {
  --teal-900: #01302e;
  --teal-800: #024a47;
  --teal-700: #00817c;
  --teal-600: #00958f;
  --teal-500: #00a69f;
  --teal-100: #ddf1ef;
  --teal-50: #f2faf9;

  --font-brand: "Baloo 2", var(--font);

  --amber-600: #e0ac00;
  --amber-500: #fdc300;
  --amber-400: #ffd54a;

  --ink-900: #14201f;
  --ink-700: #33413f;
  --ink-500: #5d6b69;
  --ink-400: #869593;
  --ink-200: #d8e0de;
  --ink-100: #e9eeed;
  --ink-50: #f4f7f6;

  --danger: #c0392b;
  --danger-bg: #fdecea;
  --success: #0f7a4f;

  --surface: #ffffff;
  --canvas: #eef2f1;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(20, 32, 31, 0.06), 0 1px 3px rgba(20, 32, 31, 0.04);
  --shadow-md: 0 4px 6px -2px rgba(20, 32, 31, 0.06), 0 12px 24px -8px rgba(20, 32, 31, 0.12);
  --shadow-lg: 0 18px 48px -12px rgba(1, 48, 46, 0.28);

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
}

/* Wordmark-lettertype uit de huisstijl. Zelf gehost (geen Google Fonts),
   zodat de Content-Security-Policy streng ("alles komt van de app zelf")
   kan blijven staan. */
@font-face {
  font-family: "Baloo 2";
  src: url("bonnetje-logos/Baloo2-Bold.ttf") format("truetype");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* Geen grijze vlek bij een tik op iOS/Android; :active-stijlen doen dat werk al. */
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-900);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button,
a {
  /* Scheelt de ~300ms tikvertraging en voorkomt dubbeltik-zoom op mobiel. */
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

/* ========================================================== inlogscherm == */

.login {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--space-5);
  background:
    radial-gradient(120% 80% at 50% 0%, var(--teal-500) 0%, transparent 55%),
    linear-gradient(165deg, var(--teal-700) 0%, var(--teal-900) 100%);
}

.login__inner {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.login__logo {
  display: block;
  width: 176px;
  max-width: 60vw;
  height: auto;
  margin: 0 auto var(--space-4);
  filter: drop-shadow(0 14px 28px rgba(1, 48, 46, 0.35));
}

.login__subtitle {
  margin: var(--space-1) 0 var(--space-6);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.login__card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.login__label {
  display: block;
  margin-bottom: var(--space-3);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
  text-align: center;
}

.pin-field {
  position: relative;
}

.pin-input {
  width: 100%;
  padding: 15px var(--space-4);
  border: 2px solid var(--ink-100);
  border-radius: var(--radius);
  background: var(--ink-50);
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 10px;
  text-indent: 10px;
  color: var(--teal-700);
  transition: border-color 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.pin-input::placeholder {
  color: var(--ink-200);
  letter-spacing: 8px;
}

.pin-input:focus {
  outline: none;
  border-color: var(--teal-600);
  background: var(--surface);
}

.pin-input[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.login__submit {
  margin-top: var(--space-4);
}

.login__footnote {
  margin: var(--space-5) 0 0;
  font-size: 12px;
  color: var(--ink-400);
  text-align: center;
}

/* ================================================================ app === */

.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Geen logo/titel meer hier - puur een gekleurde strook zodat de statusbalk
   (notch/dynamic island) niet ineens wit oogt. Zo min mogelijk hoogte, zodat
   het formulier eronder maximale ruimte krijgt. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: env(safe-area-inset-top);
  background: var(--teal-700);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  /* 76px = hoogte tabbalk, 70px = hoogte verstuurbalk (alleen op Nieuw
     zichtbaar, maar de ruimte reserveren we overal - simpeler en geen
     rommel achterin het formulier). */
  padding: var(--space-4) var(--space-4) calc(var(--space-7) + 76px + 70px + env(safe-area-inset-bottom));
}

/* --------------------------------------------------------------- views -- */

.view {
  animation: view-in 0.18s ease;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------ tabbalk -- */

.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 25;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border-top: 1px solid var(--ink-100);
  box-shadow: 0 -6px 16px -10px rgba(20, 32, 31, 0.18);
}

.cta-bar__total {
  flex: 1;
  min-width: 0;
}

.cta-bar__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink-400);
}

.cta-bar__value {
  display: block;
  font-size: 19px;
  font-weight: 800;
  color: var(--teal-700);
  font-variant-numeric: tabular-nums;
}

.cta-bar .btn--send {
  width: auto;
  padding: 13px 20px;
  white-space: nowrap;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--ink-100);
  box-shadow: 0 -2px 12px rgba(20, 32, 31, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}

.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 2px;
  padding: 7px 4px 6px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink-400);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.tabbar__item svg {
  transition: transform 0.15s ease;
}

.tabbar__item.is-active {
  color: var(--teal-700);
  background: var(--teal-50);
}

/* @media (hover: hover) = alleen bij een echte muis. Zonder deze guard
   blijft een hover-stijl op een touchscreen "hangen" na een tik, tot de
   gebruiker ergens anders tikt - dat oogt als een vastzittende knop. */
@media (hover: hover) {
  .tabbar__item:hover:not(.is-active) {
    color: var(--teal-700);
    background: var(--ink-50);
  }

  .regel__toggle:hover .regel__chevron {
    color: var(--teal-600);
  }
}

/* ------------------------------------------------------ koppelingskaart -- */

.connect {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.connect__lead {
  margin: 0 0 var(--space-3);
  font-size: 14px;
  color: var(--ink-500);
}

.connect.is-linked {
  border-color: var(--teal-100);
  background: var(--teal-50);
}

.connect__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.connect__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-600);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.connect__who {
  flex: 1;
  min-width: 0;
}

.connect__name {
  font-weight: 650;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connect__mail {
  font-size: 12.5px;
  color: var(--ink-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: var(--teal-600);
  color: #fff;
  flex-shrink: 0;
}

/* --------------------------------------------------------------- kaart -- */

.card {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--ink-100);
  background: linear-gradient(var(--ink-50), var(--surface));
}

.card__title {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal-700);
}

.card__hint {
  font-size: 11.5px;
  color: var(--ink-400);
}

.card__body {
  padding: var(--space-4);
}

/* ------------------------------------------------------------ velden --- */

.field {
  margin-bottom: var(--space-4);
}

.field:last-child {
  margin-bottom: 0;
}

.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}

.field__optional {
  font-weight: 400;
  color: var(--ink-400);
}

.control {
  width: 100%;
  padding: 11px var(--space-3);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.control:hover {
  border-color: var(--ink-400);
}

.control:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px var(--teal-100);
}

.control[aria-invalid="true"] {
  border-color: var(--danger);
}

select.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 fill='%235d6b69' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field__error {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--danger);
  min-height: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

@media (max-width: 380px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------- bedrag ---- */

.amount {
  position: relative;
}

.amount__symbol {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink-400);
  pointer-events: none;
}

.amount__input {
  padding: 14px 16px 14px 44px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--teal-700);
  text-align: left;
}

.amount__input::placeholder {
  color: var(--ink-200);
  font-weight: 600;
}

/* ------------------------------------------------------------ upload --- */

.dropzone {
  position: relative;
  display: block;
  width: 100%;
  padding: var(--space-5) var(--space-4);
  border: 2px dashed var(--ink-200);
  border-radius: var(--radius);
  background: var(--ink-50);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--teal-600);
  background: var(--teal-50);
}

.dropzone__icon {
  display: block;
  margin: 0 auto var(--space-2);
  color: var(--teal-600);
}

.dropzone__text {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
}

.dropzone__hint {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-400);
}

.preview {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1.5px solid var(--teal-100);
  border-radius: var(--radius);
  background: var(--teal-50);
}

.preview__thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--ink-100);
  flex-shrink: 0;
}

.preview__thumb--file {
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-700);
}

.preview__meta {
  flex: 1;
  min-width: 0;
}

.preview__name {
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview__size {
  font-size: 12px;
  color: var(--ink-500);
}

.link-button {
  border: 0;
  background: none;
  /* 4px/6px was een te klein tikdoel op telefoon; dit komt dichter bij de
     aanbevolen ~44px zonder de compacte regel/bon-rijen op te blazen. */
  padding: 9px 10px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
}

.link-button:hover {
  background: var(--danger-bg);
}

/* Neutrale variant voor niet-destructieve acties (bv. "Opnieuw invullen") -
   dezelfde afmetingen/tikdoel, maar geen alarmerend rood. */
.link-button--neutral {
  color: var(--teal-700);
  align-self: flex-start;
  margin-left: -10px;
}

.link-button--neutral:hover {
  background: var(--teal-50);
}

/* --------------------------------------------------------- kostenregels -- */

.regels-section {
  margin-bottom: var(--space-4);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0 var(--space-1);
  margin-bottom: var(--space-3);
}

.section-head__title {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal-700);
}

.section-head__hint {
  font-size: 11.5px;
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
}

.regels-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.regel {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
}

.regel.is-collapsed {
  padding-bottom: var(--space-4);
}

.regel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.regel.is-collapsed .regel__head {
  margin-bottom: 0;
}

.regel__toggle {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 2px 0;
  text-align: left;
  cursor: pointer;
}

.regel__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 800;
}

.regel__summary {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.regel__chevron {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--ink-400);
  transition: transform 0.15s ease;
}

.regel.is-collapsed .regel__chevron {
  transform: rotate(-90deg);
}

.regel.is-collapsed .regel__fields {
  display: none;
}

.regel-add {
  display: block;
  width: 100%;
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1.5px dashed var(--teal-100);
  border-radius: var(--radius);
  background: none;
  color: var(--teal-700);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.regel-add:hover {
  background: var(--teal-50);
}

.regel-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dropzone--compact {
  padding: var(--space-3);
}

.regel__files {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.regel__files:empty {
  display: none;
}

.file-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 1.5px solid var(--teal-100);
  border-radius: var(--radius-sm);
  background: var(--teal-50);
}

.file-row__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--ink-100);
  font-size: 10px;
  font-weight: 700;
  color: var(--teal-700);
  flex-shrink: 0;
}

.file-row__meta {
  flex: 1;
  min-width: 0;
}

.file-row__name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-row__size {
  font-size: 11.5px;
  color: var(--ink-500);
}

/* ---------------------------------------------------------- dashboard -- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.stat {
  text-align: center;
  padding: var(--space-3) var(--space-2);
  background: var(--teal-50);
  border-radius: var(--radius-sm);
}

.stat__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--teal-700);
  letter-spacing: -0.2px;
}

.stat__label {
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

@media (max-width: 340px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

.session-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--ink-100);
}

.session-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.session-row:first-child {
  padding-top: 0;
}

.session-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.session-row__meta {
  min-width: 0;
}

.session-row__titel {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-row__tijd {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-500);
}

.session-row__bedrag {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-700);
}

.empty-state {
  margin: 0;
  padding: var(--space-2) 0;
  font-size: 13.5px;
  color: var(--ink-400);
  text-align: center;
}

/* ---------------------------------------------------------- knoppen ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: 14px var(--space-4);
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--amber-500);
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover:not(:disabled) {
  background: var(--amber-400);
}

.btn--teal {
  background: var(--teal-600);
  color: #fff;
}

.btn--teal:hover:not(:disabled) {
  background: var(--teal-700);
}

.btn--outline {
  background: none;
  border: 1.5px solid var(--ink-100);
  color: var(--ink-500);
}

.btn--outline:hover:not(:disabled) {
  background: var(--ink-50);
  border-color: var(--ink-200);
}

.btn--send {
  padding: 16px;
  font-size: 16px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* -------------------------------------------------------- meldingen ---- */

.notice {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.notice--error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(192, 57, 43, 0.2);
}

.toast {
  position: fixed;
  left: 50%;
  /* Boven de vaste tabbalk (76px) én de verstuurbalk (~73px) uit, anders
     zit een melding erachter verstopt op het Nieuw-tabblad. */
  bottom: calc(158px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  max-width: min(85vw, 340px);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transform: translate(-50%, 140%);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.toast.is-visible {
  transform: translate(-50%, 0);
}

.toast--success { background: var(--success); }
.toast--error { background: var(--danger); }
.toast--info { background: var(--teal-700); }

/* ------------------------------------------------- installeer-banner ---- */

.install-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--teal-50);
  border-bottom: 1px solid var(--teal-100);
}

.install-banner__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.install-banner__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.install-banner__text strong {
  display: block;
  font-size: 13.5px;
  color: var(--teal-900);
}

.install-banner__text span {
  display: block;
  font-size: 12px;
  color: var(--ink-500);
}

.install-banner__action {
  flex-shrink: 0;
  padding: 8px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--teal-600);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.install-banner__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--ink-400);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}

.install-banner__close:hover { background: rgba(20, 32, 31, 0.06); }

.form-hint {
  margin: var(--space-3) 0 0;
  padding: 0 var(--space-2);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-500);
  text-align: center;
}

/* --------------------------------------------------- callback-pagina --- */

.status-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--space-5);
  background: linear-gradient(165deg, var(--teal-700) 0%, var(--teal-900) 100%);
}

.status-card {
  max-width: 380px;
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.status-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-600);
}

.status-card__icon--error {
  background: var(--danger-bg);
  color: var(--danger);
}

.status-card h1 {
  margin: 0 0 var(--space-2);
  font-size: 19px;
  color: var(--ink-900);
}

.status-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-500);
}

/* ------------------------------------------------------ brede schermen -- */

@media (min-width: 720px) {
  .page {
    padding-top: var(--space-5);
  }

  /* Bonnetje is vooral een telefoon-app; op desktop (af en toe gebruikt)
     hoeven de vaste balken niet over de volle breedte uit te rekken - dat
     oogt als een mobiel scherm dat is opgerekt. Ze blijven binnen dezelfde
     kolom als de rest van de inhoud. */
  .tabbar,
  .cta-bar {
    max-width: 620px;
    margin: 0 auto;
    border-left: 1px solid var(--ink-100);
    border-right: 1px solid var(--ink-100);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .install-banner {
    max-width: 620px;
    margin: 0 auto;
    border-left: 1px solid var(--ink-100);
    border-right: 1px solid var(--ink-100);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
