/* ============================================================
   YAPENI MOBILE — aplikasi siswa / wali murid
   Desain: hijau sekolah, kartu putih, sudut membulat 16-20px
   ============================================================ */
:root {
  --hijau: #127a45;
  --hijau-d: #0b5c33;
  --hijau-dd: #084326;
  --hijau-l: #e8f5ee;
  /* gradasi utama (bisa diganti dari Pengaturan → Tema Warna Aplikasi) */
  --grad-a: #35c281;
  --grad-b: #14a05e;
  --grad-c: #0b6b3a;
  --emas: #d9a520;
  --oranye: #ef7d1a;
  --merah: #dc3545;
  --biru: #1b7fb8;
  --ungu: #7b4fc4;
  --teks: #16231c;
  --teks2: #5c6b62;
  --teks3: #93a29a;
  --garis: #e4eae6;
  --bg: #f3f6f4;
  --putih: #fff;
  --r: 18px;
  --r-sm: 12px;
  --sh: 0 2px 10px rgba(16, 60, 38, .06);
  --sh2: 0 8px 28px rgba(16, 60, 38, .12);
  --nav-h: 66px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #dfe7e2; color: var(--teks); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }
a { color: var(--hijau); text-decoration: none; }
.hidden { display: none !important; }

#app { max-width: 480px; margin: 0 auto; background: var(--bg); min-height: 100vh; position: relative; box-shadow: 0 0 40px rgba(0, 0, 0, .07); }
@media (min-width: 700px) { #app { margin: 0 auto; } }

/* ---------- layar ---------- */
.screen { display: none; min-height: 100vh; flex-direction: column; background: var(--bg); }
.screen.aktif { display: flex; }
.page { flex: 1; padding: 0 0 calc(var(--nav-h) + 18px); overflow-x: hidden; }

/* ---------- splash ---------- */
#splash { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--hijau) 0%, var(--hijau-d) 55%, var(--hijau-dd) 100%); text-align: center;
  max-width: 480px; margin: 0 auto; }
#splash .hero { position: absolute; bottom: 0; left: 0; right: 0; height: 46%; background-size: cover; background-position: center 30%;
  -webkit-mask-image: linear-gradient(to top, #000 62%, transparent); mask-image: linear-gradient(to top, #000 62%, transparent); opacity: .95; }
#splash .isi { position: relative; z-index: 2; margin-bottom: 24%; }
#splash img.logo { width: 118px; }
#splash h1 { color: #fff; font-size: 27px; letter-spacing: 1.5px; margin: 10px 0 2px; font-weight: 800; }
#splash p { color: rgba(255, 255, 255, .82); margin: 0; font-size: 13px; }
#splash .bawah { position: absolute; bottom: 26px; z-index: 2; color: #fff; font-size: 13px; font-weight: 700; text-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
#splash .bawah small { display: block; font-weight: 400; font-size: 10.5px; opacity: .9; letter-spacing: .3px; }
.loader { width: 34px; height: 34px; border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; margin: 28px auto 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- login (tema Premium Gradasi hijau YAPENI) ---------- */
#scr-login {
  background:
    radial-gradient(120% 62% at 50% -6%, #d9f3e4 0%, rgba(217, 243, 228, 0) 60%),
    radial-gradient(95% 52% at 88% 4%, rgba(94, 219, 164, .42) 0%, rgba(94, 219, 164, 0) 58%),
    radial-gradient(85% 48% at 6% 2%, rgba(33, 168, 106, .26) 0%, rgba(33, 168, 106, 0) 55%),
    linear-gradient(180deg, #f2fbf6 0%, #fbfffd 44%, #ffffff 100%);
  position: relative;
}
#scr-login::before, #scr-login::after { content: ''; position: absolute; border-radius: 50%; filter: blur(40px); pointer-events: none; }
#scr-login::before { width: 250px; height: 250px; top: -118px; left: -74px; background: rgba(52, 196, 131, .34); }
#scr-login::after { width: 215px; height: 215px; top: -70px; right: -84px; background: rgba(24, 160, 99, .26); }

.login-wrap { position: relative; z-index: 2; padding: 20px 22px 20px; flex: 1; display: flex; flex-direction: column; }

/* hero ilustrasi */
.lg-hero { display: flex; justify-content: center; padding: 0; }
.lg-hero svg { width: 100%; max-width: 268px; height: auto; display: block; }

/* brand */
.lg-brand { text-align: center; margin: 6px 0 13px; }
.lg-brand .lg-mark { width: 54px; height: 54px; padding: 5px; border-radius: 50%; background: #fff; object-fit: contain;
  box-shadow: 0 8px 20px rgba(16, 106, 62, .20), 0 0 0 1.5px rgba(94, 206, 150, .55); }
.lg-brand h2 { margin: 9px 0 0; font-size: 20px; font-weight: 800; letter-spacing: .8px;
  background: linear-gradient(120deg, var(--grad-c) 0%, var(--grad-b) 55%, var(--grad-a) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lg-brand p { margin: 3px 0 0; color: #5f7d6c; font-size: 12.5px; }

/* tab Masuk / Daftar */
.lg-tab { display: flex; gap: 4px; padding: 5px; margin-bottom: 15px; border-radius: 999px;
  background: rgba(255, 255, 255, .74); border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 10px 26px rgba(16, 106, 62, .13), inset 0 1px 0 #fff; }
.lg-tab button { flex: 1; padding: 13px 10px; border-radius: 999px; font-size: 14.5px; font-weight: 700; color: #64826f; transition: .2s; }
.lg-tab button.on { color: #fff; background: linear-gradient(135deg, var(--grad-a) 0%, var(--grad-b) 45%, var(--grad-c) 100%);
  box-shadow: 0 8px 20px rgba(13, 110, 66, .32); }

/* form login (tanpa kartu putih, langsung di atas gradasi) */
#scr-login .card { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
#scr-login .field { margin-bottom: 14px; }
#scr-login .field label { font-size: 13px; font-weight: 700; color: #1c3a2a; margin-bottom: 7px; }
#scr-login .inp { padding: 15px 16px; border: 1.5px solid #dcebe2; border-radius: 16px; background: #fff; color: #16321f;
  font-size: 14.5px; box-shadow: 0 4px 14px rgba(22, 106, 66, .06); }
#scr-login .inp::placeholder { color: #a9bfb3; }
#scr-login .inp:focus { border-color: #17a45f; background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 164, 95, .15), 0 6px 16px rgba(22, 106, 66, .09); }
#scr-login .pos .toggle { color: #a3b8ab; }
#scr-login .baris-antara { margin: 2px 0 15px; font-size: 12.5px; }
#scr-login .cek { color: #5f7d6c; }
#scr-login .cek input { accent-color: #127a45; }
#scr-login .baris-antara a { color: #0f7a45; font-weight: 700; }
#scr-login .btn { padding: 16px; border-radius: 999px; font-size: 15px; font-weight: 800;
  background: linear-gradient(135deg, var(--grad-a) 0%, var(--grad-b) 45%, var(--grad-c) 100%);
  box-shadow: 0 12px 26px rgba(13, 110, 66, .32); }
#scr-login .btn:hover { background: linear-gradient(135deg, var(--grad-a) 0%, var(--grad-b) 45%, var(--grad-c) 100%); filter: brightness(.93); }
#scr-login .btn.outline { background: rgba(255, 255, 255, .92); color: #2d4a3a; border: 1.5px solid #dcebe2;
  font-weight: 700; box-shadow: 0 4px 14px rgba(22, 106, 66, .07); }
#scr-login .btn.outline:hover { background: #fff; border-color: #9fd9bd; }
#scr-login .pemisah { margin: 16px 0; color: #93a29a; font-size: 12px; }
#scr-login .pemisah::before, #scr-login .pemisah::after { background: #e2eee7; }
#scr-login .alert { border-radius: 14px; }
.lg-syarat { margin: 13px 2px 0; text-align: center; color: #5f7d6c; font-size: 11.5px; line-height: 1.7; }
.lg-syarat a { color: #0f7a45; font-weight: 700; text-decoration: underline; }
.lg-daftar h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: #1c3a2a; }
.lg-daftar p { margin: 0 0 10px; color: #5f7d6c; font-size: 12.5px; line-height: 1.7; }
.lg-daftar ul { margin: 0 0 16px; padding-left: 20px; color: #2d4a3a; font-size: 12.5px; line-height: 1.9; }
#scr-login .login-kaki { text-align: center; margin-top: auto; padding-top: 16px; color: #8fa79a; font-size: 11.5px; line-height: 1.7; }

/* latar halaman senada saat layar login tampil (desktop) */
body:has(#scr-login.aktif) { background: linear-gradient(180deg, #eaf7f0 0%, #dbeae1 100%); }

/* komponen lama (dipakai layar lain & modal) */
.card { background: var(--putih); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--teks2); margin-bottom: 6px; }
.inp { width: 100%; padding: 12px 13px; border: 1.5px solid var(--garis); border-radius: var(--r-sm); background: #fbfdfb; outline: none; transition: .15s; }
.inp:focus { border-color: var(--hijau); background: #fff; box-shadow: 0 0 0 3px rgba(18, 122, 69, .1); }
.pos { position: relative; }
.pos .toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 8px; color: var(--teks3); }
.baris-antara { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 17px; font-size: 12.5px; }
.cek { display: flex; align-items: center; gap: 7px; color: var(--teks2); user-select: none; }
.cek input { width: 16px; height: 16px; accent-color: var(--hijau); }
.btn { width: 100%; padding: 13px; border-radius: var(--r-sm); background: var(--hijau); color: #fff; font-weight: 700; font-size: 14.5px;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: .15s; }
.btn:hover { background: var(--hijau-d); }
.btn:active { transform: scale(.99); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.outline { background: #fff; color: var(--teks); border: 1.5px solid var(--garis); font-weight: 600; }
.btn.outline:hover { background: #f7faf8; }
.btn.kecil { padding: 9px 14px; width: auto; font-size: 13px; }
.btn.merah { background: var(--merah); }
.pemisah { display: flex; align-items: center; gap: 10px; color: var(--teks3); font-size: 12px; margin: 17px 0; }
.pemisah::before, .pemisah::after { content: ''; flex: 1; height: 1px; background: var(--garis); }
.alert { padding: 11px 13px; border-radius: var(--r-sm); font-size: 12.5px; margin-bottom: 13px; display: flex; gap: 8px; align-items: flex-start; }
.alert.err { background: #fdecee; color: #a3182a; }
.alert.ok { background: var(--hijau-l); color: var(--hijau-d); }
.alert.info { background: #eaf3fa; color: #14577d; }

/* ---------- header dalam ---------- */
.topbar { background: linear-gradient(135deg, var(--hijau) 0%, var(--hijau-d) 100%); color: #fff; padding: 14px 18px 18px;
  border-radius: 0 0 22px 22px; position: sticky; top: 0; z-index: 20; box-shadow: 0 4px 16px rgba(8, 67, 38, .18); }
.topbar .r1 { display: flex; align-items: center; justify-content: space-between; }
.topbar h2 { margin: 0; font-size: 16px; font-weight: 700; }
.topbar .sub { font-size: 11.5px; opacity: .85; }
.topbar .aksi { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; color: #fff; position: relative; }
.icon-btn .badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; border-radius: 8px; background: #ff4d4f; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 1.5px solid var(--hijau-d); }
.nav-belakang { display: flex; align-items: center; gap: 10px; }

/* ---------- beranda ---------- */
.halo { display: flex; align-items: center; gap: 11px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--hijau-d); font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255, 255, 255, .5); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.kartu-utama { margin: -12px 16px 0; background: linear-gradient(135deg, var(--hijau) 0%, var(--hijau-d) 100%); border-radius: var(--r);
  padding: 15px; color: #fff; box-shadow: var(--sh2); position: relative; z-index: 5; }
.kartu-utama .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.kartu-stat { background: rgba(255, 255, 255, .14); border-radius: var(--r-sm); padding: 11px 12px; backdrop-filter: blur(3px); }
.kartu-stat .lbl { font-size: 11.5px; opacity: .88; display: flex; align-items: center; gap: 5px; }
.kartu-stat .val { font-size: 17px; font-weight: 800; margin-top: 2px; }
.kartu-stat.garis { border-left: 3px solid rgba(255, 255, 255, .55); }
.seksi { padding: 18px 16px 0; }
.seksi .judul { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.seksi .judul h3 { margin: 0; font-size: 14.5px; font-weight: 700; }
.seksi .judul a { font-size: 12.5px; font-weight: 600; }
.aksi-cepat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.aksi-cepat button { background: #fff; border-radius: var(--r-sm); padding: 12px 4px 10px; box-shadow: var(--sh); display: flex; flex-direction: column;
  align-items: center; gap: 7px; font-size: 10.5px; color: var(--teks2); font-weight: 600; transition: .15s; }
.aksi-cepat button:hover { transform: translateY(-2px); box-shadow: var(--sh2); }
.aksi-cepat .ik { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--hijau-l); color: var(--hijau); }
.aksi-cepat .ik.or { background: #fdf0e2; color: var(--oranye); }
.aksi-cepat .ik.bi { background: #e8f2f9; color: var(--biru); }
.aksi-cepat .ik.un { background: #f1ecfa; color: var(--ungu); }

.item { background: #fff; border-radius: var(--r); padding: 13px 14px; box-shadow: var(--sh); display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.item .ik { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--hijau-l); color: var(--hijau); }
.item .isi { flex: 1; min-width: 0; }
.item .isi .t { font-weight: 700; font-size: 13.5px; }
.item .isi .s { font-size: 11.5px; color: var(--teks3); }
.item .isi .s.merah { color: var(--merah); }
.item .kanan { text-align: right; flex: none; }
.item .kanan .n { font-weight: 800; font-size: 13.5px; }
.badge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.badge.lunas { background: var(--hijau-l); color: var(--hijau-d); }
.badge.belum { background: #fdf0e2; color: #b45c0a; }
.badge.terlambat { background: #fdecee; color: #ad1b2b; }
.badge.info { background: #e8f2f9; color: #14577d; }
.badge.abu { background: #eef1ef; color: var(--teks2); }

/* ---------- instruksi pembayaran ---------- */
.kotak-kode { background: #fff; border-radius: var(--r); box-shadow: var(--sh); margin: 14px 16px; padding: 18px 16px; text-align: center; }
.kotak-kode .lbl { font-size: 12px; color: var(--teks3); font-weight: 600; margin-bottom: 6px; }
.kotak-kode .kode { font-size: 21px; font-weight: 800; letter-spacing: 1.1px; color: var(--hijau-d); word-break: break-all; }

.bar-bawah { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; background: #fff; border-top: 1px solid var(--garis);
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px 4px calc(7px + env(safe-area-inset-bottom)); z-index: 40; }
.bar-bawah button { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--teks3); font-size: 10px; font-weight: 600; padding: 4px 0; }
.bar-bawah button.on { color: var(--hijau); }
.bar-bawah button.mid { position: relative; }
.bar-bawah button.mid .ik { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--hijau), var(--hijau-d));
  color: #fff; display: flex; align-items: center; justify-content: center; margin-top: -22px; box-shadow: 0 6px 16px rgba(11, 92, 51, .38); border: 3px solid #fff; }

/* ---------- tagihan ---------- */
.tabs { display: flex; gap: 7px; padding: 13px 16px 3px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 7px 15px; border-radius: 20px; background: #fff; color: var(--teks2); font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 1px solid var(--garis); }
.tabs button.on { background: var(--hijau); color: #fff; border-color: var(--hijau); }
.list { padding: 12px 16px 0; }
.kartu-tagihan { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 13px 14px; margin-bottom: 10px; border-left: 4px solid var(--hijau); }
.kartu-tagihan.belum { border-left-color: var(--oranye); }
.kartu-tagihan.terlambat { border-left-color: var(--merah); }
.kartu-tagihan .atas { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.kartu-tagihan .nama { font-weight: 700; font-size: 13.5px; }
.kartu-tagihan .per { font-size: 11.5px; color: var(--teks3); }
.kartu-tagihan .nom { font-weight: 800; font-size: 14px; text-align: right; }
.kartu-tagihan .bawah { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--garis); font-size: 11.5px; color: var(--teks3); }
.cek-item { display: flex; gap: 11px; align-items: center; background: #fff; border-radius: var(--r); padding: 12px 14px; box-shadow: var(--sh); margin-bottom: 10px; }
.cek-item input { width: 18px; height: 18px; accent-color: var(--hijau); flex: none; }
.sticky-bayar { position: fixed; left: 0; right: 0; bottom: var(--nav-h); max-width: 480px; margin: 0 auto; background: #fff; border-top: 1px solid var(--garis);
  padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 39; box-shadow: 0 -4px 14px rgba(0, 0, 0, .05); }
.sticky-bayar .lbl { font-size: 11px; color: var(--teks3); }
.sticky-bayar .tot { font-size: 16px; font-weight: 800; color: var(--hijau-d); }

/* ---------- detail ---------- */
.invoice { background: #fff; border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; margin: 14px 16px; }
.invoice .head { background: linear-gradient(135deg, var(--hijau), var(--hijau-d)); color: #fff; padding: 15px 16px; }
.invoice .head .t { font-weight: 800; font-size: 16px; }
.invoice .head .k { font-size: 11.5px; opacity: .9; }
.invoice .body { padding: 6px 16px 12px; }
.rincian { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--garis); font-size: 13px; }
.rincian:last-child { border-bottom: 0; }
.rincian .k { color: var(--teks2); }
.rincian .v { font-weight: 600; text-align: right; }
.rincian.total { border-top: 2px solid var(--garis); margin-top: 6px; padding-top: 12px; }
.rincian.total .v { color: var(--merah); font-size: 16px; font-weight: 800; }

/* ---------- metode ---------- */
.metode { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: var(--r); padding: 13px 14px; box-shadow: var(--sh);
  margin-bottom: 10px; border: 2px solid transparent; cursor: pointer; transition: .15s; }
.metode.on { border-color: var(--hijau); background: #f7fdf9; }
.metode .ik { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--hijau-l); color: var(--hijau); }
.metode .isi { flex: 1; }
.metode .isi .t { font-weight: 700; font-size: 13.5px; }
.metode .isi .s { font-size: 11.5px; color: var(--teks3); }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--garis); flex: none; position: relative; }
.metode.on .radio { border-color: var(--hijau); }
.metode.on .radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--hijau); }

/* ---------- sukses ---------- */
.sukses { text-align: center; padding: 40px 22px 10px; }
.sukses .ling { width: 92px; height: 92px; border-radius: 50%; background: var(--hijau-l); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.sukses .ling .in { width: 68px; height: 68px; border-radius: 50%; background: var(--hijau); display: flex; align-items: center; justify-content: center; color: #fff; }
.sukses h2 { margin: 0 0 4px; font-size: 19px; }
.sukses p { margin: 0; color: var(--teks2); font-size: 13px; }

/* ---------- profil ---------- */
.profil-head { text-align: center; padding: 6px 16px 16px; }
.profil-head .ava { width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 10px; background: #fff; color: var(--hijau-d); font-size: 30px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 3px solid rgba(255, 255, 255, .55); overflow: hidden; cursor: pointer; }
.profil-head .ava img { width: 100%; height: 100%; object-fit: cover; }
.profil-head h3 { margin: 0; font-size: 17px; }
.profil-head p { margin: 2px 0 0; font-size: 12.5px; opacity: .9; }
.grup { background: #fff; border-radius: var(--r); box-shadow: var(--sh); margin: 0 16px 12px; overflow: hidden; }
.grup .hd { padding: 11px 14px; font-size: 12px; font-weight: 700; color: var(--teks3); text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--garis); }
.grup .baris { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--garis); font-size: 13px; }
.grup .baris:last-child { border-bottom: 0; }
.grup .baris .k { color: var(--teks2); }
.grup .baris .v { font-weight: 600; text-align: right; }

/* ---------- notifikasi ---------- */
.ntf { display: flex; gap: 12px; background: #fff; border-radius: var(--r); padding: 13px 14px; box-shadow: var(--sh); margin-bottom: 10px; position: relative; }
.ntf.baru { background: #f7fdf9; border: 1px solid #d4ecdd; }
.ntf .ik { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.ntf .t { font-weight: 700; font-size: 13px; }
.ntf .p { font-size: 12px; color: var(--teks2); }
.ntf .w { font-size: 10.5px; color: var(--teks3); margin-top: 3px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hijau); position: absolute; top: 14px; right: 14px; }

/* ---------- modal / toast ---------- */
.modal { position: fixed; inset: 0; background: rgba(9, 30, 20, .5); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.modal .box { background: #fff; border-radius: 20px 20px 0 0; width: 100%; max-width: 480px; padding: 20px; max-height: 86vh; overflow-y: auto; }
.modal .box h3 { margin: 0 0 14px; font-size: 16px; }
.modal.sheet-tengah { align-items: center; }
.modal.sheet-tengah .box { border-radius: var(--r); margin: 16px; }
#toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); background: #16231c; color: #fff; padding: 11px 18px;
  border-radius: 26px; font-size: 13px; z-index: 80; opacity: 0; transition: .25s; max-width: 88%; text-align: center; }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.kosong { text-align: center; padding: 44px 18px; color: var(--teks3); }
.kosong .ik { width: 66px; height: 66px; border-radius: 50%; background: #eef1ef; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.skeleton { height: 74px; border-radius: var(--r); background: linear-gradient(90deg, #eef1ef 25%, #f7faf8 50%, #eef1ef 75%); background-size: 200% 100%; animation: sk 1.2s infinite; margin-bottom: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ============================================================
   BERANDA (bentuk tampilan baru) — header gradasi + kartu
   ringkasan mengambang + grid 8 ikon + banner promo.
   Warna & nama tetap milik YAPENI (hijau).
   ============================================================ */
.hd-app { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--hijau) 0%, var(--hijau-d) 55%, var(--hijau-dd) 100%);
  color: #fff; padding: 16px 18px 60px; border-radius: 0 0 28px 28px; box-shadow: 0 12px 28px rgba(8, 67, 38, .22); }
.hd-app::before, .hd-app::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.hd-app::before { width: 184px; height: 184px; top: -74px; right: -62px; background: rgba(255, 255, 255, .1); }
.hd-app::after { width: 164px; height: 164px; bottom: -92px; right: 26px; background: rgba(120, 226, 175, .18); }
.hd-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hd-kiri { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hd-ikon { width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .16); color: #fff; display: flex; align-items: center; justify-content: center;
  flex: none; position: relative; backdrop-filter: blur(4px); }
.hd-ikon:active { transform: scale(.95); }
.hd-ikon .badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; border-radius: 8px; background: #ff4d4f; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 1.5px solid var(--hijau-d); }
.hd-kanan { display: flex; align-items: center; gap: 9px; flex: none; }
/* avatar foto profil siswa — tepat di samping tombol notifikasi (pojok kanan atas) */
.hd-ava { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--hijau-d); font-size: 13.5px; font-weight: 800; padding: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .8); box-shadow: 0 2px 9px rgba(8, 67, 38, .28); }
.hd-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-ava:active { transform: scale(.94); }
.hd-logo { width: 44px; height: 44px; object-fit: contain; flex: none; filter: drop-shadow(0 1px 5px rgba(255, 255, 255, .35)); }
.hd-merk { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.hd-merk-t { font-size: 15px; font-weight: 800; letter-spacing: .3px; white-space: nowrap; }
.hd-merk-s { font-size: 8.5px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .72; margin-top: 2px; white-space: nowrap; }
.hd-sapa { position: relative; margin-top: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.hd-halo { margin: 0; font-size: 18.5px; font-weight: 800; line-height: 1.2; }
.hd-pil { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; background: rgba(255, 255, 255, .2); padding: 3px 10px; border-radius: 20px;
  backdrop-filter: blur(4px); white-space: nowrap; }
.hd-teks { position: relative; margin: 5px 0 0; font-size: 12px; color: rgba(255, 255, 255, .82); }
.hd-cari { position: relative; margin-top: 14px; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 5px;
  box-shadow: 0 10px 22px rgba(8, 67, 38, .18); }
.hd-cari-ik { display: flex; margin-left: 9px; color: #93a29a; flex: none; }
.hd-cari input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 9px 0; font-size: 12.5px; color: var(--teks); }
.hd-cari input::placeholder { color: #a9bfb3; }
.hd-cari button { border-radius: 12px; background: var(--hijau); color: #fff; font-size: 12.5px; font-weight: 700; padding: 9px 18px; flex: none; }
.hd-cari button:hover { background: var(--hijau-d); }

.ringkas-wrap { padding: 0 16px; margin-top: -46px; position: relative; z-index: 5; }
.ringkas { background: #fff; border-radius: 22px; padding: 18px; box-shadow: 0 12px 30px -12px rgba(15, 23, 42, .26); }
.ringkas-atas { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ringkas-info { min-width: 0; }
.ringkas-lbl { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; color: var(--teks3); }
.ringkas-nilai { margin-top: 5px; font-size: 29px; font-weight: 800; letter-spacing: -.5px; color: var(--hijau-d); line-height: 1.1; }
.ringkas-sub { margin-top: 5px; font-size: 11px; color: var(--teks2); }
.ringkas-btn { flex: none; display: flex; align-items: center; gap: 6px; border: 1px solid var(--garis); background: #f6faf8; color: var(--teks); font-size: 12px;
  font-weight: 700; padding: 10px 14px; border-radius: 14px; }
.ringkas-btn svg { color: var(--hijau); }
.ringkas-btn:active { transform: scale(.97); }
.ringkas-garis { margin: 15px 0; border-top: 1.5px dashed var(--garis); }
.ringkas-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.ringkas-stat .lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--teks3); }
.ringkas-stat .val { margin-top: 3px; font-size: 16px; font-weight: 800; color: var(--hijau-d); }
.ringkas-stat > div:nth-child(2) .val { color: var(--oranye); }
.ringkas-stat > div:nth-child(3) .val { color: var(--merah); }

.seksi-p { padding: 14px 16px 0; }
.kartu-menu { background: #fff; border-radius: 22px; padding: 18px 12px; box-shadow: 0 12px 30px -12px rgba(15, 23, 42, .22);
  display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 18px; column-gap: 4px; }
.menu-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.menu-tile:active { transform: scale(.96); }
.mt-ik { width: 52px; height: 52px; border-radius: 50%; background: var(--hijau-l); color: var(--hijau); display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(18, 122, 69, .12); }
.mt-t { font-size: 10.5px; font-weight: 600; color: var(--teks2); text-align: center; line-height: 1.25; }
.menu-tile:nth-child(3) .mt-ik { background: #e8f2f9; color: var(--biru); }
.menu-tile:nth-child(4) .mt-ik { background: #f1ecfa; color: var(--ungu); }
.menu-tile:nth-child(6) .mt-ik { background: #fdf0e2; color: var(--oranye); }
.menu-tile:nth-child(8) .mt-ik { background: #e8f2f9; color: var(--biru); }
.menu-tile:nth-child(10) .mt-ik { background: #fdecee; color: var(--merah); }

.banner-box { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 12px 30px -12px rgba(15, 23, 42, .3); background: #fff; }
.banner-slide { display: block; width: 100%; padding: 0; }
.banner-slide img { width: 100%; display: block; aspect-ratio: 1600 / 820; object-fit: cover; }
.banner-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.banner-nav.kiri { left: 8px; }
.banner-nav.kanan { right: 8px; }
.banner-dot { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.banner-dot button { width: 7px; height: 7px; border-radius: 20px; background: rgba(255, 255, 255, .65); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: .2s; }
.banner-dot button.on { width: 20px; background: #fff; }
