/* ═══════════════════════════════════════════════════════════════
   smmnine_fixes.css (V2 — 2026-06-20)
   تصحيح bug الأزرار المعطّلة + إصلاحات شاملة
   ═══════════════════════════════════════════════════════════════ */

/* ── (1) المنصات شبكة (بدلاً من صف واحد) ── */
.platform-section {
    overflow: visible !important;
    overflow-x: visible !important;
    padding: 8px !important;
}
.platform-row {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
    min-width: 0 !important;
    width: 100% !important;
}
.pf-btn {
    min-width: 0 !important;
    width: 100% !important;
    padding: 12px 6px !important;
}
.pf-label {
    font-size: .68rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .platform-row { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 420px) {
    .platform-row { grid-template-columns: repeat(3, 1fr) !important; }
    .pf-label { font-size: .65rem !important; }
}

/* ── (2) الشريط السفلي يظهر دائماً ── */
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 1020 !important;
}
@media (max-width: 991.98px) {
    .bottom-nav { display: flex !important; }
    body { padding-bottom: 70px !important; }
}

/* ── (3) أزرار تفاصيل/دعم/إلغاء — clickable ── */
.ord-detail-btn {
    position: relative !important;
    z-index: 5 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}
.ord-row {
    position: relative !important;
    z-index: 1 !important;
}

/* ── (4) الذكاء الاصطناعي ── */
.ai-float-btn {
    z-index: 1010 !important;
    pointer-events: auto !important;
}

/* ── (5) 🔥 إصلاح الأزرار في sheets/modals (BUG كان يمنع النقر) ── */
/* الـ JS يستخدم .open (وليس .show أو .active) */
.ord-modal-bg,
.sup-sheet-bg {
    pointer-events: none;
}
.ord-modal-bg.open,
.sup-sheet-bg.open {
    pointer-events: auto !important;
}

/* تأكيد قابلية النقر على كل عناصر الـ sheet */
.sup-sheet-bg.open .sup-sheet,
.sup-sheet-bg.open .sup-sheet *,
.sup-sheet-bg.open .sup-opt,
.sup-sheet-bg.open .sup-opt *,
.sup-sheet-bg.open .sup-sheet-close,
.ord-modal-bg.open .ord-modal,
.ord-modal-bg.open .ord-modal *,
.ord-modal-bg.open .ord-modal-close {
    pointer-events: auto !important;
}

/* تأكيد أن الـ a tag في sup-opt يعمل كرابط */
.sup-opt {
    cursor: pointer !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: rgba(234,88,12,.12) !important;
    text-decoration: none !important;
    display: flex !important;
}
.sup-opt:active {
    transform: scale(.98) !important;
}
