@font-face {
  font-family: 'Fontmagicfile';
  src:
    url('https://magicfile.ir/font/magicfile.woff2') format('woff2'),
    url('https://magicfile.ir/font/magicfile.woff') format('woff');
  font-display: swap;
}

        
        :root { 
            --primary: #3498db; 
            --primary-light: #5dade2; 
            --primary-dark: #2980b9; 
            --secondary: #ff6b6b; 
            --success: #2ecc71; 
            --warning: #f39c12; 
            --light: #f8f9fa; 
            --dark: #34495e; 
            --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); 
            --gradient-success: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); 
            --gradient-warning: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); 
            --gradient-danger: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); 
            --sky-blue: #e8f4fc; 
            --light-blue: #d6eaf8; 
        }
        
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Fontmagicfile'; background: linear-gradient(135deg, #e8f4fc 0%, #d6eaf8 100%); min-height: 100vh; line-height: 1.6; color: #2c3e50; direction: rtl; }
        button, input, textarea, select {font-family: inherit;}
        .header { background: var(--gradient); color: white; padding: 10px 0; box-shadow: 0 4px 20px rgba(52,152,219,0.15); position: relative; overflow: hidden; }
        .header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>'); background-size: cover; background-position: center bottom; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
        .header-content { text-align: center; position: relative; z-index: 1; }
        .cart-icon { background: rgba(255,255,255,0.2); border-radius: 50%; width: 90px; height: 90px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
        .header h1 { font-size: 2.2rem; margin-bottom: 10px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
        .header p { font-size: 1.2rem; opacity: 0.95; max-width: 600px; margin: 0 auto; }
        .main-content { padding: 20px 0; }
        .grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
        @media (max-width: 968px) { .grid-layout { grid-template-columns: 1fr; gap: 25px; } }
        .card { background: white; border-radius: 20px; box-shadow: 0 10px 30px rgba(52,152,219,0.1); overflow: hidden; transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.5); }
        .card-header { background: var(--gradient); color: white; padding: 20px 25px; font-weight: bold; display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; }
        .card-body { padding: 10px; }
        .file-list { max-height: 500px; overflow-y: auto; padding: 10px 5px; }
        .file-item { display: flex; justify-content: space-between; align-items: center; padding: 18px 15px; border-bottom: 1px solid #e8f4fc; transition: all 0.3s ease; border-radius: 12px; margin-bottom: 8px; background: #f8fbfe; }
        .file-item:hover { background: #e8f4fc; transform: translateX(-5px); box-shadow: 0 5px 15px rgba(52,152,219,0.1); }
        .file-item:last-child { border-bottom: none; margin-bottom: 0; }
        .file-info { flex-grow: 1; padding-left: 15px; }
        .file-title { font-weight: bold; margin-bottom: 8px; color: #2c3e50; font-size: 1.05rem; }
        .file-price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
        .original-price { color: #7f8c8d; text-decoration: line-through; font-size: 0.9rem; }
        .discounted-price { color: var(--success); font-weight: bold; font-size: 1.1rem; }
        .discount-badge { background: var(--gradient-warning); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; box-shadow: 0 2px 8px rgba(243,156,18,0.3); }
        .file-actions { display: flex; gap: 8px; }
        .btn { padding: 10px 16px; border: none; border-radius: 10px; cursor: pointer; transition: all 0.3s ease; font-family: inherit; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
        .btn-info { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(52,152,219,0.3); }
        .btn-danger { background: #e74c3c; color: white; box-shadow: 0 4px 12px rgba(231,76,60,0.3); }
        .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
        .btn-info:hover { background: var(--primary-dark); }
        .btn-danger:hover { background: #c0392b; }
        .price-section { background: white; border-radius: 20px; padding: 30px; box-shadow: 0 10px 30px rgba(52,152,219,0.1); border: 1px solid rgba(255,255,255,0.5); top: 20px; }
        .urgent-discount { background: var(--gradient-warning); color: white; padding: 5px; border-radius: 15px; text-align: center; margin-bottom: 5px; box-shadow: 0 6px 20px rgba(243,156,18,0.4);  border: 2px solid #fff; }
        .urgent-discount i { margin-left: 8px; font-size: 1.2rem; }
        .countdown { padding: 5px; border-radius: 15px; text-align: center; margin-bottom: 5px; }
        .price-details { margin-bottom: 25px; background: #f8fbfe; padding: 20px; border-radius: 15px; border: 1px solid #e8f4fc; }
        .price-row { display: flex; justify-content: space-between; margin-bottom: 12px; padding: 10px 0; border-bottom: 1px dashed #d6eaf8; }
        .price-row:last-child { border-bottom: none; }
        .final-price { font-size: 20px; font-weight: bold; color: var(--primary); text-align: center; margin: 5px 0; padding: 5px; background: rgba(52,152,219,0.08); border-radius: 15px; border: 2px dashed var(--primary); }
        .form-group { margin-bottom: 25px; }
        .form-label { display: block; margin-bottom: 10px; font-weight: bold; color: #2c3e50; font-size: 1.05rem; }
        .form-control { width: 100%; padding: 8px 10px; border: 2px solid #d6eaf8; border-radius: 12px; transition: all 0.3s ease; font-family: inherit; font-size: 1rem; background: #f8fbfe; }
        .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(52,152,219,0.1); outline: none; background: white; }
        .input-group { display: flex; gap: 12px; }
        .input-group .form-control { flex: 1; }
        .btn-pay { background: var(--gradient-danger); color: white; padding: 15px;  font-size: 1.2rem; border-radius: 50px; box-shadow: 0 8px 25px rgba(231,76,60,0.4); transition: all 0.3s ease; width: 100%; position: relative; overflow: hidden; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
        .btn-pay::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transition: 0.5s; }
        .btn-pay:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(231,76,60,0.6); background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
        .btn-pay:hover::before { left: 100%; }
        .payment-options { display: flex; gap: 12px; margin: 5px 0; }
        .payment-option { flex: 1; }
        .payment-option input { display: none; }
        .payment-option label { display: block; padding: 10px; border: 2px solid #d6eaf8; border-radius: 12px; text-align: center; cursor: pointer; transition: all 0.3s ease; background: #f8fbfe; font-weight: 500; }
        .payment-option input:checked + label { border-color: var(--primary); background: rgba(52,152,219,0.1); color: var(--primary); font-weight: bold; box-shadow: 0 4px 12px rgba(52,152,219,0.2); }
        .message-box { padding: 18px; border-radius: 12px; margin: 20px 0; text-align: center; font-weight: bold; display: none; animation: fadeIn 0.5s ease; }
        .message-success { background: rgba(46,204,113,0.1); border: 2px solid #2ecc71; color: #2ecc71; }
        .message-error { background: rgba(231,76,60,0.1); border: 2px solid #e74c3c; color: #e74c3c; padding: 10px;}
        .message-info { background: rgba(52,152,219,0.1); border: 2px solid var(--primary); color: var(--primary); }
        .security-badge { background: var(--gradient-success); color: white; padding: 15px 20px; border-radius: 12px; text-align: center; margin-top: 25px; box-shadow: 0 6px 20px rgba(46,204,113,0.4); }
        .feature-list { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 10px; }
        .feature-item { text-align: center; flex: 1; min-width: 160px; padding: 5px; }
        .feature-icon { background: var(--gradient); color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-size: 1.8rem; box-shadow: 0 8px 20px rgba(52,152,219,0.3); }
        .feature-item h4 { margin-bottom: 8px; color: #2c3e50; }
        .feature-item p { color: #7f8c8d; font-size: 0.9rem; }
        .empty-cart { text-align: center; padding: 60px 30px; }
        .empty-cart i { font-size: 40px; }
        .empty-cart h2 { color: #7f8c8d; margin-bottom: 15px; }
        .empty-cart p { color: #95a5a6; margin-bottom: 30px; font-size: 1.1rem; }
        .special-message { background: var(--gradient); color: white; padding: 5px; margin: 0 0 10px 0; text-align: center; box-shadow: 0 8px 25px rgba(52,152,219,0.4); font-size: 16px; line-height: 1.8; }
        .special-message i { margin-left: 10px; font-size: 1.3rem; }
        .loading { display: inline-block; width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.3); border-radius: 50%; border-top-color: #fff; animation: spin 1s ease-in-out infinite; }
        @keyframes spin { to { transform: rotate(360deg); } }
        @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
        .fade-in { animation: fadeIn 0.6s ease; }
        .section-title { text-align: center; margin-bottom: 30px; color: #2c3e50; font-size: 1.8rem; }
        .section-title i { margin-left: 10px; color: var(--primary); }
        .action-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 5px; }
        .btn-outline-primary { background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 5px 15px; border-radius: 50px; transition: all 0.3s ease; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
        .btn-outline-primary:hover { background: var(--primary); color: white; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(52,152,219,0.3); }
        .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
        .modal-overlay.active { opacity: 1; visibility: visible; }
        .modal { background: white; border-radius: 20px; padding: 30px; max-width: 450px; width: 90%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.3); transform: scale(0.9); transition: all 0.3s ease; }
        .modal-overlay.active .modal { transform: scale(1); }
        .modal-icon { font-size: 4rem; color: #e74c3c; margin-bottom: 20px; }
        .modal-title { font-size: 1.5rem; margin-bottom: 15px; color: #2c3e50; }
        .modal-message { color: #7f8c8d; margin-bottom: 25px; line-height: 1.6; }
        .modal-actions { display: flex; gap: 15px; justify-content: center; }
        .btn-cancel { background: #95a5a6; color: white; padding: 12px 25px; border: none; border-radius: 10px; cursor: pointer; transition: all 0.3s ease; font-family: inherit; }
        .btn-confirm { background: #e74c3c; color: white; padding: 12px 25px; border: none; border-radius: 10px; cursor: pointer; transition: all 0.3s ease; font-family: inherit; }
        .btn-cancel:hover, .btn-confirm:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
        @media (max-width: 768px) { .header h1 { font-size: 1.8rem; } .header p { font-size: 1rem; } .cart-icon { width: 70px; height: 70px; } .grid-layout { gap: 20px; } .price-section { padding: 20px; } .feature-list { flex-direction: column; gap: 15px; } .payment-options { flex-direction: column; } .input-group { flex-direction: column; } .file-item { flex-direction: column; align-items: flex-start; gap: 15px; } .file-actions { align-self: flex-end; } .modal-actions { flex-direction: column; } }
        .file-list::-webkit-scrollbar { width: 6px; }
        .file-list::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
        .file-list::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
        .file-list::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }
        @keyframes slideOut { from { opacity: 1; transform: translateX(0); max-height: 100px; } to { opacity: 0; transform: translateX(-100%); max-height: 0; padding: 0; margin: 0; } }
        .removing { animation: slideOut 0.4s ease forwards; }
        .file-counter { background: rgba(255,255,255,0.2); padding: 5px 12px; border-radius: 15px; font-size: 0.9rem; }
        a{color:#fff;text-decoration:none;}
        .cardf{background: white;}
		.gateway-status {display: flex;justify-content: space-around;margin: 15px 0;padding: 10px; background: #f8f9fa;border-radius: 8px;}
		.gateway-status-item {text-align: center;padding: 10px;}
		.gateway-status-good {color: #27ae60;}
		.gateway-status-warning {color: #f39c12;}
		.gateway-status-bad {color: #e74c3c;}
		.retry-suggestion {background: #fff3cd; border: 1px solid #ffeaa7;border-radius: 8px;padding: 15px;margin-top: 15px;text-align: right;}
		.retry-suggestion h4 {color: #e67e22;margin-bottom: 8px;display: flex;align-items: center;gap: 8px;}
		.retry-suggestion ul {list-style-type: none;padding-right: 0;margin: 10px 0;}
		.retry-suggestion li {padding: 5px 0;display: flex;align-items: center;gap: 8px;}
		.retry-suggestion li:before {content: '•';color: #e67e22;font-weight: bold;}