/* Akaun ibu bapa — pagar tahun lahir, log masuk Google, akses, panel Akaun. Gaya sama dengan intro.css. */
.ak-screen { display: flex; align-items: center; justify-content: center; padding: calc(64px + var(--safe-t)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.ak-card { position: relative; width: min(560px, 100%); max-height: 100%; overflow-y: auto; touch-action: pan-y; -webkit-overflow-scrolling: touch;
  background: #FFFDF7; border: 6px solid var(--ink); border-radius: 36px; box-shadow: 0 10px 0 rgba(51,38,43,.22);
  padding: 22px 26px 22px; text-align: center; animation: tma-pop-in .4s cubic-bezier(.3,1.5,.5,1) both;
  -webkit-user-select: text; user-select: text; }
.ak-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border-radius: 999px;
  padding: 3px 18px 3px 8px; font-size: 19px; font-weight: 800; }
.ak-tag svg { width: 30px; height: 30px; }
.ak-h { margin: 10px 0 4px; font-size: clamp(26px, 3.6vh, 34px); font-weight: 800; line-height: 1.1; }
.ak-p { margin: 0 0 10px; font-size: 18px; font-weight: 600; line-height: 1.35; color: #5A4A50; }
.ak-p b { color: var(--ink); word-break: break-all; }
.ak-msg { min-height: 24px; margin: 4px 0 6px; font-size: 17px; font-weight: 800; color: #D23A5A; line-height: 1.3; }
.ak-msg:empty { min-height: 8px; }
.ak-kecil { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--muted); line-height: 1.35; }
.ak-ujian { margin: 8px 0 0; font-size: 13px; font-weight: 800; letter-spacing: 1px; color: #B07CFF; }

/* pagar tahun lahir */
.ak-slots { display: flex; justify-content: center; gap: 10px; margin: 8px 0 2px; }
.ak-slot { width: 58px; height: 70px; border: 5px solid var(--ink); border-radius: 18px; background: #fff; font-size: 40px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; line-height: 1; transition: border-color .2s, background .2s; }
.ak-slot.on { border-color: var(--pink); box-shadow: 0 0 0 4px #FFD1DA; }
.ak-slots.lulus .ak-slot { background: #D6F5E8; border-color: var(--green); }
.ak-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 330px; margin: 0 auto; }
.ak-key { height: 64px; border: 4px solid var(--ink); border-radius: 20px; background: #fff; font-size: 32px; font-weight: 800; cursor: pointer;
  box-shadow: 0 5px 0 rgba(51,38,43,.2); display: flex; align-items: center; justify-content: center; }
.ak-key:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(51,38,43,.2); }
.ak-key svg { width: 40px; height: 40px; }
.ak-k-fn { background: #F3EADF; }
.ak-k-batal { font-size: 22px; }

/* butang */
.ak-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 72px; padding: 6px 26px; border-radius: 999px;
  border: var(--outline); font-size: 22px; font-weight: 800; cursor: pointer; text-decoration: none; color: #fff; box-shadow: 0 6px 0 rgba(51,38,43,.25); line-height: 1.15; }
.ak-btn svg { width: 36px; height: 36px; flex: none; }
.ak-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(51,38,43,.25); }
.ak-btn:disabled { opacity: .6; }
.ak-btn-biru { background: var(--blue); } .ak-btn-pink { background: var(--pink); } .ak-btn-hijau { background: var(--green); }
.ak-btn-putih { background: #fff; color: var(--ink); } .ak-btn-kuning { background: var(--yellow); color: var(--ink); }
.ak-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.ak-google { width: 100%; background: #fff; color: var(--ink); font-size: 24px; margin-top: 4px; }
.ak-google svg { width: 38px; height: 38px; }
.ak-google[aria-disabled="true"] { opacity: .5; }
.ak-google.sibuk { opacity: .75; pointer-events: none; }
.ak-google.sibuk svg { animation: ix-spin 1s linear infinite; }

/* persetujuan */
.ak-setuju { display: flex; align-items: center; gap: 12px; text-align: left; margin: 6px 0 12px; padding: 10px 14px; border: 4px solid var(--ink); border-radius: 22px;
  background: #fff; font-size: 17px; font-weight: 700; line-height: 1.3; cursor: pointer; }
.ak-cb { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ak-kotak { flex: none; width: 44px; height: 44px; border: 4px solid var(--ink); border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; }
.ak-kotak svg { width: 32px; height: 32px; visibility: hidden; }
.ak-cb:checked + .ak-kotak { background: var(--green); }
.ak-cb:checked + .ak-kotak svg { visibility: visible; }
.ak-cb:focus-visible + .ak-kotak { box-shadow: 0 0 0 4px #BFD8FF; }
.ak-pautan { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--blue); text-decoration: underline; cursor: pointer; }

/* notis pelayar dalam aplikasi */
.ak-notis { text-align: left; background: #FFF4CC; border: 4px solid var(--ink); border-radius: 22px; padding: 12px 14px; margin: 0 0 12px; font-size: 16px; line-height: 1.35; }
.ak-notis b { font-weight: 800; }
.ak-notis p { margin: 6px 0; }
.ak-notis .ak-btn { width: 100%; min-height: 60px; font-size: 19px; margin-top: 6px; }
.ak-notis .ak-btn svg { width: 30px; height: 30px; }

/* modal (panel Akaun di hab, Terma) */
.ak-modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: calc(16px + var(--safe-t)) 16px 16px;
  background: rgba(51,38,43,.55); animation: ix-in-f .25s ease-out both; }
.ak-terma-modal { z-index: 160; }
.ak-x { position: absolute; top: 12px; right: 12px; width: 56px; height: 56px; border-radius: 50%; border: 4px solid var(--ink); background: var(--pink);
  display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 0 rgba(51,38,43,.25); }
.ak-x svg { width: 30px; height: 30px; }
.ak-profil { display: flex; align-items: center; gap: 14px; text-align: left; margin: 16px 0 10px; padding: 12px 14px; background: #fff; border: 4px solid var(--ink); border-radius: 24px; }
.ak-profil > div { display: flex; flex-direction: column; min-width: 0; }
.ak-avatar { flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--yellow); border: 4px solid var(--ink); display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; }
.ak-nama { font-size: 22px; font-weight: 800; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-emel { font-size: 16px; font-weight: 600; color: #5A4A50; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-status { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 14px; border-radius: 18px; border: 4px solid var(--ink); font-size: 17px; font-weight: 800; line-height: 1.25; }
.ak-status svg { width: 38px; height: 38px; flex: none; }
.ak-status[data-s="ok"] { background: #D6F5E8; }
.ak-status[data-s="simpan"] { background: #E3EEFF; }
.ak-status[data-s="tunggu"] { background: #FFF0C2; }
.ak-status[data-s="ralat"] { background: #FFE0E6; }
.ak-terma { width: min(620px, 100%); text-align: left; }
.ak-terma .ak-h { text-align: center; }
.ak-terma-isi { font-size: 17px; line-height: 1.45; font-weight: 600; }
.ak-terma-isi h3 { margin: 12px 0 4px; font-size: 20px; font-weight: 800; }
.ak-terma-isi ul { margin: 0; padding-left: 22px; }
.ak-terma-isi li { margin: 4px 0; }
.ak-terma .ak-faham { display: flex; margin: 16px auto 0; }

/* butang Akaun di kepala hab + titik status */
.akaun-hub { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px;
  min-height: 64px; padding: 4px 16px 4px 10px; border-radius: 999px; border: 4px solid var(--ink); background: #fff;
  font-size: 19px; font-weight: 800; cursor: pointer; box-shadow: 0 5px 0 rgba(51,38,43,.22); }
.akaun-hub svg { width: 42px; height: 42px; }
.akaun-hub:active { transform: translateY(calc(-50% + 4px)); box-shadow: 0 1px 0 rgba(51,38,43,.22); }
.ak-dot { position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--ink); background: #E7DCCD; }
.ak-dot[data-s="ok"] { background: var(--green); }
.ak-dot[data-s="simpan"] { background: var(--blue); }
.ak-dot[data-s="tunggu"], .ak-dot[data-s="ralat"] { background: var(--orange); }
@media (max-width: 900px) { .akaun-hub span { display: none; } .akaun-hub { padding: 4px 10px; } }

/* telefon */
@media (max-width: 520px) {
  .ak-card { padding: 18px 16px; border-radius: 28px; }
  .ak-h { font-size: 25px; }
  .ak-p { font-size: 16px; }
  .ak-slot { width: 52px; height: 62px; font-size: 34px; }
  .ak-key { height: 58px; }
  .ak-btn { font-size: 19px; padding: 6px 18px; min-height: 64px; }
  .ak-google { font-size: 18px; gap: 8px; padding: 6px 10px; }
  .ak-google svg { width: 30px; height: 30px; }
  .ak-row .ak-btn { flex: 1 1 100%; }
  .ak-setuju { font-size: 15px; }
}
@media (max-height: 640px) and (orientation: landscape) {
  .ak-key { height: 52px; } .ak-slot { height: 56px; } .ak-h { margin-top: 6px; }
}

/* "Cuba dulu tanpa daftar" (mod tetamu) — pautan sekunder di bawah kad log masuk / tahun lahir */
.ak-cuba { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 16px auto 0; padding: 10px 18px; min-height: 56px;
  border: 3px dashed #33262B; border-radius: 18px; color: #33262B; text-decoration: none; font-weight: 800; font-size: 18px; max-width: 360px; }
.ak-cuba small { font-weight: 600; font-size: 13px; opacity: .7; }
.ak-cuba:active { transform: translateY(2px); }

/* ---------- Prestasi anak (/akaun/) — shared/prestasi.js ---------- */
.pk-card { -webkit-user-select: none; user-select: none; }
.pk-pilih { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; }
.pk-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 60px; padding: 4px 18px 4px 6px; border: 4px solid var(--ink); border-radius: 999px;
  background: #fff; font: inherit; font-size: 19px; font-weight: 800; color: var(--ink); cursor: pointer; box-shadow: 0 4px 0 rgba(51,38,43,.2); max-width: 100%; }
.pk-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-chip .pr-av { width: 46px; height: 46px; border-width: 3px; }
.pk-chip[aria-pressed="true"] { background: var(--yellow); }
.pk-chip:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(51,38,43,.2); }
.pk-chip:focus-visible, .pk-tip-lain:focus-visible { outline: 4px solid var(--blue); outline-offset: 2px; }
.pk-badan { min-height: 120px; }
.pk-galak { margin: 12px 0 10px; font-size: 20px; font-weight: 800; line-height: 1.3; }
.pk-h { margin: 18px 0 8px; font-size: 19px; font-weight: 800; }
.pk-jubin { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pk-j, .pk-k { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 4px solid var(--ink); border-radius: 22px; background: #fff; min-width: 0; }
.pk-j svg, .pk-k svg { width: 46px; height: 46px; flex: none; }
.pk-j > div, .pk-k > div { display: flex; flex-direction: column; min-width: 0; }
.pk-j b { font-size: 34px; font-weight: 800; line-height: 1; }
.pk-j span, .pk-k span { font-size: 15px; font-weight: 700; color: #5A4A50; line-height: 1.25; }
.pk-j-kuning { background: #FFF3C4; } .pk-j-hijau { background: #D6F5E8; }
.pk-carta { display: flex; align-items: stretch; gap: 8px; height: 190px; padding: 12px 12px 8px; border: 4px solid var(--ink); border-radius: 22px; background: #fff; }
.pk-lajur { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; }
.pk-nilai { font-size: 15px; font-weight: 800; min-height: 20px; line-height: 20px; }
.pk-bar { width: min(100%, 44px); min-height: 0; background: var(--green); border: 4px solid var(--ink); border-bottom-width: 0; border-radius: 14px 14px 0 0;
  transform-origin: bottom; animation: pk-naik .6s cubic-bezier(.3,1.4,.5,1) both; }
.pk-lajur.kini .pk-bar { background: var(--pink); }
.pk-lajur.kosong .pk-bar { border: 0; }
.pk-hari { width: 100%; text-align: center; padding-top: 6px; border-top: 4px solid var(--ink); font-size: 14px; font-weight: 800; white-space: nowrap; }
.pk-lajur.kini .pk-hari { color: #D23A5A; }
@keyframes pk-naik { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.pk-fav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pk-fav li { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border: 4px solid var(--ink); border-radius: 22px; background: #fff; }
.pk-ikon { flex: none; width: 52px; height: 52px; border-radius: 16px; border: 3px solid var(--ink); overflow: hidden; display: flex; }
.pk-ikon img { width: 100%; height: 100%; object-fit: cover; }
.pk-fav b { flex: 1; min-width: 0; font-size: 19px; font-weight: 800; line-height: 1.2; }
.pk-kali { flex: none; padding: 2px 12px; border-radius: 999px; background: #F3EADF; font-size: 15px; font-weight: 800; }
.pk-koleksi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pk-k b { font-size: 22px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.pk-buku { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pk-buku li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border: 3px solid var(--ink); border-radius: 999px; background: #fff;
  font-size: 15px; font-weight: 700; line-height: 1.2; }
.pk-buku li span { padding: 2px 10px; border-radius: 999px; background: var(--w); color: #fff; font-size: 13px; font-weight: 800; text-shadow: 0 1px 0 rgba(51,38,43,.35); white-space: nowrap; }
.pk-kosong { display: flex; align-items: center; gap: 14px; margin: 12px 0 0; padding: 12px 14px; border: 4px dashed var(--ink); border-radius: 24px; background: #FFF8EC; }
.pk-kosong .pr-av { width: 84px; height: 84px; border-width: 4px; }
.pk-kosong p { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.pk-kosong b { font-size: 20px; font-weight: 800; line-height: 1.25; }
.pk-kosong span { font-size: 16px; font-weight: 600; color: #5A4A50; line-height: 1.3; }
.pk-sumber { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: #6E5E55; }
.pk-nota { margin: 8px 0 0; padding: 8px 12px; border-radius: 16px; background: #F3EADF; font-size: 14px; font-weight: 700; line-height: 1.35; color: #5A4A50; }
.pk-tip { margin-top: 16px; padding: 12px 14px; border: 4px solid var(--ink); border-radius: 24px; background: #FFF3C4; }
.pk-tip-kepala { display: flex; align-items: center; gap: 8px; }
.pk-tip-kepala svg { width: 38px; height: 38px; flex: none; }
.pk-tip-kepala b { flex: 1; min-width: 0; font-size: 20px; font-weight: 800; white-space: nowrap; }
.pk-tip .pk-tip-lain { min-height: 56px; padding: 4px 16px; font-size: 17px; box-shadow: 0 4px 0 rgba(51,38,43,.2); }
.pk-tip .pk-tip-lain svg { width: 26px; height: 26px; }
.pk-tip-isi { margin: 8px 0 6px; font-size: 18px; font-weight: 700; line-height: 1.4; }
.pk-pakar { margin: 0; font-size: 13px; font-weight: 700; color: #6E5E55; line-height: 1.35; }
@media (max-width: 520px) {
  .pk-chip { font-size: 17px; min-height: 56px; }
  .pk-j { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pk-j b { font-size: 30px; }
  .pk-carta { gap: 4px; height: 170px; padding: 10px 8px 6px; }
  .pk-hari { font-size: 12px; }
  .pk-bar { border-width: 3px; border-radius: 10px 10px 0 0; }
  .pk-koleksi { grid-template-columns: 1fr 1fr; }
  .pk-k { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pk-k svg { width: 38px; height: 38px; }
  .pk-kosong { flex-direction: column; text-align: center; }
  .pk-tip .pk-tip-lain { padding: 4px 12px; font-size: 16px; gap: 6px; }
  .pk-tip-kepala b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .pk-bar { animation: none; } }

/* Sambung peranti — kod 6 digit besar & mudah dibaca */
.ak-kod-besar { margin: 10px auto 6px; padding: 14px 18px; border: 4px solid #33262B; border-radius: 22px; background: #FFF0C2;
  font-size: clamp(40px, 11vw, 64px); font-weight: 800; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; max-width: 340px; }
.ak-sambung { margin-top: 12px; }
.ak-sambung svg { width: 30px; height: 30px; }
.sb-kod-input { display: block; width: 100%; max-width: 340px; box-sizing: border-box; margin: 10px auto; padding: 12px; border: 4px solid #33262B; border-radius: 20px;
  font: inherit; font-size: 40px; font-weight: 800; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }
.sb-ok { text-align: center; }
.sb-ok svg { width: 84px; height: 84px; }
.ak-kod-baru[hidden] { display: none !important; }
.ak-kodm.tamat { opacity: .35; text-decoration: line-through; }
.ak-atau { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; font-weight: 700; opacity: .6; }
.ak-atau::before, .ak-atau::after { content: ''; flex: 1; border-top: 2px dashed #33262B; }
.ak-ada-kod { background: #F0F6FF; border-radius: 18px; padding: 10px 12px 4px; }
.ak-kodm { white-space: nowrap; font-size: clamp(30px, 8.5vw, 54px); letter-spacing: 3px; max-width: 380px; }
