/* ========== ROOT VARIABLES (LIGHT MODE) ========== */
:root {
  --bg: #FBF9F4;
  --bg2: #F4F0E8;
  --bg3: #ECE6D9;
  --surface: #FFFFFF;
  --ink: #19140F;
  --ink2: #4A4038;
  --ink3: #948578;
  --line: #E8E1D2;
  --accent: #B6481B;
  --accent2: #DC6A3D;
  --pa: #1D4ED8;
  --pb: #15803D;
  --pc: #B45309;
  --tab-h: 64px;
  --hdr-h: 52px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --spring-soft: cubic-bezier(.22, 1.2, .36, 1);
  --spring-fluid: cubic-bezier(.2, 1.4, .4, 1);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 2px 16px rgba(28, 23, 20, .07);
  --shadow-lg: 0 8px 28px rgba(28, 23, 20, .16);
  --glass-bg: rgba(251, 249, 244, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
  --home-glass-bg: rgba(251, 249, 244, 0.08);
  --home-glass-border: rgba(255, 255, 255, 0.18);
  /* ===== TAB MENU LIGHT — frosted glass ===== */
  --tabs-bg: rgba(25, 20, 15, 0.9);
  --tabs-border: rgba(255, 255, 255, 0.15);
  --tabs-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 0.5px rgba(255, 255, 255, 0.1) inset;
  --tabs-icon: rgba(255, 255, 255, 0.7);
  --tabs-icon-on: #ffffff;
  --tabs-active-bg: rgba(255, 255, 255, 0.1);
  --tabs-label: rgba(255, 255, 255, 0.7);
  --tabs-label-on: #ffffff;
  --search-overlay-bg: rgba(251, 249, 244, 0.98);
  --rdr-hdr-bg: rgba(251, 249, 244, .92);
  --pdf-hdr-bg: rgba(28, 23, 20, .92);
  --splash-bg: #FBF9F4;
  --splash-ink: #19140F;
  --transition-speed: 0.35s;
}

/* ========== DARK MODE VARIABLES ========== */
body.dark-mode {
  --bg: #1A1714;
  --bg2: #26221E;
  --bg3: #332E29;
  --surface: #2A2622;
  --ink: #F0EBE4;
  --ink2: #C5BCB0;
  --ink3: #8A7E70;
  --line: #3D3731;
  --accent: #DC6A3D;
  --accent2: #E8834A;
  --pa: #5B8DEF;
  --pb: #4CAF50;
  --pc: #F57C00;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(26, 23, 20, 0.78);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --home-glass-bg: rgba(26, 23, 20, 0.25);
  --home-glass-border: rgba(255, 255, 255, 0.06);
  /* ===== TAB MENU DARK — frosted glass ===== */
  --tabs-bg: rgba(10, 8, 6, 0.95);
  --tabs-border: rgba(255, 255, 255, 0.05);
  --tabs-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(255, 255, 255, 0.05) inset;
  --tabs-icon: rgba(255, 255, 255, 0.6);
  --tabs-icon-on: #ffffff;
  --tabs-active-bg: rgba(255, 255, 255, 0.08);
  --tabs-label: rgba(255, 255, 255, 0.6);
  --tabs-label-on: #ffffff;
  --search-overlay-bg: rgba(26, 23, 20, 0.98);
  --rdr-hdr-bg: rgba(26, 23, 20, .92);
  --pdf-hdr-bg: rgba(10, 8, 6, .96);
  --splash-bg: #1A1714;
  --splash-ink: #F0EBE4;

  .hc-slide .hf-btn,
  body.dark-mode .hc-slide .hf-btn {
    color: #000000 !important;
  }
}

/* ========== BASE & RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}
img {
  display: block;
  max-width: 100%;
}

/* ========== HEADER — simetris ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--hdr-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-bottom: 0.5px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform 0.42s cubic-bezier(0.2, 0.9, 0.4, 1.1),
    background var(--transition-speed) ease,
    border-color var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
  transform: translateY(0);
}
header.header-hidden {
  transform: translateY(-100%);
}
header.on-home {
  background: var(--home-glass-bg);
  backdrop-filter: blur(32px) saturate(220%);
  -webkit-backdrop-filter: blur(32px) saturate(220%);
  border-bottom: 0.5px solid var(--home-glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hdr-left,
.hdr-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.hdr-left {
  justify-content: flex-start;
}
.hdr-right {
  justify-content: flex-end;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.4px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: color var(--transition-speed) ease;
  flex: 1;
  text-align: center;
}
.logo em {
  color: var(--accent);
  font-style: normal;
  transition: color var(--transition-speed) ease;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink2);
  transition: background .22s, transform .35s var(--spring-fluid), color var(--transition-speed) ease;
}
.icon-btn:active {
  background: var(--bg2);
  transform: scale(.86);
}
.icon-btn .material-icons-round {
  font-size: 21px;
  transition: transform 0.5s var(--spring-fluid);
}
.icon-btn.dark-active .material-icons-round {
  transform: rotate(40deg) scale(1.1);
}

/* ========== BOTTOM TABS — frosted glass + shrink 0.8 ========== */
.btabs {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--tabs-bg);
  backdrop-filter: blur(40px) saturate(250%);
  -webkit-backdrop-filter: blur(40px) saturate(250%);
  border-radius: 52px;
  padding: 6px 10px;
  box-shadow: var(--tabs-shadow);
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.4, 1.2),
    opacity 0.4s ease,
    background var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
  opacity: 1;
  will-change: transform, opacity;
  transform-origin: bottom center;
}
.btabs.btabs-shrink {
  transform: translateX(-50%) scale(0.8);
  opacity: 0.9;
}

.bt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 42px;
  transition: all 0.5s var(--spring-fluid), background 0.4s ease;
  background: transparent;
  position: relative;
  min-width: 60px;
  will-change: transform, background;
}
.bt:active {
  transform: scale(0.88);
  transition: transform 0.12s ease-out;
}
.bt .material-icons-round {
  font-size: 22px;
  color: var(--tabs-icon);
  transition: all 0.5s var(--spring-fluid), color var(--transition-speed) ease;
  will-change: transform, color;
}
.bt-lbl {
  font-size: 10px;
  font-weight: 500;
  color: var(--tabs-label);
  letter-spacing: 0.3px;
  transition: all 0.5s var(--spring-fluid), color var(--transition-speed) ease;
  will-change: transform, color, opacity;
}
.bt.on {
  background: var(--tabs-active-bg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.bt.on .material-icons-round {
  color: var(--tabs-icon-on);
  transform: scale(1.08) translateY(-1px);
}
.bt.on .bt-lbl {
  color: var(--tabs-label-on);
  font-weight: 600;
  transform: scale(1.02);
}
@media (hover: hover) {
  .bt:hover:not(.on) {
    background: var(--tabs-active-bg);
    transform: translateY(-2px);
  }
  .bt:hover:not(.on) .material-icons-round {
    color: var(--tabs-icon-on);
    transform: scale(1.04);
  }
  .bt:hover:not(.on) .bt-lbl {
    color: var(--tabs-label-on);
  }
}

/* ========== SEARCH OVERLAY ========== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--search-overlay-bg);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 0 18px;
  transition: opacity .3s ease, transform .35s cubic-bezier(.32,1,.46,1), background var(--transition-speed) ease;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  visibility: hidden;
}
.search-overlay.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}
.search-bar {
  height: var(--hdr-h);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
  transition: color var(--transition-speed) ease;
}
.search-input::placeholder {
  color: var(--ink3);
}
.search-cancel {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-speed) ease;
}
.search-divider {
  height: 1px;
  background: var(--line);
  transition: background var(--transition-speed) ease;
}
.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 18px 0;
}
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 14px;
}
.search-hint-box {
  margin: 14px 0 4px;
  padding: 14px 16px;
  background: var(--bg2);
  border-radius: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: background var(--transition-speed) ease;
}
.search-hint-box .shi-ico {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent);
  transition: color var(--transition-speed) ease;
}
.search-hint-box .shi-text {
  flex: 1;
}
.search-hint-box .shi-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  transition: color var(--transition-speed) ease;
}
.search-hint-box .shi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.shi-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink2);
  cursor: pointer;
  transition: all .28s var(--spring-fluid), background var(--transition-speed) ease, border-color var(--transition-speed) ease, color var(--transition-speed) ease;
}
.shi-chip:active {
  transform: scale(.9);
}
.shi-chip em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  transition: color var(--transition-speed) ease;
}
.shi-chip .chip-desc {
  font-weight: 400;
  color: var(--ink3);
  font-size: 10px;
  transition: color var(--transition-speed) ease;
}

/* ========== PANDUAN (opsional) ========== */
.panduan-section {
  margin: 28px 22px 0;
}
.panduan-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  transition: background var(--transition-speed) ease, border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.panduan-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.panduan-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-speed) ease;
}
.panduan-icon .material-icons-round {
  font-size: 18px;
  color: white;
}
.panduan-head-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  transition: color var(--transition-speed) ease;
}
.panduan-head-text p {
  font-size: 11px;
  color: var(--ink3);
  margin-top: 1px;
  transition: color var(--transition-speed) ease;
}
.panduan-formula {
  background: var(--bg2);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  transition: background var(--transition-speed) ease;
}
.pf-part {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pf-part .pf-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.3px;
  transition: color var(--transition-speed) ease;
}
.pf-part .pf-lbl {
  font-size: 9px;
  font-weight: 600;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: .8px;
  transition: color var(--transition-speed) ease;
}
.pf-plus {
  font-size: 16px;
  color: var(--ink3);
  margin: 0 4px;
  padding-top: 4px;
  transition: color var(--transition-speed) ease;
}
.pf-sep {
  width: 1px;
  height: 32px;
  background: var(--line);
  margin: 0 10px;
  transition: background var(--transition-speed) ease;
}
.panduan-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.panduan-ex {
  background: var(--bg2);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all .28s var(--spring-fluid), background var(--transition-speed) ease, border-color var(--transition-speed) ease;
  border: 1.5px solid transparent;
}
.panduan-ex:hover,
.panduan-ex:active {
  border-color: var(--accent);
  transform: scale(.97);
  background: rgba(182, 72, 27, .07);
}
.panduan-ex .pe-query {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: -.2px;
  margin-bottom: 4px;
  transition: color var(--transition-speed) ease;
}
.panduan-ex .pe-arrow {
  font-size: 10px;
  color: var(--ink3);
  margin-bottom: 2px;
  transition: color var(--transition-speed) ease;
}
.panduan-ex .pe-result {
  font-size: 11px;
  color: var(--ink2);
  line-height: 1.4;
  transition: color var(--transition-speed) ease;
}
.panduan-ex .pe-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.pe-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 50px;
  letter-spacing: .3px;
  transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}
.pe-tag.pa {
  background: #DBEAFE;
  color: #1E3A8A;
}
.pe-tag.pb {
  background: #DCFCE7;
  color: #14532D;
}
.pe-tag.pc {
  background: #FEF3C7;
  color: #78350F;
}
.pe-tag.mapel {
  background: var(--bg3);
  color: var(--ink3);
}
.panduan-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  background: rgba(182, 72, 27, .06);
  border-radius: 10px;
  border-left: 3px solid var(--accent);
  transition: background var(--transition-speed) ease, border-color var(--transition-speed) ease;
}
.panduan-note .material-icons-round {
  font-size: 15px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
  transition: color var(--transition-speed) ease;
}
.panduan-note p {
  font-size: 11.5px;
  color: var(--ink2);
  line-height: 1.6;
  transition: color var(--transition-speed) ease;
}
.panduan-note strong {
  color: var(--ink);
  font-weight: 600;
  transition: color var(--transition-speed) ease;
}

/* ========== MAIN ========== */
main {
  padding-top: var(--hdr-h);
  padding-bottom: calc(var(--tab-h) + 20px);
}
.screen {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .32s ease, transform .32s cubic-bezier(.32,1,.46,1);
}
.screen.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: screenIn .4s cubic-bezier(.32,1,.46,1) both;
}
@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.page-head {
  padding: 14px 22px 4px;
}
.page-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 4px;
  transition: color var(--transition-speed) ease;
}
.page-head h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -1px;
  transition: color var(--transition-speed) ease;
}
.load-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  gap: 14px;
}
.loader {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid var(--bg3);
  border-top-color: var(--accent);
  animation: spin .7s linear infinite;
  transition: border-color var(--transition-speed) ease;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.load-wrap p {
  font-size: 13px;
  color: var(--ink3);
  transition: color var(--transition-speed) ease;
}
.err-wrap {
  margin: 32px 22px;
  padding: 28px 24px;
  background: var(--surface);
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: background var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.err-wrap .err-ico {
  font-size: 38px;
  margin-bottom: 10px;
}
.err-wrap h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
  transition: color var(--transition-speed) ease;
}
.err-wrap p {
  font-size: 13px;
  color: var(--ink3);
  line-height: 1.7;
  margin-bottom: 16px;
  transition: color var(--transition-speed) ease;
}
.btn-retry {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-speed) ease;
}

/* ========== HERO CAROUSEL ========== */
.hero-carousel {
  margin: 18px 22px 0;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  touch-action: pan-y;
  transition: box-shadow var(--transition-speed) ease;
}
.hc-track {
  display: flex;
  will-change: transform;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.hc-slide {
  flex-shrink: 0;
  width: 100%;
  position: relative;
  cursor: pointer;
  background: linear-gradient(135deg, #2A1F18, #5A3825);
  min-height: 220px;
  overflow: hidden;
}
.hc-slide:active {
  filter: brightness(.92);
}
.hc-slide .hf-bg {
  position: absolute;
  inset: 0;
  opacity: .4;
  filter: blur(30px) saturate(140%);
  background-size: cover;
  background-position: center;
  transform: scale(1.18);
}
.hc-slide .hf-grid {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 22px;
  align-items: center;
  z-index: 2;
}
.hc-slide .hf-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 8px;
}
.hc-slide .hf-title {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  color: #FFF;
  letter-spacing: -.3px;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hc-slide .hf-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 14px;
}
.hc-slide .hf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF;
  color: var(--ink);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition-speed) ease, color var(--transition-speed) ease, transform .35s var(--spring-fluid);
}
.hc-slide .hf-btn:active {
  transform: scale(.94);
}
.hc-slide .hf-cover {
  flex-shrink: 0;
  width: 115px;
}
.hc-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
  pointer-events: none;
}
.hc-dot {
  height: 6px;
  width: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .4);
  transition: all .45s var(--spring-fluid);
}
.hc-dot.on {
  width: 20px;
  background: white;
}

/* ========== GRID ========== */
.bk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 16px;
  padding: 18px 22px 24px;
}
@media(min-width:540px) {
  .bk-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  .search-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
@media(min-width:900px) {
  .bk-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 28px 18px;
    padding: 20px 28px 28px;
  }
  .search-results-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 22px 16px;
    padding: 18px 28px;
  }
}

/* ========== PAKET PILLS ========== */
.paket-pills {
  display: flex;
  gap: 8px;
  padding: 24px 22px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.paket-pills::-webkit-scrollbar {
  display: none;
}
.ppill {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: var(--surface);
  color: var(--ink2);
  border: 1px solid var(--line);
  transition: all .28s var(--spring-fluid), background var(--transition-speed) ease, color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}
.ppill:active {
  transform: scale(.92);
}
.ppill.sel-a {
  background: var(--pa);
  border-color: var(--pa);
  color: white;
  box-shadow: 0 4px 12px rgba(29, 78, 216, .25);
}
.ppill.sel-b {
  background: var(--pb);
  border-color: var(--pb);
  color: white;
  box-shadow: 0 4px 12px rgba(21, 128, 61, .25);
}
.ppill.sel-c {
  background: var(--pc);
  border-color: var(--pc);
  color: white;
  box-shadow: 0 4px 12px rgba(180, 83, 9, .25);
}
.sec-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 22px 0;
}
.sec-label h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.3px;
  transition: color var(--transition-speed) ease;
}
.sec-label .sec-cnt {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--ink3);
  font-weight: 400;
  margin-left: 6px;
  transition: color var(--transition-speed) ease;
}
.sec-label span.see-all {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition-speed) ease;
}

/* ========== FEAT SCROLL ========== */
.feat-scroll {
  padding: 14px 22px 4px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.feat-scroll::-webkit-scrollbar {
  display: none;
}
.feat-card {
  flex-shrink: 0;
  width: 138px;
  cursor: pointer;
  scroll-snap-align: start;
}
.feat-card .fc-cover {
  width: 138px;
  height: 204px;
  border-radius: 5px 11px 11px 5px;
  position: relative;
  overflow: visible;
  margin-bottom: 10px;
  box-shadow: -4px 0 8px rgba(28, 23, 20, .14), 0 8px 22px rgba(28, 23, 20, .16), 0 18px 38px rgba(28, 23, 20, .10);
  transform: perspective(700px) rotateY(-3deg);
  transition: transform .5s var(--spring-fluid), box-shadow .4s ease;
  transform-origin: center center;
  will-change: transform;
}
.feat-card:hover .fc-cover {
  transform: perspective(700px) rotateY(-5deg) translateY(-6px) scale(1.04);
  box-shadow: -6px 0 12px rgba(28, 23, 20, .18), 0 16px 34px rgba(28, 23, 20, .24), 0 30px 60px rgba(28, 23, 20, .14);
}
.feat-card:active .fc-cover {
  transform: perspective(700px) rotateY(-3deg) scale(.94);
  transition: transform .12s ease-out;
}
.feat-card.bouncing .fc-cover {
  animation: cardBounce .55s var(--spring-fluid);
}
.feat-card .fc-cover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 5px 0 0 5px;
  background: linear-gradient(to right, rgba(0, 0, 0, .28), rgba(0, 0, 0, .04));
  z-index: 3;
}
.feat-card .fc-cover::after {
  content: '';
  position: absolute;
  right: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 0 11px 11px 0;
  background: linear-gradient(to left, rgba(255, 255, 255, .4), transparent);
  z-index: 3;
}
.feat-card .fc-cover>.cov-inner {
  position: absolute;
  inset: 0;
  border-radius: 5px 11px 11px 5px;
  overflow: hidden;
}
.feat-card .fc-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: transform .35s var(--spring-fluid), color var(--transition-speed) ease;
}
.feat-card:active .fc-title {
  transform: scale(.97);
}
.feat-card .fc-sub {
  font-size: 11px;
  font-family: 'Poppins', sans-serif;
  color: var(--ink3);
  margin-top: 3px;
  transition: color var(--transition-speed) ease;
}
.feat-card .fc-mapel {
  font-size: 10px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 8px;
  text-align: center;
  transition: color var(--transition-speed) ease;
}

.lihat-semua-card {
  flex-shrink: 0;
  width: 138px;
  scroll-snap-align: start;
  display: flex;
  align-items: flex-start;
  padding-right: 22px;
  margin-bottom: 10px;
}
.ls-inner {
  width: 138px;
  height: 204px;
  border-radius: 5px 11px 11px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(160deg, var(--bg2) 0%, var(--bg3) 100%);
  border: 1.5px solid var(--line);
  cursor: pointer;
  box-shadow: -4px 0 8px rgba(28, 23, 20, .08), 0 8px 22px rgba(28, 23, 20, .10);
  transform: perspective(700px) rotateY(-3deg);
  transform-origin: center center;
  transition: transform .5s var(--spring-fluid), box-shadow .4s ease, background var(--transition-speed) ease, border-color var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}
.ls-inner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 5px 0 0 5px;
  background: linear-gradient(to right, rgba(0, 0, 0, .12), transparent);
}
.ls-inner:hover {
  transform: perspective(700px) rotateY(-5deg) translateY(-6px) scale(1.04);
  box-shadow: -6px 0 12px rgba(28, 23, 20, .14), 0 16px 34px rgba(28, 23, 20, .18);
}
.ls-inner:active {
  transform: perspective(700px) rotateY(-3deg) scale(.94);
  transition: transform .12s ease-out;
}
.ls-ico {
  font-size: 28px;
  color: var(--accent);
  opacity: .8;
  transition: color var(--transition-speed) ease;
}
.ls-label {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
  text-align: center;
  line-height: 1.4;
  letter-spacing: -.1px;
  transition: color var(--transition-speed) ease;
}
.ls-arrow {
  font-size: 18px;
  color: var(--accent);
  animation: ls-nudge 2s ease-in-out infinite;
  transition: color var(--transition-speed) ease;
}
@keyframes ls-nudge {
  0%,
  100% {
    transform: translateX(0);
    opacity: .7;
  }
  50% {
    transform: translateX(4px);
    opacity: 1;
  }
}

/* ========== BK CARD ========== */
.bk-item {
  cursor: pointer;
}
.bk-card {
  padding: 12px 10px 10px;
  background: rgba(222, 210, 200, 0.25);
  border-radius: 16px;
  border: 1px solid rgba(200, 185, 170, 0.2);
  margin-bottom: 6px;
  transition: background var(--transition-speed) ease, border-color var(--transition-speed) ease, box-shadow .3s ease;
}
.bk-item:hover .bk-card {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.dark-mode .bk-card {
  background: rgba(50, 44, 38, 0.5);
  border-color: rgba(255,255,255,0.06);
}
.bk-card .bc-cover {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 4px 9px 9px 4px;
  position: relative;
  overflow: visible;
  margin-bottom: 9px;
  box-shadow: -3px 0 6px rgba(28, 23, 20, .13), 0 6px 16px rgba(28, 23, 20, .14), 0 14px 28px rgba(28, 23, 20, .08);
  transform: perspective(500px) rotateY(-2deg);
  transition: transform .5s var(--spring-fluid), box-shadow .4s ease;
  transform-origin: center center;
  will-change: transform;
}
.bk-item:hover .bc-cover {
  transform: perspective(500px) rotateY(-4deg) translateY(-5px) scale(1.045);
  box-shadow: -5px 0 10px rgba(28, 23, 20, .18), 0 12px 28px rgba(28, 23, 20, .22), 0 22px 42px rgba(28, 23, 20, .12);
}
.bk-item:active .bc-cover {
  transform: perspective(500px) rotateY(-2deg) scale(.93);
  transition: transform .12s ease-out;
}
.bk-card.bouncing .bc-cover {
  animation: cardBounce2 .55s var(--spring-fluid);
}
.bk-card .bc-cover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(to right, rgba(0, 0, 0, .24), transparent);
  z-index: 3;
}
.bk-card .bc-cover>.cov-inner {
  position: absolute;
  inset: 0;
  border-radius: 4px 9px 9px 4px;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.bc-modul-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(182, 72, 27, 0.9);
  backdrop-filter: blur(8px);
  font-size: 9.5px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: #FFFFFF;
  letter-spacing: .3px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(182, 72, 27, 0.35), 0 0 0 1px rgba(255,255,255,0.15);
}
.dark-mode .bc-modul-badge {
  background: rgba(182, 72, 27, 0.95);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(182, 72, 27, 0.4), 0 0 0 1px rgba(255,255,255,0.1);
}
.bk-card .bc-mapel {
  display: none;
}
.bk-item .bc-mapel {
  font-size: 10px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 0 2px;
  text-align: center;
  transition: color var(--transition-speed) ease;
}
.bk-card .bc-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: transform .35s var(--spring-fluid), color var(--transition-speed) ease;
}
.bk-item:active .bc-title {
  transform: scale(.96);
}
.bk-card .bc-sub {
  font-size: 10.5px;
  font-family: 'Poppins', sans-serif;
  color: var(--ink3);
  margin-top: 2px;
  transition: color var(--transition-speed) ease;
}

/* ========== COVER ========== */
.cov-inner {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.cov-inner img.cov-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  filter: blur(18px) saturate(140%) brightness(.65);
  transform: scale(1.15);
}
.cov-inner img.cov-fg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: absolute;
  inset: 0;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.cov-inner .cov-fb {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
}
.cov-fb .fb-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 50px;
  margin-bottom: 8px;
}
.cov-fb .fb-ico {
  font-size: 24px;
  margin-bottom: 6px;
}
.cov-fb .fb-txt {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: white;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}
.cA0 {
  background: linear-gradient(150deg, #3B82F6, #1E3A8A);
}
.cA1 {
  background: linear-gradient(150deg, #60A5FA, #1D4ED8);
}
.cA2 {
  background: linear-gradient(150deg, #2563EB, #1E40AF);
}
.cB0 {
  background: linear-gradient(150deg, #22C55E, #14532D);
}
.cB1 {
  background: linear-gradient(150deg, #16A34A, #166534);
}
.cB2 {
  background: linear-gradient(150deg, #4ADE80, #15803D);
}
.cC0 {
  background: linear-gradient(150deg, #F59E0B, #78350F);
}
.cC1 {
  background: linear-gradient(150deg, #D97706, #92400E);
}
.cC2 {
  background: linear-gradient(150deg, #FBBF24, #B45309);
}
.new-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 4;
  box-shadow: 0 0 0 2px white;
  transition: background var(--transition-speed) ease;
}

/* ========== PAKET SWITCH ========== */
.paket-switch {
  display: flex;
  margin: 18px 22px 0;
  background: var(--bg2);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
  transition: background var(--transition-speed) ease;
}
.ps-tab {
  flex: 1;
  padding: 9px 4px;
  border-radius: 9px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink3);
  cursor: pointer;
  transition: all .35s var(--spring-fluid), background var(--transition-speed) ease, color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.ps-tab:active {
  transform: scale(.94);
}
.ps-tab.pa {
  background: white;
  color: var(--pa);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
  font-weight: 600;
}
.ps-tab.pb {
  background: white;
  color: var(--pb);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
  font-weight: 600;
}
.ps-tab.pc {
  background: white;
  color: var(--pc);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
  font-weight: 600;
}
body.dark-mode .ps-tab.pa,
body.dark-mode .ps-tab.pb,
body.dark-mode .ps-tab.pc {
  background: var(--surface);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .3);
}

.mapel-scroll {
  display: flex;
  gap: 8px;
  padding: 14px 22px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.mapel-scroll::-webkit-scrollbar {
  display: none;
}
.mp {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink2);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  white-space: nowrap;
  transition: all .28s var(--spring-fluid), background var(--transition-speed) ease, color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}
.mp:active {
  transform: scale(.9);
}
.mp.ma {
  background: var(--pa);
  border-color: var(--pa);
  color: white;
}
.mp.mb {
  background: var(--pb);
  border-color: var(--pb);
  color: white;
}
.mp.mc {
  background: var(--pc);
  border-color: var(--pc);
  color: white;
}
.kelas-scroll {
  display: flex;
  gap: 7px;
  padding: 10px 22px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.kelas-scroll::-webkit-scrollbar {
  display: none;
}
.kls {
  flex-shrink: 0;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink2);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  white-space: nowrap;
  transition: all .28s var(--spring-fluid), background var(--transition-speed) ease, color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}
.kls:active {
  transform: scale(.9);
}
.kls.ma {
  background: var(--pa);
  border-color: var(--pa);
  color: white;
}
.kls.mb {
  background: var(--pb);
  border-color: var(--pb);
  color: white;
}
.kls.mc {
  background: var(--pc);
  border-color: var(--pc);
  color: white;
}
.koleksi-sub {
  padding: 8px 22px 0;
  font-size: 13px;
  color: var(--ink3);
  transition: color var(--transition-speed) ease;
}

/* ========== READER ========== */
#screen-reader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: transform .4s cubic-bezier(.32,1,.46,1), opacity .35s ease, background var(--transition-speed) ease;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}
#screen-reader.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.rdr-hdr {
  height: var(--hdr-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--rdr-hdr-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background var(--transition-speed) ease, border-color var(--transition-speed) ease;
}
.rdr-pos {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink3);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition-speed) ease;
}
.rdr-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink2);
  flex-shrink: 0;
  transition: all .32s var(--spring-fluid), background var(--transition-speed) ease, color var(--transition-speed) ease;
}
.rdr-nav-btn:active {
  transform: scale(.84);
  background: var(--bg3);
}
.rdr-nav-btn:disabled {
  opacity: .28;
  pointer-events: none;
}
.rdr-nav-btn .material-icons-round {
  font-size: 20px;
}
.rdr-nav-disabled {
  opacity: .28;
  pointer-events: none;
}
.rdr-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 22px 28px;
}
.rdr-nav-pos {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink3);
  transition: color var(--transition-speed) ease;
}
.swipe-hint {
  position: absolute;
  bottom: auto;
  top: calc(var(--hdr-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  background: rgba(25, 20, 15, .75);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  white-space: nowrap;
  z-index: 20;
  animation: hintFade 3.5s ease forwards;
}
.swipe-hint .material-icons-round {
  font-size: 16px;
}
.slide-left .rdr-detail,
.slide-left .rdr-section {
  animation: slideInLeft .38s var(--spring-fluid);
}
.slide-right .rdr-detail,
.slide-right .rdr-section {
  animation: slideInRight .38s var(--spring-fluid);
}
.rdr-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: all .32s var(--spring-fluid), background var(--transition-speed) ease, color var(--transition-speed) ease;
}
.rdr-back:active {
  transform: scale(.85);
}
.rdr-back .material-icons-round {
  font-size: 20px;
}
.rdr-ttl {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-speed) ease;
}
.rdr-body {
  flex: 1;
  overflow-y: auto;
  background: var(--bg);
  transition: background var(--transition-speed) ease;
}
.rdr-detail {
  position: relative;
  padding: 32px 22px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 60%);
  transition: background var(--transition-speed) ease;
}
.rdr-hero {
  width: 190px;
  margin: 0 auto 24px;
  position: relative;
  animation: coverIn .65s var(--spring-fluid);
}
@keyframes coverIn {
  0% { transform: scale(.7) translateY(20px); opacity: 0; }
  60% { transform: scale(1.04) translateY(-3px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.rdr-hero .bc-cover-lg {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 5px 11px 11px 5px;
  position: relative;
  box-shadow: -5px 0 10px rgba(28, 23, 20, .18), 0 12px 28px rgba(28, 23, 20, .22), 0 28px 56px rgba(28, 23, 20, .14);
  transform: perspective(700px) rotateY(-4deg);
  transition: transform .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}
.rdr-hero .bc-cover-lg:hover {
  transform: perspective(700px) rotateY(-7deg) translateY(-4px) scale(1.03);
}
.rdr-hero .bc-cover-lg:active {
  transform: perspective(700px) rotateY(-2deg) scale(0.92);
  transition: transform .12s ease-out;
}
.dark-mode .rdr-hero .bc-cover-lg {
  box-shadow: -5px 0 10px rgba(255, 255, 255, .06), 0 12px 32px rgba(255, 180, 130, .15), 0 0 60px rgba(255, 140, 80, .1);
}
.rdr-hero .bc-cover-lg::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 5px 0 0 5px;
  background: linear-gradient(to right, rgba(0, 0, 0, .3), transparent);
  z-index: 3;
}
.rdr-hero .bc-cover-lg > .cov-inner {
  position: absolute;
  inset: 0;
  border-radius: 5px 11px 11px 5px;
  overflow: hidden;
}
.rdr-hero-gradient {
  display: none;
}
.rdr-glass-card {
  position: relative;
  margin: 0 18px 24px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  transition: background var(--transition-speed) ease, border-color var(--transition-speed) ease;
}
.dark-mode .rdr-glass-card {
  background: rgba(40, 36, 32, 0.7);
  border-color: rgba(255,255,255,0.08);
}
.rdr-card-info {
  flex: 1;
  text-align: center;
}
.rdr-card-info h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -.3px;
  margin-bottom: 12px;
  transition: color var(--transition-speed) ease;
}
.rdr-fav-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  border: 1.5px solid var(--ink4);
  color: var(--ink3);
  background: transparent;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color .25s, border-color .25s, background .25s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rdr-fav-title:active {
  transform: scale(0.88);
}
.rdr-fav-title .material-icons-round {
  font-size: 20px;
  color: var(--ink4);
  transition: color .25s;
}
.rdr-fav-title.fav-active {
  color: #E91E63;
  border-color: #E91E63;
  background: rgba(233, 30, 99, 0.08);
}
.rdr-fav-title.fav-active .material-icons-round {
  color: #E91E63;
}
.rdr-fav-title.fav-active span:last-child {
  font-weight: 700;
}
.dark-mode .rdr-fav-title {
  border-color: rgba(255,255,255,0.15);
  color: var(--ink3);
}
.dark-mode .rdr-fav-title .material-icons-round {
  color: rgba(255,255,255,0.3);
}
.dark-mode .rdr-fav-title.fav-active {
  border-color: #E91E63;
  background: rgba(233, 30, 99, 0.12);
}
.rdr-desc-section {
  margin-top: 20px;
  text-align: left;
}
.rdr-desc-label {
  font-size: 11px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink3);
  opacity: 0.7;
  margin-bottom: 8px;
  transition: color var(--transition-speed) ease;
}
.rdr-desc-text {
  font-size: 14.5px;
  font-family: 'Poppins', sans-serif;
  color: var(--ink2);
  line-height: 1.7;
  transition: color var(--transition-speed) ease;
}
.rdr-bottom-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 18px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(251, 249, 244, 0.35);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.04);
  border-radius: 28px 28px 0 0;
  z-index: 10;
  transition: background var(--transition-speed) ease, border-color var(--transition-speed) ease;
}
.dark-mode .rdr-bottom-bar {
  background: rgba(26, 23, 20, 0.35);
  border-top-color: rgba(255,255,255,0.08);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.2);
}
.rdr-bottom-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  letter-spacing: .3px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(182, 72, 27, 0.3);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background .18s;
}
.rdr-bottom-btn:active {
  transform: scale(0.94);
}
.rdr-bottom-btn .material-icons-round {
  font-size: 20px;
}
/* Remove old styles */
.rdr-cover-big {
  display: none;
}
.rdr-meta {
  display: none;
}
.rdr-badge {
  display: none;
}
.rdr-actions {
  display: none;
}
.rdr-section {
  display: none;
}
.rdr-info-grid {
  display: none;
}

/* ========== PDF VIEWER ========== */
.pdf-viewer {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: #2C2825;
  display: flex;
  flex-direction: column;
  transition: transform .4s cubic-bezier(.32,1,.46,1), opacity .3s ease;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.pdf-viewer.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.pdf-vh {
  height: var(--hdr-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--pdf-hdr-bg);
  backdrop-filter: blur(16px);
  color: white;
  transition: background var(--transition-speed) ease;
}
.pdf-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  transition: transform .32s var(--spring-fluid), background var(--transition-speed) ease;
}
.pdf-back:active {
  transform: scale(.85);
}
.pdf-back .material-icons-round {
  font-size: 20px;
}
.pdf-vt {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-frame {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.pdf-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========== TENTANG ========== */
#screen-tentang {
  position: fixed;
  inset: 0;
  z-index: 280;
  background: rgba(251, 249, 244, 0.75);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform .4s cubic-bezier(.32,1,.46,1), opacity .35s ease, background var(--transition-speed) ease;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}
.dark-mode #screen-tentang {
  background: rgba(26, 23, 20, 0.75);
}
#screen-tentang.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
#screen-tentang .abt-hero {
  padding-top: 20px;
}
.abt-hero {
  padding: 46px 22px 28px;
  text-align: center;
}
.abt-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 54px;
  font-weight: 700;
  color: var(--ink);
  display: block;
  letter-spacing: -1.2px;
  line-height: 1;
  transition: color var(--transition-speed) ease;
}
.abt-logo em {
  color: var(--accent);
  font-style: normal;
  transition: color var(--transition-speed) ease;
}
.abt-tagline {
  font-size: 13px;
  color: var(--ink3);
  margin-top: 6px;
  transition: color var(--transition-speed) ease;
}
.abt-stats {
  display: flex;
  margin: 0 22px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: background var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.astat {
  flex: 1;
  text-align: center;
  padding: 20px 8px;
  border-right: 1px solid var(--line);
  transition: border-color var(--transition-speed) ease;
}
.astat:last-child {
  border-right: none;
}
.astat strong {
  display: block;
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
  font-family: 'Cormorant Garamond', serif;
  transition: color var(--transition-speed) ease;
}
.astat span {
  font-size: 11px;
  color: var(--ink3);
  transition: color var(--transition-speed) ease;
}
.abt-pakets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 22px 22px 0;
}
.abt-pk {
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
  transition: transform .4s var(--spring-fluid), background var(--transition-speed) ease;
}
.abt-pk:hover {
  transform: translateY(-2px) scale(1.02);
}
.abt-pk.a {
  background: #DBEAFE;
}
.abt-pk.b {
  background: #DCFCE7;
}
.abt-pk.c {
  background: #FEF3C7;
}
body.dark-mode .abt-pk.a {
  background: rgba(29, 78, 216, 0.25);
}
body.dark-mode .abt-pk.b {
  background: rgba(21, 128, 61, 0.25);
}
body.dark-mode .abt-pk.c {
  background: rgba(180, 83, 9, 0.25);
}
.abt-pk .pk-name {
  font-size: 12px;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}
.abt-pk.a .pk-name {
  color: #1E3A8A;
}
.abt-pk.b .pk-name {
  color: #14532D;
}
.abt-pk.c .pk-name {
  color: #78350F;
}
body.dark-mode .abt-pk.a .pk-name {
  color: #93BBFC;
}
body.dark-mode .abt-pk.b .pk-name {
  color: #86EFAC;
}
body.dark-mode .abt-pk.c .pk-name {
  color: #FCD34D;
}
.abt-pk .pk-lvl {
  font-size: 10px;
  color: var(--ink3);
  transition: color var(--transition-speed) ease;
}
.abt-pk .pk-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 700;
  margin-top: 6px;
}
.abt-pk.a .pk-num {
  color: var(--pa);
}
.abt-pk.b .pk-num {
  color: var(--pb);
}
.abt-pk.c .pk-num {
  color: var(--pc);
}
.abt-pk .pk-unit {
  font-size: 10px;
  color: var(--ink3);
  transition: color var(--transition-speed) ease;
}
.abt-cards {
  padding: 22px 22px 32px;
}
.abt-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.abt-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
  transition: color var(--transition-speed) ease;
}
.abt-card p {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.75;
  transition: color var(--transition-speed) ease;
}

/* ========== EMPTY STATE ========== */
.empty-st {
  text-align: center;
  padding: 48px 22px;
  color: var(--ink3);
  grid-column: 1/-1;
  transition: color var(--transition-speed) ease;
}
.empty-st .ei {
  font-size: 38px;
  margin-bottom: 10px;
}
.empty-st p {
  font-size: 13px;
  line-height: 1.6;
}

/* ========== SEARCH ========== */
.srch-label {
  padding: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: .8px;
  transition: color var(--transition-speed) ease;
}
.srch-parsed {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.sp-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}
.sp-chip.mapel {
  background: #F3EFE8;
  color: var(--ink2);
}
body.dark-mode .sp-chip.mapel {
  background: #3D3731;
  color: #C5BCB0;
}
.sp-chip.paket-a {
  background: #DBEAFE;
  color: #1E3A8A;
}
body.dark-mode .sp-chip.paket-a {
  background: rgba(29, 78, 216, 0.3);
  color: #93BBFC;
}
.sp-chip.paket-b {
  background: #DCFCE7;
  color: #14532D;
}
body.dark-mode .sp-chip.paket-b {
  background: rgba(21, 128, 61, 0.3);
  color: #86EFAC;
}
.sp-chip.paket-c {
  background: #FEF3C7;
  color: #78350F;
}
body.dark-mode .sp-chip.paket-c {
  background: rgba(180, 83, 9, 0.3);
  color: #FCD34D;
}
.sp-chip.modul {
  background: #FCE7F3;
  color: #9D174D;
}
body.dark-mode .sp-chip.modul {
  background: rgba(157, 23, 77, 0.3);
  color: #F9A8D4;
}

/* ========== FAVORITE ========== */
.bt-fav-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.fav-tab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  background: #E91E63;
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: 8px;
  padding: 0 4px;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(233, 30, 99, .4);
  pointer-events: none;
}
.fav-full-sub {
  padding: 6px 22px 0;
  font-size: 13px;
  color: var(--ink3);
  transition: color var(--transition-speed) ease;
}
.fav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(0, 0, 0, .06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
  transition: transform .32s var(--spring-fluid), background .18s, border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  position: relative;
}
body.dark-mode .fav-btn {
  background: rgba(42, 38, 34, .94);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.fav-btn:active {
  transform: scale(.82) !important;
}
.fav-btn .fav-ico {
  font-size: 22px;
  color: var(--ink3);
  transition: color .15s, color var(--transition-speed) ease;
  display: block;
  pointer-events: none;
  line-height: 1;
}
.fav-btn.fav-active .fav-ico {
  color: #E91E63;
}
.fav-btn.fav-pop .fav-ico {
  animation: heartPop .5s var(--spring-fluid) forwards;
}
.fc-fav {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 5;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .90);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .20);
  transition: transform .32s var(--spring-fluid), background var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  padding: 0;
}
body.dark-mode .fc-fav {
  background: rgba(42, 38, 34, .92);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.fc-fav:active {
  transform: scale(.76) !important;
}
.fc-fav .fav-ico {
  font-size: 15px;
  color: var(--ink3);
  pointer-events: none;
  transition: color .15s, color var(--transition-speed) ease;
  display: block;
  line-height: 1;
}
.fc-fav.fav-active .fav-ico {
  color: #E91E63;
}
.fc-fav.fav-pop .fav-ico {
  animation: heartPop .5s var(--spring-fluid) forwards;
}
@keyframes heartPop {
  0% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.5);
  }
  40% {
    transform: scale(.85);
  }
  65% {
    transform: scale(1.25);
  }
  80% {
    transform: scale(.95);
  }
  100% {
    transform: scale(1);
  }
}
.fav-burst {
  position: fixed;
  pointer-events: none;
  width: 0;
  height: 0;
  z-index: 9999;
}
.fav-burst span {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: #E91E63;
  animation: burstOut .55s cubic-bezier(.2, .6, .4, 1) forwards;
  transform-origin: center;
}
@keyframes burstOut {
  0% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(var(--bx), var(--by)) scale(0);
    opacity: 0;
  }
}
.fav-section {
  margin-top: 4px;
}
.fav-empty {
  padding: 14px 22px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink3);
  font-size: 13px;
  transition: color var(--transition-speed) ease;
}
.fav-empty .material-icons-round {
  font-size: 19px;
  opacity: .55;
  flex-shrink: 0;
}

/* ========== SPLASH SCREEN ========== */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--splash-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  pointer-events: none;
  transition: background var(--transition-speed) ease;
}
#splash.fade-out {
  animation: splashFadeOut .55s cubic-bezier(.4, 0, .2, 1) forwards;
}
.splash-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: splashZoomBounce .75s var(--spring-fluid) .18s both;
}
.splash-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 68px;
  font-weight: 700;
  color: var(--splash-ink);
  letter-spacing: -2px;
  line-height: 1;
  user-select: none;
  transition: color var(--transition-speed) ease;
}
.splash-logo em {
  color: var(--accent);
  font-style: normal;
  transition: color var(--transition-speed) ease;
}
.splash-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink3);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-top: 10px;
  animation: splashSubFade .55s ease .65s both;
  transition: color var(--transition-speed) ease;
}
.splash-dot-row {
  display: flex;
  gap: 7px;
  margin-top: 36px;
  animation: splashSubFade .55s ease .8s both;
}
.splash-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg3);
  transition: background var(--transition-speed) ease;
}
.splash-dot:nth-child(1) {
  animation: splashDotPulse .7s ease .9s infinite alternate;
}
.splash-dot:nth-child(2) {
  animation: splashDotPulse .7s ease 1.05s infinite alternate;
}
.splash-dot:nth-child(3) {
  animation: splashDotPulse .7s ease 1.2s infinite alternate;
}
@keyframes splashZoomBounce {
  0% {
    opacity: 0;
    transform: scale(.35);
  }
  55% {
    opacity: 1;
    transform: scale(1.08);
  }
  72% {
    transform: scale(.96);
  }
  86% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes splashSubFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes splashDotPulse {
  from {
    background: var(--bg3);
  }
  to {
    background: var(--accent);
  }
}
@keyframes splashFadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  60% {
    opacity: 0;
    transform: scale(1.06);
  }
  100% {
    opacity: 0;
    transform: scale(1.06);
    display: none;
    pointer-events: none;
  }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--ink3);
  border-radius: 4px;
  opacity: .4;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ink2);
}
body.dark-mode ::-webkit-scrollbar-thumb {
  background: #5A4E42;
}
body.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: #8A7E70;
}
/* ========== PULL TO REFRESH ========== */
#pull-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 0;
  overflow: hidden;
  transition: height 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.2),
              opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  margin-top: -10px;
}
#pull-indicator.active {
  height: 56px;
  opacity: 1;
}
#pull-indicator .pull-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid var(--bg3);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
#pull-indicator .pull-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink3);
  transition: color var(--transition-speed) ease;
}
body.dark-mode #pull-indicator .pull-text {
  color: var(--ink2);
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01s !important;
    transition-duration: .01s !important;
  }
}

/* ============================================================
   KELAS ACTIVE PILL (header)
   ============================================================ */
.kelas-active-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 7px;
  border-radius: 50px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px rgba(182,72,27,.3);
  transition: transform .2s var(--spring-fluid), box-shadow .2s ease;
  user-select: none;
}
.kelas-active-pill:active {
  transform: scale(.92);
}
.kelas-active-pill .material-icons-round {
  font-size: 14px;
}

/* ============================================================
   KELAS BANNER (beranda)
   ============================================================ */
.kelas-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 18px 0;
  padding: 10px 14px;
  background: rgba(182,72,27,.08);
  border: 1px solid rgba(182,72,27,.18);
  border-radius: 12px;
  font-size: 13px;
  color: var(--ink2);
  transition: background var(--transition-speed) ease, border-color var(--transition-speed) ease;
}
body.dark-mode .kelas-banner {
  background: rgba(220,106,61,.12);
  border-color: rgba(220,106,61,.22);
}
.kelas-banner .kb-ico {
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}
.kelas-banner .kb-txt {
  flex: 1;
  line-height: 1.4;
  transition: color var(--transition-speed) ease;
}
.kelas-banner .kb-clear {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--bg3);
  color: var(--ink3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, transform .2s var(--spring-fluid);
}
.kelas-banner .kb-clear:active {
  transform: scale(.85);
}

/* ============================================================
   PROFIL SCREEN — container
   ============================================================ */
#screen-profil {
  padding-top: var(--hdr-h);
  padding-bottom: calc(var(--tab-h) + 28px);
  min-height: 100vh;
  background: var(--bg);
  transition: background var(--transition-speed) ease;
}

.prf-scroll {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 16px 24px;
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================================
   PROFIL — guest (login form)
   ============================================================ */
.prf-guest-top {
  text-align: center;
  padding: 24px 0 10px;
}
.prf-guest-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.prf-guest-logo em {
  color: var(--accent);
  font-style: normal;
}
.prf-guest-sub {
  font-size: 13px;
  color: var(--ink3);
  line-height: 1.5;
  transition: color var(--transition-speed) ease;
}

/* ============================================================
   KELAS GROUPS & CHIPS
   ============================================================ */
.kelas-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 10px;
}
.kelas-group {}
.kg-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}
.kg-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}
.kg-sub {
  font-size: 12px;
  color: var(--ink3);
  transition: color var(--transition-speed) ease;
}
.kg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kelas-chip {
  padding: 8px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--line);
  background: var(--bg2);
  color: var(--ink2);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s var(--spring-fluid),
              background var(--transition-speed) ease,
              border-color var(--transition-speed) ease,
              color var(--transition-speed) ease;
}
.kelas-chip:active {
  transform: scale(.92);
}
.kelas-chip.active {
  box-shadow: 0 3px 12px rgba(0,0,0,.15);
  transform: scale(1.04);
}

@keyframes fadeInUp {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes slideUp {
  from { transform:translateY(100%); }
  to   { transform:translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}

/* ============================================================
   PROFIL HEADER BUTTON DOT
   ============================================================ */
.prf-hdr-btn {
  position: relative;
}
.prf-hdr-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  display: none;
  transition: background var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

/* ============================================================
   PROFIL OVERLAY (bottom sheet)
   ============================================================ */

/* ===== SPLASH BANNER POPUP ===== */
.splash-banner-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility 0s .3s;
}
.splash-banner-overlay.show {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s, visibility 0s;
}
.splash-banner-modal {
  background: var(--bg);
  border-radius: 24px;
  max-width: 380px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  position: relative;
  animation: splashIn .45s var(--spring-fluid);
  transition: background var(--transition-speed) ease;
}
.dark-mode .splash-banner-modal {
  background: #2A2724;
}
@keyframes splashIn {
  0% { transform: scale(.85) translateY(30px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.splash-banner-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.45);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, background .2s;
}
.splash-banner-close:active {
  transform: scale(.85);
}
.splash-banner-close .material-icons-round {
  font-size: 20px;
}
.splash-banner-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #ece8e1;
}
.dark-mode .splash-banner-img-wrap {
  background: #3A3633;
}
.splash-banner-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.splash-banner-body {
  padding: 20px 24px 24px;
  text-align: center;
}
.splash-banner-body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  transition: color var(--transition-speed) ease;
}
.splash-banner-body p {
  font-size: 13.5px;
  font-family: 'Poppins', sans-serif;
  color: var(--ink2);
  margin: 0 0 18px;
  line-height: 1.55;
  transition: color var(--transition-speed) ease;
}
.splash-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(182, 72, 27, .3);
  transition: transform .35s var(--spring-fluid), background .18s;
}
.splash-banner-btn:active {
  transform: scale(.94);
}
.splash-banner-skip {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  color: var(--ink3);
  cursor: pointer;
  padding: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .7;
}
.dark-mode .splash-banner-skip {
  color: var(--ink3);
}

  .prf-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s .4s;
}
.prf-overlay.show {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s 0s;
}
.prf-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background .35s cubic-bezier(.4,0,.2,1), backdrop-filter .35s ease, -webkit-backdrop-filter .35s ease;
}
.prf-overlay.show .prf-overlay-backdrop {
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.prf-sheet {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .38s cubic-bezier(.22, .68, .31, 1), background var(--transition-speed) ease;
  box-shadow: 0 -8px 40px rgba(0,0,0,.18);
  will-change: transform;
}
.prf-overlay.show .prf-sheet {
  transform: translateY(0);
  transition: transform .42s cubic-bezier(.32, 1.15, .46, 1), background var(--transition-speed) ease;
}
.prf-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  margin: 10px auto 0;
  flex-shrink: 0;
  transition: background var(--transition-speed) ease;
}
.prf-sheet-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--transition-speed) ease;
}
.prf-sheet-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  transition: color var(--transition-speed) ease;
}
.prf-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg2);
  color: var(--ink3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s var(--spring-fluid), background var(--transition-speed) ease;
}
.prf-sheet-close:active { transform: scale(.88); }
.prf-sheet-close .material-icons-round { font-size: 18px; }

.prf-sheet-body {
  overflow-y: auto;
  flex: 1;
  padding: 16px 18px calc(env(safe-area-inset-bottom) + 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   PROFIL — GUEST (login dengan Google)
   ============================================================ */
.prf-guest-top {
  text-align: center;
  padding: 18px 0 10px;
}
.prf-guest-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.5px;
  margin-bottom: 6px;
  transition: color var(--transition-speed) ease;
}
.prf-guest-logo em { color: var(--accent); font-style: normal; }
.prf-guest-sub {
  font-size: 13px;
  color: var(--ink3);
  line-height: 1.55;
  transition: color var(--transition-speed) ease;
}
.prf-google-wrap { display: flex; flex-direction: column; gap: 10px; }
.prf-google-error {
  background: rgba(220,38,38,.08);
  border: 1px solid rgba(220,38,38,.2);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: #DC2626;
}
.prf-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: all .22s var(--spring-fluid),
              background var(--transition-speed) ease,
              border-color var(--transition-speed) ease,
              color var(--transition-speed) ease;
}
.prf-google-btn:active { transform: scale(.96); }
.prf-google-btn:disabled { opacity: .6; cursor: default; transform: none; }
.prf-g-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.prf-g-ico { font-size: 20px; color: var(--ink3); }

/* ===== BASE AVATAR (shared by old & new) ===== */
.prf-avatar-wrap { flex-shrink: 0; }
.prf-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.prf-avatar-init {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2, #e07040));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(182,72,27,.25);
}

/* ===== DIVIDER & TENTANG BTN (guest) ===== */
.prf-divider {
  height: 1px;
  background: var(--line);
  margin: 2px 0;
  transition: background var(--transition-speed) ease;
}
.prf-tentang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 13px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink2);
  background: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s ease, color var(--transition-speed) ease;
}
.prf-tentang-btn:active { background: var(--bg2); }
.prf-tentang-btn .material-icons-round { font-size: 19px; color: var(--ink3); }

/* ===== ACTION ROW (Tentang + Keluar) ===== */
.prf-action-row {
  margin-top: 10px;
  background: var(--bg2);
  border-radius: 14px;
  overflow: hidden;
  transition: background var(--transition-speed) ease;
}
.prf-action-inner {
  display: flex;
  align-items: center;
}
.prf-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink2);
  background: none;
  border: none;
  cursor: pointer;
  transition: background .2s ease, color var(--transition-speed) ease;
  -webkit-tap-highlight-color: transparent;
}
.prf-action-btn:active { background: rgba(182,72,27,.05); }
.prf-action-btn .material-icons-round { font-size: 18px; color: var(--ink3); }
.prf-action-logout { color: #DC2626; }
.prf-action-logout .material-icons-round { color: #DC2626; }
.prf-action-sep {
  width: 1px;
  height: 28px;
  background: var(--line);
  flex-shrink: 0;
  transition: background var(--transition-speed) ease;
}

/* ===== NEW PROFILE DESIGN ===== */
.prf-new-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0 16px;
}
.prf-new-header .prf-avatar-wrap {
  position: relative;
}
.prf-new-header .prf-avatar-img {
  width: 80px;
  height: 80px;
  box-shadow: 0 3px 12px rgba(0,0,0,.18);
}
.prf-new-header .prf-avatar-init {
  width: 80px;
  height: 80px;
  font-size: 32px;
  box-shadow: 0 3px 12px rgba(182,72,27,.3);
}
.prf-new-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 10px;
  text-align: center;
  transition: color var(--transition-speed) ease;
}
.prf-new-email {
  font-size: 13px;
  color: var(--ink3);
  margin-top: 2px;
  text-align: center;
  transition: color var(--transition-speed) ease;
}
.prf-new-section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 8px 0 8px;
  transition: color var(--transition-speed) ease;
}

/* Info Cards (Paket / Kelas) */
.prf-info-card-wrap {
  position: relative;
}
.prf-info-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: transparent;
  font-size: 0;
}
.prf-info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg2);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: background var(--transition-speed) ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.prf-info-card:active {
  background: rgba(182,72,27,.05);
  transform: scale(.98);
}
.prf-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(182,72,27,.12), rgba(182,72,27,.08));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prf-info-icon .material-icons-round {
  font-size: 20px;
  color: var(--accent);
}
.prf-info-content { flex: 1; min-width: 0; }
.prf-info-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: .4px;
  transition: color var(--transition-speed) ease;
}
.prf-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1px;
  transition: color var(--transition-speed) ease;
}
.prf-info-chevron {
  font-size: 20px;
  color: var(--ink3);
  flex-shrink: 0;
  transition: color var(--transition-speed) ease;
}

/* ===== PROFILE PHOTO EDIT ===== */
.prf-avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform .2s ease, background var(--transition-speed) ease;
  -webkit-tap-highlight-color: transparent;
}
.prf-avatar-edit:active { transform: scale(.88); }
.prf-avatar-edit .material-icons-round {
  font-size: 15px;
  color: #fff;
}

/* Photo action sheet */
.prf-photo-sheet {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}
.prf-photo-sheet.show { display: block; }
.prf-photo-sheet-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  animation: fadeIn .25s ease;
}
.prf-photo-sheet-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  padding: 8px 20px calc(env(safe-area-inset-bottom, 0px) + 16px) 20px;
  animation: slideUp .3s cubic-bezier(.32,.72,0,1);
  transition: background var(--transition-speed) ease;
}
.prf-photo-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  margin: 0 auto 8px;
  transition: background var(--transition-speed) ease;
}
.prf-photo-sheet-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin-bottom: 12px;
  transition: color var(--transition-speed) ease;
}
.prf-photo-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink2);
  background: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s ease, color var(--transition-speed) ease;
  -webkit-tap-highlight-color: transparent;
}
.prf-photo-opt:active { background: var(--bg2); }
.prf-photo-opt .material-icons-round { font-size: 20px; color: var(--ink3); }
.prf-photo-opt-danger { color: #DC2626; }
.prf-photo-opt-danger .material-icons-round { color: #DC2626; }
.prf-photo-cancel {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink3);
  background: var(--bg2);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s ease, color var(--transition-speed) ease;
}
.prf-photo-cancel:active { background: var(--line); }

/* ============================================================
   LOGIN GATE
   ============================================================ */
.login-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  transition: opacity .45s ease;
}
.login-gate.show {
  display: flex;
}
.login-gate.hiding {
  opacity: 0;
  pointer-events: none;
}

/* Background dekoratif */
.lg-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% -10%, rgba(182,72,27,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 110%, rgba(29,78,216,.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Card utama */
.lg-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px 28px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.10), 0 4px 16px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  animation: lgCardIn .5s cubic-bezier(.34,1.56,.64,1) both;
  transition: background var(--transition-speed) ease, border-color var(--transition-speed) ease;
}
@keyframes lgCardIn {
  from { opacity:0; transform:translateY(24px) scale(.96); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

/* Logo */
.lg-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
  transition: color var(--transition-speed) ease;
}
.lg-logo em {
  color: var(--accent);
  font-style: normal;
}

/* Tagline */
.lg-tagline {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink3);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1.5;
  margin-bottom: 20px;
  transition: color var(--transition-speed) ease;
}

/* Divider */
.lg-divider {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin: 0 auto 20px;
  opacity: .6;
}

/* Deskripsi */
.lg-desc {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.6;
  margin-bottom: 24px;
  transition: color var(--transition-speed) ease;
}

/* Error */
.lg-error {
  width: 100%;
  background: rgba(220,38,38,.08);
  border: 1px solid rgba(220,38,38,.2);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: #DC2626;
  margin-bottom: 12px;
  text-align: left;
}

/* Google Button */
.lg-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: all .22s cubic-bezier(.2,1.4,.4,1),
              background var(--transition-speed) ease,
              border-color var(--transition-speed) ease,
              color var(--transition-speed) ease;
  margin-bottom: 16px;
}
.lg-google-btn:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
  transform: translateY(-1px);
}
.lg-google-btn:active {
  transform: scale(.96);
  box-shadow: none;
}
.lg-google-btn:disabled {
  opacity: .65;
  cursor: default;
  transform: none;
  box-shadow: none;
}
.lg-g-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Footer note */
.lg-footer {
  font-size: 11px;
  color: var(--ink3);
  letter-spacing: 0.2px;
  transition: color var(--transition-speed) ease;
}

/* ============================================================
   HAPUS AKUN — tombol & panel konfirmasi
   ============================================================ */
.prf-delete-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 13px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink3);
  background: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  margin-top: 2px;
}
.prf-delete-btn:hover { color: #DC2626; }
.prf-delete-btn:active { background: rgba(220,38,38,.06); color: #DC2626; }
.prf-delete-btn .material-icons-round { font-size: 18px; }

/* Panel konfirmasi hapus */
.prf-delete-panel {
  background: rgba(220,38,38,.05);
  border: 1.5px solid rgba(220,38,38,.2);
  border-radius: 16px;
  padding: 20px 16px;
  margin-top: 4px;
  animation: fadeInUp .22s ease;
  transition: background var(--transition-speed) ease;
}
.dp-icon {
  font-size: 28px;
  text-align: center;
  margin-bottom: 8px;
}
.dp-title {
  font-size: 15px;
  font-weight: 700;
  color: #DC2626;
  text-align: center;
  margin-bottom: 10px;
}
.dp-desc {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 14px;
  transition: color var(--transition-speed) ease;
}
.dp-error {
  background: rgba(220,38,38,.08);
  border: 1px solid rgba(220,38,38,.2);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  color: #DC2626;
  margin-bottom: 12px;
  line-height: 1.5;
}
.dp-actions {
  display: flex;
  gap: 8px;
}
.dp-cancel {
  flex: 1;
  padding: 11px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  transition: all .18s var(--spring-fluid),
              background var(--transition-speed) ease,
              border-color var(--transition-speed) ease,
              color var(--transition-speed) ease;
}
.dp-cancel:active { transform: scale(.95); }
.dp-confirm {
  flex: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 11px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #DC2626;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(220,38,38,.3);
  transition: all .18s var(--spring-fluid);
}
.dp-confirm:active { transform: scale(.95); box-shadow: none; }
.dp-confirm:disabled { opacity: .65; cursor: default; transform: none; box-shadow: none; }

.prf-delete-center {
  display: flex;
  justify-content: center;
  padding-bottom: 4px;
}
.prf-delete-center .prf-delete-btn {
  width: auto;
  justify-content: center;
}

/* ============================================================
   KOLEKSI — banner keterangan paket
   ============================================================ */
.kol-paket-banner {
  margin: 8px 16px 4px;
}
.kpb-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg2);
  border-radius: 14px;
  border: 1px solid var(--line);
  transition: background var(--transition-speed) ease,
              border-color var(--transition-speed) ease;
}
.kpb-inner.kpb-filtered {
  background: rgba(182,72,27,.06);
  border-color: rgba(182,72,27,.18);
}
body.dark-mode .kpb-inner.kpb-filtered {
  background: rgba(220,106,61,.1);
  border-color: rgba(220,106,61,.2);
}
.kpb-ico {
  font-size: 20px;
  flex-shrink: 0;
}
.kpb-text {
  flex: 1;
  min-width: 0;
}
.kpb-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  transition: color var(--transition-speed) ease;
}
.kpb-sub {
  font-size: 11px;
  color: var(--ink3);
  margin-top: 1px;
  transition: color var(--transition-speed) ease;
}
.kpb-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink3);
  background: var(--bg3);
  padding: 3px 9px;
  border-radius: 50px;
  flex-shrink: 0;
  transition: background var(--transition-speed) ease,
              color var(--transition-speed) ease;
}
.kpb-clear {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(182,72,27,.1);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, transform .2s var(--spring-fluid);
}
.kpb-clear:active { transform: scale(.85); }
.kpb-clear .material-icons-round { font-size: 15px; }

/* ============================================================
   LOGIN GATE — mode email/password (WebView APK)
   ============================================================ */
.lg-field {
  width: 100%;
  margin-bottom: 12px;
  text-align: left;
}
.lg-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 5px;
  transition: color var(--transition-speed) ease;
}
.lg-input {
  width: 100%;
  padding: 13px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  transition: border-color .2s ease,
              background var(--transition-speed) ease,
              color var(--transition-speed) ease;
}
.lg-input:focus {
  border-color: var(--accent);
  background: var(--surface);
}
.lg-input::placeholder { color: var(--ink3); }
.lg-pw-wrap { position: relative; }
.lg-pw-wrap .lg-input { padding-right: 44px; }
.lg-pw-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink3);
  padding: 4px;
  display: flex;
  align-items: center;
}
.lg-pw-eye .material-icons-round { font-size: 19px; }
.lg-submit-btn {
  width: 100%;
  padding: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(182,72,27,.3);
  margin-bottom: 14px;
  transition: transform .2s cubic-bezier(.2,1.4,.4,1), opacity .2s ease;
}
.lg-submit-btn:active { transform: scale(.96); }
.lg-submit-btn:disabled { opacity: .6; cursor: default; transform: none; }
.lg-toggle-mode {
  font-size: 13px;
  color: var(--ink3);
  margin-bottom: 8px;
  transition: color var(--transition-speed) ease;
}
.lg-toggle-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 0 0 4px;
}
.lg-toggle-btn:active { opacity: .7; }

/* ============================================================
   LOGIN GATE — lupa kata sandi
   ============================================================ */
.lg-forgot {
  text-align: center;
  margin-top: -6px;
  margin-bottom: 4px;
}
.lg-forgot-btn {
  background: none;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--ink3);
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s ease;
}
.lg-forgot-btn:hover { color: var(--accent); }
.lg-forgot-btn:active { opacity: .7; }
.lg-forgot-btn:disabled { opacity: .5; cursor: default; }


/* ============================================================
   NOTIFIKASI — badge di header
   ============================================================ */
.notif-hdr-btn { position: relative; }
.notif-hdr-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  background: #E53935; color: white;
  font-size: 9px; font-weight: 700;
  border-radius: 8px; padding: 0 4px;
  display: none; align-items: center; justify-content: center;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(229,57,53,.45);
  pointer-events: none;
  border: 1.5px solid var(--bg);
  transition: border-color var(--transition-speed) ease;
}
/* ============================================================
   NOTIFIKASI — bottom sheet panel
   ============================================================ */
.notif-panel {
  position: fixed; inset: 0; z-index: 350;
  pointer-events: none; visibility: hidden;
}
.notif-panel.show { pointer-events: all; visibility: visible; }
.notif-panel-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background .3s ease;
}
.notif-panel.show .notif-panel-backdrop { background: rgba(0,0,0,.25); }
.notif-sheet {
  position: absolute; top: var(--hdr-h); right: 12px;
  width: min(360px, calc(100vw - 24px));
  max-height: 70vh;
  background: rgba(251, 249, 244, 0.75);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 20px;
  display: flex; flex-direction: column;
  transform: scale(0.9) translateY(-10px);
  transform-origin: top right;
  opacity: 0;
  transition: transform .3s cubic-bezier(.2,1.1,.4,1), opacity .25s ease, background var(--transition-speed) ease;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,.18), 0 0 0 1px rgba(255,255,255,.5);
}
.dark-mode .notif-sheet {
  background: rgba(26, 23, 20, 0.75);
  box-shadow: 0 12px 48px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.06);
}
.notif-panel.show .notif-sheet { transform: scale(1) translateY(0); opacity: 1; }
.notif-sheet-handle {
  display: none;
}
.notif-sheet-hdr {
  display: flex; align-items: center;
  padding: 14px 18px 10px; flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--transition-speed) ease;
}
.notif-sheet-title {
  flex: 1; font-size: 17px; font-weight: 700; color: var(--ink);
  transition: color var(--transition-speed) ease;
}
.notif-sheet-close {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--bg2); color: var(--ink2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color var(--transition-speed) ease;
}
.notif-sheet-close:active { transform: scale(.88); }
.notif-sheet-close .material-icons-round { font-size: 18px; }
.notif-sheet-body { flex: 1; overflow-y: auto; padding: 12px 0 16px; }
.notif-loading { display: flex; justify-content: center; padding: 32px 0; }
.notif-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 40px 24px; gap: 10px;
  color: var(--ink3); text-align: center;
  transition: color var(--transition-speed) ease;
}
.notif-empty .material-icons-round { font-size: 40px; opacity: .4; }
.notif-empty p { font-size: 14px; }
.notif-item {
  display: flex; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease, border-color var(--transition-speed) ease;
  position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: rgba(182,72,27,.04); }
body.dark-mode .notif-item.unread { background: rgba(220,106,61,.06); }
.notif-item-ico {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
  box-shadow: 0 2px 8px rgba(182,72,27,.25);
}
.notif-item-ico .material-icons-round { font-size: 20px; color: white; }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title {
  font-size: 14px; font-weight: 600; color: var(--ink);
  margin-bottom: 3px; line-height: 1.35;
  transition: color var(--transition-speed) ease;
}
.notif-item-body-text {
  font-size: 13px; color: var(--ink2); line-height: 1.55;
  transition: color var(--transition-speed) ease;
}
.notif-item-time {
  font-size: 11px; color: var(--ink3); margin-top: 5px;
  transition: color var(--transition-speed) ease;
}
.notif-unread-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: 6px;
  box-shadow: 0 0 0 2px rgba(182,72,27,.18);
}
.notif-mark-all { display: flex; justify-content: flex-end; padding: 0 18px 10px; flex-shrink: 0; }
.notif-mark-btn {
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: none; border: none; cursor: pointer; padding: 4px 0;
  transition: opacity .2s;
}
.notif-mark-btn:active { opacity: .6; }


/* ============================================================
   SEARCH HISTORY
   ============================================================ */
.srch-hist-hdr {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0 10px;
}
.srch-hist-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: .6px;
  flex: 1;
  transition: color var(--transition-speed) ease;
}
.srch-hist-clear {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .2s ease;
}
.srch-hist-clear:active {
  background: rgba(182,72,27,.08);
}


/* ============================================================
   UJIAN — exam cards
   ============================================================ */
.exam-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 22px 0;
}
.exam-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .3s var(--spring-fluid), box-shadow .2s ease,
              background var(--transition-speed) ease, border-color var(--transition-speed) ease;
}
.exam-card:active {
  transform: scale(.97);
}
.exam-card-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(182,72,27,.2);
}
.exam-card-ico .material-icons-round {
  font-size: 22px;
  color: white;
}
.exam-card-body {
  flex: 1;
  min-width: 0;
}
.exam-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
  line-height: 1.35;
  transition: color var(--transition-speed) ease;
}
.exam-card-desc {
  font-size: 12px;
  color: var(--ink3);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-speed) ease;
}
.exam-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.exam-paket-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  letter-spacing: .3px;
  background: var(--bg2);
  color: var(--ink3);
  transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}
.exam-paket-tag.pa { background: #DBEAFE; color: #1E3A8A; }
.exam-paket-tag.pb { background: #DCFCE7; color: #14532D; }
.exam-paket-tag.pc { background: #FEF3C7; color: #78350F; }
body.dark-mode .exam-paket-tag.pa { background: rgba(29,78,216,.25); color: #93BBFC; }
body.dark-mode .exam-paket-tag.pb { background: rgba(21,128,61,.25); color: #86EFAC; }
body.dark-mode .exam-paket-tag.pc { background: rgba(180,83,9,.25); color: #FCD34D; }
.exam-deadline {
  font-size: 11px;
  color: var(--ink3);
  transition: color var(--transition-speed) ease;
}
.exam-card-arrow {
  font-size: 18px;
  color: var(--ink3);
  flex-shrink: 0;
  transition: color var(--transition-speed) ease;
}


/* ============================================================
   MASUK CEPAT (biometric/credential)
   ============================================================ */
.lg-quick-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--accent, #B6481B);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(182,72,27,.3);
  transition: transform .2s cubic-bezier(.2,1.4,.4,1), opacity .2s;
}
.lg-quick-btn:active { transform: scale(.96); }
.lg-quick-btn .material-icons-round { font-size: 22px; }
.lg-quick-divider {
  display: flex;
  align-items: center;
  margin-top: 16px;
  gap: 12px;
}
.lg-quick-divider::before,
.lg-quick-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line, #E8E1D2);
}
.lg-quick-or {
  font-size: 12px;
  color: var(--ink3, #948578);
  white-space: nowrap;
}


/* ============================================================
   EXAM CARD — multi link items
   ============================================================ */
.exam-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.exam-link-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(182,72,27,.08);
  border: 1px solid rgba(182,72,27,.18);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .2s var(--spring-fluid);
}
.exam-link-item:active { transform: scale(.94); background: rgba(182,72,27,.14); }
.exam-link-item .material-icons-round { font-size: 14px; }
body.dark-mode .exam-link-item {
  background: rgba(220,106,61,.1);
  border-color: rgba(220,106,61,.2);
  color: var(--accent2);
}

.exam-link-label-text {
  font-size: 12px;
  font-weight: 600;
}


/* ============================================================
   BANNER SECTION
   ============================================================ */
.banner-scroll {
  display: flex;
  gap: 12px;
  padding: 18px 22px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.banner-scroll::-webkit-scrollbar { display: none; }
.banner-item {
  flex-shrink: 0;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: var(--shadow-md);
  transition: transform .3s var(--spring-fluid);
}
.banner-item:active { transform: scale(.97); }
.banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  aspect-ratio: 16/7;
  object-fit: cover;
}
.banner-yt {
  position: relative;
}
.banner-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,.9);
  font-size: 0;
  pointer-events: none;
}
.banner-play .material-icons-round {
  font-size: 52px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}


/* ============================================================
   LOGIN — or divider
   ============================================================ */
.lg-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  width: 100%;
}
.lg-or-divider::before,
.lg-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line, #E8E1D2);
}
.lg-or-divider span {
  font-size: 12px;
  color: var(--ink3, #948578);
}


/* ============================================================
   TENTANG — footer links
   ============================================================ */
.abt-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 22px 32px;
  font-size: 12px;
}
.abt-footer a {
  color: var(--ink3);
  text-decoration: none;
  transition: color .2s;
}
.abt-footer a:hover { color: var(--accent); }
.abt-footer-dot {
  color: var(--ink3);
  opacity: .5;
}

/* Nilai */
.nilai-empty, .nilai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 0;
  color: var(--ink3);
  text-align: center;
  font-size: 14px;
  transition: color var(--transition-speed) ease;
}
.nilai-empty .material-icons-round, .nilai-loading .material-icons-round {
  font-size: 40px;
  opacity: .5;
}
.nilai-summary {
  text-align: center;
  font-size: 15px;
  color: var(--ink2);
  padding: 12px 0 16px;
  transition: color var(--transition-speed) ease;
}
.nilai-summary strong {
  color: var(--accent);
  font-size: 18px;
}
.nilai-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nilai-raport-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: opacity .2s ease;
}
.nilai-raport-btn:active { opacity: .8; }
.nilai-raport-btn .material-icons-round { font-size: 20px; }
.nilai-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  border-radius: 12px;
  padding: 12px 14px;
  transition: background var(--transition-speed) ease;
}
.nilai-card-mapel {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: color var(--transition-speed) ease;
}
.nilai-card-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nilai-card-nilai {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  min-width: 28px;
  text-align: right;
}
.nilai-card-grade {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink3);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 6px;
  transition: color var(--transition-speed) ease, background var(--transition-speed) ease;
}
.nilai-card-smt {
  font-size: 11px;
  color: var(--ink3);
  flex-shrink: 0;
  transition: color var(--transition-speed) ease;
}
