/* ==========================================================================
   EDARA UNIFIED MASTER DESIGN SYSTEM (One Single Unified Stylesheet)
   Palette:
     - Primary: #123B56 (Deep Petrol)
     - Action / Success: #0F766E (Dark Emerald)
     - Accent: #14B8A6 (Teal)
     - Background: #F6F8FB (Soft Gray-Blue)
     - Card / Surface: #FFFFFF
     - Border: #E2E8F0
     - Text Main: #0F172A
     - Text Secondary: #64748B
   Typography: Tajawal (Weights: 300, 400, 500, 700)
   ========================================================================== */

/* ----------------------------------------------------
   1. TOKENS & ROOT VARIABLES
---------------------------------------------------- */
:root {
    --edara-primary: #123B56;
    --edara-primary-hover: #0D2B3F;
    --edara-primary-light: #EBF3F8;
    --edara-primary-border: #BCD7EA;

    --edara-action: #0F766E;
    --edara-action-hover: #0B5D57;
    --edara-action-light: #CCFBF1;
    --edara-action-border: #99F6E4;

    --edara-teal: #14B8A6;
    --edara-teal-light: #F0FDFA;

    --edara-bg: #F6F8FB;
    --edara-surface: #FFFFFF;
    --edara-card: #FFFFFF;
    --edara-sidebar: #FFFFFF;

    --edara-border: #E2E8F0;
    --edara-border-light: #F1F5F9;

    --edara-text: #0F172A;
    --edara-text-secondary: #475569;
    --edara-muted: #64748B;
    --edara-light: #94A3B8;

    --edara-danger: #DC2626;
    --edara-danger-hover: #B91C1C;
    --edara-danger-light: #FEF2F2;
    --edara-danger-border: #FECACA;

    --edara-warning: #D97706;
    --edara-warning-hover: #B45309;
    --edara-warning-light: #FFFBEB;
    --edara-warning-border: #FDE68A;

    --edara-success: #059669;
    --edara-success-hover: #047857;
    --edara-success-light: #ECFDF5;
    --edara-success-border: #A7F3D0;

    --edara-info: #2563EB;
    --edara-info-light: #EFF6FF;
    --edara-info-border: #BFDBFE;

    /* Dimensions */
    --sidebar-width: 255px;
    --header-height: 64px;
    --bottom-nav-height: 62px;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    --bottom-nav-total-height: calc(var(--bottom-nav-height) + var(--safe-area-bottom));

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
    --shadow-card: 0 4px 14px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
    --shadow-hover: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-dropdown: 0 12px 32px rgba(15, 23, 42, 0.12);

    /* Full Backward-Compatibility Mappings */
    --muzain-petrol: var(--edara-primary);
    --muzain-petrol-hover: var(--edara-primary-hover);
    --muzain-petrol-light: var(--edara-primary-light);
    --muzain-green: var(--edara-action);
    --muzain-green-hover: var(--edara-action-hover);
    --muzain-green-light: var(--edara-action-light);
    --muzain-bg: var(--edara-bg);
    --muzain-card: var(--edara-card);
    --muzain-sidebar: var(--edara-sidebar);
    --muzain-border: var(--edara-border);
    --muzain-text-main: var(--edara-text);
    --muzain-text-muted: var(--edara-muted);
    --brand-primary: var(--edara-primary);
    --brand-primary-hover: var(--edara-primary-hover);
    --brand-light: var(--edara-action-light);
    --brand-light-border: var(--edara-action-border);
    --bg-canvas: var(--edara-bg);
    --border-color: var(--edara-border);
    --text-main: var(--edara-text);
}

/* ----------------------------------------------------
   2. GLOBAL RESET & BASE TYPOGRAPHY
---------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

html, body {
    overflow-x: clip;
    max-width: 100vw;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    overscroll-behavior-y: contain;
}

body {
    background-color: var(--edara-bg) !important;
    color: var(--edara-text) !important;
    margin: 0;
    min-height: 100vh;
    direction: rtl !important;
    text-align: right;
    font-family: 'Tajawal', system-ui, -apple-system, sans-serif !important;
    font-size: 0.92rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

/* Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--edara-bg); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ----------------------------------------------------
   3. MASTER LAYOUT STRUCTURE
---------------------------------------------------- */
.edara-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
}

.edara-sidebar {
    width: var(--sidebar-width);
    background: var(--edara-sidebar) !important;
    border-left: 1px solid var(--edara-border);
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.edara-main {
    flex: 1;
    margin-right: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--edara-bg);
    transition: margin 0.28s ease;
}

.edara-header {
    height: var(--header-height);
    background: #FFFFFF;
    border-bottom: 1px solid var(--edara-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}

@media (max-width: 767.98px) {
    .edara-header {
        padding: 0 0.65rem !important;
        gap: 0.35rem !important;
    }
}

.edara-content {
    flex: 1;
    padding: 1.5rem 1.75rem;
    background: var(--edara-bg);
}

/* Sidebar Brand Header */
.sidebar-header {
    padding: 1.25rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--edara-border-light);
}

.edara-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.edara-logo-badge {
    width: 36px;
    height: 36px;
    background: var(--edara-primary);
    color: #FFFFFF;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(18, 59, 86, 0.25);
}

.edara-brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--edara-text);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.edara-brand-sub {
    font-size: 0.68rem;
    color: var(--edara-muted);
    display: block;
}

/* Sidebar Menu Navigation */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 0.75rem;
}

.nav-group-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--edara-light);
    text-transform: uppercase;
    padding: 0.85rem 0.65rem 0.35rem;
    letter-spacing: 0.04em;
}

.edara-nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.58rem 0.8rem;
    color: var(--edara-text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.edara-nav-link i {
    font-size: 1.1rem;
    color: var(--edara-muted);
    transition: color 0.15s ease;
}

.edara-nav-link:hover {
    background: #F8FAFC;
    color: var(--edara-text);
}

.edara-nav-link:hover i {
    color: var(--edara-primary);
}

.edara-nav-link.active {
    background: #E6FFFA !important;
    color: var(--edara-action) !important;
    font-weight: 700 !important;
    border-inline-start: 4px solid var(--edara-action) !important;
    box-shadow: 0 1px 3px rgba(15, 118, 110, 0.08);
}

.edara-nav-link.active i {
    color: var(--edara-action) !important;
}

/* Elegant Thin Scrollbar for Sidebar Menu */
.sidebar-menu::-webkit-scrollbar {
    width: 5px;
}
.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}
.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Sidebar User Footer */
.sidebar-user-footer {
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--edara-border-light);
    background: #FFFFFF;
}

.user-profile-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    text-decoration: none;
}

.avatar-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F1F5F9;
    border: 1px solid var(--edara-border);
    color: var(--edara-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ----------------------------------------------------
   4. CRITICAL MOBILE DRAWER & BACKDROP FIX
---------------------------------------------------- */
.edara-drawer-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 1060 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.edara-drawer-backdrop.show {
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 991.98px) {
    .edara-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        width: 290px !important;
        max-width: 85vw !important;
        background: #FFFFFF !important;
        z-index: 1040;
        transform: translateX(100%) !important;
        box-shadow: -10px 0 35px rgba(15, 23, 42, 0.2) !important;
        border-left: 1px solid var(--edara-border) !important;
        visibility: hidden;
        pointer-events: none;
    }

    /* When drawer is open: must sit ABOVE backdrop (z-index: 1070) */
    .edara-sidebar.show-drawer {
        transform: translateX(0) !important;
        z-index: 1070 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .edara-sidebar.show-drawer .sidebar-menu,
    .edara-sidebar.show-drawer .edara-nav-link,
    .edara-sidebar.show-drawer #closeSidebarBtn {
        pointer-events: auto !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
    }

    .edara-main {
        margin-right: 0 !important;
        padding-bottom: calc(var(--bottom-nav-total-height) + 1.25rem) !important;
        max-width: 100vw !important;
        overflow-x: clip !important;
    }

    .edara-header {
        padding: 0 1rem;
        padding-top: max(0.4rem, var(--safe-area-top));
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        background: rgba(255, 255, 255, 0.92) !important;
    }

    .edara-content {
        padding: 1rem 0.85rem;
    }

    .edara-bottom-nav {
        display: flex !important;
    }
}

/* ----------------------------------------------------
   5. BOTTOM NAVIGATION BAR (MOBILE ONLY - NATIVE FEEL)
---------------------------------------------------- */
.edara-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-total-height);
    padding-bottom: var(--safe-area-bottom);
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    z-index: 1050;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
    user-select: none;
    -webkit-user-select: none;
    align-items: center;
    justify-content: space-around;
}

.edara-bottom-item {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--edara-muted);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    gap: 0.15rem;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s ease;
    cursor: pointer;
}

.edara-bottom-item:active {
    transform: scale(0.88);
}

.edara-bottom-item i {
    font-size: 1.28rem;
    line-height: 1;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.edara-bottom-item.active {
    color: var(--edara-primary);
    font-weight: 700;
}

.edara-bottom-item.active i {
    transform: translateY(-2px);
}

.edara-bottom-item.active::after {
    content: '';
    position: absolute;
    bottom: max(6px, calc(var(--safe-area-bottom) + 3px));
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--edara-primary);
    animation: edaraNavDot 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes edaraNavDot {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Central Floating Action Button (FAB) */
.edara-bottom-fab-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
}

.edara-bottom-fab {
    position: absolute;
    top: -18px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--edara-action, #0F766E) 0%, #0B5D57 100%);
    color: #FFFFFF !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(15, 118, 110, 0.38);
    border: 3.5px solid #FFFFFF;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    text-decoration: none !important;
    z-index: 1060;
}

.edara-bottom-fab:active {
    transform: scale(0.88);
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}

.edara-bottom-fab i {
    font-size: 1.45rem;
    line-height: 1;
}

/* Native App Tactile Active State for all buttons & touch cards */
.btn:active,
.btn-edara-primary:active,
.btn-edara-action:active,
.edara-nav-link:active,
.pos-card-touch:active,
.pos-card-add-btn:active,
.apt-card:active {
    transform: scale(0.97);
    transition: transform 0.08s ease;
}

/* ----------------------------------------------------
   6. UNIFIED CARDS & SURFACES (All Aliases Included)
---------------------------------------------------- */
.edara-card,
.custom-card,
.white-card {
    background: var(--edara-surface) !important;
    border: 1px solid var(--edara-border) !important;
    border-radius: var(--radius-md) !important;
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 1.25rem;
    position: relative;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.edara-card:hover,
.custom-card:hover,
.white-card:hover {
    border-color: #CBD5E1 !important;
    box-shadow: var(--shadow-card);
}

/* KPI Card */
.edara-kpi-card {
    background: var(--edara-surface);
    border: 1px solid var(--edara-border);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--shadow-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    height: 100%;
}

.edara-kpi-card:hover {
    border-color: #CBD5E1;
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.edara-kpi-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--edara-muted);
    display: block;
    margin-bottom: 0.25rem;
}

.edara-kpi-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--edara-text);
    line-height: 1.2;
    margin: 0;
}

.edara-kpi-sub {
    font-size: 0.72rem;
    color: var(--edara-light);
    margin-top: 0.2rem;
}

.edara-kpi-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.card-icon-box {
    width: 34px;
    height: 34px;
    background: var(--edara-primary-light);
    color: var(--edara-primary);
    border: 1px solid var(--edara-primary-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ----------------------------------------------------
   7. UNIFIED BUTTONS & ACTIONS (All Aliases Included)
---------------------------------------------------- */
.btn-edara-action,
.btn-brand,
.btn-gold,
.btn-muzain-green {
    background-color: var(--edara-action) !important;
    border-color: var(--edara-action) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.52rem 1.15rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-decoration: none !important;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 118, 110, 0.15);
    cursor: pointer;
}

.btn-edara-action:hover,
.btn-brand:hover,
.btn-gold:hover,
.btn-muzain-green:hover {
    background-color: var(--edara-action-hover) !important;
    border-color: var(--edara-action-hover) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.28);
}

.btn-edara-primary,
.btn-muzain-petrol {
    background-color: var(--edara-primary) !important;
    border-color: var(--edara-primary) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.52rem 1.15rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-decoration: none !important;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(18, 59, 86, 0.15);
    cursor: pointer;
}

.btn-edara-primary:hover,
.btn-muzain-petrol:hover {
    background-color: var(--edara-primary-hover) !important;
    border-color: var(--edara-primary-hover) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 59, 86, 0.28);
}

.btn-edara-light {
    background: #FFFFFF !important;
    border: 1px solid var(--edara-border) !important;
    color: var(--edara-text) !important;
    font-weight: 500 !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.48rem 0.95rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none !important;
    transition: all 0.15s ease;
    cursor: pointer;
}

.btn-edara-light:hover {
    background: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    color: var(--edara-text) !important;
}

.btn-edara-danger {
    background-color: var(--edara-danger) !important;
    border-color: var(--edara-danger) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.52rem 1.15rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.btn-edara-danger:hover {
    background-color: var(--edara-danger-hover) !important;
    border-color: var(--edara-danger-hover) !important;
}

.btn-edara-outline-danger {
    background: transparent !important;
    border: 1px solid var(--edara-danger) !important;
    color: var(--edara-danger) !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.48rem 0.95rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.btn-edara-outline-danger:hover {
    background: var(--edara-danger) !important;
    color: #FFFFFF !important;
}

/* ----------------------------------------------------
   8. UNIFIED TABLES & DIRECTORIES
---------------------------------------------------- */
.table-responsive {
    border-radius: var(--radius-md);
}

.table {
    margin-bottom: 0;
    color: var(--edara-text) !important;
    vertical-align: middle;
}

.table thead th {
    background-color: #F8FAFC !important;
    color: var(--edara-muted) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.85rem 1rem !important;
    border-bottom: 1px solid var(--edara-border) !important;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.95rem 1rem !important;
    border-bottom: 1px solid #F1F5F9 !important;
    font-size: 0.88rem !important;
}

.table-hover tbody tr:hover td {
    background-color: #F8FAFC !important;
}

.client-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--edara-primary-light);
    color: var(--edara-primary);
    border: 1px solid var(--edara-primary-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
}

/* ----------------------------------------------------
   9. UNIFIED FORM CONTROLS & SEARCH BARS
---------------------------------------------------- */
.form-control, .form-select {
    border: 1px solid var(--edara-border) !important;
    border-radius: var(--radius-sm) !important;
    background-color: #FFFFFF !important;
    color: var(--edara-text) !important;
    font-size: 0.88rem !important;
    padding: 0.58rem 0.85rem !important;
    transition: all 0.15s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--edara-action) !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12) !important;
    outline: none !important;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input-group i {
    position: absolute;
    right: 0.85rem;
    color: var(--edara-light);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 5;
}

.search-input-group .form-control {
    padding-right: 2.3rem !important;
}

/* ----------------------------------------------------
   10. STATUS BADGES & LIVE INDICATORS
---------------------------------------------------- */
.badge-soft-success {
    background: #ECFDF5 !important;
    color: #059669 !important;
    border: 1px solid #A7F3D0 !important;
}

.badge-soft-warning {
    background: #FFFBEB !important;
    color: #D97706 !important;
    border: 1px solid #FDE68A !important;
}

.badge-soft-danger {
    background: #FEF2F2 !important;
    color: #DC2626 !important;
    border: 1px solid #FECACA !important;
}

.badge-soft-info {
    background: #EFF6FF !important;
    color: #2563EB !important;
    border: 1px solid #BFDBFE !important;
}

.badge-soft-neutral {
    background: #F1F5F9 !important;
    color: #475569 !important;
    border: 1px solid #E2E8F0 !important;
}

/* Pulsing Live Dot */
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ----------------------------------------------------
   11. UNIFIED EMPTY STATES
---------------------------------------------------- */
.edara-empty-state {
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.empty-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #F8FAFC;
    border: 1px solid var(--edara-border);
    color: var(--edara-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.empty-title {
    font-weight: 700;
    color: var(--edara-text);
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.empty-subtitle {
    font-size: 0.85rem;
    color: var(--edara-muted);
    margin-bottom: 1.25rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* ----------------------------------------------------
   12. POS SYSTEM SPECIALIZED STYLES
---------------------------------------------------- */
.pos-screen-layout {
    width: 100%;
}

.pos-shift-banner {
    background: #FFFFFF;
    border: 1px solid var(--edara-border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.shift-info-pill {
    font-size: 0.8rem;
    color: var(--edara-muted);
}
.shift-info-pill strong {
    color: var(--edara-text);
}

.staff-scroll-bar {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 4px;
}
.staff-scroll-bar::-webkit-scrollbar { height: 4px; }

.staff-pill {
    padding: 0.32rem 0.85rem;
    border-radius: 20px;
    border: 1px solid var(--edara-border);
    background: #FFFFFF;
    color: var(--edara-text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.staff-pill.active, .staff-pill:hover {
    background: var(--edara-primary);
    color: #FFFFFF;
    border-color: var(--edara-primary);
}

.staff-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
}

.category-nav-wrapper {
    overflow-x: auto;
    padding: 0.25rem 0;
}
.category-nav-wrapper::-webkit-scrollbar { height: 4px; }

.cat-chip {
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    border: 1px solid var(--edara-border);
    background: #FFFFFF;
    color: var(--edara-text);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cat-chip.active, .cat-chip:hover {
    background: var(--edara-action);
    color: #FFFFFF;
    border-color: var(--edara-action);
}

.pos-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    max-height: 520px;
    overflow-y: auto;
    padding-left: 2px;
}
.pos-catalog-grid::-webkit-scrollbar { width: 5px; }

.catalog-item-card {
    background: #FFFFFF;
    border: 1px solid var(--edara-border);
    border-radius: 10px;
    padding: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 110px;
    position: relative;
}

.catalog-item-card:hover {
    border-color: var(--edara-action);
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.15);
    transform: translateY(-2px);
}

.catalog-item-name {
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--edara-text);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.catalog-item-meta {
    font-size: 0.72rem;
    color: var(--edara-muted);
}

.catalog-item-price {
    font-weight: 800;
    color: var(--edara-action);
    font-size: 1rem;
    margin-top: auto;
}

/* Cart Specific */
.client-box {
    background: #F8FAFC;
    border: 1px solid var(--edara-border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
}

.cart-items-scroll {
    max-height: 340px;
    overflow-y: auto;
    padding-left: 2px;
}
.cart-items-scroll::-webkit-scrollbar { width: 4px; }

.cart-item-card {
    background: #FFFFFF;
    border: 1px solid var(--edara-border);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.45rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    transition: all 0.15s ease;
}

.cart-item-card:hover {
    border-color: #CBD5E1;
}

.cart-select-staff {
    background-color: #FFFFFF !important;
    border: 1px solid #D1D5DB !important;
    color: var(--edara-text) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 0.25rem 0.5rem !important;
    height: 30px !important;
    line-height: 1.4 !important;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--edara-border);
    border-radius: 6px;
    overflow: hidden;
    background: #F8FAFC;
}

.qty-step-btn {
    width: 24px;
    height: 28px;
    border: none;
    background: transparent;
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--edara-text);
    transition: background 0.15s ease;
}

.qty-step-btn:hover {
    background: #E2E8F0;
}

.qty-step-input {
    width: 34px;
    height: 28px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: #FFFFFF;
    color: var(--edara-text);
}

/* ----------------------------------------------------
   13. LANDING PAGE LUXURY STYLES (PREMIUM SAAS)
---------------------------------------------------- */
.landing-nav {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.85rem 0;
    transition: all 0.2s ease;
}

.hero-grid-bg {
    background-color: #F8FAFC;
    background-image: 
        radial-gradient(circle at 50% 12%, rgba(15, 118, 110, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 85% 30%, rgba(18, 59, 86, 0.05) 0%, transparent 40%),
        radial-gradient(rgba(18, 59, 86, 0.06) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 26px 26px;
    background-position: center top, center top, center top;
}

.landing-hero {
    padding: 4.5rem 1rem 3.5rem;
    text-align: center;
    position: relative;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FFFFFF;
    color: var(--edara-action);
    border: 1px solid var(--edara-action-border);
    padding: 0.45rem 1.25rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(15, 118, 110, 0.08);
}

.hero-gradient-text {
    background: linear-gradient(135deg, #0F766E 0%, #14B8A6 45%, #123B56 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.landing-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--edara-text);
    line-height: 1.22;
    max-width: 860px;
    margin: 0 auto 1.35rem;
    letter-spacing: -0.025em;
}

@media (max-width: 768px) {
    .landing-title {
        font-size: 2.15rem;
        line-height: 1.3;
    }
}

.landing-subtitle {
    font-size: 1.12rem;
    color: var(--edara-muted);
    max-width: 740px;
    margin: 0 auto 2.25rem;
    line-height: 1.75;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #0F766E 0%, #0D655E 100%) !important;
    border: 1px solid #0F766E !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    padding: 0.75rem 2rem !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -4px rgba(15, 118, 110, 0.45) !important;
    transition: all 0.2s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none !important;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -4px rgba(15, 118, 110, 0.55) !important;
    background: linear-gradient(135deg, #0B5D57 0%, #094F4A 100%) !important;
}

.btn-hero-secondary {
    background: #FFFFFF !important;
    border: 1.5px solid var(--edara-border) !important;
    color: var(--edara-text) !important;
    font-weight: 600 !important;
    font-size: 1.02rem !important;
    padding: 0.75rem 1.75rem !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.2s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none !important;
}

.btn-hero-secondary:hover {
    background: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    color: var(--edara-primary) !important;
    transform: translateY(-2px);
}

/* Stat Pills */
.stat-pill-item {
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 14px;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-pill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--edara-action), var(--edara-teal));
    opacity: 0.8;
}

.stat-pill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.stat-pill-value {
    font-size: 1.95rem;
    font-weight: 800;
    color: var(--edara-primary);
    margin-bottom: 0.2rem;
    line-height: 1.1;
}

.stat-pill-label {
    font-size: 0.82rem;
    color: var(--edara-muted);
    font-weight: 600;
}

/* macOS App Mockup Card */
.mac-mockup-card {
    background: #FFFFFF;
    border: 1px solid var(--edara-border);
    border-radius: 18px;
    box-shadow: 0 25px 65px -12px rgba(18, 59, 86, 0.16), 0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    max-width: 980px;
    margin: 2.5rem auto 0;
    text-align: right;
    position: relative;
}

.mac-mockup-header {
    background: #F8FAFC;
    border-bottom: 1px solid var(--edara-border);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mac-dot-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.mac-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.mac-dot-red { background: #EF4444; }
.mac-dot-yellow { background: #F59E0B; }
.mac-dot-green { background: #10B981; }

.mac-url-bar {
    background: #FFFFFF;
    border: 1px solid var(--edara-border);
    border-radius: 20px;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    color: var(--edara-muted);
    font-family: monospace;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.mockup-inner {
    padding: 1.5rem;
    background: #FAFBFD;
}

/* Feature Cards */
.landing-feature-box {
    background: #FFFFFF;
    border: 1px solid var(--edara-border);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    height: 100%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.landing-feature-box:hover {
    border-color: var(--edara-action-border);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.1);
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ECFDF5 0%, #CCFBF1 100%);
    color: var(--edara-action);
    border: 1px solid #A7F3D0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 1.15rem;
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.1);
}

/* Profit Calculator */
.calc-box-card {
    background: #FFFFFF;
    border: 1px solid var(--edara-border);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    padding: 2.5rem 2.25rem;
}

.profit-result-pill {
    background: linear-gradient(145deg, #F0FDF4 0%, #ECFDF5 100%);
    border: 1.5px solid #A7F3D0;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.08);
}

/* Range input styling */
.form-range::-webkit-slider-thumb {
    background: var(--edara-action) !important;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.4);
    transition: transform 0.15s ease;
}

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

/* Luxury CTA Dark Card */
.cta-dark-card {
    background: linear-gradient(135deg, #123B56 0%, #0B2537 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 4.25rem 2rem;
    text-align: center;
    box-shadow: 0 25px 60px -10px rgba(18, 59, 86, 0.35);
    position: relative;
    overflow: hidden;
}

.cta-dark-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* ==========================================================================
   PURE CSS REALISTIC DEVICE MOCKUPS & SHOWCASES
   ========================================================================== */

/* 1. Device Laptop (MacBook Pro Style) */
.device-laptop {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
    z-index: 2;
}

.laptop-bezel {
    background: #0F172A;
    border-radius: 18px 18px 0 0;
    padding: 10px 10px 0 10px;
    box-shadow: 0 35px 90px -15px rgba(18, 59, 86, 0.28);
    position: relative;
}

.laptop-camera {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #000000;
    border: 1px solid #334155;
    margin: 0 auto 8px;
}

.laptop-screen {
    background: #F8FAFC;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.laptop-base {
    height: 16px;
    background: linear-gradient(180deg, #CBD5E1 0%, #94A3B8 60%, #64748B 100%);
    border-radius: 0 0 16px 16px;
    position: relative;
    margin: 0 -18px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.22);
}

.laptop-base::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: #475569;
    border-radius: 0 0 6px 6px;
}

/* 2. Device Phone (iPhone 16 Pro Style) */
.device-phone {
    width: 275px;
    max-width: 100%;
    background: #0B111E;
    border-radius: 42px;
    padding: 11px;
    border: 3.5px solid #334155;
    box-shadow: 0 30px 70px -10px rgba(15, 23, 42, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.12);
    position: relative;
    margin: 0 auto;
    text-align: right;
}

.phone-dynamic-island {
    width: 85px;
    height: 22px;
    background: #000000;
    border-radius: 20px;
    margin: 2px auto 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 9px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.phone-dynamic-island .camera-lens {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #061A2B;
    border: 1px solid #1E293B;
}

.phone-dynamic-island .sensor {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0F172A;
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 14px 4px;
    color: #0F172A;
}

.phone-screen {
    background: #FFFFFF;
    border-radius: 34px;
    overflow: hidden;
    padding: 0.85rem;
    min-height: 480px;
    display: flex;
    flex-direction: column !important;
    justify-content: space-between;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.phone-home-indicator {
    width: 100px;
    height: 4px;
    background: #94A3B8;
    border-radius: 4px;
    margin: 8px auto 3px;
    flex-shrink: 0;
}

/* 3. Device Tablet (iPad Pro Style) */
.device-tablet {
    background: #0B111E;
    border-radius: 26px;
    padding: 12px;
    border: 3px solid #334155;
    box-shadow: 0 30px 75px -12px rgba(18, 59, 86, 0.25);
    position: relative;
    width: 100%;
}

.tablet-camera {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #000;
    border: 1px solid #334155;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.tablet-screen {
    background: #FAFBFD;
    border-radius: 18px;
    overflow: hidden;
    padding: 1.25rem;
}

/* 4. Hero Devices Trio (The Centerpiece of Landing) */
.hero-devices-trio {
    position: relative;
    max-width: 1100px;
    margin: 3rem auto 0;
    padding: 1.5rem 0 2rem;
}

.trio-laptop-center {
    width: 82%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.trio-phone-left {
    position: absolute;
    bottom: -20px;
    left: 20px;
    z-index: 4;
    width: 260px;
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.trio-phone-left:hover {
    transform: rotate(0deg) translateY(-8px);
}

.trio-phone-right {
    position: absolute;
    bottom: -20px;
    right: 20px;
    z-index: 4;
    width: 260px;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.trio-phone-right:hover {
    transform: rotate(0deg) translateY(-8px);
}

@media (max-width: 991px) {
    .trio-laptop-center {
        width: 100%;
    }
    .trio-phone-left,
    .trio-phone-right {
        position: static;
        margin: 2rem auto 0;
        transform: none !important;
        width: 290px;
    }
    .hero-devices-trio {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Floating Micro Metric Badges & Split Hero Animated Dashboard */
.hero-float-badge {
    position: absolute;
    z-index: 5;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 30px;
    padding: 0.55rem 1.15rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    animation: floatSlow 4s ease-in-out infinite;
}

.badge-top-left {
    top: 40px;
    left: 30px;
}

.badge-bottom-right {
    bottom: 40px;
    right: 30px;
    animation-delay: 2s;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 991px) {
    .hero-float-badge {
        display: none !important;
    }
}

/* Split Hero Specific Styles */
.hero-split-container {
    padding: 2.5rem 0 3.5rem;
    position: relative;
}

.hero-dashboard-wrapper {
    position: relative;
}

.dashboard-glow-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 125%;
    height: 125%;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.18) 0%, rgba(20, 184, 166, 0.1) 45%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
    animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

.hero-dashboard-card {
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    box-shadow: 0 25px 65px -15px rgba(18, 59, 86, 0.2), 0 0 0 1px rgba(15, 118, 110, 0.05);
    overflow: hidden;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px -15px rgba(18, 59, 86, 0.26);
}

/* Floating micro-badges around the dashboard */
.hero-floating-card {
    position: absolute;
    z-index: 10;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 0.65rem 1.1rem;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.float-top-left {
    top: -24px;
    left: -15px;
    animation: floatAnim1 5s ease-in-out infinite;
}

.float-bottom-right {
    bottom: -18px;
    right: -15px;
    animation: floatAnim2 6s ease-in-out infinite 1s;
}

.float-bottom-left {
    bottom: 25px;
    left: -25px;
    animation: floatAnim3 7s ease-in-out infinite 2s;
}

@keyframes floatAnim1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-1.5deg); }
}

@keyframes floatAnim2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(8px) rotate(1.5deg); }
}

@keyframes floatAnim3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(0.8deg); }
}

@media (max-width: 991px) {
    .hero-floating-card {
        display: none !important;
    }
}

/* ==========================================================================
   GLASS STAT CARD (Section 2 - Deep Petrol Contrast)
   ========================================================================== */
.glass-stat-card {
    background: linear-gradient(145deg, #123B56 0%, #0B2537 100%);
    border: 1px solid rgba(20, 184, 166, 0.25);
    border-radius: 24px;
    padding: 2.75rem 2.25rem;
    color: #FFFFFF;
    box-shadow: 0 25px 60px -10px rgba(18, 59, 86, 0.35);
    position: relative;
    overflow: hidden;
}

.glass-stat-card::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 80%;
    height: 140%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.stat-glow-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-glow-box:hover {
    transform: translateY(-3px);
    border-color: var(--edara-teal);
}

.stat-glow-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 0.3rem;
    font-family: monospace;
}

.stat-glow-number.accent {
    color: #34D399;
}

.stat-glow-label {
    font-size: 0.85rem;
    color: #CBD5E1;
    font-weight: 500;
}

/* ==========================================================================
   ALTERNATING FEATURE SHOWCASES
   ========================================================================== */
.showcase-section {
    padding: 5rem 0;
    position: relative;
}

.showcase-section.bg-alt {
    background-color: #F8FAFC;
    border-top: 1px solid var(--edara-border-light);
    border-bottom: 1px solid var(--edara-border-light);
}

.showcase-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.showcase-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--edara-text);
    line-height: 1.3;
    margin-bottom: 1.1rem;
    letter-spacing: -0.02em;
}

.showcase-desc {
    font-size: 1.05rem;
    color: var(--edara-muted);
    line-height: 1.75;
    margin-bottom: 1.75rem;
}

.feature-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.feature-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--edara-text);
    font-weight: 500;
    line-height: 1.55;
}

.checklist-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ECFDF5;
    color: #059669;
    border: 1.5px solid #A7F3D0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   DEEP PETROL PRICING MATRIX (#123B56) - LUXURY SAAS
   ========================================================================== */
.pricing-dark-section {
    background: linear-gradient(180deg, #0A1E2C 0%, #123B56 50%, #0B2537 100%);
    padding: 6rem 0;
    position: relative;
    color: #FFFFFF;
    overflow: hidden;
}

.pricing-dark-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(20, 184, 166, 0.1) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.pricing-toggle-wrap {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 0.35rem;
    margin-bottom: 3.5rem;
    backdrop-filter: blur(8px);
}

.pricing-toggle-btn {
    border: none;
    background: transparent;
    color: #CBD5E1;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.5rem 1.5rem;
    border-radius: 24px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pricing-toggle-btn.active {
    background: var(--edara-action);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.4);
}

.pricing-plan-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 2.75rem 2rem;
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.pricing-plan-card:hover {
    transform: translateY(-6px);
    border-color: rgba(20, 184, 166, 0.5);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.pricing-plan-card.featured {
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.16) 0%, rgba(18, 59, 86, 0.3) 100%);
    border: 2px solid #14B8A6;
    box-shadow: 0 25px 65px -10px rgba(20, 184, 166, 0.35);
    transform: scale(1.03);
}

.pricing-plan-card.featured:hover {
    transform: scale(1.05) translateY(-6px);
}

.featured-ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.35rem 1.25rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
    letter-spacing: 0.02em;
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.4rem;
}

.plan-desc {
    font-size: 0.85rem;
    color: #94A3B8;
    margin-bottom: 1.5rem;
    min-height: 42px;
}

.plan-price-wrap {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-price {
    font-size: 2.85rem;
    font-weight: 800;
    color: #FFFFFF;
    font-family: monospace;
    line-height: 1;
}

.plan-currency {
    font-size: 0.95rem;
    color: #94A3B8;
    margin-right: 0.35rem;
}

.plan-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.88rem;
    color: #CBD5E1;
}

.plan-features-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.plan-features-list li i {
    color: #34D399;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ==========================================================================
   REQUEST DEMO FLOATING CARD
   ========================================================================== */
.demo-form-card {
    background: #FFFFFF;
    border: 1px solid var(--edara-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 60px -10px rgba(18, 59, 86, 0.12);
    position: relative;
}

.demo-input {
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    color: var(--edara-text);
    transition: all 0.2s ease;
    width: 100%;
}

.demo-input:focus {
    background: #FFFFFF;
    border-color: var(--edara-action);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
    outline: none;
}

/* ==========================================================================
   LUXURY DARK FOOTER
   ========================================================================== */
.edara-footer-dark {
    background: #081723;
    color: #94A3B8;
    padding: 4.5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.footer-link {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #FFFFFF;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 2.5rem 0 1.5rem;
}

/* ==========================================================================
   7. PWA SMART NATIVE INSTALL BOTTOM SHEET (iOS & Android)
   ========================================================================== */
.pwa-sheet-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 1080 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
}

.pwa-sheet-backdrop.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.pwa-smart-sheet {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 500px !important;
    background: #FFFFFF !important;
    border-radius: 28px 28px 0 0 !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-bottom: none !important;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.2) !important;
    z-index: 1085 !important;
    padding: 12px 18px max(20px, var(--safe-area-bottom)) 18px !important;
    transform: translateY(115%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: transform;
}

.pwa-smart-sheet.show {
    transform: translateY(0) !important;
}

@media (min-width: 769px) {
    .pwa-smart-sheet {
        bottom: 24px !important;
        border-radius: 24px !important;
        border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
        box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22) !important;
    }
}

.pwa-sheet-drag-handle {
    width: 44px;
    height: 5px;
    background: #CBD5E1;
    border-radius: 99px;
    margin: 2px auto 14px auto;
    cursor: pointer;
}

.pwa-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pwa-sheet-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    overflow: hidden;
    background: #F8FAFC;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.15);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-sheet-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pwa-sheet-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--edara-text);
}

.pwa-sheet-badge-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pwa-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    background: #F1F5F9;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pwa-sheet-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #F1F5F9;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pwa-sheet-close:hover {
    background: #E2E8F0;
    color: var(--edara-text);
}

.pwa-sheet-desc {
    font-size: 0.88rem;
    color: #64748B;
    line-height: 1.5;
    margin-bottom: 12px;
}

.pwa-ios-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #F8FAFC;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--edara-border);
}

.pwa-step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pwa-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--edara-action, #0F766E);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pwa-step-text {
    font-size: 0.86rem;
    color: var(--edara-text);
    line-height: 1.45;
}

.pwa-icon-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 1px 7px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.pwa-arrow-bounce {
    animation: pwaBounce 1.5s infinite;
}

@keyframes pwaBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(6px);
    }
    60% {
        transform: translateY(3px);
    }
}

/* ==========================================================================
   8. PWA NATIVE MASTERPIECE SUITE (HAPTICS, TOASTS, PTR, OFFLINE SENTINEL)
   ========================================================================== */

/* Native touch polish */
@media (max-width: 991.98px) {
    body {
        -webkit-tap-highlight-color: transparent;
        overscroll-behavior-y: contain;
    }
}

/* A. Top Progress Bar */
.pwa-top-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #0F766E 0%, #14B8A6 60%, #38BDF8 100%);
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.7);
    transition: width 0.22s ease, opacity 0.3s ease;
}

/* B. Native Pull-To-Refresh Indicator */
.pwa-ptr-indicator {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-50px);
    z-index: 1060;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.15s ease, background-color 0.2s ease;
}

.pwa-ptr-icon {
    font-size: 1.2rem;
    color: #0F766E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s linear, color 0.2s ease;
}

.pwa-ptr-indicator.pwa-ptr-ready {
    background: #0F766E;
    box-shadow: 0 8px 22px rgba(15, 118, 110, 0.4);
    border-color: #0F766E;
}

.pwa-ptr-indicator.pwa-ptr-ready .pwa-ptr-icon {
    color: #FFFFFF;
}

.pwa-ptr-indicator.pwa-ptr-refreshing .pwa-ptr-icon {
    animation: pwaSpin 0.75s linear infinite;
}

@keyframes pwaSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* C. Dynamic Island & Floating Native Toasts */
.pwa-native-toast {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    left: 50%;
    transform: translate(-50%, -80px) scale(0.9);
    z-index: 1095;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 32px);
    min-width: 220px;
    width: max-content;
    padding: 10px 18px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 1px 3px rgba(255, 255, 255, 0.12) inset;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    direction: rtl;
    user-select: none;
    -webkit-user-select: none;
}

.pwa-native-toast.pwa-toast-visible {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
}

.pwa-native-toast.pwa-toast-hiding {
    transform: translate(-50%, -60px) scale(0.92);
    opacity: 0;
}

.pwa-toast-icon {
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.pwa-toast-msg {
    line-height: 1.35;
    white-space: normal;
    text-align: right;
    flex-grow: 1;
}

.pwa-toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    padding: 0;
    margin: 0;
    margin-right: 4px;
    font-size: 1.25rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s ease;
}

.pwa-toast-close:hover {
    color: #FFFFFF;
}

.pwa-toast-success .pwa-toast-icon { color: #34D399; }
.pwa-toast-error { background: rgba(153, 27, 27, 0.95); }
.pwa-toast-error .pwa-toast-icon { color: #FCA5A5; }
.pwa-toast-warning { background: rgba(146, 64, 14, 0.95); }
.pwa-toast-warning .pwa-toast-icon { color: #FCD34D; }
.pwa-toast-info .pwa-toast-icon { color: #38BDF8; }

/* D. Offline Sentinel (Real-time connection monitor bar) */
.pwa-offline-sentinel {
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    left: 0;
    right: 0;
    z-index: 1075;
    transform: translateY(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    direction: rtl;
    pointer-events: none;
}

.pwa-offline-sentinel.show {
    transform: translateY(0);
}

.pwa-sentinel-offline {
    background: #DC2626;
    color: #FFFFFF;
    box-shadow: 0 3px 12px rgba(220, 38, 38, 0.35);
}

.pwa-sentinel-online {
    background: #059669;
    color: #FFFFFF;
    box-shadow: 0 3px 12px rgba(5, 150, 105, 0.35);
}

.pwa-sentinel-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* =========================================================
   SKELETON DATA LOADING SHIMMER & WCAG ACCESSIBILITY
   ========================================================= */
@keyframes edara-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-box {
    display: inline-block;
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 200% 100%;
    animation: edara-shimmer 1.6s infinite ease-in-out;
    vertical-align: middle;
}

.skeleton-text-sm {
    height: 11px;
    border-radius: 4px;
}

.skeleton-text-lg {
    height: 18px;
    border-radius: 6px;
}

.skeleton-badge {
    height: 22px;
    width: 68px;
    border-radius: 9999px;
}

.skeleton-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.table-skeleton tbody tr td {
    padding-top: 14px;
    padding-bottom: 14px;
}

/* WCAG 2.2 prefers-reduced-motion override */
@media (prefers-reduced-motion: reduce) {
    .skeleton-box {
        animation: none !important;
        background: #E2E8F0 !important;
    }
}

