/* ===== Akun orang tua (memakai site.css untuk header, tombol, warna) ===== */
.ak-body { background-color: #eaf6fb; }
.ak-wrap { width: min(100% - 32px, 980px); margin: 0 auto; padding: 28px 0 70px; }
.ak-narrow { width: min(100%, 460px); margin-inline: auto; }
.ak-wrap.ak-narrow { width: min(100% - 32px, 460px); }
.ak-card { background: #fff; border-radius: 26px; padding: clamp(20px, 4vw, 30px); box-shadow: 0 0 0 2px var(--line), 0 12px 26px rgba(92, 58, 50, .08); margin-bottom: 18px; }
.ak-card h2 { font-size: 1.25rem; margin-bottom: .5em; }
.ak-title { font-size: clamp(1.6rem, 5vw, 2.2rem); margin: 0 0 6px; }
.ak-sub { color: var(--ink-soft); font-weight: 700; margin: 0 0 16px; }
.ak-full { width: 100%; }
.ak-icon { height: 96px; width: auto; margin: -8px auto 6px; }
.panel { text-align: left; }
#panel-verify, #panel-code { text-align: center; }
#panel-verify .ak-field, #panel-code .ak-field { text-align: left; }

/* konteks dari QR */
.ak-context { display: flex; gap: 14px; align-items: center; background: #fff4d6; border-radius: 20px; padding: 14px 16px; margin-bottom: 16px; box-shadow: 0 0 0 2px #f6dc8c; }
.ak-context img { height: 64px; width: auto; flex: none; }
.ak-context b { display: block; font-size: 1.05rem; }
.ak-context span { font-weight: 700; color: var(--ink-soft); font-size: .95rem; }

/* tab masuk/daftar */
.ak-switch { display: grid; grid-template-columns: 1fr 1fr; background: #f6ecdf; border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.ak-switch button { border: 0; background: none; font: inherit; font-weight: 900; color: var(--ink-soft); padding: 10px 8px; border-radius: 999px; cursor: pointer; }
.ak-switch button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(92, 58, 50, .15); }

/* form */
.ak-field { display: block; margin-bottom: 14px; }
.ak-field > span:first-child { display: block; font-weight: 900; margin-bottom: 6px; }
.ak-field input { width: 100%; min-height: 52px; border: 0; border-radius: 16px; padding: 0 14px; background: #fffaf4; box-shadow: inset 0 0 0 2px var(--line); color: var(--ink); font: inherit; font-size: 1.05rem; font-weight: 700; }
.ak-field input:focus { outline: none; box-shadow: inset 0 0 0 3px var(--teal); background: #fff; }
.ak-pass { position: relative; display: block; }
.ak-pass input { padding-right: 76px; }
.ak-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: #fdebd0; color: var(--ink); font: inherit; font-weight: 800; font-size: .85rem; padding: 6px 10px; border-radius: 10px; cursor: pointer; }
.ak-hint { display: block; margin-top: 6px; color: var(--ink-soft); font-weight: 700; font-size: .85rem; }
.ak-code { text-align: center; letter-spacing: .5em; font-size: 1.6rem !important; font-weight: 900 !important; }
.ak-bookcode { text-align: center; letter-spacing: .08em; font-size: 1.3rem !important; font-weight: 900 !important; text-transform: uppercase; }
.ak-msg { min-height: 1.4em; margin: 2px 0 12px; font-weight: 800; text-align: center; }
.ak-msg.bad { color: #c0392b; }
.ak-msg.good { color: #14684a; }
.ak-dev { background: #e8f8ef; color: #14684a; font-weight: 900; border-radius: 12px; padding: 8px 12px; margin: 0 0 14px; }
.ak-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--teal); text-decoration: underline; cursor: pointer; display: inline-block; margin-top: 14px; }
.ak-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ak-free { text-align: center; font-weight: 700; color: var(--ink-soft); }
.btn.is-busy { opacity: .7; }
.btn.ghost.ak-full, .btn.ak-full { display: flex; }

/* kartu contoh kode */
.ak-codecard { margin: 0 auto 18px; width: min(100%, 260px); border-radius: 16px; padding: 12px; background: repeating-linear-gradient(-45deg, #fff7df 0 10px, #fff 10px 20px); border: 2px dashed #f0b429; }
.ak-codecard small { display: block; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; color: var(--ink-soft); }
.ak-codecard b { font-size: 1.3rem; letter-spacing: .06em; }

/* kepala halaman akun + tab */
.ak-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ak-head .eyebrow { margin: 0; }
.ak-tabs { display: inline-flex; background: #fff; border-radius: 999px; padding: 5px; box-shadow: 0 0 0 2px var(--line); }
.ak-tabs a { text-decoration: none; color: var(--ink); font-weight: 900; padding: 9px 18px; border-radius: 999px; }
.ak-tabs a[aria-current="page"] { background: var(--yellow); }
.ak-loading { color: var(--ink-soft); font-weight: 800; }
.ak-error { color: #c0392b; font-weight: 800; }

/* si kecil */
.ak-unlock { background: linear-gradient(120deg, #fff1d6, #fff); box-shadow: 0 0 0 2px #f6c99a; }
.ak-progress-head { display: flex; justify-content: space-between; align-items: center; }
.ak-count { font-weight: 900; font-size: 1.1rem; background: var(--yellow); padding: 4px 14px; border-radius: 999px; }
.ak-bar { height: 14px; background: #f3e3cc; border-radius: 999px; overflow: hidden; margin: 10px 0 20px; }
.ak-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd15c, #f47b2a); border-radius: 999px; transition: width .8s; }
.ak-stickers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: center; }
.ak-disc { position: relative; aspect-ratio: 1; border-radius: 50%; background: #e9e1d6; border: 6px solid #fff; box-shadow: 0 0 0 2px rgba(92, 58, 50, .1), 0 8px 14px rgba(92, 58, 50, .12); display: grid; place-items: center; overflow: hidden; }
.ak-disc img { width: 76%; filter: grayscale(1) opacity(.35); }
.ak-stk.got .ak-disc { background: var(--c); }
.ak-stk.got .ak-disc img { filter: none; }
.ak-stk.got .ak-disc { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(.7); } }
.ak-lock { position: absolute; font-weight: 900; font-size: 1.6rem; color: #a58b84; }
.ak-stk strong { display: block; margin-top: 8px; font-size: .9rem; }
.ak-stk:not(.got) strong { color: #b4a39d; }
.ak-cert { display: flex; gap: 18px; align-items: center; }
.ak-cert img { width: 110px; flex: none; filter: grayscale(.8) opacity(.6); }
.ak-cert.ready { background: linear-gradient(120deg, #fff7df, #fff); box-shadow: 0 0 0 3px #f6dc8c; }
.ak-cert.ready img { filter: none; }
.ak-section { margin: 26px 0 12px; font-size: 1.3rem; }
.ak-episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.ak-ep { display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 0 0 2px var(--line); transition: transform .2s; }
.ak-ep:hover { transform: translateY(-4px); }
.ak-ep.next { box-shadow: 0 0 0 3px var(--orange), 0 10px 20px rgba(244, 123, 42, .2); }
.ak-ep.locked { opacity: .75; }
.ak-ep.locked .ak-ep-top { filter: grayscale(.7); }
.ak-ep-top { position: relative; height: 100px; background: var(--c); display: flex; align-items: flex-end; padding: 10px 14px; color: #fff; }
.ak-ep-top b { font-size: 2rem; font-weight: 900; }
.ak-ep-top img { position: absolute; right: 8px; bottom: 0; height: 92px; width: auto; }
.ak-badge { position: absolute; top: 10px; left: 12px; background: #fff; color: var(--orange); font-size: .76rem; font-weight: 900; padding: 3px 10px; border-radius: 999px; }
.ak-ep-body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ak-ep-body strong { font-size: 1.02rem; }
.ak-stars { color: var(--ink-soft); font-weight: 800; font-size: .88rem; }
.ak-play { margin-top: auto; padding-top: 6px; color: var(--teal); font-weight: 900; }
@media (max-width: 560px) {
  .ak-stickers { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .ak-cert { flex-direction: column; text-align: center; }
  .ak-head { flex-direction: column; align-items: flex-start; }
}

/* pengaturan */
.ak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.ak-grid .ak-card { margin: 0; }
@media (max-width: 760px) { .ak-grid { grid-template-columns: 1fr; } }
.ak-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 6px; }
.ak-dl dt { font-weight: 800; color: var(--ink-soft); }
.ak-dl dd { margin: 0; font-weight: 900; word-break: break-word; }
.ak-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ak-device { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fffaf4; border-radius: 16px; padding: 12px 14px; box-shadow: inset 0 0 0 2px var(--line); }
.ak-device small, .ak-acts small { display: block; color: var(--ink-soft); font-weight: 700; font-size: .84rem; }
.ak-del { border: 0; background: #fde3e0; color: #b03a2e; font: inherit; font-weight: 900; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.ak-acts li { padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.ak-empty { color: var(--ink-soft); font-weight: 700; }
.ak-out { text-align: center; margin-top: 24px; }

/* sertifikat */
.cert { position: relative; aspect-ratio: 1.414; background: #fff; border-radius: 18px; padding: 3.2%; box-shadow: 0 18px 40px rgba(92, 58, 50, .2); overflow: hidden; margin-top: 10px; }
.cert-border { position: absolute; inset: 2.4%; border: 6px double #f0a020; border-radius: 14px; pointer-events: none; }
.cert-body { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.2%; background: radial-gradient(circle at 50% 0, #fff6d8, transparent 60%); }
.cert-body .logo { width: 26%; }
.cert-body small { letter-spacing: .3em; text-transform: uppercase; font-weight: 900; color: var(--teal); font-size: clamp(.6rem, 1.6vw, 1rem); }
.cert-body h1 { font-family: "Baloo 2", sans-serif; color: var(--orange); font-size: clamp(1.6rem, 6vw, 3.6rem); margin: 0; line-height: 1; }
.cert-body .to { font-weight: 800; color: var(--ink-soft); font-size: clamp(.7rem, 1.8vw, 1.05rem); margin: 0; }
.cert-body .name { font-family: "Baloo 2", sans-serif; font-size: clamp(1.4rem, 5vw, 3rem); border-bottom: 3px dashed #e6cfae; padding: 0 6%; line-height: 1.2; min-width: 50%; }
.cert-body .why { font-weight: 700; color: var(--ink-soft); max-width: 70%; font-size: clamp(.7rem, 1.7vw, 1rem); margin: 0; }
.cert-stk { display: flex; gap: 2.4%; justify-content: center; width: 60%; margin-top: 1%; }
.cert-stk img { width: 18%; aspect-ratio: 1; object-fit: contain; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 2px #f3d7b0; padding: 2%; }
.cert-date { font-weight: 800; color: #a58b84; font-size: clamp(.6rem, 1.4vw, .9rem); margin: 0; }
.pal { position: absolute; bottom: 4%; height: 30%; width: auto; }
.pal.l { left: 4%; } .pal.r { right: 4%; }
@media print {
  @page { size: A4 landscape; margin: 0; }
  .site-header, .site-footer, .footer-wave, .no-print { display: none !important; }
  body, .ak-body { background: #fff !important; }
  .ak-wrap { width: 100%; padding: 0; }
  .cert { box-shadow: none; border-radius: 0; width: 100vw; height: 100vh; aspect-ratio: auto; margin: 0; }
}
.ak-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-weight: 700; color: var(--ink-soft); font-size: .92rem; line-height: 1.4; cursor: pointer; }
.ak-check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--teal); }
.ak-field em { font-style: normal; font-weight: 700; color: var(--ink-soft); }
