/* ==========================================================================
   LatihASN — Kulit Modern Bento versi HP (mengikuti RuterIn)
   Bundel font lokal (Inter + Plus Jakarta Sans), nol CDN.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-canvas: #F4F6FB;
  --surface: #FFFFFF;
  --surface-soft: #F8FAFC;
  --border-subtle: #E5ECF6;
  --border-strong: #CBD5E1;

  --ink-primary: #0F172A;
  --ink-secondary: #475569;
  --ink-muted: #64748B;

  --brand-primary: #2563EB;
  --brand-dark: #1E293B;
  --brand-soft: #EFF6FF;
  --brand-soft-border: #BFDBFE;

  --ok-bg: #ECFDF5;
  --ok-ink: #047857;
  --ok-border: #A7F3D0;
  --ok-solid: #10B981;

  --warn-bg: #FFFBEB;
  --warn-ink: #B45309;
  --warn-border: #FDE68A;
  --warn-solid: #F59E0B;

  --err-bg: #FEF2F2;
  --err-ink: #B91C1C;
  --err-border: #FECACA;
  --err-solid: #EF4444;

  --radius-card: 22px;
  --radius-tile: 16px;
  --radius-btn: 14px;
  --radius-pill: 999px;

  --shadow-bento: 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-dock: 0 12px 32px rgba(15, 23, 42, 0.14);

  --font-display: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-body: "Inter", "Plus Jakarta Sans", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #F4F6FB;
  color: #0F172A;
  font-family: "Inter", "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  margin: 0;
  letter-spacing: -0.02em;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

.hidden {
  display: none !important;
}

.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  background: #F4F6FB;
}

.view-root {
  padding: 14px 14px 104px 14px;
}

.view-root.no-dock-pad {
  padding-bottom: 24px;
}

@-webkit-keyframes bentoPop {
  0% { opacity: 0; -webkit-transform: translateY(8px) scale(0.985); transform: translateY(8px) scale(0.985); }
  100% { opacity: 1; -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
}
@keyframes bentoPop {
  0% { opacity: 0; transform: translateY(8px) scale(0.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.pop-in {
  -webkit-animation: bentoPop 0.24s ease-out both;
  animation: bentoPop 0.24s ease-out both;
}

.bento-card {
  background: #FFFFFF;
  border: 1px solid #E5ECF6;
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.hero-card {
  background: #FFFFFF;
  border: 1px solid #DCE6F5;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.07);
}

.card-header-row {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-title {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 14px 2px 8px 2px;
}

.top-bar {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 2px;
}

.brand-row {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}

.brand-mark {
  display: inline-block;
  width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  border-radius: 13px;
  background: #1E293B;
  color: #FFFFFF;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 800;
  font-size: 15px;
  margin-right: 10px;
  letter-spacing: -0.03em;
}

.brand-name {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #0F172A;
  line-height: 1.2;
}

.brand-sub {
  font-size: 12px;
  color: #64748B;
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.pill-blue { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }
.pill-dark { background: #1E293B; color: #FFFFFF; }
.pill-ok { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.pill-warn { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }
.pill-err { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.pill-slate { background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0; }

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 14px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  -webkit-transition: transform 0.12s ease, opacity 0.12s ease;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:active {
  -webkit-transform: scale(0.97);
  transform: scale(0.97);
}

.btn-full { display: block; width: 100%; }
.btn-primary { background: #2563EB; color: #FFFFFF; }
.btn-dark { background: #1E293B; color: #FFFFFF; }
.btn-soft { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }
.btn-outline { background: #FFFFFF; color: #0F172A; border: 1px solid #CBD5E1; }
.btn-warn { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }
.btn-warn.active { background: #F59E0B; color: #FFFFFF; border-color: #F59E0B; }
.btn-ok { background: #10B981; color: #FFFFFF; }
.btn-danger { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 11px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.bento-row {
  display: -webkit-flex;
  display: flex;
  margin-left: -5px;
  margin-right: -5px;
}

.bento-col {
  -webkit-flex: 1;
  flex: 1;
  padding-left: 5px;
  padding-right: 5px;
  min-width: 0;
}

.bento-tile {
  background: #F8FAFC;
  border: 1px solid #E5ECF6;
  border-radius: 16px;
  padding: 11px 10px;
}

.bento-tile-white {
  background: #FFFFFF;
  border: 1px solid #E5ECF6;
  border-radius: 16px;
  padding: 13px 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.hero-title { font-size: 17px; font-weight: 800; color: #0F172A; margin-bottom: 4px; }
.hero-sub { font-size: 12px; color: #64748B; margin-bottom: 12px; }
.metric-lbl { font-size: 11px; font-weight: 600; color: #64748B; }
.metric-val { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-size: 20px; font-weight: 800; color: #0F172A; line-height: 1.2; margin-top: 2px; }
.metric-note { font-size: 10.5px; color: #64748B; margin-top: 2px; }

.last-score-strip {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1px solid #E5ECF6;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}

.resume-card {
  background: #EFF6FF;
  border: 1px solid #93C5FD;
  border-radius: 22px;
  padding: 14px;
  margin-bottom: 12px;
}

.resume-title { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-weight: 800; font-size: 14px; color: #1E3A8A; }
.resume-meta { font-size: 12px; color: #1D4ED8; margin: 3px 0 10px 0; }

.menu-card {
  display: block;
  width: 100%;
  text-align: left;
  background: #FFFFFF;
  border: 1px solid #E5ECF6;
  border-radius: 18px;
  padding: 13px;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.menu-card.locked { background: #F8FAFC; border-style: dashed; border-color: #CBD5E1; }
.menu-card-title { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-weight: 700; font-size: 14px; color: #0F172A; margin-bottom: 3px; }
.menu-card-desc { font-size: 12px; color: #64748B; line-height: 1.4; }

.honest-banner {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #2563EB;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: #475569;
  line-height: 1.45;
  margin-top: 10px;
}

.login-wrap { padding-top: 18px; }
.login-hero { text-align: center; padding: 24px 18px; }
.login-logo-big {
  width: 64px;
  height: 64px;
  line-height: 64px;
  margin: 0 auto 14px auto;
  border-radius: 20px;
  background: #1E293B;
  color: #FFFFFF;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.google-btn {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  background: #1E293B;
  color: #FFFFFF;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: 14px;
  margin-top: 16px;
}

.google-g {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #1E293B;
  font-weight: 800;
  font-size: 13px;
  margin-right: 10px;
  text-align: center;
}

.feature-chip-row { display: -webkit-flex; display: flex; margin-top: 14px; margin-left: -4px; margin-right: -4px; }
.feature-chip { -webkit-flex: 1; flex: 1; margin: 0 4px; background: #F8FAFC; border: 1px solid #E5ECF6; border-radius: 14px; padding: 9px 6px; text-align: center; }
.feature-chip strong { display: block; font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-size: 14px; color: #0F172A; }
.feature-chip span { font-size: 10.5px; color: #64748B; }

.tab-bar { display: -webkit-flex; display: flex; background: #E9EFF8; border-radius: 15px; padding: 4px; margin-bottom: 12px; }
.tab-btn { -webkit-flex: 1; flex: 1; padding: 8px 6px; border-radius: 11px; background: transparent; color: #475569; font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-weight: 700; font-size: 12.5px; }
.tab-btn.active { background: #FFFFFF; color: #2563EB; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }

.count-pill-row { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; margin-bottom: 12px; }
.count-chip { padding: 6px 12px; border-radius: 999px; background: #FFFFFF; border: 1px solid #E5ECF6; color: #475569; font-weight: 700; font-size: 12px; margin-left: 6px; }
.count-chip.active { background: #1E293B; color: #FFFFFF; border-color: #1E293B; }

.subtopic-item {
  background: #FFFFFF;
  border: 1px solid #E5ECF6;
  border-radius: 18px;
  padding: 13px;
  margin-bottom: 9px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}
.subtopic-info { padding-right: 10px; min-width: 0; -webkit-flex: 1; flex: 1; }
.subtopic-name { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-weight: 700; font-size: 13.5px; color: #0F172A; }
.subtopic-meta { font-size: 11.5px; color: #64748B; margin-top: 2px; }

.cat-header {
  background: #FFFFFF;
  border: 1px solid #E5ECF6;
  border-radius: 18px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.timer-badge {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 12px;
  background: #1E293B;
  color: #FFFFFF;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.03em;
}
.timer-badge.urgent { background: #EF4444; }
.autosave-note { font-size: 11px; color: #047857; font-weight: 600; }

.palet-card { background: #FFFFFF; border: 1px solid #E5ECF6; border-radius: 18px; padding: 12px; margin-bottom: 10px; }
.palet-legend { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; font-size: 11px; color: #64748B; margin-bottom: 8px; }
.legend-item { margin-right: 10px; display: inline-block; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.dot-kosong { background: #E2E8F0; }
.dot-terjawab { background: #10B981; }
.dot-ragu { background: #F59E0B; }

.palet-grid { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: -3px; }
.palet-num {
  width: 31px;
  height: 31px;
  margin: 3px;
  border-radius: 10px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: 12px;
  background: #F1F5F9;
  color: #475569;
  border: 1.5px solid transparent;
}
.palet-num.terjawab { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.palet-num.ragu { background: #FFFBEB; color: #B45309; border-color: #F59E0B; }
.palet-num.current { background: #2563EB; color: #FFFFFF; border-color: #2563EB; }

.question-text { font-size: 14.5px; line-height: 1.62; color: #0F172A; white-space: pre-line; margin-bottom: 14px; }

.option-btn {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  margin-bottom: 8px;
  border-radius: 15px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  color: #0F172A;
  font-size: 13.5px;
  line-height: 1.45;
}
.option-btn.selected { background: #EFF6FF; border-color: #2563EB; }
.option-btn.correct { background: #ECFDF5; border-color: #10B981; }
.option-btn.wrong { background: #FEF2F2; border-color: #EF4444; }

.option-key {
  display: inline-block;
  min-width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 9px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 800;
  font-size: 12px;
  margin-right: 10px;
  color: #0F172A;
}
.option-btn.selected .option-key { background: #2563EB; color: #FFFFFF; border-color: #2563EB; }
.option-btn.correct .option-key { background: #10B981; color: #FFFFFF; border-color: #10B981; }
.option-btn.wrong .option-key { background: #EF4444; color: #FFFFFF; border-color: #EF4444; }
.option-body { -webkit-flex: 1; flex: 1; padding-top: 2px; }

.cat-nav-row { display: -webkit-flex; display: flex; margin-left: -4px; margin-right: -4px; margin-top: 10px; }
.cat-nav-row > button { margin: 0 4px; -webkit-flex: 1; flex: 1; }

.explain-box {
  background: #F8FAFC;
  border: 1px solid #DBEAFE;
  border-left: 4px solid #2563EB;
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-line;
  color: #0F172A;
}

.freemium-lock-box { text-align: center; padding: 24px 16px; background: #F8FAFC; border: 1.5px dashed #CBD5E1; border-radius: 18px; }
.score-hero-num { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-size: 40px; font-weight: 800; line-height: 1.1; color: #0F172A; }
.score-hero-max { font-size: 16px; font-weight: 600; color: #64748B; }

.riwayat-item {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}
.riwayat-item:last-child { border-bottom: none; padding-bottom: 0; }

.kebutuhan-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
}
.kebutuhan-opt.active { background: #EFF6FF; border-color: #2563EB; }

.bottom-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 40;
  pointer-events: none;
}

.dock-pill {
  pointer-events: auto;
  max-width: 366px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #DDE5F2;
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-around;
  justify-content: space-around;
}

.dock-btn { background: transparent; color: #64748B; padding: 6px 8px; border-radius: 14px; text-align: center; min-width: 56px; }
.dock-btn.active { color: #2563EB; background: #EFF6FF; }
.dock-ico { display: block; line-height: 1; margin-bottom: 2px; }
.dock-lbl { display: block; font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-size: 10px; font-weight: 700; }

.dock-fab {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #1E293B;
  color: #FFFFFF;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.48);
  z-index: 60;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-end;
  align-items: flex-end;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 12px;
}

.modal-sheet {
  width: 100%;
  max-width: 406px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.24);
}

.toast-box {
  position: fixed;
  top: 14px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: 70;
  background: #1E293B;
  color: #FFFFFF;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.24);
  max-width: 360px;
  text-align: center;
}

.text-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1.5px solid #CBD5E1;
  background: #F8FAFC;
  color: #0F172A;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  outline: none;
}
.text-input:focus {
  background: #FFFFFF;
  border-color: #2563EB;
}
.aktivasi-msg {
  font-size: 12px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 11px;
  font-weight: 600;
}
.aktivasi-msg.ok { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.aktivasi-msg.err { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
