   /* --- HEADER VISIBILITY FIX --- */
    .uc-navbar-main {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
    }

    :root {
        /* UPDATED: AiPSoft Brand Guidelines */
        --lm-primary: #5334D1; /* AiPSoft Purple */
        --lm-primary-dark: #0A0045; /* AiPSoft Navy */
        --lm-secondary: #0A0045; /* Dark Text */
        --lm-bg-light: #F6F4FF; /* Very Light Purple Tint */
        --lm-bg-white: #ffffff;
        --lm-accent: #C5299D; /* AiPSoft Pink */
        --lm-accent-light: #8E80FF; /* Light Periwinkle */
        --lm-text-gray: #64748b;
        --lm-gradient: linear-gradient(135deg, #5334D1 0%, #C5299D 100%);
        --lm-tadkeer-green: #178d72; /* Sourced from your theme for clients */
    }

    /* Base Layout */
    .lm-wrapper {
        font-family: 'Lexend', sans-serif;
        color: var(--lm-secondary);
        background-color: var(--lm-bg-white);
        overflow-x: hidden;
        line-height: 1.6;
    }

    .lm-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
        position: relative;
        z-index: 2;
    }

    /* Typography */
    .lm-title {
        font-size: 3rem;
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: -0.02em;
        margin-bottom: 1.5rem;
        color: var(--lm-secondary);
    }
    
    .lm-subtitle {
        font-size: 1.15rem;
        color: var(--lm-text-gray);
        max-width: 650px;
        margin: 0 auto 2.5rem;
    }
    
    .lm-section-title {
        font-size: 2.25rem;
        font-weight: 700;
        margin-bottom: 1rem;
        text-align: center;
        color: var(--lm-secondary);
    }
    
    .lm-badge {
        display: inline-flex;
        align-items: center;
        padding: 6px 16px;
        background: var(--lm-bg-light);
        color: var(--lm-primary);
        border: 1px solid rgba(83, 52, 209, 0.2);
        border-radius: 100px;
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 20px;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    /* Buttons - ANIMATED */
    .lm-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 30px;
        border-radius: 50px; /* Pill shape */
        font-weight: 600;
        text-decoration: none !important;
        transition: all 0.3s ease;
        gap: 8px;
        font-size: 0.95rem;
        cursor: pointer;
    }

    .lm-btn-primary {
        background: var(--lm-gradient);
        color: white !important;
        box-shadow: 0 10px 25px -5px rgba(83, 52, 209, 0.4);
        border: none;
    }
    .lm-btn-primary:hover {
        background: linear-gradient(135deg, #4428b0 0%, #a62085 100%);
        transform: translateY(-3px); /* LIFT ANIMATION */
        box-shadow: 0 15px 30px -5px rgba(83, 52, 209, 0.5);
    }

    .lm-btn-outline {
        background: white;
        border: 1px solid #e2e8f0;
        color: var(--lm-secondary) !important;
    }
    .lm-btn-outline:hover {
        border-color: var(--lm-primary);
        color: var(--lm-primary) !important;
        background: var(--lm-bg-light);
        transform: translateY(-3px); /* LIFT ANIMATION */
        box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
    }
    
    /* White Buttons for Gradient Backgrounds (CTA) */
    .lm-btn-white {
        background: white;
        color: var(--lm-primary) !important;
        border: 1px solid white;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    .lm-btn-white:hover {
        background: #F8FAFC;
        transform: translateY(-3px); /* LIFT ANIMATION */
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

    .lm-btn-white-outline {
        background: transparent;
        border: 1px solid rgba(255,255,255,0.6);
        color: white !important;
    }
    .lm-btn-white-outline:hover {
        background: rgba(255,255,255,0.1);
        border-color: white;
        transform: translateY(-3px); /* LIFT ANIMATION */
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .lm-btn-sm {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    /* SECTION: HERO (AiPSoft Brand Style) */
    .lm-hero {
        padding: 160px 0 100px;
        text-align: center;
        /* Subtle Purple Gradient Background */
        background: radial-gradient(circle at 50% 0%, #f9f7ff 0%, #ffffff 70%);
        position: relative;
        overflow: visible;
    }

    /* Background Orbs */
    .lm-orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        z-index: 0;
        opacity: 0.4;
        animation: orb-float 10s infinite ease-in-out;
    }
    .lm-orb-1 { width: 400px; height: 400px; background: #E0D9FF; top: -100px; left: -100px; }
    .lm-orb-2 { width: 300px; height: 300px; background: #FCE4F5; top: 100px; right: -50px; animation-delay: 2s; }
    
    @keyframes orb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }


    /* --- HERO VISUAL COMPOSITION (Separated & Borderless) --- */
    .lm-hero-visual-wrapper {
        margin-top: 100px;
        position: relative;
        height: 600px;
        width: 100%;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        
        /* Premium Scroll Fly Animation Variables Setup */
        --chat-x: 0px; --chat-y: 0px; --chat-r: 0deg; --chat-o: 1;
        --app-x: 0px; --app-y: 0px; --app-r: 0deg; --app-o: 1;
        --tag-x: 0px; --tag-y: 0px; --tag-r: -10deg; --tag-o: 1;
        --machine-x: 0px; --machine-y: 0px; --machine-r: 10deg; --machine-o: 1;
    }
    
    .lm-vis-item {
        position: absolute;
        transition: opacity 0.1s ease;
        background: transparent;
        overflow: visible;
    }
    
    .lm-vis-item img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 20px;
        /* Remove any background-color if present here */
        box-shadow: 0 30px 60px -15px rgba(10, 0, 69, 0.15);
    }

    /* 1. Main Dashboard (Center Back) - FIXED, NO FLY ANIMATION */
    .lm-vis-dashboard {
        width: 60%;
        top: 60px;
        left: 20%;
        z-index: 5;
        animation: float-main 8s ease-in-out infinite;
        opacity: 1;
        /* Kept rigid to 0 to stay in place while others fly */
        --fly-x: 0px; --fly-y: 0px; --fly-s: 1; --fly-r: 0deg;
    }
    
    /* 2. WhatsApp Chat (Far Left - No Border) */
    .lm-vis-chat-left {
        width: 260px;
        height: auto;
        aspect-ratio: 9/18;
        top: 80px;
        left: 0;
        z-index: 10;
        animation: float-side 6s ease-in-out infinite;
        opacity: var(--chat-o); 
        --fly-x: var(--chat-x); --fly-y: var(--chat-y); --fly-s: 1; --fly-r: var(--chat-r);
    }
    /* Specific radius for phone screens */
    .lm-vis-chat-left img, .lm-vis-app img {
        background: transparent !important; /* Forces transparency */
        border-radius: 0 !important;       /* Removes border radius if it clips the PNG */
        box-shadow: none !important;      /* Removes the shadow that creates the "white box" effect */
        object-fit: contain !important;    /* Ensures the image isn't stretched */
    }
    
    /* 3. Driver App (Far Right - No Border) */
    .lm-vis-app {
        width: 260px;
        height: auto;
        aspect-ratio: 9/18;
        top: 80px;
        right: 0;
        z-index: 10;
        animation: float-side 7s ease-in-out infinite;
        opacity: var(--app-o); 
        --fly-x: var(--app-x); --fly-y: var(--app-y); --fly-s: 1; --fly-r: var(--app-r);
    }
    
    /* 4. Tag (Top Left Floating - Rotated - ON TOP) */
    .lm-vis-tag {
        width: 220px;
        top: 0px;
        left: 10%;
        z-index: 20; /* Max z-index to be on top */
        animation: float-tag 9s ease-in-out infinite;
        opacity: var(--tag-o); 
        --fly-x: var(--tag-x); --fly-y: var(--tag-y); --fly-s: 1; --fly-r: var(--tag-r);
    }

    /* 5. Machine (Top Right Floating - Rotated - ON TOP) */
    .lm-vis-machine {
        width: 240px;
        top: 0px;
        right: 10%;
        z-index: 20; /* Max z-index to be on top */
        animation: float-machine 10s ease-in-out infinite;
        opacity: var(--machine-o); 
        --fly-x: var(--machine-x); --fly-y: var(--machine-y); --fly-s: 1; --fly-r: var(--machine-r);
    }

    /* Gentle Floating Animations (Using variables for dynamic scroll transforms) */
    @keyframes float-main { 
        0%, 100% { transform: translate(var(--fly-x), var(--fly-y)) scale(var(--fly-s)) rotate(var(--fly-r)); } 
        50% { transform: translate(var(--fly-x), calc(var(--fly-y) - 10px)) scale(var(--fly-s)) rotate(var(--fly-r)); } 
    }
    @keyframes float-side { 
        0%, 100% { transform: translate(var(--fly-x), var(--fly-y)) scale(var(--fly-s)) rotate(var(--fly-r)); } 
        50% { transform: translate(var(--fly-x), calc(var(--fly-y) - 15px)) scale(var(--fly-s)) rotate(var(--fly-r)); } 
    }
    @keyframes float-tag { 
        0%, 100% { transform: translate(var(--fly-x), var(--fly-y)) scale(var(--fly-s)) rotate(var(--fly-r)); } 
        50% { transform: translate(var(--fly-x), calc(var(--fly-y) - 12px)) scale(var(--fly-s)) rotate(var(--fly-r)); } 
    }
    @keyframes float-machine { 
        0%, 100% { transform: translate(var(--fly-x), var(--fly-y)) scale(var(--fly-s)) rotate(var(--fly-r)); } 
        50% { transform: translate(var(--fly-x), calc(var(--fly-y) - 12px)) scale(var(--fly-s)) rotate(var(--fly-r)); } 
    }


    /* SECTION: TAG PRINTING */
    .lm-tags-section {
        padding: 100px 0;
        background-color: white;
    }
    
    .lm-tags-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-top: 50px;
    }
    
    .lm-tag-card {
        background: #fff;
        border-radius: 24px;
        overflow: hidden;
        border: 1px solid #e2e8f0;
        transition: 0.3s;
        display: flex;
        flex-direction: column;
    }
    .lm-tag-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 30px -10px rgba(83, 52, 209, 0.15); /* Purple shadow */
        border-color: var(--lm-primary);
    }
    
    .lm-tag-img-box {
        height: 250px;
        background: #f1f5f9;
        overflow: hidden;
    }
    .lm-tag-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
    .lm-tag-card:hover .lm-tag-img-box img { transform: scale(1.05); }
    
    .lm-tag-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
    .lm-tag-footer { margin-top: auto; padding-top: 20px; }

    /* SECTION: WHATSAPP AUTOMATION */
    .lm-wa-section {
        padding: 100px 0;
        background: var(--lm-bg-light);
        position: relative;
    }
    
    .lm-wa-grid {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 60px;
        align-items: center;
    }

    .lm-step-list { list-style: none; padding: 0; margin: 30px 0; }
    .lm-step-item { display: flex; gap: 20px; margin-bottom: 30px; position: relative; }
    
    .lm-step-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50px;
        left: 20px;
        bottom: -20px;
        width: 2px;
        background: #cbd5e1;
    }
    
    .lm-step-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: white;
        border: 2px solid var(--lm-primary);
        color: var(--lm-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-weight: 700;
        z-index: 2;
    }

    /* SECTION: FEATURES (Clickable Grid) */
    .lm-features { padding: 100px 0; background: white; }
    
    .lm-feature-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
    
    /* Clickable Card */
    .lm-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; /* Ensure link style doesn't mess up text */
        color: var(--lm-secondary);
        position: relative;
        overflow: hidden;
    }
    .lm-feature-card:hover {
        border-color: var(--lm-primary);
        box-shadow: 0 15px 30px -5px rgba(83, 52, 209, 0.1);
        transform: translateY(-3px);
    }
    
    .lm-feature-icon {
        width: 50px;
        height: 50px;
        background: var(--lm-bg-light);
        color: var(--lm-primary);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        margin-bottom: 20px;
        transition: 0.3s;
    }
    .lm-feature-card:hover .lm-feature-icon {
        background: var(--lm-primary);
        color: white;
    }
    
    /* Corner Arrow Button Style */
    .lm-corner-arrow {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 50px;
        height: 50px;
        background: #F8FAFC; /* Light gray background initially */
        display: flex;
        align-items: center;
        justify-content: center;
        border-top-left-radius: 16px; /* Smooth curve into the card */
        color: var(--lm-secondary);
        transition: all 0.3s ease;
    }
    
    .lm-corner-arrow i {
        font-size: 1.1rem;
        transition: transform 0.3s ease;
    }

    .lm-feature-card:hover .lm-corner-arrow {
        background: var(--lm-primary); /* Brand color on hover */
        color: white;
    }
    
    .lm-feature-card:hover .lm-corner-arrow i {
        transform: translate(2px, -2px); /* Slight movement */
    }

    /* SECTION: CTA */
    .lm-cta {
        margin: 60px 0 100px;
        background: var(--lm-gradient);
        border-radius: 24px;
        padding: 80px 20px;
        text-align: center;
        color: white;
        position: relative;
        overflow: hidden;
        box-shadow: 0 20px 40px -10px rgba(83, 52, 209, 0.4);
    }
    
    /* Marquee Styles */
    .lm-marquee-wrapper {
        width: 100%;
        display: inline-flex;
        flex-wrap: nowrap;
        overflow: hidden;
        mask-image: linear-gradient(to right, transparent 0, black 128px, black calc(100% - 128px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, black 128px, black calc(100% - 128px), transparent 100%);
    }
    
    .lm-marquee-content {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        list-style: none;
        animation: lm-scroll 30s linear infinite;
    }
    
    .lm-marquee-content li { margin: 0 40px; flex-shrink: 0; }
    .lm-marquee-content img { height: 40px; width: auto; transition: 0.3s; }
    .lm-marquee-content img:hover { opacity: 0.9;  }
    
    @keyframes lm-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

    /* Trusted Clients Section */
    .rs-clients-section {
        padding: 80px 0;
        background-color: transparent; 
        overflow: hidden;
        position: relative;
        z-index: 1;
    }
    
    .rs-clients-header {
        text-align: center;
        margin-bottom: 60px;
    }
    
    .rs-clients-subtitle {
        color: var(--lm-tadkeer-green);
        font-weight: 600;
        font-size: 1.125rem;
        display: block;
        margin-bottom: 10px;
    }
    
    .rs-clients-title {
        font-size: 2.25rem;
        font-weight: 800;
        color: var(--lm-secondary);
        margin: 0 0 1rem;
    }
    
    .rs-clients-desc {
        font-size: 1.125rem;
        color: var(--lm-text-gray);
        max-width: 42rem;
        margin: 0 auto;
    }


/* 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);
}



/* Modal Overlay */
.rs-video-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); /* Dimmed backdrop */
    backdrop-filter: blur(4px); /* Light blur as requested */
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.rs-video-modal.active { display: flex !important; }

/* Video Container */
.rs-video-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.rs-video-container video { 
    width: 100%; 
    display: block; 
    border-radius: 16px; 
}

/* Close Button */
.rs-video-close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: 0.2s;
}

/* Mobile Responsive - YouTube style */
@media (max-width: 767px) {
    .rs-video-container {
        width: 100%;
        border-radius: 0;
    }
    .rs-video-container video { border-radius: 0; }
    .rs-video-close-btn {
        top: 10px;
        right: 10px;
        background: rgba(0,0,0,0.5);
        width: 35px;
        height: 35px;
        border-radius: 50%;
        font-size: 20px;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}



    /* Responsive */
    @media (max-width: 991px) {
        .lm-title { font-size: 2.5rem; }
        .lm-tags-grid { grid-template-columns: 1fr; }
        .lm-wa-grid { grid-template-columns: 1fr; text-align: center; }
        .lm-step-item { flex-direction: column; align-items: center; gap: 10px; }
        .lm-step-item:not(:last-child)::after { display: none; }
        .lm-hero { padding-top: 120px; }
        .lm-btn-learn { flex: 0 1 auto !important; width: auto !important; }
        
        /* Hero Composition Mobile Fallback - Ensures images stay intact and visible */
        .lm-hero-visual-wrapper { height: auto; display: flex; flex-direction: column; gap: 20px; margin-top: 50px; }
        .lm-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; border: none; 
             transform: none !important; opacity: 1 !important; /* Prevents scroll fly logic from breaking mobile */
        }
        .lm-vis-machine { display: none; }
        .lm-vis-app, .lm-vis-chat-left { margin: 0 auto; width: 70% !important; }

        /* --- 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; }
        .lm-marquee-content img { height: 36px; }
        .lm-marquee-content li { margin: 0 15px; }

        .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 */
    }
    body.ar_selected .lm-corner-arrow
    {
        left: 0 !important;
        right: auto !important;
    }
    .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); 
    }    