/* ============================================================
   app.css — نسخة محلية منわかった أدوات التنسيق المستعملة في العروض
   (بديل يعمل دون CDN — يضمن ظهور التنسيقات حتى مع حجب الشبكات الخارجية)
   ============================================================ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#0B1020;color:#f1f5f9;font-family:'IBM Plex Sans Arabic',Tahoma,'Segoe UI',Arial,sans-serif}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
input{font:inherit;color:inherit}
button:disabled{cursor:not-allowed}
@font-face{font-family:'Amiri Quran';src:url('fonts/amiri-quran-400.woff2?v=1') format('woff2');font-weight:400;font-style:normal;font-display:swap}
.font-quran{font-family:'Amiri Quran','KFGQPC Uthman Taha Naskh',serif}

/* layout */
.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}
.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}
.items-center{align-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}
.justify-between{justify-content:space-between}.justify-center{justify-content:center}
.relative{position:relative}.absolute{position:absolute}.left-3{left:.75rem}.top-3{top:.75rem}
.mx-auto{margin-left:auto;margin-right:auto}.mx-2{margin-left:.5rem;margin-right:.5rem}.mr-1{margin-right:.25rem}
.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}
.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-10{margin-top:2.5rem}
.mb-1{margin-bottom:.25rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}
.min-h-screen{min-height:100vh}.h-px{height:1px}.h-1\.5{height:.375rem}.h-2{height:.5rem}.h-4{height:1rem}
.h-9{height:2.25rem}.h-11{height:2.75rem}.h-16{height:4rem}.h-fit{height:fit-content}.h-full{height:100%}
.w-2{width:.5rem}.w-4{width:1rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-11{width:2.75rem}.w-16{width:4rem}
.w-28{width:7rem}.w-full{width:100%}
.max-w-md{max-width:28rem}.max-w-xl{max-width:36rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}
.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}
.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}
.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}
.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}
.px-8{padding-left:2rem;padding-right:2rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}
.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}
.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}
.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}
.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-8{padding-top:2rem;padding-bottom:2rem}
.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}
.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}
.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-cols-\[1fr_auto_1fr\]{grid-template-columns:1fr auto 1fr}
.space-y-2>*+*{margin-top:.5rem}
.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.text-center{text-align:center}.text-right{text-align:right}

/* type */
.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}
.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}
.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}
.text-xl{font-size:1.25rem;line-height:1.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}
.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}
.text-5xl{font-size:3rem;line-height:1}
.font-bold{font-weight:700}.font-extrabold{font-weight:800}
.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-loose{line-height:2}
.leading-\[2\]{line-height:2}.leading-\[2\.2\]{line-height:2.2}
.tabular-nums{font-variant-numeric:tabular-nums}

/* colors — text */
.text-white{color:#fff}.text-black{color:#000}
.text-slate-100{color:#f1f5f9}.text-slate-200{color:#e2e8f0}.text-slate-400{color:#94a3b8}.text-slate-500{color:#64748b}
.text-emerald-300{color:#6ee7b7}.text-emerald-400{color:#34d399}
.text-amber-300{color:#fcd34d}.text-orange-300{color:#fdba74}
.text-rose-300{color:#fda4af}.text-sky-300{color:#7dd3fc}.text-violet-300{color:#c4b5fd}

/* colors — bg */
.bg-\[\#0B1020\]{background-color:#0B1020}
.bg-white\/5{background-color:rgba(255,255,255,.05)}.bg-white\/10{background-color:rgba(255,255,255,.1)}
.bg-white\/\[\.02\]{background-color:rgba(255,255,255,.02)}.bg-white\/\[\.03\]{background-color:rgba(255,255,255,.03)}
.bg-white\/\[\.04\]{background-color:rgba(255,255,255,.04)}
.bg-black\/20{background-color:rgba(0,0,0,.2)}.bg-black\/30{background-color:rgba(0,0,0,.3)}.bg-black\/40{background-color:rgba(0,0,0,.4)}
.bg-emerald-500{background-color:#10b981}.bg-emerald-500\/5{background-color:rgba(16,185,129,.05)}
.bg-emerald-500\/10{background-color:rgba(16,185,129,.1)}.bg-emerald-500\/15{background-color:rgba(16,185,129,.15)}
.bg-emerald-500\/20{background-color:rgba(16,185,129,.2)}
.bg-amber-400{background-color:#fbbf24}.bg-amber-400\/5{background-color:rgba(251,191,36,.05)}
.bg-amber-400\/10{background-color:rgba(251,191,36,.1)}.bg-amber-400\/15{background-color:rgba(251,191,36,.15)}
.bg-amber-500\/10{background-color:rgba(245,158,11,.1)}.bg-amber-500\/15{background-color:rgba(245,158,11,.15)}
.bg-rose-500{background-color:#f43f5e}.bg-rose-500\/10{background-color:rgba(244,63,94,.1)}
.bg-sky-500{background-color:#0ea5e9}.bg-sky-500\/20{background-color:rgba(14,165,233,.2)}
.bg-violet-500\/10{background-color:rgba(139,92,246,.1)}.bg-violet-500\/15{background-color:rgba(139,92,246,.15)}
.bg-orange-500\/10{background-color:rgba(249,115,22,.1)}
.bg-gradient-to-l{background-image:linear-gradient(to left,var(--tw-from),var(--tw-to))}
.from-amber-300{--tw-from:#fcd34d}.from-emerald-400{--tw-from:#34d399}
.to-emerald-400{--tw-to:#34d399}.to-sky-400{--tw-to:#38bdf8}

/* borders */
.border{border-width:1px;border-style:solid;border-color:rgba(255,255,255,.12)}
.border-white\/10{border-color:rgba(255,255,255,.1)}
.border-amber-300\/50{border-color:rgba(252,211,77,.5)}.border-amber-400\/30{border-color:rgba(251,191,36,.3)}
.border-emerald-400\/60{border-color:rgba(52,211,153,.6)}.border-emerald-500\/30{border-color:rgba(16,185,129,.3)}
.border-emerald-500\/40{border-color:rgba(16,185,129,.4)}.border-emerald-500{border-color:#10b981}
.border-orange-500\/30{border-color:rgba(249,115,22,.3)}.border-rose-500{border-color:#f43f5e}
.border-rose-500\/30{border-color:rgba(244,63,94,.3)}.border-violet-500\/30{border-color:rgba(139,92,246,.3)}
.border-violet-500\/40{border-color:rgba(139,92,246,.4)}
.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}
.outline{outline-style:solid}.outline-2{outline-width:2px}.outline-none{outline:none}
.outline-amber-400\/60{outline-color:rgba(251,191,36,.6)}.outline-emerald-400\/60{outline-color:rgba(52,211,153,.6)}
.outline-rose-400\/60{outline-color:rgba(251,113,133,.6)}
.ring-2{--tw-ring-color:#34d399;box-shadow:0 0 0 2px var(--tw-ring-color)}
.ring-emerald-400{--tw-ring-color:#34d399}
.ring-offset-2.ring-2{box-shadow:0 0 0 2px #0B1020,0 0 0 4px var(--tw-ring-color,#34d399)}
.cursor-not-allowed{cursor:not-allowed}
.accent-emerald-500{accent-color:#10b981}

/* effects + interaction */
.shadow-lg{box-shadow:0 10px 15px -3px rgba(0,0,0,.4)}
.shadow-amber-400\/25{box-shadow:0 8px 24px -8px rgba(251,191,36,.35)}
.transition{transition:all .2s ease}.transition-\[width\]{transition:width .1s linear}.duration-100{transition-duration:.1s}
.hover\:bg-white\/10:hover{background-color:rgba(255,255,255,.1)}
.hover\:bg-emerald-400:hover{background-color:#34d399}.hover\:bg-amber-300:hover{background-color:#fcd34d}
.hover\:bg-rose-400:hover{background-color:#fb7185}.hover\:bg-sky-400:hover{background-color:#38bdf8}
.hover\:border-amber-400\/60:hover{border-color:rgba(251,191,36,.6)}
.hover\:border-emerald-400\/60:hover{border-color:rgba(52,211,153,.6)}
.hover\:border-emerald-500\/50:hover{border-color:rgba(16,185,129,.5)}
.hover\:border-rose-400\/60:hover{border-color:rgba(251,113,133,.6)}
.focus\:border-emerald-500:focus{border-color:#10b981;outline:none}
@keyframes tw-pulse{0%,100%{opacity:1}50%{opacity:.35}}.animate-pulse{animation:tw-pulse 2s ease-in-out infinite}

/* responsive */
@media (min-width:640px){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:768px){
.md\:p-5{padding:1.25rem}.md\:p-6{padding:1.5rem}.md\:p-8{padding:2rem}.md\:p-10{padding:2.5rem}
.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}
.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\:text-5xl{font-size:3rem;line-height:1}
.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1024px){
.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.lg\:grid-cols-\[1fr_320px\]{grid-template-columns:1fr 320px}
.lg\:grid-cols-\[280px_1fr\]{grid-template-columns:280px 1fr}
.lg\:sticky{position:sticky}.lg\:top-4{top:1rem}}
@media (min-width:1280px){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ---------- روابط وأزرار عامة ---------- */
a{color:inherit;text-decoration:none}
button{font-family:inherit}
.btn-primary{display:inline-block;border-radius:.9rem;background:#10b981;color:#fff;font-weight:800;padding:.9rem 2.2rem;box-shadow:0 10px 24px -8px rgba(16,185,129,.5)}
.btn-primary:hover{background:#34d399}
.btn-gold{display:inline-block;border-radius:.9rem;background:#fbbf24;color:#000;font-weight:800;padding:.9rem 2.2rem;box-shadow:0 10px 24px -8px rgba(251,191,36,.4)}
.btn-rose{display:inline-block;border-radius:.9rem;background:#f43f5e;color:#fff;font-weight:800;padding:.9rem 2.2rem}
.hero-grad{background:linear-gradient(135deg,#34d399,#38bdf8 60%,#a78bfa);-webkit-background-clip:text;background-clip:text;color:transparent}
.ico{width:52px;height:52px;border-radius:1rem;display:flex;align-items:center;justify-content:center;margin:0 auto}
.ico svg{width:28px;height:28px}

/* ---------- شريط التنقل السفلي الموحد ---------- */
.tabbar{position:fixed;bottom:0;left:0;right:0;z-index:50;display:flex;gap:2px;justify-content:space-around;align-items:stretch;background:rgba(11,16,32,.92);backdrop-filter:blur(10px);border-top:1px solid rgba(255,255,255,.12);padding:.4rem .3rem calc(.4rem + env(safe-area-inset-bottom))}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10px;font-weight:700;color:#94a3b8;border-radius:.7rem;padding:.35rem 0}
.tab .ti{font-size:17px;line-height:1}
.tab.on{color:#34d399;background:rgba(16,185,129,.12)}
.tab.theme{color:#fcd34d}
@media print{
.tabbar{display:none!important}
body{padding-bottom:0!important}
}

/* ---------- الوضع النهاري ---------- */
[data-theme="light"] body{background:#eef2f7;color:#0f172a}
[data-theme="light"] .bg-\[\#0B1020\]{background-color:#eef2f7}
[data-theme="light"] [class*="bg-white/"]{background-color:#ffffff}
[data-theme="light"] .bg-black\/20,[data-theme="light"] .bg-black\/30,[data-theme="light"] .bg-black\/40{background-color:#f1f5f9}
[data-theme="light"] [class*="border-white/"]{border-color:#e2e8f0}
[data-theme="light"] .text-slate-100{color:#0f172a}
[data-theme="light"] .text-slate-200{color:#1e293b}
[data-theme="light"] .text-slate-400{color:#475569}
[data-theme="light"] .text-slate-500{color:#64748b}
[data-theme="light"] .tabbar{background:rgba(255,255,255,.94);border-top-color:#e2e8f0}
[data-theme="light"] .tab{color:#64748b}
[data-theme="light"] .tab.on{color:#059669;background:rgba(16,185,129,.12)}
[data-theme="light"] .ring-offset-2.ring-2{box-shadow:0 0 0 2px #ffffff,0 0 0 4px var(--tw-ring-color,#34d399)}

/* ---------- الواجهة الرئيسية: شريط علوي، زخارف، حركات ---------- */
.hidden{display:none}
.nav-glass{position:sticky;top:0;z-index:40;background:rgba(11,16,32,.82);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.1)}
[data-theme="light"] .nav-glass{background:rgba(255,255,255,.88);border-bottom-color:#e2e8f0}
.display-fluid{font-size:clamp(2.1rem,5.5vw,3.9rem);line-height:1.3;font-weight:800}
.orb{position:absolute;border-radius:9999px;filter:blur(70px);opacity:.45;pointer-events:none;animation:drift 9s ease-in-out infinite alternate}
.orb-a{width:320px;height:320px;background:#10b981}
.orb-b{width:280px;height:280px;background:#0ea5e9;animation-delay:-4s}
@keyframes drift{to{transform:translate(34px,-26px) scale(1.08)}}
.pattern{background-image:radial-gradient(rgba(255,255,255,.08) 1px,transparent 1px);background-size:22px 22px}
[data-theme="light"] .pattern{background-image:radial-gradient(rgba(15,23,42,.08) 1px,transparent 1px)}
.marquee-wrap{overflow:hidden;direction:ltr;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.marquee{display:inline-flex;gap:.6rem;white-space:nowrap;animation:mq 26s linear infinite;padding:.4rem 0}
@keyframes mq{to{transform:translateX(-50%)}}
.reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none}.marquee{animation:none}.orb{animation:none}}
.card-glow{transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
.card-glow:hover{transform:translateY(-6px);border-color:rgba(52,211,153,.55);box-shadow:0 18px 40px -18px rgba(16,185,129,.45)}
.pick{cursor:pointer;border-radius:.7rem;padding:.15rem .6rem;transition:all .25s ease}
.pick:hover{background:rgba(255,255,255,.08)}
.pick.hit{background:rgba(16,185,129,.18);outline:2px solid rgba(52,211,153,.65)}
.pick.miss{background:rgba(244,63,94,.14);outline:2px solid rgba(244,63,94,.55)}
details.faq{border:1px solid rgba(255,255,255,.1);border-radius:1rem;background:rgba(255,255,255,.03);padding:1rem 1.25rem}
[data-theme="light"] details.faq{border-color:#e2e8f0;background:#fff}
details.faq summary{cursor:pointer;font-weight:800}
details.faq p{margin:.6rem 0 0}
@media (min-width:768px){
.md\:flex{display:flex}
.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}

body{padding-bottom:70px}
.bg-\[\#141b31\]{background-color:#141b31}
.max-w-lg{max-width:32rem}
.border-dashed{border-style:dashed}
/* تباين الوضع النهاري: تغميق الألوان الفاتحة لقراءة مريحة */
[data-theme="light"] .text-emerald-300{color:#047857}
[data-theme="light"] .text-amber-300{color:#b45309}
[data-theme="light"] .text-sky-300{color:#0369a1}
[data-theme="light"] .text-violet-300{color:#6d28d9}
[data-theme="light"] .text-rose-300{color:#be123c}
[data-theme="light"] .text-orange-300{color:#c2410c}
