  /* --- HEADER VISIBILITY FIX --- */
    .uc-navbar-main {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    }

    :root {
        /* CRM PALETTE (Connection & Growth) */
        --cm-primary: #4338CA; /* Indigo 700 - Professional/Data */
        --cm-primary-dark: #312E81; /* Indigo 900 */
        --cm-secondary: #0F172A; /* Slate 900 - Darkest Navy */
        --cm-accent: #DB2777; /* Pink 600 - Human/Vibrant */
        --cm-success: #10B981; /* Emerald 500 - Deals Won */
        --cm-bg-light: #EEF2FF; /* Indigo 50 */
        --cm-bg-white: #ffffff;
        --cm-text-gray: #64748b;
        /* Gradient: Indigo to Pink */
        --cm-gradient: linear-gradient(135deg, #4338CA 0%, #DB2777 100%);
    }

    /* Base Layout */
    .cm-wrapper {
        font-family: 'Lexend', sans-serif;
        color: var(--cm-secondary);
        background-color: var(--cm-bg-white);
        overflow-x: hidden;
        line-height: 1.6;
    }
    body.ar_selected .cm-corner-arrow
    {
        left: 0 !important;
        right: auto !important;
    }
    .cm-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
        position: relative;
        z-index: 2;
    }

    /* Typography */
    .cm-title {
        font-size: 3rem;
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: -0.02em;
        margin-bottom: 1.5rem;
        color: var(--cm-secondary);
    }
    
    .cm-subtitle {
        font-size: 1.15rem;
        color: var(--cm-text-gray);
        max-width: 650px;
        margin: 0 auto 2.5rem;
    }
    
    .cm-section-title {
        font-size: 2.25rem;
        font-weight: 700;
        margin-bottom: 1rem;
        text-align: center;
        color: var(--cm-secondary);
    }
    
    .cm-badge {
        display: inline-flex;
        align-items: center;
        padding: 6px 16px;
        background: var(--cm-bg-light);
        color: var(--cm-primary);
        border: 1px solid rgba(67, 56, 202, 0.2);
        border-radius: 100px;
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 20px;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    /* Buttons */
    .cm-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 30px;
        border-radius: 50px;
        font-weight: 600;
        text-decoration: none !important;
        transition: all 0.3s ease;
        gap: 8px;
        font-size: 0.95rem;
        cursor: pointer;
    }

    .cm-btn-primary {
        background: var(--cm-gradient);
        color: white !important;
        box-shadow: 0 10px 25px -5px rgba(67, 56, 202, 0.4);
        border: none;
    }
    .cm-btn-primary:hover {
        background: linear-gradient(135deg, #312E81 0%, #BE185D 100%);
        transform: translateY(-3px);
        box-shadow: 0 15px 30px -5px rgba(67, 56, 202, 0.5);
    }

    .cm-btn-outline {
        background: white;
        border: 1px solid #e2e8f0;
        color: var(--cm-secondary) !important;
    }
    .cm-btn-outline:hover {
        border-color: var(--cm-primary);
        color: var(--cm-primary) !important;
        background: var(--cm-bg-light);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
    }
    
    /* White Buttons for CTA */
    .cm-btn-white {
        background: white;
        color: var(--cm-primary) !important;
        border: 1px solid white;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    .cm-btn-white:hover {
        background: #F5F3FF;
        transform: translateY(-3px);
        box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
    }

    .cm-btn-white-outline {
        background: transparent;
        border: 1px solid rgba(255,255,255,0.6);
        color: white !important;
    }
    .cm-btn-white-outline:hover {
        background: rgba(255,255,255,0.1);
        transform: translateY(-3px);
        box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    }

    /* SECTION: HERO */
    .cm-hero {
        padding: 160px 0 0px;
        text-align: center;
        background: radial-gradient(circle at 50% 0%, #eef2ff 0%, #ffffff 70%);
        position: relative;
        overflow: visible;
    }
    
    /* Connection Lines Background */
    .cm-hero-bg {
        position: absolute;
        inset: 0;
        background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
        background-size: 30px 30px;
        opacity: 0.3;
        mask-image: radial-gradient(circle at center, black, transparent 80%);
    }

    /* --- HERO VISUAL COMPOSITION --- */
    .cm-hero-visual-wrapper {
        margin-top: 100px;
        position: relative;
        height: 600px;
        width: 100%;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cm-vis-item {
        position: absolute;
        transition: all 0.5s ease;
        background: transparent;
        overflow: visible;
    }
    
    .cm-vis-item img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 16px;
        box-shadow: 0 30px 60px -15px rgba(67, 56, 202, 0.15);
    }

    /* 1. Main Pipeline Dashboard (Center Back) */
    .cm-vis-dashboard {
        width: 65%;
        top: 20px;
        left: 17.5%;
        z-index: 5;
        animation: float-main 8s ease-in-out infinite;
    }
    
    /* 2. Proposal/Invoice Doc (Left Front) */
    .cm-vis-doc {
        width: 35%;
        top: 190px;
        left: 0;
        z-index: 10;
        animation: float-side 6s ease-in-out infinite;
    }
    
    /* 3. Mobile Client View (Right Front) */
    .cm-vis-mobile {
        width: 18%;
        top: 80px;
        right: 5%;
        z-index: 10;
        animation: float-side 7s ease-in-out infinite;
    }
    
    /* 4. Chat Bubble (Top Left Floating) */
    .cm-vis-chat {
        width: 15%;
        top: 0px;
        left: 10%;
        z-index: 6;
        animation: float-mid 9s ease-in-out infinite;
    }

    /* 5. User Avatar/Profile (Top Right Floating) */
    .cm-vis-profile {
        width: 15%;
        top: 20px;
        right: 15%;
        z-index: 6;
        animation: float-mid 10s ease-in-out infinite;
    }
    
    /* Phone Styling */
    .cm-vis-mobile img {
        border-radius: 30px;
        box-shadow: 0 40px 80px -20px rgba(67, 56, 202, 0.25);
    }

    @keyframes float-main { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
    @keyframes float-side { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
    @keyframes float-mid { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }


    /* SECTION: CLIENTS (Static Grid Version) */
    .cm-clients-section {
        padding: 80px 0 100px;
        background-color: transparent;
        z-index: 1;
        position: relative;
    }
    .cm-clients-header { text-align: center; margin-bottom: 50px; }
    .cm-clients-subtitle { color: var(--cm-primary); font-weight: 600; display: block; margin-bottom: 10px; }
    .cm-clients-title { font-size: 2.25rem; font-weight: 800; color: var(--cm-secondary); margin: 0 0 1rem; }
    .cm-clients-desc { font-size: 1.125rem; color: var(--cm-text-gray); max-width: 42rem; margin: 0 auto; }
    
    .cm-major-logos-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 60px;
        margin-top: 20px;
    }
    .cm-major-logos-grid img {
        height: 55px; /* Bigger logos */
        width: auto;
        /*opacity: 0.6;*/
        /*filter: grayscale(100%);*/
        transition: all 0.4s ease;
    }
    .cm-major-logos-grid img:hover {
        opacity: 1;
        filter: grayscale(0%);
        transform: scale(1.1);
    }

    /* SECTION: FEATURES GRID */
    .cm-features { padding: 100px 0; background: var(--cm-bg-light); }
    
    .cm-feature-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
    
    .cm-feature-card {
        padding: 30px;
        border-radius: 16px;
        background: white;
        border: 1px solid #e2e8f0;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
        transition: 0.3s;
        display: flex;
        flex-direction: column;
        text-decoration: none !important;
        color: var(--cm-secondary);
        position: relative;
        overflow: hidden;
    }
    .cm-feature-card:hover {
        border-color: var(--cm-primary);
        box-shadow: 0 15px 30px -5px rgba(67, 56, 202, 0.15);
        transform: translateY(-3px);
    }
    
    .cm-feature-icon {
        width: 50px;
        height: 50px;
        background: #e0e7ff;
        color: var(--cm-primary);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        margin-bottom: 20px;
        transition: 0.3s;
    }
    .cm-feature-card:hover .cm-feature-icon {
        background: var(--cm-primary);
        color: white;
    }
    
    /* Corner Arrow */
    .cm-corner-arrow {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 50px;
        height: 50px;
        background: #F8FAFC;
        display: flex;
        align-items: center;
        justify-content: center;
        border-top-left-radius: 16px;
        color: var(--cm-secondary);
        transition: all 0.3s ease;
    }
    .cm-corner-arrow i { font-size: 1.1rem; transition: transform 0.3s ease; }
    .cm-feature-card:hover .cm-corner-arrow { background: var(--cm-primary); color: white; }
    .cm-feature-card:hover .cm-corner-arrow i { transform: translate(2px, -2px); }

    /* SECTION: ZIG ZAG (Process Flow) */
    .cm-zigzag-section { padding: 100px 0; background: white; }
    .cm-zigzag-row { display: flex; align-items: center; gap: 60px; margin-bottom: 0; }
    .cm-zigzag-row.reverse { flex-direction: row-reverse; }
    
    .cm-zigzag-content { flex: 1; }
    .cm-zigzag-image { flex: 1; position: relative; }
    .cm-zigzag-image img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
    
    .cm-checklist { list-style: none; padding: 0; margin-top: 20px; }
    .cm-checklist li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--cm-secondary); font-weight: 500; }
    .cm-checklist i { color: var(--cm-success); }

    /* SECTION: INTEGRATIONS */
    .cm-integrations { padding: 80px 0; background: white; border-top: 1px solid #f1f5f9; }
    .cm-logo-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px 60px;
        margin-top: 50px;
    }
    .cm-logo-item {
        display: flex;
        align-items: center;
        justify-content: center;
        filter: grayscale(100%);
        opacity: 0.6;
        transition: all 0.3s ease;
    }
    .cm-logo-item:hover {
        filter: grayscale(0%);
        opacity: 1;
        transform: scale(1.05);
    }
    .cm-logo-item img {
        height: 40px;
        width: auto;
        object-fit: contain;
    }

    /* SECTION: CTA */
    .cm-cta {
        margin: 60px 0 100px;
        background: var(--cm-gradient);
        border-radius: 24px;
        padding: 80px 20px;
        text-align: center;
        color: white;
        position: relative;
        overflow: hidden;
        box-shadow: 0 20px 40px -10px rgba(67, 56, 202, 0.4);
    }


    /* ------------------------------ MODAL DEMO -------------------------------------- */


    .uc-modal.uc-open {
        background: rgba(15, 23, 42, 0.85) !important;
        backdrop-filter: blur(4px);
    }

    .rs-modal-card {
        background: white;
        border-radius: 16px;
        overflow: hidden;
        max-width: 820px;
        width: 95%;
        display: flex; /* Keeps image left, form right */
        border: none;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }

    .rs-modal-left {
        width: 40%;
        padding: 0 !important;
        position: relative;
        min-height: 100%;
        overflow: hidden;
        background-color: #000; /* Backdrop for image */
        display: block;
    }

    .rs-modal-left img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .rs-modal-right {
        width: 60%;
        background: white;
        padding: 25px 30px; /* Tighter padding for height reduction */
        position: relative;
        overflow-y: auto;
    }

    /* Uniform Form Height (Strict 40px) */
    #demoForm.vstack { gap: 10px !important; }
    
    #demoForm .form-control,
    #demoForm .form-select,
    #demoForm input[type="text"],
    #demoForm input[type="email"],
    #demoForm input[type="tel"],
    #demoForm input[type="number"],
    #demoForm .h-48px { 
        height: 40px !important; 
        min-height: 40px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        font-size: 14px !important;
        line-height: 40px !important;
    }

    /* Icon Alignment Fix for 40px Height */
    .form-icon-group { position: relative; }
    .form-icon-group i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 0.85rem;
        pointer-events: none;
        z-index: 5;
    }
    .form-icon-group .form-control, 
    .form-icon-group .form-select { padding-left: 40px !important; }

    .rs-submit-btn {
        /*background-color: var(--rs-submit-yellow) !important;*/
        color: white !important;
        font-weight: 700 !important;
        height: 44px;
        border-radius: 8px !important;
        transition: all 0.2s;
        border: none !important;
        font-size: 14px;
        cursor: pointer;
    }
    .rs-submit-btn:hover { background-color: #8e54d7 !important; transform: translateY(-2px); }



/* 2. Branded Submit Button Style */
.rs-modal-submit-btn {
    background-color: var(--rs-tadkeer-green) !important; /* Matches aipsoft-color */
    color: white !important;
    font-weight: 700 !important;
    height: 48px !important;
    border-radius: 10px !important;
    transition: all 0.2s;
    border: none !important;
    font-size: 1rem;
    cursor: pointer;
}

.rs-modal-submit-btn:hover {
    background-color: #8e54d7 !important;
    transform: translateY(-2px);
}

    
    /* Responsive */
    @media (max-width: 991px) {
        .cm-title { font-size: 2.5rem; }
        .cm-feature-grid { grid-template-columns: 1fr; }
        .cm-hero { padding-top: 120px; }
        .cm-zigzag-row, .cm-zigzag-row.reverse { flex-direction: column; text-align: center; }
        .cm-checklist { display: inline-block; text-align: left; }
        
        .cm-hero-visual-wrapper { height: auto; display: flex; flex-direction: column; gap: 20px; margin-top: 50px; }
        .cm-vis-item { position: relative; width: 100% !important; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important; animation: none !important; margin-bottom: 15px; }
        .cm-vis-chat, .cm-vis-profile { display: none; }
        .cm-vis-doc, .cm-vis-mobile { margin: 0 auto; width: 80% !important; }
        .cm-logo-grid { gap: 30px; }


        /* --- MODAL LAYOUT REFINEMENTS --- */
        .uc-modal.uc-open {
            background: rgba(15, 23, 42, 0.8) !important;
            backdrop-filter: blur(4px);
        }
        
        .rs-hero-title { font-size: 2.5rem; }
        .rs-hero-layout, .rs-zigzag-row, .rs-zigzag-row.reverse { flex-direction: column; text-align: center; }
        .rs-hero-text { text-align: center; }
        .rs-hero-visuals { width: 100%; min-height: 350px; margin-top: 40px; }
        
        .rs-mobile-center { justify-content: center !important; }
        
        .rs-btn { 
            width: auto; /* Let content dictate width */
            min-width: 140px; /* Minimum width for tap targets */
            max-width: 100%; /* Prevent overflow */
            margin-bottom: 0; /* Remove rigid margin, rely on flex gap */
            padding: 12px 20px; /* Slightly compact padding */
            flex: 1 0 auto; /* Allow growth to fill rows evenly */
            white-space: nowrap; /* Keep text on one line if possible */
            font-size: 0.95rem;
        }
        .rs-btn-learn {
            flex: 0 1 auto !important;
            min-width: auto !important;
        }
        
        .rs-container { padding: 0 15px; }
        
        .rs-checklist { display: inline-block; text-align: left; }
        .rs-section-title { font-size: 2rem; }
        .rs-d-flex.rs-align-center.gap-4 { justify-content: center; }
        
        .rs-badge-pill { margin: 0 auto 20px; }
        .rs-hero-features-list { justify-content: center; display: flex; flex-wrap: wrap; gap: 10px; }
        
        .rs-img-mobile { width: 25%; left: 0; top: -10px; }
        .rs-img-pos { width: 45%; right: 0; bottom: -10px; }
        
        /* Clients Section Adjustments for Mobile */
        .rs-clients-title { font-size: 1.75rem; }
        .rs-major-logos-grid { gap: 30px; }
        .rs-major-logos-grid img { height: 40px; }

        .rs-modal-left { display: none !important; }
        .rs-modal-right { width: 100% !important; padding: 25px 20px; }
        .rs-modal-card { max-width: 450px; }
        
        .rs-hero-title { font-size: 2.5rem; }
        .rs-hero-layout, .rs-zigzag-row, .rs-zigzag-row.reverse { flex-direction: column; text-align: center; }
        .rs-hero-text { text-align: center; }
        .rs-hero-visuals { width: 100%; min-height: 350px; margin-top: 40px; }
        .rs-mobile-center { justify-content: center !important; }
        .rs-btn { width: auto; min-width: 140px; max-width: 100%; padding: 12px 20px; flex: 1 0 auto; white-space: nowrap; font-size: 0.95rem; }
    }

    /* Breadcrumbs (Uses rs- class to match PHP, but rm- variables for theme) */
    .rs-breadcrumbs {
        display: flex;
        align-items: center;
        justify-content: center; /* Centered to match the restaurant hero */
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.95rem;
        font-weight: 500;
        margin-bottom: 25px;
        color: var(--rm-text-muted); 
        flex-direction: <?php echo ($lang == 'ar') ? 'row-reverse' : 'row'; ?>; /* RTL Support */
    }

    .rs-breadcrumbs a {
        color: #2563EB; /* Changed to standard AiPSoft bright blue */
        text-decoration: none;
        transition: color 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex-direction: <?php echo ($lang == 'ar') ? 'row-reverse' : 'row'; ?>; /* RTL Support */
    }

    .rs-breadcrumbs a:hover {
        color: var(--rm-food-red); /* Restaurant red on hover */
        text-decoration: underline;
    }

    .rs-breadcrumbs .rs-separator {
        color: #94a3b8;
        font-size: 0.8rem;
        transform: <?php echo ($lang == 'ar') ? 'rotate(180deg)' : 'none'; ?>; /* Flip arrows for Arabic */
    }

    .rs-breadcrumbs .rs-current {
        color: var(--rm-text-main); 
    } 