/* Navy+goud, identiek aan geldzaken-lokaal/tailwind.config.js -- dit
   onderdeel IS de paraplumerknaam, dus geen eigen productkleur (zoals
   boodschappen-planner's navy+groen) maar de merkidentiteit zelf. Plain
   CSS custom properties, geen Tailwind/build-stap nodig voor dit kleine
   accountsonderdeel.

   Verplaatst uit een inline <style>-blok in views/partials/head.ejs
   (CSP-verstrakking, 2026-09-13) zodat style-src geen 'unsafe-inline'
   nodig heeft -- alle waarden hieronder waren al statisch, dus dit is een
   pure verplaatsing, geen gedragswijziging. */
:root {
  color-scheme: light dark;

  --navy-50: 240 244 248;
  --navy-100: 217 226 236;
  --navy-200: 188 204 220;
  --navy-300: 159 179 200;
  --navy-400: 123 151 175;
  --navy-500: 88 114 147;
  --navy-600: 62 85 116;
  --navy-700: 34 58 89;
  --navy-800: 26 46 71;
  --navy-900: 18 34 54;

  --gold-50: 250 244 231;
  --gold-100: 243 228 195;
  --gold-400: 201 149 62;
  --gold-500: 169 122 46;
  --gold-600: 122 90 34;

  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-subtle: rgb(var(--navy-50));
  --text: rgb(var(--navy-700));
  --text-muted: rgb(var(--navy-500));
  --text-faint: rgb(var(--navy-400));
  --border: rgb(var(--navy-100));
  --border-strong: rgb(var(--navy-200));

  --brand: rgb(var(--navy-700));
  --brand-hover: rgb(var(--navy-800));
  --brand-contrast: #ffffff;
  --accent: rgb(var(--gold-500));
  --focus-ring: rgb(var(--navy-300));

  --positive: #059669;
  --positive-soft: #ecfdf5;
  --negative: #e11d48;
  --negative-soft: #fff1f2;
  --negative-border: #fecdd3;
  --warning: #b45309;
  --warning-soft: #fffbeb;
  --warning-border: #fde68a;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 2.5rem;

  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  --radius-pill: 9999px;
  --shadow-card: 0 4px 16px -4px rgba(34, 58, 89, 0.12);

  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji";
  --container-narrow: 26rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: rgb(var(--navy-900));
    --bg-elevated: rgb(var(--navy-800));
    --bg-subtle: rgb(23 40 62);
    --text: rgb(var(--navy-50));
    --text-muted: rgb(var(--navy-300));
    --text-faint: rgb(var(--navy-400));
    --border: rgb(43 62 88);
    --border-strong: rgb(56 77 104);

    --brand: rgb(var(--navy-100));
    --brand-hover: #ffffff;
    --brand-contrast: rgb(var(--navy-900));
    --accent: rgb(var(--gold-400));
    --focus-ring: rgb(var(--navy-400));

    --positive: #34d399;
    --positive-soft: rgb(6 46 36);
    --negative: #fb7185;
    --negative-soft: rgb(56 20 26);
    --negative-border: rgb(90 32 40);
    --warning: #fbbf24;
    --warning-soft: rgb(51 39 9);
    --warning-border: rgb(92 71 13);

    --shadow-card: 0 4px 18px -4px rgba(0, 0, 0, 0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-subtle), var(--bg));
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: var(--space-lg) var(--space-md);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.25rem; color: var(--text); }
h1 { font-size: 1.5rem; font-weight: 700; text-align: center; }
h2 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 var(--space-sm); }
.muted { color: var(--text-muted); font-size: 0.875rem; }

.fout, .banner {
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text);
  margin-bottom: var(--space-md);
}
.fout { color: var(--negative); background: var(--negative-soft); border-color: var(--negative-border); }
.banner-ok { color: var(--positive); background: var(--positive-soft); border-color: var(--positive); }
.banner-info { color: var(--text); background: var(--bg-subtle); border-color: var(--border-strong); }

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}

.btn {
  appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font: inherit; font-weight: 600; font-size: 0.875rem;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  padding: 0.65rem 1.4rem; cursor: pointer; text-decoration: none; line-height: 1.25;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8125rem; }
.btn-primary { background: var(--brand); color: var(--brand-contrast); }
.btn-primary:hover { background: var(--brand-hover); text-decoration: none; }
.btn-outline { background: var(--bg-elevated); color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--brand); text-decoration: none; }
.btn-danger { background: var(--negative); color: #ffffff; }
.btn-danger:hover { background: color-mix(in srgb, var(--negative) 85%, black); text-decoration: none; }
.btn-huidig {
  background: var(--positive-soft); color: var(--positive); border-color: transparent;
  cursor: default;
}
.btn-block { width: 100%; }
.btn-link {
  appearance: none; background: none; border: none; font: inherit; font-size: 0.8125rem;
  font-weight: 600; color: var(--text-faint); cursor: pointer; padding: 0.25rem 0; text-decoration: underline;
}
.btn-link--destructive { color: var(--negative); }

label { display: block; margin-top: var(--space-sm); font-weight: 500; font-size: 0.875rem; color: var(--text-muted); }
input[type="text"], input[type="password"], input[type="email"] {
  width: 100%; padding: 0.55rem 0.75rem; font-size: 1rem; font-family: inherit;
  margin-top: 0.3rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg-elevated); color: var(--text); box-sizing: border-box;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus-ring) 45%, transparent);
}
button { font-family: inherit; }

.auth-shell { width: 100%; max-width: var(--container-narrow); }
.terug-link { margin-bottom: var(--space-md); }
.terug-link a { color: var(--text-muted); font-size: 0.875rem; text-decoration: none; }
.terug-link a:hover { text-decoration: underline; }
.auth-brand { text-align: center; margin-bottom: var(--space-lg); }
.auth-brand__name { font-weight: 700; font-size: 1.125rem; color: var(--text); }
.auth-brand__tag {
  display: block; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-faint); margin-top: 0.15rem;
}
.auth-card h1 { margin-bottom: var(--space-lg); }
.auth-card .btn-block { margin-top: var(--space-md); }
.auth-card .field { margin-top: var(--space-sm); }
.auth-card .field:first-child { margin-top: 0; }
.auth-card .field-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.auth-card .field-head label { margin-top: 0; }
.auth-card .hint { font-size: 0.75rem; color: var(--text-faint); margin-top: 0.3rem; margin-bottom: 0; }
.auth-card .foot-note { text-align: center; font-size: 0.875rem; color: var(--text-muted); margin-top: var(--space-lg); margin-bottom: 0; }

.termijn-kiezer {
  display: flex; gap: var(--space-xs); margin-top: var(--space-md); padding: 0.25rem;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.termijn-kiezer__optie {
  flex: 1; border: none; background: transparent; border-radius: var(--radius-md);
  padding: 0.5rem 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.35rem;
}
.termijn-kiezer__optie:hover { color: var(--text); }
.termijn-kiezer__optie.is-actief { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.termijn-kiezer__korting {
  display: inline-block; background: rgb(var(--gold-50)); color: rgb(var(--gold-600));
  font-size: 0.6875rem; font-weight: 700; border-radius: var(--radius-pill); padding: 0.1rem 0.4rem;
}

.status-card {
  border-radius: var(--radius-lg); padding: var(--space-lg); margin-bottom: var(--space-md);
  border: 1px solid transparent;
}
.status-card h2 { font-size: 1rem; margin-bottom: var(--space-xs); }
.status-card p { font-size: 0.875rem; margin-bottom: var(--space-sm); }
.status-card--actief { background: var(--positive-soft); border-color: var(--positive); }
.status-card--actief h2 { color: var(--positive); }
.status-card--opgezegd { background: var(--warning-soft); border-color: var(--warning-border); }
.status-card--opgezegd h2 { color: var(--warning); }
.status-card__acties {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: var(--space-sm); margin-top: var(--space-sm);
}
.status-card__acties form { margin: 0; }

.confirm-box {
  background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: var(--space-md); margin-top: var(--space-md);
}
.confirm-box h3 { font-size: 0.9375rem; margin-bottom: var(--space-xs); }
.confirm-box p { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: var(--space-sm); }
.confirm-box__acties { display: flex; align-items: center; gap: var(--space-md); }
.confirm-box__acties form { margin: 0; }

.plan-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); margin-top: var(--space-md); }
@media (min-width: 640px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-lg);
  display: flex; flex-direction: column; gap: var(--space-sm); text-align: center;
}
.plan-card--bundle { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
/* Directe "Start met de bundel"-link vanaf de homepage landt op
   /billing?want=bundle#plan-bundle: de browser scrolt zelf naar de kaart,
   :target licht 'm extra op (geen JS nodig, CSP blijft 'self'). */
.plan-card:target { box-shadow: 0 0 0 3px var(--accent); scroll-margin-top: 1.5rem; }
.plan-card__prijs { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.plan-card__label { font-size: 0.875rem; color: var(--text-muted); }
.plan-card__korting {
  display: inline-block; align-self: center; background: rgb(var(--gold-50)); color: rgb(var(--gold-600));
  font-size: 0.6875rem; font-weight: 700; border-radius: var(--radius-pill); padding: 0.15rem 0.6rem;
}

.status-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-md); }
.status-dot { display: inline-block; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--text-faint); flex: none; }
.status-dot.is-on { background: var(--positive); }

/* Voorheen inline style="..."-attributen -- allemaal statische waarden,
   dus 1-op-1 om te zetten naar klassen zonder gedragswijziging. */
.max-w-30 { max-width: 30rem; }
.max-w-40 { max-width: 40rem; }
.mt-sm { margin-top: var(--space-sm); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.text-center { text-align: center; }
.list-plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-xs); }
.status-row-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md); margin: 0;
}
.inline-flex-gap { display: flex; align-items: center; gap: var(--space-xs); }
.qr-image { margin: 0 auto var(--space-md); width: 200px; height: 200px; }
