/* ضبط عام */
:root{
  --bg:#170024;
  --panel:#230033;
  --violet:#9b4dff;
  --ink:#eae0f4;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(900px 600px at 75% -10%, #3b104c 0%, transparent 60%), var(--bg);
  color: var(--ink);
}

.topbar{
  position:sticky; top:0; z-index:10;
  background:#12001acc; backdrop-filter: blur(8px);
  padding:10px 16px; border-bottom:1px solid #ffffff14;
}
.topbar .brand{ color:#fff; text-decoration:none; font-weight:900 }

.wrap{ width:min(1100px, 92%); margin-inline:auto; padding: 24px 0 60px; }
.title{ margin:12px 0 6px; text-align:center }
.lead{ text-align:center; opacity:.85; margin:0 0 16px }

.controls{
  display:flex; align-items:center; justify-content:center; gap:14px;
  margin: 6px 0 14px;
}
.controls button{
  width:40px; height:40px; border-radius:999px; border:1px solid #ffffff25;
  background: #ffffff12; color:#fff; font-size:22px; cursor:pointer;
}
.controls #pageInfo{ opacity:.85; font-weight:700 }

.book{
  background:#f1eef7; border-radius:18px; min-height:320px;
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
  overflow:hidden;
}

.note{
  text-align:center; margin:14px 0 8px; opacity:.85;
}
.note a{ color:#cdb4ff; text-decoration:underline }

.footer{
  border-top:1px solid #ffffff18; padding:16px; text-align:center; opacity:.8
}
.footer a{ color:#eae0f4; text-decoration:none }

/* استجابة */
@media (max-width:640px){
  .controls button{ width:36px; height:36px; }
  .wrap{ padding-bottom:36px }
}
