/* ==========================================================================
   PROP Nexus CSS — Design Tokens, Reset & Custom Styling
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark-1: #090D16;
    --bg-dark-2: #0F172A;
    --bg-dark-3: #1E293B;
    
    --card-bg: rgba(30, 41, 59, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(16, 185, 129, 0.35);
    
    /* Brand Gradients & Accents */
    --grad-emerald-cyan: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
    --grad-blue-indigo: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
    --grad-dark: linear-gradient(180deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 100%);
    --grad-glow: radial-gradient(circle at top, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
    
    --color-emerald: #10B981;
    --color-cyan: #06B6D4;
    --color-blue: #3B82F6;
    --color-indigo: #6366F1;
    --color-gold: #F59E0B;
    --color-red: #EF4444;
    
    /* Typography */
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-arabic: 'Cairo', sans-serif;
    
    /* Text Colors */
    --text-white: #F8FAFC;
    --text-gray-light: #E2E8F0;
    --text-gray-muted: #94A3B8;
    --text-gray-dark: #64748B;
    
    /* Layout & Shadows */
    --max-width: 1200px;
    --header-height: 80px;
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --border-radius-sm: 6px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.2);
    
    /* Transitions */
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    
    /* Dynamic Toggle Translate */
    --toggle-translate: 24px;
}

html[dir="rtl"] {
    --toggle-translate: -24px;
}

/* ==========================================================================
   Bilingual Show/Hide Rules
   ========================================================================== */

html[lang="en"] [lang="ar"] {
    display: none !important;
}

html[lang="ar"] [lang="en"] {
    display: none !important;
}

/* Arabic typography overrides */
html[lang="ar"] {
    font-family: var(--font-arabic);
}

html[lang="ar"] h1, 
html[lang="ar"] h2, 
html[lang="ar"] h3, 
html[lang="ar"] h4, 
html[lang="ar"] h5, 
html[lang="ar"] h6,
html[lang="ar"] .btn,
html[lang="ar"] .logo-text,
html[lang="ar"] .nav-link {
    font-family: var(--font-arabic);
    font-weight: 700;
}

/* ==========================================================================
   Base Resets
   ========================================================================== */

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

body {
    background-color: var(--bg-dark-1);
    color: var(--text-gray-light);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: var(--grad-glow);
    background-repeat: no-repeat;
    background-size: 100% 900px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}

/* Common Layout Containers */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-1);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-dark-3);
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--bg-dark-1);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-emerald);
}

/* ==========================================================================
   Typography Helpers & Utilities
   ========================================================================== */

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

.accent-text {
    background: var(--grad-emerald-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-white { color: var(--text-white); }
.text-gray { color: var(--text-gray-muted); }
.text-emerald { color: var(--color-emerald); }
.text-blue { color: var(--color-blue); }
.text-gold { color: var(--color-gold); }

/* ==========================================================================
   Buttons & Links
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-head);
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--grad-emerald-cyan);
    color: var(--bg-dark-1);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45), 0 0 12px rgba(6, 182, 212, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.btn-tertiary {
    color: var(--text-gray-light);
    font-weight: 500;
}

.btn-tertiary:hover {
    color: var(--text-white);
}

.btn-tertiary svg {
    transition: var(--transition-smooth);
    margin-inline-start: 4px;
}

.btn-tertiary:hover svg {
    transform: translateY(3px);
}

html[dir="rtl"] .btn-tertiary svg {
    transform: scaleX(-1);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}

/* ==========================================================================
   Header / Navigation Bar
   ========================================================================== */

.main-header {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(9, 13, 22, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-gray-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher Button */
.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 14px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.lang-switcher-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

html[lang="ar"] .lang-switcher-btn {
    font-family: var(--font-arabic);
}

/* Mobile Hamburger Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    padding: 160px 0 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.badge {
    align-self: flex-start;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

html[lang="ar"] .badge {
    letter-spacing: 0;
    font-size: 12px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

html[lang="ar"] .hero-title {
    letter-spacing: 0;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-gray-muted);
    font-weight: 400;
    max-width: 540px;
}

html[lang="ar"] .hero-subtitle {
    font-size: 16px;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

/* ==========================================================================
   Interactive CSS Dashboard Mockup (Hero)
   ========================================================================== */

.hero-mockup-wrapper {
    position: relative;
    perspective: 1000px;
}

.mockup-window {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), var(--shadow-glow);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 580px;
    height: 400px;
    transition: var(--transition-smooth);
}

.mockup-window:hover {
    transform: translateY(-5px) rotateY(-2px);
    border-color: rgba(16, 185, 129, 0.25);
}

html[dir="rtl"] .mockup-window:hover {
    transform: translateY(-5px) rotateY(2px);
}

.mockup-header {
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.mockup-dots span:nth-child(1) { background: var(--color-red); }
.mockup-dots span:nth-child(2) { background: var(--color-gold); }
.mockup-dots span:nth-child(3) { background: var(--color-emerald); }

.mockup-url {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 4px 20px;
    font-size: 11px;
    color: var(--text-gray-dark);
    flex-grow: 1;
    text-align: center;
    font-family: monospace;
}

.mockup-body {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

.mockup-sidebar {
    width: 140px;
    background: rgba(15, 23, 42, 0.6);
    border-inline-end: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-white);
}

.sidebar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-emerald);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-gray-muted);
    padding: 6px 8px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.sidebar-item.active, .sidebar-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

/* Main Panel Mockup */
.mockup-main {
    flex-grow: 1;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h3 {
    font-size: 13px;
    font-weight: 600;
}

.panel-header .badge {
    font-size: 9px;
    padding: 3px 8px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-emerald);
}

.panel-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.panel-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-title {
    font-size: 8px;
    color: var(--text-gray-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-val {
    font-size: 13px;
    font-weight: 700;
}

.card-trend {
    font-size: 7px;
    color: var(--text-gray-dark);
}

.panel-table-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.table-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-white);
}

.btn-table-action {
    background: var(--grad-emerald-cyan);
    color: var(--bg-dark-1);
    font-weight: 700;
    font-size: 8px;
    padding: 3px 8px;
    border-radius: 4px;
}

.mock-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.table-row {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 1fr 1fr;
    font-size: 9px;
    padding: 6px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    color: var(--text-gray-light);
}

.table-row.table-head {
    color: var(--text-gray-dark);
    font-weight: 600;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.badge-row {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 7px;
    font-weight: 600;
}

.badge-row-paid {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-emerald);
}

.badge-row-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-gold);
}

.badge-row-unpaid {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-red);
}

/* ==========================================================================
   Section Headers (Common)
   ========================================================================== */

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.section-tag {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-emerald);
    background: rgba(16, 185, 129, 0.08);
    padding: 4px 14px;
    border-radius: 100px;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

html[lang="ar"] .section-tag {
    letter-spacing: 0;
    font-size: 12px;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.75px;
}

html[lang="ar"] .section-title {
    letter-spacing: 0;
    line-height: 1.3;
}

.section-desc {
    font-size: 16px;
    color: var(--text-gray-muted);
}

html[lang="ar"] .section-desc {
    font-size: 15px;
}

/* ==========================================================================
   Features Grid Section
   ========================================================================== */

.features-section {
    padding: 100px 0;
    background: var(--bg-dark-2);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-hover-border);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.05);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-emerald-light { background: rgba(16, 185, 129, 0.1); }
.bg-blue-light { background: rgba(59, 130, 246, 0.1); }
.bg-indigo-light { background: rgba(99, 102, 241, 0.1); }
.bg-teal-light { background: rgba(6, 182, 212, 0.1); }

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-gray-muted);
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.pricing-section {
    padding: 100px 0;
    position: relative;
}

/* Billing Toggle Slider */
.billing-toggle-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.billing-toggle {
    width: 52px;
    height: 28px;
    background: var(--bg-dark-3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    position: relative;
    padding: 4px;
    transition: var(--transition-smooth);
}

.toggle-circle {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-white);
    transition: var(--transition-smooth);
    position: absolute;
    top: 4px;
    inset-inline-start: 4px;
}

.billing-toggle-container.active .billing-toggle {
    background: var(--color-emerald);
    border-color: var(--color-emerald);
}

.billing-toggle-container.active .toggle-circle {
    transform: translateX(var(--toggle-translate));
    background: var(--bg-dark-1);
}

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.discount-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-emerald);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    margin-inline-start: 4px;
}

/* Pricing Card Layout */
.pricing-card-wrapper {
    display: flex;
    justify-content: center;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grad-emerald-cyan);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.pricing-card-header h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}

.pricing-card-header p {
    font-size: 14px;
    color: var(--text-gray-muted);
}

.pricing-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.currency {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-emerald);
    order: 1;
}

.price-value {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
    order: 2;
}

.period {
    font-size: 16px;
    color: var(--text-gray-muted);
    order: 3;
}

/* Pricing display ordering for RTL (Arabic) */
html[dir="rtl"] .pricing-display .price-value {
    order: 1;
}

html[dir="rtl"] .pricing-display .currency {
    order: 2;
}

html[dir="rtl"] .pricing-display .period {
    order: 3;
}

/* Dynamic Range Slider CSS */
.slider-wrapper {
    background: rgba(0, 0, 0, 0.2);
    padding: 24px;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}

.unit-count {
    color: var(--color-emerald);
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 10px;
    border-radius: 4px;
}

.units-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-dark-3);
    border-radius: 100px;
    outline: none;
    transition: var(--transition-fast);
}

/* Slider Thumb Styling */
.units-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-emerald);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    transition: var(--transition-fast);
}

.units-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.8);
}

.units-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-emerald);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    transition: var(--transition-fast);
}

.units-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.8);
}

.slider-bounds {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-gray-dark);
    margin-top: 10px;
}

/* Feature Checklists */
.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-gray-light);
}

.check-icon {
    color: var(--color-emerald);
    font-weight: 700;
    margin-inline-end: 4px;
}

.pricing-note {
    font-size: 12px;
    color: var(--text-gray-dark);
    text-align: center;
}

/* ==========================================================================
   FAQs Accordion Section
   ========================================================================== */

.faqs-section {
    padding: 100px 0;
    background: var(--bg-dark-2);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.faq-accordion {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-trigger {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: start;
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-white);
}

.faq-icon {
    font-size: 22px;
    color: var(--text-gray-muted);
    transition: var(--transition-smooth);
    margin-inline-start: 16px;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content p {
    padding: 0 24px 24px 24px;
    color: var(--text-gray-muted);
    font-size: 15px;
}

/* FAQ Active State */
.faq-item.active {
    background: rgba(30, 41, 59, 0.7);
    border-color: var(--card-hover-border);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--color-emerald);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-section {
    padding: 120px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info h2 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
}

html[lang="ar"] .contact-info h2 {
    letter-spacing: 0;
    line-height: 1.3;
}

.contact-info p {
    font-size: 16px;
    color: var(--text-gray-muted);
}

.contact-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.benefit-item {
    display: flex;
    gap: 16px;
}

.benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.benefit-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.benefit-item p {
    font-size: 14px;
}

/* Contact / Onboarding Form Styling */
.contact-form-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    min-height: 480px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition-smooth);
}

.contact-form h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray-muted);
}

.form-group input, .form-group textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-gray-dark);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--color-emerald);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

/* Validation Styling */
.form-group.error input, .form-group.error textarea {
    border-color: var(--color-red);
}

.error-msg {
    font-size: 11px;
    color: var(--color-red);
    display: none;
    margin-top: 2px;
}

.form-group.error .error-msg {
    display: block;
}

/* Success State Screen */
.form-success-state {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark-2);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    transform: translateY(100%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.form-success-state.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--color-emerald);
    color: var(--color-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}

.form-success-state h3 {
    font-size: 24px;
    font-weight: 800;
}

.form-success-state p {
    font-size: 15px;
    color: var(--text-gray-muted);
    max-width: 320px;
    line-height: 1.5;
}

/* ==========================================================================
   Bilingual User Guide Custom Styles (guide.html)
   ========================================================================== */

.guide-page {
    background-image: var(--grad-glow);
    background-repeat: no-repeat;
    background-size: 100% 600px;
}

.guide-container-wrapper {
    padding-top: 140px;
    padding-bottom: 120px;
}

.guide-layout-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
}

/* Sticky Documentation Sidebar */
.guide-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-sticky-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-gray-muted);
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    line-height: 1.35;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    border-inline-start: 3px solid var(--color-emerald);
}

/* Documentation Content Panel */
.guide-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.guide-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-header h1 {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -1px;
}

.guide-intro {
    font-size: 17px;
    color: var(--text-gray-muted);
}

.guide-section {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: var(--transition-smooth);
}

.guide-section:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.section-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-emerald-cyan);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.guide-section h2 {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-white);
}

.mod-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--grad-emerald-cyan);
    color: var(--bg-dark-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
}

.section-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-body > p {
    font-size: 15.5px;
    color: var(--text-gray-light);
    border-inline-start: 3px solid var(--color-blue);
    padding-inline-start: 16px;
}

.guide-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-step h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-emerald);
}

.guide-step ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guide-step li {
    font-size: 14.5px;
    color: var(--text-gray-muted);
    position: relative;
    padding-inline-start: 20px;
}

.guide-step li::before {
    content: '•';
    position: absolute;
    inset-inline-start: 4px;
    color: var(--color-cyan);
    font-weight: 800;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.main-footer {
    background: var(--bg-dark-1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 30px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 360px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-gray-muted);
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links h4 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-gray-muted);
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    font-size: 13px;
    color: var(--text-gray-dark);
}

/* ==========================================================================
   Responsive / Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-mockup-wrapper {
        display: flex;
        justify-content: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-info {
        text-align: center;
        align-items: center;
    }

    .guide-layout-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .guide-sidebar {
        position: static;
        width: 100%;
    }

    .sidebar-sticky-box {
        padding: 20px;
    }

    .sidebar-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    /* Navigation Bar Mobile Layout */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-dark-2);
        flex-direction: column;
        padding: 40px 0;
        gap: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .header-actions {
        display: none;
    }
    
    /* Mobile Toggle Open State Animation */
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .pricing-card {
        padding: 30px;
    }

    .sidebar-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 38px;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .pricing-card {
        padding: 20px 15px;
    }
    
    .price-value {
        font-size: 42px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .guide-header h1 {
        font-size: 32px;
    }

    .guide-section {
        padding: 24px;
    }
}

/* Interactive Flowchart Styling */
.flowchart-container {
    width: 100%;
    overflow-x: auto;
    margin: 30px 0;
    padding: 10px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    scrollbar-width: thin;
    scrollbar-color: rgba(223, 176, 91, 0.3) transparent;
}

.flowchart-svg {
    width: 100%;
    min-width: 800px;
    height: auto;
    display: block;
}

.diagram-node {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.diagram-node rect {
    transition: stroke-width 0.3s, stroke 0.3s, fill 0.3s;
}

.diagram-node:hover {
    transform: scale(1.03) translate(-1.5%, -1.5%);
    filter: drop-shadow(0 4px 15px rgba(223, 176, 91, 0.5));
}

.diagram-node:hover rect {
    stroke: #dfb05b;
    stroke-width: 2px;
}

.diagram-node.active rect {
    stroke: #dfb05b;
    stroke-width: 2.5px;
    fill-opacity: 0.95;
}

.flow-line {
    stroke-dasharray: 6;
    animation: flow-dash-anim 20s linear infinite;
}

@keyframes flow-dash-anim {
    to {
        stroke-dashoffset: -1000;
    }
}

.flowchart-details-panel {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(223, 176, 91, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.details-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.details-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 20px;
    background: rgba(223, 176, 91, 0.1);
    color: #dfb05b;
    border: 1px solid rgba(223, 176, 91, 0.3);
    margin-bottom: 10px;
}

.details-header h3 {
    margin: 0;
    font-size: 20px;
    color: #ffffff;
    font-family: 'Outfit', 'Cairo', sans-serif;
}

.details-body {
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8;
}

.details-body ul {
    margin: 12px 0 0 20px;
    padding: 0;
}

.details-body li {
    margin-bottom: 6px;
}

/* Bilingual Diagram Switches */
html[lang="en"] .diagram-lang-ar {
    display: none !important;
}

html[lang="ar"] .diagram-lang-en {
    display: none !important;
}
