/* ==============================================
   وسائل الدفع المحلية - الأنماط الأساسية
   ============================================== */

/* Reset وإدادات عامة */
.lmp-payment-form * {
    box-sizing: border-box;
}

.lmp-payment-form {
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    direction: rtl;
    text-align: right;
}

/* معلومات الدفع الأساسية */
.lmp-payment-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    direction: rtl;
}

.lmp-payment-info h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.lmp-payment-info p {
    margin: 10px 0;
    line-height: 1.6;
}

.lmp-payment-info strong {
    color: #212529;
    font-weight: 600;
}

/* رقم الهاتف مع زر النسخ */
.lmp-phone-number {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-family: monospace;
    letter-spacing: 1px;
    margin: 0 10px;
}

.lmp-copy-btn {
    display: inline-block;
    background: #28a745;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.lmp-copy-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.lmp-copy-btn:active {
    transform: translateY(0);
}

/* الحقول النصية */
.lmp-form-fields {
    margin: 20px 0;
}

.lmp-form-fields .form-row {
    margin-bottom: 20px;
}

.lmp-form-fields label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
    font-size: 14px;
}

.lmp-form-fields .required {
    color: #dc3545;
    font-weight: bold;
}

.lmp-form-fields input[type="text"],
.lmp-form-fields input[type="tel"],
.lmp-form-fields input[type="number"],
.lmp-form-fields input[type="datetime-local"],
.lmp-form-fields select,
.lmp-form-fields textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    direction: rtl;
}

.lmp-form-fields input:focus,
.lmp-form-fields select:focus,
.lmp-form-fields textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.lmp-form-fields input[type="file"] {
    padding: 8px;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lmp-form-fields input[type="file"]:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.lmp-form-fields textarea {
    min-height: 80px;
    resize: vertical;
}

/* معلومات الملف */
.lmp-file-info {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

/* التعليمات */
.lmp-instructions {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    direction: rtl;
}

.lmp-instructions p {
    margin: 5px 0;
    line-height: 1.6;
}

/* أخطاء التحقق */
.lmp-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px 15px;
    margin: 10px 0;
    font-weight: 500;
}

/* رسائل النجاح */
.lmp-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 10px 15px;
    margin: 10px 0;
    font-weight: 500;
}

/* اتصميم المتجاوب */
@media (max-width: 768px) {
    .lmp-payment-form {
        margin: 10px 0;
    }
    
    .lmp-payment-info {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .lmp-payment-info h4 {
        font-size: 16px;
    }
    
    .lmp-form-fields input,
    .lmp-form-fields select,
    .lmp-form-fields textarea {
        padding: 10px;
        font-size: 16px; /* لمن zoom في iOS */
    }
    
    .lmp-phone-number {
        display: block;
        text-align: center;
        margin: 10px 0;
    }
    
    .lmp-copy-btn {
        display: block;
        width: 100%;
        margin-top: 10px;
        padding: 10px;
    }
}

/* ==============================================
   التبويبات وعرض QR Code
   ============================================== */

/* نظام التبويبات */
.lmp-payment-methods {
    margin: 20px 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.lmp-payment-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin: 0;
    padding: 0;
}

.lmp-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
    direction: rtl;
}

.lmp-tab-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.lmp-tab-btn.active {
    background: #007cba;
    color: white;
    box-shadow: inset 0 -3px 0 0 #0056b3;
}

.lmp-tab-btn.active:hover {
    background: #0056b3;
}

/* محتوى التبويبات */
.lmp-tab-content {
    display: none;
    padding: 25px;
    animation: fadeIn 0.3s ease-in;
}

.lmp-tab-content.active {
    display: block;
}

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

/* عرض QR Code */
.lmp-qr-container {
    text-align: center;
    direction: rtl;
}

.lmp-qr-container h4 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.lmp-qr-image {
    display: inline-block;
    padding: 20px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 20px 0;
    transition: all 0.3s ease;
}

.lmp-qr-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.lmp-qr-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* تعليمات QR */
.lmp-qr-instructions {
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: right;
    direction: rtl;
    line-height: 1.8;
}

.lmp-qr-instructions br {
    margin-bottom: 8px;
}

/* الدفع برقم الهاتف */
.lmp-phone-payment {
    text-align: center;
    direction: rtl;
}

.lmp-phone-payment h4 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.lmp-phone-payment .lmp-phone-number {
    font-size: 20px;
    padding: 10px 20px;
    margin: 0 15px;
    background: #28a745;
}

.lmp-phone-instructions {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: right;
    direction: rtl;
    line-height: 1.8;
}

/* تحويل العملة (Binance) */
.lmp-currency-conversion {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    direction: rtl;
}

.lmp-currency-conversion p {
    margin: 8px 0;
    font-size: 16px;
}

.lmp-currency-conversion .lmp-usd-amount {
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.lmp-exchange-info {
    font-size: 13px !important;
    opacity: 0.9;
    margin-top: 15px !important;
}

/* تفاصيل Binance */
.lmp-binance-details {
    margin: 20px 0;
}

.lmp-binance-id {
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    background: #f39c12;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    display: inline-block;
    letter-spacing: 1px;
    margin: 0 10px;
}

/* عنوان المحفظة */
.lmp-wallet-payment {
    text-align: center;
    direction: rtl;
}

.lmp-wallet-address {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
    position: relative;
}

.lmp-wallet-address code {
    background: transparent;
    color: inherit;
    padding: 0;
    border: none;
    font-size: inherit;
}

.lmp-wallet-instructions {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0;
    text-align: right;
    direction: rtl;
    line-height: 1.6;
}

/* تحذير سعر الصرف */
.lmp-exchange-rate-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px 15px;
    margin: 20px 0;
    direction: rtl;
}

.lmp-exchange-rate-notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #856404;
}

/* التصميم المتجاوب للتبويبات */
@media (max-width: 768px) {
    .lmp-payment-tabs {
        flex-direction: column;
    }
    
    .lmp-tab-btn {
        border-bottom: 1px solid #e9ecef;
    }
    
    .lmp-tab-btn:last-child {
        border-bottom: none;
    }
    
    .lmp-tab-content {
        padding: 20px 15px;
    }
    
    .lmp-qr-image {
        padding: 15px;
        margin: 15px 0;
    }
    
    .lmp-currency-conversion .lmp-usd-amount {
        font-size: 20px;
    }
    
    .lmp-binance-id {
        font-size: 14px;
        padding: 6px 10px;
        display: block;
        text-align: center;
        margin: 10px 0;
    }
    
    .lmp-wallet-address {
        font-size: 12px;
        padding: 12px;
    }
}

/* تأثيرات التحويم والتفاعل */
.lmp-qr-container .lmp-qr-image:hover img {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.lmp-tab-content h4 {
    position: relative;
    padding-bottom: 10px;
}

.lmp-tab-content h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: #007cba;
    border-radius: 2px;
}

/* حالات خاصة */
.lmp-no-qr {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    margin: 20px 0;
    font-weight: 500;
}