.elementor-3430 .elementor-element.elementor-element-ec49c14{--display:flex;}/* Start custom CSS for shortcode, class: .elementor-element-2e0047c *//*==================================================
=    BORNAYADAK ADVANCED DASHBOARD - FINAL CSS    =
==================================================*/

.by-dashboard-container,
.by-dashboard-container * {
    font-family: 'peyda', sans-serif !important;
    box-sizing: border-box;
}

.by-dashboard-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 22px;
    padding: 15px;
    background: transparent;
    direction: rtl;
}

/* کارت‌های والد */
.by-dashboard-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 75, 110, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* چیدمان گرید */
.by-card-profile { grid-column: span 5; grid-row: span 2; }
.by-card-edit-profile { grid-column: span 7; grid-row: span 2; }
.by-card-orders { grid-column: span 7; grid-row: span 2; }
.by-card-articles { grid-column: span 5; grid-row: span 2; }

/* آواتار و هدر پروفایل */
.by-profile-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.by-locked-avatar { width: 68px; height: 68px; }
.by-automotive-avatar { width: 100%; height: 100%; }
.by-user-info h3 { font-size: 19px; font-weight: 800; color: #004b73; margin: 0; }
.by-user-role { font-size: 13px; color: #64748b; font-weight: 600; }

/* زرین‌پال و ولت */
.by-zarinpal-trust-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px; margin: 15px 0; text-align: center; }
.by-zarinpal-img { width: 50px; margin: 0 auto; display: block; }
.by-vpn-alert { font-size: 11px; color: #ef4444; font-weight: 700; margin-top: 5px; }

.by-wallet-widget { background: linear-gradient(135deg, #004b73 0%, #002c44 100%); border-radius: 16px; padding: 20px; color: #ffffff; }
.by-wallet-label { font-size: 12px; color: #93c5fd; }
.by-amount { font-size: 22px; font-weight: 800; margin: 5px 0; }
.by-wallet-inner-form input { width: 100%; padding: 12px; border-radius: 10px; border: none; text-align: center; font-weight: 400; }
.by-btn-direct-charge { background: #00a3c4 !important; color: #ffffff !important; padding: 12px; border-radius: 10px; border: none; font-weight: 700; cursor: pointer; width: 100%; margin-top: 10px; }

/* فرم ویرایش */
.by-card-title-bar { border-bottom: 2px solid #f1f5f9; padding-bottom: 12px; margin-bottom: 20px; }
.by-card-title-bar h4 { font-size: 16px; font-weight: 800; color: #004b73; margin: 0; }
.by-input-group { display: flex; flex-direction: column; margin-bottom: 12px; }
.by-input-group label { font-size: 12px; font-weight: 700; color: #475569; margin-bottom: 6px; }
.by-profile-inputs-form input { width: 100%; padding: 12px; border-radius: 12px; border: 1.5px solid #e2e8f0; background: #f8fafc; }
.by-form-row { display: flex; gap: 15px; }
.by-btn-submit-profile { width: 100%; padding: 13px; background: #004b73; color: white; border: none; border-radius: 12px; font-weight: 700; cursor: pointer; }

/* سفارشات و لودینگ بار */
.by-order-row-advanced { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px; margin-bottom: 15px; }
.by-order-meta { display: flex; justify-content: space-between; margin-bottom: 10px; }
.by-order-id { font-weight: 800; color: #004b73; font-size: 14px; }
.by-order-date { font-size: 11px; color: #94a3b8; }
.by-order-products-snapshot { display: flex; gap: 8px; margin-bottom: 15px; overflow-x: auto; }
/* تمام‌عرض کردن باکس محصول در سفارشات */
.by-order-products-snapshot { 
    display: flex; 
    flex-direction: column; /* تغییر به ستونی برای اشغال عرض */
    gap: 10px; 
    margin-bottom: 15px; 
}

.by-snapshot-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    background: #f8fafc; 
    padding: 10px; 
    border-radius: 12px; 
    border: 1px solid #e2e8f0; 
    width: 100%; /* اجبار به تمام‌عرض */
}

.by-snapshot-thumb img { 
    width: 45px; 
    height: 45px; 
    border-radius: 8px; 
    object-fit: cover; 
}

.by-snapshot-title { 
    font-size: 13px; 
    font-weight: 700; 
    color: #1e293b;
    flex-grow: 1; /* متن فضای خالی را پر کند */
}
.by-snapshot-thumb img { width: 35px; height: 35px; border-radius: 4px; object-fit: cover; }
.by-snapshot-title { font-size: 11px; font-weight: 600; white-space: nowrap; }

/* استایل لودینگ بار */
/* استایل اصلاح شده لودینگ بار */
.by-order-progress-container { margin: 25px 0 15px 0; position: relative; }
.by-progress-track { background: #e2e8f0; height: 8px; border-radius: 10px; position: relative; overflow: hidden; }
.by-progress-fill { background: linear-gradient(90deg, #00a3c4, #004b73); height: 100%; border-radius: 10px; transition: width 0.6s ease; }
.by-progress-labels { display: flex; justify-content: space-between; margin-top: 8px; }
.by-progress-labels span { font-size: 10px; font-weight: 800; color: #cbd5e1; transition: color 0.3s ease; }
.by-progress-labels span.active { color: #004b73; }

.by-order-left { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.by-order-price { font-weight: 800; color: #004b73; }
.by-status { font-size: 10px; padding: 3px 8px; border-radius: 6px; font-weight: 700; }
.status-completed { background: #dcfce7; color: #15803d; }
.status-processing { background: #fef3c7; color: #d97706; }

/* مقالات */
.by-article-item { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 10px; border-radius: 12px; background: #f8fafc; margin-bottom: 10px; }
.by-article-img { width: 45px; height: 45px; border-radius: 8px; overflow: hidden; }
.by-article-info h5 { margin: 0 0 2px 0; font-size: 13px; color: #004b73; }
.by-article-info span { font-size: 10px; color: #00a3c4; }

/* ریسپانسیو */
@media (max-width: 1024px) {
    .by-card-profile, .by-card-edit-profile, .by-card-orders, .by-card-articles { grid-column: span 12; }
}
@media (max-width: 767px) {
    .by-form-row { flex-direction: column; gap: 0; }
}/* End custom CSS */