/* ═══════════════════════════════════════════════════════════════
   user_dashboard.css — تحديث واجهة طلب جديد لـ smmnine
   ─────────────────────────────────────────────────────────────────
   - 4 بطاقات إحصائيات (اسم المستخدم/الرصيد/المصروف/الطلبات)
   - شبكة المنصات بدلاً من صف واحد
   - تحسينات عامة
   ═══════════════════════════════════════════════════════════════ */

/* ─── (1) بطاقات الإحصائيات الأربع ─── */
.us-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 8px 8px 14px;
    margin-bottom: 8px;
}
@media (max-width: 720px) {
    .us-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.us-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid #f3f4f6;
}
.us-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.us-stat-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 3px 8px rgba(0,0,0,.12);
}

.us-stat-body {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.us-stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
    text-align: right;
    line-height: 1.2;
}
.us-stat-name {
    font-size: .92rem;
    direction: ltr;
}
.us-stat-label {
    font-size: .7rem;
    color: #6b7280;
    margin-top: 3px;
    font-weight: 600;
}

@media (max-width: 420px) {
    .us-stat-card { padding: 10px 8px; gap: 8px; }
    .us-stat-icon { width: 36px; height: 36px; font-size: .92rem; }
    .us-stat-value { font-size: .88rem; }
    .us-stat-name { font-size: .82rem; }
    .us-stat-label { font-size: .64rem; }
}

/* ─── (2) شبكة المنصات (بدلاً من صف واحد طويل) ─── */
.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; }
}

/* ─── (3) إصلاحات شاملة من V4 (للحفاظ على ما تم سابقاً) ─── */
.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; }
}

.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;
}

.ai-float-btn {
    z-index: 1010 !important;
}

.ord-modal-bg,
.sup-sheet-bg {
    pointer-events: none;
}
.ord-modal-bg.show,
.ord-modal-bg.active,
.sup-sheet-bg.show,
.sup-sheet-bg.active {
    pointer-events: auto;
}
