/* صفحة هبوط الشركاء (partner/index.html) — هوية Inflex: كحلي داكن + ذهبي (نفس لون AppColors.bookingTypeHotel
   #F2A93B، مستخدم كلون تمييز واحد ثابت في الصفحة كلها) بدل الأسود/الأزرق الأصليين في المرجع. خط Cairo
   (المستخدم بالفعل في باقي الموقع) بدل Tajawal. */
:root {
    --bg-black: #0a0f1a;
    --bg-dark-card: #101b2d;
    --surface-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 255, 255, 0.15);
    --accent-gold: #f2a93b;
    --accent-gold-light: #f7c169;
    --text-primary: #f5f6fa;
    --text-secondary: #8b93a7;
    --text-tertiary: #6b7280;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 1. Header / Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(10, 15, 26, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.logo span {
    color: var(--text-secondary);
    font-weight: 400;
    margin-right: 4px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238b93a7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        no-repeat left 14px center;
    border: 1px solid var(--border-glow);
    color: var(--text-secondary);
    padding: 8px 34px 8px 18px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
}

[dir="ltr"] .lang-select {
    background-position: right 14px center;
    padding: 8px 18px 8px 34px;
}

.lang-select:hover,
.lang-select:focus {
    color: var(--text-primary);
    border-color: var(--text-primary);
    outline: none;
}

.lang-select option {
    background: var(--bg-dark-card);
    color: var(--text-primary);
}

.nav-btn {
    background-color: var(--text-primary);
    color: var(--bg-black);
    padding: 8px 20px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav-btn:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* 2. Hero Section */
.hero-section {
    padding-top: 140px;
    padding-bottom: 80px;
    text-align: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #a8b0c3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 32px auto;
    font-weight: 400;
    line-height: 1.4;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-gold);
    color: #17130a;
    padding: 14px 32px;
    border-radius: 980px;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: var(--accent-gold-light);
    box-shadow: 0 0 30px rgba(242, 169, 59, 0.35);
}

.hero-card {
    margin-top: 60px;
    background: linear-gradient(180deg, #131d2f 0%, #0a0f1a 100%);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.hero-card img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9;
    transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hero-card:hover img {
    transform: scale(1.02);
}

/* 3. Workflow Section */
.workflow-banner {
    background: linear-gradient(165deg, #101b2d 0%, #0a0f1a 50%, #0d1524 100%);
    position: relative;
    padding: 120px 0;
    margin: 80px 0;
    clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.workflow-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.workflow-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    color: var(--accent-gold);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.workflow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.workflow-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.workflow-image-wrapper img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.timeline-steps {
    position: relative;
    padding-right: 32px;
    border-right: 2px solid rgba(255, 255, 255, 0.15);
}

.numbers-bar {
    display: none;
}

.step-item {
    position: relative;
    margin-bottom: 45px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-item.active {
    opacity: 1;
}

.step-number {
    position: absolute;
    right: -53px;
    top: 0;
    width: 42px;
    height: 42px;
    background: #f5f6fa;
    color: #0a0f1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    border: 3px solid #101b2d;
    transition: all 0.3s ease;
}

.step-item.active .step-number,
.step-item:hover .step-number {
    background: var(--accent-gold);
    color: #17130a;
    box-shadow: 0 0 25px rgba(242, 169, 59, 0.45);
}

.step-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 480px;
}

/* 4. Specs Box */
.specs-section {
    padding: 60px 0 100px 0;
}

.specs-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 28px;
    padding: 48px;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.specs-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242, 169, 59, 0.5), transparent);
}

.specs-box h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.specs-box p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.specs-box strong {
    color: var(--accent-gold-light);
    font-weight: 600;
}

/* 5. Feature Grid (3 Cards) — بدون أيقونات زخرفية عمدًا، عنوان + وصف بس */
.features-section {
    padding-bottom: 120px;
}

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

.feature-box {
    background: #0d1524;
    border: 1px solid var(--border-glass);
    border-top: 2px solid var(--accent-gold);
    border-radius: 24px;
    padding: 32px 28px;
    transition: all 0.4s ease;
}

.feature-box:hover {
    border-color: rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-gold-light);
    transform: translateY(-4px);
}

.feature-box h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-box p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 5b. Terms & Usage Policy — نفس نمط .specs-box الزجاجي، لكن بقائمة بنود مرقّمة بدل فقرة واحدة */
.terms-section {
    padding-bottom: 120px;
}

.terms-header {
    text-align: center;
    margin-bottom: 40px;
}

.terms-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 28px;
    padding: 48px;
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.terms-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242, 169, 59, 0.5), transparent);
}

.terms-intro {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.terms-list {
    list-style: none;
    counter-reset: terms-counter;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.terms-list li {
    counter-increment: terms-counter;
    position: relative;
    padding-right: 42px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

html[dir="ltr"] .terms-list li {
    padding-right: 0;
    padding-left: 42px;
}

.terms-list li::before {
    content: counter(terms-counter);
    position: absolute;
    right: 0;
    top: 0;
    width: 26px;
    height: 26px;
    background: rgba(242, 169, 59, 0.12);
    color: var(--accent-gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

html[dir="ltr"] .terms-list li::before {
    right: auto;
    left: 0;
}

.terms-list strong {
    color: var(--text-primary);
    font-weight: 700;
}

.terms-contact {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
    font-size: 14px;
    color: var(--text-tertiary);
    text-align: center;
    line-height: 1.7;
}

.terms-contact a {
    color: var(--accent-gold-light);
    text-decoration: none;
    font-weight: 600;
}

.terms-contact a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .terms-box {
        padding: 32px 24px;
    }
}

/* 6. Footer */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 60px 0 40px 0;
    background: var(--bg-black);
    text-align: center;
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.footer-text {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 18px;
}

.footer-link {
    color: var(--accent-gold-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.footer-link:hover {
    text-decoration: underline;
}

/* ============ موبايل ============ */
@media (max-width: 900px) {
    .hero-title { font-size: 38px; }
    .hero-subtitle { font-size: 18px; }
    .workflow-banner { clip-path: none; padding: 60px 0; }
    .features-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 30px; }

    .workflow-grid {
        display: flex;
        flex-direction: column;
        gap: 28px;
        text-align: center;
    }

    .workflow-image-wrapper {
        order: 2;
        width: 100%;
    }

    .timeline-steps {
        order: 1;
        border-right: none;
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .numbers-bar {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-bottom: 24px;
        width: 100%;
    }

    .step-item {
        display: none;
        margin-bottom: 0;
        opacity: 1;
    }

    .step-item.active {
        display: block;
        animation: fadeIn 0.4s ease;
    }

    .step-item .step-number {
        display: none;
    }

    .mobile-num-btn {
        width: 50px;
        height: 50px;
        background: #f5f6fa;
        color: #0a0f1a;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 18px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: all 0.3s ease;
    }

    .mobile-num-btn.active {
        background: var(--accent-gold);
        color: #17130a;
        box-shadow: 0 0 20px rgba(242, 169, 59, 0.5);
        transform: scale(1.1);
    }

    .step-content p {
        max-width: 100%;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
