/* إعدادات عامة */
body {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding-top: 70px;
    direction: rtl;
    text-align: right;
}

/* حاوية أساسية */
.main-container {
    background: radial-gradient(circle at top, #f7fbff 0, #ffffff 45%, #f3f6fb 100%);
    color: #333;
    padding: 25px 25px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.22);
    max-width: 1100px;
    margin: 20px auto;
}

/* شريط التنقل */
.navbar-custom {
    background: linear-gradient(90deg, #007bff, #00c6ff);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* الفوتر */
.footer-text {
    color: #ddd;
    text-align: center;
    margin: 20px 0 30px;
    font-size: 14px;
}

/* عناوين */
.section-title {
    font-weight: 800;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 14px;
    color: #777;
}

/* هيرو */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 123, 255, 0.12);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 13px;
    color: #0b5ed7;
    margin-bottom: 8px;
}

.hero-highlight {
    background: linear-gradient(90deg, #ffecd2, #fcb69f);
    padding: 8px 12px;
    border-radius: 12px;
    display: inline-block;
    font-size: 14px;
    margin-top: 8px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper img {
    max-height: 250px;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.hero-floating-card {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #333;
    border-radius: 14px;
    padding: 8px 12px;
    font-size: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    min-width: 190px;
}

/* أزرار */
.btn-main {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: white !important;
    border: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-main:hover {
    background: linear-gradient(90deg, #ff4b2b, #ff416c);
    transform: translateY(-1px) scale(1.02);
    color: #fff !important;
}

.btn-telegram {
    background: linear-gradient(90deg, #0088cc, #00aaff);
    color: white !important;
    border: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-telegram:hover {
    background: linear-gradient(90deg, #00aaff, #0088cc);
    transform: translateY(-1px) scale(1.02);
    color: #fff !important;
}

/* كروت المميزات */
.feature-card {
    border-radius: 16px;
    border: none;
    padding: 16px 14px;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
}

/* صناديق الأرقام */
.stats-box {
    background: #f7f9fc;
    border-radius: 14px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.stats-box h3 {
    font-weight: 800;
    margin-bottom: 5px;
}

.stats-box p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* خطوات العمل */
.steps-section .step-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 12px;
    height: 100%;
    box-shadow: 0 5px 18px rgba(148, 163, 184, 0.35);
    border-right: 3px solid #1e3c72;
}

.steps-section .step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
}

/* مقارنة */
.compare-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.compare-badge-good {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.compare-badge-bad {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

/* شهادات العملاء */
.testimonial-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 14px;
    height: 100%;
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.12);
    border-right: 3px solid #0ea5e9;
    position: relative;
}

.testimonial-card .quote-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 20px;
    color: #e5e7eb;
}

/* شريط Call to action */
.cta-strip {
    background: linear-gradient(90deg, #1e3c72, #2563eb);
    border-radius: 16px;
    padding: 16px 18px;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

/* زر واتساب عائم (لو حبيت ترجعه تاني) */
.floating-whatsapp {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 999;
}

.floating-whatsapp a {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-whatsapp a:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

/* ريسبونسيف */
@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }
    .main-container {
        padding: 16px 14px 24px;
        margin: 10px;
        box-shadow: none;
        border-radius: 14px;
    }
    .hero-floating-card {
        position: static;
        transform: none;
        margin-top: 10px;
    }
}

/* لوجو الوكلاء */
.agent-logo {
    max-height: 240px;      /* أقصى ارتفاع */
    max-width: 240px;       /* أقصى عرض */
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 6px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 2px;
    background: #ffffff;
}

/* بادجات الوكلاء */
.agent-badge {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 30px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* مميز */
.badge-featured {
    background: linear-gradient(90deg, #ffd700, #ffb700);
    color: #333;
}

/* الأسرع */
.badge-fast {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    color: #fff;
}

/* الأكثر ثقة */
.badge-trusted {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #fff;
}

/* ===== تحسينات احترافية إضافية بدون تغيير مقاساتك الحالية ===== */

/* فاصل بسيط بين الأقسام لو استخدمت <hr class="section-divider"> */
.section-divider {
    margin: 1.5rem 0 2rem;
    border-color: rgba(148, 163, 184, 0.35);
}

/* تحسين بسيط على شريط التنقل */
.navbar-custom {
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.35);
}

/* كروت الوكلاء */
.agent-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
}

/* أنيميشن ناعم للأقسام */
.fade-in-up {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* زر تيليجرام عائم (يتماشى مع المقاسات الحالية للواتساب) */
.floating-telegram {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 999;
}

.floating-telegram a {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0088cc;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-telegram a:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}
.platform-badge {
    background: #ffffff;
    border-radius: 999px;
    padding: 6px 16px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
}

.platform-badge img {
    max-height: 26px;
    width: auto;
    object-fit: contain;
}
/* شريط علوي احترافي FastPay */
.fastpay-navbar {
    backdrop-filter: blur(12px);
    background: rgba(0, 123, 255, 0.25);
    padding: 10px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fastpay-navbar .navbar-brand {
    font-size: 1.4rem;
    color: #fff !important;
    transition: 0.25s ease;
}

.fastpay-navbar .navbar-brand i {
    color: #ffd700;
    font-size: 1.4rem;
}

.fastpay-navbar .nav-link {
    color: #e9f2ff !important;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.fastpay-navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Dropdown احترافي */
.fastpay-dropdown {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    animation: fadeIn 0.2s ease;
}

.fastpay-dropdown .dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.25s ease;
}

.fastpay-dropdown .dropdown-item:hover {
    background: #f0f6ff;
    color: #0d6efd !important;
}

/* أنيميشن الظهور */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 992px) {
    .fastpay-navbar {
        background: rgba(0, 123, 255, 0.95); /* تكون صريحة شويه على الموبايل */
        padding: 8px 0;
    }

    .fastpay-navbar .navbar-collapse {
        background: rgba(15, 23, 42, 0.96);
        border-radius: 0 0 16px 16px;
        padding: 10px 12px;
        margin-top: 8px;
    }

    .fastpay-navbar .nav-link {
        padding: 8px 10px;
        border-radius: 6px;
    }
}
/* شريط علوي احترافي FastPay */
.fastpay-navbar {
    backdrop-filter: blur(12px);
    background: rgba(0, 123, 255, 0.25);
    padding: 10px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fastpay-navbar .navbar-brand {
    font-size: 1.4rem;
    color: #fff !important;
    transition: 0.25s ease;
}

.fastpay-navbar .navbar-brand i {
    color: #ffd700;
    font-size: 1.4rem;
}

.fastpay-navbar .nav-link {
    color: #e9f2ff !important;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.fastpay-navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Dropdown احترافي */
.fastpay-dropdown {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    animation: fadeIn 0.2s ease;
}

.fastpay-dropdown .dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.25s ease;
}

.fastpay-dropdown .dropdown-item:hover {
    background: #f0f6ff;
    color: #0d6efd !important;
}

/* أنيميشن الظهور */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* تحسين احترافي لشريط التنقل الأساسي */
.navbar-custom {
    background: linear-gradient(90deg, #007bff, #00c6ff);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.35);
}

/* لوجو FastPay */
.navbar-custom .navbar-brand {
    font-size: 1.35rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff !important;
}

.navbar-custom .navbar-brand i {
    font-size: 1.4rem;
    color: #ffd700;
}

/* روابط الشريط */
.navbar-custom .nav-link {
    color: #e9f2ff !important;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
    background: rgba(255, 255, 255, 0.18);
    color: #fff !important;
    transform: translateY(-1px);
}

/* الرابط الـ Active */
.navbar-custom .nav-link.active {
    background: rgba(255, 255, 255, 0.28);
    color: #fff !important;
}

/* Dropdown داخل شريط التنقل */
.navbar-custom .dropdown-menu {
    border-radius: 12px;
    border: none;
    padding: 8px 0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
    text-align: right;
}

.navbar-custom .dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.navbar-custom .dropdown-item i {
    width: 18px;
}

.navbar-custom .dropdown-item:hover {
    background: #f0f6ff;
    color: #0d6efd !important;
}

/* موبايل: شكل أحلى للقائمة المفتوحة */
@media (max-width: 992px) {
    .navbar-custom .navbar-collapse {
        background: linear-gradient(135deg, #1e3c72, #2a5298);
        border-radius: 0 0 18px 18px;
        padding: 10px 12px;
        margin-top: 8px;
    }

    .navbar-custom .nav-link {
        padding: 8px 10px;
        border-radius: 6px;
    }
}
/* ================================
   تحسينات عرض الموبايل (بدون تغيير الهيكل)
   ================================ */

/* موبايل و تابلت صغير */
@media (max-width: 768px) {

    body {
        padding-top: 62px; /* علشان الـ navbar الثابت */
    }

    .navbar.navbar-custom .container {
        padding-inline: 10px;
    }

    .navbar-brand span {
        font-size: 1rem;
    }

    .navbar-brand i {
        font-size: 1.1rem;
        margin-left: 4px;
    }

    .navbar-nav .nav-link {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    /* الحاوية الأساسية */
    .main-container {
        margin: 10px 8px 18px;
        padding: 18px 14px 22px;
        border-radius: 14px;
        box-shadow: none; /* أنعم على الموبايل */
    }

    /* العنوان الرئيسي والـ hero */
    h1.section-title {
        font-size: 1.3rem;
        line-height: 1.7;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .section-subtitle,
    .lead {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 4px 10px;
        margin-bottom: 6px;
    }

    .hero-highlight {
        font-size: 0.85rem;
        padding: 6px 10px;
        border-radius: 10px;
    }

    .hero-main-image {
        max-width: 80%;
        margin: 0 auto 8px;
    }

    /* نخلي الكروت تاخد عرض أكبر وتتنفس */
    .feature-card,
    .compare-card,
    .step-card,
    .agent-card,
    .testimonial-card {
        margin-bottom: 6px;
    }

    .feature-card p,
    .compare-card ul li,
    .step-card p,
    .agent-card p,
    .testimonial-card p {
        font-size: 0.9rem;
    }

    /* صناديق الأرقام */
    .stats-box h3 {
        font-size: 1.3rem;
    }

    .stats-box p {
        font-size: 0.85rem;
    }

    /* المنصات المدعومة */
    .platform-badge {
        min-width: 42%;
        margin-bottom: 6px;
    }

    .platform-badge img {
        max-height: 22px;
    }

    /* خطوات العمل */
    .steps-section .step-card {
        padding: 10px 8px;
    }

    .steps-section .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    /* وكروت الوكلاء */
    .agent-logo {
        max-width: 160px;
        max-height: 160px;
    }

    .agent-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    /* شريط الـ CTA في آخر الصفحة */
    .cta-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cta-strip h5 {
        font-size: 1rem;
    }

    .cta-strip .small {
        font-size: 0.85rem;
    }

    .cta-strip .btn {
        width: 100%;
        justify-content: center;
    }

    /* الفوتر */
    .footer-text {
        font-size: 0.8rem;
        margin: 15px 0 22px;
        padding-inline: 10px;
    }

    /* زر تيليجرام العائم */
    .floating-telegram {
        left: 14px;
        bottom: 14px;
    }

    .floating-telegram a {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

/* موبايل صغير جدًا */
@media (max-width: 420px) {

    .navbar-brand span {
        font-size: 0.95rem;
    }

    .hero-main-image {
        max-width: 88%;
    }

    h1.section-title {
        font-size: 1.15rem;
    }

    .hero-badge,
    .hero-highlight {
        max-width: 100%;
    }

    .platform-badge {
        min-width: 48%;
    }
}
.brands-ticker {
    margin-top: 70px;              /* تحت الـ navbar الثابتة */
    background: rgba(15, 23, 42, 0.85);
    overflow: hidden;
    white-space: nowrap;
    padding: 6px 0;
}

.brands-track {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    animation: brandsScroll 20s linear infinite;
}

.brands-ticker img {
    height: 26px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
    opacity: 0.95;
}

@keyframes brandsScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* موبايل: نصغر الارتفاع شوية */
@media (max-width: 576px) {
    .brands-ticker {
        margin-top: 60px;
        padding: 4px 0;
    }
    .brands-ticker img {
        height: 22px;
    }
}
