/* Pratinjau eBook: mengikuti desain pratinjau dengan warna brand CANnity */
.pv { margin-top: 0 !important; background: #F1F2F4; font-family: 'Plus Jakarta Sans', Roboto, system-ui, 'Segoe UI', sans-serif; color: #111827; min-height: 80vh; }
.pv *, .pv *::before, .pv *::after { box-sizing: border-box; }
.pv [hidden] { display: none !important; }
.pv a { color: #0E2350; text-decoration: none; }
.pv h1, .pv p { margin: 0; }
.pv-wrap { width: 100%; max-width: 1560px; margin: 0 auto; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.pv-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.pv-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: #0E2350; }
.pv-back:hover { color: #8A6420; }
.pv-flash { background: #FBEFD9; color: #8A5300; border-radius: 10px; padding: 12px 16px; font-size: 14px; font-weight: 500; }

.pv-cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.pv-side { flex: 0 0 300px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }
.pv-box { background: #FFFFFF; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 14px; border: 1px solid #E5E7EB; }
.pv-cover { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: #0E2350; }
.pv-tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: #DBEAFE; color: #1D4ED8; }
.pv-box h1 { font-size: 22px; line-height: 1.3; font-weight: 700; color: #0E2350; }
.pv-by { font-size: 14px; color: #4B5563; }
.pv-by strong { color: #111827; }
.pv-price { font-size: 22px; font-weight: 700; color: #0E2350; }
.pv-cta, .pv .pv-cta {
  display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%;
  min-height: 48px; border: 0; border-radius: 12px; background: #C9A04E; color: #0E2350;
  font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .15s;
}
.pv-cta:hover, .pv .pv-cta:hover { background: #E1C27E; }
.pv-cta.is-off { opacity: 0.65; cursor: not-allowed; }

.pv-search { padding: 16px; gap: 8px; }
.pv-search label { font-size: 14px; font-weight: 700; color: #111827; margin: 0; }
.pv-search-row { display: flex; gap: 8px; }
.pv-search input { flex: 1; min-width: 0; height: 44px; border-radius: 10px; border: 1px solid #E5E7EB; padding: 0 12px; font-family: inherit; font-size: 14px; }
.pv-search button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: #0E2350; color: #FFFFFF; font-family: inherit; font-weight: 700; cursor: pointer; }
.pv-small { font-size: 12px; color: #4B5563; }
.pv-note { display: flex; gap: 10px; font-size: 13px; line-height: 1.5; color: #374151; }
.pv-shield { color: #C9A04E; font-size: 16px; }

.pv-viewer { flex: 1 1 560px; min-width: 0; background: #FFFFFF; border-radius: 14px; display: flex; flex-direction: column; border: 1px solid #E5E7EB; }
.pv-tools { position: sticky; top: 72px; z-index: 5; background: #FFFFFF; border-radius: 14px 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #E5E7EB; }
.pv-tools strong { font-size: 15px; color: #0E2350; }
.pv-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #FBEFD9; color: #8A5300; }
.pv-grow { flex: 1; }
.pv-ctl { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pv-ctl button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid #E5E7EB; background: #FFFFFF; cursor: pointer; font-size: 18px; color: #111827; }
.pv-ctl button:disabled { opacity: 0.4; cursor: default; }
#pv-zlabel { width: 44px; text-align: center; font-weight: 600; }
.pv-hit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 16px; background: #FBEFD9; font-size: 13px; color: #8A5300; }
.pv-hit span { flex: 1; }
.pv-hit button { border: 0; background: none; font-family: inherit; font-weight: 700; color: #0E2350; cursor: pointer; }

.pv-stage { background: #E7E8EB; padding: 24px 16px 40px; min-height: 640px; overflow-x: auto; border-radius: 0 0 14px 14px; }
.pv-doc { display: flex; flex-direction: column; align-items: center; gap: 24px; min-width: min-content; }
.pv-pg { position: relative; background: #FFFFFF; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); line-height: 0; user-select: none; -webkit-user-select: none; }
.pv-pg canvas { display: block; width: 100%; height: 100%; }
.pv-pgno { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); font-size: 11px; line-height: 1; color: #6B7280; white-space: nowrap; }
.pv-pos { font-size: 13px; }
.pv-lock-inline { margin: 8px auto; width: 100%; max-width: 480px; }
@media print { .pv-doc, .pv-stage { display: none !important; } }
.pv-page { position: relative; background: #FFFFFF; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); max-width: 100%; line-height: 0; user-select: none; -webkit-user-select: none; }
.pv-page canvas { display: block; }
.pv-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.85); font-size: 13px; line-height: 1.4; color: #4B5563; }
.pv-lock { max-width: 480px; background: #FFFFFF; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin: 24px auto; box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.pv-lock-ico { width: 48px; height: 48px; border-radius: 50%; background: #FBEFD9; color: #8A5300; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.pv-lock strong { font-size: 17px; color: #0E2350; }
.pv-lock > span:not(.pv-lock-ico) { font-size: 14px; color: #4B5563; line-height: 1.5; }
.pv .pv-lock-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: #C9A04E; color: #0E2350; font-weight: 700; font-size: 14px; }

@media (max-width: 1023px) {
  .pv-side { flex: 1 1 100%; position: static; }
}

@media (max-width: 767px) {
  .pv-wrap { padding: 16px; }
  .pv-stage { min-height: 420px; padding: 20px 8px; }
}
