/* تنسيقات خاصة بصفحات الدفع على الموبايل */

@media (max-width: 768px) {
    /* إعادة تعيين الهوامش والحشو */
    body {
        font-size: 15px;
        line-height: 1.6;
        background-color: #f8f9fa;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    /* إعادة تعيين الهوامش والحشو */
    body {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    /* تحسين الهيدر */
    .payment-header .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
    }
    
    .payment-header .logo {
        margin-bottom: 15px;
        align-self: center;
    }
    
    .payment-header .language-switcher {
        margin: 10px 0;
        align-self: center;
    }
    
    .payment-header .back-link {
        align-self: center;
        margin-top: 10px;
    }
    
    /* تحسين قسم تفاصيل الدفع */
    .payment-section {
        padding: 15px 0;
    }
    
    .payment-details-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .payment-info, 
    .payment-steps-container,
    .payment-qr-container {
        width: 100%;
        margin-bottom: 0;
        padding: 20px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    .payment-info h2,
    .payment-steps-container h2 {
        font-size: 18px;
        margin: 0 0 15px 0;
        color: #2c3e50;
        padding-bottom: 12px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .payment-summary {
        margin: 0;
    }
    
    .summary-item {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid #f5f5f5;
    }
    
    .summary-item:last-child {
        border-bottom: none;
    }
    
    .summary-item .label {
        color: #666;
        font-weight: 500;
    }
    
    .summary-item .value {
        color: #2c3e50;
        font-weight: 600;
    }
    
    /* تحسين خطوات الدفع */
    .payment-steps {
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .payment-steps li {
        position: relative;
        padding-right: 25px;
        margin-bottom: 15px;
        line-height: 1.6;
    }
    
    .payment-steps li:before {
        content: "•";
        position: absolute;
        right: 0;
        color: #F0B90B;
        font-weight: bold;
        font-size: 20px;
    }
    
    .payment-steps li {
        margin-bottom: 10px;
        line-height: 1.5;
    }
    
    /* تحسين صورة QR */
    .qr-code-wrapper {
        margin: 20px auto;
        max-width: 250px;
    }
    
    .qr-code {
        width: 100%;
        height: auto;
    }
    
    /* تحسين أزرار الدفع */
    .payment-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 25px 0 10px;
    }
    
    .payment-button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 20px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 16px;
        text-decoration: none;
        transition: all 0.3s ease;
        text-align: center;
        border: none;
        cursor: pointer;
        width: 100%;
    }
    
    .payment-button i {
        font-size: 18px;
    }
    
    .binance-button {
        background-color: #F0B90B;
        color: #000 !important;
    }
    
    .secondary-button {
        background-color: #f8f9fa;
        color: #333 !important;
        border: 1px solid #e0e0e0 !important;
    }
    
    .payment-button:active {
        transform: translateY(1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .payment-button {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 16px;
    }
    
    /* تحسين قسم المساعدة */
    .payment-help {
        padding: 20px;
        text-align: center;
    }
    
    .help-contacts {
        flex-direction: column;
        gap: 10px;
    }
    
    .help-contacts a {
        display: block;
        margin: 5px 0;
    }
    
    /* تحسين الفوتر */
    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }
    
    .footer-links ul,
    .footer-social .social-icons {
        justify-content: center;
        padding: 0;
    }
    
    .footer-links li {
        margin: 5px 10px;
    }
    
    .footer-bottom {
        text-align: center;
        padding: 15px 0;
    }
    
    .footer-logo,
    .footer-links,
    .footer-social {
        margin-bottom: 20px;
    }
    
    /* تحسين قسم معرف بينانس */
    .binance-id-section {
        padding: 20px;
        margin: 20px 0 0;
        border-radius: 12px;
        background-color: #f8f9fa;
    }
    
    .binance-id {
        font-size: 18px !important;
        padding: 8px 15px !important;
        display: inline-block;
        margin: 5px 0;
        word-break: break-all;
    }
    
    .binance-id-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .copy-button {
        white-space: nowrap;
        padding: 8px 12px !important;
    }
    
    /* تحسينات إضافية للشاشات الصغيرة جداً */
    @media (max-width: 480px) {
        .section-title {
            font-size: 22px;
            margin: 0 0 20px 0;
            padding-bottom: 10px;
            border-bottom: 2px solid #f0f0f0;
        }
        
        .payment-info,
        .payment-steps-container,
        .payment-qr-container {
            padding: 15px;
        }
        
        .payment-button {
            padding: 12px 15px;
            font-size: 15px;
        }
    }
}
