/* عارض الكتاب (مشترك بين رابط المدير ومعاينة المستخدم) */
/* الكتاب */
.book { --pw: 400px; --ph: 566px; position: relative; display: flex; flex-direction: row; perspective: 2600px; filter: drop-shadow(0 18px 30px rgba(40, 30, 20, .22)); }
.slot { width: var(--pw); height: var(--ph); position: relative; overflow: hidden; background: #fff; }
.slot.r { border-radius: 0 6px 6px 0; } .slot.l { border-radius: 6px 0 0 6px; }
.book.single .slot.l, .book.single .spine { display: none; }
.book.single .slot.r { border-radius: 6px; }
.spine { position: absolute; top: 0; bottom: 0; left: 50%; width: 40px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .13) 45%, rgba(0, 0, 0, .2) 50%, rgba(0, 0, 0, .13) 55%, transparent); }
.pg { position: absolute; inset: 0; overflow: hidden; background: #fff; }
.pg.blank { background: linear-gradient(135deg, #f6f2ec, #ece6dc); }
.pg > .pf-page { transform-origin: top right; position: absolute; top: 0; right: 0; margin: 0 !important; box-shadow: none !important; }
.pg .pf-toc li[data-p] { cursor: pointer; }
.pg .pf-toc li[data-p]:hover { color: var(--main); }
/* الورقة المتقلّبة */
.leaf { position: absolute; top: 0; width: var(--pw); height: var(--ph); transform-style: preserve-3d; z-index: 3; }
.leaf.fwd { left: 0; transform-origin: right center; }
.leaf.back { right: 0; transform-origin: left center; }
.leaf .pg { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.leaf .pg.back { transform: rotateY(180deg); }
.leaf .pg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .08), transparent 30%); pointer-events: none; }

