/* TimDLC · inloggen en dashboard. Zelfde vlakke stijl als de site. */

/* ── inloggen: formulier links, foto rechts ───────────────────────────────── */
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 100vh; }
.auth-side { display: flex; flex-direction: column; padding: 0 clamp(20px, 5vw, 72px); }
.auth-top { display: flex; justify-content: space-between; align-items: center; height: 76px; }
.auth-main { flex: 1; display: grid; align-items: center; padding: 32px 0; }
.auth-card { width: min(400px, 100%); animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.auth-card h1 { font-size: clamp(1.8rem, 3vw, 2.2rem); margin-bottom: 8px; }
.auth-sub { color: var(--muted); margin-bottom: 28px; }
.auth-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); color: var(--accent); font-size: 1.2rem; margin-bottom: 20px; }
.auth-alt { margin-top: 20px; color: var(--muted); font-size: .92rem; }
.auth-foot { display: flex; gap: 20px; height: 64px; align-items: center; color: var(--dim); font-size: .84rem; }
.auth-foot a:hover { color: var(--text); }
.form-row { display: flex; justify-content: space-between; margin: -4px 0 18px; font-size: .88rem; }
.auth-art { position: relative; margin: 14px 14px 14px 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-art p { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 11px; border-radius: 8px; background: rgba(10, 11, 13, .82); font-size: .8rem; color: #c9cdd6; }

.code-input { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 6px 0 22px; }
.code-input input:not([type="hidden"]) { width: 100%; height: 58px; text-align: center; font-size: 1.6rem; font-weight: 600; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); outline: 0; caret-color: var(--accent); transition: border-color .2s, box-shadow .2s; }
.code-input input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(140, 158, 255, .16); }
.code-input input.filled { border-color: #454953; }
.code-input.bad input { border-color: rgba(244, 124, 139, .6); animation: shake .35s; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: -6px 0 16px; }
.meter i { height: 3px; border-radius: 3px; background: var(--line-2); transition: background .3s; }
.meter[data-level="1"] i:nth-child(-n+1) { background: var(--bad); }
.meter[data-level="2"] i:nth-child(-n+2) { background: var(--warn); }
.meter[data-level="3"] i:nth-child(-n+3) { background: #a9d672; }
.meter[data-level="4"] i { background: var(--ok); }

/* ── dashboard: een balk bovenaan en de inhoud in één rustige kolom ───────── */
.dash-top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.dash-top-in { width: min(1040px, 100% - 40px); margin-inline: auto; min-height: 68px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.dash-tabs { position: relative; display: flex; gap: 2px; margin-right: auto; overflow-x: auto; scrollbar-width: none; }
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tab { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: .95rem; white-space: nowrap; transition: color .2s, background .2s; }
.dash-tab:hover { color: var(--text); }
.dash-tab.on { color: var(--text); background: var(--surface-2); }
.dash-right { display: flex; align-items: center; gap: 8px; }
.dash-wrap { width: min(820px, 100% - 40px); margin: clamp(32px, 6vw, 64px) auto 110px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.dash-wrap > * { min-width: 0; }
.dash-body .dev-pill { left: auto; right: 16px; }
.dash-body .toasts { bottom: 62px; }

.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin-top: 8px; font-size: 1.04rem; max-width: 60ch; }

/* de grote kaart: welk pakket je hebt */
.status { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(24px, 4vw, 36px); border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); }
.status.ok { border-color: rgba(140, 158, 255, .5); }
.status-label { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.status h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.03em; }
.status > div > p:last-child { color: var(--muted); margin-top: 6px; font-size: 1.04rem; }
.chip-mute > i { background: var(--dim); }
.status-note { display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(140, 158, 255, .35); background: var(--accent-soft); color: var(--accent-hi); font-weight: 500; }

/* een korte lijst met rijen */
.rowlist { border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; }
.rowlist.flat { border-radius: 14px; background: var(--bg); margin-top: 16px; }
.row { display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 14px 22px; border-top: 1px solid var(--line); transition: background .2s; }
.row:first-child { border-top: 0; }
a.row:hover { background: var(--surface-2); }
.row.top { align-items: flex-start; }
.row > .ic { color: var(--dim); }
.row-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--bg); border: 1px solid var(--line-2); color: var(--accent); font-size: 1.1rem; }
.row-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.row-text b { font-weight: 600; font-size: 1.04rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-text small { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.row-value { color: var(--muted); font-size: .95rem; text-align: right; }
.row-value.pos { color: var(--ok); font-weight: 600; }

/* een blok met één onderwerp */
.block { padding: clamp(22px, 3.4vw, 30px); border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); }
.block > h2 { font-size: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.block > h2 .big { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; }
.block > p, .block [data-step] > p { color: var(--muted); margin-bottom: 18px; }
.block > form:first-of-type { margin-top: 14px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-form .input { flex: 1; min-width: 220px; }
.inline-form .input.narrow { flex: 0 0 170px; min-width: 0; }
.inline-form .btn { height: 48px; }
.inline-form .form-error { flex-basis: 100%; margin: 4px 0 0; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.twofa .code-input { max-width: 380px; }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); }
.numbers > div { padding: 22px; border-left: 1px solid var(--line); }
.numbers > div:first-child { border-left: 0; }
.numbers b { display: block; font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.numbers span { color: var(--muted); font-size: .9rem; }
.numbers .hl b { color: var(--accent-hi); }
.copy-field { display: flex; gap: 8px; padding: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); }
.copy-field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0 12px; color: var(--accent-hi); font-size: 1rem; }
.copy-field .btn { height: 48px; }
.bar { height: 6px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--accent); transition: width .6s var(--ease); }

/* afrekenen: per betaalmethode één regel om op te tikken */
.pay-list form + form { border-top: 1px solid var(--line); }
.pay-list .row { width: 100%; text-align: left; border-top: 0; cursor: pointer; }
.pay-list .row:hover { background: var(--surface-2); }
.pay-list .row[disabled] { opacity: .55; cursor: default; }
.pay-list .form-error { margin: 0 18px 16px; }
.pay-note { margin-top: -6px; }
.pay-wait { border-color: rgba(242, 187, 98, .4); }
.pay-wait .chip > i { animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.pay-sync { margin: 14px 0 18px; }
.notice.ok { border-color: rgba(95, 211, 154, .35); }
.notice.ok > .ic { color: var(--ok); }

.star-pick { display: inline-flex; flex-direction: row-reverse; gap: 6px; }
.star-pick input { position: absolute; opacity: 0; pointer-events: none; }
.star-pick label { width: 38px; height: 38px; cursor: pointer; background: var(--line-2); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; transition: background .15s; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { background: var(--gold); }
.star-pick input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }

/* beheer: onderdelen die je openklapt */
.fold { border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); }
.fold summary { list-style: none; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 22px; cursor: pointer; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary b { flex: 1; font-weight: 600; font-size: 1.04rem; }
.fold summary > .ic { color: var(--dim); transition: transform .2s; }
.fold[open] summary > .ic { transform: rotate(180deg); }
.fold-body { padding: 22px 22px 24px; border-top: 1px solid var(--line); }
.fold-body > form + .rowlist { margin-top: 22px; }
.mini-select { height: 36px; padding: 0 8px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line-2); font-size: .84rem; color: var(--muted); max-width: 140px; }
.mini-select option { background: var(--surface); color: var(--text); }
.key-out { margin-top: 16px; color: var(--ok); font-size: .86rem; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 10px; justify-items: end; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); font-size: .93rem; animation: toast .3s var(--ease); max-width: min(380px, 90vw); }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.toast.bad::before { background: var(--bad); }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
@keyframes toast { from { opacity: 0; transform: translateY(10px); } }

/* ontwikkelpostvak */
.card { position: relative; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3 { font-size: 1.04rem; font-weight: 600; }
.card-head time { color: var(--dim); font-size: .84rem; }
.dev-body { padding: 56px 0 90px; }
.dev-body h1 { font-size: 2rem; margin-bottom: 10px; }
.dev-body > .wrap > p { margin-bottom: 24px; }
.dev-body code { font-family: var(--mono); font-size: .86em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.dev-mail { margin-bottom: 14px; }
.dev-mail p { margin-bottom: 12px; }
.dev-mail p:last-child { margin-bottom: 0; }
.dev-code { display: flex; align-items: center; gap: 14px; }
.dev-code .mono { font-size: 1.8rem; font-weight: 600; letter-spacing: .2em; color: var(--accent-hi); }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-card { margin-inline: auto; }
}
@media (max-width: 700px) {
  /* balk: logo en account op de eerste regel, de tabbladen eronder (vegen) */
  .dash-top-in { width: calc(100% - 32px); min-height: 0; gap: 0 10px; }
  .dash-top-in > .brand { height: 58px; }
  .dash-tabs { order: 3; flex-basis: 100%; margin: 0 -16px; padding: 0 12px 10px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .dash-tabs::after { content: ""; flex: 0 0 28px; }
  .dash-tab { padding: 9px 12px; }
  .dash-right { margin-left: auto; }
  .dash-wrap { width: calc(100% - 32px); margin: 26px auto 96px; gap: 16px; }
  .page-head p { font-size: 1rem; }
  .status { padding: 22px 20px; gap: 18px; border-radius: 18px; }
  .block { padding: 20px 18px; border-radius: 16px; }
  .rowlist, .numbers, .fold { border-radius: 16px; }
  .rowlist.flat { border-radius: 12px; }
  .fold summary { padding: 12px 16px; min-height: 68px; }
  .fold-body { padding: 18px 16px 20px; }
  /* formulieren: velden en knoppen over de hele breedte */
  .inline-form .input, .inline-form .input.narrow { flex: 1 1 100%; min-width: 0; }
  .inline-form .btn, .block form > .btn, .block [data-step] > .btn, .fold-body form > .btn, .form-actions .btn { width: 100%; }
  .inline-form .btn { height: 50px; }
  .form-actions { flex-direction: column; }
  /* 16 pixels in velden: dan zoomt een iPhone niet in als je erin tikt */
  .input input, .input select, textarea { font-size: 16px; }
  .inline-form .input input.mono { letter-spacing: -.02em; }
  .star-pick label { width: 42px; height: 42px; }
  /* sleutels: de sleutel op zijn eigen regel, daaronder het pakket en de knopjes */
  .key-row { gap: 4px 6px; }
  .key-row .row-text { display: contents; }
  .key-row .row-text b { flex: 1 1 100%; font-size: clamp(.72rem, 3.5vw, .9rem); overflow-wrap: anywhere; }
  .key-row .row-text small { flex: 1; min-width: 0; }
  .mini-select { max-width: none; flex: 1; height: 40px; }
  /* beheer: de tekst op de eerste regel, de knopjes eronder */
  .fold-body .row { gap: 8px; }
  .fold-body .row .row-icon { display: none; }
  .fold-body .row .row-text { flex: 1 1 100%; }
  .fold-body .row .row-text + .icon-btn { margin-left: auto; }
  .fold-body .inline-form[method="get"] { flex-wrap: nowrap; }
  .fold-body .inline-form[method="get"] .input { flex: 1 1 auto; }
  .fold-body .inline-form[method="get"] .btn { width: 50px; flex: none; padding: 0; }
  .toasts { left: 16px; right: 16px; bottom: 16px; justify-items: stretch; }
  .toast { max-width: none; }
  .dash-body .toasts { bottom: 68px; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers > div { padding: 18px; }
  .numbers b { font-size: 1.5rem; }
  .numbers > div:nth-child(3) { border-left: 0; }
  .numbers > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .row { padding: 14px 16px; flex-wrap: wrap; }
  .row .btn { flex-basis: 100%; }
  /* rijen die een link zijn: de waarde komt onder de titel te staan */
  a.row, .pay-list .row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 14px; row-gap: 2px; align-items: center; }
  a.row .row-icon, a.row > .ic { grid-row: 1 / span 2; }
  a.row > .ic { grid-column: 3; }
  a.row .row-text, a.row .row-value { grid-column: 2; }
  a.row .row-value { text-align: left; font-size: .9rem; }
  a.row .row-text { align-self: end; }
  a.row .row-value { align-self: start; }
  .status .btn { width: 100%; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .copy-field { flex-direction: column; }
  .copy-field input { height: 40px; font-size: .92rem; }
  .auth-side { padding: 0 20px; }
  .auth-top { height: 64px; }
  .auth-main { padding: 20px 0 28px; }
  .auth-foot { height: 56px; padding-right: 52px; }
}
@media (max-width: 520px) {
  .code-input { gap: 6px; }
  .code-input input:not([type="hidden"]) { height: 52px; font-size: 1.4rem; }
}
