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

:root {
    --primary: #059669;
    --primary-dark: #047857;
    --secondary: #10b981;
    --accent: #fbbf24;
    --dark: #1f2937;
    --gray: #6b7280;
    --light-gray: #f9fafb;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Cairo', 'Tajawal', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Arabic font support */
html[dir="rtl"] body {
    font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

nav > * {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links > li {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    line-height: 1.5;
    height: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    line-height: 1.5;
    padding: 0.5rem 0;
    height: 100%;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.dropdown-toggle:hover {
    color: var(--primary);
}

.dropdown-arrow {
    margin-left: 5px;
    font-size: 0.8em;
}

html[dir="rtl"] .dropdown-arrow {
    margin-left: 0;
    margin-right: 5px;
}

/* Regular dropdown menu (for Company) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 16px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    margin-top: 0.5rem;
    z-index: 1000;
}

/* Mega Menu for Business */
.dropdown-menu.mega-menu {
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 900px;
    max-width: 1000px;
    padding: 2rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-menu.mega-menu {
    transform: translateX(-50%) translateY(0);
}

/* Mega menu tagline */
.mega-menu-tagline {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Mega menu grid */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu li {
    padding: 0;
}

.mega-menu a {
    padding: 1.5rem 1.25rem;
    color: var(--dark);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: var(--white);
    min-height: 120px;
    justify-content: flex-start;
}

.mega-menu a strong {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.mega-menu a .menu-desc {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 400;
    line-height: 1.5;
    display: block;
}

.mega-menu a:hover {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.mega-menu a:hover strong {
    color: var(--primary);
}

.mega-menu a.highlight-link {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: var(--primary);
}

.mega-menu a.highlight-link strong {
    color: var(--primary);
}

.mega-menu a.highlight-link:hover {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.2);
}

/* Regular dropdown items */
.dropdown-menu:not(.mega-menu) li {
    padding: 0;
}

.dropdown-menu:not(.mega-menu) a {
    padding: 1.25rem 1.5rem;
    color: var(--dark);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-radius: 0;
    border-left: 3px solid transparent;
}

.dropdown-menu:not(.mega-menu) a strong {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

.dropdown-menu:not(.mega-menu) a .menu-desc {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 400;
    line-height: 1.4;
}

.dropdown-menu:not(.mega-menu) a:hover {
    background: linear-gradient(90deg, #f0fdf4 0%, transparent 100%);
    border-left-color: var(--primary);
    padding-left: 1.75rem;
}

.dropdown-menu:not(.mega-menu) a:hover strong {
    color: var(--primary);
}

.dropdown-menu:not(.mega-menu) a.highlight-link {
    background: linear-gradient(90deg, #ecfdf5 0%, transparent 100%);
    border-left-color: var(--primary);
}

.dropdown-menu:not(.mega-menu) a.highlight-link strong {
    color: var(--primary);
}

.nav-cta {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text .highlight {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.hero-badges {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.badge-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.app-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--dark);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.app-button:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.app-icon {
    font-size: 2rem;
}

.app-text small {
    display: block;
    font-size: 0.7rem;
    opacity: 0.8;
}

.app-text strong {
    font-size: 1rem;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 100%;
    max-width: 400px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 20px;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.phone-screen {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.phone-screen h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Page Header (for internal pages) */
.page-header {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Content Section */
.content-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.content-section p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background: white;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.feature-card h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 5rem 2rem;
    background: var(--light-gray);
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.step {
    flex: 1;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-icon {
    font-size: 3rem;
    margin: 1rem 0;
}

.step h3 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.step p {
    color: var(--gray);
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

/* Trust Section */
.trust {
    padding: 5rem 2rem;
    background: var(--light-gray);
}

.trust-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.trust-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Business Section */
.business {
    padding: 5rem 2rem;
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.business::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0.1;
    transform: skewX(-15deg);
}

.business-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.business-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.business-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.business-benefits {
    list-style: none;
}

.business-benefits li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 12px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

/* CTA Section */
.cta {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Merchant List */
.merchant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.merchant-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.merchant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.merchant-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--light-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.merchant-card h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.merchant-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    /* Mega menu adjustments for mobile */
    .dropdown-menu.mega-menu {
        min-width: 100%;
        max-width: 100%;
        left: 0;
        transform: translateY(-10px);
        padding: 1rem;
    }

    .dropdown:hover .dropdown-menu.mega-menu {
        transform: translateY(0);
    }
    
    /* Mobile RTL mega menu */
    html[dir="rtl"] .dropdown-menu.mega-menu {
        right: 0;
        left: auto;
        transform: translateY(-10px);
    }
    
    html[dir="rtl"] .dropdown:hover .dropdown-menu.mega-menu {
        transform: translateY(0);
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .mega-menu-tagline {
        font-size: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .hero-content,
    .business-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1,
    .page-header h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .download-buttons {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .merchant-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: var(--light-gray);
}

.lang-switcher button {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.lang-switcher button:hover {
    background: var(--white);
    color: var(--primary);
}

.lang-switcher button.active {
    background: var(--primary);
    color: var(--white);
}

/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .logo-icon {
    margin-right: 0;
    margin-left: 10px;
}

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

html[dir="rtl"] .nav-links a {
    text-align: right;
    direction: rtl;
    justify-content: flex-end;
}

html[dir="rtl"] .dropdown {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links a {
    text-align: right;
    direction: rtl;
    justify-content: flex-end;
}

html[dir="rtl"] .dropdown {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}

html[dir="rtl"] .dropdown-toggle {
    text-align: right;
    direction: rtl;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

html[dir="rtl"] .dropdown-arrow {
    order: -1;
    margin-right: 5px;
    margin-left: 0;
}

html[dir="rtl"] .dropdown-arrow {
    order: -1;
    margin-right: 5px;
    margin-left: 0;
}

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

html[dir="rtl"] .dropdown-menu {
    right: 0;
    left: auto;
    text-align: right;
}

/* Mega menu RTL positioning */
html[dir="rtl"] .dropdown-menu.mega-menu {
    right: 50%;
    left: auto;
    transform: translateX(50%) translateY(-10px);
}

html[dir="rtl"] .dropdown:hover .dropdown-menu.mega-menu {
    transform: translateX(50%) translateY(0);
}

/* Mega menu content RTL - Enhanced styling */
html[dir="rtl"] .mega-menu-tagline {
    text-align: center;
    direction: rtl;
    font-size: 0.95rem;
    letter-spacing: 0;
}

html[dir="rtl"] .mega-menu-grid {
    direction: rtl;
    text-align: right;
    gap: 1.5rem;
}

html[dir="rtl"] .mega-menu a {
    text-align: right;
    align-items: flex-end;
    padding: 1.5rem 1.25rem;
    direction: rtl;
}

html[dir="rtl"] .mega-menu a strong {
    text-align: right;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
}

html[dir="rtl"] .mega-menu a .menu-desc {
    text-align: right;
    font-size: 0.95rem;
    line-height: 1.6;
    direction: rtl;
}

html[dir="rtl"] .mega-menu a:hover {
    transform: translateY(-2px) translateX(-2px);
}

html[dir="rtl"] .mega-menu a.highlight-link {
    border-right: 3px solid var(--primary);
    border-left: none;
}

html[dir="rtl"] .mega-menu a:not(.highlight-link) {
    border-right: 1px solid transparent;
}

html[dir="rtl"] .mega-menu a:hover {
    border-right-color: var(--primary);
}

/* Regular dropdown RTL */
html[dir="rtl"] .dropdown-menu:not(.mega-menu) {
    right: 0;
    left: auto;
}

html[dir="rtl"] .dropdown-menu:not(.mega-menu) a {
    text-align: right;
    align-items: flex-end;
    direction: rtl;
    border-left: none;
    border-right: 3px solid transparent;
    padding-right: 1.5rem;
}

html[dir="rtl"] .dropdown-menu:not(.mega-menu) a:hover {
    background: linear-gradient(270deg, #f0fdf4 0%, transparent 100%);
    border-right-color: var(--primary);
    padding-right: 1.75rem;
    padding-left: 1.5rem;
}

html[dir="rtl"] .dropdown-menu:not(.mega-menu) a.highlight-link {
    background: linear-gradient(270deg, #ecfdf5 0%, transparent 100%);
    border-right-color: var(--primary);
}

html[dir="rtl"] .dropdown-menu:not(.mega-menu) a strong {
    text-align: right;
    font-size: 1.1rem;
}

html[dir="rtl"] .dropdown-menu:not(.mega-menu) a .menu-desc {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .dropdown-toggle::after {
    margin-left: 0;
    margin-right: 5px;
}

html[dir="rtl"] .hero-content,
html[dir="rtl"] .business-content {
    direction: rtl;
}

html[dir="rtl"] .features-grid,
html[dir="rtl"] .steps-container {
    direction: rtl;
}

html[dir="rtl"] .footer-content {
    direction: rtl;
}

html[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: 1rem;
}

/* Text alignment for RTL */
html[dir="rtl"] .section-header,
html[dir="rtl"] .hero-text,
html[dir="rtl"] .feature-card,
html[dir="rtl"] .step {
    text-align: right;
}

html[dir="rtl"] .section-header h2,
html[dir="rtl"] .section-header p {
    text-align: center;
}

/* Form elements RTL */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .btn {
    direction: rtl;
}

/* Mobile menu RTL */
@media (max-width: 768px) {
    html[dir="rtl"] .nav-links {
        right: 0;
        left: auto;
    }
    
    html[dir="rtl"] .nav-cta {
        right: 0;
        left: auto;
    }
    
    html[dir="rtl"] .dropdown-menu {
        right: 0;
        left: auto;
    }
    
    html[dir="rtl"] .dropdown-menu.mega-menu {
        right: 0;
        left: auto;
        transform: translateY(-10px);
    }
    
    html[dir="rtl"] .dropdown:hover .dropdown-menu.mega-menu {
        transform: translateY(0);
    }
}
