/* Ḥizbi – moderne huisstijl groen/goud, mobile-first, grote letters en hoog contrast */
:root {
  --green: #15605a;
  --green-2: #1f7a6f;
  --green-3: #2a9a88;
  --green-dark: #0b3f3b;
  --green-soft: #e3f1ed;
  --green-tint: #f0f7f5;
  --gold: #d9a441;
  --gold-soft: #ffe2a3;
  --gold-tint: #fff6e3;
  --cream: #fff4dc;
  --bg: #eef3f1;
  --card: #ffffff;
  --ink: #16302d;
  --ink-2: #3f5956;
  --muted: #6d817e;
  --line: #e3ebe8;
  --red: #b23b3b;
  --red-soft: #fde8e8;
  --ok: #1e7a3c;
  --ok-soft: #dff5e7;
  --purple: #5a3f9a;
  --purple-soft: #ece9f7;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(22, 48, 45, .04), 0 6px 20px rgba(22, 48, 45, .07);
  --shadow-lg: 0 12px 36px rgba(11, 63, 59, .22);
  --font: "Satoshi", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .45s;
}
/* ---------- beweging (geïnspireerd op planobook.nl) ---------- */
@keyframes fade-in-up { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes crossfade-in { 0% { opacity: 0; transform: scale(1.01); } 100% { opacity: 1; transform: scale(1); } }
@keyframes float-soft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes sheen { 0% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(220%) skewX(-18deg); } }
.content { animation: crossfade-in .45s var(--ease) both; }
.card, .kpi, .hizb, .stats { animation: fade-in-up var(--dur) var(--ease) both; }
.card:nth-child(2), .kpi:nth-child(2) { animation-delay: .05s; }
.card:nth-child(3), .kpi:nth-child(3) { animation-delay: .1s; }
.card:nth-child(4), .kpi:nth-child(4) { animation-delay: .15s; }
.card:nth-child(5) { animation-delay: .2s; }
.card:nth-child(6) { animation-delay: .25s; }
.card:nth-child(n+7) { animation-delay: .3s; }
.hizb:nth-child(-n+8) { animation-delay: calc(.04s * var(--i, 0)); }
.top .logo { animation: float-soft 6s ease-in-out infinite; }
@media (hover: hover) {
  .kpi, .hizb, .card.mine, .kpi .ic { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
  .kpi:hover, .hizb:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(22, 48, 45, .12); }
  .tabbar a:hover { color: var(--green); }
  .subtabs a:hover:not(.on) { background: var(--green-soft); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #dfe8e5; color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
a { color: var(--green); }
.app { max-width: 650px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--bg); display: flex; flex-direction: column; position: relative; }
@media (min-width: 700px) { .app { box-shadow: 0 0 60px rgba(0, 0, 0, .14); } }

/* ---------- dag-navigatie ---------- */
.daynav { position: sticky; top: 0; z-index: 9; display: flex; align-items: center; gap: 6px; background: rgba(255, 244, 220, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #7a5a12; padding: 8px 10px; font-weight: 700; font-size: 15px; border-bottom: 1px solid rgba(122, 90, 18, .12); }
.daynav .dn-label { flex: 1; text-align: center; }
.daynav .dn-btn { color: #7a5a12; text-decoration: none; font-size: 24px; line-height: 1; padding: 4px 14px; border-radius: 10px; }
.daynav .dn-btn:hover { background: rgba(0, 0, 0, .05); }
.daynav .dn-today { color: #7a5a12; font-size: 14px; text-decoration: none; padding: 4px 10px; border: 1px solid #e3c98a; border-radius: 999px; background: #fff; }

/* ---------- kop ---------- */
.top {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 55%, var(--green-2) 100%);
  padding: calc(20px + env(safe-area-inset-top)) 20px 22px; display: flex; align-items: center; gap: 16px;
}
.top::before {
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M28 2l26 26-26 26L2 28z'/%3E%3Ccircle cx='28' cy='28' r='10'/%3E%3C/g%3E%3C/svg%3E");
}
.top::after { content: ""; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .07); pointer-events: none; }
.top .logo { width: 58px; height: 58px; flex-shrink: 0; position: relative; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }
.top .txt { position: relative; min-width: 0; }
.top h1 { font-size: 26px; font-weight: 900; margin: 0; letter-spacing: -.4px; }
.top h1 .dot { color: var(--gold); }
.top .ar { font-size: 14.5px; opacity: .9; margin-top: 2px; }
.top .date { font-size: 13.5px; opacity: .85; margin-top: 8px; display: inline-block; background: rgba(255, 255, 255, .14); padding: 4px 10px; border-radius: 999px; }
.top a { color: #fff; }

.content { padding: 16px 16px 100px; flex: 1; }

/* ---------- kaarten ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card h2 { font-size: 17px; margin: 0 0 10px; color: var(--green); font-weight: 800; letter-spacing: -.1px; }
.card p { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }

/* hero: donkere kaart (planobook-stijl) met khatma + ring */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0b3f3b 0%, #15605a 55%, #1f7a6f 100%); border: 0; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 16px; padding: 22px 20px; border-radius: 24px; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M28 2l26 26-26 26L2 28z'/%3E%3Ccircle cx='28' cy='28' r='10'/%3E%3C/g%3E%3C/svg%3E"); }
.hero::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent); animation: sheen 7s var(--ease) 1.2s infinite; pointer-events: none; }
.hero .k { flex: 1; min-width: 0; position: relative; }
.hero .label { font-size: 11.5px; color: var(--gold-soft); text-transform: uppercase; letter-spacing: 2.2px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.hero .label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(217, 164, 65, .25); }
.hero .num { font-size: 60px; font-weight: 900; color: #fff; line-height: 1.05; letter-spacing: -1.5px; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.hero .sub { font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.hero .sub b { color: #fff; }
.ring { position: relative; width: 112px; height: 112px; flex-shrink: 0; }
.ring svg { width: 112px; height: 112px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring .bg { stroke: rgba(255, 255, 255, .16); }
.ring .fg { stroke: var(--gold-soft); transition: stroke-dashoffset 1.1s var(--ease); }
.ring.done .fg { stroke: #7ee3b0; }
.ring .c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .c b { font-size: 25px; color: #fff; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.ring .c small { font-size: 11px; color: rgba(255, 255, 255, .75); margin-top: 3px; }

/* kerncijfers */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 480px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--card); border-radius: var(--radius-sm); padding: 14px 12px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; }
.kpi .ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; background: var(--green-soft); }
.kpi .ic.ok { background: var(--ok-soft); }
.kpi .ic.todo { background: var(--red-soft); }
.kpi .ic.gold { background: var(--gold-tint); }
.kpi .v { font-size: 24px; font-weight: 900; color: var(--green); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12.5px; color: var(--muted); }

/* weekgrafiek */
.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--green-3); }
.chart .bar.today { fill: var(--green); }
.chart .bar.closed { fill: var(--gold); }
.chart .lbl { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.chart .val { font-size: 11px; fill: var(--ink-2); font-weight: 700; font-family: var(--font); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: var(--green-3); }
.legend i.gold { background: var(--gold); }
.legend i.green { background: var(--green); }

/* jouw hizb */
.mine { background: linear-gradient(135deg, var(--green-dark), var(--green-2)); color: #fff; box-shadow: var(--shadow-lg); }
.mine h2 { color: #fff; opacity: .9; font-weight: 600; font-size: 14px; letter-spacing: .3px; text-transform: uppercase; }
.mine .h { font-size: 34px; font-weight: 800; margin: 2px 0; letter-spacing: -.5px; }
.mine .h span { font-size: 14px; font-weight: 500; opacity: .85; margin-left: 8px; letter-spacing: 0; }
.mine .sub { font-size: 14px; opacity: .88; margin-bottom: 12px; }
.mine select { width: 100%; font-size: 17px; padding: 13px 14px; border-radius: 14px; border: 0; margin-top: 4px; font-family: var(--font); color: var(--ink); background: #fff; }
.mine .priv { background: rgba(255, 255, 255, .14); border-radius: 12px; padding: 9px 12px; font-size: 13px; margin-top: 10px; }
.mine .btn { background: var(--gold-soft); color: var(--ink); }

/* knoppen */
.btn { display: block; width: 100%; background: var(--gold-soft); color: var(--ink); border: 0; border-radius: 999px; padding: 14px 18px; text-align: center; font-weight: 800; font-size: 17px; text-decoration: none; cursor: pointer; font-family: var(--font); transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .2s ease; will-change: transform; }
.btn:hover { filter: brightness(1.03); transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(22, 48, 45, .45); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; transition-duration: .1s; }
.btn:focus-visible { outline: 3px solid rgba(42, 154, 136, .45); outline-offset: 2px; }
.btn.secondary { background: var(--green-soft); color: var(--green); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.green { background: var(--green); color: #fff; }
.btn.small { display: inline-block; width: auto; padding: 9px 16px; font-size: 15px; }
.btn + .btn { margin-top: 10px; }

.prog { height: 12px; background: #e3ebe8; border-radius: 999px; overflow: hidden; margin: 10px 0; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-3), var(--green)); border-radius: 999px; transition: width .4s ease; }
.small { font-size: 14px; color: var(--muted); }
.note { font-size: 14px; color: var(--green); background: var(--green-soft); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.flash { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 15px; background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.flash.error { background: var(--red-soft); color: var(--red); }
.banner-closed { background: linear-gradient(135deg, var(--green), var(--green-2)); color: #fff; border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; font-size: 15px; box-shadow: var(--shadow); }

/* zoeken */
.search { width: 100%; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px; font-size: 17px; box-shadow: var(--shadow); margin-bottom: 12px; font-family: var(--font); color: var(--ink); }
.search:focus { outline: none; border-color: var(--green-3); box-shadow: 0 0 0 4px rgba(42, 154, 136, .15); }

/* rooster */
.hizb { background: var(--card); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: flex-start; }
.hizb.hidden { display: none; }
.hizb .n { width: 54px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; }
.hizb .n b { height: 54px; border-radius: 14px; background: linear-gradient(145deg, var(--green), var(--green-2)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; line-height: 1; box-shadow: 0 4px 10px rgba(21, 96, 90, .25); }
.hizb .n b small { font-size: 10px; font-weight: 500; opacity: .85; margin-top: 3px; }
.hizb .n a.q { font-size: 11.5px; text-align: center; text-decoration: none; background: var(--green-soft); color: var(--green); border-radius: 9px; padding: 5px 2px; font-weight: 700; }
.names { flex: 1; min-width: 0; }
.name { font-size: 17px; padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.name:last-child { border-bottom: 0; }
.name .nm { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.name .nm .meta { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.name.muted .nm { color: #9aa7a5; font-style: italic; font-weight: 400; }
.name form { margin: 0; }
.name button.tag { cursor: pointer; font-family: var(--font); touch-action: manipulation; min-height: 36px; padding: 7px 12px; font-size: 13.5px; transition: background .15s ease, color .15s ease, transform .12s ease; }
.name button.tag:active { transform: scale(.94); }
.name.tappable { cursor: pointer; border-radius: 10px; margin: 0 -6px; padding-left: 6px; padding-right: 6px; -webkit-tap-highlight-color: rgba(21, 96, 90, .12); touch-action: manipulation; user-select: none; transition: background .15s ease; }
.name.tappable:active { background: var(--green-tint); }
.name.is-read .nm { color: var(--ink-2); }
.tag { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 700; white-space: nowrap; border: 0; line-height: 1.2; }
.tag.vast { background: var(--gold-tint); color: #8a5e0a; }
.tag.mem { background: var(--purple-soft); color: var(--purple); }
.tag.open { background: var(--ok-soft); color: var(--ok); }
.tag.done { background: var(--ok-soft); color: var(--ok); }
.tag.todo { background: var(--red-soft); color: var(--red); }
.tags { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }

/* ---------- tabbalk ---------- */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 650px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: flex; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); z-index: 10; }
.tabbar a { flex: 1; text-align: center; font-size: 12px; color: #7f8f8c; padding: 6px 2px; text-decoration: none; font-weight: 600; }
.tabbar a b { display: flex; align-items: center; justify-content: center; width: 52px; height: 34px; margin: 0 auto 4px; border-radius: 999px; transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.tabbar a:active b { transform: scale(.92); }
.tabbar a svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.on { color: var(--green); font-weight: 800; }
.tabbar a.on b { background: var(--green); color: #fff; box-shadow: 0 4px 12px rgba(21, 96, 90, .3); }

/* sponsorregel ICT Productions */
.credit { margin-top: 26px; padding: 16px 0 4px; border-top: 1px solid var(--line); text-align: center; }
.credit a { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; color: var(--muted); font-size: 12.5px; }
.credit img { width: 176px; height: 40px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px 8px; box-sizing: content-box; box-shadow: var(--shadow); }

/* geschiedenis */
table.hist { width: 100%; border-collapse: collapse; font-size: 15px; }
table.hist th { text-align: left; color: var(--muted); font-weight: 700; font-size: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .5px; }
table.hist td { padding: 10px 4px; border-bottom: 1px solid var(--line); }
table.hist td.r, table.hist th.r { text-align: right; }
table.hist a { text-decoration: none; font-weight: 600; }
.story { font-size: 16px; }
.story h3 { font-size: 16px; color: var(--green); margin: 16px 0 4px; }
.story p { margin: 0 0 8px; }
.story ul, .story ol { padding-left: 22px; margin: 0 0 8px; }
.story li { margin-bottom: 6px; }
.arabic { direction: rtl; text-align: right; font-size: 21px; line-height: 1.9; font-family: "Amiri", "Scheherazade", "Traditional Arabic", "Segoe UI", serif; }
details summary { cursor: pointer; font-weight: 800; color: var(--green); padding: 6px 0; font-size: 16px; }

/* ---------- Quran-lezer ---------- */
.reader-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.reader-nav .btn { margin: 0; }
.font-ctl { display: flex; gap: 6px; }
.quran { font-family: "Amiri Quran", "Amiri", "KFGQPC Uthmanic Script HAFS", "Scheherazade New", "Scheherazade", "Noto Naskh Arabic", "Traditional Arabic", "Geeza Pro", serif; font-size: 28px; line-height: 2.1; text-align: justify; padding: 22px 20px; }
.quran .surah { font-size: 1.15em; text-align: center; color: var(--green); margin: 10px 0 6px; padding: 10px; background: var(--green-soft); border-radius: 12px; font-weight: 700; }
.quran .basmala { text-align: center; color: var(--ink-2); margin: 0 0 8px; }
.quran .ayahs { margin: 0 0 14px; }
.quran .num { display: inline-block; font-size: .6em; line-height: 1; color: var(--green); border: 1.5px solid var(--gold); border-radius: 50%; padding: 5px 6px 4px; margin: 0 4px; vertical-align: middle; font-family: var(--font); background: #fff; }
/* ---------- formulieren ---------- */
form.f label { display: block; font-size: 13.5px; color: var(--muted); margin: 12px 0 5px; font-weight: 600; }
form.f label.inline { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 16px; margin: 12px 0; font-weight: 500; }
form.f input[type=text], form.f input[type=password], form.f input[type=date], form.f input[type=time], form.f input[type=number], form.f select, form.f textarea { width: 100%; font-size: 17px; padding: 12px 14px; border: 1.5px solid #cfd9d6; border-radius: 12px; font-family: var(--font); background: #fff; color: var(--ink); }
form.f input:focus, form.f select:focus, form.f textarea:focus { outline: none; border-color: var(--green-3); box-shadow: 0 0 0 4px rgba(42, 154, 136, .15); }
form.f textarea { min-height: 150px; font-family: Consolas, "Courier New", monospace; font-size: 14px; }
form.f .btn { margin-top: 14px; }
form.f .row { display: flex; gap: 10px; }
form.f .row > * { flex: 1; }
form.f input[type=checkbox], form.f input[type=radio] { width: 22px; height: 22px; accent-color: var(--green); }
textarea.wa { width: 100%; min-height: 220px; font-family: Consolas, "Courier New", monospace; font-size: 13px; border: 1.5px solid #cfd9d6; border-radius: 12px; padding: 12px; background: #f8faf9; }

/* ---------- beheer ---------- */
.subtabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 4px; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs a { white-space: nowrap; text-decoration: none; font-size: 14.5px; font-weight: 700; padding: 9px 15px; border-radius: 999px; background: var(--card); color: var(--green); box-shadow: var(--shadow); }
.subtabs a.on { background: var(--green); color: #fff; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; font-weight: 500; }
.list-item .grow .meta { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.list-item a.edit { font-size: 14px; text-decoration: none; background: var(--green-soft); padding: 8px 12px; border-radius: 999px; white-space: nowrap; font-weight: 700; }
.switch { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.switch input { width: 22px; height: 22px; accent-color: var(--green); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .btn { width: auto; flex: 1; margin: 0; }
.login-box { margin-top: 30px; }
.center { text-align: center; }
.mt { margin-top: 14px; }
.hint { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
code { background: #eef1f0; padding: 1px 6px; border-radius: 5px; font-size: 13px; }
@media print { .tabbar, .daynav, .credit { display: none; } .content { padding-bottom: 0; } }

/* ---------- premium beweging (v1.4) ---------- */
/* Pagina-overgangen tussen de tabbladen (View Transitions; browsers zonder ondersteuning negeren dit) */
@view-transition { navigation: auto; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
::view-transition-old(root) { animation: .14s ease-out both vt-out; }
::view-transition-new(root) { animation: .32s var(--ease) both vt-in; }
.tabbar { view-transition-name: tabbar; }
.daynav { view-transition-name: daynav; }
.tabbar a.on b { view-transition-name: tab-pill; } /* het groene pilletje glijdt naar het nieuwe tabblad */
::view-transition-group(tabbar), ::view-transition-group(daynav) { animation-duration: 0s; }
::view-transition-group(tab-pill) { animation-duration: .38s; animation-timing-function: var(--ease); }
@supports (view-transition-name: x) { .content { animation-duration: .25s; } }

/* Hero: kop, cijfer en subregel komen na elkaar binnen */
.hero .label, .hero .num, .hero .sub { animation: fade-in-up .6s var(--ease) both; }
.hero .num { animation-delay: .08s; }
.hero .sub { animation-delay: .16s; }
.hero .label::before { animation: dot-pulse 2.6s ease-in-out 1s infinite; }
@keyframes dot-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(217, 164, 65, .25); } 50% { box-shadow: 0 0 0 7px rgba(217, 164, 65, .12); } }
.ring .c b { animation: fade-in-up .5s var(--ease) .35s both; }
.ring.done svg { filter: drop-shadow(0 0 10px rgba(126, 227, 176, .55)); animation: ring-glow 2.8s ease-in-out infinite; }
@keyframes ring-glow { 0%, 100% { filter: drop-shadow(0 0 6px rgba(126, 227, 176, .35)); } 50% { filter: drop-shadow(0 0 14px rgba(126, 227, 176, .7)); } }

/* Feestelijke gouden snippers zodra de khatma van vandaag compleet is (één keer per dag) */
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.confetti i { position: absolute; left: 50%; top: 50%; width: 7px; height: 11px; border-radius: 2px; background: var(--gold-soft); opacity: 0; }
.confetti i:nth-child(3n) { background: #fff; width: 6px; height: 6px; border-radius: 50%; }
.confetti i:nth-child(4n) { background: #7ee3b0; }

/* KPI-iconen en kaarten: zachte 'pop' */
@keyframes pop-in { 0% { transform: scale(.7); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
.kpi .ic { animation: pop-in .55s var(--ease) both; animation-delay: inherit; }
.kpi:nth-child(2) .ic { animation-delay: .15s; }
.kpi:nth-child(3) .ic { animation-delay: .2s; }
.kpi:nth-child(4) .ic { animation-delay: .25s; }

/* Voortgangsbalk vult zich; weekgrafiek groeit uit de basislijn */
@keyframes prog-fill { from { width: 0; } }
.prog i { animation: prog-fill .9s var(--ease) .15s both; }
@keyframes bar-grow { from { transform: scaleY(0); } }
.chart rect.bar { transform-box: fill-box; transform-origin: 50% 100%; animation: bar-grow .7s var(--ease) both; }
.chart g:nth-child(2) rect.bar { animation-delay: .06s; }
.chart g:nth-child(3) rect.bar { animation-delay: .12s; }
.chart g:nth-child(4) rect.bar { animation-delay: .18s; }
.chart g:nth-child(5) rect.bar { animation-delay: .24s; }
.chart g:nth-child(6) rect.bar { animation-delay: .30s; }
.chart g:nth-child(n+7) rect.bar { animation-delay: .36s; }
.chart .val { animation: fade-in-up .5s var(--ease) .55s both; }

/* Afvinken: vinkje 'popt', de regel licht even groen op, de balk veert mee */
@keyframes tick-pop { 0% { transform: scale(.55); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes row-glow { 0% { background: rgba(30, 122, 60, .2); } 100% { background: transparent; } }
.name.just-read .tag.done { animation: tick-pop .45s var(--ease); }
.name.just-read { animation: row-glow 1.1s ease-out; border-radius: 10px; }
.name.just-undone .tag.todo { animation: tick-pop .35s var(--ease); }
.name .nm { transition: color .3s ease; }

/* Kaarten onder de vouw verschijnen pas als je ze in beeld scrolt */
.reveal-wait { animation: none !important; opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-wait.in { opacity: 1; transform: none; }

/* Knoppen: lichte glans bij hover, zachte schaduw */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-18deg); opacity: 0; }
@media (hover: hover) { .btn:hover::after { opacity: 1; animation: sheen .9s var(--ease) both; } }

/* Dag-navigatie krijgt een schaduw zodra hij 'plakt' */
.daynav { transition: box-shadow .3s var(--ease); }
.daynav.stuck { box-shadow: 0 6px 18px rgba(122, 90, 18, .12); }

/* Tabbalk: actief icoon veert in */
.tabbar a.on b { animation: pop-in .4s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .reveal-wait { opacity: 1; transform: none; }
  .confetti { display: none; }
}

/* ---------- aanmelden (v1.5) ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-done { text-align: center; }
.signup-done .big { font-size: 54px; line-height: 1; margin: 6px 0 10px; animation: pop-in .6s var(--ease) both; }
.signup-done h2 { font-size: 19px; }
.signup-done p { text-align: left; }
.card.join { background: linear-gradient(135deg, #fff8e8, #fff); border: 1px solid #f1dfae; }
.badge { display: inline-block; min-width: 20px; padding: 2px 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; line-height: 1.3; vertical-align: 1px; animation: pop-in .5s var(--ease) both; }
.subtabs a.on .badge { background: var(--gold); color: var(--ink); }
.card.signup.nieuw { border-left: 4px solid var(--gold); }
.card.signup.afgewezen, .card.signup.goedgekeurd { opacity: .8; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--red); font: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- mededeling van de coördinator (v1.5.1) ---------- */
.card.notice { background: linear-gradient(135deg, #fffaf0, #fff); border: 1px solid #f1dfae; border-left: 5px solid var(--gold); }
.card.notice .eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; color: #8a5e0a; margin-bottom: 6px; }
.card.notice h2 { margin-bottom: 8px; }
.card.notice p { font-size: 16px; line-height: 1.55; }
