/* =======================================
   FITNESS CLUB MEMBER DASHBOARD PAGE
   ======================================= */

/* ===== MAIN CONTENT AREA STYLING ===== */
.site-main.content-area.space {
    background: linear-gradient(180deg, #0f0f0f 0%, #202020 50%, #0f0f0f 100%) !important;
    min-height: 100vh;
    padding: 0 !important;
    position: relative;
}

/* خلفية بسيطة بدون تعقيد */
.site-main.content-area.space::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(93, 214, 44, 0.03) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* ===== CONTAINER ENHANCEMENTS ===== */
.container.default {
    max-width: 1400px !important;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

/* ===== PAGE LAYOUT ===== */
.page-layout {
    background: #202020;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid rgba(93, 214, 44, 0.3);
}

/* ===== ELEMENTOR SECTION ===== */
.elementor-section.elementor-element-1bb9ace {
    background: transparent !important;
    padding: 0 !important;
}

/* ===== USER ORDERS DETAILED CONTAINER ===== */
.user-orders-detailed {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    direction: rtl;
    text-align: right;
}

/* إضافة عنوان للصفحة */
.user-orders-detailed::before {
    content: 'Member Dashboard';
    display: block;
    text-align: center;
    color: #5DD62C;
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    direction: ltr;
}

/* ===== USER INFO SECTION ===== */
.user-info-section {
    background: #0f0f0f !important;
    color: #f8f8f8 !important;
    padding: 30px !important;
    border-radius: 12px !important;
    margin-bottom: 40px !important;
    border: 1px solid rgba(93, 214, 44, 0.4);
}

.user-info-section h2 {
    color: #5DD62C !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    text-align: right;
    border-bottom: 2px solid rgba(93, 214, 44, 0.3);
    padding-bottom: 10px;
}

/* ===== USER INFO GRID ===== */
.user-info-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 15px !important;
}

.user-info-item {
    background: #202020 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    text-align: right;
    border: 1px solid rgba(93, 214, 44, 0.2);
    transition: border-color 0.2s ease;
}

.user-info-item:hover {
    border-color: rgba(93, 214, 44, 0.4);
}

.user-info-item strong {
    display: inline-block !important;
    min-width: 150px !important;
    float: right !important;
    margin-left: 10px !important;
    margin-right: 0 !important;
    color: #5DD62C !important;
    font-weight: 600 !important;
}

/* ===== ORDERS SECTION ===== */
.orders-section {
    margin-top: 40px !important;
}

.orders-section h2 {
    color: #5DD62C !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 30px !important;
    text-align: right;
    border-bottom: 2px solid rgba(93, 214, 44, 0.3);
    padding-bottom: 10px;
}

/* ===== ORDER CARDS ===== */
.order-card {
    background: #0f0f0f !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    margin-bottom: 25px !important;
    overflow: hidden;
    border: 1px solid rgba(93, 214, 44, 0.3);
    transition: border-color 0.2s ease;
}

.order-card:hover {
    border-color: #5DD62C;
}

/* تمييز أنواع الطلبات */
.basic-order {
    border-right: 4px solid #337418 !important;
}

.normal-order {
    border-right: 4px solid #5DD62C !important;
}

/* ===== ORDER HEADER ===== */
.order-header {
    background: #5DD62C !important;
    color: #0f0f0f !important;
    padding: 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-direction: row-reverse !important;
}

.order-header h3 {
    color: #0f0f0f !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.order-header p {
    color: #0f0f0f !important;
    margin: 5px 0 0 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* ===== ORDER STATUS ===== */
.order-status {
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase;
}

.status-completed {
    background: #337418 !important;
    color: #f8f8f8 !important;
}

.status-processing {
    background: #f8f8f8 !important;
    color: #0f0f0f !important;
}

/* ===== ORDER DETAILS ===== */
.order-details {
    padding: 25px !important;
}

.order-details h4 {
    color: #5DD62C !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    text-align: right;
}

/* ===== ORDER ITEMS TABLE ===== */
.order-items {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 15px !important;
    direction: rtl;
    background: #202020 !important;
    border-radius: 8px;
    overflow: hidden;
}

.order-items th {
    background: #5DD62C !important;
    color: #0f0f0f !important;
    padding: 12px 10px !important;
    text-align: right !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.order-items td {
    padding: 12px 10px !important;
    border-bottom: 1px solid rgba(93, 214, 44, 0.2) !important;
    text-align: right !important;
    color: #f8f8f8 !important;
    font-size: 14px !important;
}

.order-items tr:last-child td {
    border-bottom: none !important;
}

/* تمييز تاريخ الانتهاء */
.expdatee {
    background-color: rgba(220, 53, 69, 0.1) !important;
    font-weight: 600 !important;
    color: #5DD62C !important;
}

/* ===== NO ORDERS MESSAGE ===== */
.no-orders {
    text-align: center !important;
    padding: 40px !important;
    font-size: 18px !important;
    color: #f8f8f8 !important;
    direction: rtl;
    background: #0f0f0f;
    border-radius: 8px;
    border: 1px solid rgba(93, 214, 44, 0.3);
}

/* ===== PACKAGE INDICATORS ===== */
.order-card::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #5DD62C;
}

.basic-order::after {
    background: #337418;
}

.normal-order::after {
    background: #5DD62C;
}

/* ===== LOADING ANIMATIONS ===== */
.user-info-item {
    opacity: 0;
    transform: translateY(20px);
    animation: item-load 0.6s ease-out forwards;
}

.order-card {
    opacity: 0;
    transform: translateY(30px);
    animation: card-load 0.8s ease-out forwards;
}

/* تأخير مختلف لكل عنصر */
.user-info-item:nth-child(1) { animation-delay: 0.1s; }
.user-info-item:nth-child(2) { animation-delay: 0.15s; }
.user-info-item:nth-child(3) { animation-delay: 0.2s; }
.user-info-item:nth-child(4) { animation-delay: 0.25s; }
.user-info-item:nth-child(5) { animation-delay: 0.3s; }
.user-info-item:nth-child(6) { animation-delay: 0.35s; }

.order-card:nth-child(1) { animation-delay: 0.5s; }
.order-card:nth-child(2) { animation-delay: 0.6s; }
.order-card:nth-child(3) { animation-delay: 0.7s; }

/* ===== ANIMATIONS ===== */
@keyframes item-load {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes card-load {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container.default {
        padding: 30px 15px;
    }
    
    .page-layout {
        padding: 30px;
    }
    
    .user-info-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .user-orders-detailed::before {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .page-layout {
        padding: 20px;
        border-radius: 8px;
    }
    
    .user-info-section,
    .order-details {
        padding: 20px !important;
    }
    
    .user-info-grid {
        grid-template-columns: 1fr !important;
    }
    
    .order-header {
        flex-direction: column !important;
        text-align: right !important;
        padding: 15px !important;
    }
    
    .order-header > div {
        margin-bottom: 10px;
    }
    
    .order-items th,
    .order-items td {
        padding: 8px 6px !important;
        font-size: 12px !important;
    }
    
    .order-card {
        margin-bottom: 20px !important;
    }
    
    .user-info-section h2,
    .orders-section h2 {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    .container.default {
        padding: 20px 10px;
    }
    
    .page-layout {
        padding: 15px;
    }
    
    .user-orders-detailed::before {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .order-items {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap;
    }
    
    .user-info-item strong {
        min-width: 120px !important;
        font-size: 13px !important;
    }
    
    .user-info-item {
        padding: 12px !important;
    }
    
    .order-header h3 {
        font-size: 16px !important;
    }
    
    .order-details h4 {
        font-size: 14px !important;
    }
}

/* ===== ACCESSIBILITY & PERFORMANCE ===== */
.user-info-item,
.order-card {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .user-info-item,
    .order-card,
    .site-main.content-area.space::before {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== ADDITIONAL ENHANCEMENTS ===== */

/* إضافة أيقونات للمعلومات */
.user-info-item:nth-child(1)::before { content: '🆔'; margin-left: 8px; }
.user-info-item:nth-child(2)::before { content: '📧'; margin-left: 8px; }
.user-info-item:nth-child(3)::before { content: '👤'; margin-left: 8px; }
.user-info-item:nth-child(4)::before { content: '👤'; margin-left: 8px; }
.user-info-item:nth-child(5)::before { content: '📞'; margin-left: 8px; }
.user-info-item:nth-child(7)::before { content: '🆔'; margin-left: 8px; }
.user-info-item:nth-child(11)::before { content: '🥊'; margin-left: 8px; }
.user-info-item:nth-child(12)::before { content: '📅'; margin-left: 8px; }
.user-info-item:nth-child(13)::before { content: '⏰'; margin-left: 8px; }
.user-info-item:nth-child(14)::before { content: '📦'; margin-left: 8px; }

/* تحسين التباين للنصوص */
.user-info-section h2,
.orders-section h2,
.order-details h4,
.order-header h3 {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* تأثير focus للعناصر التفاعلية */
.order-card:focus-within {
    outline: 2px solid rgba(93, 214, 44, 0.5);
    outline-offset: 2px;
}

/* تحسين الجداول للقراءة */
.order-items tr:nth-child(even) td {
    background: rgba(93, 214, 44, 0.05);
}

/* إضافة إشارة لنوع العضوية */
.user-info-section::after {
    content: 'ACTIVE MEMBER';
    position: absolute;
    top: 10px;
    right: 20px;
    background: #5DD62C;
    color: #0f0f0f;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.user-info-section {
    position: relative;
}