/* Affiliate Program Page Styles */
.affiliate-program-main {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    padding: 40px 0 60px;
}

/* Hero Section */
.affiliate-hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 30px 0;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(48, 79, 254, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #304FFE;
}

.hero-badge svg {
    width: 20px;
    height: 20px;
}

/* App download (hero, below login / register) — مطابق لمرجع التصميم */
.hero-download-app {
    --dl-primary: #3b59ff;
    --dl-primary-hover: #304ee6;
    --dl-border: #d9d9d9;
    --dl-text-dark: #111111;
    max-width: min(100%, 380px);
    margin: 24px auto 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 2px;
}

.hero-download-app .btn-download-primary,
.hero-download-app .btn-download-apk {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 14px 22px;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.hero-download-app .btn-download-primary {
    background: var(--dl-primary);
    color: #ffffff;
    border: 1px solid transparent;
    box-shadow: 0 2px 6px rgba(59, 89, 255, 0.22);
}

.hero-download-app .btn-download-primary:hover {
    background: var(--dl-primary-hover);
    box-shadow: 0 4px 12px rgba(59, 89, 255, 0.28);
}

.hero-download-app .btn-download-primary:active {
    transform: scale(0.985);
    box-shadow: 0 1px 4px rgba(59, 89, 255, 0.2);
}

.hero-download-app .btn-download-apk {
    background: #ffffff;
    color: var(--dl-text-dark);
    font-weight: 600;
    border: 1px solid var(--dl-border);
    box-shadow: none;
}

.hero-download-app .btn-download-apk:hover {
    border-color: #bfbfbf;
    background: #fafafa;
}

.hero-download-app .btn-download-apk:active {
    transform: scale(0.985);
    background: #f5f5f5;
}

.hero-download-app .btn-download-primary:focus-visible,
.hero-download-app .btn-download-apk:focus-visible {
    outline: 2px solid var(--dl-primary);
    outline-offset: 3px;
}

/* Section Styles */
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 45px;
}

/* How It Works Section */
.how-it-works {
    margin-bottom: 60px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 45px;
}

.step-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(48, 79, 254, 0.15);
}

.step-number {
    position: absolute;
    top: -18px;
    right: 24px;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #304FFE 0%, #00d4ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(48, 79, 254, 0.3);
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 16px auto 20px;
    background: linear-gradient(135deg, rgba(48, 79, 254, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon svg {
    width: 36px;
    height: 36px;
}

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

.step-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Benefits Section */
.benefits-section {
    margin-bottom: 60px;
}

.benefits-card {
    background: linear-gradient(135deg, #304FFE 0%, #00d4ff 100%);
    border-radius: 20px;
    padding: 45px 40px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 10px 40px rgba(48, 79, 254, 0.3);
}

.benefits-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.benefits-description {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 32px;
    opacity: 0.95;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    text-align: right;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.benefits-list li:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-5px);
}

.benefits-list li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Options Section */
.options-section {
    margin-bottom: 60px;
    padding: 50px 0;
    background: linear-gradient(135deg, rgba(48, 79, 254, 0.02) 0%, rgba(0, 212, 255, 0.02) 100%);
    border-radius: 24px;
}

.options-header {
    text-align: center;
    margin-bottom: 45px;
}

.options-main-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.options-main-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.option-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.option-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(48, 79, 254, 0.2);
    border-color: #304FFE;
}

.option-card:first-child {
    border-color: #304FFE;
    border-width: 3px;
}

.option-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, #304FFE 0%, #00d4ff 100%);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(48, 79, 254, 0.3);
}

.option-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(48, 79, 254, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-icon svg {
    width: 42px;
    height: 42px;
}

.option-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.option-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

.option-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    text-align: right;
}

.option-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-primary);
}

.option-features li svg {
    flex-shrink: 0;
}

body[dir="ltr"] .option-features {
    text-align: left;
}

.option-btn {
    width: 100%;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #304FFE 0%, #00d4ff 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(48, 79, 254, 0.3);
}

.option-btn.primary {
    background: linear-gradient(135deg, #304FFE 0%, #00d4ff 100%);
    box-shadow: 0 6px 20px rgba(48, 79, 254, 0.4);
}

.option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(48, 79, 254, 0.4);
}

.option-btn:active {
    transform: translateY(0);
}

/* RTL/LTR Support */
body[dir="ltr"] .benefits-list {
    text-align: left;
}

body[dir="ltr"] .benefits-list li:hover {
    transform: translateX(5px);
}

body[dir="ltr"] .step-number {
    right: auto;
    left: 24px;
}

body[dir="ltr"] .option-badge {
    right: auto;
    left: 24px;
}

body[dir="ltr"] .option-features {
    text-align: left;
}

/* Responsive */
@media (max-width: 1024px) {
    .options-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .affiliate-program-main {
        padding: 30px 0 50px;
    }

    .affiliate-hero {
        margin-bottom: 45px;
        padding: 20px 0;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-download-app {
        max-width: min(100%, 360px);
        margin-top: 22px;
        padding: 0 6px;
        gap: 9px;
    }

    .hero-download-app .btn-download-primary,
    .hero-download-app .btn-download-apk {
        min-height: 50px;
        padding: 13px 18px;
        font-size: 15px;
        border-radius: 8px;
    }

    .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 32px;
    }

    .step-card {
        padding: 28px 22px;
    }

    .how-it-works {
        margin-bottom: 45px;
    }

    .benefits-section {
        margin-bottom: 45px;
    }

    .benefits-card {
        padding: 32px 24px;
    }

    .benefits-title {
        font-size: 22px;
    }

    .benefits-description {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .benefits-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .benefits-list li {
        padding: 12px 16px;
        font-size: 13px;
    }

    .options-section {
        margin-bottom: 45px;
        padding: 40px 20px;
        border-radius: 20px;
    }

    .options-header {
        margin-bottom: 32px;
    }

    .options-main-title {
        font-size: 24px;
    }

    .options-main-subtitle {
        font-size: 14px;
    }

    .options-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .option-card {
        padding: 32px 24px;
    }

    .option-icon {
        width: 64px;
        height: 64px;
    }

    .option-icon svg {
        width: 36px;
        height: 36px;
    }

    .option-title {
        font-size: 20px;
    }

    .option-description {
        font-size: 13px;
    }

    .option-features li {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .affiliate-program-main {
        padding: 24px 0 40px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 8px 16px;
    }

    .hero-download-app {
        max-width: 100%;
        margin-top: 18px;
        gap: 8px;
        padding: 0 8px;
    }

    .hero-download-app .btn-download-primary,
    .hero-download-app .btn-download-apk {
        min-height: 48px;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 7px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    .step-card {
        padding: 24px 18px;
    }

    .step-icon {
        width: 56px;
        height: 56px;
    }

    .step-icon svg {
        width: 32px;
        height: 32px;
    }

    .step-title {
        font-size: 16px;
    }

    .step-description {
        font-size: 13px;
    }

    .benefits-card {
        padding: 28px 20px;
    }

    .benefits-title {
        font-size: 20px;
    }

    .benefits-description {
        font-size: 13px;
    }

    .option-card {
        padding: 28px 20px;
    }

    .option-title {
        font-size: 17px;
    }
}
