/* ==============================================
   فرم ثبت سفارش
   ============================================== */
.order-form-wrapper { max-width: 850px; margin: 20px auto; padding: 30px; border-radius: 20px; direction: rtl; background: #fff; border: 1px solid #eee; box-shadow: 0 10px 30px rgba(0,0,0,0.05); font-family: Tahoma, Arial, sans-serif; }
.order-form-wrapper h3 { text-align: center; color: #1a2b4c; margin-bottom: 30px; font-size: 22px; }
.order-item { background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 24px; margin-bottom: 20px; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 10px; font-size: 14px; color: #444; font-weight: 700; }
.form-label .required { color: #ff3b30; }
.input-text, .input-textarea { width: 100%; padding: 14px; border: 2px solid #e0e0e0; border-radius: 12px; background: #f9f9f9; font-size: 15px; outline: none; transition: 0.3s; font-family: inherit; box-sizing: border-box; }
.input-text:focus, .input-textarea:focus { border-color: #D4AF37; background: #fff; }
.link-input-wrapper { position: relative; }
.link-input-wrapper input { padding-left: 50px; }
.paste-btn { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); background: #f0f0f0; border: none; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; color: #777; font-size: 16px; }
.paste-btn:hover { background: #D4AF37; color: #fff; }
.domain-display { font-size: 12px; margin-top: 5px; color: #888; }
.quantity-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f0f0f0; border-radius: 12px; padding: 5px; max-width: 130px; border: 2px solid #e0e0e0; }
.quantity-wrapper button { width: 35px; height: 35px; border: none; background: #fff; border-radius: 8px; cursor: pointer; font-size: 20px; color: #555; }
.quantity-wrapper button:hover { background: #D4AF37; color: #fff; }
.quantity-wrapper input { width: 40px; text-align: center; border: none; background: transparent; font-size: 16px; font-weight: 700; outline: none; }
.remove-item-btn { position: absolute; top: 15px; left: 15px; background: #ff4d4d; color: #fff; border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.add-item-btn { width: 100%; background: transparent; border: 2px dashed #D4AF37; color: #D4AF37; padding: 15px; border-radius: 12px; font-size: 16px; font-weight: bold; cursor: pointer; margin-bottom: 20px; transition: 0.3s; font-family: inherit; }
.add-item-btn:hover { background: #fffbea; }
.submit-btn { width: 100%; background: linear-gradient(135deg, #D4AF37, #b8972f); color: #fff; border: none; padding: 18px; border-radius: 12px; font-size: 18px; font-weight: bold; cursor: pointer; box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3); font-family: inherit; }
.submit-btn:hover { transform: translateY(-2px); }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }
@media (max-width: 768px) { .row-3 { grid-template-columns: 1fr !important; } }

/* ==============================================
   جدول سفارشات
   ============================================== */
.up-table-wrapper { overflow-x: auto; background: #fff; border-radius: 12px; box-shadow: 0 2px 15px rgba(0,0,0,0.05); margin-top: 20px; }
.up-orders-table { width: 100%; border-collapse: collapse; min-width: 750px; }
.up-orders-table thead { background: #1a2b4c; }
.up-orders-table th { color: #fff; padding: 15px 12px; text-align: right; font-size: 13px; font-weight: bold; white-space: nowrap; }
.up-orders-table td { padding: 15px 12px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; font-size: 13px; color: #333; }
.up-orders-table tbody tr:hover { background: #fafbfc; }
.up-td-order-id strong { color: #1a2b4c; font-size: 14px; }
.up-td-date { color: #666 !important; font-size: 12px !important; direction: ltr; }
.up-td-price { font-weight: bold; color: #28a745 !important; }
.up-muted { color: #ccc; }

/* ==============================================
   وضعیت سفارش
   ============================================== */
.up-status-wrapper { display: inline-flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.up-status { display: inline-block; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: bold; white-space: nowrap; }
.up-status-pending { background: #fff8e1; color: #b8860b; border: 1px solid #ffe082; }
.up-status-waiting { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }
.up-status-paid { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.up-status-processing { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.up-status-completed { background: #e8f5e9; color: #1b5e20; border: 1px solid #81c784; }
.up-status-failed { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.up-status-reason { display: block; color: #999; font-size: 11px; line-height: 1.3; }

/* ==============================================
   تایمر
   ============================================== */
.up-timer-box { display: inline-flex; flex-direction: column; align-items: center; background: #fff; border: 2px solid #D4AF37; border-radius: 10px; padding: 6px 12px; min-width: 115px; }
.up-timer-countdown { font-family: 'Courier New', monospace; font-size: 15px; font-weight: bold; color: #d9534f; direction: ltr; letter-spacing: 1.5px; }
.up-timer-total { font-size: 10px; color: #666; margin-top: 3px; padding-top: 3px; border-top: 1px dashed #eee; width: 100%; text-align: center; }

/* ==============================================
   دکمه‌های عملیات
   ============================================== */
.up-action-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.up-btn-action { padding: 8px 14px; border-radius: 8px; font-size: 12px; font-weight: bold; cursor: pointer; transition: all 0.2s ease; border: none; font-family: inherit; white-space: nowrap; }
.up-btn-pay { background: #28a745; color: #fff; }
.up-btn-pay:hover { background: #218838; transform: translateY(-1px); }
.up-btn-cancel { background: #fff; color: #dc3545; border: 1px solid #dc3545; }
.up-btn-cancel:hover { background: #dc3545; color: #fff; }
.up-btn-invoice { background: #1a2b4c; color: #fff; }
.up-btn-invoice:hover { background: #0f1a2e; }
.up-btn-repeat { background: #D4AF37; color: #fff; }
.up-btn-repeat:hover { background: #b8972f; }
.up-btn-add-address { background: #2196f3; color: #fff; }
.up-btn-add-address:hover { background: #1976d2; transform: translateY(-1px); }

/* ==============================================
   خلاصه سفارشات
   ============================================== */
.orders-summary-list { margin-top: 15px; border-radius: 12px; overflow: hidden; border: 1px solid #eee; background: #fff; }
.order-summary-row { display: grid; grid-template-columns: 1fr auto auto; gap: 15px; align-items: center; padding: 15px 20px; border-bottom: 1px solid #f0f0f0; }
.order-summary-row:last-child { border-bottom: none; }
.order-summary-row:hover { background: #fafbfc; }
.order-summary-link { text-decoration: none; color: inherit; }
.order-summary-info { display: flex; flex-direction: column; gap: 4px; }
.order-summary-info strong { color: #1a2b4c; font-size: 15px; }
.order-summary-info span { color: #999; font-size: 12px; direction: ltr; text-align: right; }
.order-summary-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.view-all-orders { display: inline-block; margin-top: 15px; color: #D4AF37; text-decoration: none; font-weight: bold; font-size: 14px; }

/* ==============================================
   ✅ صفحه مدیریت آدرس‌ها
   ============================================== */
.up-addresses-wrapper {
    max-width: 900px;
    margin: 0 auto;
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
}
.up-addresses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}
.up-addresses-header h3 {
    margin: 0;
    color: #1a2b4c;
    font-size: 20px;
}
.up-btn-add-address {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    transition: 0.25s;
}
.up-btn-add-address:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(33, 150, 243, 0.4);
}

.up-addresses-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.up-address-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    padding: 20px;
    position: relative;
    transition: 0.25s;
}
.up-address-card:hover {
    border-color: #D4AF37;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}
.up-address-card.is-default {
    border-color: #28a745;
    background: linear-gradient(135deg, #fff, #f1f8f4);
}
.up-address-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: #28a745;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}
.up-address-body {
    margin-bottom: 15px;
}
.up-address-row {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}
.up-address-label {
    color: #888;
    flex-shrink: 0;
    min-width: 80px;
}
.up-address-row strong {
    color: #1a2b4c;
}
.up-address-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px dashed #eee;
    flex-wrap: wrap;
}
.up-addr-btn {
    flex: 1;
    min-width: 80px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: 0.2s;
}
.up-addr-default {
    background: #fff8e1;
    color: #b8860b;
    border: 1px solid #ffe082;
}
.up-addr-default:hover { background: #ffe082; }
.up-addr-edit {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}
.up-addr-edit:hover { background: #90caf9; color: #fff; }
.up-addr-delete {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}
.up-addr-delete:hover { background: #ef9a9a; color: #fff; }

.up-empty-addresses {
    text-align: center;
    padding: 50px 30px;
    background: #f9f9f9;
    border-radius: 14px;
    border: 2px dashed #ddd;
    grid-column: 1 / -1;
}
.up-empty-icon { font-size: 50px; margin-bottom: 15px; }
.up-empty-addresses h4 { color: #1a2b4c; margin: 0 0 8px; font-size: 17px; }
.up-empty-addresses p { color: #888; margin: 0; font-size: 13px; }

/* فرم آدرس */
.up-address-form-wrapper {
    background: #fff;
    border: 2px solid #2196f3;
    border-radius: 14px;
    padding: 25px;
    margin-top: 20px;
}
.up-address-form-wrapper h4 {
    margin: 0 0 20px;
    color: #0d47a1;
    font-size: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #ddd;
}
.up-address-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}
.up-address-alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.up-address-alert.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.up-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.up-form-group { margin-bottom: 18px; }
.up-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 13px;
    color: #333;
}
.up-form-group .required { color: #dc3545; font-size: 15px; }
.up-form-group input,
.up-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    background: #fafbfc;
    box-sizing: border-box;
    transition: 0.2s;
    color: #333;
}
.up-form-group input:focus,
.up-form-group textarea:focus {
    border-color: #2196f3;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.12);
}
.up-form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}
.up-form-group #up_addr_postal_code {
    text-align: center;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}
.up-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal !important;
    color: #555 !important;
}
.up-checkbox-label input {
    width: auto !important;
    margin: 0;
    cursor: pointer;
}
.up-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}
.up-btn-cancel-form {
    flex: 1;
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}
.up-btn-cancel-form:hover { background: #ddd; }
.up-btn-save-address {
    flex: 2;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: 0.2s;
}
.up-btn-save-address:hover { transform: translateY(-1px); }

/* ==============================================
   ✅ مودال افزودن آدرس در جزئیات سفارش
   ============================================== */
.up-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    backdrop-filter: blur(3px);
    padding: 20px;
    box-sizing: border-box;
}
.up-modal-box {
    background: #fff;
    width: 520px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    font-family: Tahoma, Arial, sans-serif;
    animation: upModalIn 0.3s ease;
}
@keyframes upModalIn {
    from { transform: translateY(-30px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}
.up-modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f0f0f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}
.up-modal-close:hover { background: #d9534f; color: #fff; }
.up-modal-box h3 {
    margin: 0 0 8px;
    color: #1a2b4c;
    font-size: 20px;
    text-align: center;
}
.up-modal-subtitle {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin-bottom: 25px;
    line-height: 1.6;
}
.up-modal-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}
.up-modal-alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.up-modal-alert.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.up-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}
.up-modal-cancel {
    flex: 1;
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}
.up-modal-cancel:hover { background: #ddd; }
.up-modal-submit {
    flex: 2;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}
.up-modal-submit:hover { transform: translateY(-1px); }

/* ==============================================
   اعلان
   ============================================== */
.up-notice { padding: 15px 20px; border-radius: 10px; margin: 20px 0; text-align: center; font-size: 14px; }
.up-notice.success { background: #d4edda; color: #155724; }
.up-notice.error { background: #f8d7da; color: #721c24; }
.up-notice.info { background: #d1ecf1; color: #0c5460; }

.up-btn-primary { display: inline-block; background: #D4AF37; color: #fff; padding: 12px 25px; border-radius: 10px; text-decoration: none; font-weight: bold; }

/* ریسپانسیو */
@media (max-width: 768px) {
    .order-summary-row { grid-template-columns: 1fr; gap: 10px; }
    .order-summary-actions { justify-content: flex-start; }
    .up-form-row-2 { grid-template-columns: 1fr; }
    .up-addresses-list { grid-template-columns: 1fr; }
}
/* ==============================================
   ✅ عنوان آدرس در کارت آدرس
   ============================================== */
.up-address-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f0f6fc;
    border-radius: 8px;
    margin-bottom: 12px;
    border-right: 3px solid #2196f3;
}
.up-address-title-icon {
    font-size: 16px;
}
.up-address-title strong {
    color: #1a2b4c;
    font-size: 14px;
    font-weight: bold;
}

/* ==============================================
   ✅ مودال بزرگ (برای افزودن آدرس)
   ============================================== */
.up-modal-large {
    width: 720px !important;
    max-width: 95% !important;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px !important;
}

/* تب‌های مودال */
.up-modal-tabs {
    display: flex;
    gap: 8px;
    background: #f0f2f5;
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 22px;
}
.up-modal-tab {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    color: #666;
    transition: 0.25s;
    white-space: nowrap;
}
.up-modal-tab:hover {
    color: #2196f3;
}
.up-modal-tab.active {
    background: #fff;
    color: #1a2b4c;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.up-modal-tab-content {
    animation: upTabFadeIn 0.25s ease;
}
@keyframes upTabFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==============================================
   ✅ لیست آدرس‌های موجود در مودال
   ============================================== */
.up-existing-addresses-list {
    min-height: 200px;
}

.up-modal-loading {
    text-align: center;
    padding: 50px 20px;
    color: #888;
}
.up-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: #2196f3;
    border-radius: 50%;
    animation: upSpin 1s linear infinite;
    margin-bottom: 15px;
}
@keyframes upSpin {
    to { transform: rotate(360deg); }
}

.up-existing-addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
}

.up-existing-address-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px;
    position: relative;
    transition: 0.25s;
    cursor: pointer;
}
.up-existing-address-card:hover {
    border-color: #2196f3;
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.15);
    transform: translateY(-2px);
}
.up-existing-address-card.is-default {
    border-color: #28a745;
    background: linear-gradient(135deg, #fff, #f1f8f4);
}
.up-addr-default-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: #28a745;
    color: #fff;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
}
.up-existing-address-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee;
    color: #1a2b4c;
    font-weight: bold;
    font-size: 14px;
}
.up-existing-address-receiver,
.up-existing-address-postal,
.up-existing-address-text {
    font-size: 12px;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.6;
}
.up-existing-address-receiver {
    color: #1a2b4c;
    font-weight: 600;
}
.up-existing-address-postal {
    color: #666;
    font-family: 'Courier New', monospace;
}
.up-existing-address-text {
    color: #777;
    max-height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.up-select-address-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.up-select-address-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}
.up-select-address-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.up-empty-existing-addresses {
    text-align: center;
    padding: 50px 30px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 2px dashed #ddd;
}
.up-empty-existing-addresses .up-empty-icon {
    font-size: 45px;
    margin-bottom: 10px;
}
.up-empty-existing-addresses h4 {
    margin: 0 0 8px;
    color: #1a2b4c;
    font-size: 16px;
}
.up-empty-existing-addresses p {
    margin: 0;
    color: #888;
    font-size: 13px;
}

/* فیلد hint */
.up-field-hint {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

@media (max-width: 600px) {
    .up-modal-large { padding: 20px !important; }
    .up-modal-tabs { flex-direction: column; }
    .up-existing-addresses-grid { grid-template-columns: 1fr; }
}
/* ==============================================
   ✅ اطلاعات حساب کاربری
   ============================================== */
/* ==============================================
   ✅ چیدمان دو ستونه برای نام و نام خانوادگی
   ============================================== */
.up-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.up-form-row-2 .up-form-group {
    margin-bottom: 20px;
}

/* کوچک‌تر کردن فیلدها */
.up-form-row-2 .up-form-input {
    padding: 11px 14px;
    font-size: 13.5px;
}

/* در موبایل یک ستونه شود */
@media (max-width: 600px) {
    .up-form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==============================================
   اطلاعات حساب کاربری
   ============================================== */
.up-account-info-wrapper {
    max-width: 750px;
    margin: 0 auto;
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
}
.up-account-info-wrapper h3 {
    color: #1a2b4c;
    font-size: 22px;
    margin: 0 0 8px;
}
.up-account-info-subtitle {
    color: #888;
    font-size: 13px;
    margin-bottom: 25px;
}

.up-account-alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    line-height: 1.7;
}
.up-account-alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.up-account-alert.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.up-account-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.up-account-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #1a2b4c;
    margin: 0 0 22px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f5f5f5;
}
.up-account-section-title span {
    font-size: 20px;
}

/* فیلد Read-Only */
.up-readonly-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    color: #1a2b4c;
    font-weight: bold;
    cursor: not-allowed;
    transition: 0.3s;
}
.up-readonly-field .up-readonly-icon {
    font-size: 14px;
    opacity: 0.6;
}
#up-display-username {
    display: inline-block;
    transition: 0.3s;
}

.up-account-hint {
    display: inline-block;
    cursor: help;
    font-size: 12px;
    color: #999;
    font-weight: normal;
    margin-right: 5px;
}

/* فرم‌های ورودی */
.up-form-group {
    margin-bottom: 20px;
}
.up-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 13px;
    color: #333;
}
.up-form-input {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    background: #fafbfc;
    box-sizing: border-box;
    transition: 0.2s;
    color: #333;
}
.up-form-input:focus {
    border-color: #2196f3;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.12);
}
.up-form-input.ltr-input {
    direction: ltr;
    text-align: left;
}
.up-form-hint {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 6px;
    line-height: 1.5;
}

/* دکمه ذخیره */
.up-account-save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    transition: 0.25s;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    margin-top: 5px;
}
.up-account-save-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}
.up-account-save-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.up-account-save-btn span:first-child {
    font-size: 18px;
}

/* ==============================================
   شماره موبایل
   ============================================== */
.up-phone-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #f0f6fc;
    border-radius: 12px;
    border-right: 4px solid #2196f3;
    flex-wrap: wrap;
    gap: 15px;
}
.up-phone-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.up-phone-label {
    font-size: 12px;
    color: #888;
}
.up-phone-info strong {
    font-size: 18px;
    color: #1a2b4c;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}
.up-change-phone-btn {
    background: #2196f3;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.up-change-phone-btn:hover {
    background: #1976d2;
    transform: translateY(-1px);
}

.up-phone-change-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 22px;
    border: 1px solid #e0e0e0;
}
.up-phone-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.up-cancel-btn {
    flex: 1;
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.up-cancel-btn:hover {
    background: #ddd;
}
.up-send-otp-btn,
.up-verify-btn {
    flex: 2;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
}
.up-verify-btn {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}
.up-send-otp-btn:hover:not(:disabled),
.up-verify-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}
.up-send-otp-btn:disabled,
.up-verify-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.up-otp-info {
    background: #e3f2fd;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
    color: #0d47a1;
    text-align: center;
    margin-bottom: 18px;
    border-right: 4px solid #2196f3;
}
.up-otp-info strong {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    direction: ltr;
    display: inline-block;
}

.up-otp-input {
    text-align: center !important;
    letter-spacing: 12px;
    font-size: 22px !important;
    font-weight: bold;
    font-family: 'Courier New', monospace !important;
    direction: ltr;
}
.up-otp-input::placeholder {
    letter-spacing: 12px;
    color: #ccc;
}

.up-otp-timer {
    text-align: center;
    font-size: 13px;
    color: #666;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}
.up-otp-timer strong {
    color: #d9534f;
    font-size: 15px;
    margin: 0 3px;
    font-family: 'Courier New', monospace;
}

@media (max-width: 600px) {
    .up-account-section { padding: 18px; }
    .up-phone-display { flex-direction: column; align-items: stretch; }
    .up-change-phone-btn { width: 100%; }
    .up-phone-actions { flex-direction: column; }
    .up-cancel-btn,
    .up-send-otp-btn,
    .up-verify-btn { width: 100%; }
}
.up-account-info-subtitle {
    color: #888;
    font-size: 13px;
    margin-bottom: 25px;
}

.up-account-alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    line-height: 1.7;
}
.up-account-alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.up-account-alert.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.up-account-alert.warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

.up-account-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.up-account-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #1a2b4c;
    margin: 0 0 22px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f5f5f5;
}
.up-account-section-title span {
    font-size: 20px;
}

/* فیلد Read-Only */
.up-readonly-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: #1a2b4c;
    font-weight: bold;
    direction: ltr;
    text-align: right;
    cursor: not-allowed;
}
.up-readonly-field .up-readonly-icon {
    font-size: 14px;
    opacity: 0.6;
}
#up-display-username {
    direction: rtl;
    display: inline-block;
}

.up-account-hint {
    display: inline-block;
    cursor: help;
    font-size: 12px;
    color: #999;
    font-weight: normal;
    margin-right: 5px;
}

/* فرم‌های ورودی */
.up-form-group {
    margin-bottom: 20px;
}
.up-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 13px;
    color: #333;
}
.up-form-input {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    background: #fafbfc;
    box-sizing: border-box;
    transition: 0.2s;
    color: #333;
}
.up-form-input:focus {
    border-color: #2196f3;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.12);
}
.up-form-input.ltr-input {
    direction: ltr;
    text-align: left;
}
.up-form-hint {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 6px;
    line-height: 1.5;
}

/* دکمه ذخیره */
.up-account-save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    transition: 0.25s;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    margin-top: 5px;
}
.up-account-save-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}
.up-account-save-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.up-account-save-btn span:first-child {
    font-size: 18px;
}

/* ==============================================
   ✅ شماره موبایل
   ============================================== */
.up-phone-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #f0f6fc;
    border-radius: 12px;
    border-right: 4px solid #2196f3;
    flex-wrap: wrap;
    gap: 15px;
}
.up-phone-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.up-phone-label {
    font-size: 12px;
    color: #888;
}
.up-phone-info strong {
    font-size: 18px;
    color: #1a2b4c;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}
.up-change-phone-btn {
    background: #2196f3;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.up-change-phone-btn:hover {
    background: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* فرم تغییر شماره */
.up-phone-change-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 22px;
    border: 1px solid #e0e0e0;
}
.up-phone-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.up-cancel-btn {
    flex: 1;
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.up-cancel-btn:hover {
    background: #ddd;
}
.up-send-otp-btn,
.up-verify-btn {
    flex: 2;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.25);
}
.up-verify-btn {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}
.up-send-otp-btn:hover:not(:disabled),
.up-verify-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}
.up-send-otp-btn:disabled,
.up-verify-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* OTP Info */
.up-otp-info {
    background: #e3f2fd;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
    color: #0d47a1;
    text-align: center;
    margin-bottom: 18px;
    border-right: 4px solid #2196f3;
}
.up-otp-info strong {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    direction: ltr;
    display: inline-block;
}

.up-otp-input {
    text-align: center !important;
    letter-spacing: 12px;
    font-size: 22px !important;
    font-weight: bold;
    font-family: 'Courier New', monospace !important;
    direction: ltr;
}
.up-otp-input::placeholder {
    letter-spacing: 12px;
    color: #ccc;
}

.up-otp-timer {
    text-align: center;
    font-size: 13px;
    color: #666;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}
.up-otp-timer strong {
    color: #d9534f;
    font-size: 15px;
    margin: 0 3px;
    font-family: 'Courier New', monospace;
}

/* جدول پرداخت‌ها */
.up-payments-list {
    margin-top: 20px;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background: #fff;
}
.up-payments-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.up-payments-table thead {
    background: #1a2b4c;
}
.up-payments-table th {
    color: #fff;
    padding: 14px;
    text-align: right;
    font-size: 13px;
}
.up-payments-table td {
    padding: 14px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #333;
}
.up-payments-table tbody tr:hover {
    background: #fafbfc;
}

@media (max-width: 600px) {
    .up-account-section { padding: 18px; }
    .up-phone-display { flex-direction: column; align-items: stretch; }
    .up-change-phone-btn { width: 100%; }
    .up-phone-actions { flex-direction: column; }
    .up-cancel-btn,
    .up-send-otp-btn,
    .up-verify-btn { width: 100%; }
}
/* ==============================================
   ✅ فیلتر سفارشات کاربر
   ============================================== */
.up-orders-filter {
    display: flex;
    gap: 10px;
    margin: 20px 0 15px;
    flex-wrap: wrap;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 14px;
    border: 1px solid #eee;
}

.up-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
}

.up-filter-btn:hover {
    border-color: #D4AF37;
    color: #D4AF37;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.up-filter-btn.active {
    background: linear-gradient(135deg, #1a2b4c, #0f1a2e);
    border-color: #1a2b4c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 43, 76, 0.3);
}

.up-filter-btn.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(26, 43, 76, 0.4);
}

/* شمارشگر */
.up-filter-count {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    transition: 0.2s;
}

.up-filter-btn.active .up-filter-count {
    background: rgba(212, 175, 55, 0.3);
    color: #fff;
}

.up-filter-btn:hover:not(.active) .up-filter-count {
    background: #fff8e1;
    color: #b8860b;
}

/* حالت خالی */
.up-filter-btn.filter-empty {
    opacity: 0.6;
}

.up-filter-btn.filter-empty .up-filter-count {
    background: #f0f0f0;
    color: #bbb;
}

/* پیام "یافت نشد" */
.up-no-results {
    text-align: center;
    padding: 50px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-top: 15px;
    border: 2px dashed #ddd;
}

.up-no-results-icon {
    font-size: 50px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.up-no-results p {
    color: #888;
    font-size: 15px;
    margin: 0;
}

/* انیمیشن نمایش ردیف‌ها */
.up-order-row {
    transition: opacity 0.2s ease;
}

/* موبایل */
@media (max-width: 600px) {
    .up-orders-filter {
        padding: 6px;
        gap: 6px;
    }
    
    .up-filter-btn {
        flex: 1 1 calc(50% - 6px);
        padding: 9px 12px;
        font-size: 12px;
        justify-content: center;
    }
    
    .up-filter-count {
        font-size: 10px;
        padding: 1px 6px;
    }
}

@media (max-width: 400px) {
    .up-filter-btn {
        flex: 1 1 100%;
    }
}
/* ==============================================
   ✅ پیشخوان کاربر - کارت‌های آماری و اطلاعات
   ============================================== */
.up-dashboard-home {
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
}

/* ==============================================
   کارت خوش‌آمدگویی
   ============================================== */
.up-welcome-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #1a2b4c, #2c3e50);
    color: #fff;
    padding: 25px 30px;
    border-radius: 16px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(26, 43, 76, 0.15);
}
.up-welcome-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.up-welcome-icon {
    font-size: 45px;
    line-height: 1;
    flex-shrink: 0;
}
.up-welcome-text {
    flex: 1;
    min-width: 200px;
}
.up-welcome-text h3 {
    margin: 0 0 5px;
    font-size: 20px;
    color: #fff;
}
.up-welcome-text p {
    margin: 0;
    font-size: 13px;
    opacity: 0.8;
}
.up-welcome-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #D4AF37;
    color: #fff;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: bold;
    transition: 0.25s;
    position: relative;
    z-index: 1;
}
.up-welcome-cta:hover {
    background: #b8972f;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}

/* ==============================================
   بخش‌های پیشخوان
   ============================================== */
.up-home-section {
    margin-bottom: 25px;
}
.up-home-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #1a2b4c;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: bold;
}
.up-home-section-title span {
    font-size: 20px;
}

/* ==============================================
   کارت‌های آماری سفارشات
   ============================================== */
.up-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.up-stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    padding: 18px 20px;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.up-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.up-stat-card.up-stat-paid {
    border-color: #a5d6a7;
    background: linear-gradient(135deg, #fff 0%, #f1f8f4 100%);
}
.up-stat-card.up-stat-paid:hover {
    border-color: #28a745;
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.15);
}

.up-stat-card.up-stat-pending {
    border-color: #ffe082;
    background: linear-gradient(135deg, #fff 0%, #fffbf0 100%);
}
.up-stat-card.up-stat-pending:hover {
    border-color: #ffc107;
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.15);
}

.up-stat-card.up-stat-cancelled {
    border-color: #ef9a9a;
    background: linear-gradient(135deg, #fff 0%, #fef5f5 100%);
}
.up-stat-card.up-stat-cancelled:hover {
    border-color: #dc3545;
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.15);
}

.up-stat-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}
.up-stat-body {
    flex: 1;
    min-width: 0;
}
.up-stat-count {
    font-size: 26px;
    font-weight: bold;
    color: #1a2b4c;
    line-height: 1.1;
    margin-bottom: 4px;
    font-family: Tahoma;
}
.up-stat-label {
    font-size: 13px;
    color: #555;
    font-weight: bold;
    margin-bottom: 4px;
}
.up-stat-desc {
    font-size: 11px;
    color: #888;
    line-height: 1.5;
}
.up-stat-desc strong {
    color: #1a2b4c;
}
.up-stat-arrow {
    font-size: 18px;
    color: #ccc;
    transition: 0.25s;
    flex-shrink: 0;
}
.up-stat-card:hover .up-stat-arrow {
    color: #D4AF37;
    transform: translateX(-5px);
}

/* لینک مشاهده همه */
.up-home-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #D4AF37;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    padding: 10px 0;
    transition: 0.2s;
}
.up-home-view-all:hover {
    color: #b8972f;
    gap: 12px;
}

/* ==============================================
   کارت‌های اطلاعات کاربر
   ============================================== */
.up-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.up-info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    padding: 18px 20px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.up-info-card:hover {
    border-color: #2196f3;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.1);
}

.up-info-icon-box {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 22px;
    flex-shrink: 0;
}
.up-icon-blue {
    background: #e3f2fd;
}
.up-icon-green {
    background: #e8f5e9;
}

.up-info-body {
    flex: 1;
    min-width: 0;
}
.up-info-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}
.up-info-value {
    font-size: 14px;
    color: #1a2b4c;
    font-weight: bold;
    line-height: 1.5;
}
.up-info-value strong {
    display: block;
    color: #1a2b4c;
    margin-bottom: 2px;
}
.up-info-address-text {
    display: block;
    font-weight: normal;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}
.up-info-empty {
    color: #bbb;
    font-weight: normal;
    font-style: italic;
    font-size: 13px;
}
.up-info-action {
    font-size: 16px;
    color: #ccc;
    transition: 0.25s;
}
.up-info-card:hover .up-info-action {
    color: #2196f3;
}

/* ==============================================
   بخش پشتیبانی
   ============================================== */
.up-support-card {
    background: linear-gradient(135deg, #f0f6fc, #e3f2fd);
    border: 2px solid #bbdefb;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.up-support-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 200px;
}
.up-support-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.1);
}
.up-support-text h5 {
    margin: 0 0 4px;
    color: #0d47a1;
    font-size: 15px;
}
.up-support-text p {
    margin: 0;
    font-size: 12px;
    color: #1976d2;
    line-height: 1.5;
}

.up-support-call-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: #fff;
    text-decoration: none;
    padding: 14px 25px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    transition: 0.25s;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}
.up-support-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}
.up-call-icon {
    font-size: 20px;
}
.up-call-text {
    font-size: 13px;
}
.up-call-number {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding-right: 10px;
    border-right: 1px solid rgba(255,255,255,0.3);
    margin-right: 5px;
    letter-spacing: 1px;
}
.up-support-no-phone {
    color: #888;
    font-size: 13px;
}

/* ==============================================
   ریسپانسیو
   ============================================== */
@media (max-width: 900px) {
    .up-stats-grid {
        grid-template-columns: 1fr;
    }
    .up-info-grid {
        grid-template-columns: 1fr;
    }
    .up-stat-count {
        font-size: 22px;
    }
}

@media (max-width: 600px) {
    .up-welcome-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    .up-welcome-text h3 {
        font-size: 17px;
    }
    .up-welcome-cta {
        width: 100%;
        justify-content: center;
    }
    .up-support-card {
        flex-direction: column;
        align-items: stretch;
    }
    .up-support-call-btn {
        justify-content: center;
    }
    .up-call-number {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
    }
    .up-stat-card {
        padding: 15px 18px;
    }
    .up-stat-icon {
        font-size: 28px;
    }
    .up-stat-count {
        font-size: 20px;
    }
}
/* ساعات پاسخگویی در کارت پشتیبانی */
.up-support-hours {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #0d47a1;
    font-weight: bold;
    border: 1px dashed #90caf9;
}

.up-support-hours .up-hours-icon {
    font-size: 14px;
}

/* پیام نبود شماره */
.up-support-no-phone {
    background: #fff3cd;
    color: #856404;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid #ffe082;
    text-align: center;
}
/* ==============================================
   صفحه پشتیبانی - استایل مدرن
   ============================================== */
.up-support-page {
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
}

/* ==============================================
   هدر
   ============================================== */
.up-support-header {
    text-align: center;
    padding: 35px 25px;
    background: linear-gradient(135deg, #1a2b4c 0%, #2c3e50 100%);
    border-radius: 20px;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.up-support-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.up-support-header-icon {
    font-size: 55px;
    margin-bottom: 12px;
    line-height: 1;
    position: relative;
}
.up-support-header h2 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #fff;
    font-weight: bold;
    position: relative;
}
.up-support-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.7;
    position: relative;
}

/* ==============================================
   بنر ساعات پاسخگویی
   ============================================== */
.up-support-hours-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #fff8e1 0%, #fffbf0 100%);
    border: 2px solid #ffe082;
    border-radius: 15px;
    padding: 18px 22px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.08);
}
.up-hours-banner-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    background: #fff;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.15);
}
.up-hours-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.up-hours-banner-text strong {
    color: #856404;
    font-size: 13px;
}
.up-hours-banner-text span {
    color: #b8860b;
    font-size: 15px;
    font-weight: bold;
}

/* ==============================================
   کارت‌های تماس
   ============================================== */
.up-support-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.up-contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.up-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    transition: width 0.25s ease;
}
.up-contact-mobile::before {
    background: linear-gradient(180deg, #28a745, #1e7e34);
}
.up-contact-office::before {
    background: linear-gradient(180deg, #2196f3, #1976d2);
}

.up-contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
.up-contact-mobile:hover {
    border-color: #28a745;
}
.up-contact-office:hover {
    border-color: #2196f3;
}

.up-contact-card:hover::before {
    width: 100%;
    opacity: 0.06;
}

.up-contact-icon-wrap {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
    position: relative;
}
.up-contact-mobile .up-contact-icon-wrap {
    background: #e8f5e9;
}
.up-contact-office .up-contact-icon-wrap {
    background: #e3f2fd;
}
.up-contact-icon {
    font-size: 26px;
    line-height: 1;
}

.up-contact-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}
.up-contact-label {
    font-size: 12px;
    color: #888;
}
.up-contact-value {
    font-size: 17px;
    color: #1a2b4c;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}
.up-contact-action {
    font-size: 11px;
    color: #D4AF37;
    font-weight: bold;
    transition: 0.2s;
}
.up-contact-card:hover .up-contact-action {
    color: #b8972f;
}

/* ==============================================
   کارت آدرس
   ============================================== */
.up-support-address-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 22px;
    margin-bottom: 20px;
    transition: 0.25s;
}
.up-support-address-card:hover {
    border-color: #D4AF37;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.1);
}

.up-address-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}
.up-address-icon-wrap {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #D4AF37, #b8972f);
    border-radius: 12px;
    flex-shrink: 0;
}
.up-address-icon-wrap span {
    font-size: 24px;
    line-height: 1;
}
.up-address-card-header h4 {
    margin: 0 0 3px;
    color: #1a2b4c;
    font-size: 15px;
}
.up-address-card-header p {
    margin: 0;
    color: #888;
    font-size: 12px;
}

.up-address-text {
    background: #f8f9fa;
    padding: 15px 18px;
    border-radius: 10px;
    color: #333;
    font-size: 14px;
    line-height: 1.8;
    border-right: 4px solid #D4AF37;
    margin-bottom: 15px;
}

.up-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: bold;
    transition: 0.25s;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}
.up-map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(33, 150, 243, 0.4);
}
.up-map-icon {
    font-size: 16px;
}

/* ==============================================
   حالت خالی
   ============================================== */
.up-support-empty {
    text-align: center;
    padding: 60px 30px;
    background: #f9f9f9;
    border-radius: 15px;
    border: 2px dashed #ddd;
}
.up-support-empty-icon {
    font-size: 50px;
    margin-bottom: 15px;
    opacity: 0.6;
}
.up-support-empty h4 {
    margin: 0 0 8px;
    color: #666;
    font-size: 16px;
}
.up-support-empty p {
    margin: 0;
    color: #999;
    font-size: 13px;
}

/* ==============================================
   ریسپانسیو
   ============================================== */
@media (max-width: 700px) {
    .up-support-cards {
        grid-template-columns: 1fr;
    }
    .up-support-header {
        padding: 28px 20px;
    }
    .up-support-header h2 {
        font-size: 20px;
    }
    .up-support-header-icon {
        font-size: 45px;
    }
}

@media (max-width: 500px) {
    .up-contact-card {
        padding: 16px;
    }
    .up-contact-icon-wrap {
        width: 48px;
        height: 48px;
    }
    .up-contact-icon {
        font-size: 22px;
    }
    .up-contact-value {
        font-size: 15px;
    }
    .up-address-text {
        font-size: 13px;
    }
    .up-map-btn {
        width: 100%;
        justify-content: center;
    }
}
/* ==============================================
   فونت وزیرمتن برای افزونه Shop System
   ============================================== */
.up-dashboard-home,
.up-account-info-wrapper,
.up-support-page,
.up-order-form-wrapper,
.dashboard-full-wrapper,
.dashboard-sidebar,
.dashboard-content,
.auth-modal,
.up-auth-container,
.up-orders-table,
.up-payments-table,
.up-modal-box,
.up-addresses-wrapper,
.up-toast,
input, textarea, select, button {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif !important;
}

/* اصلاح ارتفاع خط برای فونت جدید */
body, p, li, div, span {
    line-height: 1.8;
}

/* اعداد لاتین در فیلدها */
.ltr-input, 
input[type="tel"],
input[type="url"],
input[type="email"],
input[type="number"],
.up-otp-input,
.up-contact-value,
.up-call-number,
.up-list-customer span {
    font-family: 'Vazirmatn', 'Courier New', monospace !important;
    direction: ltr;
    text-align: left;
}
/* ==============================================
   ✅ اصلاح ریسپانسیو بودن فرم ثبت سفارش
   ============================================== */
@media (max-width: 768px) {
    /* جلوگیری از بیرون زدن فرم از صفحه */
    .order-form-wrapper, 
    .up-landing-form-section {
        padding: 15px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

    /* کم کردن حاشیه داخلی هر آیتم */
    .order-item {
        padding: 15px !important;
        box-sizing: border-box !important;
    }

    /* تبدیل ۳ ستون (رنگ، سایز، تعداد) به ۱ ستون */
    .row-3 {
        display: grid;
        grid-template-columns: 1fr !important; /* زیر هم قرار بگیرند */
        gap: 12px !important;
    }

    /* فول شدن فیلدها */
    .input-text, 
    .input-textarea, 
    .form-control {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 14px !important;
    }

    /* فاصله مناسب برای فیلد لینک (به خاطر دکمه کپی) */
    .link-input-wrapper input {
        padding-left: 45px !important; 
    }

    /* فول شدن کادر تعداد */
    .quantity-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* بزرگتر کردن دکمه‌ها برای لمس راحت‌تر */
    .submit-btn, 
    .up-btn-submit, 
    .add-item-btn {
        font-size: 16px !important;
        padding: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}