/* =========================================================
   TABISABA — Redesign Pengguna Umum (Tahap 6)
   Komponen bersama: header hijau, pencarian, pintasan, chip, kartu buku,
   lembar filter, banner. Warna mengikuti design tokens (variables.css).
   CSP: tidak ada style inline; semua lewat kelas.
   ========================================================= */

:root {
  --ux-band: linear-gradient(160deg, #0a6b55 0%, #075b4b 45%, #053f33 100%);
  --ux-mint: #e6f4ee;
  --ux-gold: #f2c14e;
  --ux-gold-soft: #fff4d6;
  --ux-card-shadow: 0 4px 14px rgba(6, 68, 55, 0.07);
}

/* ---------- Header hijau halaman (pageHero) ---------- */
.ux-page { padding-top: 0; }
.ux-hero {
  position: relative;
  margin: 0 calc(-1 * var(--space-4));
  padding: calc(var(--safe-top) + var(--space-2)) var(--space-4) var(--space-5);
  background: var(--ux-band);
  color: #fff;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
}
.ux-hero::after { content: ''; position: absolute; right: -60px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); pointer-events: none; }
.ux-hero__bar { display: flex; align-items: center; gap: var(--space-2); min-height: var(--header-height); }
.ux-hero__bar-title { flex: 1; font-size: var(--text-lg); font-weight: var(--weight-bold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ux-hero__actions { display: inline-flex; gap: var(--space-1); }
.ux-hero__icon-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--touch-min); height: var(--touch-min); margin-left: -10px; border-radius: var(--radius-full); color: #fff; }
.ux-hero__icon-btn:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; }
.ux-hero__icon-btn .icon { width: 24px; height: 24px; }
.ux-hero__body { position: relative; z-index: 1; display: flex; align-items: center; gap: var(--space-3); }
.ux-hero__copy { flex: 1; min-width: 0; }
.ux-hero__title { margin: 0; font-size: var(--text-2xl); font-weight: var(--weight-extrabold); line-height: var(--leading-tight); color: #fff; }
.ux-hero__title:focus { outline: none; }
.ux-hero__text { margin: var(--space-2) 0 0; font-size: var(--text-sm); line-height: 1.5; color: rgba(255, 255, 255, 0.88); }
.ux-hero__art { flex: none; width: 112px; height: 96px; object-fit: contain; }
.ux-hero__art--icon { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 24px; background: rgba(255, 255, 255, 0.12); color: var(--ux-gold); }
.ux-hero__art--icon .icon { width: 44px; height: 44px; }
.ux-hero__search { position: relative; z-index: 1; margin-top: var(--space-4); }

/* ---------- Pil & label ---------- */
.ux-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: var(--weight-bold); }
.ux-pill .icon { width: 14px; height: 14px; }
.ux-pill--gold { background: var(--ux-gold-soft); color: #7a5410; }
.ux-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: var(--weight-bold); line-height: 1.6; }
.ux-badge--mint { background: var(--ux-mint); color: var(--color-primary); }
.ux-badge--green { background: var(--color-primary); color: #fff; }
.ux-badge--gold { background: var(--ux-gold-soft); color: #8a5a00; }
.ux-badge--gray { background: #eef0ec; color: var(--color-text-muted); }

/* ---------- Pencarian ---------- */
.ux-search { display: flex; align-items: center; gap: var(--space-2); min-height: 52px; padding: 0 6px 0 var(--space-4); border-radius: var(--radius-full); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); color: var(--color-text-muted); }
.ux-search:focus-within { border-color: var(--color-button); box-shadow: 0 0 0 3px rgba(8, 122, 97, 0.18); }
.ux-search__icon { display: inline-flex; }
.ux-search__icon .icon { width: 20px; height: 20px; }
.ux-search__input { flex: 1; min-width: 0; height: 50px; border: 0; background: transparent; font: inherit; font-size: var(--text-sm); color: var(--color-text); }
.ux-search__input:focus { outline: none; }
.ux-search__input::-webkit-search-cancel-button { display: none; }
.ux-search__clear, .ux-search__filter { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--color-text); cursor: pointer; }
.ux-search__filter { background: var(--ux-mint); color: var(--color-primary); }
.ux-search__clear:hover, .ux-search__filter:hover { background: var(--color-primary-soft); text-decoration: none; }
.ux-search__clear .icon, .ux-search__filter .icon { width: 20px; height: 20px; }
.ux-search__count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ux-gold); color: #3d2a00; font-size: 0.6875rem; font-weight: var(--weight-extrabold); line-height: 18px; text-align: center; }

/* ---------- Judul bagian ---------- */
.ux-section { margin-top: var(--space-6); }
.ux-sec-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.ux-sec-head__title { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; font-size: calc(var(--text-lg) * var(--heading-scale, 1)); font-weight: var(--weight-extrabold); color: var(--color-text); }
.ux-sec-head__icon { display: inline-flex; color: #c77d16; }
.ux-sec-head__icon .icon { width: 20px; height: 20px; }
.ux-sec-head__link { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 6px 0; border: 0; background: none; color: var(--color-primary); font: inherit; font-size: var(--text-sm); font-weight: var(--weight-bold); cursor: pointer; white-space: nowrap; }
.ux-sec-head__link .icon { width: 16px; height: 16px; }

/* ---------- Pintasan (shortcut) ---------- */
.ux-shortcuts { display: grid; gap: var(--space-2); }
.ux-shortcuts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ux-shortcuts--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ux-shortcut { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; min-height: 92px; padding: var(--space-3) 4px var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--ux-card-shadow); color: var(--color-text); text-align: center; text-decoration: none; font: inherit; cursor: pointer; }
.ux-shortcut:hover { text-decoration: none; border-color: #cfe3da; }
.ux-shortcut.is-active, .ux-shortcut[aria-pressed="true"] { border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(7, 91, 75, 0.25), var(--ux-card-shadow); background: #f6fbf8; }
.ux-shortcut.is-soon { cursor: default; opacity: 0.85; }
.ux-shortcut__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 14px; }
.ux-shortcut__icon .icon { width: 22px; height: 22px; }
.ux-shortcut__label { font-size: 0.75rem; font-weight: var(--weight-bold); line-height: 1.2; }
.ux-shortcut__soon { position: absolute; top: 4px; right: 4px; padding: 0 6px; border-radius: var(--radius-full); background: var(--ux-gold-soft); color: #8a5a00; font-size: 0.5625rem; font-weight: var(--weight-extrabold); line-height: 1.6; }

.ux-tone--green { background: var(--ux-mint); color: var(--color-primary); }
.ux-tone--mint { background: #e3f6f1; color: #0b8a6c; }
.ux-tone--gold { background: var(--ux-gold-soft); color: #b7791f; }
.ux-tone--rose { background: #fdeee8; color: #d9531e; }
.ux-tone--blue { background: #e8f0fd; color: #2563eb; }
.ux-tone--violet { background: #f1ebfd; color: #7c3aed; }

/* ---------- Chip kategori ---------- */
.ux-chips { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--space-4)); padding: 2px var(--space-4) 4px; scroll-padding: 0 var(--space-4); }
.ux-chips::-webkit-scrollbar { display: none; }
.ux-chip { flex: none; min-height: 40px; padding: 0 var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: var(--text-sm); font-weight: var(--weight-semibold); white-space: nowrap; cursor: pointer; }
.ux-chip.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ---------- Kartu buku ---------- */
.ux-book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.ux-book-list { display: flex; flex-direction: column; gap: var(--space-3); }
.ux-book { position: relative; display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.ux-book__cover { display: block; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--ux-card-shadow); }
.ux-book__cover .book-cover { width: 100%; border-radius: var(--radius-md); box-shadow: none; }
.ux-book__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ux-book__badges { display: flex; gap: 4px; }
.ux-book__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--color-text); font-weight: var(--weight-extrabold); font-size: var(--text-sm); line-height: 1.3; text-decoration: none; }
.ux-book__title:hover { text-decoration: none; color: var(--color-primary); }
.ux-book__author { color: var(--color-text-muted); font-size: var(--text-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ux-book__price { color: #c2410c; font-weight: var(--weight-extrabold); font-size: var(--text-sm); }
.ux-book__progress { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--color-text); }
.ux-book__progress .progress { flex: 1; }
.ux-book--list { flex-direction: row; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--ux-card-shadow); }
.ux-book--list .ux-book__cover { flex: none; width: 76px; }
.ux-book--list .ux-book__body { flex: 1; }
.ux-book--list .ux-fav { top: auto; bottom: var(--space-3); right: var(--space-3); }
.ux-fav { position: absolute; top: 8px; right: 8px; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.94); color: var(--color-text); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14); cursor: pointer; }
.ux-fav .icon { width: 18px; height: 18px; }
.ux-fav[aria-pressed="true"] { color: #e5483b; }
.ux-fav[aria-pressed="true"] .icon { fill: currentColor; }
.ux-book-skeleton { display: block; aspect-ratio: 3 / 4.4; border-radius: var(--radius-md); }

/* ---------- Kosong ---------- */
.ux-empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-8) var(--space-4); border: 1px dashed #d6e3dc; border-radius: var(--radius-lg); background: var(--color-surface); text-align: center; }
.ux-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px; background: var(--ux-mint); color: var(--color-primary); }
.ux-empty__icon .icon { width: 28px; height: 28px; }
.ux-empty__title { margin: 0; font-weight: var(--weight-extrabold); }
.ux-empty__text { margin: 0 0 var(--space-2); color: var(--color-text-muted); font-size: var(--text-sm); }

/* ---------- Pustaka Buku ---------- */
.catalog2__shortcuts { position: relative; z-index: 2; margin-top: calc(-1 * var(--space-4)); }
.catalog2__bar { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-5) 0 var(--space-3); }
.catalog2__summary { flex: 1; margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.catalog2__more { margin-top: var(--space-4); }
.ux-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.ux-toggle__btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--color-text-muted); cursor: pointer; }
.ux-toggle__btn[aria-pressed="true"] { background: var(--color-primary); color: #fff; }
.ux-toggle__btn .icon { width: 18px; height: 18px; }
.ux-sort-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: var(--text-sm); font-weight: var(--weight-bold); cursor: pointer; white-space: nowrap; }
.ux-sort-btn .icon { width: 16px; height: 16px; }

/* ---------- Lembar Filter & Urutkan ---------- */
.sheet--filter .sheet__content { padding-bottom: 0; }
.ux-filter { display: flex; flex-direction: column; }
.ux-filter__group { margin: 0; padding: var(--space-3) 0; border: 0; border-bottom: 1px solid var(--color-border); }
.ux-filter__legend { padding: 0; margin-bottom: var(--space-3); font-weight: var(--weight-extrabold); }
.ux-filter__sorts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.ux-sort-opt { position: relative; }
.ux-sort-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ux-sort-opt span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px 6px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); font-size: var(--text-xs); font-weight: var(--weight-bold); text-align: center; line-height: 1.2; }
.ux-sort-opt input:checked + span { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.ux-sort-opt input:focus-visible + span { outline: 3px solid rgba(8, 122, 97, 0.35); outline-offset: 2px; }
.ux-check { display: flex; align-items: center; gap: var(--space-3); min-height: 40px; cursor: pointer; font-size: var(--text-sm); }
.ux-check input { width: 20px; height: 20px; accent-color: var(--color-primary); }
.ux-link-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 0; border: 0; background: none; color: var(--color-primary); font: inherit; font-size: var(--text-sm); font-weight: var(--weight-bold); cursor: pointer; }
.ux-link-btn .icon { width: 16px; height: 16px; }
.ux-link-btn--strong { text-decoration: underline; font-size: var(--text-base); }
.ux-filter__foot { position: sticky; bottom: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--space-5); padding: var(--space-4) 0 calc(var(--space-4) + var(--safe-bottom)); background: var(--color-surface); }

/* ---------- Beranda ---------- */
.home.hv { padding-top: 0; }
.ux-home-top { margin: 0 calc(-1 * var(--space-4)); padding: calc(var(--safe-top) + var(--space-4)) var(--space-4) var(--space-5); background: var(--ux-band); border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
.ux-home-top .home-hello__who { color: #fff; }
.ux-home-top .home-hello__who .avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85); }
.hv .ux-home-top .home-hello__name { color: #fff; }
.ux-home-top .home-hello__salam { color: rgba(255, 255, 255, 0.85); }
.home-hello__tools { display: inline-flex; flex-direction: row; align-items: center; gap: var(--space-2); flex: none; }
.ux-home-top .home-hello__who { flex: 1; }
.home-hello__tools [data-member] { display: flex; }
.home-hello__tools [data-member]:empty { display: none; }
.ux-home-top .home-hello { align-items: center; gap: var(--space-2); }
.ux-home-top .home-hello__who { padding-top: 0; }
.ux-home-top .home-hello__bell { background: rgba(255, 255, 255, 0.14); box-shadow: none; color: #fff; }
.ux-home-top .home-search { margin-top: var(--space-4); border-color: transparent; }
.ux-member { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border: 1.5px solid var(--ux-gold); border-radius: var(--radius-full); color: var(--ux-gold); font-size: var(--text-xs); font-weight: var(--weight-extrabold); white-space: nowrap; text-decoration: none; }
.ux-member:hover { text-decoration: none; background: rgba(242, 193, 78, 0.12); }
.ux-member .icon { width: 16px; height: 16px; }
.ux-member--on { background: var(--ux-gold); color: #3d2a00; }
.hv-sections > .ux-shortcuts { margin-top: var(--space-4); }

/* Banner Academy & Mitra */
.ux-banner { position: relative; display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-6); padding: var(--space-5) var(--space-4); border-radius: var(--radius-xl); background: var(--ux-band); color: #fff; text-decoration: none; overflow: hidden; box-shadow: var(--shadow-md); }
.ux-banner:hover { text-decoration: none; }
.ux-banner::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); }
.ux-banner__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); flex: 1; min-width: 0; }
.ux-banner__title { font-size: var(--text-lg); font-weight: var(--weight-extrabold); line-height: 1.25; }
.ux-banner__text { font-size: var(--text-sm); color: rgba(255, 255, 255, 0.88); line-height: 1.45; }
.ux-banner__text strong { color: var(--ux-gold); }
.ux-banner__points { display: flex; flex-direction: column; gap: 4px; font-size: var(--text-sm); color: rgba(255, 255, 255, 0.92); }
.ux-banner__points span { display: inline-flex; align-items: center; gap: 6px; }
.ux-banner__points .icon { width: 16px; height: 16px; color: var(--ux-gold); }
.ux-banner__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-1); min-height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-full); background: var(--ux-gold); color: #3d2a00; font-size: var(--text-sm); font-weight: var(--weight-extrabold); }
.ux-banner__cta .icon { width: 16px; height: 16px; }
.ux-banner__art { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 76px; height: 76px; border-radius: 22px; background: rgba(255, 255, 255, 0.12); color: var(--ux-gold); }
.ux-banner__art .icon { width: 40px; height: 40px; }
.ux-banner__big { position: relative; z-index: 1; flex: none; padding: 6px 12px; border-radius: 14px; background: var(--ux-gold); color: #3d2a00; font-size: var(--text-xl); font-weight: var(--weight-extrabold); transform: rotate(-4deg); }

/* Topik populer */
.ux-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.ux-topic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: var(--space-3) var(--space-2); border-radius: var(--radius-lg); text-align: center; text-decoration: none; }
.ux-topic:hover { text-decoration: none; filter: brightness(0.97); }
.ux-topic__icon .icon { width: 26px; height: 26px; }
.ux-topic__label { font-size: var(--text-xs); font-weight: var(--weight-extrabold); line-height: 1.25; color: var(--color-text); }

/* ---------- Layar kecil & lebar ---------- */
@media (max-width: 380px) {
  .ux-shortcuts--5 { gap: 6px; }
  .ux-shortcut { min-height: 84px; padding: var(--space-2) 2px; }
  .ux-shortcut__icon { width: 36px; height: 36px; }
  .ux-shortcut__label { font-size: 0.6875rem; }
  .ux-hero__art { width: 84px; height: 76px; }
  .ux-hero__art--icon { width: 64px; height: 64px; }
  .ux-filter__sorts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .ux-book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ux-topics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .ux-book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ux-hero, .ux-home-top { border-radius: var(--radius-xl); margin-top: var(--space-4); }
  .ux-hero__art, .ux-hero__art--icon { width: 140px; height: 120px; }
}

/* =========================================================
   Tahap 2 — Tanya Buku & Diskusi
   ========================================================= */
/* Tanya Buku: pilih buku */
.tb2__perks { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: calc(-1 * var(--space-4)); padding: var(--space-3) var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--ux-card-shadow); }
.tb2__perk { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 4px; text-align: center; font-size: var(--text-xs); font-weight: var(--weight-bold); line-height: 1.25; }
.tb2__perk + .tb2__perk { border-left: 1px solid var(--color-border); }
.tb2 [data-tb] { margin-top: var(--space-6); }
.tb2-list { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.tb2-book { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--ux-card-shadow); color: var(--color-text); text-decoration: none; }
.tb2-book:hover { text-decoration: none; border-color: #cfe3da; }
.tb2-book .book-cover { width: 64px; flex: none; }
.tb2-book__body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: 1; min-width: 0; }
.tb2-book__title { font-weight: var(--weight-extrabold); line-height: 1.3; }
.tb2-book__meta { color: var(--color-text-muted); font-size: var(--text-sm); }
.tb2-book > .icon { flex: none; color: var(--color-text-muted); }
.tb2-premium { display: block; margin-top: var(--space-5); padding: var(--space-4); border-radius: var(--radius-lg); background: linear-gradient(135deg, #fff7df, #fdeec4); border: 1px solid #f3dc9c; color: var(--color-text); text-decoration: none; }
.tb2-premium:hover { text-decoration: none; }
.tb2-premium__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.tb2-premium__copy strong { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-base); }
.tb2-premium__copy strong .icon { color: #c48a12; width: 20px; height: 20px; }
.tb2-premium__copy > span { font-size: var(--text-sm); color: var(--color-text-muted); }
.tb2-premium .ux-banner__cta { color: #3d2a00; }

/* Tanya Buku: percakapan */
.chat-book { display: flex; align-items: center; gap: var(--space-3); }
.chat-book__info { flex: 1; min-width: 0; }
.tb2-switch { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 12px; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-primary); font-size: var(--text-xs); font-weight: var(--weight-bold); text-decoration: none; }
.tb2-switch .icon { width: 14px; height: 14px; }
.tb2-source { margin-top: var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); background: #fdf6e3; }
.tb2-source__title { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--space-2); color: #9a6b1c; font-size: var(--text-sm); font-weight: var(--weight-bold); }
.tb2-source__title .icon { width: 16px; height: 16px; }
.tb2-source__pages { display: flex; flex-wrap: wrap; gap: 6px; }
.tb2-page { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: var(--radius-full); background: #fff; border: 1px solid #f0e0b8; color: var(--color-text); font-size: var(--text-xs); font-weight: var(--weight-bold); text-decoration: none; }
.tb2-page:hover { text-decoration: none; border-color: #c48a12; }
.tb2-more { margin: var(--space-3) 0; padding: var(--space-3); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); }
.tb2-more__title { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--space-2); font-weight: var(--weight-bold); font-size: var(--text-sm); }
.tb2-more__title .icon { color: #c48a12; width: 18px; height: 18px; }
.tb2-more__list { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.tb2-more__list .ux-chip { min-height: 36px; white-space: normal; text-align: left; color: var(--color-primary); }

/* Diskusi: daftar */
.disc2__plus { background: var(--color-primary); color: #fff; }
.disc2__book { margin-top: var(--space-4); }
.disc2__kinds { margin-top: var(--space-4); }
.disc2__note { margin: var(--space-2) 0; min-height: 1em; }
.disc-list { display: flex; flex-direction: column; gap: var(--space-3); }
.disc-card { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--ux-card-shadow); padding: var(--space-4); }
.disc-card__anon, .disc-thread .disc-card__anon { display: inline-flex; align-items: center; justify-content: center; background: #eef0ec; color: var(--color-text-muted); }
.disc-card__book { display: inline-flex; align-items: center; gap: 6px; color: var(--color-primary); font-size: var(--text-xs); font-weight: var(--weight-bold); }
.disc-card__book .icon { width: 14px; height: 14px; }
.disc-kind { display: inline-flex; align-items: center; margin-left: auto; padding: 2px 10px; border-radius: var(--radius-full); font-size: 0.6875rem; font-weight: var(--weight-extrabold); white-space: nowrap; }
.disc-kind--question { background: var(--ux-mint); color: var(--color-primary); }
.disc-kind--experience { background: #fbe7f0; color: #b42f6b; }
.disc-kind--insight { background: var(--ux-gold-soft); color: #8a5a00; }
.disc-flag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: var(--radius-full); background: #fdeee8; color: #c2410c; font-size: 0.6875rem; font-weight: var(--weight-extrabold); }
.disc-flag--ok { background: var(--ux-mint); color: var(--color-primary); }
.disc-flag .icon { width: 12px; height: 12px; }

/* Diskusi: detail */
.disc-thread .thread__head { display: flex; align-items: center; gap: var(--space-3); }
.thread__who { flex: 1; min-width: 0; }
.disc-bookref { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-4) 0; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); color: var(--color-text); text-decoration: none; box-shadow: var(--ux-card-shadow); }
.disc-bookref:hover { text-decoration: none; border-color: #cfe3da; }
.disc-bookref .book-cover { width: 48px; flex: none; }
.disc-bookref__body { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: var(--text-sm); }
.disc-bookref__body small { color: var(--color-text-muted); }
.disc-bookref__body span { color: var(--color-text-muted); font-size: var(--text-xs); }
.disc-follow { margin-left: auto; border: 1.5px solid var(--color-primary); color: var(--color-primary); }
.disc-follow.is-on { background: var(--color-primary); color: #fff; }
.thread__actions--minor { margin-top: var(--space-2); gap: var(--space-4); }
.disc-comments-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.disc-best { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px; border-radius: var(--radius-full); background: var(--ux-gold-soft); color: #8a5a00; font-size: 0.6875rem; font-weight: var(--weight-extrabold); }
.disc-best .icon { width: 12px; height: 12px; }
.comment--best > .comment__body { padding: var(--space-3); border-radius: var(--radius-md); background: #fffaf0; border: 1px solid #f3dc9c; }

/* Diskusi: buat baru */
.disc-new { display: flex; flex-direction: column; gap: var(--space-5); }
.disc-new__group { margin: 0; padding: 0; border: 0; }
.disc-new__label { display: block; margin: 0 0 var(--space-2); padding: 0; font-weight: var(--weight-extrabold); }
.disc-new__label .req { color: var(--color-danger); }
.disc-new__opt { font-weight: var(--weight-regular); color: var(--color-text-muted); }
.disc-new__kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.disc-kindcard { position: relative; cursor: pointer; }
.disc-kindcard input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.disc-kindcard__box { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; padding: var(--space-3) var(--space-2); border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); text-align: center; }
.disc-kindcard__box strong { font-size: var(--text-sm); }
.disc-kindcard__box small { color: var(--color-text-muted); font-size: 0.6875rem; line-height: 1.3; }
.disc-kindcard__icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; background: var(--ux-mint); color: var(--color-primary); }
.disc-kindcard__icon .icon { width: 20px; height: 20px; }
.disc-kindcard input:checked + .disc-kindcard__box { border-color: var(--color-primary); background: #f1faf6; box-shadow: 0 0 0 2px rgba(7, 91, 75, 0.2); }
.disc-kindcard input:focus-visible + .disc-kindcard__box { outline: 3px solid rgba(8, 122, 97, 0.35); outline-offset: 2px; }
.disc-new__box { position: relative; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.disc-new__box:focus-within { border-color: var(--color-button); box-shadow: 0 0 0 3px rgba(8, 122, 97, 0.15); }
.disc-new__box input, .disc-new__box textarea { display: block; width: 100%; padding: var(--space-3) var(--space-4) var(--space-6); border: 0; border-radius: var(--radius-lg); background: transparent; font: inherit; color: var(--color-text); resize: vertical; }
.disc-new__box input:focus, .disc-new__box textarea:focus { outline: none; }
.disc-new__count { position: absolute; right: var(--space-3); bottom: var(--space-2); color: var(--color-text-muted); font-size: var(--text-xs); }
.disc-new__pick { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 56px; padding: 0 var(--space-4); border: 1px dashed #c9d9d1; border-radius: var(--radius-lg); background: var(--color-surface); color: var(--color-primary); font: inherit; font-weight: var(--weight-bold); cursor: pointer; }
.disc-new__pick span { flex: 1; text-align: left; }
.disc-new__book { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.disc-new__book .book-cover { width: 48px; flex: none; }
.disc-new__book-body { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: var(--text-sm); }
.disc-new__book-body span { color: var(--color-text-muted); font-size: var(--text-xs); }
.disc-new__anon { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; cursor: pointer; }
.disc-new__anon > span { display: flex; flex-direction: column; gap: 2px; }
.disc-new__anon small { color: var(--color-text-muted); font-size: var(--text-xs); }
.disc-new__search { margin-bottom: var(--space-3); }
@media (max-width: 380px) {
  .disc-new__kinds { gap: 6px; }
  .disc-kindcard__box small { display: none; }
  .tb2__perk { font-size: 0.6875rem; }
}

/* =========================================================
   Tahap 3 — TABISABA Academy
   ========================================================= */
.ac-start { position: relative; z-index: 1; margin-top: var(--space-4); text-decoration: none; }
.ac-start:hover { text-decoration: none; }
.ac-hero-head { position: relative; z-index: 1; margin: var(--space-3) 0 0; font-size: var(--text-base); font-weight: var(--weight-extrabold); color: var(--ux-gold); }
.ac-types { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); margin-top: calc(-1 * var(--space-4)); }
.ac-typecard { display: flex; align-items: center; gap: var(--space-2); min-height: 76px; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--ux-card-shadow); color: var(--color-text); text-decoration: none; }
.ac-typecard:hover { text-decoration: none; border-color: #cfe3da; }
.ac-typecard--course { background: #f1faf6; }
.ac-typecard--webinar { background: #fff8ea; }
.ac-typecard--workshop { background: #f6f1fe; }
.ac-typecard--coaching { background: #eef4fe; }
.ac-typecard__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 14px; }
.ac-typecard__icon .icon { width: 22px; height: 22px; }
.ac-typecard__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ac-typecard__body strong { font-size: var(--text-sm); line-height: 1.25; }
.ac-typecard__body small { color: var(--color-text-muted); font-size: 0.6875rem; line-height: 1.3; }
.ac-typecard > .icon { flex: none; width: 16px; height: 16px; color: var(--color-text-muted); }
.ac-perks .ac-perk { cursor: default; min-height: 84px; }
.ac-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: var(--space-3); padding: 4px; border-radius: var(--radius-full); background: var(--color-surface); border: 1px solid var(--color-border); }
.ac-seg__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--color-text); font: inherit; font-size: var(--text-sm); font-weight: var(--weight-bold); cursor: pointer; }
.ac-seg__btn .icon { width: 16px; height: 16px; }
.ac-seg__btn[aria-pressed="true"] { background: var(--color-primary); color: #fff; }
.ac-none { padding: var(--space-3) 0; }

.ac-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.ac-card { display: flex; flex-direction: column; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--ux-card-shadow); color: var(--color-text); text-decoration: none; overflow: hidden; }
.ac-card:hover { text-decoration: none; border-color: #cfe3da; }
.ac-card__media { position: relative; display: block; }
.ac-card__thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; overflow: hidden; }
.ac-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Thumbnail kelas tampil utuh (atas–bawah tidak terpotong): tinggi mengikuti rasio gambar asli. */
.ac-card__thumb:not(.ac-card__thumb--empty) { aspect-ratio: auto; }
.ac-card__thumb:not(.ac-card__thumb--empty) img { display: block; height: auto; }
.ac-card__thumb .icon, .ac-row__thumb .icon, .ac-hero__img .icon { width: 36px; height: 36px; }
.ac-card__body > .ac-type { align-self: flex-start; } /* v6.35.1: label jenis di bawah poster agar poster terlihat utuh */
.ac-type { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--radius-full); background: var(--ux-gold-soft); color: #7a5410; font-size: 0.6875rem; font-weight: var(--weight-extrabold); }
.ac-type .icon { width: 12px; height: 12px; }
.ac-card__body { display: flex; flex-direction: column; gap: 6px; padding: var(--space-3); flex: 1; }
.ac-card__title { font-weight: var(--weight-extrabold); font-size: var(--text-sm); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ac-card__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--color-text-muted); font-size: var(--text-xs); }
.ac-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; }
.ac-price { color: #c2410c; font-weight: var(--weight-extrabold); }
.ac-person { display: flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: var(--weight-bold); min-width: 0; }
.ac-person span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; background: var(--ux-mint); color: var(--color-primary); font-size: var(--text-xs); font-weight: var(--weight-extrabold); }
.ac-avatar img { width: 100%; height: 100%; object-fit: cover; }

.ac-rows { display: flex; flex-direction: column; gap: var(--space-3); }
.ac-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--ux-card-shadow); color: var(--color-text); text-decoration: none; }
.ac-row:hover { text-decoration: none; border-color: #cfe3da; }
.ac-row__thumb { display: flex; align-items: center; justify-content: center; flex: none; width: 96px; height: 84px; border-radius: var(--radius-md); overflow: hidden; }
.ac-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ac-row__thumb:not(.ac-row__thumb--empty) { height: auto; align-self: flex-start; }
.ac-row__thumb:not(.ac-row__thumb--empty) img { display: block; height: auto; }
.ac-row__body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.ac-row__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ac-row__title { font-weight: var(--weight-extrabold); font-size: var(--text-sm); line-height: 1.3; }
.ac-row__meta { display: flex; align-items: center; gap: 6px; color: var(--color-text-muted); font-size: var(--text-xs); }
.ac-row__meta .icon { width: 14px; height: 14px; flex: none; }
.ac-row__cta { flex: none; padding: 8px 14px; border-radius: var(--radius-full); background: var(--color-primary); color: #fff; font-size: var(--text-xs); font-weight: var(--weight-extrabold); }
.ac-pill { padding: 2px 10px; border-radius: var(--radius-full); background: var(--ux-gold-soft); color: #9a4d0c; font-size: 0.6875rem; font-weight: var(--weight-extrabold); white-space: nowrap; }
.ac-pill--free { background: var(--ux-mint); color: var(--color-primary); }

.ac-mentors { display: flex; flex-direction: column; gap: var(--space-3); }
.ac-mentor { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--ux-card-shadow); color: var(--color-text); text-decoration: none; }
.ac-mentor:hover { text-decoration: none; }
.ac-mentor__photo .ac-avatar { width: 56px; height: 56px; font-size: var(--text-lg); }
.ac-mentor__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ac-mentor__name { font-weight: var(--weight-extrabold); }
.ac-mentor__title, .ac-mentor__meta { color: var(--color-text-muted); font-size: var(--text-xs); }
.ac-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ac-tag { padding: 1px 8px; border-radius: var(--radius-full); background: var(--ux-mint); color: var(--color-primary); font-size: 0.6875rem; font-weight: var(--weight-bold); }
.ac-mentor__price { display: flex; flex-direction: column; align-items: flex-end; flex: none; padding: 6px 10px; border-radius: var(--radius-md); background: #fff4e6; text-align: right; }
.ac-mentor__price small { color: var(--color-text-muted); font-size: 0.625rem; }
.ac-mentor__price strong { color: #c2410c; font-size: var(--text-sm); }
.ac-mentor > .icon { flex: none; width: 16px; height: 16px; color: var(--color-text-muted); }

/* Detail program */
.ac-detail { padding-top: 0; padding-bottom: calc(var(--space-12) + 72px); }
.ac-hero { position: relative; margin: 0 calc(-1 * var(--space-4)); }
.ac-hero__img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 10; max-height: 320px; object-fit: cover; }
/* Poster/thumbnail tampil UTUH selebar layar, tinggi mengikuti gambar asli (tanpa latar, tanpa terpotong). */
.ac-hero--photo .ac-hero__img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: fill; }
.ac-hero--photo + .ac-sheet { margin-top: 0; }
.ac-hero__btn { position: absolute; top: calc(var(--safe-top) + var(--space-3)); background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-sm); }
.ac-hero__btn--back { left: var(--space-3); }
.ac-hero__btn--share { right: var(--space-3); }
.ac-sheet { position: relative; margin-top: calc(-1 * var(--space-6)); padding: var(--space-5) var(--space-4) var(--space-4); border-radius: var(--radius-xl) var(--radius-xl) 0 0; background: var(--color-cream); }
.ac-sheet__badge { margin-bottom: var(--space-2); }
.ac-sheet__title { margin: 0; font-size: var(--text-2xl); font-weight: var(--weight-extrabold); line-height: 1.2; }
.ac-sheet__title:focus { outline: none; }
.ac-sheet__summary { margin: var(--space-2) 0 0; color: var(--color-text-muted); }
.ac-sheet__stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: var(--space-3) 0 0; font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.ac-sheet__stats span { display: inline-flex; align-items: center; gap: 6px; }
.ac-sheet__stats .icon { width: 16px; height: 16px; color: var(--color-primary); }
.ac-teacher { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--ux-card-shadow); }
.ac-teacher .ac-avatar { width: 52px; height: 52px; font-size: var(--text-lg); }
.ac-teacher__body { display: flex; flex-direction: column; }
.ac-teacher__body small { color: var(--color-text-muted); }
.ac-tabs { display: flex; gap: 4px; margin-top: var(--space-4); padding: 4px; border-radius: var(--radius-full); background: #efe9db; overflow-x: auto; scrollbar-width: none; }
.ac-tabs::-webkit-scrollbar { display: none; }
.ac-tabs__btn { flex: 1 0 auto; min-height: 40px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-full); background: transparent; color: var(--color-text); font: inherit; font-size: var(--text-sm); font-weight: var(--weight-bold); white-space: nowrap; cursor: pointer; }
.ac-tabs__btn[aria-selected="true"] { background: var(--color-primary); color: #fff; }
.ac-panel { margin-top: var(--space-3); }
.ac-sec { padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); }
.ac-sec__title { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); font-size: var(--text-lg); font-weight: var(--weight-extrabold); }
.ac-sec__title .icon { width: 20px; height: 20px; color: #c77d16; }
.ac-checks, .ac-curriculum { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.ac-checks li, .ac-curriculum li { display: flex; align-items: flex-start; gap: var(--space-2); }
.ac-checks__i { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ux-mint); color: var(--color-primary); }
.ac-checks__i .icon { width: 14px; height: 14px; }
.ac-curriculum__n { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--color-primary); color: #fff; font-size: var(--text-xs); font-weight: var(--weight-extrabold); }
.ac-package { padding: var(--space-4); border: 1px solid #f3dc9c; border-radius: var(--radius-lg); background: #fffaf0; }
.ac-package__name { margin: 0; font-weight: var(--weight-extrabold); }
.ac-package__price { margin: 4px 0 var(--space-2); color: #c2410c; font-size: var(--text-xl); font-weight: var(--weight-extrabold); }
.ac-cta { position: fixed; left: 0; right: 0; bottom: calc(var(--bottom-nav-height) + var(--safe-bottom)); z-index: 30; padding: var(--space-3) var(--space-4); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--color-border); box-shadow: 0 -6px 20px rgba(6, 68, 55, 0.08); }
.ac-cta > * { max-width: 560px; margin: 0 auto; }
.ac-buy { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.ac-buy__price { display: flex; flex-direction: column; }
.ac-buy__price small { color: var(--color-text-muted); font-size: var(--text-xs); }
.ac-buy__price strong { color: #c2410c; font-size: var(--text-xl); font-weight: var(--weight-extrabold); }
.ac-buy__price s { color: var(--color-text-muted); font-size: var(--text-xs); }
.ac-cta .enrolled-box { margin: 0; max-height: 40vh; overflow-y: auto; }
@media (min-width: 640px) { .ac-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ac-types { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ac-cta { left: 96px; bottom: 0; } }
@media (max-width: 480px) { .ac-typecard > .icon { display: none; } .ac-typecard { padding: var(--space-2) var(--space-3); } }
@media (max-width: 380px) { .ac-row__thumb { width: 76px; height: 72px; } .ac-mentor__price { display: none; } }

/* =========================================================
   Tahap 4 — Menu Lainnya & Mitra Bertumbuh
   ========================================================= */
.more2-profile { position: relative; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-xl); background: var(--ux-band); color: #fff; text-decoration: none; overflow: hidden; box-shadow: var(--shadow-md); }
.more2-profile:hover { text-decoration: none; }
.more2-profile .avatar { width: 60px; height: 60px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85); }
.more2-profile__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: 1; min-width: 0; }
.more2-profile__body strong { font-size: var(--text-lg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.more2-profile__badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 12px; border-radius: var(--radius-full); background: #fff; color: var(--color-primary); font-size: var(--text-xs); font-weight: var(--weight-extrabold); }
.more2-profile__badge.is-premium { background: var(--ux-gold); color: #3d2a00; }
.more2-profile__badge .icon { width: 14px; height: 14px; }
.more2-profile__leaf { position: absolute; right: 36px; bottom: -14px; color: rgba(255, 255, 255, 0.16); }
.more2-profile__leaf .icon { width: 84px; height: 84px; }
.more2-profile > .icon { position: relative; z-index: 1; flex: none; }
.more2-group { margin-top: var(--space-5); }
.more2-group__title { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); color: var(--color-primary); font-size: var(--text-lg); font-weight: var(--weight-extrabold); }
.more2-group__title .icon { width: 22px; height: 22px; }
.more2-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--ux-card-shadow); overflow: hidden; }
.more2-list li + li { border-top: 1px solid var(--color-border); }
.more2-row { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 64px; padding: var(--space-2) var(--space-3); border: 0; background: transparent; color: var(--color-text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.more2-row:hover { text-decoration: none; background: #f7faf8; }
.more2-row.is-soon { cursor: default; }
.more2-row__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--ux-mint); color: var(--color-primary); }
.more2-row__icon .icon { width: 22px; height: 22px; }
.more2-row__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.more2-row__label { font-weight: var(--weight-bold); }
.more2-row__desc { color: var(--color-text-muted); font-size: var(--text-xs); line-height: 1.35; }
.more2-row__chev { flex: none; display: inline-flex; color: var(--color-text-muted); }
.more2-row__chev .icon { width: 18px; height: 18px; }
.more2-logout { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); min-height: 56px; padding: 0 var(--space-4); border: 1px solid #f6c9c4; border-radius: var(--radius-lg); background: var(--color-danger-soft); color: var(--color-danger); font-weight: var(--weight-extrabold); text-decoration: none; }
.more2-logout:hover { text-decoration: none; filter: brightness(0.98); }
.more2-version { margin: var(--space-4) 0 0; color: var(--color-text-muted); font-size: var(--text-sm); }

/* Mitra Bertumbuh */
.aff-hero__pct { position: relative; z-index: 1; display: inline-flex; align-items: baseline; gap: var(--space-2); margin: var(--space-3) 0 0; }
.aff-hero__pct span { color: rgba(255, 255, 255, 0.85); font-size: var(--text-sm); }
.aff-hero__pct strong { padding: 4px 14px; border-radius: 14px; background: var(--ux-gold); color: #3d2a00; font-size: var(--text-2xl); font-weight: var(--weight-extrabold); }
.aff-join { margin-top: var(--space-5); gap: var(--space-2); }
.aff-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.aff-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--space-3) var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); text-align: center; }
.aff-steps__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ux-mint); color: var(--color-primary); }
.aff-steps__icon--gold { background: var(--ux-gold-soft); color: #b7791f; }
.aff-steps__icon .icon { width: 24px; height: 24px; }
.aff-steps__n { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--color-primary); color: #fff; font-size: var(--text-xs); font-weight: var(--weight-extrabold); }
.aff-steps strong { font-size: var(--text-sm); }
.aff-steps small { color: var(--color-text-muted); font-size: 0.6875rem; line-height: 1.3; }
.aff-books { display: flex; gap: var(--space-3); overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--space-4)); padding: 2px var(--space-4) var(--space-2); }
.aff-books::-webkit-scrollbar { display: none; }
.aff-book { position: relative; display: flex; flex-direction: column; gap: 6px; flex: 0 0 132px; }
.aff-book__cover { display: block; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--ux-card-shadow); }
.aff-book__cover .book-cover { width: 100%; }
.aff-book__pct { position: absolute; top: 108px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: var(--radius-full); background: var(--color-primary); color: #fff; font-size: 0.6875rem; font-weight: var(--weight-extrabold); white-space: nowrap; }
.aff-book__title { font-size: var(--text-xs); font-weight: var(--weight-bold); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aff-book__actions { display: flex; gap: 4px; }
.aff-book__actions .btn { flex: 1; padding: 0 6px; min-height: 32px; font-size: 0.6875rem; }
.aff-book__actions .icon { width: 14px; height: 14px; }
.aff-tabs { margin-top: var(--space-4); }
.aff2 .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-tile--gold { background: var(--ux-gold-soft); border-color: #f3dc9c; }
@media (min-width: 640px) { .aff2 .stat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* =========================================================
   Tahap 5 — Ulasan, Video Inspirasi, Promo & Event, Admin Konten
   ========================================================= */
.rv-line { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); color: var(--color-text-muted); }
.rv-line strong { color: var(--color-text); }
.rv-star { color: #f2b01e; font-size: 0.95em; }
.book-detail__rating { display: flex; justify-content: center; margin: 4px 0 0; min-height: 0; }
.book-detail__rating:empty { display: none; }
.book-detail__rating .rv-line { font-size: var(--text-sm); }
.rv-stars { display: inline-flex; gap: 1px; color: #d8dcd4; font-size: 0.95rem; letter-spacing: 0; }
.rv-stars .is-on { color: #f2b01e; }
.rv-summary { display: flex; align-items: center; gap: var(--space-5); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.rv-summary__big { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.rv-summary__big strong { font-size: 2.25rem; line-height: 1; }
.rv-summary__big span:last-child { color: var(--color-text-muted); font-size: var(--text-xs); }
.rv-bars { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.rv-bar { display: grid; grid-template-columns: 12px 1fr 24px; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-text-muted); }
.rv-bar progress { width: 100%; height: 6px; accent-color: #f2b01e; }
.rv-form { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--radius-lg); background: #fffaf0; border: 1px solid #f3dc9c; }
.rv-form textarea { width: 100%; }
.rv-form__title { margin: 0; font-weight: var(--weight-extrabold); }
.rv-pick { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rv-pick__opt { position: relative; cursor: pointer; }
.rv-pick__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rv-pick__opt span[aria-hidden] { font-size: 2rem; line-height: 1; color: #d8dcd4; }
.rv-pick__opt input:checked ~ span[aria-hidden], .rv-pick__opt:has(input:checked) ~ .rv-pick__opt span[aria-hidden] { color: #f2b01e; }
.rv-pick__opt input:focus-visible ~ span[aria-hidden] { outline: 2px solid var(--color-button); border-radius: 4px; }
.rv-note { display: flex; align-items: center; gap: 6px; margin-top: var(--space-3); }
.rv-note .icon { width: 16px; height: 16px; flex: none; }
.rv-list { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.rv-item { display: flex; gap: var(--space-3); }
.rv-item__body { flex: 1; min-width: 0; }
.rv-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.rv-item__text { margin: 4px 0 0; white-space: pre-line; }
.rv-badge { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: var(--radius-full); background: var(--color-primary-soft); color: var(--color-primary); font-size: var(--text-xs); font-weight: var(--weight-bold); }
.rv-badge .icon { width: 13px; height: 13px; }
.rv-cta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--radius-lg); background: #fffaf0; border: 1px solid #f3dc9c; }
.rv-cta p { display: flex; align-items: flex-start; gap: 6px; margin: 0; }
.rv-cta p .icon { flex: none; width: 18px; height: 18px; color: #f2b01e; }

.vid-rail { display: flex; gap: var(--space-3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--space-4)); padding: 4px var(--space-4) var(--space-3); scroll-padding-inline: var(--space-4); }
.vid-rail::-webkit-scrollbar { display: none; }
.vid-rail .vid-card { flex: 0 0 min(78%, 320px); scroll-snap-align: start; }
.vid-card { display: flex; flex-direction: column; gap: 6px; color: var(--color-text); text-decoration: none; }
.vid-card:hover { text-decoration: none; }
.vid-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #0d2a23; box-shadow: var(--ux-card-shadow); }
.vid-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vid-card__play { position: absolute; top: 50%; left: 50%; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--color-primary); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22); transition: transform 0.15s ease; }
.vid-card__play .icon { width: 18px; height: 18px; margin-left: 3px; fill: currentColor; stroke-linejoin: round; }
.vid-card:hover .vid-card__play, .vid-card:focus-visible .vid-card__play { transform: scale(1.08); }
.vid-card__dur { position: absolute; right: 8px; bottom: 8px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.75); color: #fff; font-size: var(--text-xs); font-weight: var(--weight-bold); }
.vid-card__label { position: absolute; left: 8px; top: 8px; padding: 2px 10px; border-radius: var(--radius-full); background: var(--ux-gold); color: #3d2a00; font-size: 0.6875rem; font-weight: var(--weight-extrabold); }
.vid-card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; padding: 0 2px; font-weight: var(--weight-bold); font-size: var(--text-sm); line-height: 1.35; }
.vid-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); margin-top: var(--space-3); }
@media (min-width: 640px) { .vid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.promo-list { display: flex; flex-direction: column; gap: var(--space-4); }
.promo-card { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--ux-card-shadow); overflow: hidden; }
.promo-card__img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.promo-card__img .icon { width: 40px; height: 40px; }
.promo-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); padding: var(--space-4); }
.promo-card__title { margin: 0; font-size: var(--text-lg); font-weight: var(--weight-extrabold); }
.promo-card__text { margin: 0; color: var(--color-text-muted); }
.promo-card__date { display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.promo-card__date .icon { width: 16px; height: 16px; color: var(--color-primary); }

.adm-cards { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.adm-card { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.adm-card.is-off { opacity: 0.65; }
.adm-card__thumb { flex: none; width: 96px; height: 56px; border-radius: 8px; object-fit: cover; background: #eef1ec; display: inline-flex; align-items: center; justify-content: center; color: var(--color-text-muted); }
.adm-card__thumb--contain { object-fit: contain; }
.adm-card__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.adm-card__body span { color: var(--color-text-muted); font-size: var(--text-xs); }
.adm-card__body p { margin: 4px 0 0; font-size: var(--text-sm); }
.rv-progress::-webkit-progress-value { background: #f2b01e; }
.rv-progress::-moz-progress-bar { background: #f2b01e; }

/* Header Beranda: sapaan, tombol Premium & lonceng dalam satu baris (nama boleh 2 baris) */
.ux-home-top .home-hello__who { gap: 10px; }
.ux-home-top .home-hello__who .avatar { width: 46px; height: 46px; font-size: var(--text-base); }
.ux-home-top .home-hello__name { font-size: var(--text-lg); line-height: 1.25; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ux-home-top .home-hello__salam { font-size: var(--text-xs); }
.ux-home-top .ux-member { min-height: 32px; padding: 0 10px; gap: 4px; }
.ux-home-top .ux-member .icon { width: 15px; height: 15px; }
.ux-home-top .home-hello__bell { width: 40px; height: 40px; min-width: 40px; }
.ux-home-top .home-hello__bell .icon { width: 20px; height: 20px; }

/* ===== Editor Tampilan Beranda: pengaturan khusus Beranda (.hv) ===== */
.ux-shortcuts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hv-sub { margin: calc(-1 * var(--space-1)) 0 var(--space-2); }
.hv-preview-bar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin: 0 calc(-1 * var(--space-4)) var(--space-2); padding: var(--space-2) var(--space-4); background: #fff4d6; border-bottom: 1px solid #f0d68a; color: #5a4100; font-size: var(--text-sm); }
.hv-preview-bar[hidden] { display: none; }
.hv-preview-bar > span { display: inline-flex; align-items: center; gap: 6px; }
.hv-preview-bar .icon { width: 18px; height: 18px; }
.hv-benefits { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
.hv-benefit { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); color: var(--color-text); text-decoration: none; }
a.hv-benefit:hover { text-decoration: none; border-color: rgba(7, 91, 75, 0.35); }
.hv-benefit__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--ux-mint); color: var(--color-primary); }
.hv-benefit__icon .icon { width: 22px; height: 22px; }
.hv-benefit__img { flex: none; width: 56px; height: 56px; border-radius: var(--radius-md); object-fit: cover; }
.hv-benefit__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hv-benefit__title { font-weight: var(--weight-extrabold); line-height: 1.3; }
.hv-benefit__text { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.45; }
.hv-benefit__cta { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--color-primary); }
.hv-benefit__cta .icon { width: 14px; height: 14px; }
.ux-banner__img { flex: none; align-self: center; width: 96px; height: 96px; border-radius: var(--radius-lg); object-fit: cover; }
@media (min-width: 560px) { .hv-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Font Beranda (hanya di dalam .hv — tidak mengubah halaman lain). Atribut hanya dipasang bila bukan "normal". */
.hv[data-hfont="jakarta"] { --hv-font: 'Plus Jakarta Sans', system-ui, sans-serif; }
.hv[data-hfont="inter"] { --hv-font: 'Inter TBS', system-ui, sans-serif; }
.hv[data-hfont="poppins"] { --hv-font: 'Poppins TBS', system-ui, sans-serif; }
.hv[data-hfont="lora"] { --hv-font: 'Lora', Georgia, serif; }
.hv[data-hfont="sistem"] { --hv-font: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
.hv[data-hfont] { font-family: var(--hv-font); --font-heading: var(--hv-font); }
.hv[data-hfont] .btn, .hv[data-hfont] input { font-family: var(--hv-font); }
.hv[data-ht="s"] { --hv-t: 0.88; } .hv[data-ht="m"] { --hv-t: 1.06; } .hv[data-ht="l"] { --hv-t: 1.12; }
.hv[data-hs="s"] { --hv-s: 0.9; } .hv[data-hs="m"] { --hv-s: 1.1; } .hv[data-hs="l"] { --hv-s: 1.2; }
.hv[data-hx="s"] { --hv-x: 0.92; } .hv[data-hx="m"] { --hv-x: 1.08; } .hv[data-hx="l"] { --hv-x: 1.16; }
.hv[data-hb="s"] { --hv-b: 0.92; } .hv[data-hb="m"] { --hv-b: 1.08; } .hv[data-hb="l"] { --hv-b: 1.16; }
.hv[data-ht] .hero__title { font-size: calc(clamp(1.45rem, 6.6vw, 2.6rem) * var(--heading-scale, 1) * var(--hv-t)); }
.hv[data-ht] .ux-banner__title { font-size: calc(var(--text-lg) * var(--hv-t)); }
.hv[data-hs] .ux-sec-head__title { font-size: calc(var(--text-lg) * var(--heading-scale, 1) * var(--hv-s)); }
.hv[data-hs] .hero__eyebrow { font-size: calc(0.6875rem * var(--hv-s)); }
.hv[data-hs] .hv-benefit__title { font-size: calc(var(--text-base) * var(--hv-s)); }
.hv[data-hx] .hero__text, .hv[data-hx] .ux-banner__text, .hv[data-hx] .ux-banner__points, .hv[data-hx] .home-section-note, .hv[data-hx] .hv-benefit__text { font-size: calc(var(--text-sm) * var(--hv-x)); }
.hv[data-hb] .hero__cta, .hv[data-hb] .ux-banner__cta, .hv[data-hb] .read-card__go, .hv[data-hb] .hv-benefit__cta { font-size: calc(var(--text-sm) * var(--hv-b)); }
/* Bagian tambahan buatan Super Admin */
.hv-text { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.hv-text--mint { background: #e3f6f1; }
.hv-text--cream { background: #fbf3e2; border-color: #f0dfbb; }
.hv-text--green { background: linear-gradient(135deg, #0b7a5f, #064437); border-color: transparent; color: #fff; }
.hv-text__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.8); color: var(--color-primary); }
.hv-text__icon .icon { width: 22px; height: 22px; }
.hv-text__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); }
.hv-text__title { margin: 0; overflow-wrap: anywhere; }
.hv-text__text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.hv-text--green .hv-text__title, .hv-text--green .hv-text__text { color: #fff; }
.hv-text--green .hv-text__cta { background: var(--ux-gold); color: #3d2a00; }
.hv-text__cta { margin-top: var(--space-1); text-decoration: none; }
.hv-text__cta:hover { text-decoration: none; }
.hv-custom-banner .ux-sec-head { margin-bottom: var(--space-2); }

/* =====================================================================
   Beranda versi HP lebih padat (lebar < 600px). Desktop & tablet tidak berubah.
   Hanya di dalam .hv (Beranda & pratinjau editor). Teks kecil minimal ±12px.
   ===================================================================== */
@media (max-width: 599px) {
  .hv { --hvc-gap: var(--space-4); }
  /* Header hijau */
  .hv .ux-home-top { padding: calc(var(--safe-top) + var(--space-3)) var(--space-4) var(--space-3); }
  .hv .ux-home-top .home-hello__who { gap: 8px; }
  .hv .ux-home-top .home-hello__who .avatar { width: 40px; height: 40px; font-size: var(--text-sm); }
  .hv .ux-home-top .home-hello__name { font-size: calc(var(--text-base) * var(--heading-scale, 1)); -webkit-line-clamp: 1; }
  .hv .ux-home-top .home-hello__salam { font-size: 0.75rem; }
  .hv .ux-home-top .ux-member { min-height: 28px; padding: 0 8px; font-size: 0.75rem; }
  .hv .ux-home-top .ux-member .icon { width: 14px; height: 14px; }
  .hv .ux-home-top .home-hello__bell { width: 36px; height: 36px; min-width: 36px; }
  .hv .ux-home-top .home-hello__bell .icon { width: 18px; height: 18px; }
  .hv .ux-home-top .home-search { margin-top: var(--space-3); }
  .hv .ux-search { min-height: 44px; padding-left: var(--space-3); }
  .hv .ux-search__input { font-size: var(--text-sm); }

  /* Jarak antarbagian */
  .hv .hv-section { margin-top: var(--hvc-gap); }
  .hv .hv-sections > .ux-shortcuts { margin-top: var(--space-3); }
  .hv .ux-sec-head { margin-bottom: var(--space-2); }
  .hv .ux-sec-head__title { font-size: calc(var(--text-base) * var(--heading-scale, 1)); gap: 6px; }
  .hv .ux-sec-head__title .icon, .hv .ux-sec-head__icon .icon { width: 18px; height: 18px; }
  .hv .ux-sec-head__link { font-size: 0.8125rem; }
  .hv .home-section-note { font-size: 0.8125rem; }
  .hv .hv-note, .hv .hv-sub { margin-bottom: var(--space-2); }

  /* Banner utama: lebih pendek */
  .hv .hero__slide { height: clamp(168px, 44vw, 210px); min-height: 0; }
  .hv .hero__body { padding: var(--space-3) var(--space-4) 26px; gap: 2px; max-width: 62%; }
  .hv .hero__eyebrow { font-size: 0.625rem; }
  .hv .hero__title { font-size: calc(clamp(1.2rem, 5.6vw, 1.55rem) * var(--heading-scale, 1)); }
  .hv .hero__text { font-size: 0.75rem; line-height: 1.3; }
  .hv .hero__cta { margin-top: 6px; padding: 6px 12px; font-size: 0.75rem; gap: 6px; }
  .hv .hero__cta .icon { width: 14px; height: 14px; }
  .hv .hero__dots { bottom: 8px; }

  /* Menu utama */
  .hv .ux-shortcuts { gap: 6px; }
  .hv .ux-shortcut { min-height: 0; gap: 4px; padding: var(--space-2) 2px; border-radius: 14px; }
  .hv .ux-shortcut__icon { width: 34px; height: 34px; border-radius: 11px; }
  .hv .ux-shortcut__icon .icon { width: 19px; height: 19px; }
  .hv .ux-shortcut__label { font-size: 0.6875rem; }

  /* Kartu Panel Admin */
  .hv .admin-card { padding: var(--space-3); border-radius: 16px; }
  .hv .admin-card__icon { width: 44px; height: 44px; border-radius: 12px; }
  .hv .admin-card__icon .icon { width: 24px; height: 24px; }
  .hv .admin-card__title { font-size: var(--text-base); }
  .hv .admin-card__text { font-size: 0.8125rem; }
  .hv .admin-card__btn { margin-top: var(--space-2); min-height: 42px; }

  /* Lanjutkan Membaca */
  .hv .read-card { flex-basis: 86%; min-width: 0; padding: var(--space-2); gap: var(--space-2); border-radius: 14px; }
  .hv .read-card__cover .book-cover { width: 56px; }
  .hv .read-card__title { font-size: var(--text-sm); }
  .hv .read-card__author { font-size: 0.75rem; }
  .hv .read-card__progress { margin-top: 4px; }
  .hv .read-card__actions { padding-top: 4px; }
  .hv .read-card__actions .btn { min-height: 34px; font-size: 0.8125rem; }
  .hv .read-card__more { width: 32px; height: 32px; }

  /* Rekomendasi & rak buku: ±3,5 buku terlihat */
  .hv .hv-shelf { gap: var(--space-2); padding-bottom: var(--space-2); }
  .hv .rec-card { width: max(84px, calc((100vw - 32px - 24px) / 4.2)); }
  .hv .rec-card .book-cover { width: 100%; }
  .hv .rec-card__badge { font-size: 0.625rem; padding: 1px 8px; }
  .hv .rec-card__fav { top: 6px; right: 6px; width: 26px; height: 26px; }
  .hv .rec-card__fav .icon { width: 14px; height: 14px; }

  /* Banner Academy & Mitra */
  .hv .ux-banner { margin-top: var(--hvc-gap); padding: var(--space-3) var(--space-4); border-radius: 18px; gap: var(--space-2); }
  .hv .ux-banner__copy { gap: 6px; }
  .hv .ux-banner__title { font-size: var(--text-base); }
  .hv .ux-banner__text, .hv .ux-banner__points { font-size: 0.75rem; }
  .hv .ux-banner__points { gap: 2px; }
  .hv .ux-banner__points .icon { width: 14px; height: 14px; }
  .hv .ux-pill { font-size: 0.6875rem; }
  .hv .ux-banner__cta { min-height: 34px; padding: 0 var(--space-3); font-size: 0.8125rem; margin-top: 2px; }
  .hv .ux-banner__art { width: 56px; height: 56px; border-radius: 16px; }
  .hv .ux-banner__art .icon { width: 28px; height: 28px; }
  .hv .ux-banner__big { font-size: var(--text-base); padding: 4px 10px; }
  .hv .ux-banner__img { width: 72px; height: 72px; }

  /* Topik populer */
  .hv .ux-topics { gap: 6px; }
  .hv .ux-topic { min-height: 0; gap: 4px; padding: var(--space-2) 4px; border-radius: 14px; }
  .hv .ux-topic__icon .icon { width: 20px; height: 20px; }
  .hv .ux-topic__label { font-size: 0.6875rem; }

  /* Artikel */
  .hv .art-card { flex-basis: 72%; padding: 6px; gap: var(--space-2); border-radius: 14px; }
  .hv .art-card__img { width: 72px; height: 60px; border-radius: 8px; }
  .hv .art-card__title { font-size: 0.8125rem; -webkit-line-clamp: 2; }

  /* Video, kartu info, pengumuman */
  .hv .vid-rail .vid-card { flex-basis: 72%; }
  .hv .vid-card__title { font-size: 0.8125rem; }
  .hv .hv-benefit { padding: var(--space-2) var(--space-3); gap: var(--space-2); }
  .hv .hv-benefit__icon { width: 36px; height: 36px; }
  .hv .hv-benefit__icon .icon { width: 18px; height: 18px; }
  .hv .hv-benefit__title { font-size: var(--text-sm); }
  .hv .hv-benefit__text { font-size: 0.75rem; }
  .hv .hv-text { padding: var(--space-3); gap: var(--space-2); }
  .hv .hv-text__icon { width: 36px; height: 36px; }
  .hv .hv-text__title { font-size: var(--text-base); }
  .hv .mini-row { padding-top: var(--space-2); padding-bottom: var(--space-2); }

  /* Pilihan ukuran huruf Beranda (Editor → Font) tetap berlaku di atas ukuran padat */
  .hv[data-ht] .hero__title { font-size: calc(clamp(1.2rem, 5.6vw, 1.55rem) * var(--heading-scale, 1) * var(--hv-t)); }
  .hv[data-ht] .ux-banner__title { font-size: calc(var(--text-base) * var(--hv-t)); }
  .hv[data-hs] .ux-sec-head__title { font-size: calc(var(--text-base) * var(--heading-scale, 1) * var(--hv-s)); }
  .hv[data-hx] .hero__text, .hv[data-hx] .ux-banner__text, .hv[data-hx] .ux-banner__points, .hv[data-hx] .hv-benefit__text { font-size: calc(0.75rem * var(--hv-x)); }
  .hv[data-hx] .home-section-note { font-size: calc(0.8125rem * var(--hv-x)); }
  .hv[data-hb] .hero__cta { font-size: calc(0.75rem * var(--hv-b)); }
  .hv[data-hb] .ux-banner__cta { font-size: calc(0.8125rem * var(--hv-b)); }
}

/* =====================================================================
   Halaman lain versi HP lebih padat (lebar < 600px). Desktop & tablet tidak berubah.
   Beranda ("/") tidak ikut — sudah punya aturan padat sendiri di atas.
   Semua ukuran memakai rem, jadi skala 92% merapatkan teks, jarak, & tombol
   secara seimbang. Pilihan "Ukuran teks" pengguna (besar/sangat besar) tetap berlaku.
   ===================================================================== */
@media (max-width: 599px) {
  html:not([data-route="/"]) { font-size: calc(var(--base-size, 16px) * 0.92); }
  html[data-text-size="besar"]:not([data-route="/"]) { font-size: calc(var(--base-size, 16px) * 0.92 * 1.125); }
  html[data-text-size="sangat-besar"]:not([data-route="/"]) { font-size: calc(var(--base-size, 16px) * 0.92 * 1.25); }
  html:not([data-route="/"]) { --control-height: 46px; --header-height: 52px; }

  /* Header hijau halaman */
  html:not([data-route="/"]) .ux-hero { padding-bottom: var(--space-4); }
  html:not([data-route="/"]) .ux-hero__title { font-size: calc(var(--text-xl) * var(--heading-scale, 1)); }
  html:not([data-route="/"]) .ux-hero__text { margin-top: 4px; font-size: var(--text-sm); line-height: 1.45; }
  html:not([data-route="/"]) .ux-hero__art { width: 84px; height: 72px; }
  html:not([data-route="/"]) .ux-hero__art--icon { width: 64px; height: 64px; border-radius: 18px; }
  html:not([data-route="/"]) .ux-hero__art--icon .icon { width: 32px; height: 32px; }

  /* Kartu angka admin */
  html:not([data-route="/"]) .adm-stat { padding: var(--space-2); }
  html:not([data-route="/"]) .adm-stat__icon { width: 32px; height: 32px; border-radius: 10px; }
  html:not([data-route="/"]) .adm-stat__icon .icon { width: 17px; height: 17px; }
  html:not([data-route="/"]) .adm-stat__value { font-size: var(--text-lg); }

  /* Tombol kecil & lembar bawah */
  html:not([data-route="/"]) .btn--sm { min-height: 40px; }
  html:not([data-route="/"]) .sheet__title { font-size: var(--text-lg); }
}
/* Label buku yang disematkan Super Admin */
.ux-pin { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 2px 8px; border-radius: var(--radius-full); background: var(--color-primary); color: #fff; font-size: 0.6875rem; font-weight: var(--weight-bold); }
.ux-pin .icon { width: 11px; height: 11px; }

/* ===================== Konsultasi dengan Penulis (kp-) ===================== */
.shell:has(.kp-page) .app-header { background: var(--color-primary-dark); border-bottom-color: transparent; color: #fff; }
.shell:has(.kp-page) .app-header .app-header__title, .shell:has(.kp-page) .app-header .icon-btn { color: #fff; }
.kp-hero { position: relative; display: flex; align-items: stretch; gap: var(--space-3); overflow: hidden; margin: 0 0 var(--space-6); padding: var(--space-5); border-radius: var(--radius-xl); background: linear-gradient(120deg, #fbf6ea 0%, #f1ead8 55%, #e9f2e6 100%); box-shadow: var(--ux-card-shadow); }
.kp-hero__copy { position: relative; z-index: 1; flex: 1 1 60%; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.kp-hero__title { margin: 0; font-size: clamp(1.35rem, 5.4vw, 1.75rem); line-height: 1.15; color: var(--color-primary-dark); }
.kp-hero__text { margin: 0; color: var(--color-text); line-height: 1.45; }
.kp-hero__art { flex: 0 1 42%; min-width: 0; max-width: 46%; align-self: center; object-fit: contain; max-height: 190px; }
.kp-hero__wa { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2); border: 1px solid #bfe0c9; border-radius: var(--radius-lg); background: #e4f4e8; color: var(--color-primary-dark); font-weight: var(--weight-bold); line-height: 1.2; text-decoration: none; }
.kp-wa-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #25a35a; color: #fff; }
.kp-wa-icon .icon { width: 22px; height: 22px; }
.kp-title { margin: 0; font-size: var(--text-xl, 1.3rem); color: var(--color-primary-dark); }
.kp-sub { margin: 4px 0 var(--space-4); color: var(--color-text-muted); }
.kp-list { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.kp-card { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--ux-card-shadow); }
.kp-card .avatar--lg { flex: none; width: 64px; height: 64px; }
.kp-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kp-card__name { font-size: var(--text-lg); line-height: 1.25; overflow-wrap: anywhere; }
.kp-card__field { font-size: var(--text-sm); line-height: 1.35; color: var(--color-text-muted); overflow-wrap: anywhere; }
.kp-card__wa { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--space-4); border: 1.5px solid var(--color-primary); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-primary-dark); font-weight: var(--weight-bold); font-size: var(--text-sm); white-space: nowrap; text-decoration: none; }
.kp-card__wa .icon { width: 20px; height: 20px; color: var(--color-primary); }
.kp-card__wa:hover { background: var(--ux-mint); }
.kp-note { margin: var(--space-6) 0 var(--space-4); padding: var(--space-4); border: 1px solid #cfe6db; border-radius: var(--radius-lg); background: #e8f3ee; }
.kp-note__title { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); font-weight: var(--weight-bold); color: var(--color-primary-dark); }
.kp-note__title .icon { width: 20px; height: 20px; }
.kp-note ul { margin: 0; padding-left: 1.3em; color: var(--color-text); line-height: 1.55; }
@media (max-width: 380px) {
  .kp-card { flex-wrap: wrap; }
  .kp-card__wa { flex: 1 1 100%; justify-content: center; }
}

/* Banner Academy / Mitra dengan gambar unggahan: tampil seperti Banner atas —
   gambar penuh TANPA lapisan gelap, teks gelap di sisi kiri (siapkan gambar dengan sisi kiri lapang). */
.ux-banner--photo { overflow: hidden; isolation: isolate; align-items: center; min-height: clamp(210px, 50vw, 340px); padding: var(--space-5) var(--space-5); background: #f1dfbf; color: #0d2f27; box-shadow: 0 10px 28px rgba(60, 38, 14, 0.16); }
.ux-banner--photo::after { display: none; }
.ux-banner--photo::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 62%; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.62) 50%, rgba(255, 255, 255, 0) 100%); }
.ux-banner__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.ux-banner--photo .ux-banner__copy { position: relative; z-index: 1; max-width: 64%; gap: var(--space-2); }
.ux-banner--photo .ux-banner__title { color: #0d2f27; }
.ux-banner--photo .ux-banner__text, .ux-banner--photo .ux-banner__points { color: #1d3a32; }
.ux-banner--photo .ux-banner__text strong { color: #8a5a00; }
.ux-banner--photo .ux-banner__points .icon { color: var(--color-primary); }
.ux-banner--photo .ux-banner__cta { margin-top: var(--space-2); background: linear-gradient(135deg, #0b7a5f, #064437); color: #fff; }
@media (max-width: 599px) {
  .hv .ux-banner--photo { padding: var(--space-4) var(--space-4); }
  .hv .ux-banner--photo .ux-banner__copy { max-width: 70%; gap: 6px; }
  .hv .ux-banner--photo .ux-banner__cta { margin-top: 6px; }
}

/* =====================================================================
   Konsultasi & Pendampingan (/konsultasi)
   ===================================================================== */
.cp-hero { align-items: center; }
.cp-eyebrow { display: inline-flex; padding: 4px 12px; border-radius: var(--radius-full); background: #dcefe3; color: var(--color-primary-dark); font-size: 0.75rem; font-weight: var(--weight-bold); letter-spacing: 0.06em; text-transform: uppercase; }
.cp-hero { padding-right: var(--space-3); }
.cp-hero__title { font-size: clamp(1.35rem, 5.8vw, 1.85rem); }
.cp-hero .kp-hero__text { font-size: var(--text-sm); }
.cp-hero__art { flex: 0 0 42%; width: 42%; max-width: 42%; height: auto; max-height: 220px; align-self: flex-end; margin-bottom: calc(-1 * var(--space-2)); }
@media (min-width: 600px) { .cp-hero .kp-hero__text { font-size: var(--text-base); } .cp-hero__art { flex-basis: 36%; width: 36%; max-width: 280px; } }
.cp-last { display: flex; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-5); padding: var(--space-3) var(--space-4); border: 1px solid #cfe6db; border-radius: var(--radius-lg); background: var(--color-surface); color: var(--color-text); text-decoration: none; box-shadow: var(--ux-card-shadow); }
.cp-last:hover { text-decoration: none; border-color: var(--color-primary); }
.cp-last__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--ux-mint); color: var(--color-primary); }
.cp-last__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cp-last__body span { font-size: var(--text-sm); color: var(--color-text-muted); }
.cp-last > .icon:last-child { flex: none; color: var(--color-primary); }

.cp-steps { position: relative; display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.cp-step { position: relative; display: flex; align-items: center; gap: var(--space-3); }
.cp-step:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 34px; bottom: calc(-1 * var(--space-3)); width: 2px; background: #b9d8c8; }
.cp-step__num { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--color-primary-dark); color: #fff; font-weight: var(--weight-bold); }
.cp-step__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--ux-mint); color: var(--color-primary); }
.cp-step__icon .icon { width: 24px; height: 24px; }
.cp-step__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--ux-card-shadow); line-height: 1.4; }
.cp-step__body strong { color: var(--color-primary-dark); }
.cp-step__body span { font-size: var(--text-sm); color: var(--color-text-muted); }
.cp-step__icon { display: none; }
@media (min-width: 420px) { .cp-step__icon { display: inline-flex; } }

.cp-form-card { margin: var(--space-6) 0; padding: var(--space-5) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--ux-card-shadow); scroll-margin-top: 80px; }
.cp-form-card__title { margin: 0; font-size: var(--text-xl, 1.3rem); color: var(--color-primary-dark); }
.cp-form-card__text { margin: 6px 0 var(--space-4); color: var(--color-text-muted); line-height: 1.45; }
.cp-form { display: flex; flex-direction: column; gap: var(--space-5); }
.cp-name { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-lg); background: #f6f1e4; }
.cp-name__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; overflow-wrap: anywhere; }
.cp-name__label { font-size: var(--text-xs, 0.75rem); color: var(--color-text-muted); }
.cp-name__hint { flex: none; font-size: var(--text-xs, 0.75rem); color: var(--color-text-muted); }
.cp-q { margin: 0; padding: 0; border: 0; min-width: 0; }
.cp-q__legend { display: block; margin: 0 0 var(--space-3); padding: 0; font-weight: var(--weight-bold); color: var(--color-text); line-height: 1.35; }
.cp-optional { font-weight: var(--weight-regular, 400); color: var(--color-text-muted); }
.cp-options { display: grid; gap: var(--space-2); }
.cp-options--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.cp-options--list { grid-template-columns: minmax(0, 1fr); }
.cp-option { position: relative; display: block; cursor: pointer; }
.cp-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cp-option__box { display: flex; align-items: center; gap: var(--space-2); min-height: 48px; height: 100%; padding: var(--space-2) var(--space-3); border: 1.5px solid var(--color-border); border-radius: var(--radius-md, 12px); background: var(--color-surface); line-height: 1.3; transition: border-color 0.15s, background 0.15s; }
.cp-option__dot { flex: none; width: 20px; height: 20px; border: 2px solid #9fb5aa; border-radius: 50%; background: #fff; }
.cp-option input:checked + .cp-option__box { border-color: var(--color-primary); background: var(--ux-mint); font-weight: var(--weight-semibold); color: var(--color-primary-dark); }
.cp-option input:checked + .cp-option__box .cp-option__dot { border-color: var(--color-primary); box-shadow: inset 0 0 0 4px #fff; background: var(--color-primary); }
.cp-option input:focus-visible + .cp-option__box { outline: 3px solid rgba(8, 122, 97, 0.35); outline-offset: 2px; }
.cp-q.has-error .cp-option__box, .cp-q.has-error .field__textarea { border-color: var(--color-danger, #c0392b); }
.cp-q .field__error:empty { display: none; }
.cp-q .field__error { margin-top: var(--space-2); }

.cp-coach { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-4); border: 1px solid #cfe6db; border-radius: var(--radius-xl); background: linear-gradient(135deg, #eef7f1, #e3f1e8); }
.cp-coach__head { display: flex; align-items: flex-start; gap: var(--space-3); }
.cp-coach__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 56px; height: 56px; border-radius: 16px; background: #fff; color: var(--color-primary); box-shadow: var(--ux-card-shadow); }
.cp-coach__icon .icon { width: 28px; height: 28px; }
.cp-coach__art { flex: none; width: 84px; height: 84px; object-fit: contain; }
.cp-coach__copy { flex: 1; min-width: 0; }
.cp-coach__title { margin: 0 0 4px; font-size: var(--text-lg); color: var(--color-primary-dark); }
.cp-coach__text { margin: 0 0 var(--space-2); color: var(--color-text); line-height: 1.45; }
.cp-coach__meta { display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.cp-coach__meta .icon { width: 18px; height: 18px; color: #25a35a; }
.cp-coach__btn { display: flex; align-items: center; justify-content: center; gap: var(--space-2); width: 100%; min-height: 52px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-full); background: linear-gradient(135deg, #0b7a5f, #064437); color: #fff; font: inherit; font-weight: var(--weight-bold); cursor: pointer; box-shadow: 0 8px 18px rgba(6, 68, 55, 0.22); }
.cp-coach__btn .icon { width: 20px; height: 20px; }
.cp-coach__soon { display: flex; align-items: center; gap: var(--space-2); margin: 0; padding: var(--space-3); border-radius: var(--radius-lg); background: #fff7e0; color: #6b4c00; line-height: 1.4; }
.cp-coach__soon .icon { flex: none; width: 20px; height: 20px; }

.cp-role { align-self: flex-start; padding: 2px 10px; border-radius: var(--radius-full); background: var(--ux-mint); color: var(--color-primary-dark); font-size: var(--text-xs, 0.75rem); font-weight: var(--weight-bold); }
.cp-author { align-items: flex-start; flex-wrap: wrap; }
.cp-author__summary { font-size: var(--text-sm); line-height: 1.4; color: var(--color-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-author .kp-card__wa { flex: 1 1 100%; justify-content: center; cursor: pointer; font: inherit; font-weight: var(--weight-bold); font-size: var(--text-sm); }
@media (min-width: 520px) { .cp-author { flex-wrap: nowrap; align-items: center; } .cp-author .kp-card__wa { flex: none; } }

.cp-result__title { margin: 0; font-size: clamp(1.4rem, 6vw, 1.8rem); color: var(--color-primary-dark); }
.cp-summary { margin: 0 0 var(--space-5); padding: var(--space-4); border-radius: var(--radius-xl); background: #f6f1e4; border: 1px solid #eadfc6; }
.cp-summary__title { margin: 0 0 var(--space-3); font-size: var(--text-base, 1rem); color: var(--color-primary-dark); }
.cp-summary__list { display: grid; gap: var(--space-3); margin: 0; }
.cp-summary__list div { min-width: 0; }
.cp-summary__list dt { font-size: var(--text-xs, 0.75rem); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.cp-summary__list dd { margin: 2px 0 0; font-weight: var(--weight-semibold); line-height: 1.4; overflow-wrap: anywhere; }
.cp-summary__story dd { font-weight: var(--weight-regular, 400); white-space: pre-line; }
.cp-books { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.cp-book { display: flex; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--ux-card-shadow); }
.cp-book__cover { flex: none; align-self: flex-start; }
.cp-book__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cp-book__cat { align-self: flex-start; padding: 2px 10px; border-radius: var(--radius-full); background: #fbefd2; color: #7a5200; font-size: var(--text-xs, 0.75rem); font-weight: var(--weight-bold); }
.cp-book__title { margin: 0; font-size: var(--text-base, 1rem); line-height: 1.3; overflow-wrap: anywhere; }
.cp-book__author { font-size: var(--text-sm); color: var(--color-text-muted); }
.cp-book__desc { margin: 0; font-size: var(--text-sm); line-height: 1.45; color: var(--color-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cp-book__reason { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: var(--text-xs, 0.75rem); line-height: 1.4; color: var(--color-primary-dark); }
.cp-book__reason .icon { flex: none; width: 14px; height: 14px; margin-top: 1px; color: #c99a2e; }
.cp-book__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.cp-book__actions .btn { flex: 1 1 120px; }
.cp-empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: var(--space-5) var(--space-4); border: 1px dashed #cdbf9f; border-radius: var(--radius-xl); background: var(--color-surface); text-align: center; line-height: 1.5; }
.cp-empty p { margin: 0; }
.cp-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ux-mint); color: var(--color-primary); }
.cp-empty__icon .icon { width: 28px; height: 28px; }
.cp-result__edit { margin-top: var(--space-4); }

/* Menu Utama: Promo & Event — ikon hadiah oranye hangat */
.ux-tone--promo { background: linear-gradient(160deg, #fff4e0, #ffe3b8); color: #ef7d10; }
.ux-tone--promo .icon { stroke-width: 2.2; }

/* =====================================================================
   Marketing Kit Affiliate (Tahap 15) — admin & mitra
   ===================================================================== */
.mk-admin { display: flex; flex-direction: column; gap: var(--space-4); }
.mk-banner { position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 132px; padding: var(--space-4); border-radius: var(--radius-lg); background: linear-gradient(120deg, #e3f3ea 0%, #f1f8f2 55%, #fbf6e4 100%); border: 1px solid #d6eadf; overflow: hidden; }
.mk-banner__text { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; }
.mk-banner__title { margin: 0; color: #0b2e26; font-size: var(--text-xl); font-weight: var(--weight-extrabold); line-height: 1.2; }
.mk-banner__desc { margin: 6px 0 0; color: #33463f; font-size: var(--text-sm); line-height: 1.45; }
.mk-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 3px 10px; border-radius: var(--radius-full); background: #fff; border: 1px solid #f0d78f; color: #6b4a00; font-size: 0.75rem; font-weight: var(--weight-bold); }
.mk-eyebrow .icon { width: 14px; height: 14px; color: #b7791f; }
.mk-banner__img { flex: none; width: 112px; height: 112px; object-fit: contain; }
.mk-banner__art { position: relative; flex: none; width: 112px; height: 104px; }
.mk-banner__tile { position: absolute; display: inline-flex; align-items: center; justify-content: center; border-radius: 16px; box-shadow: 0 6px 14px rgba(6, 68, 55, 0.14); }
.mk-banner__tile .icon { width: 26px; height: 26px; }
.mk-banner__tile--folder { left: 6px; bottom: 0; width: 70px; height: 56px; background: #f6c445; color: #8a5a00; }
.mk-banner__tile--image { left: 0; top: 4px; width: 50px; height: 46px; background: #fff; color: #1f9d55; transform: rotate(-8deg); }
.mk-banner__tile--play { left: 42px; top: 0; width: 50px; height: 46px; background: #0e6b5a; color: #fff; transform: rotate(6deg); }
.mk-banner__tile--play .icon { fill: currentColor; }
.mk-banner__tile--mega { right: 0; bottom: 8px; width: 46px; height: 46px; border-radius: 50%; background: #fff4d6; color: #c77d0a; }

.mk-cats .adm-tabs { margin-top: 0; }
.mk-cats .adm-tab { flex: 0 0 auto; }

.mk-rows { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.mk-row { display: flex; align-items: stretch; gap: 4px; padding: var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--ux-card-shadow); }
.mk-row__main { display: flex; flex: 1 1 auto; align-items: center; gap: var(--space-3); min-width: 0; padding: 0; border: 0; background: none; color: var(--color-text); font: inherit; text-align: left; cursor: pointer; }
.mk-row__thumb { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 96px; height: 76px; border-radius: 12px; overflow: hidden; background: #eef3ee; }
.mk-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mk-row__thumb .icon { width: 28px; height: 28px; }
.mk-row__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mk-row__title { font-size: var(--text-sm); font-weight: var(--weight-extrabold); line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.mk-row__badges { display: flex; flex-wrap: wrap; gap: 4px; }
.mk-row__meta { color: var(--color-text-muted); font-size: var(--text-xs); }
.mk-row__more { flex: none; align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--color-text); cursor: pointer; }
.mk-row__more:hover { background: #f2f0e8; }

.mk-badge { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 9px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: var(--weight-bold); white-space: nowrap; }
.mk-badge .icon { width: 13px; height: 13px; }
.mk-badge--blue { background: #e6efff; color: #1d4fb8; }
.mk-badge--gold { background: var(--ux-gold-soft); color: #8a5a00; }
.mk-badge--purple { background: #efe8ff; color: #5b34b5; }
.mk-badge--red { background: #ffe8ef; color: #b4234f; }
.mk-badge--gray { background: #eef0ec; color: var(--color-text-muted); }
.mk-badge--status-published { background: #e3f6ea; color: #16794a; }
.mk-badge--status-draft { background: #fff1d9; color: #9a5b00; }
.mk-badge--status-archived { background: #efe8ff; color: #5b34b5; }

.mk-tone--blue { background: #e6efff; color: #1d4fb8; }
.mk-tone--gold { background: var(--ux-gold-soft); color: #b7791f; }
.mk-tone--purple { background: #efe8ff; color: #5b34b5; }
.mk-tone--red { background: #ffe8ef; color: #b4234f; }
.mk-tone--gray { background: #eef0ec; color: var(--color-text-muted); }
.mk-thumb__play { position: absolute; top: 50%; left: 50%; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--color-primary); }
.mk-thumb__play .icon { width: 13px; height: 13px; margin-left: 2px; fill: currentColor; }

/* Menu titik tiga & formulir */
.mk-menu { display: flex; flex-direction: column; gap: 4px; }
.mk-menu__item { display: flex; align-items: center; gap: var(--space-3); min-height: 50px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-md); background: none; color: var(--color-text); font: inherit; font-weight: var(--weight-semibold); text-align: left; text-decoration: none; cursor: pointer; }
.mk-menu__item:hover { background: #f4f6f1; text-decoration: none; }
.mk-menu__item .icon { color: var(--color-primary); }
.mk-menu__item--danger, .mk-menu__item--danger .icon { color: #c62828; }
.mk-req { color: #c62828; }
.mk-form .field__input, .mk-form .field__textarea { width: 100%; }
.mk-caption-input { min-height: 160px; }
.mk-file__current { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); padding: var(--space-2); border: 1px dashed var(--color-border); border-radius: var(--radius-md); background: #fafbf7; }
.mk-file__current img { width: 72px; height: 56px; border-radius: 8px; object-fit: cover; }
.mk-file__current.is-replaced { opacity: 0.45; text-decoration: line-through; }
.mk-file__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--ux-mint); color: var(--color-primary); }
.mk-file__name { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; font-size: var(--text-sm); font-weight: var(--weight-semibold); overflow-wrap: anywhere; }
.mk-file__name small { color: var(--color-text-muted); font-weight: 400; }
.mk-period__row { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
.mk-period__field { display: flex; flex-direction: column; gap: 4px; font-size: var(--text-sm); font-weight: var(--weight-semibold); }
@media (min-width: 420px) { .mk-period__row { grid-template-columns: 1fr 1fr; } }
.mk-progress { display: flex; flex-direction: column; gap: 6px; }
.mk-progress__bar { height: 10px; border-radius: var(--radius-full); background: #e7ece6; overflow: hidden; }
.mk-progress__bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--color-primary); transition: width 0.2s ease; }
.mk-progress__text { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.mk-form__actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-3) 0 2px; background: var(--color-surface); }
.mk-form__actions .btn { flex: 1 1 30%; min-width: 0; }

/* Halaman mitra */
.mk-page [data-mk], .mk-page [data-mk-body] { display: flex; flex-direction: column; gap: var(--space-4); }
.mk-page [data-mk-body] { padding-bottom: var(--space-6); }
.mk-page .mk-banner, .mk-page .notice, .mk-page .mk-catgrid, .mk-page .mk-search, .mk-page .ux-section, .mk-page .mk-guide, .mk-page .mk-noaccess { margin-left: var(--space-4); margin-right: var(--space-4); }
.mk-catgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.mk-cat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: var(--space-2) 1px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--ux-card-shadow); color: var(--color-text); font: inherit; cursor: pointer; }
.mk-cat__icon { display: inline-flex; color: var(--color-primary); }
.mk-cat__icon .icon { width: 22px; height: 22px; }
.mk-cat__label { max-width: 100%; font-size: 0.6875rem; font-weight: var(--weight-semibold); line-height: 1.2; text-align: center; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-cat.is-active { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.mk-cat.is-active .mk-cat__icon { color: #fff; }
.mk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .mk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mk-catgrid { gap: var(--space-2); } }
@media (min-width: 960px) { .mk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mk-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--ux-card-shadow); overflow: hidden; color: var(--color-text); text-decoration: none; }
.mk-card:hover { text-decoration: none; border-color: #bcd9cb; }
.mk-card__thumb { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: #eef3ee; overflow: hidden; }
.mk-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mk-card__thumb .icon { width: 36px; height: 36px; }
.mk-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: var(--space-2) var(--space-3) var(--space-3); }
.mk-card__title { font-size: var(--text-sm); font-weight: var(--weight-extrabold); line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.mk-card__info { color: var(--color-text-muted); font-size: 0.75rem; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.mk-guide { padding: var(--space-4); border: 1px solid #cfe6d9; border-radius: var(--radius-lg); background: #e9f5ee; }
.mk-guide__title { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); color: #0b2e26; font-size: var(--text-base); font-weight: var(--weight-extrabold); }
.mk-guide__title .icon { color: var(--color-primary); }
.mk-guide__steps { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.mk-guide__steps li { display: flex; align-items: flex-start; gap: var(--space-2); line-height: 1.45; }
.mk-guide__n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--color-primary); color: #fff; font-size: 0.75rem; font-weight: var(--weight-extrabold); }
.mk-noaccess .btn { margin-top: var(--space-3); }
.mk-entry { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); padding: var(--space-3); border: 1px solid #cfe6d9; border-radius: var(--radius-lg); background: #e9f5ee; color: var(--color-text); text-decoration: none; }
.mk-entry:hover { text-decoration: none; }
.mk-entry__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--color-primary); color: #fff; }
.mk-entry__body { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.mk-entry__body small { color: var(--color-text-muted); }

/* Detail materi */
.mk-page--detail [data-mk] { padding: var(--space-4) var(--space-4) var(--space-6); gap: var(--space-3); }
.mk-preview { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #0d2a23; box-shadow: var(--ux-card-shadow); }
.mk-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mk-slides::-webkit-scrollbar { display: none; }
.mk-slide { flex: 0 0 100%; width: 100%; max-height: 70vh; object-fit: contain; background: #0d2a23; scroll-snap-align: start; }
.mk-slides__nav { display: flex; align-items: center; justify-content: center; gap: var(--space-3); padding: var(--space-2); background: var(--color-surface); }
.mk-slides__count { min-width: 48px; padding: 2px 10px; border-radius: var(--radius-full); background: var(--ux-mint); color: var(--color-primary); font-size: var(--text-sm); font-weight: var(--weight-bold); text-align: center; }
.mk-video { display: block; width: 100%; max-height: 70vh; background: #000; }
.mk-preview--empty { display: flex; align-items: center; justify-content: center; min-height: 180px; background: #eef3ee; }
.mk-preview__ph { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 24px; }
.mk-preview__ph .icon { width: 44px; height: 44px; }
.mk-detail__title { margin: var(--space-2) 0 0; font-size: var(--text-lg); font-weight: var(--weight-extrabold); line-height: 1.3; }
.mk-detail__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-detail__date { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.mk-detail__date .icon { width: 16px; height: 16px; }
.mk-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--radius-full); background: #ebece4; }
.mk-tab { min-height: 44px; border: 0; border-radius: var(--radius-full); background: none; color: var(--color-text); font: inherit; font-size: var(--text-sm); font-weight: var(--weight-bold); cursor: pointer; }
.mk-tab.is-active { background: var(--color-primary); color: #fff; }
.mk-caption { padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--ux-card-shadow); }
.mk-caption__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-3); }
.mk-caption__title { display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--text-base); font-weight: var(--weight-extrabold); }
.mk-caption__title .icon { color: var(--color-primary); }
.mk-caption__text { margin: 0; font-size: var(--text-base); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.mk-link { display: flex; flex-direction: column; gap: var(--space-2); }
.mk-link__label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: var(--weight-bold); }
.mk-link .copy-row__text { overflow-wrap: anywhere; }
.mk-about { display: flex; flex-direction: column; gap: var(--space-3); }
.mk-about__title { margin: 0; font-size: var(--text-base); font-weight: var(--weight-extrabold); }
.mk-about__list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mk-about__list li { display: flex; align-items: flex-start; gap: var(--space-2); line-height: 1.45; }
.mk-about__list .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #16794a; }
.mk-actions { display: flex; gap: var(--space-3); margin-top: var(--space-2); }
.mk-actions .btn { flex: 1 1 0; min-width: 0; min-height: 52px; }
@media (max-width: 359px) { .mk-banner__art, .mk-banner__img { display: none; } .mk-catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Teks/subjudul banner: tombol Enter di editor = baris baru di tampilan (semua banner, termasuk yang baru) */
.ux-banner__text, .hero__text { white-space: pre-line; }

/* Import artikel dari Excel/CSV (Admin → Artikel Baru) */
.art-import { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-5); padding: var(--space-4); border: 1px solid #cfe6d9; border-radius: var(--radius-lg); background: #e9f5ee; }
.art-import__head { display: flex; align-items: flex-start; gap: var(--space-3); }
.art-import__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--color-primary); color: #fff; }
.art-import__title { margin: 0; font-size: var(--text-base); font-weight: var(--weight-extrabold); color: #0b2e26; }
.art-import__text { margin: 4px 0 0; color: #33463f; font-size: var(--text-sm); line-height: 1.45; }
.art-import__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.art-import__actions .btn { flex: 1 1 140px; min-width: 0; padding: 0 var(--space-3); font-size: var(--text-sm); cursor: pointer; }
.art-prev { display: flex; flex-direction: column; gap: var(--space-3); }
.art-prev__file { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); overflow-wrap: anywhere; }
.art-prev__sum { display: flex; flex-wrap: wrap; gap: 6px; }
.art-prev__pill { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 10px; border-radius: var(--radius-full); background: #eef0ec; font-size: var(--text-xs); font-weight: var(--weight-bold); }
.art-prev__pill .icon { width: 14px; height: 14px; }
.art-prev__pill--ok { background: #e3f6ea; color: #16794a; }
.art-prev__pill--bad { background: #ffe8ea; color: #b42318; }
.art-prev__list { display: flex; flex-direction: column; gap: var(--space-2); max-height: 46vh; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.art-prev__row { display: flex; flex-direction: column; gap: 3px; padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.art-prev__row.is-bad { border-color: #f3b4b8; background: #fff6f6; }
.art-prev__line { color: var(--color-text-muted); font-size: 0.75rem; font-weight: var(--weight-bold); }
.art-prev__title { font-size: var(--text-sm); line-height: 1.3; overflow-wrap: anywhere; }
.art-prev__meta { color: var(--color-text-muted); font-size: var(--text-xs); }
.art-prev__err, .art-prev__note { display: flex; align-items: flex-start; gap: 4px; font-size: var(--text-xs); line-height: 1.35; }
.art-prev__err { color: #b42318; }
.art-prev__note { color: #8a5a00; }
.art-prev__err .icon, .art-prev__note .icon { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.art-prev__covers { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); padding: var(--space-3); border: 1px dashed #b9d8c7; border-radius: var(--radius-md); background: #f3faf6; }
.art-prev__covers .btn { cursor: pointer; }
.art-prev__hint { margin: 0; color: var(--color-text-muted); font-size: var(--text-xs); line-height: 1.4; }
.art-prev__cover { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: #16794a; overflow-wrap: anywhere; }
.art-prev__thumb { flex: none; width: 64px; height: 36px; object-fit: cover; border-radius: 6px; background: #eef0ec; }
.art-prev__actions { position: sticky; bottom: 0; display: flex; gap: var(--space-2); padding-top: var(--space-2); background: var(--color-surface); }
.art-prev__actions .btn { flex: 1 1 0; min-width: 0; }

/* Formulir admin tidak boleh melebar di HP sempit (pilihan buku/kategori yang panjang) */
.admin-form, .admin-form .field { min-width: 0; max-width: 100%; }
.admin-form select, .admin-form .field__input, .admin-form .field__textarea { max-width: 100%; min-width: 0; }
.admin-form .rt, .admin-form .rt__area { max-width: 100%; min-width: 0; }

/* Daftar isi pembaca: judul panjang dipotong 2 baris agar daftar tetap ringkas */
.toc-list__item > span:first-child { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* Cuplikan gratis otomatis (Admin → Ubah Buku) */
.bk-sample-gen { display: flex; flex-direction: column; gap: 6px; margin: var(--space-2) 0 var(--space-3); padding: var(--space-3); border: 1px solid #cfe6d9; border-radius: var(--radius-md); background: #f1f8f4; }
.bk-sample-gen__field { display: flex; flex-direction: column; gap: 6px; }
.bk-sample-gen__row { display: flex; align-items: center; gap: var(--space-2); }
.bk-sample-gen__row input { flex: 0 0 110px; width: 110px; min-width: 0; }
.bk-sample-gen__of { color: var(--color-text-muted); font-size: var(--text-sm); }
.bk-sample-gen .field__hint, .bk-sample-gen .field__error { margin: 0; }
.bk-sample-gen .field__error:empty { display: none; }

/* Detail Buku: label tombol panjang boleh turun baris di HP sempit */
.book-detail__actions .btn { height: auto; min-height: 52px; padding-top: 10px; padding-bottom: 10px; white-space: normal; text-align: center; line-height: 1.25; }
.book-detail__actions .btn .icon { flex: none; }
@media (max-width: 400px) {
  .book-detail__actions .btn { padding-left: var(--space-3); padding-right: var(--space-3); font-size: clamp(0.8125rem, 3.85vw, var(--text-base)); gap: 6px; }
}

/* Mitra Bertumbuh khusus member Premium (tahap 17) */
.aff-premium { margin-top: var(--space-5); }
.aff-premium .aff-join { margin-top: var(--space-3); }
/* Pasang sampul: pemasangan manual untuk gambar yang namanya tidak cocok */
.art-assign { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); border: 1px dashed #e0c48a; border-radius: var(--radius-md); background: #fffaf0; }
.art-assign__title { margin: 0; font-size: var(--text-sm); font-weight: var(--weight-extrabold); }
.art-assign__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.art-assign__item { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 6px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.art-assign__img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; background: #eef0ec; }
.art-assign__select { width: 100%; min-width: 0; min-height: 40px; font-size: var(--text-xs); }
.art-assign__name { color: var(--color-text-muted); font-size: 0.7rem; overflow-wrap: anywhere; }
.art-prev__undo { margin-left: auto; flex: none; min-height: 32px; padding: 0 10px; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-text); font-size: var(--text-xs); font-weight: var(--weight-bold); cursor: pointer; }
/* Tombol bawah pratinjau menutup sampai tepi bawah lembar (isi tidak mengintip di bawah tombol) */
.art-prev__actions { bottom: calc(-1 * (var(--space-8) + var(--safe-bottom))); margin-bottom: calc(-1 * (var(--space-8) + var(--safe-bottom))); padding-bottom: calc(var(--space-3) + var(--space-8) + var(--safe-bottom)); box-shadow: 0 -8px 12px -10px rgba(0, 0, 0, 0.18); }

/* Beranda: Artikel & Insight Terbaru dalam grid 2 kolom (ramai, seperti majalah) */
.hv-grid--articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.hv .hv-grid--articles .art-card, .hv-grid--articles .art-card { flex: none; min-width: 0; align-items: stretch; gap: var(--space-2); padding: 6px; border-radius: 14px; box-shadow: 0 2px 8px rgba(23, 51, 45, 0.05); }
.hv .hv-grid--articles .art-card__img, .hv-grid--articles .art-card__img { flex: none; width: 36%; max-width: 132px; height: auto; min-height: 76px; aspect-ratio: auto; align-self: stretch; border-radius: 10px; object-fit: cover; }
.hv-grid--articles .art-card__body { justify-content: flex-start; gap: 4px; padding: 2px 0; }
.hv-grid--articles .art-card { gap: 6px; }
.hv-grid--articles .art-card__cat { align-self: flex-start; max-width: 100%; padding: 1px 6px; border-radius: 999px; font-size: 0.625rem; letter-spacing: -0.01em; font-weight: var(--weight-bold); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv .hv-grid--articles .art-card__title, .hv-grid--articles .art-card__title { font-size: 0.78rem; font-weight: var(--weight-semibold); line-height: 1.3; -webkit-line-clamp: 3; }
.hv-grid--articles .art-card__date { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; font-size: 0.6875rem; }
.hv-grid--articles .art-card__date .icon { flex: none; width: 12px; height: 12px; }
@media (max-width: 339px) {
  .hv-grid--articles .art-card { flex-direction: column; }
  .hv .hv-grid--articles .art-card__img, .hv-grid--articles .art-card__img { width: 100%; max-width: none; min-height: 0; aspect-ratio: 16 / 10; }
}
@media (min-width: 700px) { .hv-grid--articles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Grid 2 kolom (HP & tablet tegak): artikel terakhir yang sendirian disembunyikan agar tidak bolong
   (9 artikel → HP tampil 8; tablet &amp; desktop 3 kolom tampil 9). */
@media (max-width: 699px) { .hv-grid--articles > .art-card:last-child:nth-child(odd):not(:first-child) { display: none; } }

/* =====================================================================
   Konsultasi & Pendampingan — pilihan layanan (Private Coaching & Konsultasi Gratis)
   ===================================================================== */
.cq-intro { margin: var(--space-2) 0 var(--space-4); }
.cq-intro__title { margin: 0 0 var(--space-2); font-size: clamp(1.3rem, 5.4vw, 1.6rem); line-height: 1.25; color: var(--color-primary-dark); font-weight: var(--weight-extrabold); }
.cq-intro__text { margin: 0; color: var(--color-text-muted); line-height: 1.55; }

.cq-premium { position: relative; overflow: hidden; margin-bottom: var(--space-4); padding: 0 var(--space-4) var(--space-3); border: 1.5px solid #86c6a8; border-radius: var(--radius-xl); background: linear-gradient(160deg, #eaf6ef 0%, #f6fbf7 55%, #eef7f1 100%); box-shadow: 0 8px 22px rgba(6, 68, 55, 0.08); }
.cq-premium__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); margin: 0 calc(-1 * var(--space-4)) var(--space-3); }
.cq-ribbon { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px 10px var(--space-4); border-radius: 0 0 22px 0; background: linear-gradient(135deg, #0b7a5f, #075b4b); color: #fff; font-weight: var(--weight-bold); font-size: var(--text-sm); }
.cq-ribbon .icon { width: 20px; height: 20px; color: #f7c843; fill: #f7c843; }
.cq-gem { display: inline-flex; align-items: center; gap: 6px; margin: 10px var(--space-3) 0 0; padding: 6px 14px; border-radius: var(--radius-full); background: #f8d34a; color: #4a3500; font-size: var(--text-sm); font-weight: var(--weight-bold); box-shadow: 0 4px 10px rgba(180, 130, 0, 0.18); }
.cq-gem .icon { width: 16px; height: 16px; }
.cq-premium__head { display: flex; align-items: flex-start; gap: var(--space-3); }
.cq-premium__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; background: #fff; color: var(--color-primary); box-shadow: 0 6px 16px rgba(6, 68, 55, 0.12); }
.cq-premium__icon .icon { width: 32px; height: 32px; stroke-width: 2.4; }
.cq-premium__copy { min-width: 0; }
.cq-premium__title { margin: 2px 0 4px; font-size: var(--text-lg); line-height: 1.3; color: var(--color-primary-dark); font-weight: var(--weight-extrabold); }
.cq-premium__text { margin: 0; color: var(--color-text); line-height: 1.45; }
.cq-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); margin: var(--space-3) 0; }
.cq-fact { display: flex; align-items: center; gap: var(--space-2); min-width: 0; padding: 10px 12px; border: 1px solid #d5ebe0; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.85); }
.cq-fact > .icon { flex: none; width: 26px; height: 26px; color: var(--color-primary); }
.cq-fact > span { display: flex; flex-direction: column; min-width: 0; }
.cq-fact small { color: var(--color-text-muted); font-size: var(--text-xs); }
.cq-fact strong { color: var(--color-primary-dark); font-size: clamp(1rem, 4.4vw, 1.2rem); font-weight: var(--weight-extrabold); white-space: nowrap; }
.cq-checks { display: grid; gap: 8px; margin: 0 0 var(--space-4); padding: 0; list-style: none; }
.cq-checks li { display: flex; align-items: flex-start; gap: 10px; color: var(--color-text); line-height: 1.4; }
.cq-checks .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #fff; fill: #12a06b; }
.cq-checks--sm li { font-size: var(--text-sm); }
.cq-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 var(--space-4); border-radius: var(--radius-full); font: inherit; font-weight: var(--weight-bold); text-decoration: none; cursor: pointer; }
.cq-btn .icon { flex: none; width: 20px; height: 20px; }
.cq-btn--solid { border: 0; background: linear-gradient(135deg, #0b7a5f, #064437); color: #fff; box-shadow: 0 8px 18px rgba(6, 68, 55, 0.22); }
.cq-btn--outline { border: 1.5px solid var(--color-primary); background: #fff; color: var(--color-primary-dark); }
.cq-premium__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: var(--space-2) 0 0; color: var(--color-text); font-size: var(--text-xs); }
.cq-premium__note .icon { width: 16px; height: 16px; }

.cq-free { margin-bottom: var(--space-3); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--ux-card-shadow); }
.cq-free__head { display: flex; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-3); }
.cq-free__art { position: relative; flex: none; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #dff1e8, #eaf5ef); }
.cq-bubble { position: absolute; display: inline-flex; color: #12a06b; }
.cq-bubble .icon { width: 100%; height: 100%; }
.cq-bubble--a { left: 8px; top: 22px; width: 44px; height: 44px; fill: #12a06b; color: #12a06b; }
.cq-bubble--b { right: 6px; top: 40px; width: 40px; height: 40px; fill: #fff; color: #12a06b; }
.cq-free__copy { min-width: 0; }
.cq-free__title { margin: 2px 0 6px; font-size: var(--text-lg); color: var(--color-primary-dark); font-weight: var(--weight-extrabold); }
.cq-pill { display: inline-block; padding: 3px 12px; border-radius: var(--radius-full); background: #d9f1e5; color: var(--color-primary-dark); font-size: var(--text-xs); font-weight: var(--weight-bold); }
.cq-free__text { margin: var(--space-2) 0 0; color: var(--color-text); line-height: 1.45; }
.cq-history { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); padding: 10px 12px; border-radius: var(--radius-md); background: #f2f8f4; color: var(--color-primary-dark); font-size: var(--text-sm); font-weight: var(--weight-bold); text-decoration: none; }
.cq-history span { flex: 1; min-width: 0; }
.cq-history .icon { flex: none; width: 18px; height: 18px; }
.cq-info { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0 0 var(--space-4); padding: 12px 14px; border-radius: var(--radius-lg); background: #e3f1e9; color: var(--color-text); font-size: var(--text-sm); line-height: 1.45; }
.cq-info .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--color-primary-dark); }
.cq-staff, .cq-more__item { display: flex; align-items: center; gap: var(--space-3); padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: #fff; color: var(--color-text); text-decoration: none; }
.cq-staff { margin-bottom: var(--space-3); border-color: #e7cf8a; background: #fffaf0; }
.cq-staff > span, .cq-more__item > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cq-staff small { color: var(--color-text-muted); font-size: var(--text-xs); }
.cq-staff .icon, .cq-more__item .icon { flex: none; width: 20px; height: 20px; color: var(--color-primary); }
.cq-more { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.cq-more__item { font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.cq-back { margin: var(--space-4) 0; }

/* Form, riwayat & antrean Konsultasi Gratis */
.cq-form-card { margin: var(--space-2) 0 var(--space-3); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--ux-card-shadow); }
.cq-form-card__title { margin: var(--space-2) 0 4px; font-size: var(--text-lg); color: var(--color-primary-dark); }
.cq-form-card__text { margin: 0 0 var(--space-3); color: var(--color-text-muted); line-height: 1.5; }
.cq-form { display: grid; gap: var(--space-3); }
.cq-req { color: #c0392b; }
.cq-form-card__foot { display: flex; align-items: flex-start; gap: 6px; margin: var(--space-3) 0 0; color: var(--color-text-muted); font-size: var(--text-xs); line-height: 1.45; }
.cq-form-card__foot .icon { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.cq-history-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin: var(--space-2) 0 var(--space-3); }
.cq-history-head .kp-sub { margin: 0; }
.cq-list { display: grid; gap: var(--space-3); margin: 0 0 var(--space-4); padding: 0; list-style: none; }
.cq-item { min-width: 0; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--ux-card-shadow); }
.cq-item.is-fresh { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(7, 91, 75, 0.12); }
.cq-item__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.cq-item__date { color: var(--color-text-muted); font-size: var(--text-xs); }
.cq-item__title { margin: var(--space-2) 0 4px; font-size: var(--text-base); line-height: 1.35; color: var(--color-text); overflow-wrap: anywhere; }
.cq-item__meta { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 var(--space-2); color: var(--color-text-muted); font-size: var(--text-xs); }
.cq-item__info { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 var(--space-2); padding: 8px 10px; border-radius: var(--radius-md); font-size: var(--text-sm); line-height: 1.4; }
.cq-item__info .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.cq-item__info--wait { background: #fff6e0; color: #6b4c00; }
.cq-item__info--work { background: #e7f0fb; color: #1f4f86; }
.cq-item__more summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--color-primary-dark); font-weight: var(--weight-bold); font-size: var(--text-sm); cursor: pointer; list-style: none; }
.cq-item__more summary::-webkit-details-marker { display: none; }
.cq-item__more summary .icon { width: 18px; height: 18px; }
.cq-item__label { margin: var(--space-2) 0 4px; color: var(--color-text-muted); font-size: var(--text-xs); font-weight: var(--weight-bold); }
.cq-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; color: var(--color-text); }
.cq-text--box { margin-bottom: var(--space-3); padding: 10px 12px; border-radius: var(--radius-md); background: #f7f6f1; font-size: var(--text-sm); }
.cq-answer { padding: 10px 12px; border-left: 3px solid #12a06b; border-radius: 0 var(--radius-md) var(--radius-md) 0; background: #eef7f2; }
.cq-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: var(--weight-bold); }
.cq-status .icon { width: 14px; height: 14px; }
.cq-status--wait { background: #fff1cc; color: #7a5600; }
.cq-status--work { background: #dbe9fb; color: #1f4f86; }
.cq-status--done { background: #d9f1e5; color: #0b6a4a; }
.cq-tabs { margin-bottom: var(--space-3); }
.cq-tabs .pill-tabs__item { text-decoration: none; }
.cq-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-2); }
.cq-assign { display: flex; gap: var(--space-2); align-items: center; margin-top: var(--space-2); }
.cq-assign .field__select { flex: 1; min-width: 0; }
.cq-assign .btn { flex: none; }
.cq-answer-form { display: grid; gap: var(--space-2); }
.cq-hint { margin: var(--space-2) 0 0; color: var(--color-text-muted); font-size: var(--text-xs); line-height: 1.45; }
.cq-link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: var(--space-2); padding: 0; border: 0; background: none; color: var(--color-text-muted); font: inherit; font-size: var(--text-sm); text-decoration: underline; cursor: pointer; }
.cq-link-btn .icon { width: 16px; height: 16px; }
@media (max-width: 359px) { .cq-facts { grid-template-columns: 1fr; } .cq-free__art { width: 72px; height: 72px; } }
.cq-tabs .pill-tabs__item { display: inline-flex; align-items: center; }
.cq-bubble--a .icon { fill: #12a06b; }
.cq-bubble--b .icon { fill: #fff; }
.cq-dots { position: absolute; inset: 0 0 6px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.cq-dots i { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
