/* Gedeelde stijl voor de instellingen-pagina's van De Banenbank Ads. */
@font-face { font-family:"Moderniz"; src:url("/assets/fonts/Moderniz.otf") format("opentype"); font-weight:400 900; font-display:swap; }
@font-face { font-family:"AV Fontimer"; src:url("/assets/fonts/AVFontimer-400.ttf") format("truetype"); font-weight:400; font-display:swap; }
@font-face { font-family:"AV Fontimer"; src:url("/assets/fonts/AVFontimer-600.ttf") format("truetype"); font-weight:600; font-display:swap; }
@font-face { font-family:"AV Fontimer"; src:url("/assets/fonts/AVFontimer-700.ttf") format("truetype"); font-weight:700; font-display:swap; }

* { box-sizing:border-box; }
body { margin:0; min-height:100vh; font-family:"AV Fontimer", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color:#171A21; background:#F6F8FC; }
.page-bg { position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none; }
.pblob { position:absolute; border-radius:50%; filter:blur(100px); }
.pblob--1 { width:620px; height:620px; background:radial-gradient(circle, rgba(58,91,214,.9), rgba(58,91,214,0) 68%); top:-10%; left:-8%; opacity:.12; }
.pblob--2 { width:680px; height:680px; background:radial-gradient(circle, rgba(74,110,235,.9), rgba(74,110,235,0) 70%); top:40%; right:-14%; opacity:.10; }

.page { position:relative; z-index:1; max-width:880px; margin:0 auto; padding:36px 30px 80px; }
.back { display:inline-flex; align-items:center; gap:8px; color:#5B6472; text-decoration:none; font-weight:600; font-size:.92rem; margin-bottom:22px; border-radius:8px; }
.back:hover { color:#2440B8; }
.back svg { width:17px; height:17px; }

.head { display:flex; align-items:center; gap:14px; margin-bottom:8px; }
.head .hic { width:44px; height:44px; border-radius:13px; flex:none; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#4A6EEB,#3A5BD6); color:#fff; box-shadow:0 14px 28px -12px rgba(58,91,214,.6); }
.head .hic svg { width:22px; height:22px; }
.head h1 { font-family:"Moderniz",system-ui,sans-serif; font-weight:500; font-size:clamp(26px,4.5vw,34px); color:#12151C; margin:0; line-height:1.05; }
.sub { color:#5B6472; margin:0 0 26px; font-size:.98rem; }

.card { position:relative; z-index:1; background:#fff; border:1px solid #E7EBF2; border-radius:20px; padding:26px 28px;
  box-shadow:0 20px 50px -34px rgba(58,91,214,.28); margin-bottom:22px; }
.card h2 { font-family:"Moderniz",system-ui,sans-serif; font-weight:500; font-size:1.25rem; color:#12151C; margin:0 0 6px; }
.card .desc { color:#5B6472; font-size:.93rem; margin:0 0 18px; line-height:1.5; }

.field { margin-bottom:16px; }
.field label { display:block; font-weight:700; font-size:.88rem; color:#20242E; margin-bottom:7px; }
.field .hint { color:#8A93A6; font-size:.82rem; margin-top:7px; line-height:1.45; }
.inp, .sel { width:100%; border:1px solid #D3DBE8; border-radius:12px; padding:.78rem .95rem; font-family:inherit; font-size:.95rem; color:#171A21; background:#fff; outline:none; transition:border .12s, box-shadow .12s; }
.inp:focus, .sel:focus { border-color:#3A5BD6; box-shadow:0 0 0 4px rgba(58,91,214,.12); }
.sel { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%237A8397' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; background-size:18px; padding-right:40px; }

.btn { border:none; border-radius:12px; font-family:inherit; font-weight:700; font-size:.93rem; cursor:pointer; padding:.78rem 1.25rem;
  display:inline-flex; align-items:center; gap:9px; transition:.14s; text-decoration:none; }
.btn svg { width:17px; height:17px; }
.btn--primary { background:linear-gradient(135deg,#4A6EEB,#3A5BD6); color:#fff; box-shadow:0 12px 26px -12px rgba(58,91,214,.6); }
.btn--primary:hover { filter:brightness(1.06); transform:translateY(-1px); }
.btn--primary[disabled] { opacity:.55; cursor:default; transform:none; filter:none; }
.btn--ghost { background:#fff; color:#20242E; border:1px solid #D3DBE8; }
.btn--ghost:hover { background:#F5F7FB; border-color:#CBD8F5; }
.btn--danger { background:#fff; color:#E5484D; border:1px solid #F1C9C9; }
.btn--danger:hover { background:#E5484D; color:#fff; border-color:#E5484D; }
.btn--danger[disabled] { opacity:.55; cursor:default; }

.badge { display:inline-block; font-size:.7rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; border-radius:999px; padding:4px 11px; }
.badge--soon { color:#8A5A00; background:#FFF1D6; }
.badge--on { color:#fff; background:linear-gradient(135deg,#4A6EEB,#3A5BD6); }
.badge--connected { display:inline-flex; align-items:center; gap:5px; color:#fff; background:linear-gradient(135deg,#34C978,#1F9D55); }
.badge--connected svg { width:11px; height:11px; }
.badge--altijd { color:#3A5BD6; background:#EAEFFF; }

.note { display:flex; gap:12px; align-items:flex-start; background:#EFF4FF; border:1px solid #D5E1FB; border-radius:14px; padding:15px 17px; color:#2C3F86; font-size:.92rem; line-height:1.55; }
.note svg { width:19px; height:19px; flex:none; margin-top:1px; color:#3A5BD6; }
.note b { color:#1E2F6E; }
.warn { display:flex; gap:12px; align-items:flex-start; background:#FFF6F0; border:1px solid #F5DCC8; border-radius:14px; padding:15px 17px; color:#8A4B1F; font-size:.92rem; line-height:1.55; }
.warn svg { width:19px; height:19px; flex:none; margin-top:1px; color:#D97B29; }
.ok { display:flex; gap:12px; align-items:flex-start; background:#EFFAF3; border:1px solid #CBEBD7; border-radius:14px; padding:15px 17px; color:#1E6B3E; font-size:.92rem; line-height:1.55; }
.ok svg { width:19px; height:19px; flex:none; margin-top:1px; color:#22A35B; }

/* Rijen met toggle of link */
.rows { display:flex; flex-direction:column; }
.rowi { display:flex; align-items:center; gap:16px; padding:13px 2px; border-bottom:1px solid #F1F4F9; }
.rowi:last-child { border-bottom:none; }
.rowi .tt { flex:1; min-width:0; }
.rowi .tt b { display:block; font-size:.95rem; color:#171A21; }
.rowi .tt span { display:block; color:#7A8397; font-size:.84rem; margin-top:2px; line-height:1.4; }
.grp { font-weight:700; font-size:.82rem; letter-spacing:.05em; text-transform:uppercase; color:#8A93A6; margin:20px 0 4px; }
.grp:first-child { margin-top:0; }

.rowlink { display:flex; align-items:center; gap:14px; padding:15px 16px; border:1px solid #E7EBF2; border-radius:14px; margin-bottom:12px;
  text-decoration:none; color:inherit; transition:.13s; background:#fff; cursor:pointer; width:100%; font-family:inherit; text-align:left; }
.rowlink:hover { border-color:#CBD8F5; background:#FAFBFF; }
.rowlink .ric { width:38px; height:38px; border-radius:11px; flex:none; display:flex; align-items:center; justify-content:center; background:#EAEFFF; color:#3A5BD6; }
.rowlink .ric svg { width:19px; height:19px; }
.rowlink .tt { flex:1; min-width:0; }
.rowlink .tt b { display:block; font-size:.95rem; color:#171A21; }
.rowlink .tt span { display:block; color:#7A8397; font-size:.84rem; margin-top:2px; }
.rowlink .ext { color:#9AA2B1; }
.rowlink .ext svg { width:17px; height:17px; }

/* Toggle-switch */
.sw { position:relative; width:46px; height:26px; flex:none; }
.sw input { position:absolute; opacity:0; inset:0; margin:0; cursor:pointer; z-index:2; }
.sw .tr { position:absolute; inset:0; border-radius:999px; background:#DDE3EE; transition:.16s; }
.sw .tr::after { content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(20,30,60,.25); transition:.16s; }
.sw input:checked + .tr { background:linear-gradient(135deg,#4A6EEB,#3A5BD6); }
.sw input:checked + .tr::after { left:23px; }
.sw input:disabled { cursor:default; }
.sw input:disabled + .tr { opacity:.5; }

/* Statistiek-tegels */
.stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; margin-bottom:22px; }
.stat { background:#fff; border:1px solid #E7EBF2; border-radius:16px; padding:18px 20px; box-shadow:0 20px 50px -34px rgba(58,91,214,.28); }
.stat .lbl { display:flex; align-items:center; justify-content:space-between; font-size:.8rem; font-weight:700; color:#8A93A6; }
.stat .lbl svg { width:17px; height:17px; color:#9AA2B1; }
.stat .val { font-family:"Moderniz",system-ui,sans-serif; font-weight:500; font-size:1.7rem; color:#12151C; margin-top:9px; }
.stat .sub2 { color:#8A93A6; font-size:.8rem; margin-top:3px; }

/* Radio-kaarten (Meta-koppeling) */
.rcard { display:block; border:1.5px solid #E1E7F1; border-radius:16px; padding:19px 20px; margin-bottom:14px; cursor:pointer; transition:.13s; background:#fff; }
.rcard:hover { border-color:#CBD8F5; }
.rcard.sel { border-color:#3A5BD6; background:#F6F9FF; box-shadow:0 0 0 4px rgba(58,91,214,.1); }
.rcard .rhead { display:flex; align-items:center; gap:11px; }
.rcard .rdot { width:19px; height:19px; border-radius:50%; border:2px solid #C6CEDD; flex:none; position:relative; transition:.13s; }
.rcard.sel .rdot { border-color:#3A5BD6; }
.rcard.sel .rdot::after { content:""; position:absolute; inset:3px; border-radius:50%; background:#3A5BD6; }
.rcard .rhead b { font-size:1.05rem; color:#12151C; }
.rcard .rdesc { color:#5B6472; font-size:.9rem; margin:8px 0 10px 30px; line-height:1.5; }
.rcard ul { margin:0 0 0 30px; padding:0; list-style:none; }
.rcard li { display:flex; gap:8px; align-items:center; color:#3A414F; font-size:.88rem; padding:2.5px 0; }
.rcard li svg { width:15px; height:15px; color:#22A35B; flex:none; }

/* Plan-features */
.feat { display:flex; gap:9px; align-items:center; color:#3A414F; font-size:.92rem; padding:4px 0; }
.feat svg { width:16px; height:16px; color:#22A35B; flex:none; }

.sep { height:1px; background:#EEF1F7; margin:18px 0; }
.muted-box { border:1px dashed #D3DBE8; border-radius:13px; padding:22px; text-align:center; color:#8A93A6; font-size:.93rem; }

/* Toast */
.toast { position:fixed; bottom:26px; left:50%; transform:translateX(-50%) translateY(16px); z-index:99; background:#12151C; color:#fff;
  border-radius:12px; padding:12px 20px; font-size:.92rem; font-weight:600; opacity:0; pointer-events:none; transition:.2s; box-shadow:0 18px 44px -14px rgba(0,0,0,.5); }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

@media (max-width:640px){ .page { padding:24px 16px 60px; } .card { padding:20px 18px; } }
