:root {
  --bg: #0a0a0b;
  --panel: #131315;
  --panel-2: #1c1c1f;
  --line: color-mix(in srgb, var(--text) 9%, transparent);
  --line-strong: color-mix(in srgb, var(--text) 19%, transparent);
  --text: #f5f5f2;
  --muted: #a3a3a0;
  --accent: #dcff00;
  --on-accent: #0a0a0b;
  --accent-2: #0080FA;
  --on-accent-2: #FFFFFF;
  --mascot-body: var(--accent);
  --mascot-eye: var(--on-accent);
  --bad: #ff6b5e;
  --on-bad: #1a0705;
  --radius: 18px;
  --radius-sm: 12px;
  --font-name: 'Lexend';
  --font: var(--font-name), system-ui, 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Maskot: sepasang mata dari huruf "oo" pada logo */
.boo {
  display: inline-flex;
  gap: .14em;
  padding: .18em .3em;
  background: var(--mascot-body);
  border-radius: 999px;
  font-size: 22px;
  flex: none;
}
.boo .eye {
  position: relative;
  display: block;
  width: .95em;
  height: .95em;
  border-radius: 50%;
  background: var(--mascot-eye);
}
.boo .eye b {
  position: absolute;
  top: 26%;
  left: 26%;
  width: 48%;
  height: 48%;
  border-radius: 50%;
  background: var(--mascot-body);
  animation: look 5s infinite;
}
.boo.happy .eye b { animation: none; top: 14%; left: 26%; }
.boo.shock .eye { transform: scale(1.12); }
.boo.shock .eye b { animation: none; width: 26%; height: 26%; top: 37%; left: 37%; }
body.no-mascot .boo { display: none; }
.boo.xl { font-size: 54px; }
.boo.lg { font-size: 34px; }
@keyframes look {
  0%, 40%, 100% { transform: translate(0, 0); }
  48%, 62% { transform: translate(38%, 0); }
  70%, 84% { transform: translate(-38%, 0); }
}

/* Kerangka */
.shell { max-width: 1040px; margin: 0 auto; padding: 0 20px 110px; }
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stats { display: flex; gap: 14px; align-items: center; }
.stat { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 15px; }
.stat svg { width: 18px; height: 18px; fill: var(--accent); }
.navtabs { display: flex; gap: 4px; }
.navtabs a { padding: 7px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px; }
.navtabs a.on { background: var(--panel-2); color: var(--text); }
.demo-note { margin-top: 44px; color: var(--muted); font-size: 13px; text-align: center; }

/* Beranda */
.hero { padding: 48px 0 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero h1 { font-size: clamp(32px, 6vw, 54px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; max-width: 15em; }
.hero p { color: var(--muted); font-size: 18px; max-width: 34em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.room {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 210px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
}
.room:hover { border-color: var(--accent); transform: translateY(-2px); }
.room .greet { font-size: 34px; font-weight: 700; letter-spacing: -.01em; margin-bottom: auto; }
.room h2 { font-size: 20px; font-weight: 600; }
.room .meta { font-size: 14px; color: var(--muted); }

/* Ruang */
.crumb { display: inline-flex; margin: 22px 0 6px; color: var(--muted); font-size: 14px; }
.crumb:hover { color: var(--text); }
.room-head h1 { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.room-head p { color: var(--muted); }
.tabs { display: flex; gap: 6px; margin: 22px 0; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 16px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--text); border-color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  transition: transform .1s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { background: var(--panel-2); color: var(--muted); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn.bad { background: var(--bad); color: var(--on-bad); }
.btn.wide { width: 100%; }

.notice {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.notice .grow { flex: 1 1 240px; }
.notice h3 { font-size: 18px; font-weight: 600; }

/* Jalur Main */
.trail { list-style: none; margin: 0; padding: 0; max-width: 620px; display: flex; flex-direction: column; }
.stop { position: relative; display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.stop:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 41px;
  top: 66px;
  bottom: -14px;
  border-left: 2px dashed var(--line-strong);
}
.stop.done:not(:last-child)::after { border-color: var(--accent); }
.pill {
  flex: none;
  width: 84px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 700;
  font-size: 19px;
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.stop.done .pill { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.stop.current .pill { background: var(--on-accent); border-color: var(--accent); color: var(--accent); }
.stop .body { flex: 1; min-width: 0; }
.stop h3 { font-size: 17px; font-weight: 600; }
.stop .sub { font-size: 14px; color: var(--muted); }
.stop.locked h3 { color: var(--muted); }
.mod-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

/* Kelas */
.level { margin-bottom: 40px; }
.level-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.level-head .tag { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.level-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.level-head p { color: var(--muted); font-size: 15px; max-width: 34em; }
.chip { display: inline-flex; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--panel-2); color: var(--accent); }
.mcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 190px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s;
}
.mcard:hover { border-color: var(--line-strong); }
.mcard .row { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.mcard h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.mcard p { font-size: 14px; color: var(--muted); margin-bottom: auto; }
.mcard.locked h3 { color: var(--muted); }
.lock { width: 16px; height: 16px; fill: var(--muted); }
.bar { height: 6px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }

/* Halaman modul */
.module { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; margin-top: 12px; }
.side { position: sticky; top: 76px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; }
.side h1 { font-size: 24px; font-weight: 700; line-height: 1.2; }
.lrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  width: 100%;
  text-align: left;
}
a.lrow:hover { border-color: var(--accent); }
.lrow .num { width: 26px; color: var(--muted); font-size: 14px; flex: none; }
.lrow .title { flex: 1; font-weight: 500; min-width: 0; }
.lrow .state { font-size: 13px; color: var(--muted); flex: none; }
.lrow.done .state { color: var(--accent); }
.lrow.off { opacity: .62; }

/* Profil */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 28px; }
.tile { padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.tile strong { display: block; font-size: 28px; font-weight: 700; }
.tile span { font-size: 14px; color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.section-title { font-size: 20px; font-weight: 600; margin-bottom: 10px; }

/* Sesi belajar */
.session { min-height: 100dvh; display: flex; flex-direction: column; }
.s-top { display: flex; align-items: center; gap: 14px; max-width: 720px; width: 100%; margin: 0 auto; padding: 18px 20px; }
.s-top .x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); font-size: 22px; flex: none; }
.s-top .x:hover { background: var(--panel-2); color: var(--text); }
.s-top .bar { flex: 1; height: 12px; }
.s-main { flex: 1; width: 100%; max-width: 620px; margin: 0 auto; padding: 18px 20px 28px; display: flex; flex-direction: column; gap: 22px; }
.s-main h2 { font-size: 24px; font-weight: 600; line-height: 1.3; }
.s-foot { border-top: 1px solid var(--line); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); }
.s-foot.ok { background: color-mix(in srgb, var(--accent) 14%, var(--bg)); border-color: transparent; }
.s-foot.no { background: color-mix(in srgb, var(--bad) 16%, var(--bg)); border-color: transparent; }
.s-foot-in { max-width: 620px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.s-foot .msg { display: flex; align-items: center; gap: 12px; flex: 1 1 220px; min-width: 0; }
.s-foot .msg strong { display: block; font-size: 18px; }
.s-foot .msg .s-detail { display: block; margin-top: 4px; font-size: 13px; opacity: .85; }
.s-foot.ok strong { color: var(--accent); }
.s-foot.no strong { color: var(--bad); }
.s-foot .btn { min-width: 150px; flex: 1 1 150px; max-width: 280px; margin-left: auto; }

.teach { padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; }
.teach .phrase { font-size: clamp(28px, 7vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.teach .mean { font-size: 20px; color: var(--accent); font-weight: 500; }
.teach .tip { color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); margin-top: 6px; }
.speak {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--panel-2);
  font-weight: 500;
  font-size: 15px;
}
.speak svg { width: 18px; height: 18px; fill: var(--accent); }
.speak.big { padding: 18px 28px; font-size: 18px; align-self: center; border: 1px solid var(--accent); }

.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  text-align: left;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.opt kbd { font: inherit; font-size: 13px; color: var(--muted); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--panel-2); flex: none; }
/* Sorotan jawaban. Urutan dan kekuatan aturan dibuat sama, jadi status terpilih, benar, dan salah selalu menang
   atas efek kursor; efek kursor hanya di perangkat yang punya kursor, supaya tidak "menempel" setelah disentuh. */
.opt, .tile-word { transition: border-color .12s ease, background-color .12s ease, transform .08s ease; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
@media (hover: hover) {
  .opt:not(:disabled):not(.sel):not(.right):not(.wrong):hover { border-color: var(--line-strong); background: var(--panel-2); }
  .tile-word:not(:disabled):hover { border-color: var(--accent); }
}
.opt:not(:disabled):active, .tile-word:not(:disabled):active { transform: scale(.985); }
.opt.sel, .opt.sel:hover, .opt.sel:disabled { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.opt.sel kbd { background: var(--accent); color: var(--on-accent); }
.opt.right, .opt.right:hover, .opt.right:disabled { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--bg)); }
.opt.wrong, .opt.wrong:hover, .opt.wrong:disabled { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 16%, var(--bg)); }
.opt:disabled { cursor: default; }
.opt:focus { outline: none; }
.opt:focus-visible, .tile-word:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.built { min-height: 68px; padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; border-bottom: 2px solid var(--line-strong); }
.bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tile-word { padding: 10px 16px; min-height: 46px; background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-weight: 500; }
.tile-word:disabled { opacity: .18; }

.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.match .col { display: flex; flex-direction: column; gap: 10px; }
.match .opt { min-height: 60px; justify-content: center; text-align: center; padding: 10px; }
.match .opt.gone { opacity: .3; border-color: var(--accent); }
.shake { animation: shake .3s; border-color: var(--bad) !important; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.typed { width: 100%; min-height: 58px; padding: 14px 16px; font: inherit; font-size: 18px; color: var(--text); background: var(--panel); border: 2px solid var(--line-strong); border-radius: var(--radius-sm); }
.typed:focus { outline: none; border-color: var(--accent); }

.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding: 20px 0; }
.center h1 { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.scores { display: flex; gap: 12px; }
.scores .tile { min-width: 130px; }

/* Boo Box */
.box { position: relative; width: 190px; height: 170px; margin-top: 30px; }
.box .base { position: absolute; left: 12px; right: 12px; bottom: 0; height: 110px; background: var(--panel-2); border: 2px solid var(--accent); border-radius: 14px; }
.box .lid { position: absolute; left: 0; right: 0; bottom: 100px; height: 40px; background: var(--accent); border-radius: 12px; transform-origin: 8% 100%; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.box .boo { position: absolute; left: 50%; bottom: 40px; transform: translate(-50%, 0) scale(.6); opacity: 0; transition: transform .45s cubic-bezier(.3, 1.8, .5, 1) .1s, opacity .1s .1s; }
.box.closed { animation: rattle 1.6s infinite; cursor: pointer; }
.box.open .lid { transform: rotate(-38deg) translate(-8px, -18px); }
.box.open .boo { transform: translate(-50%, -88px) scale(1); opacity: 1; }
@keyframes rattle { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-3deg); } 90% { transform: rotate(3deg); } 96% { transform: rotate(-2deg); } }

@media (max-width: 760px) {
  .module { grid-template-columns: 1fr; }
  .side { position: static; }
  .stats { gap: 10px; }
  .stat { font-size: 14px; }
  .lockup { --logo-h: 22px; }
  .lockup-sub { font-size: 10px; }
  .top { background: var(--bg); backdrop-filter: none; }
  .navtabs {
    position: fixed;
    z-index: 20;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .navtabs a { flex: 1; text-align: center; padding: 10px; }
  .pill { width: 64px; height: 44px; font-size: 17px; }
  .stop:not(:last-child)::after { left: 31px; top: 56px; }
  .stop { flex-wrap: wrap; }
  .stop .btn { width: 100%; }
  .stop:not(:last-child)::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Tambahan: akun, video, pesan */
.link-btn { color: var(--muted); font-size: 15px; font-weight: 500; }
.link-btn:hover { color: var(--text); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--panel-2); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 84px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 500; }
.boot { min-height: 100dvh; display: grid; place-items: center; color: var(--muted); }
.hero.compact { padding: 32px 0 22px; }
.owned-tag { display: inline-flex; align-self: flex-start; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--panel-2); color: var(--accent); }
.section-gap { margin-top: 34px; }
.field-inline { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.text-input { width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.text-input:focus { outline: none; border-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; max-width: 620px; }

/* Bendera bahasa */
.flag { flex: none; width: 40px; height: 30px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line-strong); }
.flag.sm { display: inline-block; width: 22px; height: 16px; margin-right: 8px; border-radius: 3px; vertical-align: -2px; }
.room-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: auto; }
.room .greet { margin-bottom: 0; min-width: 0; }
.room-head h1 .flag { width: 44px; height: 33px; margin-right: 12px; vertical-align: -3px; }

/* Logo lengkap */
.lockup { --logo-h: 28px; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.lockup.lg { --logo-h: 40px; }
.lockup-main { display: inline-flex; align-items: center; gap: calc(var(--logo-h) * .24); }
.lockup-main img { display: block; height: var(--logo-h); width: auto; }
.lockup-suffix { color: var(--text); font-size: calc(var(--logo-h) * .82); font-weight: 500; line-height: 1; letter-spacing: -.01em; }
/* Nama aplikasi e-Basa: huruf pertama hijau neon seperti logo Macaboo */
.wordmark { color: var(--text); font-weight: 600; letter-spacing: -.01em; }
.wm-accent { color: var(--accent); }
.lockup-main .wordmark { font-size: calc(var(--logo-h) * 1.05); line-height: 1; }
/* Logo Macaboo di subjudul, setinggi huruf kapital teks di sebelahnya */
.lockup-sub { display: inline-flex; align-items: center; gap: .32em; }
.lockup-sub-logo { display: inline-block; height: 1.5em; width: auto; }
/* Teks logo Anu Basa lebih kecil dari tinggi gambarnya (ikon lengkungnya tinggi), jadi dibuat sedikit lebih besar. */
.lockup-sub-logo.is-anubasa { height: 1.66em; }
/* Menu samping sempit (admin/tutor): logo diperkecil supaya lonceng tetap muat. */
.side-top .lockup-sub-logo { height: 12px; }
.side-top .lockup-sub-logo.is-anubasa { height: 13px; }
.lockup-sub-logo[data-theme-toggle] { cursor: pointer; border-radius: 4px; transition: transform .15s ease, opacity .15s ease; }
.lockup-sub-logo[data-theme-toggle]:hover { transform: translateY(-1px); opacity: .85; }
@media (max-width: 760px) {
  .lockup:not(.lg) .lockup-sub-logo { height: 13px; }
  .lockup:not(.lg) .lockup-sub-logo.is-anubasa { height: 14px; }
}
.lockup-sub { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.2; letter-spacing: .04em; white-space: nowrap; }
.lockup.lg .lockup-sub { font-size: 13px; }

/* Paket dan sesi 1-on-1 */
.pkg { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.pkg h2 { font-size: 20px; font-weight: 600; }
.pkg-price { font-size: 22px; color: var(--accent); }
.pkg-list { list-style: none; margin: 0 0 auto; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.pkg .chip { align-self: flex-start; }
.row-gap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.panel-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-form .wide-field { grid-column: 1 / -1; }
.panel-form textarea.text-input { min-height: 84px; resize: vertical; }
.booking { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; margin-bottom: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.booking-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sm-btn { min-height: 36px; padding: 6px 14px; font-size: 14px; }

/* Penilaian presisi: tanda per kata, rekaman bicara */
.marks { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; font-size: 17px; }
.marks span { padding: 2px 8px; border-radius: 8px; }
.marks .w-ok { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.marks .w-miss { background: color-mix(in srgb, var(--bad) 22%, transparent); text-decoration: underline wavy var(--bad); text-underline-offset: 4px; }
.rec-on { color: var(--bad); font-weight: 600; }
.rec-on::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--bad); animation: rec-pulse 1s infinite; }
@keyframes rec-pulse { 50% { opacity: .25; } }
.s-main audio { width: 100%; max-width: 420px; margin-top: 12px; }
.btn svg { width: 18px; height: 18px; fill: currentColor; vertical-align: -3px; margin-right: 6px; }
.row-gap .btn { white-space: nowrap; }

/* Header: poin kelas bergantian */
.star-rot { color: inherit; text-decoration: none; }
.star-rot .rot { display: inline-grid; }
.rot-item { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; opacity: 0; transform: translateY(8px); filter: blur(2px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1), filter .55s ease; pointer-events: none; }
.rot-item.show { opacity: 1; transform: none; filter: none; }
.rot-item.done { color: var(--accent); }
.rot-item.todo { color: var(--muted); }
.rot-item.todo img { filter: grayscale(1); opacity: .7; }
.flag.xs { width: 18px; height: 13px; border-radius: 2px; }
.star-rot:has(.rot-item.todo.show) svg { fill: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .rot-item { transition: none; transform: none; filter: none; }
}
.tile strong svg { width: 20px; height: 20px; fill: var(--accent); vertical-align: -3px; margin-right: 4px; }
.booking .small svg { width: 15px; height: 15px; fill: var(--accent); vertical-align: -2px; }

/* Tingkat penguasaan */
.mastery { white-space: nowrap; display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.mastery.low { background: color-mix(in srgb, var(--bad) 22%, transparent); }
.mastery.mid { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.mastery.high { background: var(--accent); color: var(--on-accent); }
.bar.mini { height: 5px; margin-top: 4px; min-width: 60px; }
.legend { margin-top: 10px; line-height: 1.9; }

/* Kuota sesi 1-on-1 */
.quota-card { padding: 18px 20px; margin: 4px 0 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.quota-card.empty { border-color: color-mix(in srgb, #ff6b6b 55%, var(--line)); }
.quota-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.quota-top strong { display: block; font-size: 28px; font-weight: 700; margin-top: 2px; }
.quota-badge { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--panel-2); }
.quota-badge.ok { color: var(--accent); }
.quota-badge.low { color: #ffc24b; }
.quota-badge.empty { color: #ff8a8a; }
.quota-bar { position: relative; display: flex; height: 10px; margin: 14px 0 10px; border-radius: 99px; overflow: hidden; background: var(--accent); }
.quota-bar.thin { height: 5px; margin: 4px 0 0; min-width: 90px; }
.quota-bar .q-used { background: var(--muted); }
.quota-bar .q-booked { background: #ffc24b; }
.quota-card.empty .quota-bar, .quota-mini.empty .quota-bar { background: var(--panel-2); }
.quota-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.quota-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.dot.used { background: var(--muted); }
.dot.booked { background: #ffc24b; }
.dot.left { background: var(--accent); }
.quota-mini { display: inline-block; min-width: 120px; }
.quota-mini.empty strong { color: #ff8a8a; }
.quota-mini.low strong { color: #ffc24b; }

/* Kalender slot tutor */
.slot-days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; }
.slot-day { flex: 0 0 auto; min-width: 74px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); text-align: center; line-height: 1.25; }
.slot-day small { display: block; color: var(--muted); font-size: 12px; }
.slot-day.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.slot-day.on small { color: inherit; }
.slot-day:disabled { background: transparent; border-style: dashed; color: var(--muted); cursor: default; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 18px; }
.slot { padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--panel-2); text-align: left; }
.slot strong { display: block; font-size: 17px; }
.slot span { font-size: 13px; color: var(--muted); }
.slot.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

/* Panduan */
.guide { max-width: 980px; }
.guide h2 { margin: 28px 0 10px; }
.guide h3 { margin: 18px 0 6px; font-size: 17px; }
.guide p, .guide li { line-height: 1.6; }
.guide ul, .guide ol { padding-left: 20px; margin: 6px 0 12px; }
.guide .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.guide .toc button { padding: 6px 12px; border-radius: 999px; background: var(--panel-2); font-size: 13px; font-weight: 600; }
.guide .level-card { padding: 16px 18px; margin: 10px 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.guide .level-card h3 { margin-top: 0; }
.guide .respond { margin-top: 8px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--panel-2); border-radius: 6px; }
.guide details { margin: 8px 0; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.guide details summary { cursor: pointer; font-weight: 600; }
.guide .mod-list { margin: 6px 0 4px; }
.guide .mod-list li { margin: 3px 0; }
.guide table td, .guide table th { vertical-align: top; }

/* Tombol segmen (status bahasa, tab jenis akun, kecepatan suara) */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--accent-2); color: var(--on-accent-2); }
.seg.big { margin: 0 0 14px; }
.seg.big button { padding: 8px 16px; font-size: 14px; }
.seg .count { margin-left: 4px; opacity: .85; font-weight: 500; }

/* Kecepatan suara di pelajaran */
.speed { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
.speed button { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); }
.speed button.on { background: var(--accent-2); color: var(--on-accent-2); }

/* Bahasa Segera Hadir */
.room.soon { cursor: default; border-style: dashed; background: color-mix(in srgb, var(--accent-2) 6%, var(--panel)); }
.room.soon h2, .room.soon .greet { color: var(--muted); }
.soon-tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--accent-2); color: var(--on-accent-2); }

/* Poster penawaran */
.pkg-poster { width: calc(100% + 44px); margin: -22px -22px 4px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: var(--panel-2); }
.pkg.has-poster { padding-top: 22px; overflow: hidden; }

/* Aksen kedua (toska) berimbang dengan aksen utama */
.chip { color: var(--accent-2); }
.owned-tag { background: color-mix(in srgb, var(--accent-2) 18%, transparent); color: var(--accent-2); }
.crumb, .link-btn { color: var(--accent-2); }
.notice { border-color: color-mix(in srgb, var(--accent-2) 35%, var(--line)); }
.tabs a.on { border-color: var(--accent-2); }
.room:hover { border-color: color-mix(in srgb, var(--accent-2) 60%, var(--line)); }
.btn.ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.quota-bar .q-booked, .dot.booked { background: var(--accent-2); }
.slot.on { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2) inset; }
.guide .respond { border-left-color: var(--accent-2); }
.guide .toc button:hover { color: var(--accent-2); }
.status.good { color: var(--accent-2); }

/* Papan tulis aksara */
.scribble { margin: 14px 0; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.scribble summary { cursor: pointer; font-weight: 600; color: var(--accent-2); }
.scribble-pad { --ink: var(--accent-2); position: relative; height: min(52vw, 280px); margin: 10px 0; border-radius: var(--radius-sm); background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 50% / 100% 50%,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 50% 0 / 50% 100%, var(--panel-2); overflow: hidden; touch-action: none; }
.scribble-guide { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text); opacity: .16; line-height: 1; pointer-events: none; user-select: none; white-space: nowrap; }
.scribble-pad[data-guide="0"] .scribble-guide { visibility: hidden; }
.scribble-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.scribble-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Sertifikat di profil member */
.cert-list { display: grid; gap: 10px; margin: 8px 0 24px; }
.cert-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent-2) 16%, var(--panel)), var(--panel)); border: 1px solid color-mix(in srgb, var(--accent-2) 40%, var(--line)); }
.cert-item .chip { grid-row: span 2; }
.cert-new { padding: 10px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent-2) 18%, var(--panel)); color: var(--text); }
.cert-new a { color: var(--accent-2); font-weight: 600; }

/* Pre-test */
.pretest-card { margin: 14px 0 18px; border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line)); }
.pretest-score { margin: 6px 0; display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.pretest-score strong { font-size: 56px; color: var(--accent-2); }
.pretest-rec { margin: 14px 0; border-color: var(--accent-2); }
.pretest-rec h3 { margin-bottom: 4px; }
.pretest-rec p + p { margin-top: 6px; }
.pretest-levels { display: grid; gap: 10px; margin: 16px 0; }
.pretest-levels > div { display: grid; grid-template-columns: minmax(140px, 1.2fr) 2fr 40px; gap: 10px; align-items: center; font-size: 14px; }
.pretest-levels .bar i { background: var(--accent-2); }

/* Ganti bahasa sistem */
.top-tools { display: flex; align-items: center; gap: 12px; }
.lang-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--accent-2); font-size: 13px; font-weight: 700; }
.lang-btn:hover { background: color-mix(in srgb, var(--accent-2) 14%, transparent); }

/* Lonceng notifikasi */
.bell-wrap { position: relative; display: inline-flex; }
.bell-btn { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--text); border: 1px solid var(--line-strong); }
.bell-btn:hover { color: var(--accent-2); border-color: var(--accent-2); }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.bell-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: min(360px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto;
  padding: 10px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-strong); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 10px; }
.bell-item { display: flex; flex-direction: column; gap: 4px; padding: 10px; position: relative; border-radius: var(--radius-sm); }
.bell-item > strong { padding-right: 64px; }
.bell-head-actions { display: flex; gap: 12px; align-items: center; }
.bell-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.bell-tool { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; }
.bell-tool:hover:not(:disabled) { color: var(--text); border-color: var(--line-strong); }
.bell-tool.done { color: var(--accent); border-color: transparent; cursor: default; }
.bell-item + .bell-item { border-top: 1px solid var(--line); }
.bell-item.new { background: color-mix(in srgb, var(--accent-2) 12%, transparent); }
.bell-item p { margin: 0; font-size: 14px; line-height: 1.45; }
.bell-empty { padding: 8px; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 8px 18px; }
.side-top .lockup { margin: 0; }


/* Peringkat */
.rank-stat { color: var(--accent-2); }
.rank-list { display: grid; gap: 8px; margin-bottom: 30px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--line); }
.rank-row.me { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 10%, var(--panel)); }
.rank-row .grow { flex: 1; display: flex; flex-direction: column; }
.rank-no { width: 40px; text-align: center; font-weight: 700; font-size: 18px; }

/* Avatar hewan */
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--panel-2); font-size: 22px; line-height: 1; flex: 0 0 auto; }
.avatar.initial { font-size: 16px; font-weight: 700; color: var(--accent-2); }
.avatar.sm { width: 32px; height: 32px; font-size: 18px; }
.avatar.xl { width: 88px; height: 88px; font-size: 50px; border: 3px solid var(--accent-2); }
.avatar.xl.initial { font-size: 36px; }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; margin: 8px 0 24px; }
.avatar-opt { display: grid; place-items: center; padding: 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); }
.avatar-opt .avatar { width: 48px; height: 48px; font-size: 28px; }
.avatar-opt.on { border-color: var(--accent-2); box-shadow: 0 0 0 2px var(--accent-2) inset; }
.who { display: inline-flex; align-items: center; gap: 10px; }

/* Kelas grup terbuka di halaman Sesi */
.group-list { display: grid; gap: 10px; margin: 10px 0 18px; }
.lang-pick { max-width: 320px; margin: 8px 0 12px; }

/* Kartu chant dan refleksi */
.teach.chant .phrase { font-size: clamp(20px, 3.4vw, 28px); line-height: 1.5; }
.chant-tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.teach.goal { background: color-mix(in srgb, var(--accent-2) 10%, var(--panel)); border-color: color-mix(in srgb, var(--accent-2) 45%, var(--line)); }
.teach.goal .phrase { font-size: clamp(22px, 5vw, 30px); }
.teach.goal .mean { color: var(--text); font-size: 17px; }
.teach.k-recall { border-style: dashed; }
.teach.k-challenge { border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line)); }
.teach.k-challenge .phrase { font-size: clamp(22px, 5vw, 30px); }
.teach.k-recap .phrase { font-size: clamp(17px, 3vw, 22px); font-weight: 600; }
.recap-means summary { cursor: pointer; color: var(--accent-2); font-weight: 600; }
.recap-means ol { margin: 8px 0 0 20px; display: grid; gap: 4px; color: var(--muted); }
.reveal-mean { align-self: flex-start; }
.reflect { width: 100%; max-width: 520px; margin: 14px auto; padding: 14px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); text-align: left; }
.reflect h3 { font-size: 16px; margin-bottom: 6px; }
.reflect ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.reflect li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: 8px; }

/* Data diri tutor saat memilih jadwal sesi live. */
.tutor-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); }
.tutor-card .grow { display: flex; flex-direction: column; gap: 6px; }
.tutor-card p { margin: 0; }
.tutor-langs { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Panduan visual (admin dan tutor) ── */
.g-deck { display: flex; flex-direction: column; gap: 22px; }
.g-cover { padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%), var(--panel); border: 1px solid var(--line); }
.g-cover h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.15; margin: 6px 0 10px; max-width: 18ch; }
.g-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.g-lead { margin: 4px 0 0; color: var(--muted); max-width: 62ch; }
.g-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 22px 0 18px; }
.g-stat { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--panel-2); display: flex; flex-direction: column; gap: 2px; }
.g-stat strong { font-size: 28px; line-height: 1; }
.g-stat span { font-size: 13px; color: var(--muted); }
.guide .toc button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); color: var(--text); cursor: pointer; }
.guide .toc button b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 11px; }
.g-slide { padding: clamp(18px, 3vw, 30px); border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); scroll-margin-top: 16px; }
.g-slide-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.g-slide-head h2 { margin: 2px 0 0 !important; font-size: clamp(20px, 2.6vw, 26px); }
.g-no { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 20px; }
.g-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 14px 0; }
.g-cards.compact { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g-card { padding: 16px; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--line); }
.g-card h3 { margin: 6px 0 4px !important; font-size: 16px !important; }
.g-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5 !important; }
.g-ico { font-size: 22px; }
.g-ico:empty { display: none; }
.g-flow { list-style: none; padding: 0 !important; margin: 14px 0 !important; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: g; }
.g-flow li { counter-increment: g; position: relative; flex: 1 1 150px; padding: 14px 14px 14px 46px; border-radius: var(--radius-sm); background: var(--panel-2); display: flex; flex-direction: column; gap: 2px; line-height: 1.4 !important; }
.g-flow li::before { content: counter(g); position: absolute; left: 12px; top: 13px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 2px solid var(--accent); color: var(--accent); }
.g-flow li span { font-size: 13px; color: var(--muted); }
.g-tip { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--panel-2); border-radius: 8px; }
.g-tip p { margin: 4px 0 0; font-size: 14px; }
.g-mini { margin: 10px 0 4px; font-size: 13px; color: var(--muted); }
.g-sub { margin-top: 22px !important; }
.g-nest > div, .g-nest div div { padding: 10px 12px 12px; border-radius: var(--radius-sm); border: 1px dashed var(--line-strong); display: flex; flex-direction: column; gap: 8px; }
.g-nest > div { background: var(--panel-2); }
.g-nest b { font-size: 13px; }
.g-nest span { font-size: 12px; color: var(--muted); }
.g-nest div div div div { background: var(--accent); color: var(--on-accent); border: 0; }
.g-nest div div div div span { color: var(--on-accent); opacity: .75; }
.g-ladder { display: flex; flex-direction: column; gap: 8px; }
.g-step { border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--line); }
.g-step summary { display: flex; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; }
.g-step summary::-webkit-details-marker { display: none; }
.g-step summary small { display: block; font-size: 12px; color: var(--muted); }
.g-step[open] summary { border-bottom: 1px solid var(--line); }
.g-rung { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line-strong); font-weight: 700; }
.g-step[open] .g-rung { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.g-step-body { padding: 4px 16px 16px; }
.g-scale { display: flex; gap: 4px; margin: 14px 0; border-radius: var(--radius-sm); overflow: hidden; font-size: 13px; }
.g-scale div { padding: 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.g-scale b { font-size: 16px; }
.g-scale div:nth-child(1) { background: color-mix(in srgb, var(--bad) 22%, var(--panel-2)); }
.g-scale div:nth-child(2) { background: var(--panel-2); }
.g-scale div:nth-child(3) { background: var(--accent); color: var(--on-accent); }
.g-boxes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.g-boxes div { padding: 12px 8px; border-radius: var(--radius-sm); background: var(--panel-2); text-align: center; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.g-boxes div span { color: var(--muted); font-size: 12px; }
.g-boxes div:last-child { background: var(--accent); color: var(--on-accent); }
.g-boxes div:last-child span { color: var(--on-accent); }
.g-timeline { display: flex; gap: 4px; margin-top: 14px; font-size: 12px; }
.g-timeline div { padding: 10px; border-radius: 8px; background: var(--panel-2); display: flex; flex-direction: column; gap: 2px; min-width: 70px; }
.g-timeline div:nth-child(2) { background: var(--accent); color: var(--on-accent); }
.g-matrix td:first-child { font-weight: 600; white-space: nowrap; }
.g-lang { padding: 6px 0; border-bottom: 1px solid var(--line); }
.g-lang > summary { display: flex; gap: 8px; align-items: center; cursor: pointer; padding: 6px 0; }
.g-lang details { margin: 6px 0 6px 18px; }
@media (max-width: 560px) {
  .g-boxes { grid-template-columns: repeat(3, 1fr); }
  .g-timeline { flex-wrap: wrap; }
  .g-scale { flex-direction: column; }
  .g-scale div { flex: none !important; }
}

/* ── Dasbor member ── */
.dash-profile { display: flex; gap: 20px; align-items: center; padding: 22px; margin: 8px 0 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.dash-profile h1 { margin: 4px 0; font-size: clamp(24px, 4vw, 34px); }
.dash-profile .g-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.dash-photo { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dash-photo .avatar.xl { width: 104px; height: 104px; }
img.avatar { object-fit: cover; padding: 0; }
.dash-photo-btn { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; }
.dash-photo-btn:hover { border-color: var(--text); }
.dash-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dash-chips .chip { display: inline-flex; align-items: center; gap: 6px; }
.dash-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; margin-top: 8px; }
@media (max-width: 760px) { .dash-cols { grid-template-columns: 1fr; } .dash-profile { flex-direction: column; text-align: center; } .dash-chips { justify-content: center; } }

/* Testimoni: bergeser otomatis pelan, berhenti saat disentuh atau diarahkan kursor. */
.testi-section { margin-top: 32px; }
.testi-marquee { overflow: hidden; margin: 0 -4px 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.testi-track { display: flex; gap: 14px; width: max-content; padding: 4px; animation: testi-slide var(--dur, 40s) linear infinite; }
.testi-dup { display: contents; }
.testi-marquee:hover .testi-track, .testi-marquee:focus-within .testi-track, .testi-marquee:active .testi-track { animation-play-state: paused; }
@keyframes testi-slide { to { transform: translateX(calc(-50% - 7px)); } }
.testi-track:not(:has(.testi-dup)) { animation: none; }
@media (prefers-reduced-motion: reduce) { .testi-track { animation: none; } .testi-marquee { overflow-x: auto; } }
.testi-card { flex: 0 0 300px; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.testi-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); }
.testi-who { display: flex; gap: 10px; align-items: center; }
.testi-who > div { display: flex; flex-direction: column; }
.stars { display: inline-flex; gap: 2px; font-size: 16px; letter-spacing: 0; }
.stars i { font-style: normal; color: var(--line-strong); }
.stars i.on { color: var(--accent); }
.testi-mine .testi-card { max-width: 420px; margin: 8px 0; }
.testi-form { margin-top: 8px; }
.testi-form h3 { margin: 0; }
.star-pick { display: flex; gap: 6px; }
.star-pick button { font-size: 30px; line-height: 1; padding: 2px 4px; background: none; border: 0; color: var(--line-strong); cursor: pointer; }
.star-pick button.on { color: var(--accent); }

/* ── Sambutan member baru di lonceng ── */
.bell-item.pinned { background: color-mix(in srgb, var(--accent) 9%, var(--panel-2)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); gap: 8px; }
.bell-item.pinned > strong { padding-right: 0; font-size: 16px; }
.welcome-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.welcome-steps li { display: flex; gap: 10px; align-items: flex-start; }
.welcome-steps li > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.welcome-steps p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.ws-no { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 700; }
.welcome-steps li.done .ws-no { background: var(--accent); color: var(--on-accent); }

/* ── Pre-test untuk member baru ── */
.pretest-hub { margin: 4px 0 26px; padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.pretest-hub .section-title { margin-top: 0; }
.pretest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 12px; }
.pretest-chip { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.pretest-chip span { display: flex; flex-direction: column; min-width: 0; }
.pretest-chip small { color: var(--muted); font-size: 12px; }
.pretest-chip.going { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.pretest-chip.done small { color: var(--accent); }
@media (hover: hover) { .pretest-chip:hover { border-color: var(--accent); } }

/* ── Dialog di halaman member ── */
.app-dialog { width: min(520px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); color: var(--text); }
.app-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.dlg-form { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.dlg-form h2 { margin: 0; font-size: 20px; }
.dlg-form .check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; max-height: 240px; overflow-y: auto; }
.dlg-err { margin: 0; color: var(--bad); min-height: 1em; }

/* ── Panduan awal (tur) ── */
.tour-shade { position: fixed; inset: 0; z-index: 1000; }
.tour-shade.dim { background: rgba(0, 0, 0, .66); }
.tour-spot { position: fixed; z-index: 1001; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .66), 0 0 0 2px var(--accent); pointer-events: none; transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease; }
.tour-box { position: fixed; z-index: 1002; width: min(360px, calc(100vw - 24px)); padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-strong); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 8px; transition: left .25s ease, top .25s ease; }
.tour-box h3 { margin: 0; font-size: 18px; }
.tour-count { margin: 0; font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.tour-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.tour-text b { color: var(--text); }
.tour-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tour-actions .grow { flex: 1; }
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-box { transition: none; } }

/* Tabel hasil pre-test (admin dan tutor). */
.pt-score { font-size: 20px; }
.pt-row { display: grid; grid-template-columns: 26px 1fr 30px; align-items: center; gap: 8px; font-size: 12px; line-height: 1.8; }
.pt-row span:first-child { color: var(--muted); }
.pt-row b { text-align: right; }
.pt-bar { display: block; height: 6px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.pt-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }

/* ── Boo: statistik, event, peringkat live ── */
.boo-tiles { margin-bottom: 14px; }
.boo-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.boo-event { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.boo-event.claimed { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.boo-event-head, .boo-event-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.boo-event p { margin: 0; }
.chip.on { background: var(--accent); color: var(--on-accent); }
.live-dot { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--panel-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); vertical-align: middle; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .2; } }

/* ── Banner 16:9 di dasbor member ── */
.banner-16x9 { position: relative; aspect-ratio: 16 / 9; margin: 0 0 18px; border-radius: var(--radius); overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); }
.banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.banner-slide.on { opacity: 1; pointer-events: auto; }
.banner-slide a, .banner-slide img { display: block; width: 100%; height: 100%; }
.banner-slide img { object-fit: cover; }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.banner-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .45); padding: 0; }
.banner-dots button.on { width: 22px; border-radius: 99px; background: var(--accent); }

/* ── Menu Macaboo, affiliate, Hak & Aturan ── */
.mc-card .chip.promo { align-self: flex-start; }
.chip.promo { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.mc-benefits { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.mc-benefits li::before { content: "\2713"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.mc-price { display: flex; gap: 10px; align-items: baseline; }
.mc-price s { color: var(--muted); }
.mc-contact { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 26px; padding: 22px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.mc-contact h2 { margin: 0 0 4px; font-size: 20px; }
.mc-contact p { margin: 0; }
.aff-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 24px 0 0; padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
details.aff-card { display: block; margin: 0 0 18px; }
details.aff-card summary { display: flex; gap: 10px; align-items: center; cursor: pointer; list-style: none; }
.aff-card h2 { margin: 2px 0 6px; font-size: 20px; }
.aff-card .g-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.aff-rate { color: var(--accent); }
.aff-link { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.aff-copy { display: flex; gap: 8px; }
.aff-copy .text-input { flex: 1; min-width: 0; font-size: 13px; }
.policy h2, .policy h3 { margin: 20px 0 8px; }
.policy li { line-height: 1.6; margin: 4px 0; }

/* ── Chat ── */
.chat.floating { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; }
.chat-fab { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.chat-fab .bell-count { position: absolute; top: -2px; right: -2px; }
.chat.floating .chat-panel { position: absolute; right: 0; bottom: 66px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 120px)); }
.chat-panel { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-strong); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); overflow: hidden; }
.chat.embedded .chat-panel { height: 560px; box-shadow: none; }
.chat-head, .chat-convo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat-convo-head strong { flex: 1; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-filter { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.chat-filter button { padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.chat-filter button.on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.chat-threads { flex: 1; overflow-y: auto; }
.chat-thread, .chat-contact { display: flex; gap: 10px; align-items: center; width: 100%; padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.chat-thread .grow, .chat-contact { min-width: 0; }
.chat-thread .grow { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.chat-thread.new strong { color: var(--accent); }
.chat-last { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-contact { flex-direction: column; align-items: flex-start; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 6px; }
.chat-new { padding: 10px 14px 14px; border-top: 1px solid var(--line); max-height: 45%; overflow-y: auto; }
.chat-new p { margin: 0; }
.chat-empty { padding: 16px; margin: 0; }
.chat-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.chat-msg { max-width: 82%; align-self: flex-start; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--panel-2); }
.chat-msg.mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: color-mix(in srgb, var(--accent) 18%, var(--panel-2)); }
.chat-msg p { margin: 2px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-who { font-size: 11px; font-weight: 700; color: var(--accent); }
.chat-tag { font-weight: 500; color: var(--muted); }
.chat-tag.admin { color: var(--good, #3ddc97); font-weight: 700; }
.chat-time { font-size: 11px; color: var(--muted); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; min-width: 0; resize: none; }
.chat-err { width: 100%; margin: 0; color: var(--bad); }
.chat-note { padding: 10px 14px; margin: 0; border-top: 1px solid var(--line); }
.chat-msg.bot { background: color-mix(in srgb, var(--accent-2) 12%, var(--panel-2)); border: 1px solid color-mix(in srgb, var(--accent-2) 30%, var(--line)); }
.chat-msg.bot p { white-space: pre-line; }
.chat-hidden-body { display: block; margin-top: 4px; padding: 4px 8px; border-left: 2px solid var(--bad); color: var(--muted); font-size: 13px; }
.chat-blocked { color: var(--bad); }
@media (max-width: 760px) { .chat.floating { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* ── Tampilan HP dan tablet ── */
.mc-link { text-decoration: none; color: inherit; margin-top: 18px; }
@media (max-width: 760px) {
  .navtabs { gap: 2px; padding-left: 6px; padding-right: 6px; }
  .navtabs a { min-width: 0; padding: 9px 2px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .navtabs a[href="#/macaboo"] { display: none; }
  .tiles.boo-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .boo-tiles .tile { padding: 12px 10px; }
  .boo-tiles .tile strong { font-size: 18px; }
  .boo-tiles .tile span { font-size: 11.5px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .scores { flex-wrap: wrap; justify-content: center; }
  .scores .tile { min-width: 0; flex: 1 1 120px; }
  .dash-profile { padding: 18px 14px; gap: 14px; }
  .testi-card { flex-basis: 260px; }
  .aff-copy { flex-direction: column; }
  .s-foot-in { flex-wrap: wrap; gap: 10px; }
  .opt { min-height: 52px; padding: 10px 12px; }
  .tile-word { padding: 9px 12px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .dash-cols { grid-template-columns: 1fr; }
}

/* Menu atas: satu baris, sorotan rapi dan konsisten (tanpa cincin fokus tebal saat diklik dengan mouse). */
.navtabs a { white-space: nowrap; border: 1px solid transparent; transition: background-color .15s ease, color .15s ease, border-color .15s ease; -webkit-tap-highlight-color: transparent; }
.navtabs a.on { background: color-mix(in srgb, var(--accent) 14%, var(--panel-2)); color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
@media (hover: hover) { .navtabs a:not(.on):hover { color: var(--text); background: var(--panel-2); } }
.navtabs a:focus { outline: none; }
.navtabs a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ── Fokus: tanpa cincin tebal saat disentuh di HP; tetap terlihat untuk keyboard ── */
:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 80%, transparent); outline-offset: 2px; }
@media (hover: none) {
  button:focus, a:focus, [role=tab]:focus, summary:focus { outline: none; }
}
button, a, summary { -webkit-tap-highlight-color: transparent; }

/* ── Garis umur ── */
.age-slider { display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 12px; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line); }
.age-read { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.age-read strong { font-size: 44px; line-height: 1; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.age-read span { color: var(--muted); font-weight: 600; }
.age-read em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.age-slider input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.age-slider input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--p, 20%), var(--line-strong) var(--p, 20%)); }
.age-slider input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--line-strong); }
.age-slider input[type=range]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--accent); }
.age-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--accent); border: 4px solid var(--panel); box-shadow: 0 0 0 1px var(--accent), 0 4px 14px rgba(0, 0, 0, .4); }
.age-slider input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 4px solid var(--panel); box-shadow: 0 0 0 1px var(--accent); }
.age-slider input[type=range]:focus { outline: none; }
.age-slider input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.age-ticks { position: relative; height: 16px; margin: -4px 13px 0; font-size: 11px; color: var(--muted); }
.age-ticks span { position: absolute; transform: translateX(-50%); }
.age-slider p { margin: 0; }
.field-inline .age-slider { margin-top: 6px; }

/* ── Kartu isian awal member ── */
body.onb-open { overflow: hidden; }
.onb { position: fixed; inset: 0; z-index: 1100; overflow-y: auto; background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--accent) 12%, var(--bg)), var(--bg) 60%); transition: opacity .25s ease; }
.onb.out { opacity: 0; }
.onb-stage { min-height: 100%; max-width: 480px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.onb-brand { font-size: 22px; font-weight: 800; text-align: center; }
.onb-brand .e { color: var(--accent); }
.onb-dots { display: flex; justify-content: center; gap: 6px; }
.onb-dots i { width: 22px; height: 4px; border-radius: 99px; background: var(--line-strong); transition: background .25s ease, width .25s ease; }
.onb-dots i.done { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.onb-dots i.on { width: 36px; background: var(--accent); }
.onb-card { display: flex; flex-direction: column; gap: 10px; padding: 24px 20px 20px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.onb-card.in-next { animation: onb-in .35s cubic-bezier(.2, .8, .2, 1) both; }
.onb-card.in-back { animation: onb-back .35s cubic-bezier(.2, .8, .2, 1) both; }
.onb-card.shake { animation: shake .35s ease; }
@keyframes onb-in { from { opacity: 0; transform: translateX(28px) scale(.98); } }
@keyframes onb-back { from { opacity: 0; transform: translateX(-28px) scale(.98); } }
.onb-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.onb-card h2 { margin: 0; font-size: clamp(24px, 6vw, 30px); line-height: 1.15; }
.onb-card > p { margin: 0; }
.onb-body { margin-top: 6px; display: flex; flex-direction: column; gap: 10px; }
.onb-input { width: 100%; min-height: 52px; font-size: 18px; }
.onb-ig { display: flex; align-items: center; gap: 0; border-radius: var(--radius-sm); }
.onb-ig span { display: grid; place-items: center; min-height: 52px; padding: 0 12px; border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--panel-2); color: var(--muted); font-weight: 700; }
.onb-ig .onb-input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.onb-ig.off { opacity: .45; }
.onb-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.onb-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.onb-err { margin: 0; min-height: 1.2em; color: var(--bad); font-size: 14px; }
.onb-actions { display: flex; justify-content: space-between; gap: 10px; }
.onb-actions .btn { min-height: 48px; }
.onb-actions .btn:not(.ghost) { flex: 1; max-width: 260px; margin-left: auto; }
.onb-foot { text-align: center; margin: 0; }
@media (prefers-reduced-motion: reduce) { .onb-card { animation: none !important; } }

/* ── Penyesuaian umur di kelas ── */
.fit-chip { display: inline-flex; align-items: center; margin-left: auto; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.fit-chip.focus { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.fit-chip.mature { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.mcard .row { gap: 8px; }
.age-card { align-items: center; }
.age-badge { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 18px; background: color-mix(in srgb, var(--accent) 14%, var(--panel-2)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.age-badge strong { font-size: 24px; line-height: 1; color: var(--accent); }
.age-badge span { font-size: 11px; color: var(--muted); }
.age-card h3 { margin: 0 0 4px; }
.age-card p { margin: 2px 0; }
@media (max-width: 760px) {
  .age-card { flex-wrap: wrap; }
  .age-card .grow { flex: 1 1 180px; }
  .age-card .btn { width: 100%; }
  .age-read strong { font-size: 38px; }
}

/* ── Header atas di HP: semua ikon muat tanpa melebarkan halaman ── */
@media (max-width: 560px) {
  .top-in { padding: 10px 12px; gap: 8px; }
  .logo { min-width: 0; flex: 0 1 auto; }
  .top-tools { gap: 6px; min-width: 0; }
  .stats { gap: 7px; }
  .stat { font-size: 13px; gap: 3px; }
  .stat svg { width: 15px; height: 15px; }
  .lang-btn { padding: 5px 8px; font-size: 12px; }
  .lang-btn svg { display: none; }
  .bell-btn { width: 34px; height: 34px; }
}
@media (max-width: 400px) {
  .rank-stat { display: none; }
}
html, body { max-width: 100%; overflow-x: clip; }
/* Tablet: menu utama turun ke baris kedua header agar ikon di kanan tidak terdorong keluar layar */
@media (min-width: 761px) and (max-width: 1100px) {
  .top-in { flex-wrap: wrap; row-gap: 8px; }
  .navtabs { order: 3; flex-basis: 100%; justify-content: center; overflow-x: auto; scrollbar-width: none; }
  .navtabs::-webkit-scrollbar { display: none; }
}
.stat-unit { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; }
/* Pilihan bahasa di kartu pendaftar tutor */
.onb-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; max-height: 46vh; overflow-y: auto; padding: 2px; }
.onb-lang { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel-2); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.onb-lang input { position: absolute; opacity: 0; pointer-events: none; }
.onb-lang span { font-weight: 600; font-size: 14px; }
.onb-lang small { font-size: 12px; color: var(--muted); }
.onb-lang.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--panel-2)); }
.onb-lang.on span::after { content: " ✓"; color: var(--accent); }
.onb-lang:focus-within { outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 1px; }

/* Level Boo: tangga 3 tahap per level kelas */
.boo-ladder { display: grid; gap: 10px; margin-top: 10px; }
.boo-lv { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.boo-lv .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.boo-lv-no { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 800; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.boo-lv-bar { display: block; height: 6px; margin: 4px 0 2px; border-radius: 99px; background: var(--line); overflow: hidden; }
.boo-lv-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.boo-lv.locked { opacity: .55; }
.boo-lv.locked .boo-lv-no { background: var(--line); color: inherit; }
.boo-lv.done { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.boo-lv .btn, .boo-lv .chip { flex: none; }
@media (max-width: 520px) {
  .boo-lv { flex-wrap: wrap; }
  .boo-lv .grow { flex-basis: calc(100% - 54px); }
  .boo-lv .btn { width: 100%; }
}

/* ===== Mode tampilan: Mode Macaboo (gelap, bawaan) dan Mode Anu Basa (terang) ===== */
.theme-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0 4px; }
.theme-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: var(--radius); border: 2px solid var(--line-strong); text-align: left; transition: border-color .15s ease, transform .15s ease; }
.theme-opt:hover { transform: translateY(-2px); }
.theme-opt.on strong::after { content: ' ✓'; }
.theme-opt.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.theme-opt strong { font-size: 15px; }
.theme-opt .muted { color: inherit; opacity: .7; }
.theme-opt-macaboo { background: #0a0a0b; color: #f5f5f2; }
.theme-opt-anubasa { background: #F8FCFA; color: #2C3835; }
.theme-swatch { display: flex; gap: 6px; }
.theme-swatch i:nth-child(4) { display: none; }
.theme-opt-anubasa .theme-swatch i:nth-child(4) { display: block; background: #007DFF; }
.theme-swatch i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(128, 128, 128, .25); }
.theme-opt-macaboo .theme-swatch i:nth-child(1) { background: #dcff00; }
.theme-opt-macaboo .theme-swatch i:nth-child(2) { background: #0080FA; }
.theme-opt-macaboo .theme-swatch i:nth-child(3) { background: #1c1c1f; }
.theme-opt-anubasa .theme-swatch i:nth-child(1) { background: #249E8E; }
.theme-opt-anubasa .theme-swatch i:nth-child(2) { background: #FDACC1; }
.theme-opt-anubasa .theme-swatch i:nth-child(3) { background: #7CC9BE; }
.theme-logos { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.theme-logos img { height: 18px; width: auto; }
.theme-logos img + img { height: 20px; }
.theme-panel { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; }
.theme-dialog .dlg-form { gap: 12px; }
.side-theme { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; }
.side-theme .t-light, :root[data-theme="anubasa"] .side-theme .t-dark { display: none; }
:root[data-theme="anubasa"] .side-theme .t-light { display: inline; }
@media (max-width: 420px) { .theme-choice { grid-template-columns: 1fr; } }

/* Mode Anu Basa: gaya website anubasa.id (judul Outfit, isi Plus Jakarta Sans, bayangan lembut). */
:root[data-theme="anubasa"] { color-scheme: light; }
:root[data-theme="anubasa"] h1, :root[data-theme="anubasa"] h2, :root[data-theme="anubasa"] h3,
:root[data-theme="anubasa"] .wordmark, :root[data-theme="anubasa"] .pub-title, :root[data-theme="anubasa"] .pub-brand, :root[data-theme="anubasa"] .ld-brand { font-family: 'Outfit', var(--font); }
:root[data-theme="anubasa"] h1, :root[data-theme="anubasa"] h2, :root[data-theme="anubasa"] h3 { color: #1E2725; }
:root[data-theme="anubasa"] .wm-accent, :root[data-theme="anubasa"] .pub .e { color: var(--accent); }
:root[data-theme="anubasa"] .panel, :root[data-theme="anubasa"] .room, :root[data-theme="anubasa"] .tile, :root[data-theme="anubasa"] .card { box-shadow: 0 2px 8px rgba(36, 45, 43, .04); }
:root[data-theme="anubasa"] .btn:not(.ghost) { box-shadow: 0 8px 20px rgba(36, 158, 142, .22); }
:root[data-theme="anubasa"] .bell-pop, :root[data-theme="anubasa"] .tour-box, :root[data-theme="anubasa"] .chat-panel, :root[data-theme="anubasa"] .onb-card,
:root[data-theme="anubasa"] .ld-mock, :root[data-theme="anubasa"] .ld-form, :root[data-theme="anubasa"] .chat-fab { box-shadow: 0 16px 40px rgba(36, 45, 43, .12); }
:root[data-theme="anubasa"] .app-dialog::backdrop, :root[data-theme="anubasa"] dialog::backdrop { background: rgba(30, 39, 37, .45); }
:root[data-theme="anubasa"] .tour-shade.dim { background: rgba(30, 39, 37, .5); }
:root[data-theme="anubasa"] .tour-spot { box-shadow: 0 0 0 9999px rgba(30, 39, 37, .5), 0 0 0 2px var(--accent); }
:root[data-theme="anubasa"] .banner-dots button { background: rgba(30, 39, 37, .3); }
:root[data-theme="anubasa"] .quota-badge.low, :root[data-theme="anubasa"] .quota-mini.low strong { color: #B37D0B; }
:root[data-theme="anubasa"] .quota-badge.empty, :root[data-theme="anubasa"] .quota-mini.empty strong { color: #C0394B; }
:root[data-theme="anubasa"] .quota-bar .q-booked, :root[data-theme="anubasa"] .dot.booked { background: #F5B935; }
:root[data-theme="anubasa"] .soon-tag { background: #FFEBF0; color: #E26886; }
:root[data-theme="anubasa"] .owned-tag { background: #E8F7F5; color: #197367; }
:root[data-theme="anubasa"] .lang-btn:hover, :root[data-theme="anubasa"] .bell-item.new { background: #EAF3FF; }

/* Scrollbar minimalis yang mengikuti warna tema (tipis, tanpa tombol panah).
   Chrome/Edge/Safari memakai ::-webkit-scrollbar; properti standar hanya untuk Firefox,
   karena di Chrome properti standar menonaktifkan gaya di bawah dan memunculkan panah. */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--text) 22%, transparent); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--text) 38%, transparent); background-clip: padding-box; }
::-webkit-scrollbar-button, ::-webkit-scrollbar-corner { display: none; background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--text) 22%, transparent) transparent; }
}

/* Pilihan bahasa paket */
.lp-count { margin: 0 0 10px; font-size: 14px; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: min(46vh, 360px); overflow: auto; padding: 2px; }
.lp-item { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); cursor: pointer; transition: border-color .15s, background .15s; }
.lp-item input { position: absolute; opacity: 0; pointer-events: none; }
.lp-item span { display: grid; line-height: 1.2; }
.lp-item small { color: var(--muted); font-size: 12px; }
.lp-item em { position: absolute; top: 4px; right: 8px; font-size: 10px; font-style: normal; color: var(--muted); }
.lp-item.on { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 14%, var(--panel-2)); }
.lp-item.full { opacity: .45; cursor: not-allowed; }
.lp-item.locked { cursor: default; }
.lp-item:has(input:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.lp-flag { width: 28px; height: 21px; border-radius: 4px; object-fit: cover; flex: none; }
.lp-dialog { max-width: 640px; width: calc(100vw - 32px); }
.slot-card { border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line)); }
.offer-card { margin-top: 18px; border-style: dashed; }

/* Kelas grup otomatis: voting jadwal, review sesi, komunitas */
.vote-opts { display: grid; gap: 8px; margin: 8px 0 12px; }
.vote-opt { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.vote-opt:hover { border-color: var(--accent-2); }
.vote-opt.on { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 16%, var(--panel-2)); }
.vote-opt.on span::before { content: '✓ '; color: var(--accent-2); font-weight: 700; }
.vote-list { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 6px; }
.vote-list li { display: flex; justify-content: space-between; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.vote-box { margin: 10px 0; }
.group-wait .bar { margin: 6px 0; }
.group-locked { opacity: .85; border-style: dashed; }
.review-dialog { max-width: 460px; width: calc(100vw - 32px); }
.stars { display: flex; gap: 6px; flex-direction: row-reverse; justify-content: flex-end; margin: 10px 0; }
.stars input { position: absolute; opacity: 0; }
.stars span { font-size: 32px; color: color-mix(in srgb, var(--text) 25%, transparent); cursor: pointer; transition: color .1s; }
.stars label:has(input:checked) span, .stars label:has(input:checked) ~ label span, .stars label:hover span, .stars label:hover ~ label span { color: #ffc531; }
.stars label:has(input:focus-visible) span { outline: 2px solid var(--accent-2); border-radius: 4px; }
.community-card { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }

/* Admin: anggota grup kelas dan review sesi */
.group-members { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.group-members li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; }
.group-members li > span:first-child { flex: 1 1 200px; }
tr.row-warn td { background: color-mix(in srgb, #f59e0b 12%, transparent); }

/* Tombol aduan soal (⚑) di samping pertanyaan */
.q-head { display: flex; align-items: flex-start; gap: 10px; }
.q-head h2 { flex: 1; margin: 0; }
.q-report { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 15px; cursor: pointer; transition: color .2s, border-color .2s; }
.q-report:hover, .q-report:focus-visible { color: #ef4444; border-color: #ef4444; }
.speed .sfx-btn { margin-left: 4px; }

/* Pilihan umur: Anak-anak atau Dewasa */
.age-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.age-choice > p { grid-column: 1 / -1; margin: 2px 0 0; }
.age-opt { display: grid; justify-items: center; gap: 4px; padding: 16px 10px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.age-opt input { position: absolute; opacity: 0; pointer-events: none; }
.age-opt .age-ic { font-size: 30px; line-height: 1; }
.age-opt small { color: var(--muted); font-size: 12px; }
.age-opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.age-opt:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Analisa teks (level B1 ke atas) */
.passage { margin: 0 0 16px; padding: 14px 16px; border-left: 4px solid var(--accent); border-radius: 12px; background: var(--panel-2); font-size: 17px; line-height: 1.7; }
.built.sentences, .bank.sentences { flex-direction: column; align-items: stretch; }
.built.sentences .tile-word, .bank.sentences .tile-word { text-align: left; white-space: normal; }

/* Nilai huruf A+ sampai D dan perayaan */
.grade-wrap { display: grid; justify-items: center; gap: 6px; margin: 4px auto 10px; }
.grade-badge { position: relative; display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--g, #dcff00) 40%, #fff 0%), var(--g, #dcff00) 70%); color: #0a0a0b; box-shadow: 0 0 0 6px color-mix(in srgb, var(--g, #dcff00) 25%, transparent), 0 18px 50px color-mix(in srgb, var(--g, #dcff00) 35%, transparent); animation: grade-pop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.grade-badge strong { font-size: 54px; line-height: 1; font-weight: 900; letter-spacing: -.02em; margin-top: 8px; }
.grade-badge small { font-size: 13px; font-weight: 700; opacity: .7; margin-top: -18px; }
.grade-ring { position: absolute; inset: -14px; border-radius: 50%; border: 3px dashed color-mix(in srgb, var(--g, #dcff00) 60%, transparent); animation: grade-spin 12s linear infinite; }
.grade-badge.t-top { --g: #dcff00; }
.grade-badge.t-good { --g: #5aaeff; }
.grade-badge.t-ok { --g: #ffc94d; }
.grade-badge.t-low { --g: #ff7a7a; }
.grade-badge.t-low .grade-ring { animation: none; }
.grade-label { margin: 6px 0 0; font-weight: 800; font-size: 20px; animation: grade-rise .6s .25s both; }
.grade-legend { font-size: 13px; color: var(--muted); }
.grade-legend summary { cursor: pointer; text-align: center; }
.grade-legend ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; }
.grade-legend li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; }
.grade-legend li.on { border-color: var(--accent, #dcff00); color: var(--text); }
.confetti-layer { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999; }
@keyframes grade-pop { 0% { transform: scale(.2) rotate(-25deg); opacity: 0; } 70% { transform: scale(1.12) rotate(4deg); opacity: 1; } 100% { transform: none; } }
@keyframes grade-spin { to { transform: rotate(360deg); } }
@keyframes grade-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .grade-badge, .grade-ring, .grade-label { animation: none !important; } }

/* Penjelasan soal (?) */
.xp-switch { flex-shrink: 0; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.xp-switch.on { border-color: var(--accent); color: var(--accent); }
.xp-btn { min-width: 46px; font-size: 18px; font-weight: 900; }
.xp-dialog { max-width: min(640px, calc(100vw - 24px)); }
.xp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.xp-head h2 { margin: 0; }
.xp-body { display: grid; gap: 14px; max-height: min(64vh, 620px); overflow: auto; padding-right: 4px; }
.xp-sec h3 { margin: 0 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.xp-answer { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.xp-opts, .xp-words, .xp-gram { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.xp-opts li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.xp-opts li.xp-right { border-color: color-mix(in srgb, #2ec4b0 60%, var(--line)); background: color-mix(in srgb, #2ec4b0 10%, transparent); }
.xp-opts li.xp-wrong { opacity: .9; }
.xp-opts small, .xp-opts span { color: var(--muted); font-size: 13px; }
.xp-words li { font-size: 14px; }
.xp-words em, .xp-opts em { font-style: normal; color: var(--muted); }
.xp-gram li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); }
.xp-gram span { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .q-head { flex-wrap: wrap; } .xp-switch { order: 3; } }

/* Rincian penilaian bicara */
.speak-analysis { list-style: none; padding: 0; margin: 10px 0 4px; display: grid; gap: 6px; text-align: left; }
.speak-analysis li { display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; }
.speak-analysis li strong { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.speak-analysis .sa-ok strong { color: #2ec4b0; }
.speak-analysis .sa-warn strong { color: #ffc94d; }
.speak-analysis .sa-bad strong { color: #ff7a7a; }

/* Panduan baca IPA */
.ipa { display: inline-flex; align-items: baseline; gap: 6px; font-family: "Noto Sans", "Segoe UI", "Lucida Sans Unicode", system-ui, sans-serif; font-size: 15px; letter-spacing: .01em; }
.ipa b { font-family: inherit; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--accent, #dcff00) 18%, transparent); color: var(--accent, #dcff00); }
.ipa-text { font-family: "Noto Sans", "Segoe UI", "Lucida Sans Unicode", system-ui, sans-serif; }

/* Sakelar penjelasan otomatis + tombol "? Penjelasan" */
.xp-tools { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.xp-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.xp-track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.xp-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.xp-toggle.on .xp-track { background: color-mix(in srgb, var(--accent) 25%, transparent); border-color: var(--accent); }
.xp-toggle.on .xp-knob { transform: translateX(16px); background: var(--accent); }
.xp-toggle.on { color: var(--accent); }
.xp-manual { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--accent); background: transparent; color: var(--accent); font-weight: 800; font-size: 13px; cursor: pointer; }
.xp-manual b, .xp-btn b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--on-accent, #0a0a0b); font-size: 13px; }
.xp-manual:disabled { opacity: .45; cursor: not-allowed; }
.xp-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; }
@media (max-width: 560px) { .xp-tools { order: 3; width: 100%; justify-content: flex-end; } }

/* Level Boo: akordion per level */
.boo-group { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; }
.boo-group > summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; }
.boo-group > summary::-webkit-details-marker { display: none; }
.boo-group > summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: transform .2s; }
.boo-group:not([open]) > summary::after { transform: rotate(-90deg); }
.boo-group.locked > summary { opacity: .65; }
.boo-group .chip.on { border-color: var(--accent); color: var(--accent); }
.boo-group-body { display: grid; gap: 8px; padding: 0 12px 12px; }
.boo-lv.mini { padding: 8px 12px; opacity: .6; }
.boo-lv.mini .boo-lv-no { width: 26px; height: 26px; font-size: 12px; }

/* Pemberitahuan pesan paling lambat H-1 */
.h1-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent, #f5a524) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent, #f5a524) 40%, transparent); font-size: .9rem; }
.h1-note b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent, #f5a524); color: #fff; font-size: .8rem; }

/* Alur sesi: tahap pesan → setuju + link → sesi → tutup + bukti */
.flow-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; padding: 0; counter-reset: fs; }
.flow-steps li { counter-increment: fs; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px;
  font-size: .78rem; border: 1px solid var(--line, rgba(127,127,127,.25)); color: var(--muted, #6b7280); }
.flow-steps li::before { content: counter(fs); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem;
  background: var(--line, rgba(127,127,127,.25)); color: inherit; font-weight: 700; }
.flow-steps li.on { color: var(--text, inherit); border-color: color-mix(in srgb, var(--brand, #16a34a) 45%, transparent); background: color-mix(in srgb, var(--brand, #16a34a) 10%, transparent); }
.flow-steps li.on::before { content: '✓'; background: var(--brand, #16a34a); color: #fff; }
.flow-steps.big li { font-size: .85rem; }
.booking.needs-action { border-left: 4px solid var(--accent, #f5a524); }
.booking.needs-close { border-left: 4px solid #ef4444; }
.panel.attn { border: 1px solid color-mix(in srgb, var(--accent, #f5a524) 45%, transparent); }
.panel h2 .count, .panel.attn h2 .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #ef4444; color: #fff; font-size: .75rem; vertical-align: middle; }
.quota-lang { margin: 6px 0 14px; }
.monitor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.monitor-card { display: grid; gap: 2px; padding: 12px; border-radius: 12px; border: 1px solid var(--line, rgba(127,127,127,.25)); }
.monitor-card strong { font-size: 1.6rem; line-height: 1; }
.monitor-card small { color: var(--muted, #6b7280); font-size: .72rem; }
.monitor-card.warn { border-color: color-mix(in srgb, var(--accent, #f5a524) 60%, transparent); background: color-mix(in srgb, var(--accent, #f5a524) 8%, transparent); }
.monitor-card.bad { border-color: rgba(239,68,68,.6); background: rgba(239,68,68,.08); }
.monitor-card.good strong { color: var(--brand, #16a34a); }
.live-dot { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 600; text-transform: uppercase; color: #ef4444; vertical-align: middle; margin-left: 6px; }
.live-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: live-pulse 1.4s infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live-dot::before { animation: none; } }


.illus { display: inline-grid; place-items: center; line-height: 1; margin: 2px auto 6px; }
.teach .illus { display: grid; }

/* Kartu ringkasan pelajaran (tujuan, tata bahasa, kosakata) */
.teach.summary { text-align: left; align-items: stretch; gap: 12px; }
.teach.summary .phrase { font-size: 1.2rem; text-align: center; }
.sum-goal, .sum-gram, .sum-vocab { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--brand, #16a34a) 7%, transparent); }
.sum-goal b, .sum-gram b, .sum-vocab b { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.sum-vocab ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.sum-word { all: unset; box-sizing: border-box; display: grid; gap: 2px; width: 100%; padding: 8px 10px; border-radius: 10px; cursor: pointer; border: 1px solid var(--line, rgba(127,127,127,.25)); background: var(--card, transparent); }
.sum-word:hover, .sum-word:focus-visible { border-color: var(--brand, #16a34a); }
.sum-word small { opacity: .75; }
.sum-word .illus { font-size: 1.6rem; margin: 0; justify-self: start; }
/* Dialog: suara tutor dan balasan member */
.teach.dialog { gap: 10px; }
.dlg-row { display: flex; align-items: flex-end; gap: 8px; width: 100%; }
.dlg-row.me { justify-content: flex-end; }
.dlg-avatar { font-size: 1.6rem; }
.dlg-bubble { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: color-mix(in srgb, var(--brand, #16a34a) 12%, transparent); max-width: 80%; }
.dlg-bubble.mine { border-radius: 16px 16px 4px 16px; background: color-mix(in srgb, var(--accent, #f5a524) 16%, transparent); }
/* Ringkasan target modul */
.mod-goals { margin: 10px 0; font-size: .88rem; }
.mod-goals summary { cursor: pointer; font-weight: 600; }
.mod-goals ol { padding-left: 18px; margin: 8px 0 0; display: grid; gap: 6px; }
.mod-goals li span { display: block; opacity: .8; }
.passage { white-space: pre-line; }

/* Level Boo: status dan tombol buka/tutup yang jelas */
.boo-group > summary::after { content: none; }
.boo-st { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: transparent; white-space: nowrap; }
.boo-st.open { color: var(--text); border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.boo-st.done { color: #16a34a; border-color: rgba(22,163,74,.45); }
.boo-tg { margin-left: auto; width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--text); background: var(--panel); transition: transform .25s, background .2s; }
.boo-group > summary:hover .boo-tg { background: color-mix(in srgb, var(--accent) 18%, var(--panel)); }
.boo-group[open] > summary .boo-tg { transform: rotate(180deg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Halaman Boo per bahasa (terpisah dari Basa) */
.boo-room-head { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--panel)), var(--panel)); border: 1px solid var(--line); }
.boo-room-head h1 { margin: 2px 0 4px; }
.boo-jump { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 12px 14px; border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); text-decoration: none; color: inherit; }
.boo-jump > span:not(.boo) { display: grid; flex: 1; min-width: 0; }
.boo-jump > .boo { flex: 0 0 auto; }
.boo-jump > b { flex: 0 0 auto; }
.boo-jump small { color: var(--muted); }

/* ── Flashcard Boo: kartu potret 3:4 bergaya feed Macaboo ── */
.flash-wrap { max-width: 560px; margin: 0 auto; --fc-ink: #0d1117; --fc-lime: #d7ff3a; --fc-blue: #1a7cff; }
.flash-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.flash-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.flash-head h1 { margin: 2px 0 4px; font-size: 1.3rem; }
.flash-meta { display: flex; gap: 6px; }
.flash-pill { font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); }
.flash-pill.good { color: #16a34a; border-color: rgba(22,163,74,.45); }
.flash-stage { perspective: 1600px; display: grid; place-items: center; touch-action: pan-y; padding: 6px 0 4px; }
.flash-card { all: unset; box-sizing: border-box; display: block; width: min(100%, 380px); aspect-ratio: 3 / 4; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.flash-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 28px; }
.flash-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.2,.75,.2,1); }
.flash-card.flipped .flash-inner { transform: rotateY(180deg); }
.flash-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 22px 18px;
  border-radius: 28px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; text-align: center; isolation: isolate; }
.flash-face.back { transform: rotateY(180deg); }
.fc-top { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; }
.fc-brand { font-weight: 800; letter-spacing: -.01em; }
.fc-brand b { padding: 1px 6px; margin-left: 1px; border-radius: 6px; }
.fc-no { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.fc-no small { font-size: .7rem; opacity: .6; }
/* Area gambar kartu: flex + container query supaya gambar selalu pas dan tepat di tengah di semua layar/peramban. */
.fc-art { flex: 1 1 0; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; container-type: size; }
.fc-art .illus { flex: 0 0 auto; width: min(66%, 210px); aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto; }
@supports (width: 1cqh) { .fc-art .illus { width: min(66cqw, 210px, 92cqh); } }
.fc-art svg { width: 100%; height: 100%; display: block; }
.fc-label { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.fc-mean { font-weight: 800; line-height: 1.2; }
.fc-mean.xl, .fc-text.xl { font-size: 1.9rem; }
.fc-mean.lg, .fc-text.lg { font-size: 1.45rem; }
.fc-mean.md, .fc-text.md { font-size: 1.15rem; }
.fc-mean.sm, .fc-text.sm { font-size: .98rem; }
.fc-blank { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; padding: 8px 14px; border-radius: 14px; max-width: 100%; word-break: break-word; font-size: 1.05rem; }
.fc-blank.xl { font-size: 1.4rem; }
.fc-blank.sm { font-size: .9rem; }
.fc-text { font-weight: 800; line-height: 1.2; word-break: break-word; margin-top: auto; }
.fc-ipa { min-height: 1.4em; }
.fc-ipa-chip { font-size: .85rem; padding: 3px 10px; border-radius: 999px; }
.fc-read { font-size: .82rem; opacity: .75; }
.fc-rule { width: 44px; height: 4px; border-radius: 4px; margin: 4px 0; }
.fc-mean2 { font-size: .95rem; font-weight: 600; opacity: .85; margin-bottom: auto; }
.fc-foot { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .74rem; margin-top: 4px; min-height: 18px; }
.flash-face.back .fc-foot { justify-content: center; }
.fc-dots { display: flex; gap: 4px; }
.fc-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .22; }
.fc-dots i.past { opacity: .5; }
.fc-dots i.on { width: 16px; border-radius: 6px; opacity: 1; }
.fc-hint { font-weight: 700; opacity: .75; }
.fc-badge { font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.fc-deco { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }

/* Dewasa: tinta gelap + aksen lime/biru seperti feed brand */
.flash-wrap.adult .flash-face.front { background: radial-gradient(120% 80% at 100% 0%, #1b2a12 0%, transparent 55%), linear-gradient(165deg, #11161d, #0b0e12); color: #f4f7ee; border: 1px solid rgba(215,255,58,.28); box-shadow: 0 24px 50px -24px rgba(0,0,0,.7); }
.flash-wrap.adult .front .fc-brand b { background: var(--fc-lime); color: var(--fc-ink); }
.flash-wrap.adult .front .fc-no { color: var(--fc-lime); }
.flash-wrap.adult .front .fc-blank { background: rgba(255,255,255,.06); border: 1px dashed rgba(215,255,58,.45); color: var(--fc-lime); }
.flash-wrap.adult .front .fc-dots i.on { background: var(--fc-lime); }
.flash-wrap.adult .front .d1 { width: 220px; height: 220px; right: -90px; top: -90px; background: rgba(26,124,255,.18); }
.flash-wrap.adult .front .d2 { width: 140px; height: 140px; left: -60px; bottom: 60px; border: 2px solid rgba(215,255,58,.18); }
.flash-wrap.adult .front .d3 { width: 10px; height: 10px; left: 26px; top: 64px; background: var(--fc-lime); }
.flash-wrap.adult .flash-face.back { background: linear-gradient(160deg, #d7ff3a, #b9f218); color: #0d1117; box-shadow: 0 24px 50px -24px rgba(0,0,0,.7); }
.flash-wrap.adult .back .fc-brand b { background: var(--fc-ink); color: var(--fc-lime); }
.flash-wrap.adult .back .fc-ipa-chip { background: rgba(13,17,23,.1); color: var(--fc-ink); }
.flash-wrap.adult .back .fc-ipa-chip b { color: var(--fc-ink); }
.flash-wrap.adult .back .fc-rule { background: var(--fc-ink); }
.flash-wrap.adult .back .fc-badge { background: var(--fc-ink); color: var(--fc-lime); }
.flash-wrap.adult .back .d1 { width: 260px; height: 260px; left: -120px; bottom: -120px; background: rgba(255,255,255,.28); }
.flash-wrap.adult .back .d2 { width: 90px; height: 90px; right: -20px; top: 70px; border: 3px solid rgba(13,17,23,.12); }
.flash-wrap.adult .fc-mean, .flash-wrap.adult .fc-text { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.01em; }

/* Anak-anak: kertas pastel, stiker, pantulan */
.flash-wrap.kids .flash-inner { transition: transform .85s cubic-bezier(.34,1.56,.64,1); }
.flash-wrap.kids .flash-face { font-family: "Baloo 2", Nunito, "Comic Sans MS", system-ui, sans-serif; border: 5px solid #fff; box-shadow: 0 12px 0 -4px #7c5cff, 0 22px 34px -14px rgba(0,0,0,.35); color: #33204f; }
.flash-wrap.kids .flash-face.front { background: radial-gradient(circle at 18% 12%, #fff6a8 0 18%, transparent 19%), linear-gradient(160deg, #ffe0ef, #d6ecff 55%, #dcffe0); }
.flash-wrap.kids .flash-face.back { background: radial-gradient(circle at 85% 10%, #fff 0 14%, transparent 15%), linear-gradient(160deg, #fff3b8, #ffd2e6 55%, #d4dbff); }
.flash-wrap.kids .fc-brand b { background: #7c5cff; color: #fff; }
.flash-wrap.kids .fc-no { color: #7c5cff; }
.flash-wrap.kids .fc-blank { background: #fff; color: #7c3aed; border: 2px dashed #c4b5fd; }
.flash-wrap.kids .fc-text { color: #5b2bd6; }
.flash-wrap.kids .fc-hint { color: #db2777; opacity: 1; animation: fc-wiggle 1.8s ease-in-out infinite; }
.flash-wrap.kids .fc-rule { background: #f472b6; }
.flash-wrap.kids .fc-ipa-chip { background: #fff; color: #5b2bd6; }
.flash-wrap.kids .fc-badge { background: #22c55e; color: #fff; }
.flash-wrap.kids .fc-dots i.on { background: #7c5cff; }
.flash-wrap.kids .d1 { width: 70px; height: 70px; right: 18px; bottom: 90px; background: rgba(255,255,255,.55); }
.flash-wrap.kids .d2 { width: 34px; height: 34px; left: 22px; bottom: 150px; background: rgba(124,92,255,.18); }
.flash-wrap.kids .d3 { width: 18px; height: 18px; right: 46px; top: 70px; background: #fde047; }
.flash-wrap.kids .flash-card:hover .flash-inner { transform: translateY(-4px) rotate(-1deg); }
.flash-wrap.kids .flash-card.flipped:hover .flash-inner { transform: rotateY(180deg) translateY(-4px) rotate(1deg); }
.flash-wrap.kids .fc-art .illus { animation: illus-bob 2.6s ease-in-out infinite; }
@keyframes fc-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
@keyframes illus-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.flash-card.enter-next .flash-inner { animation: fc-in-next .45s cubic-bezier(.2,.8,.2,1); }
.flash-card.enter-prev .flash-inner { animation: fc-in-prev .45s cubic-bezier(.2,.8,.2,1); }
@keyframes fc-in-next { from { transform: translateX(46px) rotate(3deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fc-in-prev { from { transform: translateX(-46px) rotate(-3deg); opacity: 0; } to { transform: none; opacity: 1; } }
.flash-ctrl { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.fc-btn { min-width: 50px; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 700; cursor: pointer; }
.fc-btn.wide { min-width: 140px; }
.fc-btn.on { background: #16a34a; border-color: #16a34a; color: #fff; }
.fc-btn:disabled { opacity: .35; cursor: default; }
.fc-btn:not(:disabled):hover { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .flash-inner, .flash-wrap.kids .flash-inner { transition-duration: .01s; }
  .flash-wrap.kids .fc-hint, .flash-wrap.kids .fc-art .illus, .flash-card.enter-next .flash-inner, .flash-card.enter-prev .flash-inner { animation: none; }
}

/* Ilustrasi garis Macaboo */
.illus svg { width: 100%; height: 100%; display: block; overflow: visible; }
.teach .illus { width: 96px; height: 96px; }
.teach .illus.kids { width: 110px; height: 110px; animation: illus-bob 2.6s ease-in-out infinite; }
.sum-word .illus { width: 40px; height: 40px; }
/* Ilustrasi garis Macaboo: satu gaya, warna lewat variabel */
.il { --il-ink: var(--text, #111); --il-fill: color-mix(in srgb, var(--accent, #d7ff3a) 38%, transparent); --il-fill2: color-mix(in srgb, #1a7cff 26%, transparent); }
.il svg { width: 100%; height: 100%; display: block; overflow: visible; }
.il .ln { fill: none; stroke: var(--il-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.il .ln.f1 { fill: var(--il-fill); }
.il .ln.f2 { fill: var(--il-fill2); }
.il .ln.f0 { stroke: var(--il-fill2); stroke-width: 6; }
.il .ln.soft { stroke-width: 3; opacity: .55; }
.il .ink { fill: var(--il-ink); }
.il .blush { fill: #ff8fb1; opacity: .55; }
.il .il-num { font: 800 46px system-ui, sans-serif; fill: var(--il-ink); }
.il.kids { --il-fill: #fff3a6; --il-fill2: #ffc6de; }
/* Di kartu flashcard */
.flash-wrap.adult .front .il { --il-ink: #f4f7ee; --il-fill: rgba(215,255,58,.32); --il-fill2: rgba(26,124,255,.42); }
.flash-wrap.kids .il { --il-ink: #33204f; --il-fill: #ffe0ea; --il-fill2: #fff3a6; }
.teach .il { width: 104px; height: 104px; margin: 0 auto 6px; }
.teach .il.kids { width: 120px; height: 120px; animation: illus-bob 2.6s ease-in-out infinite; }
.sum-word .il { width: 44px; height: 44px; margin: 0; justify-self: start; }
@media (prefers-reduced-motion: reduce) { .teach .il.kids { animation: none; } }

/* ── Flashcard mode Anu Basa: warna feed Anu Basa (mint, teal, biru, pink) ── */
.fc-ab { display: none; }
:root[data-theme="anubasa"] .fc-mb { display: none; }
:root[data-theme="anubasa"] .fc-ab { display: inline; }
:root[data-theme="anubasa"] .flash-wrap { --ab-teal: #249E8E; --ab-blue: #007DFF; --ab-pink: #FDACC1; --ab-ink: #1E2725; --ab-mint: #F1F8F6; }
:root[data-theme="anubasa"] .flash-kicker { color: #249E8E; }

/* Dewasa: kertas putih-mint bersih, aksen teal; belakang teal penuh */
:root[data-theme="anubasa"] .flash-wrap.adult .flash-face.front {
  background: radial-gradient(110% 70% at 100% 0%, rgba(0,125,255,.10) 0%, transparent 55%), linear-gradient(170deg, #ffffff, #F1F8F6);
  color: #1E2725; border: 1px solid #CFE3DC; box-shadow: 0 22px 44px -22px rgba(36,158,142,.45); }
:root[data-theme="anubasa"] .flash-wrap.adult .front .fc-brand b { background: #249E8E; color: #fff; }
:root[data-theme="anubasa"] .flash-wrap.adult .front .fc-no { color: #249E8E; }
:root[data-theme="anubasa"] .flash-wrap.adult .front .fc-blank { background: #fff; border: 1px dashed #249E8E; color: #007DFF; }
:root[data-theme="anubasa"] .flash-wrap.adult .front .fc-dots i.on { background: #249E8E; }
:root[data-theme="anubasa"] .flash-wrap.adult .front .d1 { background: rgba(253,172,193,.35); }
:root[data-theme="anubasa"] .flash-wrap.adult .front .d2 { border-color: rgba(36,158,142,.25); }
:root[data-theme="anubasa"] .flash-wrap.adult .front .d3 { background: #007DFF; }
:root[data-theme="anubasa"] .flash-wrap.adult .front .il { --il-ink: #1E2725; --il-fill: rgba(36,158,142,.22); --il-fill2: rgba(253,172,193,.6); }
:root[data-theme="anubasa"] .flash-wrap.adult .flash-face.back { background: linear-gradient(160deg, #249E8E, #1b8a7b 60%, #007DFF); color: #fff; box-shadow: 0 22px 44px -22px rgba(36,158,142,.55); }
:root[data-theme="anubasa"] .flash-wrap.adult .back .fc-brand b { background: #fff; color: #249E8E; }
:root[data-theme="anubasa"] .flash-wrap.adult .back .fc-ipa-chip { background: rgba(255,255,255,.18); color: #fff; }
:root[data-theme="anubasa"] .flash-wrap.adult .back .fc-ipa-chip b { color: #fff; }
:root[data-theme="anubasa"] .flash-wrap.adult .back .fc-rule { background: #FDACC1; }
:root[data-theme="anubasa"] .flash-wrap.adult .back .fc-badge { background: #fff; color: #249E8E; }
:root[data-theme="anubasa"] .flash-wrap.adult .back .d1 { background: rgba(255,255,255,.16); }
:root[data-theme="anubasa"] .flash-wrap.adult .back .d2 { border-color: rgba(253,172,193,.55); }
:root[data-theme="anubasa"] .flash-wrap.adult .fc-mean, :root[data-theme="anubasa"] .flash-wrap.adult .fc-text { font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif; letter-spacing: -.02em; }

/* Anak-anak: pastel Anu Basa (pink, mint, biru muda) dengan bayangan teal */
:root[data-theme="anubasa"] .flash-wrap.kids .flash-face { color: #1E2725; box-shadow: 0 12px 0 -4px #249E8E, 0 22px 34px -14px rgba(36,158,142,.4); }
:root[data-theme="anubasa"] .flash-wrap.kids .flash-face.front { background: radial-gradient(circle at 18% 12%, #ffffff 0 16%, transparent 17%), linear-gradient(160deg, #FFE3EB, #E3F6F2 55%, #DDEEFF); }
:root[data-theme="anubasa"] .flash-wrap.kids .flash-face.back { background: radial-gradient(circle at 85% 10%, #fff 0 14%, transparent 15%), linear-gradient(160deg, #CFF1EB, #FFD7E2 55%, #D3E8FF); }
:root[data-theme="anubasa"] .flash-wrap.kids .fc-brand b { background: #249E8E; color: #fff; }
:root[data-theme="anubasa"] .flash-wrap.kids .fc-no { color: #249E8E; }
:root[data-theme="anubasa"] .flash-wrap.kids .fc-blank { color: #007DFF; border-color: #9FD9CF; }
:root[data-theme="anubasa"] .flash-wrap.kids .fc-text { color: #1b7f72; }
:root[data-theme="anubasa"] .flash-wrap.kids .fc-hint { color: #e0567a; }
:root[data-theme="anubasa"] .flash-wrap.kids .fc-rule { background: #FDACC1; }
:root[data-theme="anubasa"] .flash-wrap.kids .fc-ipa-chip { color: #1b7f72; }
:root[data-theme="anubasa"] .flash-wrap.kids .fc-dots i.on { background: #249E8E; }
:root[data-theme="anubasa"] .flash-wrap.kids .d2 { background: rgba(0,125,255,.15); }
:root[data-theme="anubasa"] .flash-wrap.kids .d3 { background: #FDACC1; }
:root[data-theme="anubasa"] .flash-wrap.kids .il { --il-ink: #1E2725; --il-fill: #FFE3EB; --il-fill2: #CFF1EB; }
:root[data-theme="anubasa"] .fc-btn.on { background: #249E8E; border-color: #249E8E; }

/* Ilustrasi berwarna asli: garis gelap + tepi putih seperti stiker, jelas di kartu terang maupun gelap */
.il.nat { --il-ink: #1E2725 !important; filter: drop-shadow(0 0 1.2px #fff) drop-shadow(0 0 1.2px #fff) drop-shadow(0 3px 6px rgba(0,0,0,.18)); }
.il.nat .blush { opacity: .45; }

/* Adegan ilustrasi 800x600 (data/scenes.js) */
.illus.scene { display: block; width: 100%; aspect-ratio: 4 / 3; margin: 0 auto; }
.illus.scene svg { width: 100%; height: 100%; display: block; border-radius: 18px; overflow: hidden; }
.fc-art .illus.scene { width: min(100%, 300px); height: auto; max-height: none; aspect-ratio: 4 / 3; margin: 0 auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,.18)); }
@supports (width: 1cqh) { .fc-art .illus.scene { width: min(100cqw, 300px, 128cqh); } }
.teach .illus.scene { width: min(100%, 300px); height: auto; margin: 0 auto 10px; }
.teach .illus.scene.kids { animation: illus-bob 3s ease-in-out infinite; }
.sum-word .illus.scene.mini { width: 100%; max-width: 150px; height: auto; aspect-ratio: 4 / 3; }
.sum-word .illus.scene.mini svg { border-radius: 10px; }
/* Ilustrasi 3D Fluent Emoji: latar lembut senada + bayangan lantai */
.illus.scene.photo .ph-bg { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 35%, #fff 0%, var(--g1) 55%, var(--g2) 100%); }
.illus.scene.photo .ph-bg::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: 13%; height: 7%; border-radius: 50%; background: rgba(40,30,20,.22); filter: blur(6px); }
.illus.scene.photo img { position: relative; z-index: 1; width: 58%; height: auto; margin-top: -4%; filter: drop-shadow(0 10px 12px rgba(40,30,20,.18)); user-select: none; }
.sum-word .illus.scene.photo .ph-bg { border-radius: 10px; }
.q-illus { display: flex; justify-content: center; margin: 0 0 12px; }
.q-illus .illus.scene { width: min(100%, 260px); }
.q-illus .illus.scene svg { box-shadow: 0 6px 18px rgba(0,0,0,.12); }
@media (prefers-reduced-motion: reduce) { .teach .illus.scene.kids { animation: none; } }

/* Mode coba admin (Kurikulum) */
.coba-tag { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; font-size: 13px;
  background: rgba(255, 196, 0, .14); border: 1px dashed rgba(255, 196, 0, .55); }
.coba-tag span { opacity: .75; font-size: 12px; }

/* Konteks soal balas percakapan */
.dlg-context { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45;
  background: rgba(47, 125, 209, .1); border: 1px solid rgba(47, 125, 209, .3); }

/* Hitungan salah per alur di layar soal kelas (pengganti tenaga) */
.s-top .s-wrong { gap: 4px; white-space: nowrap; color: var(--muted); }
.s-top .s-wrong.has { color: #ff6b6b; }
.s-top .s-wrong small { font-size: 11px; font-weight: 600; opacity: .8; }
@media (max-width: 420px) { .s-top .s-wrong small { display: none; } }

/* Mode Boo: Boo · Flashcard · Baca */
.boo-modes { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin: 16px 0 4px; padding: 4px; border-radius: 999px; background: var(--card, rgba(127,127,127,.08)); border: 1px solid var(--line, rgba(127,127,127,.25)); width: 100%; max-width: 520px; }
.boo-modes a { display: flex; justify-content: center; align-items: center; gap: 5px; padding: 8px 6px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; color: inherit; white-space: nowrap; min-width: 0; }
.boo-modes a.on { background: var(--accent, #d4ff3a); color: #111; }
.boo-modes a:not(.on):hover { background: rgba(127,127,127,.14); }
/* Saldo XP kelas */
.xp-wallet .xpw-ico { font-size: 30px; line-height: 1; flex: 0 0 auto; }
/* Mode Baca */
.read-module { margin: 4px 0 14px; }
.read-module h3 { margin: 10px 0 2px; font-size: 16px; }
.read-lesson { border: 1px solid var(--line, rgba(127,127,127,.25)); border-radius: 12px; margin: 8px 0; background: var(--card, transparent); }
.read-lesson > summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.read-lesson > summary::-webkit-details-marker { display: none; }
.read-lesson > summary strong { flex: 1; min-width: 140px; }
.read-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(127,127,127,.18); font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.read-body { padding: 0 14px 14px; line-height: 1.55; }
.read-body h4 { margin: 14px 0 6px; font-size: 14px; color: var(--accent, #d4ff3a); }
.read-goal { margin: 4px 0 0; font-weight: 600; }
.read-notes, .read-tips, .read-examples { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.read-notes li { display: grid; gap: 2px; }
.read-examples { list-style: none; padding-left: 0; }
.read-examples li { display: flex; gap: 10px; align-items: flex-start; }
.read-say { all: unset; cursor: pointer; padding: 2px 6px; border-radius: 8px; background: rgba(127,127,127,.15); }
.read-vocab { display: flex; flex-wrap: wrap; gap: 6px; }
.read-vocab span { padding: 4px 10px; border-radius: 999px; background: rgba(127,127,127,.14); font-size: 13px; }

/* Kartu tanpa gambar yang sesuai: arti dan petunjuk di tengah, huruf lebih besar (tanpa ikon pengganti). */
.flash-face.front.no-art .fc-spacer { flex: 1 1 auto; }
.flash-face.front.no-art .fc-label { margin-top: 0; }
.flash-face.front.no-art .fc-mean { line-height: 1.2; }
.flash-face.front.no-art .fc-mean.xl { font-size: clamp(32px, 8vw, 44px); }
.flash-face.front.no-art .fc-mean.lg { font-size: clamp(26px, 6.4vw, 36px); }
.flash-face.front.no-art .fc-mean.md { font-size: clamp(21px, 5vw, 28px); }
.flash-face.front.no-art .fc-mean.sm { font-size: clamp(17px, 4vw, 22px); }
.flash-face.front.no-art .fc-blank { font-size: clamp(17px, 3.8vw, 22px); }
.flash-face.front.no-art .fc-foot { margin-top: auto; }
.flash-face.front.no-art .fc-mean::before { content: ''; display: block; width: 44px; height: 4px; margin: 0 auto 16px; border-radius: 4px; background: var(--accent, #d4ff3a); opacity: .8; }

/* Boo di kartu tanpa gambar: mata mengikuti kursor/jari (js/boo-eyes.js), berkedip sesekali. */
.flash-face.front.no-art .fc-boo-wrap { display: grid; place-items: center; }
.fc-boo { font-size: clamp(46px, 13vw, 68px); box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.fc-boo .eye, .boo.blink .eye { animation: boo-blink 5.5s infinite; transform-origin: 50% 50%; }
.fc-boo .eye:nth-child(2), .boo.blink .eye:nth-child(2) { animation-delay: .04s; }
.boo[data-follow].tracking .eye b { animation: none; transition: transform .09s linear; }
@keyframes boo-blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.12); } }
@media (prefers-reduced-motion: reduce) { .fc-boo .eye, .fc-boo .eye b, .boo.blink .eye { animation: none; } }
