/* طبقة قسورة المشتركة لكل المواقع: لوحة الأوامر، الوضع الداكن، شريط التقدم، الأزرار العائمة، الوصولية */
:root { --q-pill: #1A130F; --q-panel: #FFFCF8; --q-ink: #1F1712; --q-muted: #7B6F66; --q-line: #EEE3D8; --q-brand: #F27A1A; --q-hover: #FFF4E9; --q-acc: #B44F05; --q-shadow: 0 24px 60px -20px rgba(31, 23, 18, .55); }
html[data-q-theme="gray"] { --q-panel: #F5F6F7; --q-ink: #1B1C1F; --q-muted: #6B6F76; --q-line: #D3D6DB; --q-hover: #E8EAEE; }
html[data-q-theme="dark"] { --q-panel: #231A14; --q-ink: #F1E8DF; --q-muted: #9C8F84; --q-line: #3A2E26; --q-hover: #33200F; --q-acc: #FFB06B; --q-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9); }

/* ---- الوضع الداكن (يشتغل على كل مواقع قسورة لأنها تشترك في نفس متغيرات الألوان) ---- */
html[data-q-theme="dark"] { color-scheme: dark; --ink: #F1E8DF; --ink-2: #CDBFB3; --muted: #9C8F84; --line: #3A2E26; --bg: #17110D; --brand-50: #33200F; --brand-100: #4A2E14; --brand-700: #FF9E4D; --none: #3A2E26; }
html[data-q-theme="dark"] body { background: var(--bg, #17110D); color: var(--ink, #F1E8DF); }
html[data-q-theme="dark"] :is(.card, .chips, .dg, .nav2, .note, .quiz, .search, .tbl, .f, .sub, .swap, .tabs, .tabs button, .back, .bar2, .gc, .add, .cur, .banner, .box, .demo, .faq, .feat, .step, .notes, .panel, .site-card, .plan, .kpi, .form-card, .chart-card, .feature-row, .feature-nav, .pain, .float-card, .special-card, .contact-list, .act-tile, .act-chips, .act-tabs, .rows, .btn-light, .plain, .sites-ribbon, .cat, .ad, .sc, .empty, .my, .seg label, .subs button, .searchbox, .filters select, .btn.ghost, .modal, .sheet, .tile, .item, .row, .list-item, .stat, .kpi-card, .pricing, .faq-item, .accordion, details, pre, code, blockquote) { background-color: #231A14 !important; color: var(--ink, #F1E8DF); border-color: var(--line, #3A2E26); }
html[data-q-theme="dark"] :is(input, select, textarea, table, th, td) { background-color: #1F1611 !important; color: var(--ink, #F1E8DF); border-color: var(--line, #3A2E26); }
html[data-q-theme="dark"] :is(.btn.ghost, .btn-light) { color: var(--brand-700, #FF9E4D) !important; border-color: var(--brand, #F27A1A); }
html[data-q-theme="dark"] :is(h1, h2, h3, h4, p, li, label, small, dd, dt, span, td, th) { color: inherit; }
html[data-q-theme="dark"] :is(.ad, .card, .tile):hover { box-shadow: none; }
html[data-q-theme="dark"] img:not([src*="logo"]):not(.q-keep) { filter: brightness(.9); }
html[data-q-theme="dark"] .section.alt, html[data-q-theme="dark"] .alt { background: #1F1611 !important; }

/* ---- الوضع الرمادي: خلفية رمادية هادئة مريحة للعين مع بطاقات فاتحة ---- */
html[data-q-theme="gray"] { --bg: #E9EBEE; --ink: #1B1C1F; --ink-2: #3F4248; --muted: #6B6F76; --line: #D3D6DB; --brand-50: #F3F4F6; --brand-100: #E4E6EA; --night: #26282D; }
html[data-q-theme="gray"] body { background: var(--bg, #E9EBEE); color: var(--ink, #1B1C1F); }
html[data-q-theme="gray"] :is(.card, .ad, .cat, .tile, .site-card, .plan, .kpi, .box, .note, .tbl, .search, .searchbox, .form-card, .chart-card, .feature-row, .pain, .float-card, .special-card, .faq, .step, .feat, .demo, .gc, .sc, .empty, .my, .panel, .quiz, .dg, .nav2) { background-color: #F7F8F9 !important; border-color: var(--line, #D3D6DB); box-shadow: none; }
html[data-q-theme="gray"] :is(input, select, textarea) { background-color: #fff !important; border-color: var(--line, #D3D6DB); }
html[data-q-theme="gray"] .section.alt, html[data-q-theme="gray"] .alt { background: #DFE2E6 !important; }

/* ---- زر الثيم العائم ---- */
.q-th { position: fixed; bottom: 18px; left: 18px; z-index: 9990; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); background: var(--q-pill); color: #F4ECE4; font-size: 1.15rem; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); display: inline-flex; align-items: center; justify-content: center; }
.q-th:hover { background: #2A1F18; }
.q-thm { position: fixed; bottom: 68px; left: 18px; z-index: 9991; background: var(--q-panel); color: var(--q-ink); border: 1px solid var(--q-line); border-radius: 14px; padding: 6px; box-shadow: var(--q-shadow); display: none; flex-direction: column; gap: 2px; min-width: 200px; direction: rtl; font-family: 'Zain', 'Segoe UI', Tahoma, sans-serif; }
.q-thm.on { display: flex; }
.q-thm button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; background: transparent; border: 0; color: inherit; font: 700 .9rem/1.6 inherit; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.q-thm button:hover, .q-thm button[aria-checked="true"] { background: var(--q-hover); }
.q-thm button[aria-checked="true"]::after { content: "✓"; margin-inline-start: auto; color: var(--q-brand); }
.q-thm .q-sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--q-line); flex: none; }

/* ---- الوصولية ---- */
.q-skip { position: fixed; top: -60px; inset-inline-start: 12px; background: var(--q-brand); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 10000; font-weight: 800; transition: top .15s; }
.q-skip:focus { top: 12px; outline: 3px solid #fff; }
:focus-visible { outline: 3px solid var(--q-brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---- شريط تقدم القراءة ---- */
.q-prog { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--q-brand), #FFB06B); z-index: 9999; pointer-events: none; transition: width .08s linear; }

/* ---- الزر العائم ---- */
/* مسافة تحت فوتر كل المواقع عشان زرار البحث العايم (ارتفاعه ~58px من تحت) ما يغطيش آخر سطر */
footer.foot, footer.footer { padding-bottom: 76px; }
.q-pill { position: fixed; bottom: 18px; left: 68px; z-index: 9990; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 99px; background: var(--q-pill); color: #F4ECE4; border: 1px solid rgba(255, 255, 255, .12); font: 700 .88rem/1 'Zain', 'Segoe UI', Tahoma, sans-serif; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); direction: rtl; }
.q-pill:hover { background: #2A1F18; }
.q-pill img { width: 22px; height: 22px; display: block; }
.q-pill kbd { font: 700 .72rem/1 ui-monospace, Consolas, monospace; background: rgba(255, 255, 255, .14); padding: 3px 6px; border-radius: 6px; color: #FFD9B8; }
.q-top { position: fixed; bottom: 18px; right: 18px; z-index: 9990; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--q-line); background: var(--q-panel); color: var(--q-ink); font-size: 1.2rem; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; }
.q-top.on { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 600px) { .q-pill span.q-lbl, .q-pill kbd { display: none; } .q-pill { padding: 9px; } }

/* ---- لوحة الأوامر ---- */
.q-ov { position: fixed; inset: 0; background: rgba(20, 12, 8, .55); backdrop-filter: blur(4px); z-index: 9995; display: none; align-items: flex-start; justify-content: center; padding: 8vh 12px; }
.q-ov.on { display: flex; }
.q-pal { width: min(680px, 100%); max-height: 80vh; display: flex; flex-direction: column; background: var(--q-panel); color: var(--q-ink); border-radius: 18px; box-shadow: var(--q-shadow); overflow: hidden; direction: rtl; font-family: 'Zain', 'Segoe UI', Tahoma, sans-serif; border: 1px solid var(--q-line); }
.q-in { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--q-line); }
.q-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: inherit; font: 500 1.05rem/1.6 inherit; }
.q-in input::placeholder { color: var(--q-muted); }
.q-in kbd { font: 700 .72rem/1 ui-monospace, Consolas, monospace; border: 1px solid var(--q-line); padding: 3px 7px; border-radius: 6px; color: var(--q-muted); }
.q-res { overflow: auto; padding: 8px; }
.q-grp { font-size: .74rem; color: var(--q-muted); font-weight: 800; padding: 10px 10px 4px; letter-spacing: .02em; }
.q-it { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; text-decoration: none; color: inherit; }
.q-it[aria-selected="true"], .q-it:hover { background: var(--q-hover); }
.q-it i { font-style: normal; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--q-hover); flex: none; font-size: 1rem; }
.q-it b { font-weight: 800; font-size: .95rem; line-height: 1.5; display: block; }
.q-it small { display: block; color: var(--q-muted); font-size: .78rem; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-it .q-site { margin-inline-start: auto; font-size: .7rem; color: var(--q-muted); border: 1px solid var(--q-line); border-radius: 99px; padding: 1px 8px; flex: none; }
.q-it mark { background: #FFE4C8; color: #B44F05; border-radius: 3px; padding: 0 1px; }
html[data-q-theme="dark"] .q-it mark { background: #4A2E14; color: #FFB06B; }
.q-ft { display: flex; gap: 14px; padding: 8px 16px; border-top: 1px solid var(--q-line); color: var(--q-muted); font-size: .74rem; flex-wrap: wrap; }
.q-ft kbd { font: 700 .7rem/1 ui-monospace, Consolas, monospace; border: 1px solid var(--q-line); padding: 2px 5px; border-radius: 5px; }
.q-empty { padding: 30px 12px; text-align: center; color: var(--q-muted); }

/* ---- توست ---- */
.q-toast { position: fixed; bottom: 72px; left: 50%; transform: translate(-50%, 20px); background: var(--q-pill); color: #fff; padding: 10px 18px; border-radius: 99px; z-index: 9998; font: 700 .9rem/1.4 'Zain', 'Segoe UI', Tahoma, sans-serif; opacity: 0; transition: .2s; pointer-events: none; max-width: 92vw; text-align: center; direction: rtl; }
.q-toast.on { opacity: 1; transform: translate(-50%, 0); }
.q-toast.bad { background: #C8381F; }

/* ---- وقت القراءة ---- */
.q-rt { display: inline-block; font-size: .8rem; color: var(--muted, #7B6F66); background: var(--brand-50, #FFF4E9); border: 1px solid var(--line, #EEE3D8); border-radius: 99px; padding: 2px 10px; margin: 6px 0 10px; font-weight: 700; }

/* ---- الطباعة ---- */
@media print { .q-pill, .q-top, .q-prog, .q-ov, .q-toast, .q-skip, nav, footer, .foot, .top, .hero .actions, button, .btn { display: none !important; } body { background: #fff !important; color: #000 !important; } a::after { content: "" !important; } }

/* ---- هل كانت الصفحة مفيدة؟ ---- */
.q-fb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px auto 8px; padding: 12px 16px; border: 1px dashed var(--line, #D3D6DB); border-radius: 14px; background: var(--brand-50, #F3F4F6); color: var(--ink, #1B1C1F); font-family: 'Zain', 'Segoe UI', Tahoma, sans-serif; font-size: .95rem; max-width: 720px; direction: rtl; }
.q-fb .q-fbt { font-weight: 800; }
.q-fb button { font: 700 .9rem/1 inherit; padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--brand, #F27A1A); background: transparent; color: var(--brand-700, #B44F05); cursor: pointer; }
.q-fb button:hover { background: var(--brand, #F27A1A); color: #fff; }
.q-fb .q-fbf { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.q-fb .q-fbf input { flex: 1; min-width: 200px; padding: 8px 12px; border: 1.5px solid var(--line, #D3D6DB); border-radius: 10px; font: inherit; background: #fff; color: inherit; }
html[data-q-theme="dark"] .q-fb .q-fbf input { background: #1F1611; }
.q-fb .q-fbx { border-color: var(--line, #D3D6DB); color: var(--muted, #6B6F76); }
@media print { .q-fb { display: none !important; } }

/* ---- تجربة القراءة: فهرس، روابط عناوين، مشاركة، اقرأ أيضًا ---- */
.q-toc { margin: 10px 0 18px; padding: 10px 16px; border: 1px solid var(--line, #D3D6DB); border-radius: 14px; background: var(--brand-50, #F3F4F6); font-size: .95rem; direction: rtl; }
.q-toc summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; align-items: center; gap: 6px; }
.q-toc summary::-webkit-details-marker { display: none; }
.q-toc summary::after { content: "▾"; margin-inline-start: auto; color: var(--muted, #6B6F76); transition: .15s; }
.q-toc[open] summary::after { transform: rotate(180deg); }
.q-toc summary small { color: var(--muted, #6B6F76); font-weight: 400; }
.q-toc ol { margin: 8px 0 0; padding-inline-start: 20px; columns: 2; column-gap: 24px; }
.q-toc li { margin: 3px 0; break-inside: avoid; }
.q-toc a { color: var(--brand-700, #B44F05); text-decoration: none; }
.q-toc a:hover { text-decoration: underline; }
@media (max-width: 700px) { .q-toc ol { columns: 1; } }
.q-anc { margin-inline-start: 8px; font-size: .7em; opacity: 0; text-decoration: none; transition: .15s; vertical-align: middle; }
h2:hover .q-anc, h3:hover .q-anc, .q-anc:focus { opacity: .7; }
.q-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0 0; direction: rtl; font-family: 'Zain', 'Segoe UI', Tahoma, sans-serif; font-size: .9rem; }
.q-share .q-fbt { font-weight: 800; }
.q-share a, .q-share button { font: 700 .85rem/1 inherit; padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line, #D3D6DB); background: var(--q-panel, #fff); color: var(--ink, #1B1C1F); text-decoration: none; cursor: pointer; }
.q-share a:hover, .q-share button:hover { border-color: var(--brand, #F27A1A); color: var(--brand-700, #B44F05); }
.q-rel { margin: 22px 0 0; direction: rtl; font-family: 'Zain', 'Segoe UI', Tahoma, sans-serif; }
.q-rel h3 { font-size: 1.05rem; margin: 0 0 10px; }
.q-relg { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.q-reli { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line, #D3D6DB); border-radius: 14px; background: var(--q-panel, #fff); color: var(--ink, #1B1C1F); text-decoration: none; transition: .15s; }
.q-reli:hover { border-color: var(--brand, #F27A1A); transform: translateY(-1px); }
.q-reli i { font-style: normal; font-size: 1.3rem; flex: none; }
.q-reli b { display: block; font-size: .95rem; line-height: 1.5; }
.q-reli small { display: block; color: var(--muted, #6B6F76); font-size: .78rem; line-height: 1.4; margin-top: 2px; }
@media print { .q-share, .q-rel, .q-anc { display: none !important; } .q-toc { break-inside: avoid; } }

/* ---- اللغات داخل قائمة الوضع + اتجاه الطبقة في الصفحات اللاتينية ---- */
.q-thl { font-size: .74rem; color: var(--q-muted); font-weight: 800; padding: 8px 10px 2px; border-top: 1px solid var(--q-line); margin-top: 4px; }
.q-thn { font-size: .7rem; color: var(--q-muted); padding: 2px 10px 6px; }
.q-thm button small { color: var(--q-muted); font-weight: 400; }
html[dir="ltr"] :is(.q-pal, .q-thm, .q-fb, .q-share, .q-rel, .q-toc, .q-toast, .q-pill, .q-it) { direction: ltr; }
html[dir="ltr"] .q-pill, html[dir="ltr"] .q-th { left: auto; }
html[dir="ltr"] .q-th { right: 18px; }
html[dir="ltr"] .q-pill { right: 68px; }
html[dir="ltr"] .q-thm { left: auto; right: 18px; }
html[dir="ltr"] .q-top { right: auto; left: 18px; }
/* الفهرس والمشاركة: ألوان صريحة من الطبقة نفسها حتى لا يرث لون نص فاتح من خلفية داكنة (مثل هيرو الأكاديمية) */
.q-toc { background: var(--q-panel) !important; color: var(--q-ink) !important; border-color: var(--q-line) !important; text-align: start; }
.q-toc summary, .q-toc li { color: var(--q-ink) !important; }
.q-toc summary small, .q-toc li::marker { color: var(--q-muted) !important; }
.q-toc a { color: var(--q-acc) !important; }
.q-share .q-fbt, .q-rel h3 { color: inherit; }
.q-share a, .q-share button, .q-reli { background: var(--q-panel) !important; color: var(--q-ink) !important; border-color: var(--q-line) !important; }

/* أزرار المشاركة بلوجو كل تطبيق */
.q-share a, .q-share button { display: inline-flex !important; align-items: center; gap: 7px; font-family: 'Zain', 'Segoe UI', Tahoma, sans-serif !important; font-size: .88rem !important; font-weight: 700 !important; line-height: 1 !important; padding: 8px 14px 8px 12px !important; }
.q-si { width: 18px; height: 18px; flex: none; }
.q-s-wa .q-si { color: #25D366; } .q-s-tg .q-si { color: #229ED9; } .q-s-x .q-si { color: var(--q-ink); } .q-s-li .q-si { color: #0A66C2; } .q-cp .q-si { color: var(--q-brand); }
.q-share a.q-s-wa:hover { background: #25D366 !important; border-color: #25D366 !important; color: #fff !important; }
.q-share a.q-s-tg:hover { background: #229ED9 !important; border-color: #229ED9 !important; color: #fff !important; }
.q-share a.q-s-x:hover { background: #000 !important; border-color: #000 !important; color: #fff !important; }
.q-share a.q-s-li:hover { background: #0A66C2 !important; border-color: #0A66C2 !important; color: #fff !important; }
.q-share .q-cp:hover { background: var(--q-brand) !important; border-color: var(--q-brand) !important; color: #fff !important; }
.q-share a:hover .q-si, .q-share button:hover .q-si { color: #fff; }
/* لوجو قسورة بدل إيموجي الأسد في الكروت ونتائج البحث */
.q-lion { width: 1.35em; height: 1.35em; object-fit: contain; vertical-align: middle; border-radius: 6px; }
.q-reli i .q-lion { width: 30px; height: 30px; }

/* زر حساب قسورة الموحّد */
.q-ac { position: fixed; bottom: 68px; left: 18px; z-index: 9990; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); background: var(--q-pill); color: #F4ECE4 !important; font: 800 1.05rem/1 'Zain', 'Segoe UI', Tahoma, sans-serif; display: grid; place-items: center; text-decoration: none !important; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.q-ac:hover { background: #2A1F18; }
.q-ac.in { background: linear-gradient(135deg, #F27A1A, #B44F05); border-color: transparent; }
html[dir="ltr"] .q-ac { left: auto; right: 18px; }
@media print { .q-ac { display: none !important; } }
/* بطاقات داخل الأقسام الداكنة (مثل «حلولنا» في الموقع الرئيسي) تبقى على خلفيتها الداكنة في كل الأوضاع، وإلا تصبح عناوينها البيضاء غير مقروءة */
html[data-q-theme="gray"] .section.dark .card, html[data-q-theme="dark"] .section.dark .card, html[data-q-theme="gray"] .dark .card { background-color: transparent !important; border-color: rgba(255, 255, 255, .14) !important; }
html[data-q-theme="gray"] .section.dark :is(h2, h3, h4), html[data-q-theme="dark"] .section.dark :is(h2, h3, h4) { color: #fff; }
html[data-q-theme="gray"] .section.dark :is(p, li, span, small):not(.btn):not(.eyebrow), html[data-q-theme="dark"] .section.dark :is(p, li, span, small):not(.btn):not(.eyebrow) { color: #E9DDD2; }

/* شريط اللغة والرجوع للموقع الرئيسي داخل رأس كل موقع */
.q-hb { display: inline-flex; align-items: center; gap: 8px; flex: none; font: 700 .85rem 'Zain', system-ui, sans-serif; z-index: 5; }
.q-hb .q-hl, .q-hb .q-hm { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 10px; border-radius: 99px; border: 1px solid rgba(128, 128, 128, .4); background: rgba(128, 128, 128, .14); color: inherit; text-decoration: none; cursor: pointer; }
.q-hb .q-hm:hover, .q-hb .q-hl:hover { background: rgba(128, 128, 128, .26); }
.q-hb select { appearance: none; -webkit-appearance: none; border: 0; background: transparent !important; color: inherit !important; width: auto; min-width: 0; box-shadow: none; height: auto; line-height: 1.2; font: inherit; cursor: pointer; padding: 0 2px; outline: none; }
.q-tools { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.q-tools .q-in { position: static; inset: auto; z-index: auto; box-shadow: none; height: 34px; border: 1px solid rgba(128, 128, 128, .4); background: rgba(128, 128, 128, .14); color: inherit !important; }
.q-tools .q-in:hover { background: rgba(128, 128, 128, .26); }
.q-tools .q-th.q-in, .q-tools .q-ac.q-in { width: 34px; font-size: .95rem; border-radius: 50%; padding: 0; gap: 0; display: inline-flex; align-items: center; justify-content: center; }
.q-tools .q-ac.q-in.in { background: linear-gradient(135deg, #F27A1A, #B44F05); border-color: transparent; color: #fff !important; }
.q-tools .q-pill.q-in { padding: 0 10px; gap: 6px; font-size: .82rem; color: inherit; }
.q-tools .q-pill.q-in img { width: 18px; height: 18px; }
.q-tools .q-pill.q-in kbd { font-size: .66rem; padding: 2px 5px; background: rgba(128, 128, 128, .2); color: inherit; opacity: .8; }
.q-hb-dk .q-tools .q-in, header .actions .q-tools .q-in { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff !important; }
.q-hb-dk .q-tools .q-in:hover, header .actions .q-tools .q-in:hover { background: rgba(255, 255, 255, .2); }
.q-thm.q-thm-in { bottom: auto; }
html.q-hdr .q-pill { left: 18px; }
html.q-hdr[dir="ltr"] .q-pill { left: auto; right: 18px; }
@media (max-width: 640px) { :has(> .q-hb):not(.q-hb-abs) { flex-wrap: wrap; row-gap: 8px; } }
.q-tools .q-in svg { width: 18px; height: 18px; min-width: 18px; flex: none; display: block; }
@media (max-width: 1100px) { .q-tools .q-pill.q-in .q-lbl, .q-tools .q-pill.q-in kbd { display: none; } .q-tools .q-pill.q-in { width: 34px; padding: 0; justify-content: center; } }
@media (max-width: 640px) { .q-tools .q-in { height: 30px; } .q-tools .q-th.q-in, .q-tools .q-ac.q-in, .q-tools .q-pill.q-in { width: 30px; } .q-tools { gap: 5px; } }
html .q-hb select, html[data-q-theme] .q-hb select { background-color: transparent !important; color: inherit !important; border: 0 !important; }
.q-hb select option { color: #1f1712; background: #fff; }
.q-hb .q-hm img { width: 20px; height: 20px; object-fit: contain; }
.q-hb-abs { position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); }
.q-hb-fix { position: fixed; top: 10px; inset-inline-end: 12px; z-index: 50; background: rgba(26, 19, 15, .85); color: #fff; padding: 4px; border-radius: 99px; }
header:has(> .q-hb-abs), header :has(> .q-hb-abs) { position: relative; }
@media (max-width: 640px) { .q-hb .q-hm span { display: none; } .q-hb .q-hl, .q-hb .q-hm { height: 30px; padding: 0 8px; } .q-hb { gap: 5px; } }
.q-hb { color: #2b211b; } .q-hb.q-hb-dk { color: #fff; } .q-hb.q-hb-dk .q-hl, .q-hb.q-hb-dk .q-hm { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); }
/* شريط الإعلان من لوحة تحكم المدير */
.q-bn { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 44px; font: 700 15px/1.6 'Zain', 'Segoe UI', Tahoma, sans-serif; text-align: center; direction: rtl; }
.q-bn a, .q-bn span { color: inherit; text-decoration: none; }
.q-bn a:hover { text-decoration: underline; }
.q-bn button { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .18); color: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.q-bn-info { background: #1A130F; color: #fff; } .q-bn-warn { background: #F27A1A; color: #fff; } .q-bn-ok { background: #1E9E62; color: #fff; }

/* ===== q3: لمسة ثلاثية الأبعاد مشتركة لكل المواقع (عمق، ظلال، إمالة، أجهزة عرض، شعار متحرك) — آمنة على Chrome 66 ===== */
/* الأجهزة: كل المقاسات بوحدة em لتكبر وتصغر مع حجم الخط */
.q3d-mon, .q3d-tab, .q3d-ph { position: relative; box-sizing: border-box; background: #120C08; background: linear-gradient(150deg, #3A2B21 0%, #1D1510 38%, #0B0705 100%); box-shadow: inset 0 0 0 .1em rgba(255, 255, 255, .14), 0 0 0 .14em #050302, 0 .3em .6em rgba(0, 0, 0, .3), 0 2em 3em -1em rgba(0, 0, 0, .45), 0 4.5em 6em -2.5em rgba(0, 0, 0, .55); }
.q3d-scr { position: relative; overflow: hidden; background: #F4EEE8; }
.q3d-scr img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.q3d-scr::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .06) 32%, rgba(255, 255, 255, 0) 33%, rgba(255, 255, 255, 0) 100%); }
.q3d-mon { width: 60em; padding: 1.1em 1.1em 0; border-radius: 1.3em 1.3em .6em .6em; }
.q3d-mon .q3d-scr { height: 35.6em; border-radius: .4em; }
.q3d-chin { height: 2.6em; display: block; position: relative; }
.q3d-chin::after { content: ''; position: absolute; left: 50%; top: .9em; width: .8em; height: .8em; margin-left: -.4em; border-radius: 50%; background: #F27A1A; box-shadow: 0 0 .8em rgba(242, 122, 26, .8); }
.q3d-neck { display: block; width: 9em; height: 6.4em; margin: 0 auto; background: linear-gradient(90deg, #2A1E17, #7A6252 42%, #4A382C 62%, #1D1510); -webkit-clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.q3d-foot { display: block; width: 26em; height: 1.5em; margin: 0 auto; border-radius: .5em .5em 1.5em 1.5em; background: linear-gradient(180deg, #8A705E 0%, #4A382C 30%, #1D1510 100%); box-shadow: 0 1.4em 2em -.6em rgba(0, 0, 0, .8), 0 0 3em rgba(242, 122, 26, .18); }
.q3d-tab { width: 25em; padding: 1.1em; border-radius: 2.1em; }
.q3d-tab .q3d-scr { height: 34em; border-radius: 1em; }
.q3d-tab::before { content: ''; position: absolute; top: .38em; left: 50%; width: .42em; height: .42em; margin-left: -.21em; border-radius: 50%; background: #2A2A30; box-shadow: inset 0 0 0 .1em #0A0A0C; }
.q3d-ph { width: 15em; padding: .62em; border-radius: 2.5em; }
.q3d-ph .q3d-scr { height: 30em; border-radius: 1.95em; }
.q3d-ph::before { content: ''; position: absolute; top: 7em; right: -.28em; width: .28em; height: 3.4em; border-radius: 0 .2em .2em 0; background: #2C2018; }
.q3d-notch { position: absolute; z-index: 2; top: 1.05em; left: 50%; width: 4.4em; height: 1.15em; margin-left: -2.2em; border-radius: 1em; background: #050302; }

/* قسم العرض: «شاهده على كل أجهزتك» */
.q3s { position: relative; overflow: hidden; clear: both; padding: 64px 16px 30px; color: #fff; text-align: center; direction: rtl; font-family: 'Zain', 'Segoe UI', Tahoma, sans-serif; background: #120C08; background: radial-gradient(60% 55% at 50% 0%, rgba(242, 122, 26, .24), rgba(242, 122, 26, 0) 70%), linear-gradient(180deg, #1D1510 0%, #120C08 100%); }
.q3s[dir="ltr"] { direction: ltr; }
.q3s::before { content: ''; position: absolute; left: -20%; right: -20%; bottom: -8%; height: 52%; pointer-events: none; background-image: linear-gradient(rgba(242, 122, 26, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(242, 122, 26, .16) 1px, transparent 1px); background-size: 56px 56px; -webkit-transform: perspective(520px) rotateX(68deg); transform: perspective(520px) rotateX(68deg); -webkit-transform-origin: 50% 100%; transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%); mask-image: linear-gradient(180deg, transparent 0%, #000 60%); }
.q3s-in { position: relative; max-width: 1080px; margin: 0 auto; }
html body .q3s h2.q3s-h { margin: 0 auto 10px; max-width: 18em; font: 800 2.1rem/1.25 'Zain', 'Segoe UI', Tahoma, sans-serif; color: #fff; letter-spacing: 0; border: 0; padding: 0; background: none; }
html body .q3s h2.q3s-h span { color: #FF9A45; }
html body .q3s p.q3s-p { margin: 0 auto 18px; max-width: 40em; color: #CDBFB3; font-size: 1.08rem; line-height: 1.75; }
.q3s-chips { list-style: none; margin: 0 0 8px; padding: 0; display: -webkit-box; display: flex; flex-wrap: wrap; justify-content: center; }
html body .q3s-chips li { margin: 4px; padding: 5px 14px; border-radius: 99px; color: #F6E8DB; font-size: .95rem; list-style: none; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 14px -8px rgba(0, 0, 0, .6); }
.q3s-stage { position: relative; margin: 26px auto 0; font-size: 10px; -webkit-perspective: 1700px; perspective: 1700px; direction: ltr; text-align: left; }
.q3s-fit { width: 100em; -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; }
.q3s-scene { position: relative; width: 100em; height: 58em; margin: 0 auto; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-transform: rotateX(var(--rx, 7deg)) rotateY(var(--ry, 0deg)); transform: rotateX(var(--rx, 7deg)) rotateY(var(--ry, 0deg)); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.q3s-scene > div { position: absolute; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; }
.q3s-d { left: 20em; top: 0; -webkit-animation: q3fa 7s ease-in-out infinite; animation: q3fa 7s ease-in-out infinite; }
.q3s-t { left: 3em; top: 17em; -webkit-transform: translateZ(5em) rotateY(16deg); transform: translateZ(5em) rotateY(16deg); -webkit-animation: q3fb 8s ease-in-out infinite; animation: q3fb 8s ease-in-out infinite; }
.q3s-m { left: 80em; top: 23em; -webkit-transform: translateZ(8em) rotateY(-16deg); transform: translateZ(8em) rotateY(-16deg); -webkit-animation: q3fc 6.5s ease-in-out infinite; animation: q3fc 6.5s ease-in-out infinite; }
.q3s-glow { left: 14em; top: 40em; width: 72em; height: 14em; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(242, 122, 26, .38), rgba(242, 122, 26, 0)); -webkit-transform: translateZ(-6em) rotateX(80deg); transform: translateZ(-6em) rotateX(80deg); }
@-webkit-keyframes q3fa { 50% { -webkit-transform: translateY(-.7em); } }
@keyframes q3fa { 50% { transform: translateY(-.7em); } }
@-webkit-keyframes q3fb { 0%, 100% { -webkit-transform: translateZ(5em) rotateY(16deg); } 50% { -webkit-transform: translateZ(5em) rotateY(16deg) translateY(-1.3em); } }
@keyframes q3fb { 0%, 100% { transform: translateZ(5em) rotateY(16deg); } 50% { transform: translateZ(5em) rotateY(16deg) translateY(-1.3em); } }
@-webkit-keyframes q3fc { 0%, 100% { -webkit-transform: translateZ(8em) rotateY(-16deg); } 50% { -webkit-transform: translateZ(8em) rotateY(-16deg) translateY(-1.6em); } }
@keyframes q3fc { 0%, 100% { transform: translateZ(8em) rotateY(-16deg); } 50% { transform: translateZ(8em) rotateY(-16deg) translateY(-1.6em); } }
.q3-off .q3s-scene > div, .q3-off .q3-coin-i, .q3-off .q3-cube, .q3-off .q3-ring, .q3-off .q3-orb { -webkit-animation-play-state: paused; animation-play-state: paused; }
@media (max-width: 680px) {
  .q3s { padding: 44px 16px 18px; }
  html body .q3s h2.q3s-h { font-size: 1.6rem; }
  html body .q3s p.q3s-p { font-size: 1rem; }
  .q3s-fit { width: 84em; }
  .q3s-scene { width: 84em; height: 60em; }
  .q3s-t { display: none; }
  .q3s-d { left: 0; }
  .q3s-m { font-size: 1.3em; left: auto; right: 2.4em; top: 14em; }
  .q3s-glow { left: 0; }
}
/* الشعار ثلاثي الأبعاد: عملة تدور */
.q3-coin { width: 84px; height: 84px; margin: 0 auto 18px; -webkit-perspective: 520px; perspective: 520px; }
.q3-coin-i { position: relative; width: 100%; height: 100%; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-animation: q3spin 9s linear infinite; animation: q3spin 9s linear infinite; }
.q3-coin-i > i { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; background: #B44F05; }
.q3-coin-i > b { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; -webkit-backface-visibility: hidden; backface-visibility: hidden; background: #F27A1A; background: radial-gradient(circle at 34% 28%, #FFC58F 0%, #FF9A45 30%, #F27A1A 58%, #B44F05 100%); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .22), inset 0 -6px 12px rgba(80, 30, 0, .35); }
.q3-coin-i > b img { position: absolute; top: 14%; left: 12%; width: 76%; height: 66%; object-fit: contain; -webkit-filter: drop-shadow(0 2px 0 rgba(90, 35, 0, .5)); filter: drop-shadow(0 2px 0 rgba(90, 35, 0, .5)); }
.q3-coin-i > b.fr { background: radial-gradient(circle at 34% 28%, #4A382C 0%, #1D1510 60%, #0B0705 100%); box-shadow: inset 0 0 0 4px #F27A1A, inset 0 0 0 7px rgba(255, 255, 255, .12), inset 0 -6px 14px rgba(0, 0, 0, .5); }
.q3-coin-i > b.bk img { -webkit-filter: brightness(.22); filter: brightness(.22); }
@-webkit-keyframes q3spin { from { -webkit-transform: rotateY(0deg); } to { -webkit-transform: rotateY(360deg); } }
@keyframes q3spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
/* شعار الهيدر: تمايل ثلاثي الأبعاد مع بروز */
.q3-logo { -webkit-filter: drop-shadow(0 1px 0 rgba(180, 79, 5, .9)) drop-shadow(0 2px 0 rgba(120, 50, 5, .7)) drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); filter: drop-shadow(0 1px 0 rgba(180, 79, 5, .9)) drop-shadow(0 2px 0 rgba(120, 50, 5, .7)) drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); -webkit-animation: q3sway 7s ease-in-out infinite; animation: q3sway 7s ease-in-out infinite; will-change: transform; }
.q3-logo:hover { -webkit-animation: q3flip 1.1s cubic-bezier(.3, .7, .3, 1) 1; animation: q3flip 1.1s cubic-bezier(.3, .7, .3, 1) 1; }
@-webkit-keyframes q3sway { 0%, 100% { -webkit-transform: perspective(420px) rotateY(-14deg); } 50% { -webkit-transform: perspective(420px) rotateY(14deg); } }
@keyframes q3sway { 0%, 100% { transform: perspective(420px) rotateY(-14deg); } 50% { transform: perspective(420px) rotateY(14deg); } }
@-webkit-keyframes q3flip { from { -webkit-transform: perspective(420px) rotateY(0deg); } to { -webkit-transform: perspective(420px) rotateY(360deg); } }
@keyframes q3flip { from { transform: perspective(420px) rotateY(0deg); } to { transform: perspective(420px) rotateY(360deg); } }
/* بطاقات بعمق وإمالة مع المؤشر */
.q3-t { transition: transform .18s ease-out, box-shadow .35s ease; }
.q3-t.q3-h { box-shadow: 0 1px 2px rgba(23, 17, 13, .08), 0 14px 26px -12px rgba(23, 17, 13, .3), 0 34px 60px -34px rgba(242, 122, 26, .45); }
.q3-gl { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 58%); z-index: 3; }
.q3-h > .q3-gl { opacity: 1; }
/* أزرار بارزة */
.q3-btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -3px 0 rgba(0, 0, 0, .2), 0 8px 18px -8px rgba(0, 0, 0, .45); transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.q3-btn:hover { -webkit-transform: translateY(-2px); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -3px 0 rgba(0, 0, 0, .2), 0 14px 24px -10px rgba(0, 0, 0, .5); }
.q3-btn:active { -webkit-transform: translateY(1px); transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 4px 10px -6px rgba(0, 0, 0, .45); }
/* زخرفة الهيرو: أشكال ثلاثية الأبعاد على الأطراف تتحرك قليلًا مع المؤشر */
.q3-deco { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; pointer-events: none; }
.q3-pl { position: absolute; -webkit-transform: translate3d(calc(var(--px, 0) * var(--k, 10px)), calc(var(--py, 0) * var(--k, 10px)), 0); transform: translate3d(calc(var(--px, 0) * var(--k, 10px)), calc(var(--py, 0) * var(--k, 10px)), 0); transition: transform .6s ease-out; }
.q3-cube { position: relative; width: 54px; height: 54px; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-animation: q3cube 26s linear infinite; animation: q3cube 26s linear infinite; }
.q3-cube i { position: absolute; top: 0; left: 0; width: 54px; height: 54px; box-sizing: border-box; border: 1.5px solid rgba(255, 154, 69, .55); background: rgba(242, 122, 26, .08); box-shadow: inset 0 0 18px rgba(242, 122, 26, .25); }
.q3-cube i:nth-child(1) { transform: translateZ(27px); } .q3-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(27px); } .q3-cube i:nth-child(3) { transform: rotateY(90deg) translateZ(27px); }
.q3-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(27px); } .q3-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(27px); } .q3-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(27px); }
@-webkit-keyframes q3cube { from { -webkit-transform: rotateX(-24deg) rotateY(0deg); } to { -webkit-transform: rotateX(-24deg) rotateY(360deg); } }
@keyframes q3cube { from { transform: rotateX(-24deg) rotateY(0deg); } to { transform: rotateX(-24deg) rotateY(360deg); } }
.q3-ring { width: 110px; height: 110px; box-sizing: border-box; border-radius: 50%; border: 9px solid rgba(255, 255, 255, .1); border-top-color: rgba(255, 154, 69, .5); -webkit-animation: q3ring 14s linear infinite; animation: q3ring 14s linear infinite; }
@-webkit-keyframes q3ring { from { -webkit-transform: perspective(500px) rotateX(64deg) rotateZ(0deg); } to { -webkit-transform: perspective(500px) rotateX(64deg) rotateZ(360deg); } }
@keyframes q3ring { from { transform: perspective(500px) rotateX(64deg) rotateZ(0deg); } to { transform: perspective(500px) rotateX(64deg) rotateZ(360deg); } }
.q3-orb { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #FFE1C4 0%, #FF9A45 34%, #C85A08 78%, #7A3304 100%); box-shadow: 0 14px 22px -10px rgba(0, 0, 0, .55), 0 0 26px rgba(242, 122, 26, .35); -webkit-animation: q3orb 6s ease-in-out infinite; animation: q3orb 6s ease-in-out infinite; }
@-webkit-keyframes q3orb { 50% { -webkit-transform: translateY(-14px); } }
@keyframes q3orb { 50% { transform: translateY(-14px); } }
.q3-deco.lt .q3-cube i { border-color: rgba(180, 79, 5, .45); background: rgba(242, 122, 26, .06); }
.q3-deco.lt .q3-ring { border-color: rgba(23, 17, 13, .08); border-top-color: rgba(242, 122, 26, .45); }
@media (max-width: 900px) { .q3-deco { display: none; } }
/* صور شاشات البرامج داخل إطار ثلاثي الأبعاد */
.q3-shot { border-radius: 14px; box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 2px 4px rgba(0, 0, 0, .12), 0 22px 40px -18px rgba(0, 0, 0, .45); -webkit-transform: perspective(1200px) rotateY(-5deg) rotateX(3deg); transform: perspective(1200px) rotateY(-5deg) rotateX(3deg); transition: transform .5s ease; }
.q3-shot:hover { -webkit-transform: perspective(1200px) rotateY(0deg) rotateX(0deg); transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }
@media (prefers-reduced-motion: reduce) { .q3s-scene > div, .q3-coin-i, .q3-logo, .q3-cube, .q3-ring, .q3-orb { -webkit-animation: none !important; animation: none !important; } .q3-coin-i { -webkit-transform: rotateY(-24deg); transform: rotateY(-24deg); } .q3-t, .q3-pl, .q3s-scene { transition: none; } }
body.catv .q3s { display: none; }
/* الألعاب: نفس المعالجة بألوان الموقع المرحة */
.q3s.q3-games { background: #140F2A; background: radial-gradient(55% 50% at 50% 0%, rgba(224, 90, 138, .32), rgba(224, 90, 138, 0) 70%), radial-gradient(40% 40% at 85% 70%, rgba(64, 196, 255, .16), rgba(64, 196, 255, 0) 70%), linear-gradient(180deg, #221A44 0%, #120E26 100%); }
.q3s.q3-games::before { background-image: linear-gradient(rgba(64, 196, 255, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(224, 90, 138, .22) 1px, transparent 1px); }
html body .q3s.q3-games h2.q3s-h span { color: #FFD23F; }
html body .q3s.q3-games .q3s-chips li { border-color: rgba(255, 210, 63, .35); background: rgba(255, 255, 255, .06); }
.q3s.q3-games .q3s-glow { background: radial-gradient(closest-side, rgba(224, 90, 138, .45), rgba(64, 196, 255, 0)); }

/* ===== مجسمات هوية كل موقع في الهيرو (q3o): بلاطة بأيقونة، عملة، سبيكة، نرد، أعمدة، شارة — متحركة وشبه شفافة ===== */
.q3-deco.q3o { opacity: .72; }
.q3-pl { -webkit-perspective: 700px; perspective: 700px; }
.q3o-t { position: relative; width: 64px; height: 64px; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-animation: q3osw 7s ease-in-out infinite; animation: q3osw 7s ease-in-out infinite; }
@-webkit-keyframes q3osw { 0%, 100% { -webkit-transform: rotateX(12deg) rotateY(-30deg) translateY(0); } 50% { -webkit-transform: rotateX(4deg) rotateY(30deg) translateY(-14px); } }
@keyframes q3osw { 0%, 100% { transform: rotateX(12deg) rotateY(-30deg) translateY(0); } 50% { transform: rotateX(4deg) rotateY(30deg) translateY(-14px); } }
.q3o-t > i, .q3o-t > b { position: absolute; top: 0; left: 0; width: 100%; height: 100%; box-sizing: border-box; border-radius: 18px; }
.q3o-t > i { background: #8F4306; }
.q3o-t > i:nth-child(1) { -webkit-transform: translateZ(-9px); transform: translateZ(-9px); }
.q3o-t > i:nth-child(2) { -webkit-transform: translateZ(-6px); transform: translateZ(-6px); }
.q3o-t > i:nth-child(3) { -webkit-transform: translateZ(-3px); transform: translateZ(-3px); }
.q3o-t > b { padding: 15px; background: #F27A1A; background: linear-gradient(150deg, #FFB46B 0%, #F27A1A 50%, #C85A08 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -3px 8px rgba(80, 30, 0, .35), 0 18px 26px -12px rgba(0, 0, 0, .55); color: #fff; }
.q3o-t svg { display: block; width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; -webkit-filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); }
.q3o-t.dk > i { background: #0B0705; }
.q3o-t.dk > b { background: linear-gradient(150deg, #4A382C 0%, #241A13 55%, #120C08 100%); color: #FF9A45; box-shadow: inset 0 0 0 1.5px rgba(242, 122, 26, .55), inset 0 1px 0 rgba(255, 255, 255, .15), 0 18px 26px -12px rgba(0, 0, 0, .55); }
.q3o-t.gd > i { background: #8A6410; }
.q3o-t.gd > b { background: linear-gradient(150deg, #FFF0B0 0%, #F5C842 45%, #B8860B 100%); color: #5A3A00; }
.q3o-t.gn > i { background: #0E5A36; }
.q3o-t.gn > b { background: linear-gradient(150deg, #7FF0B8 0%, #2DBF7C 50%, #17804F 100%); }
.q3o-t.pu > i { background: #2A1C66; }
.q3o-t.pu > b { background: linear-gradient(150deg, #A78BFF 0%, #6A4CE0 55%, #3E2A9E 100%); }
.q3o-t.pk > i { background: #7A1E45; }
.q3o-t.pk > b { background: linear-gradient(150deg, #FF9CC2 0%, #E05A8A 55%, #A3305C 100%); }
.q3o-t.cy > i { background: #0B5A7A; }
.q3o-t.cy > b { background: linear-gradient(150deg, #A6ECFF 0%, #40C4FF 50%, #1287B8 100%); color: #08364A; }
.q3o-d2 { -webkit-animation-delay: -2.3s !important; animation-delay: -2.3s !important; }
.q3o-d3 { -webkit-animation-delay: -4.6s !important; animation-delay: -4.6s !important; }
/* عملة برمز */
.q3o-cn { width: 62px; height: 62px; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; position: relative; -webkit-animation: q3spin 8s linear infinite; animation: q3spin 8s linear infinite; }
.q3o-cn > i, .q3o-cn > b { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; }
.q3o-cn > i { background: #9A6E08; }
.q3o-cn > b { -webkit-backface-visibility: hidden; backface-visibility: hidden; background: radial-gradient(circle at 34% 28%, #FFF3B8 0%, #F5C842 40%, #C9960E 75%, #8A6410 100%); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .3), inset 0 -5px 10px rgba(90, 60, 0, .35); font: 800 26px/62px 'Segoe UI', Tahoma, sans-serif; color: #7A5300; text-align: center; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
/* سبيكة ذهب */
.q3o-ig { position: relative; width: 96px; height: 34px; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-animation: q3oig 9s ease-in-out infinite; animation: q3oig 9s ease-in-out infinite; }
@-webkit-keyframes q3oig { 0%, 100% { -webkit-transform: rotateX(-24deg) rotateY(-35deg); } 50% { -webkit-transform: rotateX(-14deg) rotateY(25deg) translateY(-12px); } }
@keyframes q3oig { 0%, 100% { transform: rotateX(-24deg) rotateY(-35deg); } 50% { transform: rotateX(-14deg) rotateY(25deg) translateY(-12px); } }
.q3o-ig > i { position: absolute; top: 0; left: 0; box-sizing: border-box; }
.q3o-ig .f, .q3o-ig .k { width: 96px; height: 34px; background: linear-gradient(180deg, #FFE27A, #D9A520 60%, #A87A0A); }
.q3o-ig .f { -webkit-transform: translateZ(22px); transform: translateZ(22px); font: 800 11px/34px 'Segoe UI', Tahoma, sans-serif; font-style: normal; color: #6A4A00; text-align: center; letter-spacing: .08em; }
.q3o-ig .k { -webkit-transform: rotateY(180deg) translateZ(22px); transform: rotateY(180deg) translateZ(22px); }
.q3o-ig .s, .q3o-ig .l { left: 26px; width: 44px; height: 34px; background: linear-gradient(180deg, #E8B53A, #9A6E08); }
.q3o-ig .s { -webkit-transform: rotateY(90deg) translateZ(48px); transform: rotateY(90deg) translateZ(48px); }
.q3o-ig .l { -webkit-transform: rotateY(-90deg) translateZ(48px); transform: rotateY(-90deg) translateZ(48px); }
.q3o-ig .t { top: -5px; width: 96px; height: 44px; background: linear-gradient(135deg, #FFF6C8, #F5C842 50%, #C9960E); -webkit-transform: rotateX(90deg) translateZ(17px); transform: rotateX(90deg) translateZ(17px); }
/* مكعب (نرد / صندوق) */
.q3o-x { position: relative; width: 52px; height: 52px; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-animation: q3ox 12s linear infinite; animation: q3ox 12s linear infinite; }
@-webkit-keyframes q3ox { from { -webkit-transform: rotateX(-24deg) rotateY(0); } to { -webkit-transform: rotateX(-24deg) rotateY(360deg); } }
@keyframes q3ox { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }
.q3o-x > i { position: absolute; top: 0; left: 0; width: 52px; height: 52px; box-sizing: border-box; border-radius: 10px; background-color: #E05A8A; background-image: radial-gradient(circle, #fff 0, #fff 5px, transparent 6px); background-size: 26px 26px; background-position: 0 0; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25), inset 0 -6px 10px rgba(0, 0, 0, .2); }
.q3o-x > i:nth-child(1) { -webkit-transform: translateZ(26px); transform: translateZ(26px); }
.q3o-x > i:nth-child(2) { -webkit-transform: rotateY(180deg) translateZ(26px); transform: rotateY(180deg) translateZ(26px); }
.q3o-x > i:nth-child(3) { -webkit-transform: rotateY(90deg) translateZ(26px); transform: rotateY(90deg) translateZ(26px); background-color: #B8406A; }
.q3o-x > i:nth-child(4) { -webkit-transform: rotateY(-90deg) translateZ(26px); transform: rotateY(-90deg) translateZ(26px); background-color: #B8406A; }
.q3o-x > i:nth-child(5) { -webkit-transform: rotateX(90deg) translateZ(26px); transform: rotateX(90deg) translateZ(26px); background-color: #FF8AB3; }
.q3o-x > i:nth-child(6) { -webkit-transform: rotateX(-90deg) translateZ(26px); transform: rotateX(-90deg) translateZ(26px); }
.q3o-x.bx > i { border-radius: 2px; background-color: #C8884A; background-image: linear-gradient(180deg, rgba(255, 230, 190, .5) 0, rgba(255, 230, 190, .5) 9px, transparent 9px); background-size: auto; }
.q3o-x.bx > i:nth-child(3), .q3o-x.bx > i:nth-child(4) { background-color: #A0662E; }
.q3o-x.bx > i:nth-child(5) { background-color: #DDA46A; background-image: linear-gradient(90deg, transparent 21px, rgba(242, 122, 26, .8) 21px, rgba(242, 122, 26, .8) 31px, transparent 31px); }
/* أعمدة رسم بياني */
.q3o-br { position: relative; width: 84px; height: 80px; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-transform: rotateX(-16deg) rotateY(-34deg); transform: rotateX(-16deg) rotateY(-34deg); -webkit-animation: q3obr 9s ease-in-out infinite; animation: q3obr 9s ease-in-out infinite; }
@-webkit-keyframes q3obr { 50% { -webkit-transform: rotateX(-10deg) rotateY(-6deg) translateY(-10px); } }
@keyframes q3obr { 50% { transform: rotateX(-10deg) rotateY(-6deg) translateY(-10px); } }
.q3o-br > div { position: absolute; bottom: 0; width: 20px; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-transform-origin: 50% 100%; transform-origin: 50% 100%; -webkit-animation: q3obh 4s ease-in-out infinite; animation: q3obh 4s ease-in-out infinite; }
.q3o-br > div:nth-child(1) { left: 2px; height: 34px; }
.q3o-br > div:nth-child(2) { left: 31px; height: 54px; -webkit-animation-delay: -1.3s; animation-delay: -1.3s; }
.q3o-br > div:nth-child(3) { left: 60px; height: 76px; -webkit-animation-delay: -2.6s; animation-delay: -2.6s; }
@-webkit-keyframes q3obh { 0%, 100% { -webkit-transform: scaleY(.55); } 50% { -webkit-transform: scaleY(1); } }
@keyframes q3obh { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.q3o-br i { position: absolute; top: 0; left: 0; width: 20px; height: 100%; }
.q3o-br .f { background: linear-gradient(180deg, #FFB06B, #F27A1A 45%, #C85A08); -webkit-transform: translateZ(10px); transform: translateZ(10px); }
.q3o-br .s { background: linear-gradient(180deg, #D96A12, #9A4205); -webkit-transform: rotateY(90deg) translateZ(10px); transform: rotateY(90deg) translateZ(10px); }
.q3o-br .l { background: linear-gradient(180deg, #E07316, #A54806); -webkit-transform: rotateY(-90deg) translateZ(10px); transform: rotateY(-90deg) translateZ(10px); }
.q3o-br .t { height: 20px; background: #FFC58F; -webkit-transform: rotateX(90deg) translateZ(10px); transform: rotateX(90deg) translateZ(10px); }
/* شارة نصية عائمة */
.q3o-k { display: inline-block; white-space: nowrap; padding: 6px 14px; border-radius: 99px; font: 800 15px/1.3 'Segoe UI', Tahoma, sans-serif; color: #fff; direction: ltr; background: linear-gradient(180deg, #FF9A45, #E06A0E); box-shadow: 0 12px 20px -10px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .4); -webkit-animation: q3ok 5s ease-in-out infinite; animation: q3ok 5s ease-in-out infinite; }
@-webkit-keyframes q3ok { 0%, 100% { -webkit-transform: rotateY(-18deg) translateY(0); } 50% { -webkit-transform: rotateY(18deg) translateY(-10px); } }
@keyframes q3ok { 0%, 100% { transform: rotateY(-18deg) translateY(0); } 50% { transform: rotateY(18deg) translateY(-10px); } }
.q3o-k.gn { background: linear-gradient(180deg, #2DBF7C, #1E9E62); }
.q3o-k.rd { background: linear-gradient(180deg, #F06A5A, #C8402F); }
.q3o-k.dk { background: linear-gradient(180deg, #3A2B21, #1D1510); color: #FF9A45; box-shadow: inset 0 0 0 1.5px rgba(242, 122, 26, .55), 0 12px 20px -10px rgba(0, 0, 0, .55); }
.q3o-k.cy { background: linear-gradient(180deg, #5AD0FF, #1E9BD6); }
.q3o-k.yl { background: linear-gradient(180deg, #FFE16B, #F5B700); color: #3A2600; }
.q3-off .q3o-t, .q3-off .q3o-cn, .q3-off .q3o-ig, .q3-off .q3o-x, .q3-off .q3o-br, .q3-off .q3o-br > div, .q3-off .q3o-k { -webkit-animation-play-state: paused; animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .q3o-t, .q3o-cn, .q3o-ig, .q3o-x, .q3o-br, .q3o-br > div, .q3o-k { -webkit-animation: none !important; animation: none !important; } }
