/* 
   Meta Ads Platform - Modern UI Design System 
   RTL Support | Glassmorphism | Animations
*/

:root {
    /* Color Palette - Modern Indigo/Purple Theme */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;

    /* Layout */
    --sidebar-width: 280px;
    --header-height: 80px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Alexandria', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

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

.text-left {
    text-align: left;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 800;
    color: var(--dark);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary-light);
}

.btn-secondary:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

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

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

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
    background: var(--light);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--primary-light);
    animation: float 8s infinite alternate;
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent);
    animation: float 10s infinite alternate-reverse;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Auth Pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-left: 1px solid #e2e8f0;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 50;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    color: var(--gray);
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.nav-item:hover,
.nav-item.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.main-content {
    flex: 1;
    margin-right: var(--sidebar-width);
    background: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100%;
}

.topbar {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 40;
}

.content-wrapper {
    padding: 2rem;
    overflow-x: hidden;
    max-width: 100%;
}

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

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--light);
    color: var(--primary);
}

.stat-info h3 {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.stat-info .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

/* Responsive */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

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

    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-right: 0;
        overflow-x: hidden;
        max-width: 100vw;
    }

    .content-wrapper {
        padding: 1rem;
        overflow-x: hidden;
    }

    .topbar {
        padding: 0 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Floating Button (WhatsApp) */
.floating-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s;
    cursor: pointer;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* ROI Calculator */
.roi-calculator {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.range-slider {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Partners Strip */
.partners-strip {
    overflow: hidden;
    white-space: nowrap;
    padding: 2rem 0;
    background: var(--white);
    position: relative;
}

.partners-track {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.partner-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2rem;
    opacity: 0.6;
    transition: opacity 0.3s;
    font-size: 1.5rem;
    color: var(--gray);
    font-weight: 700;
}

.partner-logo:hover {
    opacity: 1;
    color: var(--primary);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }

    /* RTL scroll direction */
}

/* Dark Mode Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--dark);
    font-size: 1.2rem;
    cursor: pointer;

    .content-wrapper {
        padding: 2rem;
    }

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

    .stat-card {
        background: var(--white);
        padding: 1.5rem;
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-sm);
        display: flex;
        align-items: center;
        gap: 1.5rem;
        transition: transform 0.3s;
    }

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        border-radius: var(--radius-lg);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        background: var(--light);
        color: var(--primary);
    }

    .stat-info h3 {
        font-size: 0.875rem;
        color: var(--gray);
        margin-bottom: 0.25rem;
    }

    .stat-info .value {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--dark);
    }

    /* Responsive */
    @media (max-width: 768px) {
        .hero-title {
            font-size: 2.5rem;
        }

        .sidebar {
            transform: translateX(100%);
        }

        .sidebar.open {
            transform: translateX(0);
        }

        .main-content {
            margin-right: 0;
        }

        .auth-card {
            padding: 2rem;
        }
    }

    /* Dark Mode Overrides */
    body.dark-mode {
        --light: #0f172a;
        --white: #1e293b;
        --dark: #f8fafc;
        --gray: #94a3b8;
        --primary-light: #6366f1;
        color: var(--dark);
        background-color: var(--light);
    }

    body.dark-mode .glass {
        background: rgba(30, 41, 59, 0.7);
        border-color: rgba(255, 255, 255, 0.1);
    }

    body.dark-mode .header.scrolled {
        background: rgba(15, 23, 42, 0.9);
    }

    body.dark-mode .form-control {
        left: 2rem;
        /* RTL layout */
        width: 60px;
        height: 60px;
        background: #25D366;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
        z-index: 1000;
        transition: all 0.3s;
        cursor: pointer;
    }

    .floating-btn:hover {
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    }

    /* ROI Calculator */
    .roi-calculator {
        background: var(--white);
        padding: 2rem;
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-lg);
    }

    .range-slider {
        width: 100%;
        height: 8px;
        background: #e2e8f0;
        border-radius: 4px;
        outline: none;
        -webkit-appearance: none;
    }

    .range-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 24px;
        height: 24px;
        background: var(--primary);
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    }

    /* Partners Strip */
    .partners-strip {
        overflow: hidden;
        white-space: nowrap;
        padding: 2rem 0;
        background: var(--white);
        position: relative;
    }

    .partners-track {
        display: inline-block;
        animation: scroll 20s linear infinite;
    }

    .partner-logo {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 2rem;
        opacity: 0.6;
        transition: opacity 0.3s;
        font-size: 1.5rem;
        color: var(--gray);
        font-weight: 700;
    }

    .partner-logo:hover {
        opacity: 1;
        color: var(--primary);
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(50%);
        }

        /* RTL scroll direction */
    }

    /* Dark Mode Toggle */
    .theme-toggle {
        border: none;
        color: var(--dark);
        font-size: 1.2rem;
        cursor: pointer;

        .content-wrapper {
            padding: 2rem;
        }

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

        .stat-card {
            background: var(--white);
            padding: 1.5rem;
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-sm);
            display: flex;
            align-items: center;
            gap: 1.5rem;
            transition: transform 0.3s;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }

        .stat-icon {
            width: 60px;
            height: 60px;
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            background: var(--light);
            color: var(--primary);
        }

        .stat-info h3 {
            font-size: 0.875rem;
            color: var(--gray);
            margin-bottom: 0.25rem;
        }

        .stat-info .value {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--dark);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.5rem;
            }

            .sidebar {
                transform: translateX(100%);
            }

            .sidebar.open {
                transform: translateX(0);
            }

            .main-content {
                margin-right: 0;
            }

            .auth-card {
                padding: 2rem;
            }
        }

        /* Dark Mode Overrides */
        body.dark-mode {
            --light: #0f172a;
            --white: #1e293b;
            --dark: #f8fafc;
            --gray: #94a3b8;
            --primary-light: #6366f1;
            color: var(--dark);
            background-color: var(--light);
        }

        body.dark-mode .glass {
            background: rgba(30, 41, 59, 0.7);
            border-color: rgba(255, 255, 255, 0.1);
        }

        body.dark-mode .header.scrolled {
            background: rgba(15, 23, 42, 0.9);
        }

        body.dark-mode .form-control {
            left: 2rem;
            /* RTL layout */
            width: 60px;
            height: 60px;
            background: #25D366;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
            z-index: 1000;
            transition: all 0.3s;
            cursor: pointer;
        }

        .floating-btn:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
        }

        /* ROI Calculator */
        .roi-calculator {
            background: var(--white);
            padding: 2rem;
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-lg);
        }

        .range-slider {
            width: 100%;
            height: 8px;
            background: #e2e8f0;
            border-radius: 4px;
            outline: none;
            -webkit-appearance: none;
        }

        .range-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 24px;
            height: 24px;
            background: var(--primary);
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
        }

        /* Partners Strip */
        .partners-strip {
            overflow: hidden;
            white-space: nowrap;
            padding: 2rem 0;
            background: var(--white);
            position: relative;
        }

        .partners-track {
            display: inline-block;
            animation: scroll 20s linear infinite;
        }

        .partner-logo {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin: 0 2rem;
            opacity: 0.6;
            transition: opacity 0.3s;
            font-size: 1.5rem;
            color: var(--gray);
            font-weight: 700;
        }

        .partner-logo:hover {
            opacity: 1;
            color: var(--primary);
        }

        @keyframes scroll {
            0% {
                transform: translateX(0);
            }

            100% {
                transform: translateX(50%);
            }

            /* RTL scroll direction */
        }

        /* Dark Mode Toggle */
        .theme-toggle {
            background: transparent;
            border: none;
            color: var(--dark);
            font-size: 1.2rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 50%;
            transition: all 0.3s;
        }

        .theme-toggle:hover {
            background: rgba(0, 0, 0, 0.05);
            color: var(--primary);
        }

        /* Footer */
        .footer {
            background: var(--dark);
            color: white;
            padding: 1.5rem;
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-sm);
            display: flex;
            align-items: center;
            gap: 1.5rem;
            transition: transform 0.3s;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }

        .stat-icon {
            width: 60px;
            height: 60px;
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            background: var(--light);
            color: var(--primary);
        }

        .stat-info h3 {
            font-size: 0.875rem;
            color: var(--gray);
            margin-bottom: 0.25rem;
        }

        .stat-info .value {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--dark);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.5rem;
            }

            .sidebar {
                transform: translateX(100%);
            }

            .sidebar.open {
                transform: translateX(0);
            }

            .main-content {
                margin-right: 0;
            }

            .auth-card {
                padding: 2rem;
            }
        }

        /* Dark Mode Overrides */
        body.dark-mode {
            --light: #0f172a;
            --white: #1e293b;
            --dark: #f8fafc;
            --gray: #94a3b8;
            --primary-light: #6366f1;
            color: var(--dark);
            background-color: var(--light);
        }

        body.dark-mode .glass {
            background: rgba(30, 41, 59, 0.7);
            border-color: rgba(255, 255, 255, 0.1);
        }

        body.dark-mode .header.scrolled {
            background: rgba(15, 23, 42, 0.9);
        }

        body.dark-mode .form-control {
            left: 2rem;
            /* RTL layout */
            width: 60px;
            height: 60px;
            background: #25D366;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
            z-index: 1000;
            transition: all 0.3s;
            cursor: pointer;
        }

        .floating-btn:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
        }

        /* ROI Calculator */
        .roi-calculator {
            background: var(--white);
            padding: 2rem;
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-lg);
        }

        .range-slider {
            width: 100%;
            height: 8px;
            background: #e2e8f0;
            border-radius: 4px;
            outline: none;
            -webkit-appearance: none;
        }

        .range-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 24px;
            height: 24px;
            background: var(--primary);
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
        }

        /* Partners Strip */
        .partners-strip {
            overflow: hidden;
            white-space: nowrap;
            padding: 2rem 0;
            background: var(--white);
            position: relative;
        }

        .partners-track {
            display: inline-block;
            animation: scroll 20s linear infinite;
        }

        .partner-logo {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin: 0 2rem;
            opacity: 0.6;
            transition: opacity 0.3s;
            font-size: 1.5rem;
            color: var(--gray);
            font-weight: 700;
        }

        .partner-logo:hover {
            opacity: 1;
            color: var(--primary);
        }

        @keyframes scroll {
            0% {
                transform: translateX(0);
            }

            100% {
                transform: translateX(50%);
            }

            /* RTL scroll direction */
        }

        /* Dark Mode Toggle */
        .theme-toggle {
            background: transparent;
            border: none;
            color: var(--dark);
            font-size: 1.2rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 50%;
            transition: all 0.3s;
        }

        .theme-toggle:hover {
            background: rgba(0, 0, 0, 0.05);
            color: var(--primary);
        }

        /* Footer */
        .footer {
            background: var(--dark);
            color: white;
            padding: 3rem 0;
            margin-top: auto;
        }

        body.dark-mode .footer {
            background-color: #020617 !important;
            border-top: 1px solid #1e293b;
        }

        /* Dashboard Enhancements */
        .charts-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        @media (max-width: 1024px) {
            .charts-grid {
                grid-template-columns: 1fr;
            }
        }

        .chart-container {
            background: var(--white);
            padding: 1.5rem;
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-sm);
            position: relative;
            height: 350px;
        }

        .quick-actions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .quick-action-btn {
            background: var(--white);
            padding: 1.5rem;
            border-radius: var(--radius-lg);
            text-align: center;
            transition: all 0.3s;
            border: 1px solid transparent;
            cursor: pointer;
            box-shadow: var(--shadow-sm);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.75rem;
        }

        .quick-action-btn:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
            border-color: var(--primary-light);
        }

        .quick-action-btn i {
            font-size: 1.5rem;
            color: var(--primary);
            background: rgba(99, 102, 241, 0.1);
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s;
        }

        .quick-action-btn:hover i {
            background: var(--primary);
            color: white;
        }

        .activity-timeline {
            list-style: none;
        }

        .activity-item {
            position: relative;
            padding-right: 2rem;
            padding-bottom: 1.5rem;
            border-right: 2px solid #e2e8f0;
        }

        .activity-item:last-child {
            border-right: none;
        }

        .activity-item::after {
            content: '';
            position: absolute;
            right: -9px;
            top: 0;
            width: 16px;
            height: 16px;
            background: var(--white);
            border: 3px solid var(--primary);
            border-radius: 50%;
        }

        .activity-date {
            font-size: 0.8rem;
            color: var(--gray);
            margin-bottom: 0.25rem;
        }

        .activity-text {
            font-size: 0.95rem;
            color: var(--dark);
        }

        body.dark-mode .chart-container,
        body.dark-mode .quick-action-btn {
            background: var(--white);
            /* Uses dark mode var(--white) which is dark */
            border-color: #334155;
        }

        body.dark-mode .activity-item {
            border-right-color: #334155;
        }

        body.dark-mode .activity-item::after {
            background: var(--white);
            border-color: var(--primary);
        }
    }