/* Tech Spartan Business OS (METS) - Luxury Enterprise Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,700&display=swap');

body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', sans-serif !important;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

:root {
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    
    /* Executive Platinum Silver & Deep Navy Palette (Matching Master UI Mockup Screenshot) */
    --bg-body: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-hover: #f1f5f9;
    
    /* Executive Deep Navy & Royal Indigo Blue */
    --primary: #0f2942;
    --primary-hover: #081726;
    --primary-light: #eff6ff;
    --primary-glow: rgba(15, 41, 66, 0.12);
    
    --secondary: #2563eb;
    --secondary-hover: #1d4ed8;
    
    --accent-emerald: #16a34a;
    --accent-amber: #f97316;
    --accent-rose: #ef4444;
    --accent-purple: #8b5cf6;
    --accent-cyan: #0284c7;
    
    /* Typography Colors */
    --text-main: #0f2942;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    /* Borders & Pearl Shadows */
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --border-focus: #2563eb;
    
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.03);
    --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 18px 0 rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 25px -4px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 20px 40px -8px rgba(15, 23, 42, 0.12);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Base Layout Framework */
.app-container {
    display: flex;
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Login & Registration Screen Design System */
.login-container {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.20) 0%, rgba(15, 41, 66, 0.55) 50%, rgba(15, 23, 42, 0.88) 100%), url('../images/bg/techspartan_hd_brand_bg.jpg') no-repeat center center / cover;
    padding: 24px 6vw;
    position: relative;
}

.login-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .login-container {
        justify-content: center;
        padding: 16px;
    }
}

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.brand-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px auto;
}

.brand-icon svg {
    width: 56px !important;
    height: 56px !important;
}

.login-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.login-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Sidebar Fixed Positioning */
.sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.sidebar-header {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.sidebar-menu {
    padding: 16px 12px;
    overflow-y: auto;
    flex: 1;
}

.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;
}

.menu-category {
    font-size: 0.675rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 14px 10px 4px 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    margin-bottom: 3px;
    transition: var(--transition);
}

.menu-item svg {
    width: 17px;
    height: 17px;
    stroke: var(--text-secondary);
    fill: none;
    stroke-width: 2;
    transition: var(--transition);
}

.menu-item:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.menu-item:hover svg {
    stroke: var(--primary);
}

.menu-item.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
    border-left: 3px solid var(--primary);
}

.menu-item.active svg {
    stroke: var(--primary);
}

.badge-count {
    margin-left: auto;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    border: 1px solid rgba(0, 87, 217, 0.2);
}

/* Main Area Layout Fixes */
.main-wrapper {
    margin-left: 260px;
    width: calc(100% - 260px);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-body);
    min-width: 0;
}

/* Top Navbar */
.top-navbar {
    height: 68px;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: var(--shadow-xs);
}

.search-bar {
    position: relative;
    width: 340px;
    max-width: 100%;
}

.search-bar input {
    width: 100%;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 9px 16px 9px 40px;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.search-bar input:focus {
    background: #ffffff;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: var(--text-muted);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.quick-add-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 9px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 87, 217, 0.25);
    transition: var(--transition);
}

.quick-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 87, 217, 0.35);
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover {
    color: var(--primary);
    background: var(--primary-light);
    border-color: rgba(0, 87, 217, 0.3);
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: #ffffff;
    transition: var(--transition);
}

.user-profile-btn:hover {
    background: var(--bg-subtle);
    border-color: var(--border-hover);
}

.user-avatar-badge {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0057d9 0%, #0f172a 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0, 87, 217, 0.3);
    border: 2px solid #ffffff;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.user-role {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
}

/* Spacious Content Body */
.content-body {
    padding: 32px 36px;
    flex: 1;
    width: 100%;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.page-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 3px;
}

/* Spacious UI Cards & Moveable Widget Containers */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
    transition: var(--transition);
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Screenshot-Matched Financial Overview Line Item Styling */
.overview-item-row {
    margin-bottom: 12px;
}

.overview-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.overview-item-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.overview-item-label.active-dark { color: #334155; font-weight: 600; }
.overview-item-label.active-red { color: #dc2626; font-weight: 600; }
.overview-item-label.active-green { color: #16a34a; font-weight: 600; }
.overview-item-label.active-blue { color: #2563eb; font-weight: 600; }
.overview-item-label.active-amber { color: #d97706; font-weight: 600; }

.overview-item-percent {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.overview-progress-bar-bg {
    height: 5px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.overview-progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Summary Boxes */
.summary-box-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-xs);
}

.summary-box-title {
    font-size: 0.825rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.summary-box-title.amber { color: #d97706; }
.summary-box-title.slate { color: #64748b; }
.summary-box-title.emerald { color: #16a34a; }

.summary-box-amount {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
}

/* Widget Move Controls */
.widget-controls {
    position: absolute;
    top: 14px;
    right: 18px;
    display: flex;
    gap: 4px;
    opacity: 0.4;
    transition: var(--transition);
}

.card:hover .widget-controls {
    opacity: 1;
}

.widget-mover-btn {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.7rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.widget-mover-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Data Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: #ffffff;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    background: #f8fafc;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-primary);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-active, .badge-success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-inactive, .badge-danger {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.badge-warning {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-info, .badge-primary {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 87, 217, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(0, 87, 217, 0.35);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--border-hover);
}

.btn-danger {
    background: var(--accent-rose);
    color: #ffffff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.775rem;
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Modal Engine System (Centered Popup Box) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.modal-box {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 32px;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-rose);
}

.modal-scroll-body {
    max-height: calc(75vh - 120px);
    overflow-y: auto;
    padding-right: 6px;
    margin-bottom: 12px;
}

.modal-sticky-footer {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    border-top: 1.5px solid var(--border-color);
    padding: 14px 0 0 0;
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

/* Toast Alerts & Audio Popups */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    color: var(--text-main);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Mobile Breakpoints */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }
    #sidebarToggle {
        display: flex !important;
    }
    .content-body {
        padding: 20px;
    }
}

/* ==========================================================================
   TECH SPARTAN REAL ESTATE CRM + OVO UNIFIED DESIGN SYSTEM STANDARDS
   Enterprise MNC Light Palette + Luxury Navy Operations Architecture
   ========================================================================== */

:root {
    --spartan-primary: #2563EB;
    --spartan-primary-hover: #1D4ED8;
    --spartan-primary-light: #EFF6FF;
    --spartan-primary-border: #BFDBFE;
    --spartan-accent: #3B82F6;
    --spartan-gold: #D97706;
    --spartan-gold-light: #FEF3C7;
    --spartan-emerald: #059669;
    --spartan-emerald-light: #ECFDF5;
    --spartan-rose: #E11D48;
    --spartan-rose-light: #FFF1F2;
    --spartan-amber: #D97706;
    --spartan-amber-light: #FFFBEB;
    --spartan-purple: #7C3AED;
    --spartan-purple-light: #F5F3FF;
    --spartan-bg: #F8FAFC;
    --spartan-surface: #FFFFFF;
    --spartan-surface-alt: #F1F5F9;
    --spartan-border: #E2E8F0;
    --spartan-border-subtle: #F1F5F9;
    --spartan-border-strong: #CBD5E1;
    --spartan-text-main: #0F172A;
    --spartan-text-muted: #475569;
    --spartan-radius: 14px;
    --spartan-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --spartan-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px -1px rgba(0, 0, 0, 0.07);
    --spartan-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.07);
    --spartan-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
}

/* OVO Luxury Navy & Emerald Gradients */
.bg-ovo-navyDark { background-color: #03172F !important; }
.bg-ovo-navy { background-color: #0A2540 !important; }
.bg-ovo-emerald { background-color: #064E3B !important; }
.bg-ovo-emeraldDeep { background-color: #022C22 !important; }
.text-ovo-navy { color: #0A2540 !important; }
.text-ovo-emerald { color: #064E3B !important; }

.ovo-hero-gradient, .ovo-gradient-hero {
    background: linear-gradient(135deg, #03172F 0%, #0A2540 50%, #03172F 100%) !important;
    color: #FFFFFF !important;
}

.ovo-glass-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.ovo-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04);
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ovo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(10, 37, 64, 0.08);
    border-color: #CBD5E1;
}

/* Clean MNC Card */
.mnc-card {
    background-color: #FFFFFF;
    border: 1px solid var(--spartan-border);
    border-radius: var(--spartan-radius);
    box-shadow: var(--spartan-shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mnc-card:hover {
    box-shadow: var(--spartan-shadow);
    border-color: #CBD5E1;
}

.mnc-card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--spartan-border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mnc-card-body {
    padding: 22px;
}

/* Buttons */
.mnc-btn-primary {
    background-color: var(--spartan-primary);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(37, 99, 235, 0.2);
    transition: all 0.15s ease;
    text-decoration: none;
}

.mnc-btn-primary:hover {
    background-color: var(--spartan-primary-hover);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.25);
    color: #FFFFFF;
}

.mnc-btn-secondary {
    background-color: #FFFFFF;
    color: #334155;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid var(--spartan-border);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.mnc-btn-secondary:hover {
    background-color: #F8FAFC;
    border-color: var(--spartan-border-strong);
    color: #1E293B;
}

/* Badges & Tags */
.mnc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.mnc-badge-primary { background-color: var(--spartan-primary-light); color: var(--spartan-primary); border: 1px solid var(--spartan-primary-border); }
.mnc-badge-success { background-color: var(--spartan-emerald-light); color: var(--spartan-emerald); border: 1px solid #A7F3D0; }
.mnc-badge-warning { background-color: var(--spartan-amber-light); color: var(--spartan-amber); border: 1px solid #FDE68A; }
.mnc-badge-danger  { background-color: var(--spartan-rose-light); color: var(--spartan-rose); border: 1px solid #FECDD3; }
.mnc-badge-purple  { background-color: var(--spartan-purple-light); color: var(--spartan-purple); border: 1px solid #DDD6FE; }
.mnc-badge-neutral { background-color: #F1F5F9; color: #475569; border: 1px solid var(--spartan-border); }

/* Table Styling */
.mnc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12.5px;
}

.mnc-table th {
    background-color: #F8FAFC;
    color: #64748B;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--spartan-border);
    text-align: left;
}

.mnc-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--spartan-border-subtle);
    color: #1E293B;
    vertical-align: middle;
}

.mnc-table tr:hover td {
    background-color: #F8FAFC;
}

/* Pulse indicator */
.mnc-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--spartan-emerald);
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4);
    animation: mnc-pulse-anim 2s infinite;
    display: inline-block;
}

@keyframes mnc-pulse-anim {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

/* Hero KPI Card with Subtle Top Accent */
.hero-kpi-card {
    background: #FFFFFF;
    border: 1px solid var(--spartan-border);
    border-radius: var(--spartan-radius);
    padding: 18px 20px;
    box-shadow: var(--spartan-shadow-sm);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

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

.hero-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, #2563EB);
    opacity: 0.85;
}

/* Toggle Switch */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    transition: .25s;
    border-radius: 24px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .25s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .slider-round {
    background-color: #2563EB;
}

input:checked + .slider-round:before {
    transform: translateX(20px);
}

/* ==========================================================================
   UNIVERSAL INTERACTIVE 3D CARD HOVER ELEVATION & GLOW SYSTEM
   Ensures consistent, luxury cursor hover effects across all CRM modules & boxes
   ========================================================================== */
.card,
.mnc-card,
.ovo-card,
.hero-kpi-card,
.crm-card,
.lead-executive-card,
.summary-box-card,
.stat-card,
.hosting-card,
.domain-card,
.cust-card,
.kpi-box,
.overview-card,
.service-card,
[class*="kpi-card"],
.leads-stat-pill {
    transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.24s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.24s ease !important;
}

.card:hover,
.mnc-card:hover,
.ovo-card:hover,
.hero-kpi-card:hover,
.crm-card:hover,
.lead-executive-card:hover,
.summary-box-card:hover,
.stat-card:hover,
.hosting-card:hover,
.domain-card:hover,
.cust-card:hover,
.kpi-box:hover,
.overview-card:hover,
.service-card:hover,
[class*="kpi-card"]:hover,
.leads-stat-pill:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04) !important;
    border-color: #93c5fd !important;
}

/* ==========================================================================
   INTERACTIVE 3D HOVER DOSSIER POPOVER BOX
   Displays an instant, sleek 3D micro-card when hovering over any domain or client
   ========================================================================== */
.crm-dossier-popover {
    position: fixed;
    display: none;
    z-index: 999999;
    width: 400px;
    max-width: 92vw;
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.75), 0 0 0 1.5px rgba(99, 102, 241, 0.5);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(4px) scale(0.98);
    opacity: 0;
}

.crm-dossier-popover.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.crm-dossier-popover::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 28px;
    width: 12px;
    height: 12px;
    background: #0f172a;
    border-left: 1.5px solid rgba(99, 102, 241, 0.5);
    border-top: 1.5px solid rgba(99, 102, 241, 0.5);
    transform: rotate(45deg);
}

.crm-dossier-popover.flipped::after {
    top: auto;
    bottom: -6px;
    border-left: none;
    border-top: none;
    border-right: 1.5px solid rgba(99, 102, 241, 0.5);
    border-bottom: 1.5px solid rgba(99, 102, 241, 0.5);
    background: #1e1b4b;
}


