/* ========== 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 — lebih gelap ===== */
  --tabs-bg: rgba(25, 20, 15, 0.78);
  --tabs-border: rgba(255, 255, 255, 0.2);
  --tabs-shadow: 0 4px 28px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(255, 255, 255, 0.15) inset;
  --tabs-icon: rgba(255, 255, 255, 0.7);
  --tabs-icon-on: #ffffff;
  --tabs-active-bg: rgba(255, 255, 255, 0.08);
  --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 ===== */
  --tabs-bg: rgba(10, 8, 6, 0.92);
  --tabs-border: rgba(255, 255, 255, 0.06);
  --tabs-shadow: 0 4px 28px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(255, 255, 255, 0.06) inset;
  --tabs-icon: rgba(255, 255, 255, 0.6);
  --tabs-icon-on: #ffffff;
  --tabs-active-bg: rgba(255, 255, 255, 0.06);
  --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: 'Inter', -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 ========== */
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 18px;
  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);
}
.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;
}
.logo em { color: var(--accent); font-style: normal; transition: color var(--transition-speed) ease; }
.hdr-right { display: flex; align-items: center; gap: 2px; }
.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 — Lebih gelap & blur kuat ========== */
.btabs {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--tabs-bg);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  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;
}
.btabs.tabs-hidden {
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  pointer-events: none;
}
.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: none;
  flex-direction: column;
  padding: 0 18px;
  transition: background var(--transition-speed) ease;
}
.search-overlay.show { display: flex; }
.search-bar {
  height: var(--hdr-h);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  font-family: 'Inter', 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 ========== */
.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; }
.screen.active { display: block; animation: fadeUp .4s var(--spring-fluid); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  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: 'Cormorant Garamond', 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: 'Inter', 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: 'Cormorant Garamond', 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: 'Cormorant Garamond', 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: 'Inter', 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; color: var(--ink3); margin-top: 3px; 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: 'Cormorant Garamond', 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-card { cursor: pointer; }
.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-card: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-card: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%; }
.bk-card .bc-title {
  font-size: 11.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;
}
.bk-card:active .bc-title { transform: scale(.96); }
.bk-card .bc-sub { font-size: 10.5px; 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(14px) saturate(120%) brightness(.75);
  transform: scale(1.15);
}
.cov-inner img.cov-fg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: absolute;
  inset: 0;
}
.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: 'Cormorant Garamond', 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; }
.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: none;
  flex-direction: column;
  transition: background var(--transition-speed) ease;
}
#screen-reader.active { display: flex; }
.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; }
.swipe-hint {
  position: absolute;
  bottom: calc(var(--tab-h) + 22px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  background: rgba(25,20,15,.7);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  white-space: nowrap;
  animation: hintFade 3.5s ease forwards;
}
.swipe-hint .material-icons-round { font-size: 16px; }
@keyframes hintFade {
  0% { opacity: 0; transform: translateX(-50%) translateY(6px); }
  15% { opacity: 1; transform: translateX(-50%) translateY(0); }
  75% { opacity: 1; }
  100% { opacity: 0; }
}
.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 {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 60%);
  padding: 32px 22px 24px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  transition: background var(--transition-speed) ease, border-color var(--transition-speed) ease;
}
.rdr-cover-big {
  width: 160px;
  margin: 0 auto 22px;
  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-cover-big .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 .5s var(--spring-fluid);
}
.rdr-cover-big .bc-cover-lg:hover {
  transform: perspective(700px) rotateY(-7deg) translateY(-4px) scale(1.03);
}
.rdr-cover-big .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-cover-big .bc-cover-lg>.cov-inner { position: absolute; inset: 0; border-radius: 5px 11px 11px 5px; overflow: hidden; }
.rdr-detail h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -.3px;
  margin-bottom: 6px;
  padding: 0 8px;
  transition: color var(--transition-speed) ease;
}
.rdr-meta { font-size: 13px; color: var(--ink3); margin-bottom: 12px; transition: color var(--transition-speed) ease; }
.rdr-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 11px; border-radius: 50px; letter-spacing: .3px; margin-bottom: 18px; }
.rdr-actions { display: flex; gap: 8px; justify-content: center; margin-bottom: 6px; }
.rdr-btn {
  flex: 1;
  max-width: 280px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  letter-spacing: .1px;
  transition: background .18s, transform .4s var(--spring-fluid), background var(--transition-speed) ease;
}
.rdr-btn:hover { background: var(--accent2); }
.rdr-btn:active { transform: scale(.94); transition: transform .12s ease-out; }
.rdr-section { padding: 22px 22px 8px; }
.rdr-section h3 { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 10px; transition: color var(--transition-speed) ease; }
.rdr-desc { font-size: 14px; color: var(--ink2); line-height: 1.7; transition: color var(--transition-speed) ease; }
.rdr-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 12px; }
.rdr-info-item { padding: 12px 14px; background: var(--surface); border-radius: 12px; transition: background var(--transition-speed) ease; }
.rdr-info-item span { display: block; font-size: 11px; color: var(--ink3); margin-bottom: 2px; text-transform: uppercase; letter-spacing: .6px; transition: color var(--transition-speed) ease; }
.rdr-info-item strong { font-size: 14px; font-weight: 500; color: var(--ink); transition: color var(--transition-speed) ease; }

/* ========== PDF VIEWER ========== */
.pdf-viewer {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: #2C2825;
  display: none;
  flex-direction: column;
}
.pdf-viewer.show { display: flex; }
.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: var(--bg);
  display: none;
  flex-direction: column;
  overflow-y: auto;
  transition: background var(--transition-speed) ease;
}
#screen-tentang.active { display: flex; }
#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: italic; 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;
  animation: splashFadeOut .55s cubic-bezier(.4,0,.2,1) 2.2s forwards;
  transition: background var(--transition-speed) ease;
}
.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: 'Inter', 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; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01s !important; transition-duration: .01s !important; }
}
