/* الصفحات العامة: الدخول، صفحة العرض، نموذج التسجيل */
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(400px, 100%); padding: 28px; }
.brand-lg { text-align: center; }
.brand-lg img { width: 64px; height: 64px; border-radius: 16px; }
.brand-lg h1 { margin-top: 10px; font-size: 1.3rem; }
.brand-lg p { margin: 4px 0 0; }

.pub { max-width: 920px; margin: 0 auto; padding: 0 16px 60px; }
.pub-head { display: flex; align-items: center; gap: 10px; padding: 16px 0; }
.pub-head img { width: 36px; height: 36px; border-radius: 10px; }
.hero { position: relative; border-radius: 18px; overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.45); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.hero .nav-btn.prev { right: 10px; }
.hero .nav-btn.next { left: 10px; }
.hero .counter { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,.55); color: #fff; padding: 2px 10px; border-radius: 99px; font-size: .8rem; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; }
.thumbs img { width: 84px; height: 60px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .6; border: 2px solid transparent; flex: none; }
.thumbs img.active { opacity: 1; border-color: var(--primary); }
.pub-title { margin: 14px 0 6px; font-size: 1.5rem; }
.pub-price { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.pub-pricebox { margin-top: 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.fact span { display: block; color: var(--muted); font-size: .8rem; }
.fact b { font-size: 1.05rem; }
.cta { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); display: flex; gap: 8px; }
.cta .btn { flex: 1; padding: 12px; font-size: 1rem; }
.pub-foot { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 30px; }
.reg { width: min(720px, 100%); margin: 24px auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success { text-align: center; padding: 30px 10px; }
.success .big { font-size: 3rem; }
