/**
 * Pulsey ERP — Arabic & RTL Website Stylesheet
 * Native Cairo Font & RTL Layout Architecture
 * Author: Hai Technologies LLC (pulsey.haitechnologies.com)
 */

:root {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-subtle-alt: #e2e8f0;
    --primary: #ea580c;
    --primary-glow: rgba(234, 88, 12, 0.22);
    --primary-light: #fff7ed;
    --primary-border: #fed7aa;
    --secondary: #2563eb;
    --secondary-glow: rgba(37, 99, 235, 0.2);
    --secondary-light: #eff6ff;
    --accent: #059669;
    --accent-light: #ecfdf5;
    --text-main: #0f172a;
    --text-body: #334155;
    --text-muted: #475569;
    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;
    
    /* Accessibility & Touch Targets */
    --touch-target-min: 48px;
    --focus-ring: 2px solid var(--primary);
    --focus-offset: 2px;
    
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.09), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 40px -6px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
    --container-max: 1240px;
}

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

/* Universal WCAG 2.2 Visible Focus Ring (SC 2.4.7 & SC 2.4.11) */
:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset);
    border-radius: 4px;
}

html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative;
    direction: rtl;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Top Announcement Strip */
.announcement-bar {
    background: linear-gradient(90deg, #ea580c 0%, #c2410c 50%, #2563eb 100%);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    letter-spacing: 0.01em;
}

.announcement-badge {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 800;
}

/* Main Nav Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xs);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    gap: 1.5rem;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-link img {
    height: 48px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links li a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-links li a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-links li a.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 800;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Language Switcher */
.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid var(--border-strong);
    color: var(--text-main);
    transition: all 0.2s ease;
}

.lang-switch-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #f56e1d 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
    color: #ffffff;
}

.btn-glass {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-xs);
}

.btn-glass:hover {
    background: #f8fafc;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-lg {
    padding: 0.85rem 1.85rem;
    font-size: 1.05rem;
    border-radius: 12px;
}

/* Badge Pill */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    width: fit-content;
}

.badge-primary {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

.badge-secondary {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.gradient-text {
    background: linear-gradient(135deg, #f56e1d 0%, #ea580c 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero and Section Layouts */
.page-hero {
    padding: 4.5rem 0 3.5rem;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at 50% 0%, rgba(245, 110, 29, 0.08) 0%, transparent 70%),
                linear-gradient(180deg, #ffffff 0%, var(--bg-base) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.subpage-hero {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(245, 110, 29, 0.07) 0%, transparent 65%),
                linear-gradient(180deg, #ffffff 0%, var(--bg-base) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.subpage-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    border-radius: 9999px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #ea580c;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.subpage-headline {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.subpage-subhead {
    font-size: 1.12rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.breadcrumbs a {
    color: var(--text-body);
    text-decoration: none;
}

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

.page-breadcrumb-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.page-breadcrumb-bar a {
    color: var(--text-body);
    text-decoration: none;
}

.page-breadcrumb-bar a:hover {
    color: var(--primary);
}

.section {
    padding: 4.5rem 0;
}

.section-title {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.section-title h2 {
    font-size: clamp(1.85rem, 3.2vw, 2.6rem);
    margin: 0.75rem 0 0.85rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Cards & Grid Systems */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    margin: 3rem 0;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.6rem;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.deep-dive-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin: 3.5rem 0;
}

/* Image Showcase Frames */
.img-preview-box {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transition: all 0.3s ease;
}

.img-preview-box img {
    width: 100%;
    height: auto;
    display: block;
}

.img-caption {
    background: #ffffff;
    padding: 1rem 1.5rem;
    font-size: 0.88rem;
    color: #475569;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Mobile Drawer */
.mobile-menu-toggle {
    display: none;
    background: #ffffff;
    border: 1px solid var(--border-strong);
    color: var(--text-main);
    font-size: 1.5rem;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
}



.filter-scroll-mobile {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.4rem;
}
.filter-scroll-mobile::-webkit-scrollbar {
    display: none;
}
.filter-scroll-mobile > * {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
}

/* High-Density Mobile Responsiveness & Vertical Scroll Reduction (Arabic RTL) */
@media (max-width: 768px) {
    /* Compact Section & Hero Spacing */
    .page-hero { padding: 2.25rem 0 1.5rem !important; }
    .section { padding: 2rem 0 !important; }
    .section-title { margin-bottom: 1.5rem !important; }
    .section-title h2 { font-size: 1.6rem !important; line-height: 1.25 !important; }
    .subpage-hero { padding: 2.25rem 0 1.5rem !important; }
    .subpage-headline { font-size: 1.8rem !important; line-height: 1.25 !important; }
    .subpage-subhead { font-size: 0.95rem !important; margin-bottom: 1.25rem !important; line-height: 1.6 !important; }
    .page-breadcrumb-bar { padding: 0.6rem 0 !important; font-size: 0.8rem !important; }
    .announcement-bar { font-size: 0.75rem !important; padding: 0.35rem 0.75rem !important; }
    .announcement-badge { font-size: 0.65rem !important; padding: 0.15rem 0.45rem !important; }

    /* Horizontal Touch-Swipe Snap Carousels (Arabic RTL with native momentum) */
    .grid-mobile-scroll,
    .features-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 0.85rem !important;
        padding-bottom: 0.75rem !important;
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        scrollbar-width: none;
        direction: rtl !important;
        margin-top: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    .grid-mobile-scroll::-webkit-scrollbar,
    .features-grid::-webkit-scrollbar {
        display: none;
    }
    .grid-mobile-scroll > *,
    .features-grid > * {
        flex: 0 0 85% !important;
        max-width: 85% !important;
        scroll-snap-align: start !important;
        margin-bottom: 0 !important;
    }

    /* Ultra-Compact 2-Column Grid for Metrics & Badges */
    .stat-grid-mobile {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }

    /* Compact Card Padding */
    .card,
    .feature-card {
        padding: 1.15rem !important;
        border-radius: 14px !important;
    }

    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .grid-3:not(.grid-mobile-scroll) {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .grid-4:not(.grid-mobile-scroll) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* Deep Dive Card Compact on Mobile */
    .deep-dive-card {
        padding: 1.5rem 1.25rem !important;
        border-radius: 14px !important;
        margin: 2rem 0 !important;
    }
    .deep-dive-card > div {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Swipe Visual Indicator Badge */
    .mobile-swipe-hint {
        display: flex !important;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.78rem;
        color: #ea580c;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    /* Button Sizing on Mobile */
    .btn-lg {
        padding: 0.65rem 1.15rem !important;
        font-size: 0.9rem !important;
        width: 100% !important;
    }

    .header-content {
        height: 62px !important;
    }
    .mobile-nav-drawer {
        top: 62px !important;
    }
}

@media (min-width: 769px) {
    .mobile-swipe-hint {
        display: none !important;
    }
}

/* ==============================================================================
   MODERN SAAS TOKENS, GLASSMORPHISM & INTERACTIVE ROI CALCULATOR (ARABIC / RTL)
   ============================================================================== */

/* Glassmorphism & Card Glows */
.glass-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
}

.card-glow-primary {
    position: relative;
    border: 1px solid rgba(234, 88, 12, 0.2) !important;
}

.card-glow-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(270deg, #ea580c, #f97316);
    border-radius: 16px 16px 0 0;
}

.card-glow-accent {
    position: relative;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
}

.card-glow-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(270deg, #2563eb, #3b82f6);
    border-radius: 16px 16px 0 0;
}

/* Pulse Status Badges */
.badge-pulse {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.badge-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    position: relative;
}

.badge-pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
    animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* Compliance Badge */
.badge-compliance {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Timeline Expiry Countdown */
.expiry-timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.expiry-step {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1rem 0.75rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.expiry-step.step-90 { border-top: 3px solid #10b981; }
.expiry-step.step-60 { border-top: 3px solid #06b6d4; }
.expiry-step.step-30 { border-top: 3px solid #f59e0b; }
.expiry-step.step-15 { border-top: 3px solid #f97316; }
.expiry-step.step-7  { border-top: 3px solid #ef4444; }
.expiry-step.step-0  { border-top: 3px solid #7f1d1d; background: #fef2f2; }

.expiry-step-days {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.expiry-step-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
}

/* ROI & Yield Calculator */
.roi-calculator-container {
    background: linear-gradient(225deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
    margin: 3rem 0;
}

.roi-slider-group {
    margin-bottom: 1.75rem;
}

.roi-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.roi-slider-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.roi-slider-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace, sans-serif;
    direction: ltr;
}

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

.range-slider-styled::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
    border: 2px solid #ffffff;
    transition: transform 0.15s ease;
}

.range-slider-styled::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.roi-result-card {
    background: #0f172a;
    color: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.25);
    text-align: right;
}

.roi-kpi-block {
    margin-bottom: 1.5rem;
}

.roi-kpi-label {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: #94a3b8;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.roi-kpi-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #38bdf8;
    font-family: 'JetBrains Mono', monospace, sans-serif;
    line-height: 1.1;
    direction: ltr;
    display: inline-block;
}

.roi-kpi-value.gold {
    color: #fbbf24;
}

.roi-kpi-value.green {
    color: #4ade80;
}

/* FAQ Accordion Styling */
.faq-accordion-item {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-accordion-item:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question i {
    transition: transform 0.25s ease;
    font-size: 1.2rem;
    color: var(--primary);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.7;
    display: none;
}

.faq-accordion-item.active .faq-answer {
    display: block;
}

.faq-accordion-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Screenshot Lightbox */
.screenshot-preview-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    background: #0f172a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.screenshot-preview-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
}

.screenshot-preview-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==============================================================================
   COMPREHENSIVE MOBILE VIEWPORTS & TOUCH TARGETS (ARABIC / RTL 320px - 768px)
   ============================================================================== */

/* Backdrop Overlay for Mobile Nav Drawer (Arabic) */
.mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 997;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mobile-nav-backdrop.active {
    display: block;
    opacity: 1;
}



/* Expiry Radar Timeline - Desktop vs Mobile (Arabic) */
.expiry-timeline {
    display: flex;
    gap: 1.25rem;
    position: relative;
    margin: 2.5rem 0;
}

.timeline-step {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: right;
}

.timeline-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.step-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.step-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Mobile Expiry Timeline Stacking (< 768px Arabic RTL) */
@media (max-width: 768px) {
    .expiry-timeline {
        flex-direction: column;
        gap: 1rem;
        padding-right: 1.25rem;
        padding-left: 0;
        border-right: 3px solid #fed7aa;
        border-left: none;
        margin-right: 0.5rem;
        margin-left: 0;
    }

    .timeline-step {
        padding: 1.15rem 1rem;
    }

    .timeline-step::before {
        content: '';
        position: absolute;
        right: -1.75rem;
        left: auto;
        top: 1.5rem;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: #f56e1d;
        border: 3px solid #ffffff;
        box-shadow: 0 0 0 2px #fed7aa;
    }
}

/* ROI Calculator Component Styles (Arabic) */
.roi-calculator-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.06);
    margin: 2rem 0;
    text-align: right;
}

.roi-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.roi-field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.roi-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.roi-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Noto Sans Arabic', 'Cairo', sans-serif;
    white-space: nowrap;
}

.roi-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    direction: ltr;
}

.roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(245, 110, 29, 0.4);
    border: 3px solid #ffffff;
    transition: transform 0.15s ease;
}

.roi-slider::-webkit-slider-thumb:active {
    transform: scale(1.15);
}

.roi-results {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    padding: 2rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.roi-stat-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.25rem;
}

.roi-stat-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.roi-stat-value {
    font-size: 1.85rem;
    font-weight: 900;
    color: #38bdf8;
    font-family: 'Noto Sans Arabic', 'Cairo', sans-serif;
    line-height: 1.2;
    margin-bottom: 0.35rem;
    white-space: nowrap;
}

.roi-stat-sub {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* Mobile Viewports (< 768px) ROI Calculator Arabic */
@media (max-width: 768px) {
    .roi-calculator-card {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 1.5rem 1.15rem;
        border-radius: 16px;
    }

    .roi-results {
        padding: 1.25rem;
    }

    .roi-stat-value {
        font-size: 1.5rem;
    }
}

/* Form inputs font-size on mobile to prevent iOS Safari auto-zoom */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Lightbox Modal Mobile Sizing (< 600px Arabic) */
@media (max-width: 600px) {
    .lightbox-content {
        max-width: 96vw !important;
        margin: 1rem auto !important;
        border-radius: 12px !important;
    }
}

/* ==========================================================================
   ARABIC RTL MOBILE & RESPONSIVE DESIGN SYSTEM (Breakpoints: 991.98px, 767.98px, 575.98px, 400px)
   ========================================================================== */

/* Mobile Menu Toggle Button (RTL) */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 1.35rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    flex-shrink: 0;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    background: var(--bg-subtle);
    color: var(--primary);
    border-color: var(--primary-border);
}

/* Mobile Navigation Backdrop */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Navigation Drawer (RTL - Slides from Left) */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    width: min(340px, 85vw);
    height: 100vh;
    background: #ffffff;
    z-index: 99999;
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: right;
    direction: rtl;
    visibility: hidden;
}

.mobile-nav-drawer.active {
    transform: translateX(0) !important;
    visibility: visible !important;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    background: #f8fafc;
}

.mobile-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.mobile-nav-drawer ul {
    list-style: none;
    padding: 1rem 1.25rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mobile-nav-drawer ul li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Cairo', sans-serif;
}

.mobile-nav-drawer ul li a:hover {
    background: var(--bg-subtle);
    color: var(--primary);
}

.mobile-nav-drawer ul li a.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

.mobile-drawer-footer {
    margin-top: auto;
    padding: 1.25rem;
    border-top: 1px solid var(--border-subtle);
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Tablet & Mobile Breakpoints (< 992px RTL) */
@media (max-width: 991.98px) {
    .site-header {
        position: sticky;
        top: 0;
    }

    .header-content {
        height: 68px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        overflow: visible !important;
    }

    .brand-link {
        flex-shrink: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .brand-link img {
        height: 44px !important;
        max-height: 44px !important;
        width: auto !important;
        max-width: 175px !important;
        object-fit: contain !important;
    }

    .nav-links {
        display: none !important;
    }

    .nav-actions {
        gap: 0.45rem !important;
        display: inline-flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        margin-right: auto !important;
        margin-left: 0 !important;
    }

    .nav-actions .btn-glass {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.82rem !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.35rem !important;
        min-height: 38px !important;
        height: 38px !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }

    .nav-actions .btn-glass span {
        display: inline-block !important;
        font-weight: 700 !important;
    }

    .nav-actions .btn-primary {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 1.35rem !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        border-radius: 8px !important;
        margin: 0 !important;
    }

    /* Grids Collapse to 2 columns or 1 column */
    .hero-grid,
    .subpage-grid,
    .contact-grid,
    .split-section,
    .overview-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .features-grid,
    .grid-4,
    .grid-3,
    .bento-grid,
    .stats-grid,
    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
    }

    .bento-tall,
    .bento-wide {
        grid-column: span 2 !important;
        grid-row: auto !important;
    }

    .hero-visual,
    .subpage-visual {
        order: 2;
    }

    .hero-content,
    .subpage-content {
        order: 1;
        text-align: right;
    }
}

/* Mobile Phone Breakpoints (< 768px RTL) */
@media (max-width: 767.98px) {
    .container {
        padding: 0 1rem !important;
    }

    .header-content {
        height: 70px !important;
    }

    .brand-link img {
        height: 44px !important;
        width: auto !important;
    }

    .announcement-bar {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
        gap: 0.5rem;
    }

    .announcement-bar strong {
        display: inline;
    }

    .features-grid,
    .grid-4,
    .grid-3,
    .grid-2,
    .bento-grid,
    .stats-grid,
    .cards-grid,
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .bento-tall,
    .bento-wide {
        grid-column: span 1 !important;
        grid-row: auto !important;
    }

    .card,
    .feature-card,
    .bento-item,
    .stat-card,
    .cta-card,
    .tour-step,
    .contact-card,
    .info-card {
        padding: 1.25rem 1rem !important;
        border-radius: 16px !important;
        width: 100% !important;
    }

    .hero-actions,
    .cta-actions,
    .btn-group-responsive {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.75rem !important;
    }

    .hero-actions .btn,
    .cta-actions .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .subpage-hero,
    .hero-section {
        padding: 2.5rem 0 2rem 0 !important;
    }

    .section-py {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* Table responsive wrapper touch scrolling */
    .table-responsive,
    .comparison-table-wrapper {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        margin-bottom: 1.5rem !important;
        border-radius: 12px !important;
        border: 1px solid var(--border-subtle) !important;
    }

    .comparison-table {
        min-width: 580px !important;
    }

    /* Floating WhatsApp widget responsive positioning in RTL */
    .whatsapp-widget-btn {
        bottom: 18px !important;
        left: 18px !important;
        right: auto !important;
        width: 52px !important;
        height: 52px !important;
        font-size: 1.6rem !important;
    }
}

/* Small Screens (< 480px RTL) Extra Tight Protection */
@media (max-width: 480px) {
    .header-content {
        height: 64px !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .brand-link img {
        height: 38px !important;
        max-height: 38px !important;
        width: auto !important;
        max-width: 150px !important;
    }

    .nav-actions {
        gap: 0.35rem !important;
    }

    .nav-actions .btn-glass {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.78rem !important;
        min-height: 36px !important;
        height: 36px !important;
        gap: 0.25rem !important;
    }

    .mobile-menu-toggle {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        font-size: 1.25rem !important;
    }

    .announcement-bar {
        display: none !important;
    }

    .hero-title,
    .subpage-title {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }

    .hero-subtitle,
    .subpage-subhead {
        font-size: 0.92rem !important;
        line-height: 1.6 !important;
    }

    .stat-number {
        font-size: 1.65rem !important;
    }
}



