/* DR HOME plus — تصميم الإضافات المميزة + الوضع الليلي */
:root { --dx-red: #A50034; --dx-red2: #8A002B; --dx-ink: #111827; --dx-mut: #64748b; --dx-line: #e2e8f0; --dx-card: #fff; --dx-soft: #f8fafc; }
html.dark { --dx-ink: #e5e7eb; --dx-mut: #94a3b8; --dx-line: #273449; --dx-card: #162032; --dx-soft: #1b2638; }

/* ---------- 7) شاشة الترحيب ---------- */
#dx-splash { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: radial-gradient(circle at 50% 38%, #c4003e 0%, #A50034 38%, #4d0018 100%);
  /* مخفية بالبداية: تطلع فقط إذا التحميل طوّل أكثر من نص ثانية، وتنشال أول ما توصل البيانات */
  opacity: 0; pointer-events: none; animation: dxSplashIn .25s ease .5s forwards, dxSplashOut .4s ease 1.8s forwards; }
#dx-splash .dx-logo { width: 116px; height: 116px; border-radius: 30px; background: #fff; display: grid; place-items: center; box-shadow: 0 22px 50px -12px rgba(0,0,0,.5); animation: dxPop .75s cubic-bezier(.2,1.5,.4,1) both; }
#dx-splash .dx-logo img { width: 92px; height: 92px; object-fit: contain; }
#dx-splash .dx-name { color: #fff; font: 900 26px/1 Tajawal, system-ui, sans-serif; letter-spacing: 3px; animation: dxUp .6s ease .25s both; }
#dx-splash .dx-bar { width: 120px; height: 4px; border-radius: 9px; background: rgba(255,255,255,.25); overflow: hidden; }
#dx-splash .dx-bar i { display: block; height: 100%; width: 40%; background: #fff; border-radius: 9px; animation: dxLoad 1s ease-in-out infinite; }
@keyframes dxSplashIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dxSplashOut { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes dxPop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dxUp { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dxLoad { 0% { transform: translateX(160%); } 100% { transform: translateX(-260%); } }
@media (prefers-reduced-motion: reduce) { #dx-splash .dx-logo, #dx-splash .dx-name { animation: none; } }

/* ---------- 8) حركات الظهور ---------- */
.dx-rv { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.dx-rv.dx-in { opacity: 1; transform: none; }

/* ---------- 6) بطاقات 3D ---------- */
.store-card.dx-tilt { transition: transform .12s ease-out, box-shadow .25s ease, border-color .25s ease; will-change: transform; }
.store-card .dx-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.38), rgba(255,255,255,0) 55%); z-index: 3; }
.store-card.dx-tilt .dx-glare { opacity: 1; }
.dx-card-tags { position: absolute; bottom: 8px; inset-inline-end: 8px; display: flex; gap: 4px; z-index: 2; }
.dx-card-tags span { background: rgba(17,24,39,.85); color: #fff; font-size: 10px; font-weight: 800; border-radius: 6px; padding: 2px 6px; }

/* ---------- عام للأقسام الجديدة ---------- */
.dx-wrap { max-width: 80rem; margin: 0 auto; padding: 0 .75rem; }
@media (min-width: 640px) { .dx-wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .dx-wrap { padding: 0 2rem; } }
.dx-page { padding-top: 1.25rem; padding-bottom: 2.5rem; display: grid; gap: 1rem; }
.dx-card { background: var(--dx-card); border: 1px solid var(--dx-line); border-radius: 1.25rem; padding: 1rem; }
@media (min-width: 640px) { .dx-card { padding: 1.5rem; border-radius: 1.5rem; } }
.dx-h { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; }
.dx-h h2 { margin: 0; font-size: 1.05rem; font-weight: 900; color: var(--dx-ink); }
@media (min-width: 640px) { .dx-h h2 { font-size: 1.3rem; } }
.dx-h a { font-size: .8rem; font-weight: 800; color: var(--dx-red); text-decoration: none; }
.dx-hero { display: flex; gap: 1rem; align-items: center; background: linear-gradient(135deg, #A50034, #5c001d); color: #fff; border-radius: 1.5rem; padding: 1.25rem 1.25rem; }
.dx-hero > span { font-size: 2.6rem; line-height: 1; }
.dx-hero h1 { margin: 0 0 .25rem; font-size: 1.35rem; font-weight: 900; }
.dx-hero p { margin: 0; font-size: .85rem; opacity: .9; line-height: 1.7; }
@media (min-width: 640px) { .dx-hero { padding: 1.75rem 2rem; } .dx-hero h1 { font-size: 1.9rem; } .dx-hero > span { font-size: 3.4rem; } }
.dx-note { color: var(--dx-mut); font-size: .8rem; line-height: 1.8; margin: .75rem 0 0; }
.dx-sub { font-size: 1rem; font-weight: 900; margin: 1.25rem 0 .75rem; color: var(--dx-ink); }
.dx-ph { width: 100%; height: 100%; min-height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: linear-gradient(145deg, #fff, #eef2f7); border-radius: 12px; color: #64748b; }
.dx-ph b { color: #A50034; font-weight: 900; font-size: 1.4rem; }
.dx-ph span { font: 600 11px ui-monospace, Consolas, monospace; direction: ltr; }

/* ---------- 16) ستوريات العروض ---------- */
.dx-stories { max-width: 80rem; margin: 0 auto; padding: .75rem .75rem 0; }
@media (min-width: 640px) { .dx-stories { padding: 1.25rem 1.5rem 0; } }
.dx-stories-in { display: flex; gap: .85rem; overflow-x: auto; scrollbar-width: none; padding: .25rem .1rem .35rem; align-items: flex-start; }
.dx-stories-in::-webkit-scrollbar { display: none; }
.dx-stories-t { flex: none; align-self: center; font-weight: 900; font-size: .8rem; color: var(--dx-red); writing-mode: horizontal-tb; white-space: nowrap; }
.dx-story { flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: 0; padding: 0; cursor: pointer; }
.dx-ring { width: 66px; height: 66px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, #A50034, #F59E0B, #F43F5E, #A50034); display: grid; place-items: center; }
.dx-ring img, .dx-ring b { width: 100%; height: 100%; border-radius: 50%; background: #fff; border: 2.5px solid #fff; object-fit: contain; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #A50034; }
.dx-story-n { font-size: 10.5px; font-weight: 800; color: var(--dx-ink); text-align: center; line-height: 1.3; max-width: 74px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dx-sv { position: fixed; inset: 0; z-index: 9990; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.dx-sv-card { position: relative; width: min(420px, 100vw); height: min(780px, 100dvh); background: linear-gradient(180deg, #A50034 0%, #2a000f 100%); color: #fff; display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 480px) { .dx-sv-card { border-radius: 22px; } }
.dx-sv-bars { display: flex; gap: 4px; padding: 10px 12px 0; }
.dx-sv-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.dx-sv-bars i { display: block; height: 100%; background: #fff; }
.dx-sv-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13px; }
.dx-sv-top span { opacity: .8; flex: 1; }
.dx-sv-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; z-index: 3; }
.dx-sv-media { position: relative; flex: 1; margin: 6px 16px; background: #fff; border-radius: 20px; display: flex; align-items: center; justify-content: center; padding: 18px; min-height: 0; }
.dx-sv-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dx-sv-media .dx-ph { background: none; }
.dx-sv-media .dx-ph b { font-size: 3rem; }
.dx-sv-off { position: absolute; top: 12px; inset-inline-start: 12px; background: #A50034; color: #fff; font-weight: 900; font-size: 12px; border-radius: 999px; padding: 4px 12px; }
.dx-sv-info { padding: 14px 18px 22px; text-align: center; }
.dx-sv-info h3 { margin: 0 0 10px; font-size: 18px; font-weight: 900; line-height: 1.5; }
.dx-sv-price b { display: inline-block; background: #fff; color: #A50034; font-weight: 900; font-size: 22px; border-radius: 999px; padding: 6px 22px; }
.dx-sv-price s { display: block; opacity: .75; font-size: 14px; margin-top: 6px; }
.dx-sv-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; position: relative; z-index: 3; }
.dx-sv-btns button { border: 0; border-radius: 14px; padding: 12px; font: 800 14px Tajawal, system-ui, sans-serif; cursor: pointer; }
.dx-sv-wa { background: #10B981; color: #fff; }
.dx-sv-go { background: rgba(255,255,255,.95); color: #111827; }
.dx-sv-prev, .dx-sv-next { position: absolute; top: 90px; bottom: 170px; width: 33%; background: none; border: 0; cursor: pointer; z-index: 2; }
.dx-sv-prev { right: 0; } .dx-sv-next { left: 0; }
[dir="ltr"] .dx-sv-prev { left: 0; right: auto; } [dir="ltr"] .dx-sv-next { right: 0; left: auto; }
body.dx-lock { overflow: hidden; }

/* ---------- 23) الغرف + الأدوات ---------- */
.dx-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
@media (min-width: 768px) { .dx-rooms { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.dx-room { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 1rem; border-radius: 1.1rem; text-decoration: none; color: #111827; min-height: 110px; transition: transform .25s ease, box-shadow .25s ease; }
.dx-room:hover { transform: translateY(-3px); box-shadow: 0 14px 24px -12px rgba(0,0,0,.25); }
.dx-room-ic { font-size: 2.1rem; line-height: 1; margin-bottom: .35rem; }
.dx-room b { font-size: 1rem; font-weight: 900; }
.dx-room small { font-size: .72rem; font-weight: 700; opacity: .7; }
.dx-room-kitchen { background: linear-gradient(135deg, #FFF1F2, #FFE4E6); }
.dx-room-living { background: linear-gradient(135deg, #EFF6FF, #DBEAFE); }
.dx-room-bedroom { background: linear-gradient(135deg, #F5F3FF, #EDE9FE); }
.dx-room-laundry { background: linear-gradient(135deg, #ECFDF5, #D1FAE5); }
.dx-hero.dx-room-kitchen, .dx-hero.dx-room-living, .dx-hero.dx-room-bedroom, .dx-hero.dx-room-laundry { color: #111827; }
.dx-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; }
@media (min-width: 768px) { .dx-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
.dx-tool { display: flex; gap: .85rem; align-items: center; background: var(--dx-card); border: 1px solid var(--dx-line); border-radius: 1.1rem; padding: .9rem 1rem; text-decoration: none; color: var(--dx-ink); transition: border-color .2s, transform .2s; }
.dx-tool:hover { border-color: #A50034; transform: translateY(-2px); }
.dx-tool > span { width: 48px; height: 48px; flex: none; border-radius: 14px; background: #FFF1F2; display: grid; place-items: center; font-size: 1.5rem; }
.dx-tool b { display: block; font-weight: 900; font-size: .95rem; }
.dx-tool small { color: var(--dx-mut); font-size: .75rem; font-weight: 700; }

/* ---------- آخر المنشورات والمقالات ---------- */
.dx-posts { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; }
@media (min-width: 768px) { .dx-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
.dx-post { display: flex; gap: .85rem; align-items: center; background: var(--dx-soft); border: 1px solid var(--dx-line); border-radius: 1.1rem; padding: .75rem; text-decoration: none; color: var(--dx-ink); transition: border-color .2s, transform .2s; min-width: 0; }
.dx-post:hover { border-color: #A50034; transform: translateY(-2px); }
.dx-post img, .dx-post-ic { width: 76px; height: 76px; flex: none; border-radius: 14px; object-fit: cover; background: #FFF1F2; display: grid; place-items: center; font-size: 1.8rem; }
.dx-post div { min-width: 0; }
.dx-post small { display: inline-block; color: #A50034; font-size: .7rem; font-weight: 900; }
.dx-post b { display: block; font-weight: 900; font-size: .92rem; line-height: 1.5; }
.dx-post p { margin: .15rem 0 0; color: var(--dx-mut); font-size: .76rem; font-weight: 600; line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- 9) المساعد ---------- */
.dx-wiz-card h2 { font-size: 1.15rem; font-weight: 900; margin: 1rem 0; color: var(--dx-ink); text-align: center; }
.dx-steps { display: flex; align-items: center; justify-content: center; gap: 6px; }
.dx-steps span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px; background: var(--dx-soft); color: var(--dx-mut); border: 1px solid var(--dx-line); }
.dx-steps span.on { background: #A50034; color: #fff; border-color: #A50034; }
.dx-steps i { width: 28px; height: 2px; background: var(--dx-line); }
.dx-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; max-width: 640px; margin: 0 auto; }
@media (min-width: 640px) { .dx-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dx-opts button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 1rem .75rem; border-radius: 1rem; border: 1.5px solid var(--dx-line); background: var(--dx-soft); color: var(--dx-ink); font: 800 .9rem Tajawal, system-ui, sans-serif; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.dx-opts button span { font-size: 1.8rem; }
.dx-opts button:hover { border-color: #A50034; background: #FFF1F2; transform: translateY(-2px); }
html.dark .dx-opts button:hover { background: #2a1520; }
.dx-wiz-nav { display: flex; justify-content: space-between; margin-top: 1.25rem; }
.dx-wiz-nav button { background: none; border: 0; color: var(--dx-red); font: 800 .85rem Tajawal, system-ui, sans-serif; cursor: pointer; }
.dx-pick { display: flex; flex-direction: column; gap: 6px; }
.dx-why { display: flex; flex-wrap: wrap; gap: 4px; }
.dx-why span { background: #ECFDF5; color: #047857; border-radius: 999px; padding: 2px 8px; font-size: 10.5px; font-weight: 800; }

/* ---------- 10-11) الحاسبات ---------- */
.dx-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .dx-form { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dx-form label { display: flex; flex-direction: column; gap: 5px; font-size: .8rem; font-weight: 800; color: var(--dx-mut); }
.dx-form input[type=number] { padding: .7rem .8rem; border-radius: .8rem; border: 1px solid var(--dx-line); background: var(--dx-soft); color: var(--dx-ink); font: 800 1rem Tajawal, system-ui, sans-serif; }
.dx-form .dx-check { flex-direction: row; align-items: center; gap: 8px; grid-column: 1 / -1; color: var(--dx-ink); }
.dx-check input { width: 18px; height: 18px; accent-color: #A50034; }
.dx-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: 1.1rem; }
.dx-result > div { background: var(--dx-soft); border: 1px solid var(--dx-line); border-radius: 1rem; padding: .8rem; text-align: center; }
.dx-result small { display: block; color: var(--dx-mut); font-size: .72rem; font-weight: 800; }
.dx-result b { display: block; font-size: 1.05rem; font-weight: 900; color: var(--dx-ink); margin-top: 3px; }
.dx-result .big { background: #A50034; border-color: #A50034; }
.dx-result .big small, .dx-result .big b { color: #fff; }
.dx-result .big b { font-size: 1.4rem; }
.dx-amp { display: grid; gap: .45rem; }
.dx-amp-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "ic nm q" "w w inv"; gap: .35rem .6rem; align-items: center; padding: .6rem .7rem; border: 1px solid var(--dx-line); border-radius: .9rem; background: var(--dx-soft); }
@media (min-width: 768px) { .dx-amp-row { grid-template-columns: 30px minmax(0, 1fr) auto 130px 90px; grid-template-areas: "ic nm q w inv"; } }
.dx-amp-row.on { border-color: #A50034; background: #FFF1F2; }
html.dark .dx-amp-row.on { background: #2a1520; }
.dx-amp-row .ic { grid-area: ic; font-size: 1.3rem; }
.dx-amp-row b { grid-area: nm; font-size: .88rem; color: var(--dx-ink); }
.dx-amp-row .dx-qty { grid-area: q; }
.dx-amp-row .w { grid-area: w; display: flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 800; color: var(--dx-mut); }
.dx-amp-row .w input { width: 90px; padding: .35rem .5rem; border-radius: .6rem; border: 1px solid var(--dx-line); background: var(--dx-card); color: var(--dx-ink); font: 800 .85rem Tajawal, system-ui, sans-serif; }
.dx-amp-row .inv { grid-area: inv; font-size: .75rem; font-weight: 800; color: var(--dx-ink); display: flex; align-items: center; gap: 4px; justify-self: end; }
.dx-amp-row .inv input { accent-color: #A50034; }
.dx-qty { display: flex; align-items: center; gap: 6px; }
.dx-qty button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--dx-line); background: var(--dx-card); color: var(--dx-ink); font-weight: 900; font-size: 1rem; cursor: pointer; }
.dx-qty span { min-width: 18px; text-align: center; font-weight: 900; color: var(--dx-ink); }

/* ---------- صفحة الجهاز: المعرض، 3D، الأمبير، الفيديو، العداد ---------- */
.dx-media { flex-direction: column; gap: .75rem; }
.dx-gal { width: 100%; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.dx-thumbs { display: flex; gap: .45rem; overflow-x: auto; max-width: 100%; padding: 2px; }
.dx-thumbs button { width: 60px; height: 60px; flex: none; border-radius: 12px; border: 2px solid transparent; background: #fff; padding: 3px; cursor: pointer; }
.dx-thumbs button.on { border-color: #A50034; }
.dx-thumbs img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.dx-zoom { background: rgba(17,24,39,.06); border: 0; border-radius: 999px; padding: 5px 14px; font: 800 .75rem Tajawal, system-ui, sans-serif; color: #334155; cursor: pointer; }
.dx-prod-extras { display: grid; gap: .5rem; }
.dx-3d-btn { width: 100%; border: 0; border-radius: .9rem; padding: .9rem; font: 900 .95rem Tajawal, system-ui, sans-serif; color: #fff; cursor: pointer;
  background: linear-gradient(120deg, #111827 0%, #312e81 50%, #A50034 100%); background-size: 200% 100%; animation: dxShine 4s ease infinite; box-shadow: 0 10px 22px -10px rgba(49,46,129,.7); }
@keyframes dxShine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.dx-amp-chip { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; border-radius: .9rem; padding: .6rem .8rem; font-size: .82rem; font-weight: 700; }
.dx-amp-chip a { color: #A50034; font-weight: 900; }
html.dark .dx-amp-chip { background: #2b2410; border-color: #4d3d0c; color: #fcd34d; }
.dx-cd { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; background: #FFF1F2; color: #A50034; border-radius: 999px; padding: 4px 12px; font-size: .78rem; font-weight: 800; }
.dx-cd b { font-variant-numeric: tabular-nums; }
.dx-cd-banner { background: rgba(255,255,255,.95); margin-top: 2px; }
.dx-vid-card { margin-top: 1rem; }
.dx-vid { position: relative; border-radius: 1rem; overflow: hidden; background: #000; }
.dx-vid.yt { aspect-ratio: 16 / 9; }
.dx-vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dx-vid video { display: block; width: 100%; max-height: 70vh; background: #000; }
.dx-vid-link { display: inline-block; background: #111827; color: #fff; border-radius: .8rem; padding: .7rem 1.1rem; font-weight: 800; text-decoration: none; }
.dx-3d { position: fixed; inset: 0; z-index: 9990; background: rgba(15,23,42,.75); display: flex; align-items: center; justify-content: center; padding: 12px; }
.dx-3d-box { width: min(900px, 100%); height: min(720px, 92dvh); background: radial-gradient(circle at 50% 40%, #ffffff, #e8edf3); border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; }
.dx-3d-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #111827; color: #fff; font-size: 14px; }
.dx-3d-stage { flex: 1; position: relative; min-height: 0; }
.dx-3d-load { position: absolute; inset: 0; display: grid; place-items: center; color: #475569; font-weight: 800; }
.dx-3d-hint { margin: 0; padding: 10px 16px 14px; font-size: 12.5px; color: #475569; text-align: center; }
.dx-ar-btn { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); border: 0; border-radius: 999px; background: #A50034; color: #fff; font: 900 15px Tajawal, system-ui, sans-serif; padding: 12px 24px; box-shadow: 0 10px 24px -8px rgba(165,0,52,.7); cursor: pointer; }

/* ---------- 13) عارض الصور ---------- */
.dx-lb { position: fixed; inset: 0; z-index: 9995; background: rgba(10,10,15,.95); display: flex; align-items: center; justify-content: center; touch-action: none; }
.dx-lb-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dx-lb-img { max-width: 92vw; max-height: 86vh; object-fit: contain; background: #fff; border-radius: 12px; transition: transform .2s ease; cursor: zoom-in; user-select: none; }
.dx-lb.zoomed .dx-lb-img { cursor: grab; transition: none; }
.dx-lb-x, .dx-lb-prev, .dx-lb-next { position: absolute; z-index: 2; border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 50%; cursor: pointer; }
.dx-lb-x { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 28px; line-height: 1; }
.dx-lb-prev, .dx-lb-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 30px; }
.dx-lb-prev { right: 14px; } .dx-lb-next { left: 14px; }
.dx-lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 800; font-size: 13px; }
.dx-lb-hint { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 12px; }

/* ---------- 24) الريلز ---------- */
.dx-reels { display: flex; gap: .7rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.dx-reels::-webkit-scrollbar { display: none; }
.dx-reel { position: relative; flex: none; width: 150px; aspect-ratio: 9 / 16; border-radius: 1rem; overflow: hidden; border: 0; padding: 0; background: #111827; cursor: pointer; scroll-snap-align: start; }
@media (min-width: 640px) { .dx-reel { width: 180px; } }
.dx-reel video, .dx-reel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dx-reel-play { position: absolute; top: 10px; inset-inline-start: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; font-size: 12px; }
.dx-reel-t { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 10px 10px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; font-size: 12px; font-weight: 800; text-align: start; line-height: 1.4; }
.dx-reel-t b { display: block; color: #FDE68A; font-size: 12px; }
.dx-rv-ov { position: fixed; inset: 0; z-index: 9990; background: #000; display: flex; align-items: center; justify-content: center; }
.dx-rv-box { position: relative; width: min(440px, 100vw); height: 100dvh; background: #000; }
.dx-rv-box video, .dx-rv-box iframe { width: 100%; height: 100%; object-fit: contain; border: 0; display: block; }
.dx-rv-box .dx-sv-x { position: absolute; top: 14px; right: 14px; }
.dx-rv-cta { position: absolute; inset-inline: 12px; bottom: 70px; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.95); border-radius: 16px; padding: 10px; color: #111827; }
.dx-rv-cta div { flex: 1; min-width: 0; font-size: 12.5px; }
.dx-rv-cta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-rv-cta span { color: #A50034; font-weight: 900; }
.dx-rv-cta button { border: 0; border-radius: 12px; padding: 9px 12px; font: 800 13px Tajawal, system-ui, sans-serif; background: #111827; color: #fff; cursor: pointer; }
.dx-rv-cta button.wa { background: #10B981; }
.dx-rv-nav { position: absolute; inset-inline-end: 12px; top: 40%; display: grid; gap: 8px; }
.dx-rv-nav button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); color: #fff; cursor: pointer; }

/* ---------- 18-19) السلة: الكوبون + التوصيل المجاني ---------- */
#dx-cart-box { display: grid; gap: .55rem; }
.dx-ship { background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: .8rem; padding: .55rem .7rem; }
.dx-ship-t { font-size: .78rem; font-weight: 700; color: #065F46; margin-bottom: 5px; }
.dx-ship-bar { height: 7px; border-radius: 99px; background: #D1FAE5; overflow: hidden; }
.dx-ship-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #10B981, #059669); transition: width .4s ease; }
.dx-coupon-row { display: flex; gap: 6px; }
.dx-coupon-row input { flex: 1; min-width: 0; padding: .6rem .75rem; border-radius: .75rem; border: 1px dashed #A50034; background: #fff; font: 700 .85rem Tajawal, system-ui, sans-serif; text-transform: uppercase; }
.dx-coupon-row button { border: 0; border-radius: .75rem; padding: 0 1rem; background: #111827; color: #fff; font: 800 .82rem Tajawal, system-ui, sans-serif; cursor: pointer; }
.dx-coupon-ok { margin-top: 5px; font-size: .78rem; font-weight: 800; color: #047857; }
.dx-coupon-ok button { background: none; border: 0; color: #A50034; font: 800 .75rem Tajawal, system-ui, sans-serif; cursor: pointer; text-decoration: underline; }
.dx-coupon-err { margin-top: 5px; font-size: .78rem; font-weight: 800; color: #BE123C; }
.dx-cart-line { display: flex; justify-content: space-between; font-size: .82rem; color: #64748b; font-weight: 700; }

/* ---------- 1-2) الاحتفال بالطلب ---------- */
.dx-confetti { position: fixed; inset: 0; z-index: 9998; pointer-events: none; }
.dx-done { position: fixed; z-index: 9999; left: 50%; bottom: 96px; transform: translateX(-50%); background: #111827; color: #fff; border-radius: 18px; padding: 14px 20px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.5);
  display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; animation: dxUp .45s cubic-bezier(.2,1.4,.4,1) both; max-width: calc(100vw - 32px); transition: opacity .35s, transform .35s; }
.dx-done b { font-size: 15px; }
.dx-done span { font-size: 12px; opacity: .85; }
.dx-done.out { opacity: 0; transform: translateX(-50%) translateY(14px); }

/* ---------- 12) زر المايك ---------- */
#dx-mic { position: absolute; inset-inline-end: 4.6rem; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: #A50034; display: grid; place-items: center; cursor: pointer; }
#dx-mic svg { width: 19px; height: 19px; }
#dx-mic.on { background: #A50034; color: #fff; animation: dxPulse 1s ease infinite; }
@keyframes dxPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(165,0,52,.5); } 50% { box-shadow: 0 0 0 8px rgba(165,0,52,0); } }
input.dx-has-mic { padding-inline-end: 7.4rem !important; }

/* ---------- روابط الفوتر ---------- */
.dx-foot-links { display: grid; gap: .5rem; margin-top: .25rem; }
.dx-foot-links a, .dx-foot-links button { color: inherit; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; text-align: start; cursor: pointer; }
.dx-foot-links a:hover, .dx-foot-links button:hover { color: #fff; }

/* ---------- 21) الوضع الليلي ---------- */
html.dark body { background-color: #0B1220 !important; color: #e5e7eb; }
html.dark .bg-white, html.dark .bg-white\/95, html.dark .bg-white\/90 { background-color: #162032 !important; }
html.dark .bg-surfaceBg { background-color: #0B1220 !important; }
html.dark .bg-slate-50 { background-color: #1b2638 !important; }
html.dark .bg-slate-100 { background-color: #22304a !important; }
html.dark .bg-slate-200 { background-color: #2a3a57 !important; }
html.dark .hover\:bg-slate-100:hover, html.dark .hover\:bg-slate-200:hover { background-color: #2f4060 !important; }
html.dark .text-darkSlate { color: #f1f5f9 !important; }
html.dark .text-slate-700 { color: #cbd5e1 !important; }
html.dark .text-slate-600 { color: #a8b5c8 !important; }
html.dark .text-slate-500 { color: #94a3b8 !important; }
html.dark .border-slate-200, html.dark .border-slate-200\/80, html.dark .border-slate-200\/90, html.dark .border-slate-100, html.dark .border-slate-300 { border-color: #273449 !important; }
html.dark .divide-slate-200 > * + * { border-color: #273449 !important; }
html.dark .bg-rose-50, html.dark .bg-rose-100 { background-color: #3a1222 !important; }
html.dark .bg-emerald-50, html.dark .bg-emerald-100 { background-color: #0d2e25 !important; }
html.dark .text-emerald-800, html.dark .text-emerald-700 { color: #6ee7b7 !important; }
html.dark .text-rose-700, html.dark .text-rose-800 { color: #fda4af !important; }
html.dark main .bg-darkSlate, html.dark #cart-drawer .bg-darkSlate { background-color: #334155 !important; }
html.dark footer.bg-darkSlate { background-color: #070c16 !important; }
html.dark input, html.dark select, html.dark textarea { color: #e5e7eb; }
html.dark .img-ph { background: linear-gradient(145deg, #1f2b40, #182235) !important; }
html.dark .store-card img, html.dark .dx-thumbs button { background-color: #fff; }
html.dark .dx-room { color: #111827; }
html.dark .dx-tool > span, html.dark .dx-post-ic { background: #2a1520; }
html.dark .dx-post small { color: #fda4af; }
html.dark .dx-ph { background: linear-gradient(145deg, #1f2b40, #182235); }
html.dark .dx-zoom { background: rgba(255,255,255,.1); color: #cbd5e1; }
html.dark .dx-coupon-row input { background: #1b2638; color: #e5e7eb; }
html.dark .dx-ship { background: #0d2e25; border-color: #14532d; }
html.dark .dx-ship-t { color: #6ee7b7; }
html.dark .dx-story-n { color: #e5e7eb; }
html.dark #dx-mic { color: #fda4af; }
#dx-theme { min-width: 40px; }
