/* Elite Store — مكتبتي • كاش باك • دعوة • تسليم فوري */
.lb-wrap { padding-bottom: 50px; max-width: 980px; }
.lb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.lb-stats > * { background: var(--card, #151829); border: 1px solid var(--line, #262a44); border-radius: 16px; padding: 14px; text-align: center; color: inherit; text-decoration: none; }
.lb-stats b { display: block; font-size: 1.45rem; font-weight: 900; }
.lb-stats small { color: var(--mut, #a4aac4); font-weight: 700; }
.lb-stats .lb-wal b { color: #b79cff; }
.lb-note { font-size: .86rem; color: var(--mut, #a4aac4); background: #ffffff08; border: 1px dashed var(--line, #262a44); border-radius: 12px; padding: 10px 12px; margin: 0 0 18px; }
.lb-order { background: var(--card, #151829); border: 1px solid var(--line, #262a44); border-radius: 18px; padding: 14px; margin-bottom: 16px; }
.lb-order > header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lb-order > header small { color: var(--mut, #a4aac4); }
.lb-order > header .lb-help { margin-inline-start: auto; }
.lb-games { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.lb-game { background: #0000002e; border: 1px solid var(--line, #262a44); border-radius: 14px; padding: 12px; min-width: 0; }
.lb-top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.lb-cv { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; background: #241b45; display: grid; place-items: center; font-size: 1.6rem; }
.lb-cv img { width: 100%; height: 100%; object-fit: cover; }
.lb-tt { min-width: 0; }
.lb-tt > b { display: block; font-size: 1rem; line-height: 1.4; }
.lb-tt > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.lb-pf, .lb-v, .lb-st { font-size: .72rem; font-weight: 800; border-radius: 7px; padding: 2px 8px; }
.lb-pf.pc { background: #0ea5e933; color: #7dd3fc; }
.lb-pf.ps { background: #3b82f633; color: #93c5fd; }
.lb-v { background: #ffffff12; color: var(--mut, #a4aac4); }
.lb-st.ok { background: #22c55e26; color: #86efac; }
.lb-st.wait { background: #f59e0b26; color: #fcd34d; }
.lb-cr { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "l l l" "v e c"; align-items: center; gap: 4px 6px; margin-bottom: 8px; }
.lb-cr small { grid-area: l; color: var(--mut, #a4aac4); font-weight: 700; font-size: .78rem; }
.lb-cr code { grid-area: v; background: #00000059; border: 1px solid var(--line, #262a44); border-radius: 10px; padding: 8px 10px; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; text-align: left; }
.lb-cr:not(:has(.lb-eye)) code { grid-column: v-start / e-end; }
.lb-cr .lb-eye { grid-area: e; }
.lb-cr .lb-cp { grid-area: c; }
.lb-cr.lb-ex { grid-template-areas: "l l" "v c"; grid-template-columns: 1fr auto; }
.lb-cr pre { grid-area: v; margin: 0; white-space: pre-wrap; word-break: break-word; background: #00000059; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: .86rem; }
.lb-cp, .lb-eye { border: 1px solid var(--line2, #323859); background: #8b5cf6; color: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 800; font-size: .82rem; cursor: pointer; }
.lb-eye { background: #ffffff10; padding: 8px 10px; }
.lb-cp.copied { background: #16a34a; }
.lb-hr { border: 0; border-top: 1px dashed var(--line, #262a44); margin: 10px 0; }
.lb-wait { color: var(--mut, #a4aac4); font-size: .88rem; margin: 0; }
.lb-guides { margin-top: 12px; display: grid; gap: 8px; }
.lb-g { background: #ffffff06; border: 1px solid var(--line, #262a44); border-radius: 12px; }
.lb-g summary { cursor: pointer; padding: 11px 14px; font-weight: 800; }
.lb-gt { padding: 0 14px 14px; font-size: .9rem; line-height: 1.9; color: var(--txt, #eef0fa); }
.lb-empty { padding: 40px 10px; }
.lb-empty p { color: var(--mut, #a4aac4); }

/* حسابي: الكاش باك والدعوة */
.lib-cta { margin-top: 10px; }
.rf-box { margin: 12px 0; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, #8b5cf61f, #22c55e14); border: 1px solid #8b5cf64d; }
.rf-h { display: flex; gap: 12px; align-items: center; }
.rf-ic { font-size: 1.8rem; }
.rf-h > div > b { font-size: 1.15rem; display: block; }
.rf-h small b { color: #86efac; }
.rf-h small { color: var(--mut, #a4aac4); }
.rf-inv { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #ffffff1f; }
.rf-inv p { margin: 4px 0 10px; color: var(--mut, #a4aac4); font-size: .92rem; }
.rf-link { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rf-link .btn { flex: 1 0 auto; justify-content: center; }
.rf-link code { flex: 1 1 100%; min-width: 0; background: #00000059; border: 1px solid var(--line, #262a44); border-radius: 10px; padding: 8px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.rf-box .rf-link a.rf-wa { background: #16a34a; color: #fff; border: 0; }
.rf-n { flex-basis: 100%; color: #b79cff; font-weight: 700; }
.rf-err { color: var(--mut, #a4aac4); }
.rf-log { margin-top: 12px; font-size: .88rem; }
.rf-log summary { cursor: pointer; font-weight: 800; color: var(--mut, #a4aac4); }
.rf-log > div { display: grid; grid-template-columns: 60px 1fr auto; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #ffffff14; }
.rf-log .y { color: #86efac; font-weight: 800; } .rf-log .x { color: #fca5a5; font-weight: 800; }
.rf-log small { color: var(--dim, #757c9a); }
.rf-ban { background: linear-gradient(135deg, #8b5cf6, #6d3ce0); color: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; font-weight: 700; text-align: center; }
.spin.sm { width: 18px; height: 18px; border-width: 2px; }

/* ⚡ تسليم فوري */
.jx-inst { margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: linear-gradient(90deg, #f59e0b26, #f59e0b0a); border: 1px solid #f59e0b55; color: #fde68a; font-size: .9rem; line-height: 1.7; }
.jx-inst b { color: #fff; }
.jx-inst a { color: #fde68a; text-decoration: underline; }
html[data-theme="light"] .jx-inst { color: #92400e; } html[data-theme="light"] .jx-inst b { color: #78350f; }
.lib-menu { font-weight: 800; }
@media (max-width: 600px) {
  .lb-stats b { font-size: 1.15rem; }
  .lb-order { padding: 12px; }
  .lb-order > header .lb-help { margin-inline-start: 0; width: 100%; justify-content: center; }
}

/* 🎁 الهدايا */
.gf-wrap { padding-bottom: 50px; max-width: 980px; }
.gf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.gf-card { background: var(--card, #151829); border: 1px solid var(--line, #262a44); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.gf-art { aspect-ratio: 460/215; border-radius: 14px; background-size: cover; background-position: center; box-shadow: 0 10px 30px #ec48992e; }
.gf-card b { font-size: 1.1rem; margin-top: 4px; } .gf-card small { color: var(--mut, #a4aac4); margin-bottom: 6px; }
.gf-how, .gf-game { margin-top: 18px; background: #ffffff06; border: 1px solid var(--line, #262a44); border-radius: 18px; padding: 16px 18px; }
.gf-how ol { margin: 8px 0 0; padding-inline-start: 22px; line-height: 2.1; color: var(--txt, #eef0fa); }
.gf-game p { color: var(--mut, #a4aac4); margin: 6px 0 12px; line-height: 1.9; }
.gf-redeem { margin-top: 18px; padding: 16px 18px; border-radius: 18px; }
.gf-redeem h3, .gf-how h3, .gf-game h3 { font-size: 1.05rem; font-weight: 800; }
.gf-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gf-form .inp { flex: 1 1 180px; min-width: 0; text-align: left; letter-spacing: 1px; }
.gf-redeem .msg { margin-top: 8px; }

/* 👑 Elite Pass */
.ep-wrap { padding: 20px 16px 50px; max-width: 980px; }
.ep-hero { text-align: center; padding: 34px 18px 26px; border-radius: 24px; background: radial-gradient(120% 120% at 50% 0%, #f59e0b33, transparent 60%), linear-gradient(160deg, #241b45, #11142a); border: 1px solid #f59e0b55; }
.ep-crown { font-size: 3rem; filter: drop-shadow(0 6px 20px #f59e0b88); }
.ep-hero h1 { font-size: 2.2rem; font-weight: 900; letter-spacing: 1px; margin: 4px 0; background: linear-gradient(90deg, #fde68a, #f59e0b, #c084fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ep-hero p { color: var(--mut, #a4aac4); margin: 0 0 12px; }
.ep-price b { font-size: 2rem; font-weight: 900; } .ep-price small { color: var(--mut, #a4aac4); font-weight: 700; }
#epState { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ep-buy { min-width: 220px; font-size: 1.05rem; padding: 12px 24px; }
.ep-on { background: #22c55e1f; border: 1px solid #22c55e55; color: #bbf7d0; border-radius: 12px; padding: 8px 14px; }
.ep-perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; margin: 18px 0; }
.ep-perks > div { background: var(--card, #151829); border: 1px solid var(--line, #262a44); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.ep-perks span { font-size: 1.6rem; } .ep-perks b { font-size: 1.02rem; } .ep-perks small { color: var(--mut, #a4aac4); line-height: 1.6; }
.ep-h { font-size: 1.1rem; font-weight: 800; margin: 22px 0 10px; }
.ep-free { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); gap: 10px; }
.ep-g { background: var(--card, #151829); border: 1px solid var(--line, #262a44); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.ep-cv { aspect-ratio: 460/215; border-radius: 10px; overflow: hidden; background: #241b45; display: grid; place-items: center; }
.ep-cv img { width: 100%; height: 100%; object-fit: cover; }
.ep-g b { font-size: .88rem; line-height: 1.4; }
.ep-note { color: var(--dim, #757c9a); font-size: .85rem; margin-top: 18px; text-align: center; }
.ep-badge { display: inline-block; margin-top: 6px; font-size: .8rem; font-weight: 800; color: #fde68a; background: #f59e0b22; border: 1px solid #f59e0b55; border-radius: 9px; padding: 2px 10px; text-decoration: none; }
.ep-badge.on { color: #fff; background: linear-gradient(90deg, #f59e0b, #8b5cf6); border: 0; }

/* 📅 الإصدارات القادمة + حجز مسبق */
.up-wrap { padding-bottom: 50px; max-width: 1100px; }
.up-m { font-size: 1.1rem; font-weight: 800; margin: 18px 0 10px; color: #b79cff; }
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.up-card { background: var(--card, #151829); border: 1px solid var(--line, #262a44); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.up-cv { position: relative; aspect-ratio: 460/215; background: #241b45; display: grid; place-items: center; font-size: 2rem; }
.up-cv img { width: 100%; height: 100%; object-fit: cover; }
.up-d { position: absolute; top: 8px; inset-inline-start: 8px; background: #000000b3; color: #fde68a; font-size: .78rem; font-weight: 800; border-radius: 8px; padding: 2px 9px; }
.up-b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.up-b > div { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .up-b small { color: var(--mut, #a4aac4); font-weight: 700; }
.up-b p { color: var(--mut, #a4aac4); font-size: .86rem; margin: 0; }
.up-b .btn { margin-top: auto; align-self: flex-start; }
.jx-pre { margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: linear-gradient(90deg, #8b5cf633, #8b5cf60d); border: 1px solid #8b5cf680; color: #ddd6fe; font-size: .9rem; line-height: 1.7; }
.jx-pre b { color: #fff; }
.jx-pre-b { position: absolute; bottom: 8px; inset-inline-end: 8px; z-index: 3; background: #8b5cf6; color: #fff; font-size: .72rem; font-weight: 800; border-radius: 8px; padding: 2px 8px; }

/* السلة: هدية */
.px-gift { background: #ec48990f; border: 1px dashed #ec489966; border-radius: 12px; padding: 10px 12px; }
.px-chk { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.px-chk input { width: 18px; height: 18px; accent-color: #ec4899; }
.px-gf { display: grid; gap: 8px; margin-top: 10px; } .px-gf small { color: var(--mut, #a4aac4); }
.px-gfsend { margin-top: 10px; background: #ec4899 !important; color: #fff !important; border: 0 !important; }
.px-menu { font-weight: 700; }
html[data-theme="light"] .jx-pre { color: #4c1d95; } html[data-theme="light"] .jx-pre b { color: #2e1065; }

/* 📣 التسويق داخل الموقع */
.mk-new { width: min(1200px, calc(100% - 32px)); margin: 26px auto 0; }
.mk-badge { display: inline-block; vertical-align: middle; font-size: .7rem; font-weight: 800; background: #ec4899; color: #fff; border-radius: 8px; padding: 1px 8px; margin-inline-start: 6px; }
.mk-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; scroll-snap-type: x mandatory; }
.mk-card { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; text-decoration: none; color: var(--txt, #eef0fa); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, transparent), var(--card, #151829) 70%); border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line, #262a44)); transition: transform .15s, border-color .15s; min-height: 140px; }
.mk-card:hover { transform: translateY(-3px); border-color: var(--c); }
.mk-card .mk-ic { font-size: 1.7rem; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 25%, transparent); margin-bottom: 4px; }
.mk-card b { font-size: 1rem; } .mk-card small { color: var(--mut, #a4aac4); line-height: 1.6; }
.mk-card.gold { background: linear-gradient(160deg, #f59e0b38, #8b5cf626 60%, var(--card, #151829)); border-color: #f59e0b88; }
.mk-card.gold b { color: #fde68a; }
.mk-pass { width: min(1200px, calc(100% - 32px)); margin: 16px auto 0; }
.mk-pass-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-radius: 22px; background: radial-gradient(90% 140% at 100% 0%, #f59e0b40, transparent 55%), linear-gradient(120deg, #2a1d55, #151829); border: 1px solid #f59e0b66; position: relative; overflow: hidden; }
.mk-pass-in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #ffffff14 45%, transparent 60%); transform: translateX(-100%); animation: mkShine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes mkShine { 60%, 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .mk-pass-in::after { animation: none; display: none; } }
.mk-pass-t { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 320px; }
.mk-crown { font-size: 2.4rem; filter: drop-shadow(0 4px 14px #f59e0b99); }
.mk-pass-t > div > b { font-size: 1.35rem; font-weight: 900; background: linear-gradient(90deg, #fde68a, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mk-pass-t p { margin: 2px 0 0; color: #ddd6fe; } .mk-pass-t p b { color: #fff; }
.mk-pass-a { display: flex; align-items: center; gap: 14px; }
.mk-pass-p b { font-size: 1.5rem; font-weight: 900; } .mk-pass-p small { color: var(--mut, #a4aac4); }
.mk-pass-btn { background: linear-gradient(90deg, #f59e0b, #eab308) !important; color: #1c1206 !important; border: 0 !important; font-weight: 900; padding: 11px 20px; position: relative; z-index: 1; }
.mk-cb { margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: #22c55e14; border: 1px dashed #22c55e66; font-size: .88rem; color: #bbf7d0; }
.mk-cb b { color: #fff; } .mk-cb a { color: #fde68a; text-decoration: none; } .mk-cb a:hover { text-decoration: underline; }
.mk-cart { margin-top: 12px; display: grid; gap: 8px; }
.mk-cb-l { font-size: .88rem; color: #bbf7d0; background: #22c55e14; border-radius: 10px; padding: 8px 10px; } .mk-cb-l b { color: #fff; }
.mk-up { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fde68a; background: linear-gradient(90deg, #f59e0b22, #8b5cf61a); border: 1px solid #f59e0b55; border-radius: 12px; padding: 10px 12px; font-size: .86rem; line-height: 1.6; }
.mk-up b { color: #fff; } .mk-up span:first-child { font-size: 1.3rem; } .mk-up span:last-child { margin-inline-start: auto; }
.mk-done { display: grid; gap: 10px; margin-top: 18px; }
.mk-done-c { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--txt, #eef0fa); background: var(--card, #151829); border: 1px solid var(--line, #262a44); border-radius: 16px; padding: 12px 14px; }
.mk-done-c > span { font-size: 1.6rem; } .mk-done-c small { display: block; color: var(--mut, #a4aac4); }
.mk-done-c.gold { border-color: #f59e0b66; background: linear-gradient(120deg, #f59e0b1f, var(--card, #151829)); }
.mk-wn-bg { position: fixed; inset: 0; z-index: 120; background: #000000a6; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .25s; }
.mk-wn-bg.show { opacity: 1; }
.mk-wn { position: relative; width: min(420px, 100%); background: linear-gradient(170deg, #241b45, #11142a 60%); border: 1px solid #8b5cf666; border-radius: 22px; padding: 22px 20px 18px; box-shadow: 0 30px 80px #000c; transform: translateY(14px) scale(.98); transition: transform .25s; color: var(--txt, #eef0fa); }
.mk-wn-bg.show .mk-wn { transform: none; }
.mk-wn-x { position: absolute; top: 12px; inset-inline-end: 12px; background: #ffffff14; border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.mk-wn-h { text-align: center; } .mk-wn-h span { font-size: 2.2rem; } .mk-wn-h h3 { margin: 4px 0 12px; font-size: 1.2rem; font-weight: 900; }
.mk-wn ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.mk-wn li { display: flex; gap: 12px; align-items: center; background: #ffffff08; border-radius: 12px; padding: 8px 12px; }
.mk-wn li > span { font-size: 1.4rem; } .mk-wn li small { display: block; color: var(--mut, #a4aac4); }
.mk-wn-pass { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; background: linear-gradient(100deg, #f59e0b40, #8b5cf633); border: 1px solid #f59e0b88; border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; }
.mk-wn-pass > span { font-size: 1.6rem; } .mk-wn-pass b { color: #fde68a; } .mk-wn-pass small { display: block; color: #ddd6fe; } .mk-wn-pass i { margin-inline-start: auto; font-style: normal; }
@media (max-width: 600px) {
  .mk-row { grid-auto-columns: 72%; }
  .mk-pass-in { padding: 16px; } .mk-pass-a { width: 100%; justify-content: space-between; }
}
