/* ----------------------------------------------
    پنل مدیریت فروشنده - Multi-Vendor Plugin
    ریسپانسیو، مدرن، آماده برای موبایل و تبلت
------------------------------------------------- */
:root {
    --mvp-primary: #2271b1;
    --mvp-primary-dark: #135e96;
    --mvp-success: #00a32a;
    --mvp-danger: #d63638;
    --mvp-warning: #dba617;
    --mvp-info: #72aee6;
    --mvp-gray-bg: #f6f7f7;
    --mvp-border: #c3c4c7;
    --mvp-text: #1d2327;
    --mvp-shadow: 0 2px 5px rgba(0,0,0,0.08);
    --mvp-radius: 8px;
}

/* ساختار اصلی */
.mvp-dashboard-wrap {
    max-width: 1400px;
    margin: 25px auto;
    background: #ffffff;
    border-radius: var(--mvp-radius);
    box-shadow: var(--mvp-shadow);
    padding: 20px 25px;
    direction: rtl;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* تب‌ها */
.mvp-dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 2px solid var(--mvp-border);
    margin-bottom: 28px;
    padding-bottom: 8px;
}

.mvp-dashboard-tabs .nav-tab {
    background: var(--mvp-gray-bg);
    border: none;
    border-radius: var(--mvp-radius) var(--mvp-radius) 0 0;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    color: var(--mvp-text);
    transition: 0.2s;
}

.mvp-dashboard-tabs .nav-tab:hover {
    background: #e2e4e7;
}

.mvp-dashboard-tabs .nav-tab-active {
    background: var(--mvp-primary);
    color: #fff;
}

/* محتوای تب */
.mvp-dashboard-content {
    min-height: 500px;
}

/* کارت‌ها */
.mvp-card {
    background: #fff;
    border: 1px solid var(--mvp-border);
    border-radius: var(--mvp-radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--mvp-shadow);
}

.mvp-card h3 {
    margin-top: 0;
    border-right: 4px solid var(--mvp-primary);
    padding-right: 12px;
}

/* فرم‌ها */
.mvp-form-table {
    width: 100%;
    border-collapse: collapse;
}

.mvp-form-table th {
    width: 200px;
    text-align: right;
    padding: 14px 10px;
    vertical-align: top;
    font-weight: 600;
    color: #2c3338;
}

.mvp-form-table td {
    padding: 14px 10px;
}

.mvp-form-table input[type="text"],
.mvp-form-table input[type="number"],
.mvp-form-table input[type="email"],
.mvp-form-table input[type="url"],
.mvp-form-table input[type="date"],
.mvp-form-table textarea,
.mvp-form-table select {
    width: 100%;
    max-width: 450px;
    padding: 8px 10px;
    border: 1px solid var(--mvp-border);
    border-radius: 4px;
    font-size: 14px;
}

/* دکمه‌ها */
.mvp-btn {
    display: inline-block;
    background: var(--mvp-primary);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

.mvp-btn:hover {
    background: var(--mvp-primary-dark);
    color: #fff;
}

.mvp-btn-danger {
    background: var(--mvp-danger);
}

.mvp-btn-danger:hover {
    background: #b32d2e;
}

.mvp-btn-success {
    background: var(--mvp-success);
}

.mvp-btn-small {
    padding: 4px 12px;
    font-size: 12px;
}

/* جداول */
.mvp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.mvp-table th,
.mvp-table td {
    border: 1px solid var(--mvp-border);
    padding: 12px;
    text-align: right;
    vertical-align: middle;
}

.mvp-table th {
    background: var(--mvp-gray-bg);
    font-weight: 600;
}

/* مودال */
.mvp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}

.mvp-modal.open {
    visibility: visible;
    opacity: 1;
}

.mvp-modal-content {
    background: #fff;
    max-width: 700px;
    width: 90%;
    border-radius: 10px;
    padding: 25px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 30px rgba(0,0,0,0.2);
}

.mvp-modal-close {
    position: absolute;
    left: 18px;
    top: 12px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

/* پیام‌ها */
.mvp-message {
    padding: 12px 18px;
    border-radius: 6px;
    margin: 18px 0;
    display: none;
    font-weight: 500;
}

.mvp-message.success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.mvp-message.error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.mvp-message.info {
    background: #cfe2ff;
    color: #084298;
    border: 1px solid #b6d4fe;
}

/* موجودی کیف پول */
.wallet-balance {
    background: #e9f0f9;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
    border-right: 5px solid var(--mvp-primary);
}

.wallet-balance strong {
    font-size: 1.6rem;
    color: var(--mvp-primary);
}

/* متغیرهای محصول */
.variations-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.variations-row input,
.variations-row select {
    flex: 1;
    min-width: 120px;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .mvp-dashboard-wrap {
        padding: 12px;
        margin: 10px;
    }
    .mvp-dashboard-tabs .nav-tab {
        flex: 1 0 auto;
        text-align: center;
        padding: 8px 12px;
        font-size: 13px;
    }
    .mvp-form-table th,
    .mvp-form-table td {
        display: block;
        width: 100%;
        padding: 8px 5px;
    }
    .mvp-form-table th {
        padding-top: 16px;
    }
    .mvp-table,
    .mvp-table thead,
    .mvp-table tbody,
    .mvp-table tr,
    .mvp-table th,
    .mvp-table td {
        display: block;
    }
    .mvp-table tr {
        margin-bottom: 18px;
        border: 1px solid var(--mvp-border);
        border-radius: 6px;
        overflow: hidden;
    }
    .mvp-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-right: 45%;
    }
    .mvp-table td:before {
        content: attr(data-label);
        position: absolute;
        right: 12px;
        width: 35%;
        font-weight: bold;
        color: #2c3338;
    }
    .mvp-table th {
        display: none;
    }
}

/* دکمه آپلود تصویر */
.mvp-upload-image-btn {
    margin-right: 10px;
    background: #f0f0f1;
    color: #2c3338;
    border: 1px solid var(--mvp-border);
}

.mvp-upload-image-btn:hover {
    background: #e0e0e1;
}

/* ------بخش کارت های کپن------ */

/* ----------------------------------------------
   VARIABLES & RESET
---------------------------------------------- */
:root {
    --primary-color: #0073aa;
    --primary-dark: #005a87;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --danger-dark: #c82333;
    --gray-light: #f8f9fa;
    --gray-border: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

/* آیکون‌ها فاصله استاندارد داشته باشند */
i[class^="fas"], i[class^="far"] {
    margin-left: 6px;
}

.mvp-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    direction: rtl;
    font-family: system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

.mvp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.mvp-card h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
}

/* دکمه‌ها */
.mvp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f1f5f9;
    color: var(--text-main);
}

.mvp-btn-primary {
    background: var(--primary-color);
    color: white;
}

.mvp-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.mvp-btn-success {
    background: var(--success-color);
    color: white;
}

.mvp-btn-success:hover {
    background: #218838;
}

.mvp-btn-danger {
    background: var(--danger-color);
    color: white;
}

.mvp-btn-danger:hover {
    background: var(--danger-dark);
}

.mvp-btn-outline {
    background: transparent;
    border: 1px solid var(--gray-border);
    color: var(--text-main);
}

.mvp-btn-outline:hover {
    background: var(--gray-light);
}

.mvp-btn-small {
    padding: 5px 12px;
    font-size: 0.8rem;
    gap: 4px;
}

/* فرم مدرن بدون جدول */
#mvp-coupon-form-container {
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin: 20px 0 30px;
    border: 1px solid var(--gray-border);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
    margin-bottom: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.85rem;
}

.required {
    color: var(--danger-color);
    margin-right: 2px;
}

.mvp-input, .mvp-select {
    padding: 10px 12px;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all 0.2s;
    background: white;
    width: 100%;
}

.mvp-input:focus, .mvp-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

#coupon-msg {
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 30px;
}

#coupon-msg.success {
    background: #d4edda;
    color: #155724;
}

#coupon-msg.error {
    background: #f8d7da;
    color: #721c24;
}

/* گرید کارت‌های کوپن (جایگزین جدول) */
.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.coupon-card {
    background: white;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.coupon-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.coupon-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: #fafcff;
    border-bottom: 1px solid var(--gray-border);
    flex-wrap: wrap;
    gap: 12px;
}

.coupon-code-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.coupon-code {
    font-family: monospace;
    font-weight: 700;
    font-size: 1.1rem;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 30px;
    color: var(--primary-color);
    direction: ltr;
    display: inline-flex;
    align-items: center;
}

.coupon-type-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 40px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.badge-percent {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-fixed {
    background: #fef9c3;
    color: #854d0e;
}

.coupon-actions {
    display: flex;
    gap: 8px;
}

.coupon-card-body {
    padding: 16px 18px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.detail-label {
    color: var(--text-muted);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.detail-value {
    font-weight: 600;
    color: var(--text-main);
    direction: ltr;
    text-align: left;
    font-family: monospace;
    word-break: break-word;
}

/* حالت خالی */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    background: var(--gray-light);
    border-radius: var(--radius);
    margin-top: 20px;
    color: var(--text-muted);
}

.empty-state i {
    margin-bottom: 12px;
    color: var(--primary-color);
}

.empty-state p:first-of-type {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 8px;
}

/* ریسپانسیو برای موبایل و تبلت */
@media (max-width: 768px) {
    .mvp-card {
        padding: 16px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .coupons-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .coupon-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .coupon-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .detail-item {
        justify-content: space-between;
    }
    
    .mvp-card-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mvp-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .coupon-code {
        font-size: 0.9rem;
    }
    
    .mvp-btn-small {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

/* پایان بخش کپن ها */

/* ------------بخش اورددیر سفارسات --------- */
/* CSS Variables */
:root {
    --mvp-primary: #4361ee;
    --mvp-primary-hover: #3a0ca3;
    --mvp-success: #2ecc71;
    --mvp-success-hover: #27ae60;
    --mvp-text-main: #2b2d42;
    --mvp-text-muted: #8d99ae;
    --mvp-border: #edf2f4;
    --mvp-bg-light: #f8f9fa;
    --mvp-card-bg: #ffffff;
}

/* استایل آیکن‌های Font Awesome در سفارشات */
.card-title i {
    margin-left: 10px;
    color: #4f46e5;
}

.badge-order i,
.order-date i {
    margin-left: 5px;
}

.info-label i {
    margin-left: 8px;
    width: 20px;
    color: #6b7280;
}

.price-text i {
    margin-left: 5px;
    color: #10b981;
}

.code-wrapper {
    position: relative;
}

.tracking-code {
    padding-left: 35px !important;
}

.location-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
    z-index: 1;
}

.location-icon:hover {
    color: #4f46e5;
}

.btn-action i {
    margin-left: 5px;
}

.dropdown-loader i {
    margin-left: 8px;
    font-size: 18px;
}

.empty-icon {
    color: #9ca3af;
    margin-bottom: 15px;
}

/* آیکن‌های وضعیت */
.status-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.status-wrapper .status-icon {
    font-size: 20px;
}

.status-wrapper select {
    flex: 1;
    min-width: 150px;
}

.status-icon {
    margin-left: 5px;
    font-size: 14px;
}

.status-pending { color: #f59e0b; }
.status-processing { color: #3b82f6; }
.status-completed { color: #10b981; }
.status-cancelled { color: #ef4444; }

.modern-card {
    background: var(--mvp-card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 8px;
    margin-bottom: 12px;
    direction: rtl;
}

.card-header {
    border-bottom: 2px solid var(--mvp-border);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.card-title {
    margin: 0;
    color: var(--mvp-text-main);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Grid container for cards */
.orders-flex-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.order-card {
    background: #fff;
    border: 1px solid var(--mvp-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.order-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--mvp-bg-light);
    border-bottom: 1px solid var(--mvp-border);
}

.badge-order {
    background: var(--mvp-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.order-date {
    font-size: 0.85rem;
    color: var(--mvp-text-muted);
}

.order-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.info-label {
    width: 90px;
    font-weight: 600;
    color: var(--mvp-text-muted);
    font-size: 0.85rem;
}

.info-value {
    flex: 1;
    color: var(--mvp-text-main);
}

.price-text {
    font-weight: bold;
    color: var(--mvp-success-hover);
    font-size: 1.1rem;
}

.text-muted {
    color: var(--mvp-text-muted);
    font-size: 0.8rem;
}

/* Inputs & Selects */
.modern-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dcdde1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: #fff;
    outline: none;
}

.modern-input:focus {
    border-color: var(--mvp-primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.loading { opacity: 0.6; pointer-events: none; }
.input-success { border-color: var(--mvp-success) !important; background: #eafaf1; }
.input-error { border-color: #e74c3c !important; background: #fdf2e9; }

.order-card-actions {
    padding: 15px 20px;
    background: var(--mvp-bg-light);
    border-top: 1px solid var(--mvp-border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-action {
    background: var(--mvp-primary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-action:hover {
    background: var(--mvp-primary-hover);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--mvp-success);
}

.btn-success:hover {
    background: var(--mvp-success-hover);
}

/* Dropdown details */
.order-details-dropdown {
    border-top: 1px solid var(--mvp-border);
    background: #fefefe;
    padding: 0;
}

.dropdown-content {
    padding: 20px;
    animation: slideDown 0.3s ease;
    font-size: 0.95rem;
}

.dropdown-loader {
    text-align: center;
    padding: 20px;
    color: var(--mvp-primary);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* استایل‌های مربوط به جزئیات سفارش (آیتم‌ها) */
.mvp-order-items li:last-child {
    border-bottom: none !important;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--mvp-text-muted);
}

.empty-icon { font-size: 48px; margin-bottom: 15px; display: block; }

/* Toast */
.mvp-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: 0.3s;
    z-index: 9999;
}

.mvp-toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: var(--mvp-success); }
.toast-error { background: #e74c3c; }

/* Responsive */
@media (max-width: 768px) {
    .modern-card { padding: 5px; }
    .orders-flex-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .info-label {
        width: auto;
        font-size: 0.8rem;
    }
    .order-card-actions {
        justify-content: center;
    }
    .btn-action {
        flex: 1;
        justify-content: center;
    }
    .dropdown-content {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .btn-action {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    .mvp-toast {
        left: 10px;
        right: 10px;
        bottom: 10px;
        text-align: center;
    }
}

/* فیلترها */
.orders-filter-bar {
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}
.filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.filter-label {
    font-weight: 600;
    color: #334155;
    font-size: 0.85rem;
}
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #475569;
}
.filter-btn i {
    margin-left: 5px;
}
.filter-btn.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
}
.filter-btn:hover:not(.active) {
    background: #f1f5f9;
}
@media (max-width: 640px) {
    .orders-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group {
        justify-content: space-between;
    }
}

/* پیام بدون نتیجه */
.no-results-message {
    background: #f9fafb;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
}


/* ================= استایل‌های جدید مربوط به مودال نقشه و دکمه‌های ارسال ================= */
/* CSS Variables */
.mvp-custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mvp-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
}
.mvp-modal-container {
    background: #fff;
    border-radius: 14px;
    width: 90%;
    max-width: 550px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    direction: rtl;
    text-align: right;
    animation: modalScaleUp 0.25s ease-out;
}
@keyframes modalScaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.mvp-modal-header {
    background: #f1f5f9;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}
.mvp-modal-header h4 { margin: 0; font-size: 1.1rem; color: #1e293b; font-weight: bold; }
.mvp-modal-close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #64748b; transition: 0.2s; }
.mvp-modal-close-btn:hover { color: #ef4444; }
.mvp-modal-body { padding: 20px; }

.modal-customer-details {
    background: #f8fafc;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #edf2f4;
    font-size: 0.9rem;
}
.modal-customer-details p { margin: 6px 0; color: #334155; }
.modal-customer-details p i { color: #4f46e5; margin-left: 5px; }

.modal-share-bar { margin-bottom: 15px; }
.modal-share-bar span { font-size: 0.85rem; color: #475569; display: block; margin-bottom: 8px; }
.share-buttons-wrapper { display: flex; gap: 10px; }
.share-link-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}
.share-link-btn i { margin-left: 4px; font-size: 1rem; vertical-align: middle; }
.whatsapp-color { background: #25D366; }
.whatsapp-color:hover { background: #1ebd57; transform: translateY(-1px); }
.telegram-color { background: #0088cc; }
.telegram-color:hover { background: #0077b5; transform: translateY(-1px); }
.copy-color { background: #64748b; }
.copy-color:hover { background: #475569; transform: translateY(-1px); }

/* پایان بخش ----------------سفارشات */