 /* --- 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 {
        /* SERVICE PALETTE (Professional Teal & Navy) */
        --sm-primary: #0D9488; /* Teal-600 (Fits Spa/Car Wash) */
        --sm-primary-dark: #115E59;
        --sm-secondary: #0F172A; /* Slate Navy (AiPSoft Base) */
        --sm-bg-light: #F0FDFA; /* Very light teal tint */
        --sm-bg-white: #ffffff;
        --sm-accent: #7C3AED; /* AiPSoft Purple */
        --sm-text-gray: #64748b;
        --sm-tadkeer-green: #178d72;
        /* Gradient: Teal to Purple */
        --sm-gradient: linear-gradient(135deg, #0D9488 0%, #7C3AED 100%);
    }

    /* Base Layout */
    .sm-wrapper {
        font-family: 'Lexend', sans-serif;
        color: var(--sm-secondary);
        background-color: var(--sm-bg-white);
        overflow-x: hidden;
        line-height: 1.6;
    }

    .sm-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
        position: relative;
        z-index: 2;
    }

    /* Typography */
    .sm-title {
        font-size: 3rem;
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: -0.02em;
        margin-bottom: 1.5rem;
        color: var(--sm-secondary);
    }
    
    .sm-subtitle {
        font-size: 1.15rem;
        color: var(--sm-text-gray);
        max-width: 650px;
        margin: 0 auto 2.5rem;
    }
    
    .sm-section-title {
        font-size: 2.25rem;
        font-weight: 700;
        margin-bottom: 1rem;
        text-align: center;
        color: var(--sm-secondary);
    }
    
    .sm-badge {
        display: inline-flex;
        align-items: center;
        padding: 6px 16px;
        background: var(--sm-bg-light);
        color: var(--sm-primary);
        border: 1px solid rgba(13, 148, 136, 0.2);
        border-radius: 100px;
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 20px;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    /* Buttons - ANIMATED */
    .sm-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;
    }

    .sm-btn-primary {
        background: var(--sm-gradient);
        color: white !important;
        box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.4);
        border: none;
    }
    .sm-btn-primary:hover {
        background: linear-gradient(135deg, #115E59 0%, #6D28D9 100%);
        transform: translateY(-3px);
        box-shadow: 0 15px 30px -5px rgba(13, 148, 136, 0.5);
    }

    .sm-btn-outline {
        background: white;
        border: 1px solid #e2e8f0;
        color: var(--sm-secondary) !important;
    }
    .sm-btn-outline:hover {
        border-color: var(--sm-primary);
        color: var(--sm-primary) !important;
        background: var(--sm-bg-light);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
    }
    
    /* White Buttons for CTA */
    .sm-btn-white {
        background: white;
        color: var(--sm-primary) !important;
        border: 1px solid white;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    .sm-btn-white:hover {
        background: #F0FDFA;
        transform: translateY(-3px);
        box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
    }

    .sm-btn-white-outline {
        background: transparent;
        border: 1px solid rgba(255,255,255,0.6);
        color: white !important;
    }
    .sm-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 */
    .sm-hero {
        padding: 160px 0 100px;
        text-align: center;
        background: radial-gradient(circle at 50% 0%, #f0fdfa 0%, #ffffff 70%);
        position: relative;
        overflow: visible;
    }

    .sm-hero-bg {
        position: absolute;
        inset: 0;
        /* Subtle Grid Pattern */
        background-image: linear-gradient(#e2e8f0 1px, transparent 1px), linear-gradient(90deg, #e2e8f0 1px, transparent 1px);
        background-size: 40px 40px;
        opacity: 0.15;
        z-index: 0;
        mask-image: radial-gradient(circle, black 30%, transparent 80%);
    }

    /* --- HERO VISUAL COMPOSITION (Asymmetrical) --- */
    .sm-hero-visual-wrapper {
        margin-top: 100px;
        position: relative;
        height: 600px;
        width: 100%;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .sm-vis-item {
        position: absolute;
        transition: all 0.5s ease;
        background: transparent;
        overflow: visible;
    }
    
    .sm-vis-item img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 20px;
        box-shadow: 0 30px 60px -15px rgba(13, 148, 136, 0.15); /* Soft Teal Shadow */
    }

    /* 1. Main Dashboard (Back Left) */
    .sm-vis-dashboard {
        width: 65%;
        top: 20px;
        left: 16%;
        z-index: 2;
        animation: float-main 8s ease-in-out infinite;
    }
    
    /* 2. WhatsApp Chat (Front Right) */
    .sm-vis-whatsapp {
        width: 250px;
        height: auto;
        /*aspect-ratio: 9/18;*/
        bottom: 50px;
        right: 0;
        z-index: 10;
        animation: float-side 6s ease-in-out infinite;
    }
    
    /* 3. Service App (Front Left) */
    .sm-vis-app {
        width: 250px;
        height: auto;
        /*aspect-ratio: 9/18;*/
        bottom: 20px;
        left: 0;
        z-index: 10;
        animation: float-side 7s ease-in-out infinite;
    }
    
    /* 4. Plate Detection (Top Right Floating) */
    .sm-vis-plate {
        width: 240px;
        top: -10px;
        right: 12%;
        z-index: 12;
        transform: rotate(5deg);
        animation: float-tag 9s ease-in-out infinite;
    }

    /* 5. Notification Card (Bottom Center Floating) */
    .sm-vis-notif {
        width: 260px;
        bottom: 20px;
        left: 35%;
        z-index: 12;
        animation: float-machine 10s ease-in-out infinite;
    }
    
    /* Phone Styling */
    .sm-vis-whatsapp img, .sm-vis-app img {
        border-radius: 46px;
        box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 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-tag { 0%, 100% { transform: translateY(0) rotate(5deg); } 50% { transform: translateY(-12px) rotate(5deg); } }
    @keyframes float-machine { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

    /* SECTION: AI FEATURES (Zig Zag) */
    .sm-zigzag-section { padding: 100px 0; background: white; }
    .sm-bg-light { background-color: var(--sm-bg-light); }
    
    .sm-zigzag-row { display: flex; align-items: center; gap: 60px; margin-bottom: 0; }
    .sm-zigzag-row.reverse { flex-direction: row-reverse; }
    
    .sm-zigzag-content { flex: 1; }
    .sm-zigzag-image { flex: 1; position: relative; }
    .sm-zigzag-image img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
    
    .sm-small-label {
        font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
        letter-spacing: 0.05em; margin-bottom: 10px; display: block;
        color: var(--sm-primary);
    }
    .sm-text-accent { color: var(--sm-accent); }

    .sm-checklist { list-style: none; padding: 0; margin-top: 20px; }
    .sm-checklist li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--sm-secondary); font-weight: 500; }
    .sm-checklist i { color: var(--sm-primary); }

    /* SECTION: FEATURES GRID */
    .sm-features { padding: 100px 0; background: white; }
    
    .sm-feature-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
    
    .sm-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(--sm-secondary);
        position: relative;
        overflow: hidden;
    }
    .sm-feature-card:hover {
        border-color: var(--sm-primary);
        box-shadow: 0 15px 30px -5px rgba(13, 148, 136, 0.15);
        transform: translateY(-3px);
    }
    
    .sm-feature-icon {
        width: 50px;
        height: 50px;
        background: var(--sm-bg-light);
        color: var(--sm-primary);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        margin-bottom: 20px;
        transition: 0.3s;
    }
    .sm-feature-card:hover .sm-feature-icon {
        background: var(--sm-primary);
        color: white;
    }
    
    /* Corner Arrow */
    .sm-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(--sm-secondary);
        transition: all 0.3s ease;
    }
    .sm-corner-arrow i { font-size: 1.1rem; transition: transform 0.3s ease; }
    .sm-feature-card:hover .sm-corner-arrow { background: var(--sm-primary); color: white; }
    .sm-feature-card:hover .sm-corner-arrow i { transform: translate(2px, -2px); }

    /* SECTION: CTA */
    .sm-cta {
        margin: 60px 0 100px;
        background: var(--sm-gradient);
        border-radius: 24px;
        padding: 80px 20px;
        text-align: center;
        color: white;
        position: relative;
        overflow: hidden;
        box-shadow: 0 20px 40px -10px rgba(124, 58, 237, 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) {
        .sm-title { font-size: 2.5rem; }
        .sm-feature-grid { grid-template-columns: 1fr; }
        .sm-hero { padding-top: 120px; }
        .sm-zigzag-row, .sm-zigzag-row.reverse { flex-direction: column; text-align: center; }
        .sm-checklist { display: inline-block; text-align: left; }
        
        .sm-hero-visual-wrapper { height: auto; display: flex; flex-direction: column; gap: 20px; margin-top: 50px; }
        .sm-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; }
        .sm-vis-plate, .sm-vis-notif { display: none; }
        .sm-vis-app, .sm-vis-whatsapp { 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; }
        
        .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 .sm-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); 
    }    