/* =========================================================
   Global Pustaka Academy — Ruang Belajar peserta
   Dasbor bersih: menu samping putih, kartu membulat, biru merek + navy + emas,
   progres bergaris, ornamen grid & cincin.
   ========================================================= */

:root {
  --bg: #f3f6fa;
  --bg-2: #e8edf4;
  --surface: #ffffff;
  --tint: #f5f8fc;
  --tint-2: #e9f0fb;

  --brand: #24587e;
  --brand-btn: #1e4e70;
  --brand-700: #173d58;
  --brand-300: #9bb8cf;
  --brand-100: #dce8f1;
  --brand-50: #eef4f8;

  --ink: #0f1b2e;
  --ink-2: #475569;
  --ink-3: #7b8798;
  --line: #e2e8f0;
  --line-2: #cdd6e2;

  --ok: #15803d;
  --ok-2: #16a34a;
  --ok-soft: #e6f6eb;
  --bad: #dc2626;
  --bad-soft: #fdecec;

  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 46, .05);
  --shadow: 0 1px 2px rgba(15, 27, 46, .04), 0 12px 32px -18px rgba(15, 27, 46, .16);
  --shadow-lg: 0 2px 4px rgba(15, 27, 46, .04), 0 36px 70px -34px rgba(15, 27, 46, .34);
  --shadow-brand: 0 12px 26px -12px rgba(30, 78, 112, .6);
  --stripe: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .28) 0 6px, transparent 6px 12px), linear-gradient(90deg, #4a7da3, var(--brand-btn));

  --gutter: clamp(16px, 3.4vw, 36px);
  --side-w: 264px;
  --top-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: .97rem; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--brand-100); color: var(--ink); }
:focus-visible { outline: 3px solid rgba(36, 88, 126, .55); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-size: .92em; }
.kwrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.kico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tombol ---------- */
.kbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .78em 1.2em; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: .92rem; line-height: 1.15; text-decoration: none; white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.kbtn:hover { transform: translateY(-1px); border-color: var(--brand-300); color: var(--brand-700); }
.kbtn:active { transform: none; }
.kbtn--ink { background: var(--brand-btn); background-image: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0)); border-color: transparent; color: #fff; box-shadow: var(--shadow-brand); }
.kbtn--ink:hover { background-color: var(--brand-700); color: #fff; border-color: transparent; }
.kbtn--ghost { background: var(--surface); }
.kbtn--stamp { background: var(--ok-2); background-image: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0)); border-color: transparent; color: #fff; box-shadow: 0 12px 24px -12px rgba(22, 163, 74, .6); }
.kbtn--stamp:hover { background-color: var(--ok); color: #fff; border-color: transparent; }
.kbtn--sm { padding: .58em .95em; font-size: .85rem; border-radius: 10px; }
.kbtn--block { width: 100%; }

.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; color: var(--brand-700); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.ktitle { margin-top: .5rem; font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; letter-spacing: -.03em; }
.ktitle em, .masuk__title em { font-style: normal; color: var(--brand); }
.klead { max-width: 58ch; margin-top: .6rem; color: var(--ink-2); font-size: 1rem; }

.kalert { margin: 0 0 1rem; padding: .8em 1em .8em 2.8em; position: relative; border: 1px solid #fecaca; border-radius: 12px; background: var(--bad-soft); color: #991b1b; font-size: .92rem; font-weight: 600; }
.kalert::before { content: "!"; position: absolute; left: .9em; top: .78em; display: grid; place-items: center; width: 1.35em; height: 1.35em; border-radius: 50%; background: var(--bad); color: #fff; font-size: .8rem; font-weight: 800; }
.kalert--ok { border-color: #bbf7d0; background: var(--ok-soft); color: #14532d; }
.kalert--ok::before { content: "✓"; background: var(--ok-2); }

/* ---------- Kerangka dasbor ---------- */
.kapp { flex: 1 0 auto; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.kapp__main { min-width: 0; display: flex; flex-direction: column; }
.kapp__main > main { flex: 1 0 auto; }

.kside {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 70;
  display: flex; flex-direction: column; gap: 6px; padding: 22px 16px 16px;
  background: var(--surface); border-right: 1px solid var(--line);
}
.kb { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; padding: 0 8px 16px; }
.kb__logo { width: 38px; height: 38px; color: var(--brand); flex: none; }
.kb__logo--img { object-fit: contain; border-radius: 10px; background: var(--surface); }
.kb__text { display: flex; flex-direction: column; line-height: 1.1; }
.kb__text strong { font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; }
.kb__text small { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.kside__nav { display: flex; flex-direction: column; gap: 3px; }
.kside__label { margin: 14px 12px 6px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.kside__label:first-child { margin-top: 4px; }
.kside__nav a, .kside__out button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .93rem; text-align: left; transition: background-color .15s ease, color .15s ease;
}
.kside__nav a:hover, .kside__out button:hover { background: var(--bg); color: var(--ink); }
.kside__nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); }
.kside__nav a[aria-current="page"] .kico { color: var(--brand); }
.kside__help {
  position: relative; overflow: hidden; isolation: isolate; margin-top: auto; padding: 18px 16px 16px; border-radius: 18px; color: #fff;
  background: radial-gradient(90% 80% at 100% 0%, #2f6a93, transparent 60%), linear-gradient(150deg, #143450, var(--brand-btn));
  font-size: .82rem; line-height: 1.5;
}
.kside__help::before { content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; z-index: -1; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 10px, rgba(255, 255, 255, .18) 10px 11px); }
.kside__help::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.4px) 0 0 / 14px 14px; -webkit-mask-image: linear-gradient(0deg, #000, transparent 60%); mask-image: linear-gradient(0deg, #000, transparent 60%); }
.kside__help-t { font-weight: 800; font-size: .98rem; margin-bottom: .25rem; }
.kside__help p:not(.kside__help-t) { opacity: .92; }
.kside__help a { display: inline-flex; align-items: center; gap: 7px; margin-top: .8rem; padding: .55em .95em; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; font-size: .84rem; text-decoration: none; box-shadow: 0 8px 18px -10px rgba(8, 21, 42, .6); }
.kside__help a .kico { width: 17px; height: 17px; color: var(--ok-2); }
.kside__help a:hover { color: var(--brand-700); }
.kside__out { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.kside__out button { color: var(--ink-3); }
.kside__out button:hover { color: var(--bad); background: var(--bad-soft); }
.kside__help + .kside__out { margin-top: 12px; }
.kside__nav + .kside__out { margin-top: auto; }

.ktop {
  position: sticky; top: 0; z-index: 60; min-height: var(--top-h);
  display: flex; align-items: center; gap: 14px;
  padding: 10px max(var(--gutter), (100% - 1180px) / 2);
  background: rgba(243, 246, 250, .86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.ktop__menu { display: none; place-items: center; width: 42px; height: 42px; flex: none; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.ktop__title { min-width: 0; flex: 1; line-height: 1.2; }
.ktop__crumb { font-size: .74rem; font-weight: 600; color: var(--ink-3); }
.ktop__h { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.ktop__who { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); max-width: 280px; min-width: 0; }
.ktop__ini { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--brand-300), var(--brand)); color: #fff; font-weight: 800; font-size: .8rem; box-shadow: 0 0 0 3px var(--brand-50); }
.ktop__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ktop__txt b { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ktop__txt small { font-size: .74rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kside-backdrop { display: none; }

/* ---------- Kaki ---------- */
.kfoot { margin-top: 3.5rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .82rem; }
.kfoot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: 1.3rem 0 1.6rem; }
.kfoot a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.kfoot a:hover { color: var(--brand-700); }

/* ---------- Halaman masuk ---------- */
.page-masuk { background: radial-gradient(800px 500px at 100% 0%, rgba(36, 88, 126, .1), transparent 60%), var(--bg); }
.masuk { width: min(1160px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(20px, 4vw, 48px) 0 1rem; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(20px, 4vw, 56px); align-items: stretch; }
.masuk__intro {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column;
  padding: clamp(28px, 4.5vw, 52px); border-radius: 28px; color: #fff;
  background: radial-gradient(80% 70% at 100% 0%, #2f6a93 0%, transparent 60%), linear-gradient(145deg, #143450 0%, var(--brand-btn) 100%);
  box-shadow: 0 40px 80px -44px rgba(30, 78, 112, .8);
}
.masuk__intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px) 0 0 / 30px 30px, linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px) 0 0 / 30px 30px; -webkit-mask-image: radial-gradient(70% 70% at 20% 10%, #000, transparent 75%); mask-image: radial-gradient(70% 70% at 20% 10%, #000, transparent 75%); }
.masuk__intro::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 340px; height: 340px; z-index: -1; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 18px, rgba(255, 255, 255, .16) 18px 19px); }
.kb--big { padding: 0; align-self: flex-start; }
.kb--big .kb__logo { width: 46px; height: 46px; padding: 5px; border-radius: 14px; background: #fff; }
.kb--big .kb__text strong { font-size: 1.2rem; }
.masuk__intro .kb__text small { color: #dce8f1; }
.masuk__title { margin-top: auto; padding-top: clamp(40px, 7vw, 90px); font-weight: 800; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; letter-spacing: -.035em; max-width: 16ch; }
.masuk__intro .masuk__title em { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.masuk__lead { margin-top: 1rem; max-width: 46ch; font-size: 1rem; opacity: .92; }
.masuk__steps { margin-top: 1.6rem; display: grid; gap: .6rem; }
.masuk__steps li { display: flex; gap: .8rem; align-items: center; padding: .65rem .8rem; border-radius: 14px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); font-size: .9rem; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.masuk__steps b { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 9px; background: #fff; color: var(--brand-700); font-size: .82rem; font-weight: 800; }

.kartu-anggota { align-self: center; padding: clamp(24px, 3.5vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); }
.kartu-anggota__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 1.6rem; }
.kartu-anggota__ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-btn); }
.kartu-anggota__ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kartu-anggota__t { font-weight: 800; font-size: 1.35rem; letter-spacing: -.025em; line-height: 1.2; }
.kartu-anggota__org { margin-top: .25rem; font-size: .9rem; color: var(--ink-2); }
.baris { display: block; margin-bottom: 1rem; }
.baris > span:first-child { display: block; margin-bottom: .4rem; font-size: .84rem; font-weight: 700; color: var(--ink); }
.baris > span:first-child i { font-style: normal; font-weight: 500; color: var(--ink-3); }
.baris input { width: 100%; padding: .8em 1em; border: 1px solid var(--line-2); border-radius: 12px; background: var(--tint); font-size: 1rem; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.baris input:focus { outline: none; border-color: var(--brand-300); background: #fff; box-shadow: 0 0 0 4px rgba(36, 88, 126, .14); }
.baris__pw { position: relative; display: block; }
.baris__pw input { padding-right: 4.6em; }
.baris__eye { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); padding: .4em .75em; border: 0; border-radius: 8px; background: var(--brand-50); color: var(--brand-700); font-size: .78rem; font-weight: 700; }
.baris__eye:hover { background: var(--brand-100); }
.kartu-anggota .kbtn { margin-top: .5rem; padding: .95em 1.2em; font-size: .98rem; }
.kartu-anggota__foot { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); }
.kartu-anggota__foot a { color: var(--brand-700); font-weight: 700; }

/* ---------- Kelas Saya ---------- */
.rak-head { position: relative; isolation: isolate; padding: clamp(24px, 4vw, 40px) 0 0; }
.rak-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 300px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(36, 88, 126, .08) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(36, 88, 126, .08) 1px, transparent 1px) 0 0 / 28px 28px; -webkit-mask-image: radial-gradient(60% 100% at 30% 0%, #000, transparent 75%); mask-image: radial-gradient(60% 100% at 30% 0%, #000, transparent 75%); }
.rak-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 1.6rem 2rem; align-items: center; }

.profil { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.profil__top { display: flex; align-items: center; gap: 12px; }
.profil__ava { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--brand-300), var(--brand)); color: #fff; font-weight: 800; font-size: 1.05rem; box-shadow: 0 0 0 4px var(--brand-50), 0 0 0 5px var(--brand-100); }
.profil__id { min-width: 0; flex: 1; }
.profil__name { font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; line-height: 1.25; overflow-wrap: anywhere; }
.profil__user { font-size: .78rem; color: var(--ink-3); overflow-wrap: anywhere; }
.profil__badge { flex: none; align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: .7rem; font-weight: 700; }
.profil__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.profil__stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; padding: .7rem .8rem; }
.profil__stats div + div { border-left: 1px solid var(--line); }
.profil__stats dt { font-size: .72rem; color: var(--ink-3); line-height: 1.3; }
.profil__stats dd { font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; line-height: 1.1; }
.profil__stats dd small { font-size: .6em; margin-left: 1px; }
.profil__stats div:first-child dd { color: var(--brand); }

.rak { padding-top: 1.8rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 1.2rem; }
.buku { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 1.2rem; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.buku:hover { transform: translateY(-2px); border-color: var(--brand-100); box-shadow: 0 28px 50px -32px rgba(30, 78, 112, .45); }
.buku__cover-link { display: block; text-decoration: none; }
.cover, .punggung {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate; border-radius: 14px;
  background: linear-gradient(145deg, #143450, var(--brand-btn)); color: #fff;
}
.cover::before, .punggung::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px) 0 0 / 16px 16px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 75%); mask-image: linear-gradient(200deg, #000, transparent 75%); }
.cover::after, .punggung::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 30%;
  background: rgba(255, 255, 255, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5C6.5 4.5 9.2 4.7 12 6.5c2.8-1.8 5.5-2 8-1v13c-2.5-1-5.2-.8-8 1-2.8-1.8-5.5-2-8-1zM12 6.5v13'/%3E%3C/svg%3E") center / 56% no-repeat;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .08), 0 0 0 16px rgba(255, 255, 255, .05);
}
.cover--t1, .punggung--t1 { background: radial-gradient(90% 90% at 100% 0%, rgba(36, 88, 126, .6), transparent 60%), linear-gradient(145deg, #173a58, #0f1b2e); }
.cover--t2, .punggung--t2 { background: radial-gradient(90% 90% at 100% 0%, rgba(155, 184, 207, .35), transparent 60%), linear-gradient(145deg, #64748b, #334155); }
.cover--t3, .punggung--t3 { background: linear-gradient(145deg, #f6ebcb, #e6cd8f); }
.cover--t3::after, .punggung--t3::after { background-color: rgba(255, 255, 255, .55); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a5c1c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5C6.5 4.5 9.2 4.7 12 6.5c2.8-1.8 5.5-2 8-1v13c-2.5-1-5.2-.8-8 1-2.8-1.8-5.5-2-8-1zM12 6.5v13'/%3E%3C/svg%3E"); }
.cover--img, .punggung--img { background: var(--bg-2); }
.cover--img::before, .cover--img::after, .punggung--img::before, .punggung--img::after { display: none; }
.cover img, .punggung img { width: 100%; height: 100%; object-fit: cover; }
.cover b, .punggung b { display: none; }
.buku__body { min-width: 0; display: flex; flex-direction: column; padding: 2px 4px 2px 0; }
.buku__meta { font-size: .78rem; color: var(--ink-3); }
.buku__title { font-weight: 800; font-size: 1.1rem; line-height: 1.3; letter-spacing: -.02em; }
.buku__title a { text-decoration: none; }
.buku__title a:hover { color: var(--brand-700); }
.buku__by { margin-top: .3rem; font-size: .84rem; color: var(--ink-3); }
.buku__when { margin-top: .5rem; font-size: .76rem; color: var(--ink-3); }
.pinjam { margin-top: .9rem; padding: .7rem .8rem .8rem; background: var(--tint); border: 1px solid var(--line); border-radius: 12px; }
.pinjam__head { display: flex; justify-content: space-between; gap: .5rem; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.pinjam__head span:first-child { white-space: nowrap; }
.pinjam__head span:last-child { font-weight: 800; color: var(--brand-700); text-align: right; }
.pinjam__bar { position: relative; height: 10px; margin-top: .5rem; border-radius: 99px; background: var(--brand-100); overflow: hidden; }
.pinjam__bar span { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--stripe); background-size: 17px 17px, 100% 100%; animation: stripes 1.2s linear infinite; }
@keyframes stripes { to { background-position: 17px 0, 0 0; } }
.buku__actions { margin-top: auto; padding-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.buku__note { font-size: .82rem; color: var(--ink-3); min-width: 0; flex: 1 1 160px; }
.buku__note--ok { color: var(--ok); font-weight: 700; }
.kosong { grid-column: 1 / -1; padding: 2.4rem 1.5rem; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); background: rgba(255, 255, 255, .7); text-align: center; display: grid; justify-items: center; gap: .7rem; color: var(--ink-2); }
.kosong::before { content: ""; width: 56px; height: 56px; border-radius: 16px; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e4e70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5C6.5 4.5 9.2 4.7 12 6.5c2.8-1.8 5.5-2 8-1v13c-2.5-1-5.2-.8-8 1-2.8-1.8-5.5-2-8-1zM12 6.5v13'/%3E%3C/svg%3E") center / 26px no-repeat; }
.kosong__t { font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -.02em; }
.rak-lain { position: relative; overflow: hidden; margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border: 1px solid var(--brand-100); border-radius: var(--r-lg); background: linear-gradient(90deg, var(--brand-50), var(--surface)); }
.rak-lain p { max-width: 60ch; font-size: .92rem; color: var(--ink-2); }
.rak-lain b { color: var(--ink); }

/* ---------- Halaman belajar ---------- */
.belajar { padding-top: 1.4rem; }
.jejak { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .82rem; color: var(--ink-3); }
.jejak a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.jejak a:hover { color: var(--brand-700); }
.jejak span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; color: var(--ink); font-weight: 600; }
.judul-kelas { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 1rem; align-items: center; margin: 1rem 0 1.3rem; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.judul-kelas .punggung { width: 60px; border-radius: 12px; }
.judul-kelas .punggung::after { width: 58%; box-shadow: none; }
.judul-kelas__t { font-weight: 800; font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.25; letter-spacing: -.025em; }
.judul-kelas__by { font-size: .84rem; color: var(--ink-3); margin-top: .15rem; }

.belajar__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.4rem; align-items: start; }
.materi { min-width: 0; }
.layar { position: relative; aspect-ratio: 16 / 9; background: #0a1a2b; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.layar--tegak { aspect-ratio: 9 / 16; max-height: 78vh; margin-inline: auto; }
.layar iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.layar__kosong { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .9rem; padding: 1.5rem; text-align: center; color: rgba(255, 255, 255, .9);
  background: radial-gradient(60% 70% at 85% 10%, rgba(36, 88, 126, .45), transparent 70%), linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 26px 26px, linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 26px 26px, linear-gradient(160deg, #173a58, #0f1b2e); }
.layar__kosong svg { width: 56px; height: 56px; padding: 13px; border-radius: 18px; background: rgba(255, 255, 255, .1); fill: none; stroke: var(--brand-300); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.layar__kosong p { max-width: 40ch; font-size: .95rem; }
.layar__kosong b { color: #fff; }
.materi__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 1.5rem; margin-top: 1.2rem; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.materi__head > div { min-width: 0; flex: 1 1 320px; }
.materi__no { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--brand-50); font-size: .74rem; font-weight: 700; color: var(--brand-700); }
.materi__t { margin-top: .45rem; font-weight: 800; font-size: clamp(1.2rem, 2.3vw, 1.55rem); line-height: 1.25; letter-spacing: -.025em; }
.materi__mark { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 0; }
.cap-selesai { display: inline-flex; align-items: center; gap: .5em; padding: .5em .9em .5em .55em; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: .85rem; line-height: 1.2; }
.cap-selesai::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--ok-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 13px no-repeat; }
.cap-selesai small { font-size: .74rem; font-weight: 500; color: var(--ink-3); margin-left: .2em; }

.catatan { position: relative; overflow: hidden; margin-top: 1.2rem; padding: 1.3rem 1.4rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.catatan::after { content: ""; position: absolute; right: 0; top: 0; width: 220px; height: 140px; pointer-events: none; background: linear-gradient(rgba(36, 88, 126, .09) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, rgba(36, 88, 126, .09) 1px, transparent 1px) 0 0 / 20px 20px; -webkit-mask-image: radial-gradient(100% 100% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(100% 100% at 100% 0%, #000, transparent 70%); }
.catatan__t { display: flex; align-items: center; gap: 10px; margin-bottom: .9rem; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.catatan__t::before { content: ""; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e4e70' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v11a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Z M14 3v5h5 M8.5 13h7 M8.5 17h5'/%3E%3C/svg%3E") center / 18px no-repeat; }
.catatan__body { position: relative; font-size: .97rem; line-height: 1.8; color: var(--ink-2); }
.catatan__body strong { color: var(--ink); }
.catatan__body p + p, .catatan__body p + ul, .catatan__body ul + p { margin-top: .8em; }
.catatan__body ul { display: grid; gap: .3em; }
.catatan__body li { position: relative; padding-left: 1.3em; }
.catatan__body li::before { content: ""; position: absolute; left: .2em; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-300); }
.catatan__body a { color: var(--brand-700); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.lampiran { display: flex; align-items: center; gap: .8rem; margin-top: 1.1rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 14px; background: var(--tint); text-decoration: none; max-width: 480px; transition: border-color .15s ease, background-color .15s ease; }
.lampiran:hover { border-color: var(--brand-300); background: var(--brand-50); }
.lampiran svg { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--surface); fill: none; stroke: var(--brand-btn); stroke-width: 2; stroke-linecap: round; flex: none; }
.lampiran span:nth-child(2) { flex: 1; min-width: 0; font-weight: 700; line-height: 1.3; font-size: .92rem; }
.lampiran small { display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.lampiran span:last-child { color: var(--brand-700); font-weight: 700; }

.halaman { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 1.2rem; }
.halaman a { display: block; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; font-weight: 700; font-size: .92rem; line-height: 1.35; min-width: 0; transition: border-color .15s ease, box-shadow .15s ease, color .15s ease; }
.halaman a:hover { border-color: var(--brand-100); color: var(--brand-700); box-shadow: var(--shadow); }
.halaman small { display: block; font-size: .74rem; font-weight: 600; color: var(--brand-700); margin-bottom: .25rem; }
.halaman__next { text-align: right; grid-column: 2; }

.samping { display: grid; gap: 1rem; position: sticky; top: calc(var(--top-h) + 16px); max-height: calc(100vh - var(--top-h) - 32px); overflow: auto; padding: 0 4px 4px 0; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

/* ---------- Lingkaran kemajuan ---------- */
.ring { position: relative; display: inline-grid; place-items: center; width: 64px; height: 64px; flex: none; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__bg { fill: var(--surface); stroke: var(--brand-100); stroke-width: 6; }
.ring__fg { fill: none; stroke: var(--brand); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.ring b { position: relative; font-size: 1rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.ring small { font-size: .62em; }
.ring--full .ring__bg { fill: var(--ok-soft); stroke: #bbf7d0; }
.ring--full .ring__fg { stroke: var(--ok-2); }
.judul-kelas .ring { align-self: center; }

/* ---------- Daftar materi ---------- */
.tocbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: clip; }
.tocbox__head {
  list-style: none; cursor: pointer; position: sticky; top: 0; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; grid-template-areas: "t c v" "bar bar bar";
  align-items: center; gap: .55rem .7rem;
  padding: 1rem 1.1rem; background: var(--surface); border-bottom: 1px solid var(--line);
}
.tocbox__head::-webkit-details-marker { display: none; }
.tocbox__t { grid-area: t; font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; }
.tocbox__count { grid-area: c; padding: 2px 9px; border-radius: 999px; background: var(--brand-50); font-size: .74rem; font-weight: 700; color: var(--brand-700); white-space: nowrap; }
.tocbox__bar { grid-area: bar; height: 8px; border-radius: 99px; background: var(--brand-100); overflow: hidden; }
.tocbox__bar span { display: block; height: 100%; border-radius: 99px; background: var(--stripe); background-size: 17px 17px, 100% 100%; }
.tocbox__chev { grid-area: v; width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.tocbox[open] .tocbox__chev { transform: rotate(180deg); }
.tocbox__body { padding: .3rem .5rem .7rem; }
.tgrp__head { display: flex; justify-content: space-between; gap: .8rem; margin: .8rem .5rem .3rem; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.tgrp__head b { flex: none; font-weight: 700; color: var(--ink-3); }
.tgrp--done .tgrp__head b { color: var(--ok); }
.tgrp--done .tgrp__head b::before { content: "✓ "; }
.ti a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: .7rem; align-items: start; margin-top: 2px; padding: .6rem .6rem; border-radius: 12px; text-decoration: none; transition: background-color .15s ease; }
.ti a:hover { background: var(--bg); }
.ti__ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--bg-2); font-size: .76rem; font-weight: 800; color: var(--ink-2); }
.ti__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ti__ico .ti__play { fill: currentColor; stroke: none; }
.ti--done .ti__ico { background: var(--ok-soft); color: var(--ok); }
.ti--locked .ti__ico { background: transparent; border: 1.5px dashed var(--line-2); color: var(--ink-3); }
.ti--locked .ti__t { color: var(--ink-3); }
.ti__t { display: block; font-weight: 600; font-size: .9rem; line-height: 1.35; }
.ti__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; margin-top: .2rem; font-size: .75rem; color: var(--ink-3); }
.ti__now { font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-700); }
.ti.is-now a { background: var(--brand-50); box-shadow: inset 3px 0 0 var(--brand); }
.ti.is-now .ti__ico { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -6px rgba(30, 78, 112, .8); }
.ti.is-now.ti--done .ti__ico { background: var(--ok-2); color: #fff; box-shadow: none; }
.ti.is-now .ti__t { color: var(--ink); }

.info-kelas { position: relative; overflow: hidden; padding: 1.1rem 1.15rem 1.15rem; background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-lg); }
.info-kelas::after { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 9px, rgba(36, 88, 126, .14) 9px 10px); pointer-events: none; }
.info-kelas__t { font-weight: 800; font-size: 1rem; letter-spacing: -.02em; margin-bottom: .4rem; }
.info-kelas__sum { font-size: .86rem; color: var(--ink-2); }
.info-kelas__when { margin-top: .6rem; font-size: .76rem; color: var(--ink-3); }
.info-kelas__btns { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }

/* ---------- Akun ---------- */
.akun { padding-top: clamp(24px, 4vw, 40px); }
.akun__grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 520px); gap: 1.4rem; margin-top: 1.4rem; align-items: start; }
.anggota { position: relative; overflow: hidden; padding: 1.3rem 1.3rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.anggota::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 84px; background: radial-gradient(80% 120% at 100% 0%, #2f6a93, transparent 60%), linear-gradient(135deg, #143450, var(--brand-btn)); }
.anggota::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 84px; background: radial-gradient(rgba(255, 255, 255, .25) 1px, transparent 1.4px) 0 0 / 14px 14px; }
.anggota__head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2.6rem; color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.anggota__head span:last-child { padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-family: var(--f-mono); letter-spacing: 0; text-transform: none; font-weight: 600; }
.anggota__rows { position: relative; z-index: 1; display: grid; }
.anggota__rows div { display: grid; grid-template-columns: 96px 1fr; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.anggota__rows div:last-child { border-bottom: 0; }
.anggota__rows dt { font-size: .78rem; font-weight: 600; color: var(--ink-3); padding-top: .1em; }
.anggota__rows dd { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.anggota__note { position: relative; margin-top: .8rem; padding: .7rem .8rem; border-radius: 12px; background: var(--tint); font-size: .82rem; color: var(--ink-2); }
.lembar { padding: 1.4rem 1.4rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.lembar__t { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: 1.2rem; }
.lembar__t::before { content: ""; width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e4e70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 12l9-9M17 6l3 3M14 9l2 2'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* ---------- Layar sedang & kecil ---------- */
@media (max-width: 1100px) {
  .kapp { grid-template-columns: minmax(0, 1fr); }
  .kside {
    position: fixed; left: 0; top: 0; bottom: 0; width: min(var(--side-w), 86vw); height: auto; z-index: 96;
    transform: translateX(-102%); transition: transform .25s ease; box-shadow: 0 0 60px rgba(15, 27, 46, .25);
  }
  body.side-open .kside { transform: none; }
  body.side-open { overflow: hidden; }
  .kside-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 95; background: rgba(15, 27, 46, .5); animation: fade-in .2s ease-out; }
  .ktop__menu { display: grid; }
}
@media (max-width: 960px) {
  .belajar__grid { grid-template-columns: minmax(0, 1fr); }
  .samping { position: static; max-height: none; overflow: visible; padding: 0; }
  .masuk { grid-template-columns: minmax(0, 1fr); }
  .masuk__title { padding-top: 2.2rem; }
  .rak-head__grid { grid-template-columns: minmax(0, 1fr); }
  .akun__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --top-h: 62px; }
  .ktop { gap: 10px; }
  .ktop__txt, .ktop__crumb { display: none; }
  .ktop__who { padding: 3px; }
  .buku { grid-template-columns: 76px minmax(0, 1fr); gap: .9rem; padding: 12px; }
  .buku__title { font-size: 1rem; }
  .halaman { grid-template-columns: minmax(0, 1fr); }
  .halaman__next { grid-column: 1; }
  .profil__stats dd { font-size: 1.2rem; }
  .catatan { padding: 1.1rem; }
}

@media (max-width: 960px) {
  /* di HP: daftar materi pindah ke atas video; tentang kelas di paling bawah */
  .samping { display: contents; }
  .tocbox { order: -1; }
  .info-kelas { order: 1; }
  .belajar__grid { gap: 1.1rem; }
}
@media (max-width: 640px) {
  .judul-kelas { grid-template-columns: 44px minmax(0, 1fr) auto; gap: .8rem; padding: 12px; }
  .judul-kelas .punggung { width: 44px; border-radius: 10px; }
  .ring { width: 54px; height: 54px; }
  .ring b { font-size: .9rem; }
}

/* =========================================================
   HP: daftar materi sebagai lembar dari bawah + bilah bawah tetap
   ========================================================= */
.toc-pill, .bbar, .toc-backdrop, .toc-hint, .tocbox__close { display: none; }

@media (max-width: 960px) {
  .page-belajar { padding-bottom: 76px; }
  .page-belajar .kfoot { margin-bottom: 0; }

  .toc-pill {
    display: flex; align-items: center; gap: .75rem; width: 100%;
    margin-bottom: 1rem; padding: .7rem .8rem; text-align: left;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  }
  .toc-pill:active { transform: scale(.99); }
  .toc-pill__ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand-btn); }
  .toc-pill__ico svg, .bbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
  .toc-pill__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
  .toc-pill__txt b { font-size: .95rem; }
  .toc-pill__txt small { font-size: .76rem; color: var(--ink-3); }
  .toc-pill__go { flex: none; padding: .45em .8em; border-radius: 999px; background: var(--brand-btn); color: #fff; font-weight: 700; font-size: .76rem; white-space: nowrap; }

  .tocbox { display: none; }
  body.toc-open { overflow: hidden; }
  body.toc-open .tocbox {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 97;
    max-height: 82vh; overflow: auto; overscroll-behavior: contain;
    border-radius: 22px 22px 0 0; border-bottom: 0; box-shadow: 0 -16px 50px rgba(15, 27, 46, .3);
    animation: sheet-up .22s ease-out;
  }
  body.toc-open .tocbox__head { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "t c x" "bar bar bar"; padding-top: 1.3rem; }
  body.toc-open .tocbox__head::before { content: ""; position: absolute; left: 50%; top: 7px; width: 44px; height: 4px; margin-left: -22px; border-radius: 99px; background: var(--line-2); }
  .tocbox__chev { display: none; }
  body.toc-open .tocbox__close { display: inline-block; grid-area: x; padding: .35em .75em; border-radius: 999px; background: var(--bg-2); font-weight: 700; font-size: .76rem; white-space: nowrap; }
  body.toc-open .tocbox__body { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .ti a { padding: .75rem .6rem; }
  .toc-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 94; background: rgba(15, 27, 46, .5); animation: fade-in .2s ease-out; }

  .bbar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(15, 27, 46, .4);
  }
  .bbar__toc, .bbar__next { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 10px; border: 1px solid var(--line); border-radius: 14px; font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
  .bbar__toc { background: var(--surface); color: var(--ink); }
  .bbar__toc b { padding: 1px 8px; border-radius: 99px; background: var(--brand-50); color: var(--brand-700); font-size: .74rem; font-weight: 700; }
  .bbar__next { background: var(--brand-btn); border-color: transparent; color: #fff; box-shadow: var(--shadow-brand); }
  .bbar__next--off { background: var(--bg-2); color: var(--ink-3); box-shadow: none; font-size: .84rem; }

  .toc-hint:not([hidden]) {
    display: block; position: fixed; left: 12px; right: 12px; bottom: 84px; z-index: 81;
    padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
    box-shadow: var(--shadow-lg); font-size: .9rem; line-height: 1.45; animation: hint-pop .3s ease-out;
  }
  .toc-hint::after { content: ""; position: absolute; left: 24%; bottom: -8px; width: 16px; height: 16px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
  .toc-hint button { display: block; margin-top: .6rem; padding: .45em 1em; border: 0; border-radius: 10px; background: var(--brand-btn); color: #fff; font-weight: 700; font-size: .84rem; }
  .bbar__toc.is-pulse { animation: pulse 1.4s ease-in-out 3; }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes hint-pop { from { opacity: 0; transform: translateY(8px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(36, 88, 126, .3); } }
@media (prefers-reduced-motion: reduce) {
  body.toc-open .tocbox, .toc-backdrop, .toc-hint, .bbar__toc.is-pulse, .kside-backdrop, .pinjam__bar span { animation: none !important; }
  .kside { transition: none; }
}

/* =========================================================
   Aksen navy & kuning
   ========================================================= */
:root { --accent-light: #f1e0af; --pat-orn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='68.4' height='68.4' viewBox='0 0 68.4 68.4'%3E%3Cdefs%3E%3Cg id='c' fill='none' stroke='%23fff' stroke-width='2.2' stroke-opacity='0.09'%3E%3Ccircle r='3.2'/%3E%3Ccircle r='10.2'/%3E%3Ccircle r='17.2'/%3E%3Ccircle r='24.2'/%3E%3Ccircle r='31.2'/%3E%3C/g%3E%3Cmask id='o' maskUnits='userSpaceOnUse' x='-34.5' y='-34.5' width='69' height='69'%3E%3Ccircle r='32.5' fill='%23fff'/%3E%3Ccircle cx='-34.2' cy='34.2' r='32.5'/%3E%3Ccircle cx='34.2' cy='-34.2' r='32.5'/%3E%3C/mask%3E%3Cmask id='e' maskUnits='userSpaceOnUse' x='-34.5' y='-34.5' width='69' height='69'%3E%3Ccircle r='32.5' fill='%23fff'/%3E%3Ccircle cx='-34.2' cy='-34.2' r='32.5'/%3E%3Ccircle cx='34.2' cy='34.2' r='32.5'/%3E%3C/mask%3E%3C/defs%3E%3Cg transform='translate%28-34.2 -34.2%29' mask='url%28%23o%29'%3E%3Cuse href='%23c'/%3E%3C/g%3E%3Cg transform='translate%2834.2 -34.2%29' mask='url%28%23o%29'%3E%3Cuse href='%23c'/%3E%3C/g%3E%3Cg transform='translate%28102.6 -34.2%29' mask='url%28%23o%29'%3E%3Cuse href='%23c'/%3E%3C/g%3E%3Cg transform='translate%280 0%29' mask='url%28%23e%29'%3E%3Cuse href='%23c'/%3E%3C/g%3E%3Cg transform='translate%2868.4 0%29' mask='url%28%23e%29'%3E%3Cuse href='%23c'/%3E%3C/g%3E%3Cg transform='translate%28-34.2 34.2%29' mask='url%28%23o%29'%3E%3Cuse href='%23c'/%3E%3C/g%3E%3Cg transform='translate%2834.2 34.2%29' mask='url%28%23o%29'%3E%3Cuse href='%23c'/%3E%3C/g%3E%3Cg transform='translate%28102.6 34.2%29' mask='url%28%23o%29'%3E%3Cuse href='%23c'/%3E%3C/g%3E%3Cg transform='translate%280 68.4%29' mask='url%28%23e%29'%3E%3Cuse href='%23c'/%3E%3C/g%3E%3Cg transform='translate%2868.4 68.4%29' mask='url%28%23e%29'%3E%3Cuse href='%23c'/%3E%3C/g%3E%3Cg transform='translate%28-34.2 102.6%29' mask='url%28%23o%29'%3E%3Cuse href='%23c'/%3E%3C/g%3E%3Cg transform='translate%2834.2 102.6%29' mask='url%28%23o%29'%3E%3Cuse href='%23c'/%3E%3C/g%3E%3Cg transform='translate%28102.6 102.6%29' mask='url%28%23o%29'%3E%3Cuse href='%23c'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 90px 90px; --navy: #10263d; --navy-2: #173a58; --accent: #c9a557; --accent-2: #f7ecc9; --accent-soft: #fbf5e4; --accent-700: #7a5c1c; }
.kicker::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: dot-pulse 2.4s ease-in-out infinite; }
.kb__logo { color: var(--navy); }
.kside__nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
.kside__help-t { color: var(--accent-light); }
.masuk__intro .kb__text small { color: var(--accent-light); }
.masuk__intro .masuk__title em { color: var(--accent-light); text-decoration-color: rgba(212, 180, 110, .45); }
.masuk__steps b { background: var(--accent-light); color: var(--navy); }
.anggota::before { box-shadow: inset 0 -4px 0 var(--accent-light); }
.ti.is-now a { box-shadow: inset 3px 0 0 var(--accent); }
.catatan__body li::before { background: var(--accent); box-shadow: 0 0 0 2px rgba(212, 180, 110, .25); }
.layar__kosong svg { stroke: var(--accent-light); }
.judul-kelas { box-shadow: inset 4px 0 0 var(--accent), var(--shadow-sm); }
.profil { box-shadow: inset 0 4px 0 var(--accent), var(--shadow); }
.rak-lain { box-shadow: inset 4px 0 0 var(--accent); }
.kartu-anggota { position: relative; overflow: hidden; }
.kartu-anggota::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--accent-light) 0 10px, var(--navy) 10px 20px); background-size: 28.28px 100%; animation: stripes-x 1.6s linear infinite; }

/* =========================================================
   Gerak & animasi
   ========================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-16px); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes ring-draw { from { stroke-dashoffset: 138.23; } }
@keyframes dot-pulse { 50% { box-shadow: 0 0 0 7px var(--accent-soft); } }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .7; } }
@keyframes drift { to { background-position: 28px 28px, 28px 28px; } }
@keyframes drift30 { to { background-position: 30px 30px, 30px 30px; } }
@keyframes stripes-x { to { background-position: 28.28px 0; } }

.kside__nav > * { animation: slide-in .5s cubic-bezier(.2, .7, .2, 1) both; }
.kside__nav > :nth-child(2) { animation-delay: .05s; }
.kside__nav > :nth-child(3) { animation-delay: .1s; }
.kside__nav > :nth-child(4) { animation-delay: .15s; }
.kside__nav > :nth-child(5) { animation-delay: .2s; }
.kside__nav > :nth-child(n+6) { animation-delay: .25s; }
.kside__help { animation: rise .7s cubic-bezier(.2, .7, .2, 1) .3s both; }
.kside__help::before { animation: breathe 8s ease-in-out infinite; }

.rak-head__grid > *, .rak > *, .rak-lain, .judul-kelas, .materi > *, .samping > *, .akun > .kicker, .akun > .ktitle, .akun__grid > * { animation: rise .65s cubic-bezier(.2, .7, .2, 1) both; }
.rak-head__grid > :nth-child(2), .akun__grid > :nth-child(2), .materi > :nth-child(2), .samping > :nth-child(1) { animation-delay: .1s; }
.rak > :nth-child(1), .materi > :nth-child(3), .samping > :nth-child(2) { animation-delay: .16s; }
.rak > :nth-child(2), .materi > :nth-child(4) { animation-delay: .24s; }
.rak > :nth-child(3), .materi > :nth-child(5) { animation-delay: .32s; }
.rak > :nth-child(n+4), .rak-lain { animation-delay: .4s; }
.rak-head::before { animation: drift 30s linear infinite; }

.pinjam__bar span { transform-origin: 0 50%; animation: stripes 1.2s linear infinite, grow-x 1.3s cubic-bezier(.2, .7, .2, 1) .45s both; }
.tocbox__bar span { transform-origin: 0 50%; animation: grow-x 1.3s cubic-bezier(.2, .7, .2, 1) .35s both; }
.ring__fg { animation: ring-draw 1.4s cubic-bezier(.2, .7, .2, 1) .3s both; }

.cover::after, .punggung::after { transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.buku:hover .cover::after { transform: translate(-50%, -50%) scale(1.12) rotate(-6deg); }

.masuk__intro > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.masuk__intro > :nth-child(2) { animation-delay: .1s; }
.masuk__intro > :nth-child(3) { animation-delay: .18s; }
.masuk__intro > :nth-child(4) { animation-delay: .26s; }
.masuk__steps li { animation: slide-in .6s cubic-bezier(.2, .7, .2, 1) both; }
.masuk__steps li:nth-child(1) { animation-delay: .4s; }
.masuk__steps li:nth-child(2) { animation-delay: .5s; }
.masuk__steps li:nth-child(3) { animation-delay: .6s; }
.masuk__intro::before { background: var(--pat-orn); -webkit-mask-image: radial-gradient(90% 90% at 20% 10%, #000, transparent 85%); mask-image: radial-gradient(90% 90% at 20% 10%, #000, transparent 85%); animation: drift64 60s linear infinite; }
@keyframes drift64 { to { background-position: 90px 90px; } }
.kside__help::after { background: var(--pat-orn); -webkit-mask-image: none; mask-image: none; opacity: .9; }
.masuk__intro::after { animation: breathe 9s ease-in-out infinite; }
.kartu-anggota { animation: rise .75s cubic-bezier(.2, .7, .2, 1) .15s both; }

.kbtn--ink, .kbtn--stamp { position: relative; overflow: hidden; isolation: isolate; }
.kbtn--ink::after, .kbtn--stamp::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%); transform: translateX(-130%); transition: transform .7s ease; pointer-events: none; }
.kbtn--ink:hover::after, .kbtn--stamp:hover::after { transform: translateX(130%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
