/* FastAlo - Tech Identity (Clean V4) */

/* Consolidated design tokens: use this single :root for the whole stylesheet */
:root{
        /* Colors */
        --bg-primary: #0B1120;
        --bg-secondary: #111827;
        --card-bg: #161b2d;
        --accent: #22D3EE;
        --accent-cyan: var(--accent);
        --text: #F8FAFC;
        --text-white: var(--text);
        --muted: #94A3B8;
        --primary-bg: var(--bg-primary);
        --secondary-bg: var(--bg-secondary);

        /* UI */
        --border-weak: rgba(34,211,238,0.12);
        --glass-weak: rgba(255,255,255,0.02);
        --glass-bg: rgba(15,23,42,0.55);
        --glass-strong: rgba(15,23,42,0.72);
        --text-muted: var(--muted);
        --cyan: var(--accent);

        /* Backwards-compatible aliases (legacy names used across file) */
        --bg-dark: var(--bg-primary);
        --accent-cyan: var(--accent);
        --text-gray: var(--muted);
        --glass-white: var(--glass-weak);

        /* Shadows */
        --shadow-soft: 0 6px 18px rgba(2,6,23,0.6);
        --shadow-cyan: 0 0 12px rgba(34,211,238,0.25);
        --border-cyan: rgba(34,211,238,0.2);

        /* Sizes */
        --radius-sm: 10px;
        --radius-md: 20px;
        --space-xs: 6px;
        --space-sm: 12px;
        --space-md: 20px;
        --space-lg: 32px;

        /* Motion */
        --dur-sm: 0.22s;
        --dur-md: 0.4s;
        --ease-default: cubic-bezier(.2,.8,.2,1);
}

/* =========================================================
   Header / Nav
   ========================================================= */

/* Global safety + accessibility */
html,body{ overflow-x: hidden; }
/* Prevent iOS auto-zoom on inputs */
input, textarea, select { font-size: 16px; -webkit-text-size-adjust: 100%; }

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce){
    *{ animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
}

/* Ensure standard background-clip exists where text gradients are used */
.text-glow-cyan, .main-title, .logo, .hiw-hero h1 {
    -webkit-background-clip: text;
    background-clip: text;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', sans-serif;
    color: var(--text-white);
    background-color: var(--primary-bg);
    padding-top: 90px; /* عشان الهيدر الثابت مايغطيش المحتوى */
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
    padding: 40px 5%;
    text-align: center;
    color: #64748b;
    border-top: 1px solid rgba(148,163,184,0.18);
}

/* =========================================================
   Hero - Search banner (top search)
   ========================================================= */
.hero-banner{
    padding: 18px 5% 0;
    position: relative;
    z-index: 60;
    overflow: visible;
}

.hero-search-title{
    color: var(--accent-cyan);
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    margin-bottom: 6px;
    text-align: center;
}

.hero-search-icon{
    color: var(--accent-cyan);
    margin-left: 15px;
}

.hero-search-input{
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    padding: 12px;
    outline: none;
}

.main-search-form{
    margin: 25px auto;
    position: relative;
    z-index: 1001;
    isolation: isolate;
}

/* Suggestions: above hero slides; centered, single-column list */
.suggestions-container{
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 9999;
    width: min(520px, 100%);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 14px 16px;
    pointer-events: auto;
    background: linear-gradient(165deg, rgba(22, 33, 62, 0.98) 0%, rgba(15, 23, 42, 0.99) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px;
    border: 1px solid rgba(34, 211, 238, 0.14);
    box-shadow:
        0 4px 0 rgba(34, 211, 238, 0.06),
        0 24px 64px rgba(2, 6, 23, 0.72),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: fastaloSuggestIn 0.22s ease-out both;
}
@keyframes fastaloSuggestIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce){
    .suggestions-container{
        animation: none;
    }
}
.suggestion-card{
    background: rgba(11, 17, 32, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.1);
    color: #e8f0fa;
    padding: 14px 16px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(2, 6, 23, 0.35);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    display: flex;
    align-items: center;
    gap: 14px;
}
.suggestion-card:hover,
.suggestion-card:focus-visible{
    background: rgba(30, 41, 59, 0.88);
    border-color: rgba(34, 211, 238, 0.28);
    box-shadow: 0 8px 28px rgba(2, 6, 23, 0.5), 0 0 0 1px rgba(34, 211, 238, 0.12);
    transform: translateY(-2px);
    outline: none;
}
.suggestion-name{
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
    display: block;
    margin-bottom: 4px;
    color: #f8fafc;
}
.suggestion-meta{
    font-size: 0.8rem;
    color: #94a3b8;
    letter-spacing: 0.02em;
}
.suggestion-empty{
    text-align: center;
    padding: 22px 16px;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.45;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.35);
    border: 1px dashed rgba(148, 163, 184, 0.2);
}
.suggestion-flag{
    width: 48px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.suggestion-flag img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.suggestions-container::-webkit-scrollbar{
    width: 6px;
}
.suggestions-container::-webkit-scrollbar-thumb{
    background: rgba(34, 211, 238, 0.25);
    border-radius: 99px;
}
.suggestions-container::-webkit-scrollbar-track{
    background: rgba(2, 6, 23, 0.4);
    border-radius: 99px;
}
@media (max-width: 768px){
    .suggestions-container{
        width: min(520px, calc(100vw - 32px));
        max-height: min(52vh, 420px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 12px 14px;
        border-radius: 16px;
    }
    .suggestions-container.suggestions-container--fixed{
        box-sizing: border-box;
    }
}

@media (max-width: 600px){
    .main-search-form{
        padding: 8px 10px 8px 14px;
    }
    .btn-premium{
        padding: 12px 18px;
        font-weight: 800;
    }
}

/* --- Navigation Bar (Modern Dark Glass) --- */
/* 1. إعدادات الهيدر الأساسية (ثابت دائماً) */
.header-nav {
    position: fixed;
    inset: 0 0 auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 5%;
    background-color: rgba(11,17,32,0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border-weak);
    z-index: 1000;
    transition: background-color var(--dur-sm) var(--ease-default), transform var(--dur-sm) var(--ease-default);
    will-change: transform, background-color;
}

/* 2. اللوجو */
.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-cyan);
    text-transform: none;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
    text-decoration: none;
}

/* 3. روابط القائمة */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    text-decoration: none;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-cyan);
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: var(--accent-cyan);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* 4. زر المنيو (التوجل) وتنسيق الـ X */
.menu-toggle {
    display: none; /* يظهر في الموبايل فقط */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10001 !important; /* لازم يكون أعلى من القائمة */
    position: relative;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--accent-cyan);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* تحويل الهامبرجر لعلامة X عند التفعيل */
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 5. إعدادات الموبايل (أقل من 768px) — قائمة الجوال تُدار عبر #nav-drawer */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-auth-mobile {
        display: block;
        padding: 20px;
        border-top: 1px solid rgba(34, 211, 238, 0.1);
        width: 100%;
        text-align: center;
    }

    .nav-auth-mobile .auth-buttons {
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: center;
    }
}

/* 6. المودال (Authentication Modal) */
#authModal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 17, 32, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10005; /* أعلى من الهيدر والمنيو */
    opacity: 0;
    transition: opacity 0.3s ease;
}

#authModal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #111827;
    border: 1px solid rgba(34, 211, 238, 0.2);
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 0 50px rgba(34, 211, 238, 0.1);
    transform: translateY(-20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#authModal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 28px;
    cursor: pointer;
}.modal-close:hover { color: #fff; }

/* عناوين الفورم */
.auth-form-container h2 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
}

/* تنسيق الحقول */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    color: var(--text);
    outline: none;
    font-size: 16px;
    transition: box-shadow var(--dur-sm) var(--ease-default), border-color var(--dur-sm) var(--ease-default);
}

.form-group input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 6px 20px rgba(34,211,238,0.08);
    background: rgba(34,211,238,0.03);
}

/* الأزرار */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: #22d3ee;
    color: #0b1120;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
    transform: translateY(-2px);
}

.btn-link {
    background: none;
    border: none;
    color: #22d3ee;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
}

/* رسائل الخطأ */
.error-message {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    display: none;
}

.error-message.show { display: block; }

/* إخفاء وإظهار الفورم */
.auth-form-container { display: none; }
.auth-form-container.active { display: block; }

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.auth-switch a {
    color: #22d3ee;
    text-decoration: none;
    font-weight: 600;
}
/* تعديل للهيدر عشان الزراير متلزقش في المنيو في الموبايل */
@media (max-width: 768px) {
    .auth-buttons {
        margin: 15px 0;
        justify-content: center;
        width: 100%;
    }
    
    .auth-buttons .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}
/* تعديل للهواتف — hide desktop center strip only (mobile uses #nav-drawer) */
@media (max-width: 768px) {
    .header-nav {
        padding: 15px 20px;
    }
    .nav-links--desktop-center {
        display: none !important;
    }
}
/* --- Hero Section Restructured --- */
.hero-container {
    padding: 0 10px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.hero-wrapper {
    position: relative;
    width: 90%;
    max-width: 1400px;
    height: 850px;
    border-radius: 30px;
    overflow: hidden;
    margin: 20px auto;
}

.hero-full-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 1s ease-in-out;
    display: flex;
    align-items: center;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-full-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.65), transparent);
    z-index: 1;
}

[dir="rtl"] .hero-gradient {
    left: auto;
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.65), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.text-container {
    width: 40%;
    max-width: 550px;
    color: white;
}

[dir="rtl"] .text-container {
    margin-left: auto;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-cta {
    display: inline-block;
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: #22D3EE;
    color: #0B1120;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
    transform: translateY(-3px);
}

/* Mobile Responsive — hero: lighter overlay so photography reads; glass text card */
@media (max-width: 768px) {
    .hero-banner {
        position: relative;
        z-index: 60;
        overflow: visible;
        padding: 14px 5% 6px;
    }

    .hero-banner .hero-search-title {
        text-shadow: 0 1px 3px rgba(2, 6, 23, 0.65);
    }

    .hero-banner .search-glass-wrapper > p {
        color: var(--muted);
        text-shadow: 0 1px 2px rgba(2, 6, 23, 0.5);
    }

    .hero-banner .main-search-form {
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--border-weak);
        box-shadow: var(--shadow-soft);
    }

    .hero-container {
        background: transparent;
    }

    .hero-wrapper {
        width: 95%;
        min-height: 700px;
        border-radius: 18px;
        margin: 12px auto;
        box-shadow: 0 12px 40px rgba(2, 6, 23, 0.45);
    }

    .hero-full-slide {
        min-height: 700px;
        /* Slides that use ::before image + overlay */
        --overlay-alpha-top: 0.14;
        --overlay-alpha-bottom: 0.28;
    }

    .hero-gradient {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        background: linear-gradient(
            to bottom,
            rgba(11, 17, 32, 0.18) 0%,
            rgba(11, 17, 32, 0.26) 42%,
            rgba(11, 17, 32, 0.38) 100%
        );
    }

    [dir="rtl"] .hero-gradient {
        left: 0;
        right: 0;
        background: linear-gradient(
            to bottom,
            rgba(11, 17, 32, 0.18) 0%,
            rgba(11, 17, 32, 0.26) 42%,
            rgba(11, 17, 32, 0.38) 100%
        );
    }

    .hero-content {
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .text-container {
        width: 100%;
        max-width: 500px;
        background: var(--glass-bg);
        border: 1px solid var(--border-weak);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: var(--shadow-soft);
        padding: 25px;
        border-radius: 20px;
        text-align: center;
        color: var(--text);
    }

    .text-container .hero-title,
    .text-container .hero-description {
        text-shadow: 0 1px 4px rgba(2, 6, 23, 0.55);
    }

    .text-container .hero-description {
        color: var(--muted);
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        padding: 14px 30px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
}
/* للموبايل: Lottie/background area taller to match hero */
@media (max-width: 768px) {
    .hero-lottie-slide {
        min-height: 700px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
}
.search-glass-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background: transparent !important; /* مسحنا البوكس الشفاف هنا */
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    position: relative;
    z-index: 70;
    overflow: visible;
}

.main-search-form {
    display: flex;
    background: var(--secondary-bg);
    padding: 8px 10px 8px 25px;
    border-radius: 100px;
    border: 1px solid var(--border-cyan);
    transition: 0.3s;
}

.main-search-form:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-cyan);
}

.main-search-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    outline: none;
    font-size: 1.1rem;
}

.btn-premium {
    background: var(--accent-cyan);
    color: #0B1120;
    padding: 12px 35px;
    border-radius: 100px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

/* --- Destinations (Airalo Style) --- */
/* --- Popular Destinations Grid --- */
/* الحاوية الكبيرة (الكارت الأساسي) */
.main-locations-card {
    background: #111827; /* لون أغمق قليلاً من الخلفية لعمل تباين */
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 30px;
    max-width: none; /* القيمة الافتراضية للـ Desktop */
    margin-left: auto; /* عشان يتوسطن */
    margin-right: auto; /* عشان يتوسطن */
    width: 100%; /* عشان ميبقاش لازق في حواف الشاشة في الموبايل */
}

/* الهيدر جوه الكارت الكبير */
.locations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header-text h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.header-text p {
    color: #94A3B8;
    font-size: 1rem;
}

.btn-view-all {
    background: rgba(34, 211, 238, 0.1);
    color: #22D3EE;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-view-all:hover {
    background: #22D3EE;
    color: #000;
}

/* شبكة الكروت الصغيرة */
.dest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 في الصف */
    gap: 16px;
}

/* الكروت الصغيرة الداخلية */
.sub-country-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f2937; /* لون الكارت الصغير */
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    height: 68px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.sub-country-card:hover {
    background: #2d3748;
    border-color: #22D3EE;
    transform: scale(1.02);
}

.country-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-flag {
    width: 38px;
    height: 28px;
    border-radius: 4px;
    object-fit: cover;
}

.country-label {
    color: #fff;
    font-weight: 500;
}

.price-info {
    text-align: right;
}

.from-text { font-size: 10px; color: #94A3B8; display: block; }
.amount { color: #22D3EE; font-weight: 700; font-size: 1.1rem; }
.currency { font-size: 10px; color: #94A3B8; }

/* Responsive */
@media (max-width: 992px) {
    .dest-grid { grid-template-columns: repeat(2, 1fr); }
    .main-locations-card { padding: 20px; }
}

@media (max-width: 600px) {
    .dest-grid { grid-template-columns: 1fr; }
    .locations-header { flex-direction: column; text-align: center; gap: 20px; }
}
/* السهم الصغير */
.arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.5;
}
.how-it-works {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-title p {
    color: #94A3B8;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.04);
    border-color: #22D3EE;
}

.step-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(34, 211, 238, 0.1); /* رقم كبير شفاف في الخلفية */
    line-height: 1;
}

.step-icon {
    font-size: 40px;
    color: #22D3EE;
    margin-bottom: 20px;
}

.step-card h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.step-card p {
    color: #94A3B8;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* للموبايل */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}
.why-choose-us {
    padding: 100px 0;
    background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.05), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.badge {
    background: rgba(34, 211, 238, 0.1);
    color: #22D3EE;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-top: 20px;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: 15px;
    transition: 0.3s;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.feature-icon-wrapper {
    background: #1E293B;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #22D3EE;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.feature-text h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature-text p {
    color: #94A3B8;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* للموبايل */
@media (max-width: 768px) {
    .features-container {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}
.lottie-wrapper {
    display: flex;
    justify-content: center; /* توسيط بالعرض */
    align-items: center;     /* توسيط بالطول */
    padding: 20px;
}
.lottie-wrapper dotlottie-player {
    width: 100%;
    max-width: 400px; /* تحكم في الحجم الأقصى هنا */
    height: auto;
}
/* Container الأساسي للمتجر */
.section-esim-store {
    background: #0b1120; /* نفس لون الخلفية الغامق */
    min-height: 80vh;
}

/* شبكة المنتجات - Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* كارت المنتج */
.product-card {
    background: var(--card-bg);
    border: 1px solid rgba(45,51,72,0.6);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform var(--dur-sm) var(--ease-default), box-shadow var(--dur-sm) var(--ease-default), border-color var(--dur-sm) var(--ease-default);
    will-change: transform;
}

/* تأثير عند المرور بالماوس - use GPU-friendly transforms */
.product-card:hover {
    transform: translate3d(0,-10px,0);
    border-color: var(--accent-cyan);
    box-shadow: 0 12px 30px rgba(2,6,23,0.6), 0 0 12px rgba(34,211,238,0.06);
}

/* صورة الدولة (العلم أو صورة المعلم) */
.product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid #2d3348;
}

/* معلومات المنتج داخل الكارت */
.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.country-name {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

/* ستايل السعر */
.price {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 15px 0;
}

.price span {
    color: #22D3EE; /* لون السيان */
    font-size: 1.2rem;
    font-weight: 800;
    margin-left: 5px;
}

/* الزرار الـ Fancy */
.fancy-btn {
    display: block;
    text-align: center;
    background: transparent;
    color: #22D3EE;
    border: 2px solid #22D3EE;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.fancy-btn:hover {
    background: #22D3EE;
    color: #0b1120;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
}

/* للموبايل: نصغر الحجم شوية */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        padding: 10px;
    }
}
/* تنسيق الصفحة بالكامل */
.product-details {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
    color: #fff;
}

/* الجزء العلوي: العنوان والصورة */
.product-details h1 {
    font-size: 2.5rem;
    color: #22D3EE;
    margin-bottom: 25px;
    text-align: center;
}

.product-main-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    margin-bottom: 30px;
    border: 1px solid rgba(34, 211, 238, 0.1);
}

/* الوصف */
.product-short-description {
    font-size: 1.2rem;
    color: #94A3B8;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.product-description {
    background: rgba(30, 41, 59, 0.5);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #22D3EE;
    margin-bottom: 40px;
    color: #CBD5E1;
}

/* تنسيق شبكة الخطط - Plans Grid */
.product-details h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #1E293B;
    padding-bottom: 10px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* كارت الخطة */
.plan-card {
    background: #161B2D;
    border: 1px solid #2D3348;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: #22D3EE;
    box-shadow: 0 10px 25px rgba(34, 211, 238, 0.1);
}

.plan-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #F8FAFC;
}

.plan-price {
    font-size: 2rem;
    color: #22D3EE;
    font-weight: 800;
    margin-bottom: 20px;
}

.plan-price::before {
    content: '$';
    font-size: 1.2rem;
    margin-right: 2px;
}

/* تعديل الزرار في صفحة الخطط */
.plan-card .fancy-btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: #22D3EE;
    color: #0B1120;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
}

.plan-card .fancy-btn:hover {
    background: #06B6D4;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .product-details h1 { font-size: 1.8rem; }
    .product-main-image { max-height: 250px; }
}
/* Duplicate :root removed — consolidated tokens at top */
.cyan-text { color: var(--accent); }

/* Hero */
.hiw-hero {
    padding: 100px 20px;
    text-align: center;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

.hiw-hero h1 { font-size: 3rem; margin-bottom: 20px; color: #fff; }

/* Steps Cards */
.hiw-steps { padding: 80px 20px; }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 30px;
    position: relative;
    border: 1px solid rgba(34, 211, 238, 0.1);
    transition: 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyan);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    font-weight: 900;
    opacity: 0.05;
    color: #fff;
}

.step-card i {
    font-size: 2.5rem;
    color: var(--cyan);
    margin-bottom: 20px;
}

.step-card h3 { color: #fff; margin-bottom: 15px; }
.step-card p { color: var(--text-gray); line-height: 1.6; }

/* Compatibility Section */
.compatibility-check { padding: 60px 20px; }
.comp-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 40px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.05);
}

.device-list { list-style: none; padding: 0; margin-top: 20px; display: flex; gap: 20px; }
.device-list li { color: #fff; background: rgba(34, 211, 238, 0.1); padding: 10px 20px; border-radius: 12px; }

.comp-icon i { font-size: 8rem; color: var(--cyan); opacity: 0.2; }

/* CTA Button */
.main-cta-btn {
    display: inline-block;
    padding: 18px 40px;
    background: var(--cyan);
    color: #0f172a;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 30px;
    transition: 0.3s;
}

.main-cta-btn:hover {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .comp-box { flex-direction: column; text-align: center; }
    .device-list { justify-content: center; flex-direction: column; }
    .hiw-hero h1 { font-size: 2rem; }
}
/* About Us Premium Section */
.about-premium-section {
    padding: 140px 0;
    background-color: #080c16; /* خلفية داكنة جداً */
    color: #fff;
    overflow: hidden;
    position: relative;
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 2;
}

/* العمود الأيسر: النصوص */
.about-content-block {
    flex: 1;
}

.about-eyebrow {
    display: inline-block;
    color: #22D3EE;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-bottom: 2px solid #22D3EE;
    padding-bottom: 5px;
}

.about-main-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.text-glow-cyan {
    background: linear-gradient(90deg, #22D3EE, #818CF8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.5));
}

.about-description {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.8;
    max-width: 550px;
    margin-bottom: 40px;
}

/* الأزرار */
.about-action-btns {
    display: flex;
    gap: 20px;
}

.btn-primary-glow {
    padding: 15px 35px;
    background: #22D3EE;
    color: #080c16;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

.btn-primary-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 30px rgba(34, 211, 238, 0.6);
}

.btn-secondary-outline {
    padding: 15px 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary-outline:hover {
    color: #22D3EE;
    transform: translateX(5px);
}

/* العمود الأيمن: الـ Glassmorphism Stats */
.about-stats-glass-block {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    position: relative;
}

.glass-card-item {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.05);
    padding: 24px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform var(--dur-sm) var(--ease-default), box-shadow var(--dur-sm) var(--ease-default), background-color var(--dur-sm) var(--ease-default);
    will-change: transform;
}

.glass-card-item:hover {
    background: rgba(34,211,238,0.04);
    border-color: rgba(34,211,238,0.18);
    transform: translate3d(0,-10px,0);
    box-shadow: 0 10px 28px rgba(2,6,23,0.55);
}

.card-2.featured-card {
    grid-column: span 2; /* الكارت الأوسط بياخد العرض كله */
    border-color: rgba(34, 211, 238, 0.2);
    background: rgba(34, 211, 238, 0.03);
}

.icon-orb {
    width: 60px;
    height: 60px;
    background: rgba(34, 211, 238, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-orb i {
    font-size: 1.6rem;
    color: #22D3EE;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95rem;
    color: #cbd5e1;
}

/* الكرة المضيئة في الخلفية */
.glow-sphere {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, rgba(34, 211, 238, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(50px);
}

/* Responsive */
@media (max-width: 992px) {
    .about-wrapper { flex-direction: column; text-align: center; gap: 60px; }
    .about-main-title { font-size: 2.8rem; }
    .about-description { margin: 0 auto 40px; }
    .about-action-btns { justify-content: center; }
    .about-stats-glass-block { width: 100%; max-width: 500px; margin: 0 auto; }
}
/* تأكد إن مفيش قوس مفقود قبل الكود ده */
.reveal {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(50px) !important;
    transition: all 1s ease-out !important;
}

.reveal.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}
/* --- Slider Navigation & Progress --- */

/* أماكن الأسهم */
.slider-nav {
    position: absolute;
    bottom: 50px;
    right: 5%;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: var(--accent-cyan);
    color: #020617;
    transform: translateY(-3px);
}

/* حاوية خطوط التقدم */
.slider-progress-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px; /* مسافة بسيطة بين الخطوط */
    z-index: 100;
    width: 90%; /* ياخد مساحة أكبر من عرض الشاشة */
    max-width: 600px;
}

.progress-item {
    flex: 1; /* ده بيخلي كل الخطوط بنفس الطول مهما كان عددهم */
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 0%; /* بيبدأ من صفر */
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* الأنميشن اللي بيملا الخط */
@keyframes fillProgress {
    from { width: 0%; }
    to { width: 100%; }
}
.progress-bar-inner {
    height: 100%;
    width: 0%;
    background: var(--accent-cyan, #22D3EE);
    box-shadow: 0 0 10px var(--accent-cyan);
}
/* كلاس جديد للخطوط اللي اكتملت */
.progress-bar-inner.completed {
    width: 100% !important;
    transition: none !important;
}

/* الموبايل: نصغر الأسهم شوية */
@media (max-width: 768px) {
    .slider-nav { bottom: 20px; right: 50%; transform: translateX(50%); }
    .slider-progress-container { bottom: 80px; width: 90%; }
}
/* --- FastAlo Cinematic Hero (Full Space Edition) --- */
/* 1. المتغيرات الأساسية (duplicate removed - consolidated at top) */
/* --- السلايد الأول (Strategy) --- */
/* 1. التعديل ده هيشتغل فقط على الشاشات الكبيرة (أكبر من 1024px) */
@media (min-width: 1025px) {
    .hero-full-slide:nth-child(1) .slide-grid {
        /* التحريك لليمين ولتحت في الشاشة الكبيرة بس */
        transform: translate(300px, -100px); 
    }
}

/* 2. التعديل ده للموبايل والشاشات الصغيره (أقل من 1024px) */
@media (max-width: 1024px) {
    .hero-full-slide:nth-child(1) .slide-grid {
        /* بنلغي التحريك الجانبي عشان ميتطلعش بره الشاشة */
        transform: translate(0, 20px); 
        /* بنخلي العناصر في النص بالظبط عشان الموبايل */
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }
}
/* --- السلايد الثاني (Crisis) --- */
.hero-full-slide:nth-child(2) {
    background: linear-gradient(to bottom, rgba(255,0,0,0.05), transparent); /* خلفية حمراء خفيفة */
}
.hero-full-slide:nth-child(2) .main-title {
    color: #ff4d4d; /* أحمر للأزمة */
}

/* --- السلايد الثالث (Market) --- */
@media (max-width: 1024px) {
    /* 1. السلايد التالت: نرجعه لحجم الشاشة الطبيعي ونمنع الهروب */
    .hero-full-slide:nth-child(3) {
        height: 100vh !important; /* نأكد إنه طول الشاشة بالظبط */
        position: absolute;
        top: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
        overflow: visible !important; /* عشان لو الرسمة نزلت سنة تبان */
    }

    /* 2. الجريد: نصغر المسافات عشان كل حاجة تبان في شاشة واحدة */
    .hero-full-slide:nth-child(3) .slide-grid {
        flex-direction: column !important;
        padding-top: 60px !important; /* تقليل المساحة فوق عشان نرفع السلايد */
        gap: 15px !important; /* تقليل المسافة بين الكلام والرسمة */
        transform: translateY(0) !important; /* نلغي أي نزول قديم */
    }

    /* 3. منطقة الرسمة: نرفعها لفوق شوية */
    .hero-full-slide:nth-child(3) .visual-side {
        width: 100% !important;
        display: flex !important;
        justify-content: center;
        margin-top: -10px; /* سحب الرسمة لفوق عشان تلحق تظهر */
        transform: scale(0.85); /* نصغرها سنة عشان "تتحشر" جوه الشاشة */
    }

    /* 4. الرسمة نفسها: نأكد ظهور الـ SVG */
    .market-chart {
        display: block !important;
        width: 100%;
        max-width: 300px;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .market-chart svg {
        height: 120px !important; /* نحدد ارتفاع ثابت صغير عشان ميهربش */
    }
}
/* --- السلايد الرابع (Savings) --- */
.hero-full-slide:nth-child(4) .slide-grid {
    text-align: center;
    letter-spacing: 5px;
   transform: translateY(-1%);
}

/* ده هيشتغل بس لما المتصفح يكون عرضه أقل من 768px (يعني موبايل أو تابلت) */
@media (max-width: 768px) {
    .hero-full-slide:nth-child(4) .slide-grid {
        /* زود الرقم بالسالب عشان يطلع لفوق أكتر (-20%, -30%, etc) */
        transform: translateY(-20%); 
    }
}

/* 2. الحاوية الكبرى - التحكم في الارتفاع والسنترة */
.hero-container {
    position: relative;
    width: 100%;
    height: 100vh; /* ملء الشاشة */
    min-height: 700px;
    background: #020617;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
@media (max-width: 1024px) {
    .hero-container {
        height: auto; 
        min-height: 100vh; /* في الموبايل بنسمح لها تطول لو الكلام كتير */
        overflow: visible;
        padding: 80px 20px;
    }
}

/* 3. السلايد - يغطي الحاوية بالكامل */
.hero-full-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-full-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* 4. الحاوية الداخلية (Grid) - توزيع الكلام والرسمة */
.slide-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; 
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    margin: 100px auto 0 auto; /* نزلناه 100 بيكسل من فوق وسنترناه */
    padding: 20px;
    gap: 30px;
}
/* 5. تحكم منطقة الكلام (Text Side) */
.text-side {
    flex: 1 1 500px;
    max-width: 700px;
    z-index: 5;
    padding: 10px;
}

/* 6. العنوان بلمعة الجرادينت المتحركة */
.main-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(to right, var(--accent-cyan) 20%, #fff 40%, #fff 60%, var(--accent-cyan) 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 4s linear infinite;
    margin-bottom: 20px;
}

@keyframes textShine {
    to { background-position: -200% center; }
}

/* 7. الديسكريبشن الزجاجي */
.description {
    width: 100%;
    max-width: 600px;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    padding: 25px;
    background: var(--glass-bg);
    border-radius: 20px;
    border-left: 5px solid var(--accent-cyan);
    backdrop-filter: blur(15px);
    position: relative;
}

/* 8. تحكم منطقة الرسمة (Visual Side) */
.visual-side {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

/* 9. تعديلات الموبايل والـ Split Screen (1024px) */
@media (max-width: 1024px) {
    /* 1. الحاوية: نخليها تفتح مع المحتوى ومتبقاش مخنوقة */
    .hero-container {
        height: auto; 
        min-height: 100vh;
        display: flex;
        align-items: center; 
        justify-content: center;
        padding: 100px 20px 60px 20px; /* مساحة للهيدر */
        overflow-y: visible;
    }

    /* 2. الجريد: نخليه حاوية مرنة بسيطة */
    .slide-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 0; /* هنحرك الرسمة لوحدها */
    }

    /* 3. الرسمة: هنخليها "ديكور" علوي مش عنصر بيزاحم الكلام */
    .visual-side {
        position: relative;
        width: 100%;
        height: 200px; /* تحديد ارتفاع ثابت للرسمة في الموبايل */
        margin-bottom: -40px; /* سحب الكلام لفوق شوية لدمجهم */
        display: flex;
        justify-content: center;
        align-items: center;
        transform: scale(0.8);
        z-index: 1;
    }

    /* 4. منطقة الكلام: السنترة المطلقة */
    .text-side {
        width: 100%;
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 5;
    }

    /* 5. العنوان: نكبره ونخليه واضح */
    .main-title {
        font-size: 2.4rem !important; 
        line-height: 1.2;
        margin-bottom: 20px;
        width: 100%;
        text-align: center;
    }

    /* 6. الديسكريبشن: نخليه مالي العرض وبحواف ناعمة */
    .description {
        width: 100% !important;
        max-width: 100% !important;
        padding: 25px 20px;
        font-size: 1.05rem;
        background: rgba(15, 23, 42, 0.85); /* خلفية تقيلة عشان يبان فوق أي رسمة */
        backdrop-filter: blur(15px);
        border-left: none;
        border-top: 5px solid var(--accent-cyan);
        border-radius: 20px;
        box-sizing: border-box; /* أهم سطر عشان الكلام ميهربش بره */
        margin: 0 auto !important;
    }

    /* 7. إخفاء الرقم الضخم */
    .slide-number {
        display: none !important;
    }
}
/* 8. تأكيد ان السلايدات متبقاش مخفية او مقصوصة */
    .hero-full-slide {
        position: relative; /* تغيير من absolute لـ relative */
        opacity: 0;
        display: none; /* عشان السلايدات متجيش تحت بعضها */
        padding: 0;
        width: 100%;
    }

    .hero-full-slide.active {
        display: flex;
        opacity: 1;
    }

    /* 9. تظبيط الـ Charts في الموبايل */
    .chart-comparison {
        width: 100%;
        margin-top: 20px;
    }
    
    .comparison-row {
        margin-bottom: 15px;
    }
    /* في الشاشات الكبيرة الزرار مخفي */
.menu-toggle {
    display: none;
}

@media (max-width: 1024px) {
    .header-nav {
        padding: 10px 5%;
        justify-content: space-between;
    }

    /* شكل الهامبرجر */
    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1002; /* above drawer + backdrop */
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--accent-cyan);
        box-shadow: var(--shadow-cyan);
        transition: 0.3s;
    }

    /* Mobile drawer: link styling (slide animation is on #nav-drawer) */
    #site-nav-links.nav-links--drawer > li > a,
    #nav-drawer .nav-links--drawer > li > a{
        font-size: 1.05rem;
        color: var(--accent-cyan);
        text-decoration: none;
        padding: 10px 16px;
        transition: all 0.3s ease;
    }
    #site-nav-links.nav-links--drawer > li > a:hover,
    #nav-drawer .nav-links--drawer > li > a:hover{
        color: var(--accent-cyan) !important;
        text-shadow: 0 0 10px var(--accent-cyan), 0 0 22px var(--accent-cyan);
        background: rgba(34, 211, 238, 0.05);
        border-radius: 8px;
    }

    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* إخفاء أزرار الـ Auth في الموبايل أو وضعها جوه القائمة */
    .header-nav .auth-buttons {
        display: none; /* أو ممكن تنقلها جوه الـ UL */
    }
}
/* تنسيق صفحة التواصل */
.section-contact {
    padding: 120px 5% 60px;
    background: #0b1120;
    text-align: center;
    color: white;
}

.text-glow-cyan {
    color: #22d3ee;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* كروت التواصل مع تأثير الـ Glow عند الـ Hover */
.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.contact-card i {
    font-size: 2.5rem;
    color: #22d3ee;
    margin-bottom: 20px;
}

.contact-card:hover {
    background: rgba(34, 211, 238, 0.05);
    border-color: #22d3ee;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
    transform: translateY(-10px);
}

.contact-card h3 { margin-bottom: 10px; font-size: 1.5rem; }
.contact-card p { color: #94a3b8; font-size: 1.1rem; }
.contact-card span { display: block; margin-top: 15px; font-size: 0.8rem; color: #22d3ee; opacity: 0.8; }

/* السوشيال ميديا وتوهج الأيقونات */
.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: #22d3ee;
    color: #0b1120;
    box-shadow: 0 0 15px #22d3ee;
    transform: scale(1.1);
}

/* سيكشن الإحصائيات (Presence) */
.presence-section {
    padding: 60px 5%;
    background: #0b1120;
}

.glass-banner {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(0, 0, 0, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.presence-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.p-stat strong {
    display: block;
    font-size: 2.5rem;
    color: #22d3ee;
}

@media (max-width: 768px) {
    .presence-stats { flex-direction: column; gap: 30px; }
}
        /* --- FastAlo FAQ Styles --- */
        /* duplicate :root removed - using consolidated tokens at top */

        .section-faq {
            padding: 80px 5%;
            background-color: var(--bg-dark);
            color: white;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
        }

        .container {
            max-width: 850px;
            margin: 0 auto;
        }

        .faq-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .section-title {
            font-size: 2.5rem;
            margin-bottom: 15px;
        }

        .text-glow-cyan {
            color: var(--accent-cyan);
            text-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
        }

        .faq-container {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        /* الكارت الأساسي للسؤال */
        .faq-item {
            background: var(--glass-white);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .faq-item:hover {
            border-color: var(--accent-cyan);
            background: rgba(34, 211, 238, 0.02);
        }

        .faq-question {
            padding: 22px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            user-select: none;
        }

        .faq-question h3 {
            margin: 0;
            font-size: 1.1rem;
            font-weight: 500;
        }

        .faq-icon {
            color: var(--accent-cyan);
            font-size: 1.4rem;
            transition: transform 0.4s ease;
            display: inline-block;
        }

        /* الجزء المخفي للإجابة */
        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: all 0.4s ease-in-out;
            opacity: 0;
            background: rgba(0, 0, 0, 0.15);
        }

        .faq-answer p {
            padding: 20px 30px;
            margin: 0;
            color: var(--text-gray);
            line-height: 1.7;
        }

        /* الحالة المفتوحة (تلقائياً عن طريق JS) */
        .faq-item.open {
            border-color: var(--accent-cyan);
            background: rgba(34, 211, 238, 0.04);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .faq-item.open .faq-answer {
            max-height: 300px; /* مساحة كافية للإجابة */
            opacity: 1;
        }

        .faq-item.open .faq-icon {
            transform: rotate(45deg);
            color: #ff4757; /* يقلب أحمر عند القفل */
        }

        @media (max-width: 768px) {
            .section-title { font-size: 2rem; }
            .faq-question { padding: 18px 20px; }
        }
        /* =========================================
           FastAlo - Auth Buttons Global Fix
           ========================================= */

        /* 1. إظهار الزراير في الديسكتوب */
        .nav-auth-desktop {
            display: flex !important; 
            align-items: center;
            gap: 15px;
            z-index: 1001;
        }

/* 2. إخفاء زراير الموبايل في الديسكتوب */
.nav-auth-mobile {
    display: none !important;
}

/* 3. تنسيق الزراير في الموبايل (أقل من 1024px) */
@media (max-width: 1024px) {
    /* اخفي بتوع الديسكتوب */
    .nav-auth-desktop {
        display: none !important;
    }

    /* اظهر نسخة الموبايل جوه المنيو */
    .nav-auth-mobile {
        display: block !important;
        width: 100%;
        padding: 20px;
        border-top: 1px solid rgba(34, 211, 238, 0.1);
        margin-top: 10px;
    }

    .nav-auth-mobile .auth-buttons {
        display: flex !important;
        justify-content: center;
        gap: 12px;
    }

    /* نضمن إن القائمة (UL) مش خافية اللي جواها */
    #nav-drawer .nav-links,
    #site-nav-links.nav-links--drawer {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* تحسين شكل الزراير عشان تبان فخمة */
.auth-buttons .login-btn, 
.auth-buttons .signup-btn {
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.login-btn { color: var(--text-white); }
.signup-btn { 
    background: var(--accent-cyan); 
    color: var(--primary-bg); 
}

/* Mobile helper styles: show each wrapped word on its own line */
@media (max-width: 768px) {
    .hero-full-slide .main-title.words-wrapped {
        display: block;
        line-height: 1.1;
    }

    .hero-full-slide .main-title.words-wrapped .word-block {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 2px 0;
        white-space: nowrap; /* avoid breaking inside words */
        overflow: visible;
    }
}

/* ===================================================================
   FINAL REFACTOR - VARIABLE DRIVEN CONTROL SYSTEM (Index Homepage)
   =================================================================== */

:root{
    /* ===== General sizing controls ===== */
    --hero-height-desktop: 85vh; /* Main hero height on desktop */
    --hero-height-mobile: 70vh; /* Main hero height on mobile */
    --element-spacing: clamp(12px, 2.2vw, 26px); /* Shared gap/padding */

    /* ===== Text controls ===== */
    --text-size: clamp(1rem, 1.15vw, 1.2rem); /* Base paragraph size */
    --text-weight: 500; /* Base paragraph weight */
    --text-margin: 0 0 16px; /* Default spacing under headings/text */
    --text-align-mobile: center; /* Mobile text alignment */

    /* ===== Glassmorphism controls ===== */
    --glass-blur: 14px; /* Blur intensity */
    --glass-opacity: 0.6; /* Overlay alpha */
    --glass-border: rgba(255,255,255,0.12); /* Glass border color */
    --glass-bg: rgba(11,17,32,var(--glass-opacity)); /* Glass fill color */

    /* ===== Button controls ===== */
    --btn-padding: 12px 28px; /* Button padding */
    --btn-radius: 999px; /* Rounded button corners */
    --btn-hover-scale: 1.04; /* Hover zoom */
    --btn-bg: var(--accent-cyan); /* Button base color */
}

/* =========================
   Header (shared cleanup)
   ========================= */
.header-nav{
    padding: 12px 5%;
}

/* =========================
   Hero
   ========================= */
.hero-container{
    min-height: var(--hero-height-desktop);
    height: var(--hero-height-desktop);
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.hero-wrapper{
    width: min(1400px, 92%);
    min-height: var(--hero-height-desktop);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}

/* Shared class for all slides. Differences go through custom variables. */
.hero-full-slide{
    --bg-image: none;
    --bg-pos-x: 50%;
    --bg-pos-y: 50%;
    --bg-scale: 1;
    --overlay-alpha-top: 0.34;
    --overlay-alpha-bottom: 0.38;

    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility .7s ease;
    padding: 0 5%;
}

.hero-full-slide::before{
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to bottom, rgba(11,17,32,var(--overlay-alpha-top)), rgba(11,17,32,var(--overlay-alpha-bottom))),
        var(--bg-image);
    background-repeat: no-repeat;
    background-position: var(--bg-pos-x) var(--bg-pos-y);
    background-size: cover;
    transform: scale(var(--bg-scale));
    transform-origin: center;
    z-index: 0;
}

.hero-full-slide.active{
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

/* Per-slide image controls */
.hero-full-slide.slide-1{
    --bg-image: url('https://images.pexels.com/photos/10131669/pexels-photo-10131669.jpeg');
    --bg-pos-x: 50%;
    --bg-pos-y: 55%;
    --bg-scale: 1.05;
}

.hero-full-slide.slide-2{
    --bg-image: url('https://images.pexels.com/photos/34773160/pexels-photo-34773160.jpeg');
    --bg-pos-x: 52%;
    --bg-pos-y: 40%;
    --bg-scale: 1.03;
}

.hero-full-slide.slide-3{
    --bg-image: url('https://images.pexels.com/photos/18127785/pexels-photo-18127785.jpeg');
    --bg-pos-x: 50%;
    --bg-pos-y: 52%;
    --bg-scale: 1.06;
}

.hero-full-slide.slide-4{
    --bg-image: url('https://images.pexels.com/photos/6710503/pexels-photo-6710503.jpeg');
    --bg-pos-x: 50%;
    --bg-pos-y: 58%;
    --bg-scale: 1.04;
}

.hero-full-slide .hero-content{
    position: relative;
    z-index: 2;
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0;
}

.hero-full-slide .slide-grid{
    display: flex;
    gap: calc(var(--element-spacing) + 8px);
    align-items: center;
    justify-content: space-between;
    margin: 0;
}

.hero-full-slide .text-side{
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: calc(var(--element-spacing) + 4px);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 12px 36px rgba(2,6,23,.52);
}

.hero-full-slide .main-title{
    margin: var(--text-margin);
}

.hero-full-slide .subtitle,
.hero-full-slide .description,
.hero-full-slide .bottom-note{
    font-size: var(--text-size);
    font-weight: var(--text-weight);
}

.btn-premium{
    background: var(--btn-bg);
    padding: var(--btn-padding);
    border-radius: var(--btn-radius);
    transition: transform .2s ease, filter .2s ease;
}

.btn-premium:hover{
    transform: scale(var(--btn-hover-scale));
    filter: brightness(1.04);
}

/* Bar widths moved from inline styles */
.bar-fill{ width: var(--w, 0%); }
.bar-w-95{ --w: 95%; }
.bar-w-20{ --w: 20%; }

/* SVG styling moved from inline styles */
.market-chart-area{ fill: rgba(34, 211, 238, 0.12); }
.market-chart-line{
    fill: none;
    stroke: var(--accent-cyan);
    stroke-width: 4;
}

/* Search box comfort on small screens */
.search-glass-wrapper{
    width: min(680px, 92%);
    margin: 0 auto;
    position: relative;
    z-index: 70;
    overflow: visible;
}

.main-search-form{
    min-height: 58px;
    align-items: center;
    position: relative;
    z-index: 1001;
    isolation: isolate;
}

.hero-search-input{
    min-width: 0;
}

/* =========================
   Services
   ========================= */
.why-choose-us,
.how-it-works,
.popular-destinations{
    padding-top: clamp(56px, 8vw, 100px);
    padding-bottom: clamp(56px, 8vw, 100px);
}

/* =========================
   Footer
   ========================= */
.site-footer{
    margin-top: 12px;
}

/* =========================
   Responsive behavior
   ========================= */
@media (max-width: 1024px){
    .hero-container{
        min-height: var(--hero-height-mobile);
        height: auto;
        padding: 8px 10px;
        overflow-x: visible;
        overflow-y: visible;
    }

    .hero-wrapper{
        min-height: var(--hero-height-mobile);
    }

    .hero-full-slide{
        padding: 12px 14px;
    }

    .hero-full-slide .slide-grid{
        flex-direction: column;
        justify-content: center;
        gap: var(--element-spacing);
    }

    .hero-full-slide .text-side{
        width: 100%;
        max-width: 720px;
        margin-inline: auto;
        text-align: var(--text-align-mobile);
    }

    .hero-full-slide .visual-side{
        width: 100%;
        min-width: 0;
    }

    /* Better focal points per mobile image */
    .hero-full-slide.slide-1{ --bg-pos-x: 50%; --bg-pos-y: 50%; --bg-scale: 1.02; }
    .hero-full-slide.slide-2{ --bg-pos-x: 56%; --bg-pos-y: 38%; --bg-scale: 1.01; } /* Eiffel top preserved */
    .hero-full-slide.slide-3{ --bg-pos-x: 50%; --bg-pos-y: 46%; --bg-scale: 1.03; }
    .hero-full-slide.slide-4{ --bg-pos-x: 48%; --bg-pos-y: 56%; --bg-scale: 1.01; }
}

@media (max-width: 768px){
    .main-search-form{
        padding: 8px 10px 8px 12px;
        gap: 8px;
    }

    .hero-search-input{
        padding: 10px 8px;
        font-size: .98rem;
    }

    .btn-premium{
        padding: 10px 16px;
        font-size: .9rem;
        white-space: nowrap;
    }

    .hero-full-slide .text-side{
        padding: 16px;
        border-radius: 18px;
    }
}

/* ===================================================================
   SMART MEDIA + LOCALIZATION + TECH IDENTITY LAYER
   =================================================================== */

:root{
    /* Background identity controls */
    --pattern-opacity: 0.03; /* grid visibility */
    --blob-opacity: 0.16; /* blob visibility */
    --blob-cyan: rgba(34, 211, 238, var(--blob-opacity));
    --blob-purple: rgba(129, 140, 248, calc(var(--blob-opacity) - 0.03));

    /* Typography per direction */
    --font-ltr: "Segoe UI", "Inter", sans-serif;
    --font-rtl: "Tajawal", "Cairo", "Segoe UI", sans-serif;
}

html[dir="ltr"] body{ font-family: var(--font-ltr); }
html[dir="rtl"] body{ font-family: var(--font-rtl); }

/* Soft technical grid pattern */
body::before{
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background-image:
        linear-gradient(rgba(148,163,184,var(--pattern-opacity)) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,var(--pattern-opacity)) 1px, transparent 1px);
    background-size: 36px 36px;
}

/* Blurred gradient blobs */
body::after{
    content: "";
    position: fixed;
    inset: -15%;
    pointer-events: none;
    z-index: -1;
    filter: blur(70px);
    background:
      radial-gradient(30% 30% at 8% 12%, var(--blob-cyan), transparent 70%),
      radial-gradient(28% 28% at 92% 18%, var(--blob-purple), transparent 70%),
      radial-gradient(26% 26% at 16% 86%, var(--blob-purple), transparent 70%),
      radial-gradient(26% 26% at 88% 90%, var(--blob-cyan), transparent 70%);
    animation: blobDrift 22s ease-in-out infinite alternate;
}

@keyframes blobDrift{
    from{ transform: translate3d(0, 0, 0) scale(1); }
    to{ transform: translate3d(0, -2%, 0) scale(1.04); }
}

/* Shared language switch styling */
.lang-switcher-item a{
    color: var(--accent-cyan) !important;
    font-weight: 700;
}

/* RTL alignment helpers */
/* RTL: reverse only the horizontal desktop header links (not mobile drawer) */
@media (min-width: 1025px) {
    html[dir="rtl"] .header-nav-center .nav-links--desktop-center{
        flex-direction: row-reverse;
    }
}
html[dir="rtl"] .faq-icon{ margin-right: auto; margin-left: 0; }
html[dir="rtl"] .search-container i{ left: auto; right: 18px; }
html[dir="rtl"] .search-container input{ padding: 14px 45px 14px 20px; }
html[dir="rtl"] .store-plan-meta,
html[dir="rtl"] .store-empty-state,
html[dir="rtl"] .about-content-block{ text-align: right; }

/* Store + about classes replacing inline styles */
.store-section{ padding: 50px 0; }
.store-plan-meta{
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 5px 0;
}
.store-empty-state{
    color: #fff;
    text-align: center;
    width: 100%;
}
.about-page-section{ padding-top: 100px; }

/* ---------- Smart art direction per slide ---------- */
.hero-full-slide{
    --bg-image-mobile: var(--bg-image);
    --bg-pos-y-mobile: var(--bg-pos-y);
    --bg-scale-mobile: var(--bg-scale);
}

.hero-full-slide.slide-1{
    --bg-image: url('https://images.pexels.com/photos/10131669/pexels-photo-10131669.jpeg');
    --bg-image-mobile: url('https://images.pexels.com/photos/10131669/pexels-photo-10131669.jpeg');
    --bg-pos-x: 50%;
    --bg-pos-y: 54%;
    --bg-pos-y-mobile: 52%;
    --bg-scale: 1.05;
    --bg-scale-mobile: 1.03;
}

.hero-full-slide.slide-2{
    --bg-image: url('https://images.pexels.com/photos/18127785/pexels-photo-18127785.jpeg');
    --bg-image-mobile: url('https://images.pexels.com/photos/20273267/pexels-photo-20273267.jpeg');
    --bg-pos-x: 50%;
    --bg-pos-y: 48%;
    --bg-pos-y-mobile: 36%;
    --bg-scale: 1.04;
    --bg-scale-mobile: 1.02;
}

.hero-full-slide.slide-3{
    --bg-image: url('https://images.pexels.com/photos/6710503/pexels-photo-6710503.jpeg');
    --bg-image-mobile: url('https://images.pexels.com/photos/30364423/pexels-photo-30364423.jpeg');
    --bg-pos-x: 50%;
    --bg-pos-y: 54%;
    --bg-pos-y-mobile: 44%;
    --bg-scale: 1.03;
    --bg-scale-mobile: 1.01;
}

.hero-full-slide.slide-4{
    --bg-image: url('https://images.pexels.com/photos/4901995/pexels-photo-4901995.jpeg');
    --bg-image-mobile: url('https://images.pexels.com/photos/11741176/pexels-photo-11741176.jpeg');
    --bg-pos-x: 50%;
    --bg-pos-y: 54%;
    --bg-pos-y-mobile: 38%;
    --bg-scale: 1.03;
    --bg-scale-mobile: 1.01;
}

/* Lighter overlay for brighter images (requested 0.3-0.4) */
.hero-full-slide{
    --overlay-alpha-top: 0.30;
    --overlay-alpha-bottom: 0.38;
}

@media (max-width: 1024px){
    .hero-full-slide::before{
        background-image:
            linear-gradient(to bottom, rgba(11,17,32,var(--overlay-alpha-top)), rgba(11,17,32,var(--overlay-alpha-bottom))),
            var(--bg-image-mobile);
        background-position: var(--bg-pos-x) var(--bg-pos-y-mobile);
        transform: scale(var(--bg-scale-mobile));
    }
}

/* How It Works page — typography helpers */
.hiw-hero-lead {
    color: var(--muted, #94a3b8);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.6;
}

.hiw-compat-desc {
    color: var(--muted, #94a3b8);
    line-height: 1.7;
}

.hiw-comp-visual-icon {
    font-size: 10rem;
    color: var(--accent-cyan, #22d3ee);
    opacity: 0.1;
}

.hiw-cta-desc {
    color: var(--muted, #94a3b8);
    margin-bottom: 30px;
}

/* ------------------------------------------------------------------
   Header layout: logo | centered desktop links | end (currency, lang, auth, menu)
   Mobile: #nav-drawer slides (LTR from left, RTL from right); column list inside
   ------------------------------------------------------------------ */
html[dir="rtl"] .header-nav{
    flex-direction: row-reverse;
}

.header-nav .logo{
    position: relative;
    z-index: 1002;
    flex: 0 0 auto;
}

.header-nav-center{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    max-width: min(760px, 52vw);
    pointer-events: none;
}

html[dir="rtl"] .header-nav-center{
    left: auto;
    right: 50%;
    transform: translate(50%, -50%);
}

.header-nav-center .nav-links--desktop-center{
    pointer-events: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.6vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 1280px) and (min-width: 1025px){
    .header-nav-center .nav-links--desktop-center li a{
        font-size: 0.86rem;
        padding: 4px 0;
    }
    .header-nav-center{
        max-width: min(640px, 46vw);
    }
}

@media (max-width: 1024px){
    .header-nav-center{
        display: none !important;
    }
}

.header-nav-end{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(8px, 1.2vw, 18px);
    flex: 0 0 auto;
    position: relative;
    z-index: 1002;
    min-width: 0;
}

html[dir="rtl"] .header-nav-end{
    flex-direction: row-reverse;
}

.header-lang-desktop a{
    white-space: nowrap;
}

/* Sliding drawer shell (transform on panel, not the UL) */
.nav-drawer{
    position: fixed;
    top: 0;
    width: min(300px, 88vw);
    height: 100vh;
    height: 100dvh;
    z-index: 1000;
    background: var(--glass-bg);
    border: 1px solid var(--border-weak);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s var(--ease-default), visibility 0.4s ease;
    visibility: visible;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

html[dir="ltr"] .nav-drawer{
    left: 0;
    right: auto;
    transform: translateX(-100%);
}

html[dir="ltr"] .nav-drawer.active{
    transform: translateX(0);
}

html[dir="rtl"] .nav-drawer{
    right: 0;
    left: auto;
    transform: translateX(100%);
}

html[dir="rtl"] .nav-drawer.active{
    transform: translateX(0);
}

@media (min-width: 1025px){
    .nav-drawer{
        display: none !important;
    }
}

/* Drawer list: always vertical; overrides legacy .nav-links + global RTL row-reverse */
#site-nav-links.nav-links--drawer,
.nav-drawer .nav-links--drawer{
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100%;
    margin: 0 !important;
    padding: calc(76px + env(safe-area-inset-top, 0px)) 18px 28px !important;
    gap: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    inset: auto !important;
    transform: none !important;
    transition: none !important;
    list-style: none;
}

html[dir="rtl"] #site-nav-links.nav-links--drawer,
html[dir="ltr"] #site-nav-links.nav-links--drawer{
    flex-direction: column !important;
}

#site-nav-links.nav-links--drawer > li,
.nav-drawer .nav-links--drawer > li{
    width: 100% !important;
    flex: 0 0 auto !important;
    margin: 12px 0 !important;
    text-align: center;
}

.nav-drawer .nav-links--drawer > li > a,
#site-nav-links.nav-links--drawer > li > a{
    display: block;
    width: 100%;
}

.currency-toggle{
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: 999px;
    background: var(--glass-bg, rgba(15,23,42,0.55));
    border: 1px solid var(--border-weak);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-cyan);
    gap: 2px;
}

.currency-toggle--mobile{
    justify-content: center;
    width: 100%;
    max-width: 220px;
    margin: 8px auto 0;
}

@media (min-width: 1025px){
    .currency-toggle--mobile{ display: none !important; }
}

@media (max-width: 1024px){
    .currency-toggle--desktop{ display: none !important; }
}

.currency-pill{
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-decoration: none;
    transition: color var(--dur-sm) var(--ease-default), background var(--dur-sm) var(--ease-default), box-shadow var(--dur-sm) var(--ease-default);
}

.currency-pill:hover{
    color: var(--text);
}

.currency-pill.is-active{
    color: var(--bg-primary);
    background: var(--accent);
    box-shadow: 0 0 16px rgba(34,211,238,0.45);
}

.nav-li-currency{
    list-style: none;
    width: 100%;
}

@media (min-width: 1025px){
    .nav-li-currency{ display: none !important; }
}

.nav-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.55);
    backdrop-filter: blur(2px);
    z-index: 999;
}

body.nav-drawer-open{
    overflow: hidden;
}

/* ------------------------------------------------------------------
   Footer: legal + mobile-only about/contact
   ------------------------------------------------------------------ */
.site-footer-inner{
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.footer-mobile-only{
    display: none;
}

@media (max-width: 1024px){
    .footer-mobile-only.footer-mobile-nav{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px 22px;
    }
}

.footer-mobile-nav a{
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-mobile-nav a:hover{
    text-shadow: 0 0 12px rgba(34,211,238,0.5);
}

.footer-legal-nav{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 22px;
}

.footer-legal-nav a{
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color .2s ease;
}

.footer-legal-nav a:hover{
    color: var(--accent);
}

.site-footer-copy{
    font-size: 0.85rem;
    color: #64748b;
}

/* ------------------------------------------------------------------
   Legal pages
   ------------------------------------------------------------------ */
.page-legal{
    min-height: 100vh;
}

.legal-page-main{
    padding: 110px 5% 60px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-glass-card{
    background: var(--glass-bg, rgba(15,23,42,0.55));
    border: 1px solid var(--border-weak);
    border-radius: var(--radius-md);
    padding: clamp(22px, 4vw, 40px);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
}

.legal-page-title{
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-bottom: 24px;
    color: var(--accent);
    text-shadow: 0 0 18px rgba(34,211,238,0.35);
}

.legal-glass-card h2{
    margin: 28px 0 12px;
    font-size: 1.15rem;
    color: var(--text);
}

.legal-glass-card h3{
    margin: 16px 0 8px;
    font-size: 1rem;
    color: #e2e8f0;
}

.legal-glass-card p,
.legal-glass-card li{
    color: #cbd5e1;
    line-height: 1.75;
    font-size: 0.98rem;
}

.legal-glass-card ul{
    margin: 8px 0 8px 1.2rem;
}

.legal-glass-card a{
    color: var(--accent);
}

html[dir="rtl"] .legal-glass-card ul{
    margin-left: 0;
    margin-right: 1.2rem;
}

/* ------------------------------------------------------------------
   Scroll hint: fixed above viewport bottom; hidden when Popular visible
   ------------------------------------------------------------------ */
.hero-scroll-indicator{
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgba(34,211,238,0.55)) drop-shadow(0 0 22px rgba(34,211,238,0.35));
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

html[dir="rtl"] .hero-scroll-indicator{
    left: 50%;
    transform: translateX(-50%);
}

.hero-scroll-indicator:not(.is-hidden){
    animation: hero-scroll-float-fixed 2.4s ease-in-out infinite;
}

@keyframes hero-scroll-float-fixed{
    0%, 100%{ bottom: 30px; }
    50%{ bottom: 40px; }
}

@media (prefers-reduced-motion: reduce){
    .hero-scroll-indicator:not(.is-hidden){ animation: none; }
}

.hero-scroll-indicator.is-hidden{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    animation: none !important;
}

.hero-scroll-mouse{
    width: 26px;
    height: 40px;
    border: 2px solid rgba(34,211,238,0.85);
    border-radius: 14px;
    position: relative;
    box-shadow: 0 0 12px rgba(34,211,238,0.35), inset 0 0 8px rgba(34,211,238,0.12);
    background: var(--glass-bg);
}

.hero-scroll-wheel{
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 3px;
    background: var(--accent);
    animation: hero-scroll-wheel 1.6s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(34,211,238,0.9);
}

@keyframes hero-scroll-wheel{
    0%{ opacity: 1; transform: translateY(0); }
    100%{ opacity: 0.15; transform: translateY(14px); }
}

.hero-scroll-arrow{
    font-size: 1rem;
    opacity: 0.9;
}

@media (max-width: 768px){
    .hero-scroll-mouse{
        width: 22px;
        height: 34px;
    }
}
