/* ===== Design tokens (2026: soft depth, big radius, adaptive dark) ===== */
:root{
  --bg:#f4f6fb; --bg2:#eaeef8; --surface:#ffffff; --surface-2:#f0f3fa;
  --text:#0f172a; --muted:#64748b; --line:rgba(15,23,42,.08);
  --brand:#4f46e5; --brand-2:#06b6d4; --ok:#10b981; --warn:#f59e0b; --bad:#ef4444;
  --grad:linear-gradient(135deg,#4f46e5 0%,#7c3aed 55%,#06b6d4 120%);
  --shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px -8px rgba(15,23,42,.12);
  --r-lg:28px; --r-md:20px; --r-sm:14px;
  --tab-h:68px;
  --safe-b:env(safe-area-inset-bottom,0px); --safe-t:env(safe-area-inset-top,0px);
  color-scheme:light;
}
:root[data-theme="dark"]{
  --bg:#0b1020; --bg2:#0f1630; --surface:#151b33; --surface-2:#1c2342;
  --text:#e8ecff; --muted:#93a0c4; --line:rgba(255,255,255,.08);
  --shadow:0 1px 2px rgba(0,0,0,.3),0 12px 32px -10px rgba(0,0,0,.55);
  color-scheme:dark;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#0b1020; --bg2:#0f1630; --surface:#151b33; --surface-2:#1c2342;
    --text:#e8ecff; --muted:#93a0c4; --line:rgba(255,255,255,.08);
    --shadow:0 1px 2px rgba(0,0,0,.3),0 12px 32px -10px rgba(0,0,0,.55);
    color-scheme:dark;
  }
}

*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html{scroll-behavior:smooth}
body{
  font-family:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  background:var(--bg); color:var(--text); line-height:1.45;
  min-height:100dvh; overscroll-behavior-y:none;
  -webkit-font-smoothing:antialiased;
}
/* aurora background */
body::before{
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(520px 320px at 90% -5%,rgba(124,58,237,.18),transparent 70%),
    radial-gradient(480px 320px at -10% 15%,rgba(6,182,212,.16),transparent 70%);
}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
svg{display:block}

.app{
  max-width:520px; margin:0 auto;
  padding:calc(var(--safe-t) + 14px) 16px calc(var(--tab-h) + var(--safe-b) + 28px);
}

/* ===== Top bar ===== */
.topbar{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.logo{
  width:46px;height:46px;border-radius:16px;background:var(--grad);
  display:grid;place-items:center;color:#fff;font-weight:800;font-size:18px;
  box-shadow:0 8px 20px -6px rgba(79,70,229,.55);flex:none;
}
.topbar .who{flex:1;min-width:0}
.topbar .who small{display:block;color:var(--muted);font-size:12.5px}
.topbar .who strong{display:block;font-size:17px;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.icon-btn{
  width:44px;height:44px;border-radius:14px;background:var(--surface);
  display:grid;place-items:center;box-shadow:var(--shadow);border:1px solid var(--line);
  transition:transform .15s;
}
.icon-btn:active{transform:scale(.92)}
.icon-btn svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ===== Hero ===== */
.hero{
  position:relative;overflow:hidden;border-radius:var(--r-lg);padding:22px;color:#fff;
  background:var(--grad);box-shadow:0 18px 40px -14px rgba(79,70,229,.6);
}
.hero::after{
  content:"";position:absolute;right:-60px;top:-60px;width:220px;height:220px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.28),transparent 65%);
}
.hero .label{font-size:13px;opacity:.85;display:flex;align-items:center;gap:8px}
.pill-live{
  display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;
  padding:3px 9px;border-radius:999px;background:rgba(255,255,255,.18);backdrop-filter:blur(6px);
}
.pill-live i{width:6px;height:6px;border-radius:50%;background:#86efac;box-shadow:0 0 0 0 rgba(134,239,172,.7);animation:pulse 1.8s infinite}
@keyframes pulse{70%{box-shadow:0 0 0 8px rgba(134,239,172,0)}100%{box-shadow:0 0 0 0 rgba(134,239,172,0)}}
.hero .amount{font-size:34px;font-weight:800;letter-spacing:-.03em;margin:8px 0 14px;font-variant-numeric:tabular-nums}
.hero .row{display:flex;gap:10px;position:relative;z-index:1}
.hero .chip{
  flex:1;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.16);backdrop-filter:blur(8px);
  font-size:12px;
}
.hero .chip b{display:block;font-size:15px;margin-top:2px;font-variant-numeric:tabular-nums}

/* ===== Section ===== */
.sec-title{display:flex;align-items:baseline;justify-content:space-between;margin:26px 2px 12px}
.sec-title h2{font-size:17px;letter-spacing:-.01em}
.sec-title a{font-size:13px;color:var(--brand);font-weight:600}

/* ===== Stats ===== */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}
.stat{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);
  padding:14px 12px;box-shadow:var(--shadow);text-align:left;
}
.stat b{display:block;font-size:22px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.stat span{font-size:12px;color:var(--muted)}

/* ===== Menu bento ===== */
.bento{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tile{
  position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-lg);padding:18px;box-shadow:var(--shadow);min-height:150px;
  display:flex;flex-direction:column;justify-content:space-between;
  transition:transform .18s cubic-bezier(.2,.8,.2,1);
}
.tile:active{transform:scale(.96)}
.tile.wide{grid-column:1/-1;min-height:118px;flex-direction:row;align-items:center;gap:16px}
.tile .ico{
  width:48px;height:48px;border-radius:16px;display:grid;place-items:center;color:#fff;flex:none;
}
.tile .ico svg{width:24px;height:24px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tile h3{font-size:16px;letter-spacing:-.01em;margin-bottom:3px}
.tile p{font-size:12.5px;color:var(--muted)}
.tile .go{
  position:absolute;right:14px;top:14px;width:30px;height:30px;border-radius:50%;
  background:var(--surface-2);display:grid;place-items:center;
}
.tile .go svg{width:14px;height:14px;stroke:var(--muted);fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.g1{background:linear-gradient(135deg,#6366f1,#8b5cf6)}
.g2{background:linear-gradient(135deg,#10b981,#06b6d4)}
.g3{background:linear-gradient(135deg,#f59e0b,#ef4444)}

/* ===== Lists / cards ===== */
.list{display:flex;flex-direction:column;gap:10px}
.item{
  display:flex;gap:12px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-md);padding:14px;box-shadow:var(--shadow);
}
.item .dot{width:10px;height:10px;border-radius:50%;margin-top:6px;flex:none;background:var(--muted)}
.item .dot.imp{background:var(--bad);box-shadow:0 0 0 4px rgba(239,68,68,.15)}
.item .dot.new{background:var(--brand-2);box-shadow:0 0 0 4px rgba(6,182,212,.15)}
.item h4{font-size:14.5px;letter-spacing:-.005em}
.item p{font-size:12.5px;color:var(--muted);margin-top:2px}
.badge{
  display:inline-block;font-size:10.5px;font-weight:700;padding:2px 8px;border-radius:999px;
  margin-left:6px;vertical-align:middle;
}
.badge.imp{background:rgba(239,68,68,.14);color:var(--bad)}
.badge.new{background:rgba(6,182,212,.14);color:#0891b2}

.hscroll{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px;padding:2px 16px 8px;scrollbar-width:none}
.hscroll::-webkit-scrollbar{display:none}
.ev{
  flex:0 0 78%;scroll-snap-align:start;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-lg);padding:16px;box-shadow:var(--shadow);display:flex;gap:14px;
}
.ev .date{
  width:56px;height:64px;border-radius:16px;background:var(--surface-2);flex:none;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
}
.ev .date b{font-size:22px;line-height:1;letter-spacing:-.02em}
.ev .date span{font-size:11px;color:var(--brand);font-weight:700;text-transform:uppercase;margin-top:3px}
.ev h4{font-size:14.5px}
.ev p{font-size:12.5px;color:var(--muted);margin-top:3px}

/* ===== Quick actions ===== */
.actions{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.btn{
  display:flex;align-items:center;justify-content:center;gap:8px;padding:14px;border-radius:var(--r-sm);
  font-weight:700;font-size:14px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);
  transition:transform .15s;
}
.btn:active{transform:scale(.96)}
.btn.primary{background:var(--grad);color:#fff;border:0}
.btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

.foot{text-align:center;color:var(--muted);font-size:12px;margin-top:30px}

/* ===== Bottom tab bar (floating glass) ===== */
.tabbar{
  position:fixed;left:50%;transform:translateX(-50%);bottom:calc(10px + var(--safe-b));
  width:min(calc(100% - 24px),496px);height:var(--tab-h);z-index:50;
  display:grid;grid-template-columns:repeat(4,1fr);padding:8px;border-radius:26px;
  background:color-mix(in srgb,var(--surface) 78%,transparent);
  backdrop-filter:blur(22px) saturate(1.6);-webkit-backdrop-filter:blur(22px) saturate(1.6);
  border:1px solid var(--line);box-shadow:0 16px 40px -12px rgba(15,23,42,.35);
}
.tab{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:18px;
  color:var(--muted);font-size:10.5px;font-weight:600;transition:all .2s;
}
.tab svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tab.active{color:var(--brand);background:color-mix(in srgb,var(--brand) 12%,transparent)}
.tab:active{transform:scale(.92)}

/* ===== Entrance motion ===== */
.rise{opacity:0;transform:translateY(14px);animation:rise .55s cubic-bezier(.2,.8,.2,1) forwards}
@keyframes rise{to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.rise{animation:none;opacity:1;transform:none}.pill-live i{animation:none}}

/* ===== Shared UI kit (dipakai Anggota & Keuangan) ===== */
.page-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.page-head .t{flex:1;min-width:0}
.page-head h1{font-size:24px;letter-spacing:-.03em;line-height:1.15}
.page-head small{color:var(--muted);font-size:12.5px}
.btn.sm{padding:10px 14px;font-size:13px;border-radius:14px;white-space:nowrap}

.banner{
  display:flex;gap:12px;align-items:center;padding:14px 16px;border-radius:var(--r-md);
  background:linear-gradient(135deg,rgba(245,158,11,.16),rgba(239,68,68,.12));
  border:1px solid rgba(245,158,11,.35);
}
.banner .bi{width:40px;height:40px;border-radius:14px;background:var(--warn);display:grid;place-items:center;flex:none}
.banner .bi svg{width:20px;height:20px;stroke:#fff;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.banner h3{font-size:14px}
.banner p{font-size:12px;color:var(--muted);margin-top:1px}
.banner a{margin-left:auto;font-weight:700;font-size:13px;color:var(--brand);white-space:nowrap}

.stat.click{cursor:pointer;transition:transform .15s}
.stat.click:active{transform:scale(.95)}
.stat.warn b{color:var(--warn)}

.search{
  display:flex;align-items:center;gap:10px;margin-top:12px;padding:0 14px;height:48px;border-radius:16px;
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);
}
.search svg{width:18px;height:18px;stroke:var(--muted);fill:none;stroke-width:2.2;stroke-linecap:round;flex:none}
.search input{flex:1;min-width:0;border:0;outline:0;background:none;font:inherit;font-size:15px;color:var(--text)}
.search input::placeholder{color:var(--muted)}
.chips{display:flex;gap:8px;overflow-x:auto;margin:12px -16px 0;padding:0 16px 4px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip-f{
  flex:none;padding:8px 14px;border-radius:999px;font-size:13px;font-weight:600;color:var(--muted);
  background:var(--surface);border:1px solid var(--line);transition:all .18s;
}
.chip-f.on{background:var(--text);color:var(--bg);border-color:transparent}

.count-line{font-size:12.5px;color:var(--muted);margin:16px 2px 10px;display:flex;justify-content:space-between}
.st{font-size:10.5px;font-weight:700;padding:3px 9px;border-radius:999px;flex:none;align-self:flex-start}
.st.aktif,.st.verified{background:rgba(16,185,129,.14);color:#059669}
.st.cuti,.st.pending{background:rgba(245,158,11,.16);color:#b45309}
.st.verifikasi{background:rgba(239,68,68,.14);color:var(--bad)}
.st.nonaktif{background:var(--surface-2);color:var(--muted)}
.st.lulus,.st.koreksi{background:rgba(79,70,229,.14);color:var(--brand)}
.empty{text-align:center;color:var(--muted);padding:36px 12px;font-size:14px}
.demo-note{font-size:11.5px;color:var(--muted);text-align:center;margin-top:12px}

details.how{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);box-shadow:var(--shadow);padding:0 16px}
details.how+details.how{margin-top:10px}
details.how summary{list-style:none;display:flex;align-items:center;gap:12px;padding:14px 0;cursor:pointer;font-weight:700;font-size:14.5px}
details.how summary::-webkit-details-marker{display:none}
details.how .n{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;flex:none;background:var(--surface-2);color:var(--brand);font-size:13px;font-weight:800}
details.how summary::after{content:"";margin-left:auto;width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .2s}
details.how[open] summary::after{transform:rotate(225deg)}
details.how p{font-size:13px;color:var(--muted);padding:0 0 14px 42px}

.sheet-wrap{position:fixed;inset:0;z-index:70;display:none}
.sheet-wrap.open{display:block}
.sheet-bg{position:absolute;inset:0;background:rgba(8,12,28,.5);backdrop-filter:blur(3px);animation:fade .2s}
.sheet{
  position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,520px);max-height:86dvh;overflow:auto;
  background:var(--bg);border-radius:28px 28px 0 0;padding:10px 20px calc(24px + var(--safe-b));
  animation:up .3s cubic-bezier(.2,.9,.25,1);box-shadow:0 -20px 60px -20px rgba(0,0,0,.5);
}
.sheet .grab{width:42px;height:5px;border-radius:9px;margin:0 auto 16px;background:color-mix(in srgb,var(--muted) 40%,transparent)}
@keyframes up{from{transform:translate(-50%,100%)}}
@keyframes fade{from{opacity:0}}
.sh-head{display:flex;gap:14px;align-items:center;margin-bottom:16px}
.sh-head h3{font-size:19px;letter-spacing:-.02em}
.sh-head p{font-size:13px;color:var(--muted)}
.kv{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.kv div{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px}
.kv span{display:block;font-size:11px;color:var(--muted);margin-bottom:2px}
.kv b{font-size:13.5px;word-break:break-word}
.kv .full{grid-column:1/-1}
.sh-sub{font-size:13px;font-weight:700;margin:6px 2px 10px}
.tl{position:relative;padding-left:20px;margin-bottom:18px}
.tl::before{content:"";position:absolute;left:5px;top:6px;bottom:6px;width:2px;background:var(--line)}
.tl li{list-style:none;position:relative;font-size:13.5px;padding:5px 0}
.tl li::before{content:"";position:absolute;left:-20px;top:11px;width:12px;height:12px;border-radius:50%;background:var(--brand);border:3px solid var(--bg)}
.sh-actions{display:grid;gap:10px}
.sh-note{font-size:12px;color:var(--muted);background:var(--surface-2);border-radius:14px;padding:10px 12px;margin-bottom:14px}
