/**
 * Checkmate4U - 2026 Advanced Enterprise SaaS Design System
 * Engineered for High-End Case & Forensic Evidence Intelligence Platforms
 * Inspired by Linear, Vercel, Supabase, Stripe Dashboard & Raycast
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');
@import url('../vendor/bootstrap-icons/bootstrap-icons.min.css');

/* ==========================================================================
   1. Design Tokens & Color Palette (Light & Dark Parity)
   ========================================================================== */
:root {
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Light Theme Surfaces & Backgrounds */
    --bg-canvas: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-surface-elevated: #FFFFFF;
    --bg-surface-subtle: #F1F5F9;
    --bg-surface-hover: #EEF2F6;
    
    /* Header & Sidebar */
    --bg-sidebar: #090D16;
    --sidebar-text: #94A3B8;
    --sidebar-text-active: #FFFFFF;
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --bg-header: rgba(255, 255, 255, 0.85);
    --header-border: rgba(226, 232, 240, 0.9);

    /* Borders & Outlines */
    --border-subtle: #E2E8F0;
    --border-strong: #CBD5E1;
    --border-focus: #6366F1;

    /* Text Colors */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #94A3B8;
    --text-inverse: #FFFFFF;

    /* Brand & Semantic Palette */
    --brand-primary: #4F46E5;
    --brand-primary-hover: #4338CA;
    --brand-primary-subtle: rgba(79, 70, 229, 0.08);
    --brand-primary-glow: rgba(79, 70, 229, 0.25);

    --color-success: #10B981;
    --color-success-subtle: rgba(16, 185, 129, 0.1);
    --color-warning: #F59E0B;
    --color-warning-subtle: rgba(245, 158, 11, 0.1);
    --color-danger: #EF4444;
    --color-danger-subtle: rgba(239, 68, 68, 0.1);
    --color-info: #06B6D4;
    --color-info-subtle: rgba(6, 182, 212, 0.1);
    --color-purple: #8B5CF6;
    --color-purple-subtle: rgba(139, 92, 246, 0.1);

    /* Shadows & Elevation */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 0 0 1px var(--border-subtle);
    --shadow-card-hover: 0 12px 28px -6px rgba(15, 23, 42, 0.09), 0 0 0 1px rgba(79, 70, 229, 0.25);
    --shadow-floating: 0 20px 40px -10px rgba(15, 23, 42, 0.25), 0 0 0 1px var(--border-subtle);

    /* Geometry */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-pill: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   Dark Theme Overrides (High-Tech Obsidian & Neon Accents)
   ========================================================================== */
[data-theme="dark"] {
    --bg-canvas: #06090F;
    --bg-surface: #0D121F;
    --bg-surface-elevated: #131A2B;
    --bg-surface-subtle: #161F33;
    --bg-surface-hover: #1A243B;

    --bg-sidebar: #05070C;
    --sidebar-border: rgba(255, 255, 255, 0.06);
    --bg-header: rgba(13, 18, 31, 0.82);
    --header-border: rgba(255, 255, 255, 0.07);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --border-focus: #818CF8;

    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-tertiary: #64748B;
    --text-inverse: #0F172A;

    --brand-primary: #6366F1;
    --brand-primary-hover: #818CF8;
    --brand-primary-subtle: rgba(99, 102, 241, 0.16);
    --brand-primary-glow: rgba(99, 102, 241, 0.35);

    --color-success-subtle: rgba(16, 185, 129, 0.16);
    --color-warning-subtle: rgba(245, 158, 11, 0.16);
    --color-danger-subtle: rgba(239, 68, 68, 0.16);
    --color-info-subtle: rgba(6, 182, 212, 0.16);
    --color-purple-subtle: rgba(139, 92, 246, 0.16);

    --shadow-card: 0 2px 6px 0 rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-subtle);
    --shadow-card-hover: 0 16px 36px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(99, 102, 241, 0.45);
    --shadow-floating: 0 24px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border-subtle);
}

/* ==========================================================================
   2. Base Typography & Resets
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

code, .font-mono {
    font-family: var(--font-mono) !important;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--brand-primary-hover);
}

.text-main {
    color: var(--text-primary) !important;
}
.bg-card {
    background-color: var(--bg-surface-elevated) !important;
}
.bg-surface-subtle {
    background-color: var(--bg-surface-subtle) !important;
}

/* ==========================================================================
   3. Modern Application Shell & Floating Sidebar
   ========================================================================== */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.app-layout, .admin-layout {
    display: flex !important;
    flex-direction: row !important;
    height: 100vh !important;
    max-height: 100vh !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    background-color: var(--bg-canvas) !important;
}

/* Floating High-End Sidebar (Pinned Shell) */
.app-sidebar, .admin-sidebar {
    width: 270px !important;
    min-width: 270px !important;
    max-width: 270px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    background-color: var(--bg-sidebar) !important;
    border-right: 1px solid var(--sidebar-border) !important;
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 1040;
    transition: width var(--transition-base), min-width var(--transition-base), transform var(--transition-base);
    user-select: none;
    overflow: hidden !important;
}

/* Collapsed Desktop State */
.app-sidebar.collapsed, .admin-sidebar.collapsed {
    width: 80px !important;
    min-width: 80px !important;
}
.app-sidebar.collapsed .sidebar-brand-text,
.admin-sidebar.collapsed .sidebar-brand-text,
.app-sidebar.collapsed .nav-section-title,
.admin-sidebar.collapsed .nav-section-title,
.app-sidebar.collapsed .nav-link span,
.admin-sidebar.collapsed .nav-link span,
.app-sidebar.collapsed .nav-link .badge,
.admin-sidebar.collapsed .nav-link .badge,
.app-sidebar.collapsed .user-info-text,
.admin-sidebar.collapsed .user-info-text,
.app-sidebar.collapsed .sidebar-footer-collapse-text,
.admin-sidebar.collapsed .sidebar-footer-collapse-text {
    display: none !important;
}
.app-sidebar.collapsed .nav-link,
.admin-sidebar.collapsed .nav-link {
    justify-content: center !important;
    padding: 0.75rem 0 !important;
}
.app-sidebar.collapsed .sidebar-brand,
.admin-sidebar.collapsed .sidebar-brand {
    justify-content: center !important;
    padding: 1.25rem 0.5rem !important;
}
.app-sidebar.collapsed .user-cardlet,
.admin-sidebar.collapsed .user-cardlet {
    justify-content: center !important;
    padding: 0.5rem !important;
}

/* Sidebar Brand Header */
.sidebar-brand {
    height: 68px !important;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--sidebar-border);
    gap: 0.75rem;
    flex-shrink: 0 !important;
}

.brand-icon-box {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--brand-primary) 0%, #7C3AED 100%);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 0 16px var(--brand-primary-glow);
    flex-shrink: 0;
}

.sidebar-brand-title {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
}

.sidebar-brand-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.1);
    color: #94A3B8;
}

.btn-close-sidebar {
    background: transparent;
    border: none;
    color: var(--sidebar-text);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-close-sidebar:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

/* Sidebar Navigation */
.sidebar-scrollable {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 1rem 0.75rem;
}
.sidebar-scrollable::-webkit-scrollbar {
    width: 4px;
}
.sidebar-scrollable::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.nav-section-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: rgba(148, 163, 184, 0.6);
    padding: 0.75rem 0.75rem 0.35rem;
    margin-top: 0.5rem;
}

.nav-item-custom {
    margin-bottom: 2px;
}

.app-sidebar .nav-link,
.admin-sidebar .nav-link {
    color: var(--sidebar-text) !important;
    padding: 0.65rem 0.85rem !important;
    border-radius: var(--radius-sm) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all var(--transition-fast) !important;
    position: relative;
}

.app-sidebar .nav-link i,
.admin-sidebar .nav-link i {
    font-size: 1.15rem;
    transition: transform var(--transition-fast), color var(--transition-fast);
    flex-shrink: 0;
}

.app-sidebar .nav-link:hover,
.admin-sidebar .nav-link:hover {
    color: #FFFFFF !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}
.app-sidebar .nav-link:hover i,
.admin-sidebar .nav-link:hover i {
    transform: scale(1.1);
    color: #FFFFFF !important;
}

.app-sidebar .nav-link.active,
.admin-sidebar .nav-link.active {
    color: #FFFFFF !important;
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.25) 0%, rgba(99, 102, 241, 0.12) 100%) !important;
    font-weight: 600 !important;
}
.app-sidebar .nav-link.active::before,
.admin-sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    border-radius: 0 4px 4px 0;
    background: var(--brand-primary);
    box-shadow: 0 0 10px var(--brand-primary);
}
.app-sidebar .nav-link.active i,
.admin-sidebar .nav-link.active i {
    color: #818CF8 !important;
}

/* Sidebar Bottom User & Controls */
.sidebar-footer {
    flex-shrink: 0 !important;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--sidebar-border);
    background: rgba(0, 0, 0, 0.2);
}

.user-cardlet {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}
.user-cardlet:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.user-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--brand-primary) 0%, #06B6D4 100%);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
    flex-shrink: 0;
}

.avatar-online-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: var(--color-success);
    border: 2px solid var(--bg-sidebar);
    border-radius: 50%;
}

/* ==========================================================================
   4. High-End Top Navigation Header
   ========================================================================== */
.app-main-workspace, .admin-workspace {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-width: 0 !important;
    background-color: var(--bg-canvas) !important;
    position: relative !important;
}

.app-top-header, .admin-header {
    height: 68px !important;
    min-height: 68px !important;
    background-color: var(--bg-header) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--header-border) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    padding: 0 1.75rem;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-shrink: 0 !important;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

/* Breadcrumbs with Clean Pill Capsule */
.breadcrumb-capsule {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-surface-subtle);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    font-size: 0.8125rem;
    white-space: nowrap;
    max-width: 280px;
}
.breadcrumb-capsule a {
    color: var(--text-secondary);
    white-space: nowrap;
}
.breadcrumb-capsule a:hover {
    color: var(--brand-primary);
}
.breadcrumb-separator {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}
.breadcrumb-active {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* Command Palette Search Trigger Button (Raycast / Mac Spotlight style) */
.command-trigger-btn {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-tertiary);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.command-trigger-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-strong);
    color: var(--text-primary);
}
.command-trigger-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}
.command-key-badge {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-weight: 600;
}

/* Live Operational Status Pill */
.live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    background: var(--color-success-subtle);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--color-success);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pulsing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    position: relative;
}
.pulsing-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
    animation: pulseRing 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Header Icon Action Buttons */
.header-action-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}
.header-action-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.header-badge-count {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--color-danger);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-surface);
}

/* User Capsule Dropdown Button */
.user-capsule-btn {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-subtle);
    padding: 0.35rem 0.75rem 0.35rem 0.4rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.user-capsule-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-strong);
}

/* ==========================================================================
   5. Modern Hero Briefing Section
   ========================================================================== */
.hero-briefing-banner {
    position: relative;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-subtle) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 1.75rem;
}
.hero-briefing-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--brand-primary-glow) 0%, transparent 70%);
    pointer-events: none;
}
.hero-briefing-banner::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 20%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-greeting-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.hero-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip-action-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-xs);
}
.chip-action-btn:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--brand-primary-glow);
}
.chip-action-btn.btn-primary-highlight {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #FFFFFF;
}
.chip-action-btn.btn-primary-highlight:hover {
    background: var(--brand-primary-hover);
}

/* ==========================================================================
   6. 2026 Intelligent Bento KPI Cards
   ========================================================================== */
.bento-kpi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.bento-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(79, 70, 229, 0.3);
}

.kpi-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.kpi-category-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--text-tertiary);
    margin: 0;
}

.kpi-icon-pill {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: transform var(--transition-fast);
}
.bento-kpi-card:hover .kpi-icon-pill {
    transform: scale(1.1);
}

.kpi-value-metric {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.kpi-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.775rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.65rem;
    margin-top: 0.5rem;
}

.trend-indicator-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
}
.trend-indicator-pill.trend-up {
    background: var(--color-success-subtle);
    color: var(--color-success);
}
.trend-indicator-pill.trend-down {
    background: var(--color-danger-subtle);
    color: var(--color-danger);
}
.trend-indicator-pill.trend-neutral {
    background: var(--brand-primary-subtle);
    color: var(--brand-primary);
}

/* ==========================================================================
   7. Advanced Analytics Bento Container & Charts
   ========================================================================== */
.analytics-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.analytics-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.analytics-card-header {
    padding: 1.15rem 1.4rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.analytics-title-group h6 {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.analytics-subtitle {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0;
    margin-top: 2px;
}

.chart-tab-pills {
    display: inline-flex;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 2px;
}
.chart-tab-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.chart-tab-btn.active {
    background: var(--bg-surface);
    color: var(--brand-primary);
    box-shadow: var(--shadow-xs);
}

.chart-canvas-wrapper {
    position: relative;
    padding: 1.25rem 1.4rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

/* ==========================================================================
   8. Modern SaaS Data Tables
   ========================================================================== */
.saas-table-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.saas-table-toolbar {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.table-filter-chips {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    overflow-x: auto;
}
.table-filter-chip {
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}
.table-filter-chip:hover, .table-filter-chip.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #FFFFFF;
}

.saas-table {
    width: 100%;
    margin-bottom: 0;
    color: var(--text-primary);
    vertical-align: middle;
}

.saas-table thead th {
    background: var(--bg-surface-subtle);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.saas-table tbody td {
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.84rem;
    transition: background-color var(--transition-fast);
}

.saas-table tbody tr:hover td {
    background-color: var(--bg-surface-hover);
}

.case-num-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    background: var(--brand-primary-subtle);
    color: var(--brand-primary);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.hash-truncate-pill {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    max-width: 140px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    background: var(--bg-surface-subtle);
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-subtle);
    cursor: copy;
    transition: max-width var(--transition-base), background-color var(--transition-fast);
}
.hash-truncate-pill:hover, .hash-truncate-pill:focus {
    max-width: 260px;
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: var(--brand-primary);
}

/* ==========================================================================
   9. Standardized Status Badge System (With Glowing Dots)
   ========================================================================== */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    flex-shrink: 0;
}

/* Specific Status Classes */
.badge-status-active {
    background: var(--brand-primary-subtle);
    color: var(--brand-primary);
    border: 1px solid rgba(79, 70, 229, 0.25);
}
.badge-status-pending {
    background: var(--color-warning-subtle);
    color: var(--color-warning);
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.badge-status-completed {
    background: var(--color-success-subtle);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.badge-status-closed {
    background: var(--bg-surface-subtle);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}
.badge-status-rejected {
    background: var(--color-danger-subtle);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.badge-status-investigation {
    background: rgba(6, 182, 212, 0.12);
    color: #0891B2;
    border: 1px solid rgba(6, 182, 212, 0.25);
}
.badge-status-urgent {
    background: var(--color-danger-subtle);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-weight: 700;
}

/* Priority Indicators */
.priority-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.priority-urgent {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}
.priority-high {
    background: rgba(245, 158, 11, 0.15);
    color: #D97706;
}
.priority-medium {
    background: rgba(59, 130, 246, 0.15);
    color: #2563EB;
}
.priority-low {
    background: rgba(100, 116, 139, 0.15);
    color: #64748B;
}

/* ==========================================================================
   10. Quick Action Grid Cards
   ========================================================================== */
.quick-action-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
}
.quick-action-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
    color: var(--brand-primary);
}

.action-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}
.quick-action-card:hover .action-icon-wrapper {
    transform: scale(1.1);
}

.action-card-body h6 {
    margin: 0;
    font-weight: 700;
    font-size: 0.88rem;
}
.action-card-body p {
    margin: 0;
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.action-arrow-indicator {
    margin-left: auto;
    color: var(--text-tertiary);
    font-size: 1.1rem;
    transition: transform var(--transition-fast), color var(--transition-fast);
}
.quick-action-card:hover .action-arrow-indicator {
    transform: translateX(4px);
    color: var(--brand-primary);
}

/* ==========================================================================
   11. Smart Activity Timeline Feed
   ========================================================================== */
.activity-timeline {
    position: relative;
    padding-left: 1.5rem;
}
.activity-timeline::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 7px;
    width: 2px;
    background: var(--border-subtle);
}

.timeline-entry {
    position: relative;
    padding-bottom: 1.25rem;
}
.timeline-entry:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -1.5rem;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 3px solid var(--brand-primary);
    box-shadow: 0 0 8px var(--brand-primary-glow);
}

.timeline-content {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.9rem;
    font-size: 0.8125rem;
}
.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}
.timeline-actor-pill {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    background: var(--brand-primary-subtle);
    color: var(--brand-primary);
}
.timeline-time {
    font-size: 0.72rem;
    color: var(--text-tertiary);
}

/* ==========================================================================
   12. Command Center Modal (Ctrl + K)
   ========================================================================== */
.command-palette-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(9, 13, 22, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}
.command-palette-backdrop.show {
    display: flex;
}

.command-palette-box {
    width: 100%;
    max-width: 640px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-floating);
    overflow: hidden;
    animation: cmdPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cmdPop {
    from { opacity: 0; transform: scale(0.96) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.command-input-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    gap: 0.75rem;
}
.command-input-row i {
    font-size: 1.25rem;
    color: var(--brand-primary);
}
.command-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.05rem;
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-sans);
}

.command-results-list {
    max-height: 360px;
    overflow-y: auto;
    padding: 0.5rem;
}
.command-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}
.command-result-item:hover, .command-result-item.selected {
    background: var(--bg-surface-hover);
    color: var(--brand-primary);
}
.command-result-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-xs);
    background: var(--brand-primary-subtle);
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.95rem;
}

.command-palette-footer {
    padding: 0.6rem 1.25rem;
    background: var(--bg-surface-subtle);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* ==========================================================================
   13. Empty State Component
   ========================================================================== */
.empty-state-box {
    padding: 3rem 1.5rem;
    text-align: center;
}
.empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand-primary-subtle);
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px var(--brand-primary-glow);
}
.empty-state-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}
.empty-state-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 1.25rem;
}

/* ==========================================================================
   14. Dropdowns, Modals & Floating Tooltips
   ========================================================================== */
.dropdown-menu {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-floating);
    padding: 0.5rem;
    min-width: 210px;
    animation: dropIn 0.15s ease;
}
@keyframes dropIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    color: var(--text-primary);
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-xs);
    font-size: 0.825rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: all var(--transition-fast);
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--bg-surface-hover);
    color: var(--brand-primary);
}
.dropdown-item.text-danger:hover {
    background-color: var(--color-danger-subtle);
    color: var(--color-danger);
}

.modal-content {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-floating);
}
.modal-header {
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 1.5rem;
}
.modal-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 1.25rem 1.5rem;
}

/* ==========================================================================
   15. Preserved 3D Holographic AI Scanner Engine
   ========================================================================== */
.ai-processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2500;
    background: rgba(9, 13, 22, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.glass-card-3d {
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(6, 182, 212, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.3), 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: perspective(1000px) rotateX(8deg) rotateY(-6deg);
    animation: float3DCard 4s ease-in-out infinite alternate;
    transition: all 0.3s ease;
}

@keyframes float3DCard {
    0% { transform: perspective(1000px) rotateX(8deg) rotateY(-6deg) translateY(0px); }
    100% { transform: perspective(1000px) rotateX(4deg) rotateY(-2deg) translateY(-10px); }
}

.laser-horizontal-sweep {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #06b6d4, #3b82f6, transparent);
    box-shadow: 0 0 12px #06b6d4;
    animation: laserHorizontal 2.5s ease-in-out infinite;
}

@keyframes laserHorizontal {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.laser-vertical-sweep {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, #10b981, #06b6d4, transparent);
    box-shadow: 0 0 12px #10b981;
    animation: laserVertical 3s ease-in-out infinite;
}

@keyframes laserVertical {
    0% { left: 0%; }
    50% { left: 100%; }
    100% { left: 0%; }
}

.laser-diagonal-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
    box-shadow: 0 0 12px #8b5cf6;
    animation: laserDiagonal 3.5s linear infinite;
    transform: rotate(25deg);
}

@keyframes laserDiagonal {
    0% { top: -20%; }
    100% { top: 120%; }
}

.magnifier-window {
    position: absolute;
    width: 65px;
    height: 45px;
    border: 2px solid #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.6);
    border-radius: 6px;
    background: rgba(6, 182, 212, 0.15);
    backdrop-filter: blur(2px);
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    top: 20%;
    left: 35%;
}

.floating-match-card {
    position: absolute;
    z-index: 10;
    animation: floatBadge 3s ease-in-out infinite alternate;
}

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

/* ==========================================================================
   16. Mobile Drawer & Responsive Layout (<992px & <768px)
   ========================================================================== */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 12, 0.7);
    backdrop-filter: blur(6px);
    z-index: 1055;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}
.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 991.98px) {
    .app-layout, .admin-layout {
        height: auto !important;
        min-height: 100vh !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow: visible !important;
    }
    
    .app-sidebar, .admin-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: -320px !important;
        width: 280px !important;
        min-width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 1060 !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4) !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    .app-sidebar.show, .admin-sidebar.show {
        left: 0 !important;
    }
    
    .app-main-workspace, .admin-workspace {
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .app-top-header, .admin-header {
        height: 60px !important;
        min-height: 60px !important;
        padding: 0 1rem !important;
    }
    
    .command-trigger-btn {
        padding: 0.4rem 0.6rem;
    }
    .command-trigger-btn span {
        display: none !important;
    }
}

/* Laptop screens (992px to 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .app-top-header, .admin-header {
        padding: 0 1rem !important;
        gap: 0.5rem !important;
    }
    .breadcrumb-active {
        max-width: 110px !important;
    }
    .command-trigger-btn span {
        max-width: 110px !important;
    }
}

@media (max-width: 767.98px) {
    .app-top-header, .admin-header {
        height: 56px !important;
        min-height: 56px !important;
        padding: 0 0.75rem !important;
        gap: 0.4rem !important;
    }
    
    .command-trigger-btn {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        justify-content: center !important;
        border-radius: var(--radius-sm) !important;
        flex-shrink: 0 !important;
    }
    .command-trigger-btn i {
        margin: 0 !important;
    }
    .command-trigger-btn span,
    .command-trigger-btn kbd {
        display: none !important;
    }
    
    .header-action-btn {
        width: 36px !important;
        height: 36px !important;
        flex-shrink: 0 !important;
    }
    
    .user-capsule-btn {
        padding: 0.2rem !important;
        flex-shrink: 0 !important;
    }
    .user-capsule-btn i.bi-chevron-down {
        display: none !important;
    }

    .hero-briefing-banner {
        padding: 1.25rem 1.15rem;
    }
    .hero-greeting-title {
        font-size: 1.35rem;
    }
    
    .bento-kpi-card {
        padding: 1rem;
    }
    .kpi-value-metric {
        font-size: 1.55rem;
    }
    
    .saas-table thead th,
    .saas-table tbody td {
        padding: 0.75rem 0.85rem;
    }
}

/* ==========================================================================
   17. 2026 Universal Component System (Cards, Forms, Buttons, Tables)
   ========================================================================== */
.admin-content {
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    flex: 1;
    min-height: calc(100vh - 130px);
}

/* Cards */
.card {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-card) !important;
    color: var(--text-primary);
    transition: box-shadow var(--transition-base), border-color var(--transition-base);
}
.card:hover {
    border-color: var(--border-strong) !important;
}
.card-header {
    background-color: var(--bg-surface-subtle) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    font-weight: 700;
}
.card-footer {
    background-color: var(--bg-surface-subtle) !important;
    border-top: 1px solid var(--border-subtle) !important;
}

/* Form Controls & Inputs */
.form-control, .form-select {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    padding: 0.55rem 0.85rem;
    transition: all var(--transition-fast);
}
.form-control:focus, .form-select:focus {
    background-color: var(--bg-surface);
    border-color: var(--border-focus);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-subtle);
}
.form-control::placeholder {
    color: var(--text-tertiary);
}
.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}
.input-group-text {
    background-color: var(--bg-surface-subtle);
    border-color: var(--border-subtle);
    color: var(--text-secondary);
}

/* Buttons System */
.btn {
    font-weight: 600;
    font-size: 0.84rem;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}
.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #FFFFFF !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--brand-primary-glow);
}
.btn-outline-primary {
    color: var(--brand-primary) !important;
    border-color: rgba(79, 70, 229, 0.4);
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px var(--brand-primary-glow);
}
.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    border-radius: var(--radius-xs);
}

/* Standard Tables */
.table {
    color: var(--text-primary);
    border-color: var(--border-subtle);
}
.table thead th {
    background-color: var(--bg-surface-subtle);
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-subtle);
}
.table td, .table th {
    vertical-align: middle;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
}
.table-hover tbody tr:hover td {
    background-color: var(--bg-surface-hover) !important;
    color: var(--text-primary);
}

/* Dark Mode Universal Class Adaptations */
[data-theme="dark"] .bg-white {
    background-color: var(--bg-surface) !important;
    color: var(--text-primary) !important;
}
[data-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}
[data-theme="dark"] .text-muted {
    color: var(--text-tertiary) !important;
}
[data-theme="dark"] .bg-light {
    background-color: var(--bg-surface-subtle) !important;
    color: var(--text-primary) !important;
}
[data-theme="dark"] .table-light {
    background-color: var(--bg-surface-subtle) !important;
    color: var(--text-primary) !important;
}
[data-theme="dark"] .list-group-item {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}
[data-theme="dark"] .pagination .page-link {
    background-color: var(--bg-surface);
    border-color: var(--border-subtle);
    color: var(--text-secondary);
}
[data-theme="dark"] .pagination .page-item.active .page-link {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #FFFFFF;
}

/* ==========================================================================
   18. Complete Enterprise 2026 Responsive Engine & Alignment System
   ========================================================================== */

/* Zero Horizontal Overflow Guard */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
.table-responsive::-webkit-scrollbar {
    height: 5px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
}

/* Page Action Headers (Responsive Stacking) */
.page-action-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
@media (min-width: 576px) {
    .page-action-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Touch targets and Mobile Input Sizing */
@media (max-width: 767.98px) {
    .form-control, .form-select {
        font-size: 16px !important; /* Prevents iOS auto-zoom */
        min-height: 44px;
    }
    
    .btn {
        min-height: 40px;
    }
    .btn-sm {
        min-height: 34px;
    }
    
    .modal-dialog {
        margin: 0.5rem auto;
        max-width: calc(100vw - 1rem);
    }
    
    .dropdown-menu-end {
        max-width: calc(100vw - 1.5rem) !important;
    }
}

/* Micro-Mobile (<430px down to 320px) */
@media (max-width: 430px) {
    .app-top-header, .admin-header {
        padding: 0 0.65rem !important;
        gap: 0.4rem !important;
    }
    
    .command-trigger-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        border-radius: var(--radius-sm);
    }
    .command-trigger-btn i {
        margin: 0;
    }
    
    .header-action-btn {
        width: 35px;
        height: 35px;
    }
    
    .user-capsule-btn {
        padding: 0.2rem;
    }
    .user-capsule-btn i.bi-chevron-down {
        display: none !important;
    }
    
    .bento-kpi-card {
        padding: 0.95rem;
    }
    .kpi-value-metric {
        font-size: 1.45rem !important;
    }
    
    .saas-table thead th,
    .saas-table tbody td {
        padding: 0.65rem 0.75rem;
        font-size: 0.78rem;
    }
}

/* Page Action Header & Responsive Flex Layout */
.page-action-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.page-action-header .page-action-title h1,
.page-action-header .page-action-title h2,
.page-action-header .page-action-title h3,
.page-action-header .page-action-title h4 {
    margin-bottom: 0.25rem;
    font-weight: 700;
}
.page-action-header .page-action-title p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.875rem;
}
.page-action-header .page-action-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 575.98px) {
    .page-action-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .page-action-header .page-action-controls {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Truncated Hash Pills for SHA-256 Vault Verification */
.hash-truncate-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.78rem;
    background: var(--bg-surface-subtle);
    color: var(--brand-primary);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    user-select: all;
}
.hash-truncate-pill:hover {
    background: var(--brand-primary-subtle);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* ==========================================================================
   2026 Enterprise SaaS Landing Page Design System (Checkmate4U Home Experience)
   ========================================================================== */

/* Navbar Glassmorphism */
.landing-navbar {
    background: var(--bg-header) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
    z-index: 1050;
}
.landing-nav-link {
    color: var(--text-secondary) !important;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem !important;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
}
.landing-nav-link:hover, .landing-nav-link:focus {
    color: var(--brand-primary) !important;
    background: var(--brand-primary-subtle);
}

/* Atmospheric Mesh Hero */
.hero-mesh {
    position: relative;
    overflow: hidden;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    background-color: var(--bg-canvas);
    background-image: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(6, 182, 212, 0.08) 0px, transparent 50%);
}
[data-theme="dark"] .hero-mesh {
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.22) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.20) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(6, 182, 212, 0.12) 0px, transparent 50%);
}

/* Hero Mesh Grid Overlay */
.hero-mesh::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
                      linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.35;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 80%);
}

/* Hero Badge Capsule */
.hero-badge-capsule {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
}
.hero-badge-capsule:hover {
    border-color: var(--brand-primary);
    transform: translateY(-1px);
}
.hero-badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* High-Impact Headline */
.hero-headline {
    font-size: clamp(1.75rem, 5.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.18;
    color: var(--text-primary);
    overflow-wrap: break-word;
    word-break: normal;
}
.gradient-text {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 45%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
[data-theme="dark"] .gradient-text {
    background: linear-gradient(135deg, #818CF8 0%, #A78BFA 45%, #38BDF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 575.98px) {
    .hero-mesh {
        padding-top: 2.25rem;
        padding-bottom: 2.5rem;
    }
    .hero-badge-capsule {
        max-width: 100%;
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }
}

/* Hero Cyber Cockpit Card */
.hero-cockpit-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-floating);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.hero-cockpit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(99, 102, 241, 0.35);
}
.cockpit-header {
    background: var(--bg-surface-subtle);
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cockpit-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cockpit-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.cockpit-feed-item {
    padding: 0.6rem 0.85rem;
    background: var(--bg-surface-subtle);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    font-size: 0.775rem;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Demo Portal Cards (3 Roles: Admin, Vendor, User) */
.role-portal-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}
.role-portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent-grad);
}
.role-portal-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-accent-border);
    box-shadow: 0 16px 36px -10px var(--card-accent-shadow);
}
.role-portal-card.role-admin {
    --card-accent-grad: linear-gradient(90deg, #4F46E5, #7C3AED);
    --card-accent-border: rgba(79, 70, 229, 0.4);
    --card-accent-shadow: rgba(79, 70, 229, 0.2);
}
.role-portal-card.role-vendor {
    --card-accent-grad: linear-gradient(90deg, #F59E0B, #EA580C);
    --card-accent-border: rgba(245, 158, 11, 0.4);
    --card-accent-shadow: rgba(245, 158, 11, 0.2);
}
.role-portal-card.role-user {
    --card-accent-grad: linear-gradient(90deg, #10B981, #06B6D4);
    --card-accent-border: rgba(16, 185, 129, 0.4);
    --card-accent-shadow: rgba(16, 185, 129, 0.2);
}

.role-icon-avatar {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
.role-creds-box {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.775rem;
}
.copy-badge-btn {
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: var(--radius-xs);
    padding: 0.15rem 0.45rem;
    font-size: 0.72rem;
    transition: all var(--transition-fast);
}
.copy-badge-btn:hover {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

/* Live Telemetry Ribbon */
.telemetry-ribbon {
    background: var(--bg-surface-elevated);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 2.5rem 0;
    position: relative;
}
.telemetry-kpi-item {
    padding: 1rem;
    text-align: center;
    position: relative;
    transition: transform var(--transition-fast);
}
.telemetry-kpi-item:hover {
    transform: translateY(-2px);
}
.telemetry-icon-pill {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

/* Bento Feature Grid & Capabilities */
.bento-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    position: relative;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}
.bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: var(--shadow-card-hover);
}
.bento-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

/* AI Engine Modules */
.ai-module-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: 100%;
    transition: all var(--transition-base);
}
.ai-module-card:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 12px 28px -6px rgba(139, 92, 246, 0.15);
}

/* Workflow Pipeline Connector */
.workflow-stepper {
    position: relative;
}
.workflow-step-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    height: 100%;
    position: relative;
    z-index: 2;
    transition: all var(--transition-base);
}
.workflow-step-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-card-hover);
}
.workflow-step-number {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #7C3AED 100%);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 12px var(--brand-primary-glow);
}

/* Comparison Matrix Styling */
.comparison-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.comparison-table th {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}
.comparison-table td {
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.875rem;
}

/* Modern FAQ Accordion */
.modern-accordion .accordion-item {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md) !important;
    margin-bottom: 0.85rem;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
}
.modern-accordion .accordion-item:hover {
    border-color: var(--brand-primary);
}
.modern-accordion .accordion-button {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 1.15rem 1.35rem;
    box-shadow: none !important;
}
.modern-accordion .accordion-button:not(.collapsed) {
    background: var(--bg-surface-subtle);
    color: var(--brand-primary);
    border-bottom: 1px solid var(--border-subtle);
}
.modern-accordion .accordion-body {
    background: var(--bg-surface-elevated);
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    padding: 1.25rem 1.35rem;
}

/* Contact Inquiries Section */
.contact-inquiry-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    box-shadow: var(--shadow-md);
}

/* Micro font-size utility classes */
.fs-7 { font-size: 0.825rem !important; }
.fs-8 { font-size: 0.75rem !important; }

/* Modern SaaS Footer & Evidentiary Standards Contrast */
.modern-footer, footer.bg-sidebar {
    background: #090D16 !important;
    color: #94A3B8;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 4.5rem;
    padding-bottom: 2.5rem;
}
.modern-footer .text-muted,
footer.bg-sidebar .text-muted,
.modern-footer p.text-muted,
footer.bg-sidebar p.text-muted {
    color: #94A3B8 !important;
}
.modern-footer .footer-desc {
    color: #94A3B8;
    font-size: 0.875rem;
    line-height: 1.6;
}
.footer-heading {
    color: #FFFFFF !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
}
.footer-link {
    color: #94A3B8 !important;
    text-decoration: none;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.65rem;
    transition: all var(--transition-fast);
}
.footer-link:hover {
    color: #38BDF8 !important;
    transform: translateX(3px);
}
.footer-badge-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #E2E8F0 !important;
    font-size: 0.825rem;
    font-weight: 500;
    margin-bottom: 0.7rem;
    transition: transform var(--transition-fast);
}
.footer-badge-item:hover {
    transform: translateX(3px);
    color: #FFFFFF !important;
}
.footer-badge-item i {
    color: #10B981 !important;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Universal Landing Page Responsive & Container Protection */
body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}
.landing-navbar, .hero-mesh, .telemetry-ribbon, footer {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}
.comparison-card {
    max-width: 100% !important;
    overflow: hidden !important;
}
.comparison-card .table-responsive {
    max-width: 100% !important;
    overflow-x: auto !important;
}

@media (max-width: 575.98px) {
    .telemetry-kpi-item {
        padding: 0.5rem 0.25rem;
    }
    .telemetry-kpi-item small {
        font-size: 0.68rem !important;
        line-height: 1.2;
        display: block;
        word-break: normal;
    }
    .role-portal-card {
        padding: 1.15rem;
    }
    .bento-card, .ai-module-card, .workflow-step-card {
        padding: 1.15rem;
    }
    .contact-inquiry-card {
        padding: 1.25rem;
    }
    .landing-navbar .navbar-brand {
        max-width: calc(100% - 54px);
    }
}

/* ==========================================================================
   Vibrant Yellow Blinking & Glowing Brand Credit
   ========================================================================== */
.brand-highlight-blink {
    color: #FACC15 !important; /* Vibrant Yellow */
    font-weight: 800;
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-xs);
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.35);
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.75);
    animation: brand-yellow-blink 1.4s ease-in-out infinite alternate;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

@keyframes brand-yellow-blink {
    0% {
        color: #FACC15;
        background: rgba(250, 204, 21, 0.10);
        border-color: rgba(250, 204, 21, 0.25);
        text-shadow: 0 0 6px rgba(250, 204, 21, 0.5);
        opacity: 0.85;
        transform: scale(1);
    }
    50% {
        color: #FEF08A; /* Super vibrant electric yellow */
        background: rgba(250, 204, 21, 0.25);
        border-color: rgba(250, 204, 21, 0.7);
        text-shadow: 0 0 16px rgba(250, 204, 21, 1), 0 0 26px rgba(245, 158, 11, 0.9);
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        color: #F59E0B; /* Warm golden amber */
        background: rgba(245, 158, 11, 0.18);
        border-color: rgba(245, 158, 11, 0.45);
        text-shadow: 0 0 10px rgba(245, 158, 11, 0.7);
        opacity: 0.9;
        transform: scale(1);
    }
}

[data-theme="light"] .brand-highlight-blink {
    color: #b45309 !important;
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.35);
}






