/* ===================================================================
   Genius Fleet OS — Enterprise Marketing ERP Stylesheet v10.0
   Designed for Genius Business Club (El-Genius & Abo El-Dahab)
   Typography: Alexandria (Headings & UI) | Cairo (Body & Content)
   Features: Enterprise ERP Theme, 9 Department Tabs, Boxed Structure,
             Live Metrics Strip, Notifications, Instant API Skills.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;500;600;700;800;900&family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
    /* Enterprise Light Mode — Official Default */
    --bg-app: #f0f2f7;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f8f9fc;
    --bg-tertiary: #f4f6fa;
    --bg-glass: rgba(255, 255, 255, 0.94);
    
    --vx-primary: #7367f0;
    --vx-primary-hover: #685dd8;
    --vx-primary-light: #e9e7fd;
    --vx-heading: #2b2838;
    --vx-text: #5e5873;
    --vx-text-muted: #82868b;
    --vx-border: #e4e6ea;
    
    --text-primary: #2b2838;
    --text-secondary: #5e5873;
    --text-muted: #82868b;
    
    --gold-primary: #d97706;
    --gold-hover: #b45309;
    --gold-grad: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gold-glow: rgba(217, 119, 6, 0.25);
    
    --cyan-primary: #0284c7;
    --emerald-primary: #28c76f;
    --emerald-glow: rgba(40, 199, 111, 0.25);
    --rose-primary: #ea5455;
    
    --border-color: #e4e6ea;
    --border-gold: rgba(217, 119, 6, 0.4);
    
    --shadow-sm: 0 2px 6px rgba(47, 43, 61, 0.05);
    --shadow-card: 0 4px 18px rgba(47, 43, 61, 0.07);
    --shadow-elevated: 0 10px 30px rgba(47, 43, 61, 0.12);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --font-heading: 'Alexandria', sans-serif;
    --font-body: 'Cairo', sans-serif;
    
    --transition: all 0.2s ease;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-app: #0a0d14;
    --bg-surface: #111726;
    --bg-card: #111726;
    --bg-input: #192238;
    --bg-tertiary: #161e31;
    --bg-glass: rgba(15, 23, 42, 0.90);
    
    --vx-heading: #f8fafc;
    --vx-text: #cbd5e1;
    --vx-text-muted: #94a3b8;
    --vx-border: rgba(148, 163, 184, 0.18);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --gold-primary: #f59e0b;
    --gold-grad: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --border-color: rgba(148, 163, 184, 0.18);
    --border-gold: rgba(245, 158, 11, 0.35);
}

/* Reset & Typography */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    direction: rtl;
    text-align: right;
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-app);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--vx-heading);
}

a {
    text-decoration: none;
    color: inherit;
}

.text-emerald { color: var(--emerald-primary) !important; }
.text-gold { color: var(--gold-primary) !important; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-app); }
::-webkit-scrollbar-thumb { background: var(--vx-border); border-radius: var(--radius-full); }

/* Enterprise App Wrapper (Boxed) */
.enterprise-app-wrapper {
    max-width: 1420px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem 60px;
}

/* -------------------------------------------------------------------
   1. EXECUTIVE TOP HEADER (MARKETING ERP SYSTEM)
   ------------------------------------------------------------------- */
.executive-top-header {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
}

@media (max-width: 1100px) {
    .executive-top-header {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
    }
}

.header-brand-cluster {
    display: flex;
    align-items: center;
}

.header-brand-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.header-logo-img {
    height: 40px;
    max-width: 120px;
    object-fit: contain;
}

.brand-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-title-main {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--vx-heading);
}

.os-version-chip {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--gold-primary);
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid var(--border-gold);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.brand-subtitle-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
}

/* Workspace Selector */
.header-workspace-box {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--bg-tertiary);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.ws-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

.ws-dropdown {
    background: transparent;
    border: none;
    color: var(--vx-heading);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    outline: none;
    font-family: var(--font-body);
}

.btn-ws-add {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-ws-add:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* ERP Metrics Strip */
.header-erp-metrics {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

@media (max-width: 1280px) {
    .header-erp-metrics {
        display: none;
    }
}

.erp-metric-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.75rem;
}

.metric-icon {
    font-size: 1.15rem;
}

.metric-data {
    display: flex;
    flex-direction: column;
}

.metric-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1;
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 900;
    color: var(--vx-heading);
    line-height: 1.2;
}

/* Quick Action Toolbar */
.header-quick-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-erp-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-erp-cycle {
    background: var(--gold-grad);
    color: #ffffff;
    box-shadow: 0 3px 12px var(--gold-glow);
}

.btn-erp-cycle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.4);
}

.btn-erp-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
}

.btn-erp-icon:hover {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

.btn-erp-key {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.btn-erp-key.connected {
    background: rgba(40, 199, 111, 0.12);
    border-color: var(--emerald-primary);
    color: var(--emerald-primary);
}

.btn-erp-music {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.v-bars-mini {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.v-b {
    width: 2.5px;
    background: var(--gold-primary);
    border-radius: 2px;
    height: 3px;
}

/* Notifications Dropdown */
.notif-wrapper-box {
    position: relative;
}

.notif-red-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rose-primary);
    border: 1.5px solid var(--bg-surface);
}

.erp-notif-dropdown {
    position: absolute;
    top: 46px;
    left: 0;
    width: 320px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated);
    z-index: 1200;
    display: none;
    overflow: hidden;
}

.erp-notif-dropdown.active {
    display: block;
    animation: fadeInDrop 0.2s ease;
}

@keyframes fadeInDrop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.notif-dropdown-top {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    font-size: 0.85rem;
}

.notif-count-tag {
    font-size: 0.7rem;
    color: var(--gold-primary);
    font-weight: 700;
}

.notif-dropdown-list {
    max-height: 260px;
    overflow-y: auto;
}

.notif-row-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 0.65rem;
    cursor: pointer;
    transition: var(--transition);
}

.notif-row-item:hover {
    background: var(--bg-tertiary);
}

.notif-row-item:last-child {
    border-bottom: none;
}

.notif-row-icon {
    font-size: 1.25rem;
}

.notif-row-title {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--vx-heading);
    margin-bottom: 0.15rem;
}

.notif-row-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* -------------------------------------------------------------------
   2. PRIMARY HORIZONTAL SYSTEM VIEWS NAVIGATION
   ------------------------------------------------------------------- */
.enterprise-nav-tabs {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.sys-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.sys-tab-btn:hover {
    color: var(--gold-primary);
    background: var(--bg-tertiary);
}

.sys-tab-btn.active {
    background: var(--gold-grad);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--gold-glow);
}

/* -------------------------------------------------------------------
   3. FLEET HUB (9 DISTINCT DEPARTMENT TABS - NO "ALL")
   ------------------------------------------------------------------- */
.sys-view-panel {
    display: none;
    animation: fadeInPanel 0.22s ease;
}

.sys-view-panel.active {
    display: block;
}

@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.fleet-control-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
}

.fleet-control-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.fleet-h2-title {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.fleet-p-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    max-width: 720px;
}

.fleet-stats-mini-strip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mini-stat-badge {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 800;
}

/* 9 Distinct Sub-Tabs Bar (NO "ALL") */
.dept-sub-tabs-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.dept-sub-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.75rem 0.5rem;
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.dept-sub-tab-btn:hover {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

.dept-sub-tab-btn.active {
    background: var(--bg-surface);
    border-color: var(--gold-primary);
    box-shadow: 0 4px 14px var(--gold-glow);
}

.dept-tab-icon {
    font-size: 1.5rem;
}

.dept-tab-name {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--vx-heading);
    line-height: 1.2;
}

.dept-sub-tab-btn.active .dept-tab-name {
    color: var(--gold-primary);
}

.dept-tab-count {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 700;
}

/* Active Department Showcase */
.active-department-showcase {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2rem;
}

.dept-showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.dept-title-cluster {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.dept-hero-icon {
    font-size: 2.2rem;
}

.dept-hero-name {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
}

.dept-hero-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.dept-count-badge {
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-full);
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
}

/* Department Agents Grid */
.dept-agents-enterprise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.25rem;
}

.agent-enterprise-card {
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.agent-enterprise-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    background: var(--bg-surface);
}

.agent-card-top-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.agent-robot-avatar {
    font-size: 2rem;
    flex-shrink: 0;
}

.agent-name-h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--vx-heading);
    margin-bottom: 0.15rem;
}

.agent-role-subtitle {
    font-size: 0.72rem;
    color: var(--gold-primary);
    font-weight: 700;
}

.agent-desc-para {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.85rem;
}

.agent-salary-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.65rem;
    background: var(--bg-input);
    border: 1px dashed var(--border-gold);
    border-radius: var(--radius-sm);
    margin-bottom: 0.85rem;
}

.agent-strike-cost {
    font-size: 0.68rem;
    color: var(--rose-primary);
    text-decoration: line-through;
    display: block;
}

.agent-ai-price {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--gold-primary);
}

.agent-actions-cluster {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.btn-agent-chat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--vx-heading);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.btn-agent-chat:hover {
    background: var(--gold-grad);
    border-color: transparent;
    color: #ffffff;
}

.btn-agent-hire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(40, 199, 111, 0.12);
    border: 1px solid var(--emerald-primary);
    color: var(--emerald-primary);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.btn-agent-hire:hover {
    background: var(--emerald-primary);
    color: #ffffff;
}

/* -------------------------------------------------------------------
   4. CHAT VIEW (WAR ROOM TERMINAL)
   ------------------------------------------------------------------- */
.warroom-chat-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.25rem;
    height: 72vh;
}

@media (max-width: 900px) {
    .warroom-chat-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.chat-control-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    overflow-y: auto;
}

.chat-sidebar-section-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--vx-heading);
}

.chat-mode-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.chat-mode-pill-btn {
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: right;
}

.chat-mode-pill-btn.active {
    background: var(--gold-grad);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 2px 8px var(--gold-glow);
}

.chat-agent-profile-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.chat-profile-avatar {
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
}

.chat-profile-name {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
}

.chat-profile-role {
    font-size: 0.72rem;
    color: var(--gold-primary);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.chat-profile-salary {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.chat-agent-picker-scroll {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 180px;
    overflow-y: auto;
}

.chat-agent-pick-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.78rem;
}

.chat-agent-pick-item.active {
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    font-weight: 700;
}

/* Chat Terminal */
.chat-main-terminal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-header-bar {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald-primary);
    box-shadow: 0 0 8px var(--emerald-primary);
}

.btn-clear-chat {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-clear-chat:hover {
    color: var(--rose-primary);
    border-color: var(--rose-primary);
}

.terminal-messages-stream {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-bubble {
    display: flex;
    gap: 0.75rem;
    max-width: 82%;
}

.chat-bubble.user {
    align-self: flex-start;
    flex-direction: row-reverse;
}

.chat-bubble.agent {
    align-self: flex-end;
}

.bubble-avatar-box {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.bubble-body {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.15rem;
    line-height: 1.65;
}

.chat-bubble.user .bubble-body {
    background: var(--gold-grad);
    color: #ffffff;
    border: none;
}

.bubble-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.bubble-text-content {
    font-size: 0.9rem;
    white-space: pre-wrap;
}

.terminal-input-bar {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
}

.terminal-text-input {
    flex: 1;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-primary);
    outline: none;
}

.terminal-text-input:focus {
    border-color: var(--gold-primary);
}

.btn-terminal-send {
    padding: 0 1.5rem;
    border-radius: var(--radius-md);
    background: var(--gold-grad);
    color: #ffffff;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-terminal-send:hover {
    box-shadow: 0 4px 14px var(--gold-glow);
    transform: translateY(-2px);
}

/* -------------------------------------------------------------------
   5. OTHER SYSTEM VIEWS (CYCLES, MACROS, RADAR)
   ------------------------------------------------------------------- */
.cycle-console-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.console-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.console-title {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 800;
}

.console-status-chip {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(40, 199, 111, 0.15);
    color: var(--emerald-primary);
    font-weight: 800;
    font-size: 0.78rem;
}

.console-code-stream {
    background: #0f1629;
    color: #38bdf8;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    font-family: monospace;
    font-size: 0.85rem;
    height: 350px;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.6;
}

.remote-macro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.macro-action-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.macro-action-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.macro-card-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.macro-card-icon {
    font-size: 2rem;
}

.macro-card-title {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.macro-card-sub {
    font-size: 0.72rem;
    color: var(--gold-primary);
    font-weight: 700;
}

.macro-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.btn-macro-run {
    width: 100%;
    padding: 0.55rem;
    border-radius: var(--radius-sm);
    background: var(--gold-grad);
    color: #ffffff;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.products-radar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.campaign-timeline-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.canvas-studio-showcase {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-card);
}

/* Modals */
.erp-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(7, 11, 20, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.erp-modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.erp-modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow-elevated);
}

.modal-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.btn-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.modal-input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    outline: none;
}

.modal-input-field:focus {
    border-color: var(--gold-primary);
}


/* ===================================================================
   WAR ROOM EXECUTIVE HERO COCKPIT (هيرو غرفة العمليات من الداخل)
   =================================================================== */
.warroom-inside-hero {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

@media (max-width: 1000px) {
    .warroom-inside-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
        gap: 1.25rem;
    }
}

.warroom-hero-content {
    flex: 1;
}

.warroom-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(40, 199, 111, 0.12);
    border: 1px solid var(--emerald-primary);
    color: var(--emerald-primary);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.warroom-hero-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--vx-heading);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.warroom-hero-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.warroom-quick-triggers {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.btn-hero-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-color);
    color: var(--vx-heading);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.btn-hero-trigger:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-2px);
}

.btn-gold-trigger {
    background: var(--gold-grad);
    border-color: transparent;
    color: #ffffff !important;
    box-shadow: 0 4px 14px var(--gold-glow);
}

.btn-gold-trigger:hover {
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

.warroom-kpi-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    min-width: 280px;
}

@media (max-width: 600px) {
    .warroom-kpi-strip {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        min-width: unset;
    }
}

.warroom-kpi-cell {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.w-kpi-val {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--vx-heading);
    line-height: 1.2;
}

.w-kpi-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 0.2rem;
}

/* ===================================================================
   MOBILE STICKY BOTTOM DOCK (NATIVE APP EXPERIENCE)
   =================================================================== */
.mobile-bottom-dock {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg-glass, rgba(255, 255, 255, 0.96));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color, #e4e6ea);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    padding: 0 0.5rem;
    align-items: center;
    justify-content: space-around;
}

@media (max-width: 900px) {
    .mobile-bottom-dock {
        display: flex;
    }
    body {
        padding-bottom: 75px !important;
    }
    .enterprise-app-wrapper {
        padding: 0.5rem 0.75rem 75px !important;
    }
    .executive-top-header {
        padding: 0.65rem 0.85rem !important;
    }
    .warroom-chat-grid {
        grid-template-columns: 1fr !important;
        height: auto !important;
    }
    .dept-agents-enterprise-grid {
        grid-template-columns: 1fr !important;
    }
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    background: transparent;
    border: none;
    color: var(--text-muted, #82868b);
    font-family: var(--font-heading, 'Alexandria', sans-serif);
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm, 8px);
    transition: all 0.2s ease;
    flex: 1;
    max-width: 70px;
}

.dock-item:hover, .dock-item.active {
    color: var(--gold-primary, #d97706);
}

.dock-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.dock-label {
    font-size: 0.65rem;
    white-space: nowrap;
}

/* ===================================================================
   CYBER SCANNER / RADAR PULSE CENTRAL FAB (Elevated Central Button)
   =================================================================== */
.dock-center-scanner {
    position: relative;
    top: -18px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
    border: 3px solid var(--bg-surface, #ffffff);
    padding: 0;
    flex: none;
    z-index: 10000;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dock-center-scanner:hover, .dock-center-scanner:active {
    transform: scale(1.08);
}

/* Radar Scan Wave Ring */
.scanner-ring-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(217, 119, 6, 0.6);
    animation: scannerRadarPulse 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    pointer-events: none;
}

.scanner-ring-pulse::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px dashed rgba(245, 158, 11, 0.8);
    animation: scannerRadarSpin 8s linear infinite;
}

/* Radar Sweep Line Animation */
.scanner-sweep-line {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0.5) 0deg, rgba(255, 255, 255, 0) 60deg);
    animation: scannerRadarSpin 2s linear infinite;
    pointer-events: none;
}

.scanner-center-core {
    font-size: 1.35rem;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.scanner-text {
    position: absolute;
    bottom: -18px;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--gold-primary, #d97706);
    background: var(--bg-surface, #ffffff);
    padding: 1px 6px;
    border-radius: 6px;
    border: 1px solid var(--border-gold, rgba(217, 119, 6, 0.4));
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    white-space: nowrap;
}

@keyframes scannerRadarPulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.4; }
    100% { transform: scale(1.6); opacity: 0; }
}

@keyframes scannerRadarSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* ===================================================================
   350px WAR ROOM ENTERPRISE COCKPIT HERO (هيرو غرفة العمليات المتقدم)
   =================================================================== */
.warroom-350-cockpit {
    min-height: 330px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2.25rem 2.5rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 1100px) {
    .warroom-350-cockpit {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 1.5rem;
        gap: 1.5rem;
    }
}

.cockpit-left-command {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cockpit-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(40, 199, 111, 0.12);
    border: 1px solid var(--emerald-primary);
    color: var(--emerald-primary);
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
    width: fit-content;
}

.cockpit-title-h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 900;
    color: var(--vx-heading);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.cockpit-subtitle-p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 620px;
}

.cockpit-triggers-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.btn-cockpit-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.15rem;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-color);
    color: var(--vx-heading);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cockpit-action:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-2px);
}

.btn-cockpit-gold {
    background: var(--gold-grad);
    border-color: transparent;
    color: #ffffff !important;
    box-shadow: 0 4px 14px var(--gold-glow);
}

.btn-cockpit-gold:hover {
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

/* Right Command Tile */
.cockpit-right-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.active-partner-glass-card {
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.partner-logo-icon {
    font-size: 2rem;
}

.partner-info-text strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--vx-heading);
    display: block;
}

.partner-info-text span {
    font-size: 0.75rem;
    color: var(--gold-primary);
    font-weight: 700;
}

.cockpit-kpi-quad-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.cockpit-kpi-tile {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.kpi-tile-num {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--vx-heading);
    line-height: 1.2;
    display: block;
}

.kpi-tile-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 0.2rem;
}


/* ===================================================================
   DEDICATED AGENT WORKSPACE STATION (صفحة ومحطة الموظف المخصصة)
   =================================================================== */
.agent-station-wrapper {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-gold);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease-out;
}

.station-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1.5px solid var(--border-card);
    margin-bottom: 1.75rem;
}

.station-agent-profile {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.station-robot-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top, rgba(212, 160, 23, 0.25), rgba(15, 23, 42, 0.95));
    border: 2px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    box-shadow: 0 0 24px rgba(212, 160, 23, 0.25);
    flex-shrink: 0;
}

.station-name-h2 {
    font-size: 1.45rem;
    font-family: var(--font-heading);
    color: var(--vx-heading);
    margin-bottom: 0.25rem;
}

.station-role-title {
    font-size: 0.88rem;
    color: var(--gold-primary);
    font-weight: 700;
}

.station-metrics-strip {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.station-badge-pill {
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
}

.station-grid-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.75rem;
}

@media (max-width: 980px) {
    .station-grid-layout {
        grid-template-columns: 1fr;
    }
}

.station-card-box {
    background: var(--bg-card);
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    margin-bottom: 1.5rem;
}

.station-section-title {
    font-size: 1.05rem;
    font-family: var(--font-heading);
    color: var(--vx-heading);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.station-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.btn-preset-task {
    background: rgba(212, 160, 23, 0.06);
    border: 1px solid rgba(212, 160, 23, 0.25);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.9rem;
    color: var(--vx-heading);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: right;
    cursor: pointer;
    transition: all var(--trans-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-preset-task:hover {
    background: rgba(212, 160, 23, 0.18);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 160, 23, 0.2);
}

.station-textarea {
    width: 100%;
    min-height: 100px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--vx-heading);
    resize: vertical;
    outline: none;
    transition: border var(--trans-fast);
    margin-bottom: 1rem;
}

.station-textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

.station-deliverable-canvas {
    min-height: 240px;
    max-height: 520px;
    overflow-y: auto;
    background: var(--bg-input);
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--vx-heading);
    white-space: pre-wrap;
    word-break: break-word;
}

.deliverable-actions-bar {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.85rem;
    flex-wrap: wrap;
}

.btn-deliverable-tool {
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--trans-fast);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-deliverable-tool:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}



/* ===================================================================
   LUXURY ENTERPRISE FOOTER (الفوتر المتطور لغرفة العمليات)
   =================================================================== */
.enterprise-app-footer {
    background: #090e1a;
    border-top: 1.5px solid var(--border-gold);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 3.5rem 2rem 2rem 2rem;
    margin-top: 4rem;
    color: #e2e8f0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
}

.footer-4col-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 1024px) {
    .footer-4col-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .footer-4col-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .enterprise-app-footer {
        padding: 2.5rem 1.25rem 6.5rem 1.25rem;
    }
}

.footer-col-title {
    font-size: 1.05rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.84rem;
    transition: all var(--trans-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-links-list a:hover {
    color: var(--gold-primary);
    transform: translateX(-4px);
}

.footer-bottom-bar {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    flex-wrap: wrap;
    gap: 0.75rem;
}



/* ===================================================================
   FUTURISTIC ENTERPRISE CHAT & MEETINGS BLOCK (بلوك المحادثات والاجتماعات)
   =================================================================== */
.warroom-chat-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    min-height: 680px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-gold);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

@media (max-width: 980px) {
    .warroom-chat-grid {
        grid-template-columns: 1fr;
    }
}

.chat-control-sidebar {
    background: var(--bg-card);
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-sidebar-section-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-mode-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.chat-mode-pill-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    border: 1.5px solid var(--border-card);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--trans-fast);
    text-align: right;
}

.chat-mode-pill-btn:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 160, 23, 0.08);
}

.chat-mode-pill-btn.active {
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.2), rgba(212, 160, 23, 0.08));
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 4px 14px rgba(212, 160, 23, 0.15);
}

.chat-agent-profile-box {
    background: var(--bg-input);
    border: 1.5px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chat-profile-avatar {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.5rem auto;
    border-radius: var(--radius-md);
    background: radial-gradient(circle, rgba(212, 160, 23, 0.3), rgba(15, 23, 42, 0.9));
    border: 1.5px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.chat-profile-name {
    font-size: 1rem;
    font-family: var(--font-heading);
    color: var(--vx-heading);
    margin-bottom: 0.2rem;
}

.chat-profile-role {
    font-size: 0.75rem;
    color: var(--gold-primary);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.chat-profile-salary {
    font-size: 0.72rem;
    color: var(--emerald-primary);
    font-weight: 800;
}

.chat-agent-picker-scroll {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.agent-picker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--trans-fast);
}

.agent-picker-item:hover, .agent-picker-item.active {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: rgba(212, 160, 23, 0.1);
}

/* Chat Main Terminal */
.chat-main-terminal {
    background: var(--bg-card);
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-header-bar {
    padding: 0.85rem 1.25rem;
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1.5px solid var(--border-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.terminal-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--vx-heading);
}

.chat-quick-chips-row {
    padding: 0.5rem 1.25rem;
    background: rgba(2, 132, 199, 0.05);
    border-bottom: 1px solid var(--border-card);
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    white-space: nowrap;
}

.btn-chat-chip {
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--trans-fast);
}

.btn-chat-chip:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: rgba(212, 160, 23, 0.1);
}

.terminal-messages-stream {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 480px;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4), transparent);
}

.chat-bubble {
    display: flex;
    gap: 0.85rem;
    max-width: 88%;
    animation: fadeIn 0.25s ease-out;
}

.chat-bubble.user {
    align-self: flex-start;
    flex-direction: row;
}

.chat-bubble.agent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.bubble-avatar-box {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1.5px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.bubble-body {
    background: var(--bg-input);
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1.1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.chat-bubble.agent .bubble-body {
    border-color: rgba(212, 160, 23, 0.35);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
}

.bubble-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.25rem;
}

.bubble-sender-name {
    font-weight: 800;
    color: var(--gold-primary);
}

.bubble-text-content {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--vx-heading);
    white-space: pre-wrap;
    word-break: break-word;
}

.bubble-copy-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.7rem;
    padding: 0.15rem 0.35rem;
    border-radius: var(--radius-sm);
    transition: color var(--trans-fast);
}

.bubble-copy-btn:hover {
    color: var(--gold-primary);
}

.terminal-input-bar {
    padding: 0.85rem 1.25rem;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1.5px solid var(--border-card);
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.terminal-text-input {
    flex: 1;
    background: var(--bg-input);
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-full);
    padding: 0.65rem 1.15rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--vx-heading);
    outline: none;
    transition: border var(--trans-fast);
}

.terminal-text-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

.btn-terminal-send {
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--gold-primary), #d97706);
    border: none;
    color: #000;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--trans-fast);
    box-shadow: 0 4px 14px rgba(212, 160, 23, 0.25);
}

.btn-terminal-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.35);
}



/* ===================================================================
   2-BAR DUAL TIER HEADER ARCHITECTURE (الهيدر المتطور بطابقين)
   =================================================================== */
.landing-header-dual {
    position: sticky;
    top: 12px;
    z-index: 1000;
    max-width: 1340px;
    margin: 0 auto 1.5rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Tier 1: Utility & Global Search Bar */
.header-tier-top {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-full);
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.header-search-capsule {
    flex: 1;
    max-width: 440px;
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-full);
    padding: 0.35rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--trans-fast);
}

.header-search-capsule:focus-within {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

.header-search-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--vx-heading);
}

/* Tier 2: Navigation & Mega Menu Bar */
.header-tier-bottom {
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-full);
    padding: 0.4rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.header-nav-menu-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 900px) {
    .landing-header-dual {
        top: 6px;
        padding: 0 0.5rem;
    }
    .header-search-capsule {
        display: none;
    }
    .header-nav-menu-row {
        gap: 0.85rem;
        font-size: 0.78rem;
    }
}

/* ===================================================================
   ADVANCED HERO SECTION WITH ONBOARDING HIRING FORM
   =================================================================== */
.hero-split-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 980px) {
    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.hero-onboarding-form-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1.5px solid var(--border-gold);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 160, 23, 0.15);
    animation: fadeIn 0.4s ease-out;
}

.hero-form-title {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-form-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.hero-form-group {
    margin-bottom: 0.95rem;
}

.hero-form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.hero-form-input, .hero-form-select {
    width: 100%;
    background: var(--bg-input);
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--vx-heading);
    outline: none;
    transition: all var(--trans-fast);
}

.hero-form-input:focus, .hero-form-select:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

.hero-form-calc-banner {
    background: rgba(16, 185, 129, 0.08);
    border: 1.5px solid var(--emerald-primary);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-hero-launch-submit {
    width: 100%;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--gold-primary), #d97706);
    border: none;
    color: #000;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--trans-fast);
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.35);
}

.btn-hero-launch-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(212, 160, 23, 0.5);
}



/* ===================================================================
   SLIDER REVOLUTION 2025/2026 HERO-HEADER MASTER SYSTEM
   =================================================================== */

.revolution-hero-container {
    position: relative;
    width: 100%;
    max-width: 1360px;
    margin: 0.75rem auto 2.5rem auto;
    border-radius: var(--radius-xl);
    border: 1.5px solid var(--border-gold);
    background: linear-gradient(165deg, #0f172a 0%, #090e1a 50%, #030712 100%);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 50px rgba(212, 160, 23, 0.15);
    overflow: hidden;
    min-height: 640px;
}

/* Revolution Background Canvas */
.rev-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Ambient Radial Glows */
.rev-ambient-glow-1 {
    position: absolute;
    top: -120px;
    right: -100px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.16), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.rev-ambient-glow-2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Integrated Revolution Top Navigation HUD */
.revolution-top-hud {
    position: relative;
    z-index: 20;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
    .revolution-top-hud {
        padding: 0.65rem 0.95rem;
        flex-wrap: wrap;
    }
}

.rev-brand-logo {
    height: 38px;
    max-width: 130px;
    object-fit: contain;
    transition: transform var(--trans-fast);
}

.rev-brand-logo:hover {
    transform: scale(1.04);
}

.rev-search-hud {
    flex: 1;
    max-width: 380px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    padding: 0.35rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--trans-fast);
}

.rev-search-hud:focus-within {
    border-color: var(--gold-primary);
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
}

.rev-search-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: #fff;
}

.rev-nav-capsule {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

@media (max-width: 980px) {
    .rev-nav-capsule, .rev-search-hud {
        display: none;
    }
}

.rev-nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    transition: color var(--trans-fast);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.rev-nav-link:hover {
    color: var(--gold-primary);
}

/* Revolution Slides Stage */
.revolution-slides-viewport {
    position: relative;
    z-index: 10;
    width: 100%;
    overflow: hidden;
    padding: 1.85rem 2rem 2.5rem 2rem;
}

@media (max-width: 768px) {
    .revolution-slides-viewport {
        padding: 1.25rem 1rem 2rem 1rem;
    }
}

.rev-slide {
    display: none;
    opacity: 0;
    transform: translateY(15px) scale(0.98);
    transition: all 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.rev-slide.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: revSlideIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Slide 2 & 3 Custom Layouts */
.rev-banner-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.25rem;
    align-items: center;
}

@media (max-width: 980px) {
    .rev-banner-split {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

.rev-preview-mockup-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    border: 1.5px solid var(--border-gold);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 160, 23, 0.15);
}

/* Revolution Bottom Navigation Bar (Dots + Arrows + Progress) */
.rev-controls-hud {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 600px) {
    .rev-controls-hud {
        padding: 0.6rem 1rem;
    }
}

.rev-bullets-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.rev-bullet {
    width: 11px;
    height: 11px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    transition: all var(--trans-fast);
    padding: 0;
}

.rev-bullet.active {
    width: 32px;
    background: var(--gold-grad);
    box-shadow: 0 0 12px rgba(212, 160, 23, 0.6);
}

.rev-nav-arrows {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rev-arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-card);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--trans-fast);
}

.rev-arrow-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: scale(1.1);
}

.rev-progress-bar-wrap {
    flex: 1;
    max-width: 160px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 1.25rem;
}

.rev-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--gold-grad);
    transition: width 0.1s linear;
}



/* ===================================================================
   ULTRA-LUXURY 2025 PRELOADER & CINEMATIC ENTRANCE SCREEN
   =================================================================== */
#gbcPreloaderScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #0f172a 0%, #030712 100%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

#gbcPreloaderScreen.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-glow-orb {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.22), transparent 70%);
    border-radius: var(--radius-full);
    animation: preloaderPulse 2.4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes preloaderPulse {
    0% { transform: scale(0.85); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.9; }
}

.preloader-brand-box {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.5rem;
}

.preloader-logo-ring {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.preloader-logo-ring::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    border-top-color: var(--gold-primary);
    border-right-color: var(--gold-primary);
    animation: preloaderSpin 1.4s linear infinite;
}

.preloader-logo-ring::after {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: var(--radius-full);
    border: 1.5px dashed rgba(14, 165, 233, 0.4);
    animation: preloaderSpin 3.5s linear infinite reverse;
}

@keyframes preloaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-logo-img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(212, 160, 23, 0.45));
}

.preloader-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--gold-primary);
    margin-bottom: 0.4rem;
    letter-spacing: -0.5px;
}

.preloader-subtitle {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 1.75rem;
    height: 20px;
}

.preloader-bar-wrap {
    width: 240px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d97706, #fbbf24, #10b981);
    border-radius: var(--radius-full);
    transition: width 0.05s ease-out;
}

.preloader-percent {
    margin-top: 0.65rem;
    font-size: 0.78rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--gold-primary);
}

/* ===================================================================
   MOBILE RESPONSIVENESS OVERHAUL 1000% (FIXES ALL OVERFLOW & BREAKS)
   =================================================================== */

html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
}

.boxed-wrapper, .enterprise-app-wrapper {
    max-width: 100vw;
    overflow-x: hidden;
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
}

@media (max-width: 768px) {
    /* Revolution Container on Mobile */
    .revolution-hero-container {
        margin: 0.35rem auto 1.5rem auto;
        border-radius: var(--radius-lg);
        min-height: auto;
    }

    /* Top HUD on Mobile */
    .revolution-top-hud {
        padding: 0.6rem 0.85rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .rev-brand-logo {
        height: 30px;
        max-width: 100px;
    }

    .rev-search-hud, .rev-nav-capsule {
        display: none !important;
    }

    /* Slide Viewport on Mobile */
    .revolution-slides-viewport {
        padding: 1.15rem 0.75rem 1.5rem 0.75rem;
    }

    /* Grid single column on mobile */
    .hero-masterpiece-grid, .rev-banner-split {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Typography on mobile */
    .hero-main-title {
        font-size: 1.28rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.65rem !important;
    }

    .hero-main-desc {
        font-size: 0.82rem !important;
        line-height: 1.65 !important;
        margin-bottom: 1rem !important;
    }

    /* 4 KPI Stats 2x2 on Mobile */
    .hero-stats-4x-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.45rem !important;
        margin-bottom: 1rem !important;
    }

    .hero-stat-card-tile {
        padding: 0.55rem 0.4rem !important;
    }

    .hero-stat-val {
        font-size: 1.05rem !important;
    }

    .hero-stat-sub {
        font-size: 0.68rem !important;
    }

    /* 4 Macro Action Buttons 2x2 on Mobile */
    .hero-quick-actions-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.45rem !important;
        margin-bottom: 1rem !important;
    }

    .hero-quick-tile-btn {
        padding: 0.5rem 0.35rem !important;
        font-size: 0.72rem !important;
    }

    /* Onboarding Card on Mobile */
    .hero-onboarding-luxury-card {
        padding: 1.15rem 0.95rem !important;
        border-radius: var(--radius-lg) !important;
    }

    .form-title-h3 {
        font-size: 1.02rem !important;
    }

    .form-field-ctrl {
        padding: 0.55rem 0.75rem !important;
        font-size: 0.8rem !important;
    }

    .form-calc-summary-pill {
        padding: 0.65rem 0.85rem !important;
    }

    .btn-hero-launch-gold {
        padding: 0.85rem 1rem !important;
        font-size: 0.88rem !important;
    }

    /* Bottom Controls HUD on Mobile */
    .rev-controls-hud {
        padding: 0.5rem 0.85rem !important;
    }

    .rev-bullet {
        width: 8px !important;
        height: 8px !important;
    }

    .rev-bullet.active {
        width: 22px !important;
    }

    .rev-arrow-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }

    .rev-progress-bar-wrap {
        margin: 0 0.65rem !important;
    }
}



/* ===================================================================
   PRO PRELOADER: LARGE LUXURY LOGO + DIRECT CAPTION + 2S FAST TRANSITION
   =================================================================== */
.preloader-logo-ring {
    position: relative;
    width: 170px !important;
    height: 170px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem !important;
}

.preloader-logo-ring::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: var(--radius-full);
    border: 2.5px solid transparent;
    border-top-color: var(--gold-primary);
    border-right-color: var(--gold-primary);
    animation: preloaderSpin 1.2s linear infinite;
    filter: drop-shadow(0 0 10px rgba(212, 160, 23, 0.6));
}

.preloader-logo-ring::after {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: var(--radius-full);
    border: 1.5px dashed rgba(14, 165, 233, 0.5);
    animation: preloaderSpin 3s linear infinite reverse;
}

.preloader-logo-img {
    width: 130px !important;
    height: 130px !important;
    max-width: 130px !important;
    max-height: 130px !important;
    object-fit: contain;
    filter: drop-shadow(0 0 24px rgba(212, 160, 23, 0.55)) !important;
    animation: preloaderPulse 1.8s ease-in-out infinite alternate;
}

.preloader-subtitle {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #e2e8f0 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}



/* ===================================================================
   4 LUXURY PLATFORM ENTRANCE BANNERS (بوابات ومنصات المنظومة الـ 4)
   =================================================================== */
.platforms-gateway-section {
    margin: 1.5rem 0 2.5rem 0;
    position: relative;
    z-index: 10;
}

.platforms-gateway-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
}

@media (max-width: 1024px) {
    .platforms-gateway-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .platforms-gateway-grid {
        grid-template-columns: 1fr;
        gap: 0.95rem;
    }
}

.platform-banner-card {
    position: relative;
    height: 200px;
    border-radius: var(--radius-xl);
    border: 1.5px solid var(--border-gold);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem 1.15rem;
    background-size: cover;
    background-position: center;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-banner-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(9, 14, 26, 0.85) 60%, rgba(3, 7, 18, 0.98) 100%);
    transition: background 0.4s ease;
    z-index: 1;
}

.platform-banner-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #fbbf24;
    box-shadow: 0 20px 45px rgba(212, 160, 23, 0.3), 0 0 25px rgba(212, 160, 23, 0.2);
}

.platform-banner-card:hover::before {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(9, 14, 26, 0.75) 50%, rgba(3, 7, 18, 0.95) 100%);
}

.platform-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.platform-banner-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-full);
    width: fit-content;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.platform-banner-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.35;
    transition: color var(--trans-fast);
}

.platform-banner-card:hover .platform-banner-title {
    color: var(--gold-primary);
}

.platform-banner-desc {
    font-size: 0.76rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.platform-banner-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gold-primary);
    padding-top: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}



/* ===================================================================
   FULL WIDTH (EDGE-TO-EDGE) HERO-HEADER & FOOTER (ZERO RADIUS)
   =================================================================== */

/* Full-Width Slider Revolution Hero */
.revolution-hero-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 2rem 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: 2px solid var(--border-gold) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6) !important;
}

/* Inner Container to keep content centered & elegant within full width */
.rev-inner-wrap {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Refined Compact Heading Typography */
.hero-main-title {
    font-size: clamp(1.15rem, 1.85vw, 1.55rem) !important;
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
    color: var(--vx-heading) !important;
    line-height: 1.4 !important;
    margin-bottom: 0.65rem !important;
    letter-spacing: -0.3px !important;
}

.hero-main-desc {
    font-size: 0.85rem !important;
    line-height: 1.65 !important;
    color: var(--text-primary) !important;
    margin-bottom: 1.15rem !important;
}

/* Full Width Footer with Zero Rounded Corners */
.enterprise-app-footer, .landing-footer, .boxed-footer {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-top: 2px solid var(--border-gold) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Full Width Top HUD */
.revolution-top-hud {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    padding: 0.75rem 2rem !important;
}

@media (max-width: 768px) {
    .revolution-top-hud {
        padding: 0.6rem 0.85rem !important;
    }
    .hero-main-title {
        font-size: 1.15rem !important;
        line-height: 1.35 !important;
    }
    .hero-main-desc {
        font-size: 0.78rem !important;
    }
}

