:root {
    /* Colors - 2026 Executive Luxury (Refined) */
    --bg-body: #06060c;
    --bg-sidebar: #0b0b14;
    --bg-card: rgba(18, 18, 29, 0.7);
    --bg-hover: rgba(255, 255, 255, 0.05);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.4);

    --primary: #009EF7;
    --primary-rgb: 0, 158, 247;
    --primary-deep: #0072b1;
    --primary-glow: transparent;
    --primary-shimmer: none;

    --success: #17c653;
    --success-rgb: 23, 198, 83;
    --success-glow: transparent;

    --warning: #f6c000;
    --warning-rgb: 246, 192, 0;
    --warning-glow: transparent;

    --danger: #f8285a;
    --danger-rgb: 248, 40, 90;
    --danger-glow: transparent;

    --info: #7239ea;
    --info-rgb: 114, 57, 234;
    --teal: #00d2b6;

    --bg-card-rgb: 18, 18, 29;
    --bg-body-rgb: 6, 6, 12;
    --bg-sidebar-rgb: 11, 11, 20;
    --text-primary-rgb: 255, 255, 255;
    --text-muted-rgb: 255, 255, 255;

    --border: rgba(255, 255, 255, 0.04);
    --border-bright: rgba(255, 255, 255, 0.08);
    --border-luxury: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.05);

    /* Dropdown Modernization Tokens */
    --bg-0: #06060c;
    --bg-1: #0b0b14;
    --text-0: #ffffff;
    --text-1: rgba(255, 255, 255, 0.65);
    --accent: #f8285a;

    /* ============================================
       DESIGN SYSTEM - Typography Scale
       ============================================ */
    --font-title: 28px;
    /* H1 - Page titles */
    --font-section: 20px;
    /* H2 - Section headings */
    --font-card-title: 16px;
    /* H3 - Card titles */
    --font-body: 14px;
    /* Body text */
    --font-small: 12px;
    /* Small text, labels */

    /* ============================================
       DESIGN SYSTEM - Spacing Scale
       ============================================ */
    --space-xs: 6px;
    --space-sm: 10px;
    --space-md: 14px;
    --space-lg: 18px;
    --space-xl: 24px;
    --space-2xl: 32px;

    /* ============================================
       DESIGN SYSTEM - Component Sizes
       ============================================ */
    --btn-height-sm: 32px;
    --btn-height-md: 40px;
    --btn-height-lg: 48px;
    --input-height: 40px;
    /* Radii - Forced Square Per User Request */
    --card-radius: 0px;
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;

    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-luxury: none;
    --shadow-deep: none;
    --glass-blur: 45px;

    /* Motion Tokens */
    --anim-hover: 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
    --anim-click: 150ms ease;
    --anim-page: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --ease-executive: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --anim-feedback: 0.6s;

    --sidebar-width: 270px;
    --topbar-height: 80px;
}

[data-theme="light"] {
    /* Background Surfaces - ALL WHITE */
    --bg-body: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f8f9fa;
    --bg-surface-2: #ffffff;

    /* Text Colors - Dark for contrast */
    --text-primary: #181c32;
    --text-secondary: #5e6278;
    --text-muted: #a1a5b7;

    /* Borders - Subtle gray borders */
    --border: rgba(0, 0, 0, 0.08);
    --border-bright: rgba(0, 0, 0, 0.12);
    --border-luxury: rgba(0, 0, 0, 0.15);
    --glass-border: rgba(0, 0, 0, 0.06);

    /* RGB Values */
    --bg-card-rgb: 255, 255, 255;
    --bg-body-rgb: 255, 255, 255;
    --text-primary-rgb: 24, 28, 50;

    /* Shadows - Soft shadows for depth */
    --shadow-luxury: 0 2px 15px rgba(0, 0, 0, 0.06);
    --shadow-deep: 0 4px 25px rgba(0, 0, 0, 0.1);

    /* Scrollbar Light */
    --scrollbar-thumb: rgba(0, 0, 0, 0.15);
    --scrollbar-thumb-hover: rgba(0, 0, 0, 0.25);
}

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

/* Smooth Theme Transition */
body,
.sidebar,
.topbar,
.card,
.kpi-card,
.btn-primary,
.btn-secondary,
input,
select,
textarea {
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

/* Base Scrollbars - Dark theme default (no white) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 100, 120, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 100, 120, 0.5);
}

/* Light mode scrollbar */
[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Grand Body styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 158, 247, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(114, 57, 234, 0.06) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 210, 182, 0.06) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(248, 40, 90, 0.04) 0px, transparent 50%),
        linear-gradient(to bottom, rgba(6, 6, 12, 0) 0%, rgba(6, 6, 12, 0.8) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.01em;
}

/* Executive Form Base */
.form-control,
.input-field,
.input-select,
.input-date {
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0 20px;
    font-size: 14px;
    font-family: var(--font-body);
    transition: var(--anim-hover);
    width: 100%;
    backdrop-filter: blur(20px);
    outline: none;
    display: flex;
    align-items: center;
}

.form-control:focus,
.input-field:focus,
.input-select:focus,
.input-date:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 6px var(--primary-glow), 0 20px 40px -12px rgba(0, 0, 0, 0.6);
    transform: translateY(-3px) scale(1.01);
}

/* Executive Search Box Enhancement */
.search-box {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
    transition: var(--anim-hover);
    z-index: 5;
}

.search-box input {
    padding-left: 54px !important;
}

.search-box:focus-within .search-icon {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.form-control:focus,
.input-field:focus,
.input-select:focus,
.input-date:focus,
.search-box input:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-glow), 0 12px 24px -8px rgba(0, 0, 0, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* Minimalist Select Styling - Grand Premium 2026 Executive */
select.form-control,
.input-select {
    cursor: pointer !important;
    appearance: none !important;
    background-image: none !important;
    padding-right: 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

select.form-control:hover,
.input-select:hover {
    border-color: var(--border-bright) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

select.form-control option {
    background-color: #0b0b14 !important;
    /* Fixed dark background for executive clarity */
    color: var(--text-primary) !important;
    padding: 15px !important;
    font-weight: 600 !important;
}

/* ============================================
   MODERN NATIVE SELECT WRAPPER
   ============================================ */
.select-wrap {
    position: relative;
    width: 100%;
    display: inline-block;
}

/* Dropdown Caret Icon */
.select-wrap .caret {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
    font-size: 12px;
    transition: var(--anim-hover);
    z-index: 2;
}

/* Focus interaction for caret */
.select-wrap:focus-within .caret {
    color: var(--accent);
    transform: translateY(-50%) rotate(180deg);
}

.select-wrap select.form-control {
    width: 100%;
    padding-right: 40px !important;
    /* Space for the caret */
}

/* Base override for valid/invalid state */
.select-wrap select.form-control:invalid {
    border-color: var(--danger) !important;
}

.select-wrap select.form-control:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* ============================================
   MODERN SELECT (CUSTOM JAVASCRIPT DROPDOWN)
   ============================================ */
.msel {
    position: relative;
    width: 100%;
    font-family: var(--font-body-family);
    font-size: 14px;
}

/* The actual control input area */
.msel__control {
    min-height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 2px 40px 2px 12px;
    /* right padding for caret/clear buttons */
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    cursor: pointer;
    transition: var(--anim-hover);
    backdrop-filter: blur(20px);
}

/* Interaction States */
.msel__control:hover {
    border-color: var(--border-bright);
    background: rgba(255, 255, 255, 0.05);
}

.msel.is-open .msel__control,
.msel.is-focused .msel__control {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(248, 40, 90, 0.15);
    /* Red Accent Glow */
    transform: translateY(-1px);
}

.msel.is-disabled .msel__control {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Multi-select Chips */
.msel__chip {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.msel__chip-remove {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
}

.msel__chip-remove:hover {
    color: var(--danger);
}

/* Search input inside control */
.msel__search {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: inherit;
    padding: 8px 0;
    flex-grow: 1;
    min-width: 60px;
}

.msel__search::placeholder {
    color: var(--text-muted);
}

/* Indicators (Clear X, Caret) */
.msel__indicators {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.msel__clear-indicator {
    cursor: pointer;
    transition: color 0.2s;
}

.msel__clear-indicator:hover {
    color: var(--danger);
}

.msel__dropdown-indicator {
    transition: transform 0.3s;
    pointer-events: none;
}

.msel.is-open .msel__dropdown-indicator {
    transform: rotate(180deg);
    color: var(--accent);
}

/* The Popup Menu */
.msel__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: var(--bg-1);
    border: 1px solid var(--border-luxury);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(25px);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.msel.is-open .msel__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Menu Dropdown Scrollbar */
.msel__menu::-webkit-scrollbar {
    width: 6px;
}

.msel__menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.msel__menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* List Items */
.msel__option {
    padding: 10px 14px;
    cursor: pointer;
    color: var(--text-1);
    transition: var(--anim-hover);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.msel__option:hover,
.msel__option.is-focused {
    background: var(--bg-hover);
    color: var(--text-primary);
    padding-left: 18px;
    /* Micro-interaction jump */
}

.msel__option.is-selected {
    background: rgba(0, 158, 247, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.msel__no-options {
    padding: 14px;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

.form-group label {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: var(--text-muted) !important;
    margin-bottom: 10px !important;
    display: block !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.form-control:focus,
.input-field:focus,
.input-select:focus,
.search-box input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow:
        0 0 0 4px var(--primary-glow),
        0 15px 30px -10px rgba(0, 0, 0, 0.6),
        inset 0 0 10px rgba(0, 158, 247, 0.1);
    transform: translateY(-2px);
}



a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    border: none;
    outline: none;
}

/* Modern Typography - Clean & Simple */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: 28px;
    font-weight: 700;
}

h2 {
    font-size: 22px;
    font-weight: 600;
}

h3 {
    font-size: 18px;
    font-weight: 600;
}

h4 {
    font-size: 15px;
    font-weight: 600;
}

h5,
h6 {
    font-size: 13px;
    font-weight: 600;
}

p,
span,
label,
td,
th,
li {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

input,
select,
textarea {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    letter-spacing: -0.01em;
}

/* Layout Grid */
.app-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: var(--topbar-height) 1fr;
    height: 100vh;
}

/* Sidebar - Modern Colorful Premium */
.sidebar {
    grid-row: 1 / -1;
    grid-column: 1 / 2;
    background: #0d0d14;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    z-index: 100;
    backdrop-filter: blur(var(--glass-blur));
    box-shadow:
        20px 0 60px rgba(0, 0, 0, 0.6),
        inset -1px 0 0 rgba(255, 255, 255, 0.03);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Sidebar Animated Gradient Border */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg,
            #7c3aed 0%,
            #06b6d4 25%,
            #10b981 50%,
            #f43f5e 75%,
            #3b82f6 100%);
    opacity: 0.6;
    animation: sidebarBorderPulse 8s ease-in-out infinite;
}

/* Sidebar Ambient Glow - Removed for uniform color */

@keyframes sidebarBorderPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

.brand {
    padding: 0 20px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), #00d2b6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 0 20px var(--primary-glow);
}

.brand h1 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.brand span {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.nav-section {
    padding: 10px 20px 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin: 1px 8px;
    border-radius: 10px;
    color: var(--text-secondary);
    transition: var(--anim-hover);
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
    font-size: 13px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    transform: translateX(8px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(0, 158, 247, 0.15) 0%, transparent 100%);
    color: var(--primary);
    font-weight: 700;
    border: 1px solid rgba(0, 158, 247, 0.1);
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 15%;
    height: 70%;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--teal));
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 20px var(--primary-glow);
}

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

.nav-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Colored Icons - Gradient System */
/* B2B - Corporate Building Icon */
.nav-item[data-target="b2b"] .nav-icon {
    color: #7c3aed;
    filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.4));
}

/* B2C - User Icon */
.nav-item[data-target="b2c"] .nav-icon {
    color: #06b6d4;
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.4));
}

/* Analytics - Chart Icon */
.nav-item[data-target="analytics"] .nav-icon {
    color: #f59e0b;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4));
}

/* Mail - Envelope Icon */
.nav-item[data-target="mail"] .nav-icon {
    color: #ec4899;
    filter: drop-shadow(0 0 6px rgba(236, 72, 153, 0.4));
}

/* Templates - Layer Icon */
.nav-item[data-target="templates"] .nav-icon {
    color: #8b5cf6;
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.4));
}

/* Automation - Bolt Icon */
.nav-item[data-target="automation"] .nav-icon {
    color: #fbbf24;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.4));
}

/* Email Logs - List Icon */
.nav-item[data-target="email_logs"] .nav-icon {
    color: #a78bfa;
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.4));
}

/* Quotes - Invoice Icon */
.nav-item[data-target="quotes"] .nav-icon {
    color: #10b981;
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.4));
}

/* Bookings - Plane Icon */
.nav-item[data-target="bookings"] .nav-icon {
    color: #3b82f6;
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.4));
}

/* Campaigns - Bullhorn Icon */
.nav-item[data-target="campaigns"] .nav-icon {
    color: #f43f5e;
    filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.4));
}

/* Audiences - Users Icon */
.nav-item[data-target="audiences"] .nav-icon {
    color: #14b8a6;
    filter: drop-shadow(0 0 6px rgba(20, 184, 166, 0.4));
}

/* Invoices - File Invoice Icon */
.nav-item[data-target="invoices"] .nav-icon {
    color: #22c55e;
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.4));
}

/* WhatsApp - Brand Icon */
.nav-item[data-target="whatsapp"] .nav-icon {
    color: #22c55e;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
}

/* Catalogue - Book Icon */
.nav-item[data-target="catalogues"] .nav-icon {
    color: #f97316;
    filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.4));
}

/* Catalogue Import - File Import Icon */
.nav-item[data-target="catalogue_import"] .nav-icon {
    color: #8b5cf6;
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.4));
}

/* New Catalogue - Plus Icon */
.nav-item[data-target="catalogue_new"] .nav-icon {
    color: #ec4899;
    filter: drop-shadow(0 0 6px rgba(236, 72, 153, 0.4));
}

/* Lead Filter - Filter Icon */
.nav-item[data-target="lead_filter"] .nav-icon {
    color: #06b6d4;
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.4));
}

/* Enrichment - Wand Icon */
.nav-item[data-target="lead_enrich"] .nav-icon {
    color: #d946ef;
    filter: drop-shadow(0 0 6px rgba(217, 70, 239, 0.4));
}

/* Duplicates - Clone Icon */
.nav-item[data-target="lead_duplicates"] .nav-icon {
    color: #f43f5e;
    filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.4));
}

/* Email Verify - Shield/Check Icon */
.nav-item[data-target="lead_verify"] .nav-icon {
    color: #10b981;
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.4));
}

/* Settings - Gear Icon */
.nav-item[data-target="settings"] .nav-icon {
    color: #60a5fa;
    filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.5));
}

/* Icon Hover Enhancement */
.nav-item:hover .nav-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px currentColor);
}

/* Active State - Icon Glow Boost */
.nav-item.active .nav-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px currentColor) brightness(1.2);
}

.badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.badge-blue {
    background-color: var(--primary);
    color: white;
}

.badge-green {
    background-color: var(--success);
    color: white;
}

.user-profile {
    margin-top: auto;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    background: #0d0d14;
    position: relative;
    z-index: 2;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.user-info h4 {
    font-size: 14px;
    color: var(--text-primary);
}

.user-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Logout Button - Red Color */
.user-profile .icon-btn {
    color: #f43f5e !important;
    filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.4));
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile .icon-btn:hover {
    color: #ff6b6b !important;
    filter: drop-shadow(0 0 10px rgba(244, 63, 94, 0.6));
    background: rgba(244, 63, 94, 0.1);
    transform: scale(1.1);
}

/* Topbar - Grand Premium */
.topbar {
    grid-column: 2 / -1;
    grid-row: 1 / 2;
    background: rgba(6, 6, 12, 0.45);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    height: var(--topbar-height);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(var(--glass-blur));
    z-index: 90;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.topbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 40px;
}

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

.modern-search-bar input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 14px 25px 14px 60px;
    color: var(--text-primary);
    font-size: 15px;
    backdrop-filter: blur(15px);
    transition: all 400ms cubic-bezier(0.2, 1, 0.2, 1);
    outline: none;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.modern-search-bar input::placeholder {
    color: var(--text-muted);
}

.modern-search-bar input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 30px -5px var(--primary-glow), inset 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: scale(1.01) translateY(-2px);
}

.modern-search-bar i {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
    pointer-events: none;
    transition: all 300ms ease;
}

.modern-search-bar:focus-within i {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
    transform: translateY(-50%) scale(1.15);
}

.filter-pills {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 20px;
    gap: 4px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    height: 38px;
}

.pill {
    padding: 6px 16px;
    font-size: 12px;
    color: var(--text-secondary);
    border-radius: 18px;
    cursor: pointer;
    transition: all var(--anim-hover) var(--ease-standard);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
}

.pill:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.pill.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-bright);
}

[data-theme="light"] .filter-pills {
    background: #eff2f5;
}

[data-theme="light"] .pill.active {
    background: white;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-title {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.input-date {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0 16px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 38px;
    margin-right: 0 !important;
}

.input-date:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-bright);
}



/* Executive Button System - Grand Premium 2026 */
/* Executive Button System */
.btn-primary {
    height: 42px;
    padding: 0 24px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Catalogue Premium Buttons - Add & Multi-Action 2026 */
.btn-add-premium {
    height: 50px;
    padding: 0 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #0077ff 100%);
    color: white;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    cursor: pointer;
    transition: all 400ms cubic-bezier(0.2, 1, 0.2, 1);
    box-shadow:
        0 10px 25px -5px var(--primary-glow),
    ;
    position: relative;
    overflow: hidden;
}

.btn-add-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: 0.6s;
}

.btn-add-premium:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -10px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-add-premium:hover::before {
    left: 100%;
}

.btn-action-modern {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.2, 1, 0.2, 1);
    backdrop-filter: blur(10px);
}

.btn-action-modern:hover {
    background: rgba(0, 158, 247, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}

.btn-action-delete {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.2, 1, 0.2, 1);
    backdrop-filter: blur(10px);
}

.btn-action-delete:hover {
    background: rgba(248, 40, 90, 0.1);
    border-color: var(--danger);
    color: var(--danger);
    transform: translateY(-3px) rotate(8deg) scale(1.1);
    box-shadow: 0 10px 20px -5px var(--danger-glow);
}

.btn-action-modern:active,
.btn-action-delete:active {
    transform: scale(0.95);
}

.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-shimmer);
    transition: none;
}

.btn-primary:hover::after {
    left: 100%;
    transition: 0.8s;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    transition-duration: var(--anim-click);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0 20px;
    height: 42px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: #06b6d4;
    color: #06b6d4;
    transform: translateY(-1px);
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0 20px;
    height: 42px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-bright);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
    color: white;
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #000;
    border: none;
}

.btn-success,
.btn-danger,
.btn-warning {
    height: 42px;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-success:hover {
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn-danger:hover {
    box-shadow: 0 8px 20px -4px rgba(244, 63, 94, 0.4);
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn-warning:hover {
    box-shadow: 0 8px 20px -4px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
    filter: brightness(1.05);
}

/* Removing legacy button definitions */

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-family: 'Inter', -apple-system, sans-serif;
    transition: all 0.25s ease;
    cursor: pointer;
}

.icon-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-1px);
}

.icon-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Icons SOP - Color Standards */
.icon-add {
    color: var(--success);
}

.icon-edit {
    color: var(--primary);
}

.icon-view {
    color: var(--text-secondary);
}

.icon-send {
    color: var(--primary);
}

.icon-warning {
    color: var(--warning);
}

.icon-danger {
    color: var(--danger);
}

/* Action Buttons (SOP Rule 4 & 10) */
.action-menu-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all var(--anim-hover) var(--ease-standard);
    border: 1px solid transparent;
}

.action-menu-btn i {
    font-size: 14px;
    transition: color var(--anim-hover);
}

.action-menu-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border);
    transform: scale(1.05);
}

.action-menu-btn:active {
    transform: scale(0.96);
    transition-duration: var(--anim-click);
}

.action-menu-btn.btn-danger:hover {
    color: var(--danger);
    background: rgba(248, 40, 90, 0.1);
    border-color: rgba(248, 40, 90, 0.2);
    transform: none !important;
    /* SOP Rule 9: No movement for destructive actions */
}

.action-menu-btn.btn-warning:hover {
    color: var(--warning);
    background: rgba(246, 192, 0, 0.1);
    border-color: rgba(246, 192, 0, 0.2);
}

.action-menu-btn.btn-primary:hover {
    color: var(--primary);
    background: rgba(0, 158, 247, 0.1);
    border-color: rgba(0, 158, 247, 0.2);
}

/* Modern Action Buttons - Premium Icon Buttons */
.action-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
}

.action-btn i {
    font-size: 13px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.action-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border);
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Action Button Variants */
.action-btn--edit:hover {
    color: var(--primary);
    background: rgba(0, 158, 247, 0.08);
    border-color: rgba(0, 158, 247, 0.15);
}

.action-btn--delete:hover {
    color: var(--danger);
    background: rgba(248, 40, 90, 0.08);
    border-color: rgba(248, 40, 90, 0.15);
    transform: none !important;
}

.action-btn--view:hover {
    color: var(--info);
    background: rgba(114, 57, 234, 0.08);
    border-color: rgba(114, 57, 234, 0.15);
}

.action-btn--send:hover {
    color: var(--primary);
    background: rgba(0, 158, 247, 0.08);
    border-color: rgba(0, 158, 247, 0.15);
}

.action-btn--whatsapp:hover {
    color: var(--success);
    background: rgba(23, 198, 83, 0.08);
    border-color: rgba(23, 198, 83, 0.15);
}

.action-btn--save:hover {
    color: var(--success);
    background: rgba(23, 198, 83, 0.08);
    border-color: rgba(23, 198, 83, 0.15);
}

/* Action Buttons Container */
.action-btns {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

/* Labeled Action Buttons - Icon + Text */
.action-btn-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 34px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, sans-serif;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.action-btn-label i {
    font-size: 12px;
}

.action-btn-label:hover {
    background: var(--bg-hover);
    border-color: var(--border-bright);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Labeled Button Variants */
.action-btn-label--edit {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

.action-btn-label--edit:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.35);
    color: #3b82f6;
}

.action-btn-label--delete {
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.2);
}

.action-btn-label--delete:hover {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.35);
    color: #f43f5e;
    transform: none;
}

.action-btn-label--view {
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.2);
}

.action-btn-label--view:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.35);
    color: #8b5cf6;
}

.action-btn-label--send {
    color: #06b6d4;
    border-color: rgba(6, 182, 212, 0.2);
}

.action-btn-label--send:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.35);
    color: #06b6d4;
}

.action-btn-label--whatsapp {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.2);
}

.action-btn-label--whatsapp:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.35);
    color: #22c55e;
}

.action-btn-label--save {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.action-btn-label--save:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.35);
    color: #10b981;
}

/* Small Button Variant */
.btn-sm {
    height: 32px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
}

/* Text Button - Minimal Style */
.btn-text {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.btn-text:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Link Button */
.btn-link {
    background: transparent;
    border: none;
    color: #3b82f6;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Outline Button Variants */
.btn-outline-primary {
    background: transparent;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 0 20px;
    height: 42px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-outline-primary:hover {
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 4px 15px -3px rgba(59, 130, 246, 0.3);
}

.btn-outline-success {
    background: transparent;
    border: 1px solid #10b981;
    color: #10b981;
}

.btn-outline-success:hover {
    background: rgba(16, 185, 129, 0.1);
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid #f43f5e;
    color: #f43f5e;
}

.btn-outline-danger:hover {
    background: rgba(244, 63, 94, 0.1);
}

/* Badges & Pills - High Fidelity */
.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Status Badges */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.status-active,
.status-confirmed,
.status-paid,
.status-success {
    background: rgba(23, 198, 83, 0.1);
    color: var(--success);
    border: 1px solid rgba(23, 198, 83, 0.15);
    box-shadow: 0 0 20px rgba(23, 198, 83, 0.05);
}

.status-pending,
.status-prospect,
.status-warning {
    background: rgba(246, 192, 0, 0.1);
    color: var(--warning);
    border: 1px solid rgba(246, 192, 0, 0.15);
}

.status-danger,
.status-rejected,
.status-blacklisted,
.status-error {
    background: rgba(248, 40, 90, 0.1);
    color: var(--danger);
    border: 1px solid rgba(248, 40, 90, 0.15);
}

/* Glass Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.glow-text {
    text-shadow: 0 0 10px var(--primary-glow);
}

.badge-green {
    background: rgba(23, 198, 83, 0.1);
    color: var(--success);
    border: 1px solid rgba(23, 198, 83, 0.1);
}

.badge-orange {
    background: rgba(246, 192, 0, 0.1);
    color: var(--warning);
    border: 1px solid rgba(246, 192, 0, 0.1);
}

.badge-red {
    background: rgba(248, 40, 90, 0.1);
    color: var(--danger);
    border: 1px solid rgba(248, 40, 90, 0.1);
}

/* Buttons Overhaul */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.btn-social {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-social:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
}

/* Page Transitions */
.page-transition {
    animation: fadeInSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content */
.main-content {
    grid-column: 2 / -1;
    grid-row: 2 / -1;
    padding: 30px;
    overflow-y: auto;
}

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

.module-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.module-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

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

@keyframes ai-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 210, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 210, 255, 0);
    }
}

.ai-pulse {
    animation: ai-pulse 2s infinite;
}

/* AI Components v3 */
.ai-card {
    background: var(--ai-card-bg) !important;
    border: 1px solid rgba(0, 210, 255, 0.15) !important;
    backdrop-filter: blur(12px) !important;
    position: relative;
    overflow: hidden;
}

.ai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--ai-gradient);
    opacity: 0.8;
}

.ai-badge {
    background: rgba(0, 210, 255, 0.12);
    color: var(--primary);
    border: 1px solid rgba(0, 210, 255, 0.25);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.1);
}

.ai-prediction-value {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    color: var(--ai-primary);
    font-weight: 700;
}

.ai-recommendation-item {
    border-left: 3px solid var(--ai-primary);
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 12px 12px 0;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.ai-recommendation-item:hover {
    background: rgba(0, 210, 255, 0.05);
    transform: translateX(5px);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.dashboard-wrapper {
    animation: fadeInSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.pill-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pill-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.pill-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Dashboard Widget Refinements */
.quick-actions-widget button {
    height: 48px;
    border-radius: 12px;
    justify-content: flex-start !important;
    padding-left: 20px !important;
    transition: all 0.2s ease;
}

.quick-actions-widget button:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateX(4px);
}

.tasks-list .task-item:last-child {
    border-bottom: none !important;
}

.feed-list::-webkit-scrollbar {
    width: 4px;
}

.feed-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.analytics-card {
    grid-column: span 12;
    min-height: 350px;
}

.span-8 {
    grid-column: span 8;
}

.span-6 {
    grid-column: span 6;
}

.span-4 {
    grid-column: span 4;
}

.span-3 {
    grid-column: span 3;
}

@media (max-width: 1400px) {

    .span-8,
    .span-6,
    .span-4,
    .span-3 {
        grid-column: span 12;
    }
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.map-container {
    height: 300px;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-item:last-child {
    border-bottom: none;
}

/* Kpi Cards Row */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.pipeline-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 1400px) {
    .pipeline-row {
        grid-template-columns: 1fr;
    }
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 cols based on image (actually user image has 5) */
    gap: 20px;
}

/* Wait, image has 5 cards on top row? Or 4?
   Image: Total Leads, Active Quotes, Confirmed, Revenue, Sent Msgs. = 5 cards.
   So repeat(5, 1fr) if they fit, or auto-fit. Let's do flex or grid.
*/
.kpi-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}


.card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: none !important;
    transition: var(--anim-hover);
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow: none !important;
    border-color: var(--border-bright);
}

.kpi-card {
    position: relative;
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 140px;
    transition: var(--anim-hover);
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: none !important;
}


.kpi-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-bright);
    box-shadow: none !important;
}




.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.kpi-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-icon-overlay {
    font-size: 18px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.kpi-card:hover .kpi-icon-overlay {
    opacity: 1;
    transform: scale(1.1);
}

.kpi-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.kpi-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
}

.trend-up {
    color: var(--success);
}

.trend-down {
    color: var(--danger);
}

/* Pipeline Widgets */
.pipeline-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 25px;
}

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

.pipeline-stages {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.stage-card {
    flex: 1;
    min-width: 130px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100px;
}

.stage-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-bright);
    transform: translateY(-2px);
}

.stage-name {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.stage-metrics {
    margin-top: auto;
}

.stage-count {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.stage-value {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stage-indicator {
    width: 24px;
    height: 3px;
    border-radius: 10px;
    margin-top: 10px;
    background: var(--border);
}

.stage-card:hover .stage-indicator {
    width: 100%;
    transition: width 0.3s ease;
}

/* Status Colors for Pipeline Indicators */
.bg-stage-new {
    background: var(--info);
}

.bg-stage-active {
    background: var(--primary);
}

.bg-stage-success {
    background: var(--success);
}

.bg-stage-warning {
    background: var(--warning);
}

.bg-stage-danger {
    background: var(--danger);
}

/* Feed & Activity */
.feed-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 25px;
    height: 100%;
}

.feed-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.feed-info h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.feed-info p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.feed-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Priority Tasks */
.tasks-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 25px;
    margin-top: 25px;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-bright);
    transform: translateX(5px);
}

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

.task-status-icon {
    font-size: 16px;
}

.task-details h6 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.task-details span {
    font-size: 11px;
    color: var(--text-muted);
}

.task-item .btn-action {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.task-item .btn-action:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Login Styles */
/* Toolbar (Clients) */
.clients-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.clients-toolbar .btn-primary,
.clients-toolbar .btn-social {
    height: 44px;
}

.search-box {
    position: relative;
    min-width: 240px;
    max-width: 340px;
    flex: 1 1 260px;
}

.search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 14px;
    pointer-events: none;
}

.search-box input.form-control,
.search-box input {
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding-left: 42px !important;
    width: 100%;
}

.action-btns {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

/* Keep full-width social buttons on login card */
/* Legacy login styles removed to prevent conflicts with Modern 2026 Login section at the end of file */

.form-group {
    margin-bottom: 20px;
}

/* --- Consolidated Form Styles (Removed Duplicate) --- */
.input-field::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.7;
}

.input-field:disabled,
.input-field[readonly] {
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
    border-style: dashed !important;
}

.alert-danger {
    color: var(--danger);
    background-color: rgba(248, 40, 90, 0.1);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
}

.link-sm {
    font-size: 12px;
    color: var(--primary);
}

.divider {
    text-align: center;
    margin: 20px 0;
    font-size: 12px;
    color: var(--text-muted);
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: var(--border);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* Standard Social buttons on inputs */
.btn-social {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    height: 46px;
    padding: 0 20px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-social:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Modal Styles */
/* Form Section Grouping */
.form-section {
    margin-bottom: 25px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.form-section h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    animation: fadeIn 0.2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.modal {
    background-color: rgba(18, 18, 29, 0.95);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    width: 600px;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    animation: modalIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

@keyframes modalIn {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal.modal-xl {
    width: 950px;
    max-width: 95%;
}

@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--anim-hover);
}

.modal-close:hover {
    background: rgba(248, 40, 90, 0.1);
    color: var(--danger);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px 30px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
    display: flex;
    flex-shrink: 0;
    justify-content: flex-end;
    gap: 12px;
}

/* Grand Premium Data Tables - Executive Refinement (SOP 6.4) */
.table-container {
    background: rgba(11, 11, 25, 0.4);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-luxury);
    overflow: hidden;
    margin-top: 25px;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    background: rgba(255, 255, 255, 0.04);
    padding: 16px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 14px 20px;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-primary);
}

/* Luxury Action Buttons in Tables */
.action-menu-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--anim-hover);
    cursor: pointer;
}

.action-menu-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 158, 247, 0.2);
}

.action-menu-btn.btn-primary:hover {
    background: var(--primary);
    color: white;
}

.action-menu-btn.btn-warning:hover {
    background: var(--warning);
    color: black;
    border-color: var(--warning);
}

.action-menu-btn.btn-danger:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

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

.cell-info h5 {
    font-size: 13.5px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.cell-info span {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.status-active,
.status-booked,
.status-confirmed,
.status-completed,
.status-accepted,
.status-converted,
.status-paid {
    background-color: rgba(23, 198, 83, 0.15);
    color: var(--success);
}

.status-pending,
.status-prospect,
.status-lead,
.status-partial,
.status-scheduled {
    background-color: rgba(246, 192, 0, 0.15);
    color: var(--warning);
}

.status-inactive,
.status-archived,
.status-expired,
.status-unpaid {
    background-color: rgba(146, 146, 159, 0.15);
    color: var(--text-muted);
}

.status-cancelled,
.status-blacklisted,
.status-refunded,
.status-rejected,
.status-failed {
    background-color: rgba(248, 40, 90, 0.15);
    color: var(--danger);
}

.status-draft,
.status-sent,
.status-in-progress,
.status-sending,
.status-seasonal {
    background-color: rgba(0, 158, 247, 0.15);
    color: var(--primary);
}

.chat-item.active {
    background: rgba(0, 158, 247, 0.1);
    border-left: 3px solid var(--primary);
}

#whatsappMessages::-webkit-scrollbar {
    width: 6px;
}

#whatsappMessages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}



/* Utilities */
.hidden {
    display: none !important;
}

.text-white {
    color: white;
}

/* Icon Animation SOP - Feedback States */
.icon-loading {
    animation: iconSpin 1.5s linear infinite;
}

.icon-success {
    animation: iconSuccess var(--anim-feedback) ease-out forwards;
    color: var(--success) !important;
}

.icon-error {
    animation: iconShake var(--anim-feedback) ease-in-out forwards;
    color: var(--danger) !important;
}

@keyframes iconSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes iconShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

@keyframes iconSuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Page Transitions SOP Section 7 */
.page-transition {
    animation: pageFadeIn var(--anim-page) var(--ease-standard) forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Stagger SOP */
.stagger-item {
    opacity: 0;
    animation: sectionFadeIn 0.3s var(--ease-standard) forwards;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility - Reduced Motion SOP 14 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
        transform: none !important;
    }

    .page-transition,
    .stagger-item,
    .modal {
        animation: fadeIn 0.1s forwards !important;
    }
}

/* Toast System */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s var(--ease-standard);
    font-size: 13px;
    font-weight: 500;
}

.toast-success i {
    color: var(--success);
}

.toast-error i {
    color: var(--danger);
}


/* Proposal Detail Modal Styles (SOP) */
.proposal-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
}

.proposal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: flex-start;
}

.proposal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.proposal-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.proposal-meta p {
    font-size: 13px;
    margin: 0;
}

.proposal-meta span {
    font-size: 11px;
}

.proposal-meta-separator {
    color: var(--text-muted);
    font-size: 11px;
}

.proposal-section {
    margin-bottom: 25px;
}

.proposal-section-title {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.service-table th {
    font-size: 10px;
    padding: 10px 15px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    background: transparent;
    border-bottom: 1px solid var(--border);
}

.service-table td {
    padding: 15px;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

.service-item-desc {
    font-weight: 600;
    font-size: 14px;
}

.service-total-row td {
    padding: 20px 15px;
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
    border-top: 2px solid var(--border);
}

.service-total-label {
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-right: 20px;
}

.communication-actions {
    display: flex;
    gap: 12px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline-item {
    position: relative;
    padding-left: 20px;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.timeline-action {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-date {
    font-size: 10px;
    opacity: 0.6;
    color: var(--text-secondary);
}

.validity-box {
    margin-top: 30px;
    padding: 15px;
    background: rgba(255, 192, 0, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 192, 0, 0.1);
}

.validity-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--warning);
    margin-bottom: 5px;
}

.validity-date {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.validity-note {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 3px;
}

/* Trend Indicators */
.trend-up {
    color: var(--success) !important;
    background-color: rgba(23, 198, 83, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: initial;
}

.kpi-sub.trend-up {
    width: fit-content;
}

/* === TOOLBAR FIX 2026 === */
.crm-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crm-toolbar .search-box {
    display: flex;
    align-items: center;
    height: 44px;
}

.crm-toolbar input[type="search"] {
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
}

.crm-toolbar .btn {
    height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.crm-toolbar .btn-success {
    margin-left: auto;
}


/* === TOOLBAR OVERRIDE V2 (force single-line + equal buttons) === */
.clients-toolbar {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
}

.clients-toolbar>* {
    flex: 0 0 auto !important;
}

.clients-toolbar .search-box {
    flex: 0 0 280px !important;
    max-width: 280px !important;
    min-width: 280px !important;
}

.clients-toolbar .search-box .form-control {
    width: 100% !important;
    height: 44px !important;
}

.btn-social {
    height: 44px !important;
    padding: 0 18px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    color: var(--text-primary) !important;
    transition: all var(--anim-hover) var(--ease-standard) !important;
}

.btn-social:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.clients-toolbar .btn-primary {
    height: 44px !important;
    padding: 0 18px !important;
    border-radius: 10px !important;
    margin-left: auto !important;
}

@media (max-width: 900px) {
    .clients-toolbar {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }

    .clients-toolbar .btn-primary {
        margin-left: 0 !important;
    }

    .clients-toolbar .search-box {
        flex: 1 1 260px !important;
        min-width: 240px !important;
    }
}

/* Premium Invoice Styles */
.invoice-container {
    padding: 0;
    background: var(--luxury-white);
    color: var(--luxury-midnight);
    max-width: 1000px;
    margin: 20px auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.invoice-header-premium {
    background: var(--luxury-midnight);
    color: var(--luxury-white);
    padding: 50px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inv-brand-info h3 {
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.inv-body-premium {
    padding: 60px;
}

.inv-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    border-bottom: 2px solid var(--luxury-sand);
    padding-bottom: 30px;
}

.inv-title-row h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0;
}

.inv-client-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.inv-label-premium {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.inv-client-info p {
    font-size: 15px;
    line-height: 1.7;
}

.inv-table-premium {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 50px;
}

.inv-table-premium th {
    text-align: left;
    padding: 15px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    border-bottom: 2px solid var(--luxury-sand);
}

.inv-table-premium td {
    padding: 20px 10px;
    border-bottom: 1px solid var(--luxury-sand);
    font-size: 14px;
}

.inv-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
}

.inv-summary-card {
    background: var(--luxury-sand);
    padding: 30px;
    border-radius: 16px;
}

.inv-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.inv-summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    font-size: 24px;
    font-weight: 800;
    color: var(--luxury-midnight);
}

.payment-methods {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.pay-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
}

.status-badge-premium {
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.status-paid-premium {
    background: var(--luxury-emerald);
    color: white;
    border: none;
}

.status-partially_paid-premium {
    background: #fffaf0;
    color: #f6ad55;
    border: 1px solid #fbd38d;
}

.status-sent-premium {
    background: #ebf8ff;
    color: #3182ce;
    border: 1px solid #90cdf4;
}

.status-overdue-premium {
    background: #fff5f5;
    color: #e53e3e;
    border: 1px solid #feb2b2;
}

.status-draft-premium {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.status-cancelled-premium {
    background: #edf2f7;
    color: #a0aec0;
    border: 1px solid #cbd5e0;
}

/* Print Styles */
@media print {

    .sidebar,
    .topbar,
    .no-print,
    .module-header {
        display: none !important;
    }

    .main-content {
        padding: 0 !important;
        background: white !important;
    }

    .invoice-container {
        box-shadow: none !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
    }

    body {
        background: white !important;
    }
}

/* Analytics Utility Classes */
.bg-blue-soft {
    background: var(--bg-blue-soft);
}

.bg-green-soft {
    background: var(--bg-green-soft);
}

.bg-orange-soft {
    background: var(--bg-orange-soft);
}

.bg-red-soft {
    background: var(--bg-red-soft);
}

.bg-purple-soft {
    background: var(--bg-purple-soft);
}

.bg-teal-soft {
    background: var(--bg-teal-soft);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-primary {
    color: var(--text-primary);
}

.text-warning {
    color: var(--warning);
}

/* AI Copilot (Grand Premium v3.1) */
.copilot-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ai-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
}

.copilot-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.6);
}

.copilot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--ai-primary);
    animation: pulse-ring 2s infinite;
    opacity: 0;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.copilot-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: rgba(18, 18, 30, 0.85);
    /* Glass dark */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    z-index: 9998;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.copilot-panel.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.copilot-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.copilot-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    animation: fade-in-up 0.3s ease;
}

.chat-message.ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
}

.chat-message.user {
    align-self: flex-end;
    background: var(--ai-gradient);
    color: white;
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
}

.copilot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.copilot-suggestions button {
    background: rgba(0, 210, 255, 0.05);
    border: 1px solid rgba(0, 210, 255, 0.2);
    color: var(--ai-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    transition: all 0.2s;
}

.copilot-suggestions button:hover {
    background: rgba(0, 210, 255, 0.15);
    transform: translateY(-1px);
}

.copilot-input {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
}

.copilot-input input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    height: 40px !important;
    border-radius: 20px !important;
    padding: 0 15px !important;
}

.copilot-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.copilot-input button:hover {
    transform: scale(1.1);
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* KPI Card Grand Premium v3 (Restored) */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 25px;
}

.kpi-card-premium {
    background: #12121e;
    /* Ultra dark luxury */
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.kpi-card-premium:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.kpi-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kpi-icon-wrapper {
    color: var(--text-secondary);
    opacity: 0.5;
    font-size: 14px;
}

.kpi-middle {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 15px;
}

.kpi-value {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -1px;
}

.kpi-pred-block {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.kpi-badge-pill {
    background: rgba(0, 210, 255, 0.08);
    /* faint cyan bg */
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 30px;
    padding: 3px 8px;
    font-size: 8px;
    font-weight: 800;
    color: var(--ai-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.05);
}

.kpi-pred-val {
    font-size: 14px;
    color: var(--ai-primary);
    font-weight: 700;
    font-family: var(--font-heading);
}

.kpi-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 10px;
}

.kpi-trend {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kpi-trend.positive {
    color: var(--success);
}

.kpi-trend.negative {
    color: var(--danger);
}

.kpi-confidence {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
}

/* --- High-Fidelity Analytics Redesign System --- */
.analytics-container {
    animation: fadeIn 0.4s ease-out;
}

.analytics-glass-bar {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.analytics-filter-group {
    display: flex;
    flex-direction: column;
    padding: 8px 20px;
    position: relative;
}

.analytics-filter-group:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border);
}

/* Ultra-Modern Analytics Glass Bar */
.analytics-glass-bar {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border-bright);
    border-radius: 18px;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.analytics-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 20px;
    border-right: 1px solid var(--border);
    position: relative;
}

.analytics-filter-group:last-child {
    border-right: none;
}

.analytics-filter-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.analytics-filter-control {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--anim-hover);
}

.analytics-filter-control:hover {
    filter: brightness(1.2);
}

.analytics-filter-control i {
    font-size: 15px;
    opacity: 0.8;
}

.analytics-filter-control select {
    background: transparent !important;
    border: none !important;
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 700;
    padding: 2px 0 !important;
    outline: none !important;
    cursor: pointer;
    font-family: var(--font-body);
    appearance: none !important;
    background-image: none !important;
    transition: var(--anim-hover);
}

.analytics-filter-control select:hover {
    color: var(--primary);
}

.analytics-card-luxury {
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.analytics-card-luxury:hover {
    border-color: var(--border-bright);
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
}

/* Dynamic Glow Injection */
.analytics-card-luxury::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.analytics-card-luxury:hover::before {
    opacity: 0.4;
}

.analytics-kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.analytics-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.analytics-metric-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.analytics-metric-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analytics-trend-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up {
    background: var(--bg-green-soft);
    color: var(--success);
}

.trend-down {
    background: var(--bg-red-soft);
    color: var(--danger);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Ultra-Luxury Analytics Navigation --- */
.analytics-tabs-luxury {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px;
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    width: fit-content;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
}

.analytics-tab-item {
    padding: 10px 22px;
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.analytics-tab-item:hover {
    color: var(--text-primary);
}

.analytics-tab-item.active {
    color: var(--primary);
}

.analytics-tab-item.active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    border-radius: 14px;
    z-index: -1;
    border: 1px solid var(--border-bright);
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-glow);
    animation: pillPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pillPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.analytics-tab-item i {
    font-size: 16px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.analytics-tab-item.active i {
    opacity: 1;
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
    transform: scale(1.1);
}

/* Modern Import/Export Buttons */
.btn-import {
    background: linear-gradient(135deg, #7239ea, #a76bf5);
    box-shadow: 0 4px 15px rgba(114, 57, 234, 0.3);
    color: white;
    border: none;
    height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-import:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(114, 57, 234, 0.4);
    filter: brightness(1.1);
    color: white;
}

.btn-export {
    background: linear-gradient(135deg, #17c653, #04d97d);
    box-shadow: 0 4px 15px rgba(23, 198, 83, 0.3);
    color: white;
    border: none;
    height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 198, 83, 0.4);
    filter: brightness(1.1);
    color: white;
}

/* =========================================
   COSMIC GLASS LOGIN (2026 Modern)
   ========================================= */

@keyframes cosmic-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float-card {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.login-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Solid Single Color (User Request) */
    background: #020024;
    position: relative;
    overflow: hidden;
}

/* Removed Cosmic Particles Overlay */
.login-container::before {
    content: none;
}

.login-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
    ;
    padding: 50px;
    border-radius: 30px;
    width: 450px;
    max-width: 90%;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease;
    animation: float-card 6s ease-in-out infinite;
}

.login-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 20px var(--primary-glow);
}

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

.brand-center .brand-icon {
    width: 70px !important;
    height: 70px !important;
    font-size: 32px !important;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--info));
    box-shadow: 0 0 30px var(--primary-glow);
    animation: float-card 4s ease-in-out infinite reverse;
}

.brand-center h1 {
    font-size: 32px !important;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
    font-weight: 700;
}

.login-form .form-control {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    height: 55px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
    color: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.login-form .form-control:focus {
    background: rgba(0, 158, 247, 0.1) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-glow) !important;
    transform: scale(1.02) !important;
}

.login-form .btn-primary {
    height: 55px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    box-shadow: 0 10px 30px var(--primary-glow);
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-top: 10px;
}

.login-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px var(--primary-glow);
    filter: brightness(1.2);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider::before {
    margin-right: 15px;
}

.divider::after {
    margin-left: 15px;
}

.btn-social {
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.link-sm {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.link-sm:hover {
    color: white;
    text-decoration: underline;
}

/* ==========================================================================
   Catalogue Grand Premium Overhaul (Reference Match)
   ========================================================================== */

/* Catalogue Layout */
.catalog-container {
    display: flex;
    gap: 30px;
    height: calc(100vh - var(--topbar-height) - 40px);
    overflow: hidden;
}

.catalog-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: rgba(var(--bg-card-rgb), 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    overflow-y: auto;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.catalog-main {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

/* Sidebar Sections */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--anim-hover);
}

.filter-option:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.filter-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Premium Product Cards (Image 3) */
.premium-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.premium-card {
    position: relative;
    height: 400px;
    border-radius: var(--radius-lg);
    background: #11111d;
    overflow: hidden;
    transition: transform 0.4s var(--ease-executive), box-shadow 0.4s var(--ease-executive);
    cursor: pointer;
}

.premium-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--primary-rgb), 0.2);
}

.premium-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.premium-card:hover::after {
    opacity: 1;
    animation: shimmer 2s infinite linear;
}

.premium-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-executive);
}

.premium-card:hover .premium-card-img {
    transform: scale(1.08);
}

.premium-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
}

.premium-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    z-index: 2;
}

.premium-card-heart {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 2;
    transition: var(--anim-hover);
}

.premium-card-heart:hover {
    background: var(--danger);
    transform: scale(1.1);
}

.premium-card-location {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.premium-card-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.premium-card-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.premium-card-duration {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-card-price {
    text-align: right;
}

.premium-card-price label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

.premium-card-price span {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

/* Analytics Dashboard (Image 1) */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.analytics-card {
    background: rgba(var(--bg-card-rgb), 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: var(--anim-hover);
}

.analytics-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.analytics-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateY(-4px);
}

.analytics-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.analytics-card-title {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.analytics-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 158, 247, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.analytics-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.analytics-trend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
}

.analytics-trend.up {
    color: var(--success);
}

.analytics-trend.down {
    color: var(--danger);
}

.analytics-chart-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 25px;
}

/* Bottom Performance Grid */
.perf-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

/* List Items (Destinations, Performance) */
.list-item-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.list-item-row:last-child {
    border-bottom: none;
}

.item-img-small {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.item-info-text {
    flex: 1;
}

.item-name-bold {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
}

/* Editor Styles (Image 2) */
.catalog-editor-layout {
    display: grid;
    grid-template-columns: 240px 1fr 320px;
    gap: 30px;
    height: calc(100vh - var(--topbar-height) - 40px);
}

.editor-tabs {
    background: rgba(var(--bg-card-rgb), 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.editor-tab-btn {
    padding: 14px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.3s var(--ease-executive);
    color: var(--text-muted);
    border: 1px solid transparent;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
}

.editor-tab-btn i {
    font-size: 18px;
}

.editor-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.editor-tab-btn.active {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.2);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
}

.editor-content-scroll {
    overflow-y: auto;
    padding-right: 15px;
}

.editor-panel-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.panel-section {
    background: rgba(var(--bg-card-rgb), 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Itinerary Timeline */
.itinerary-timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 20px;
}

.itinerary-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--border);
}

.itinerary-day {
    position: relative;
    margin-bottom: 30px;
}

.itinerary-day-node {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-body);
    border: 3px solid var(--primary);
    z-index: 2;
}

.itinerary-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 20px;
    display: flex;
    gap: 20px;
}

.iti-card-img {
    width: 200px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
}

.iti-card-content {
    flex: 1;
}

.iti-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

/* Premium Editor Components */
.premium-input {
    width: 100% !important;
    padding: 14px 18px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: white !important;
    font-size: 14px !important;
    transition: all 0.3s var(--ease-executive) !important;
    outline: none !important;
}

.premium-input:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2) !important;
}

.pill-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.pill-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.pill-btn.active {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.badge-draft {
    background: rgba(246, 192, 0, 0.1);
    color: var(--warning);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(246, 192, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-card::after {
    display: none !important;
}

/* ============================================
   GLOBAL SHADOW REMOVAL - No White Shadows
   ============================================ */
.card,
.kpi-card,
.kpi-card-premium,
.panel,
.panel-section,
.widget,
.feed-widget,
.pipeline-widget,
.tasks-widget,
.stage-card,
.analytics-card,
.analytics-card-luxury,
.premium-card,
.ai-card,
.glass-card,
.modal-content,
.dropdown-menu,
.btn-primary,
.btn-secondary,
.btn-add-premium,
.btn-action-modern,
.btn-action-delete,
.nav-item,
.sidebar,
.topbar {
    box-shadow: none !important;
    filter: none !important;
}

.card:hover,
.kpi-card:hover,
.kpi-card-premium:hover,
.analytics-card:hover,
.analytics-card-luxury:hover,
.premium-card:hover,
.stage-card:hover,
.btn-primary:hover,
.btn-add-premium:hover,
.btn-action-modern:hover,
.btn-action-delete:hover,
.nav-item:hover,
.nav-item.active {
    box-shadow: none !important;
    filter: none !important;
}

.card::before,
.card::after,
.kpi-card::before,
.kpi-card::after,
.analytics-card::before,
.analytics-card::after,
.analytics-card-luxury::before,
.analytics-card-luxury::after,
.premium-card::before,
.premium-card::after,
.btn-add-premium::before,
.btn-primary::after {
    display: none !important;
    opacity: 0 !important;
    content: none !important;
}

/* Remove all text shadows and drop shadows */
.glow-text,
[class*="glow"] {
    text-shadow: none !important;
}

/* Remove radial gradients that cause glow effects */
.analytics-card::before,
.analytics-card-luxury::before {
    background: none !important;
}

/* ============================================
   DESIGN SYSTEM - Component Standardization
   ============================================ */

/* Button Sizes */
.btn-sm {
    height: var(--btn-height-sm);
    padding: 0 var(--space-md);
    font-size: var(--font-small);
}

.btn-md,
.btn {
    height: var(--btn-height-md);
    padding: 0 var(--space-lg);
    font-size: var(--font-body);
}

.btn-lg {
    height: var(--btn-height-lg);
    padding: 0 var(--space-xl);
    font-size: var(--font-card-title);
}

/* Input/Select Standardization */
input.form-control,
select.form-control,
textarea.form-control,
.input-field,
.form-input {
    height: var(--input-height);
    padding: 0 var(--space-md);
    font-size: var(--font-body);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

input.form-control:focus,
select.form-control:focus,
.input-field:focus,
.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Card Radius Standardization */
.card,
.kpi-card,
.kpi-card-premium,
.analytics-card,
.analytics-card-luxury,
.pipeline-widget,
.feed-widget,
.tasks-widget,
.stage-card,
.widget {
    border-radius: var(--card-radius) !important;
}

/* Table Overflow Fix */
.table-responsive,
.table-container,
.data-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.data-table {
    min-width: 600px;
}

/* Table Header Contrast */
.data-table thead th,
table thead th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    font-size: var(--font-small);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table Row Hover */
.data-table tbody tr:hover,
table tbody tr:hover {
    background: var(--bg-hover);
}

/* Flex Utilities for Icon Alignment */
.flex-center {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.icon-text {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.badge-container {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Typography Utilities */
.text-title {
    font-size: var(--font-title);
    font-weight: 700;
}

.text-section {
    font-size: var(--font-section);
    font-weight: 600;
}

.text-card-title {
    font-size: var(--font-card-title);
    font-weight: 600;
}

.text-body {
    font-size: var(--font-body);
}

.text-small {
    font-size: var(--font-small);
}

/* Spacing Utilities */
.mt-xs {
    margin-top: var(--space-xs);
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.p-sm {
    padding: var(--space-sm);
}

.p-md {
    padding: var(--space-md);
}

.p-lg {
    padding: var(--space-lg);
}

.p-xl {
    padding: var(--space-xl);
}

/* Responsive KPI Grid */
@media (max-width: 576px) {
    .kpi-row {
        grid-template-columns: 1fr !important;
        gap: var(--space-md) !important;
    }

    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 1000;
    }

    .sidebar.open {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .kpi-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .pipeline-row {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 1200px) {
    .kpi-row {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* ============================================
   LIGHT MODE - Component Overrides
   ============================================ */
[data-theme="light"] body {
    background-image: none;
    background-color: var(--bg-body);
}

[data-theme="light"] .card,
[data-theme="light"] .kpi-card,
[data-theme="light"] .kpi-card-premium,
[data-theme="light"] .analytics-card,
[data-theme="light"] .pipeline-widget,
[data-theme="light"] .feed-widget,
[data-theme="light"] .tasks-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-luxury) !important;
}

[data-theme="light"] .sidebar {
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
}

[data-theme="light"] .topbar {
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .nav-item:hover,
[data-theme="light"] .nav-item.active {
    background: var(--bg-hover);
}

[data-theme="light"] table thead th {
    background: var(--bg-surface-2);
    color: var(--text-primary);
}

[data-theme="light"] .modal-content,
[data-theme="light"] .modal {
    background: var(--bg-card);
    box-shadow: var(--shadow-deep) !important;
}

[data-theme="light"] input.form-control,
[data-theme="light"] select.form-control,
[data-theme="light"] .input-field {
    background: var(--bg-surface-2);
    border-color: var(--border);
    color: var(--text-primary);
}

[data-theme="light"] .stage-card {
    background: var(--bg-surface-2);
}

[data-theme="light"] .btn-social {
    background: var(--bg-surface-2);
    border-color: var(--border);
    color: var(--text-primary);
}

/* ============================================
   TABLE PRO - Sortable Headers
   ============================================ */
.sortable-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
}

.sortable-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sortable-header.sort-active {
    background: rgba(0, 158, 247, 0.08);
    color: var(--primary);
}

[data-theme="light"] .sortable-header:hover {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .sortable-header.sort-active {
    background: rgba(0, 158, 247, 0.1);
}

/* ============================================
   TABLE PRO - Pagination Controls
   ============================================ */
.pagination-controls {
    padding: 15px 0;
    border-top: 1px solid var(--border);
}

.pagination-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   TABLE PRO - Filter Dropdowns
   ============================================ */
.filter-dropdown {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    font-size: 13px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
}

.filter-bar-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Clear filters button */
.btn-clear-filters {
    height: 32px;
    padding: 0 12px;
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-clear-filters:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* ============================================
   TABLE PRO - Column Toggle Dropdown
   ============================================ */
.column-toggle-wrapper {
    position: relative;
    display: inline-block;
}

.columns-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin-top: 5px;
}

.columns-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.columns-dropdown-header .btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 11px;
    cursor: pointer;
    padding: 0;
}

.columns-dropdown-header .btn-text:hover {
    text-decoration: underline;
}

.columns-dropdown-body {
    padding: 8px 0;
    max-height: 280px;
    overflow-y: auto;
}

.column-toggle-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.1s ease;
}

.column-toggle-item:hover {
    background: var(--bg-hover);
}

.column-toggle-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

[data-theme="light"] .columns-dropdown {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ============================================
   EXPORT V2 - Modal Styles
   ============================================ */
.export-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-hover);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s ease;
}

.export-option:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

.export-option input[type="radio"] {
    accent-color: var(--primary);
}

.export-col-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-hover);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s ease;
}

.export-col-item:hover {
    background: var(--bg-card);
}

.export-col-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
}

/* ============================================
   SESSION WARNING TOAST
   ============================================ */
.session-warning-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--warning);
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: bottom 0.3s ease;
}

.session-warning-toast.visible {
    bottom: 30px;
}

.session-warning-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ============================================
   KANBAN PIPELINE
   ============================================ */
.kanban-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 20px;
    min-height: 500px;
}

.kanban-column {
    flex: 0 0 280px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: var(--bg-hover);
}

.kanban-column-title {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-column-count {
    background: var(--primary);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.kanban-cards {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100px;
}

.kanban-card {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    cursor: grab;
    transition: all 0.15s ease;
}

.kanban-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: rotate(3deg);
}

.kanban-card-title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
}

.kanban-card-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kanban-column.drag-over {
    background: rgba(0, 158, 247, 0.1);
    border: 2px dashed var(--primary);
}

/* ============================================
   AUDIT LOG VIEWER
   ============================================ */
.audit-log-container {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
}

.audit-entry:hover {
    background: var(--bg-hover);
}

/* ============================================
   MODERN FILTER BAR & ACTION BUTTONS
   ============================================ */

/* Filter Bar Container */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-bar-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

/* Modern Filter Dropdown */
.filter-dropdown {
    height: 36px !important;
    min-width: 130px;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-weight: 500;
    font-family: 'Inter', -apple-system, sans-serif;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    color: var(--text-primary) !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-dropdown:hover {
    background: rgba(59, 130, 246, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.filter-dropdown:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* Social/Action Buttons - Clean Modern Style */
.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-social:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    transform: translateY(-1px);
}

.btn-social:active {
    transform: translateY(0);
}

.btn-social i {
    font-size: 12px;
    opacity: 0.9;
}

/* Action-specific colors for btn-social */
/* Select All - Purple */
.btn-social .fa-check-double,
.btn-social:has(.fa-check-double) {
    color: #8b5cf6;
}

.btn-social:has(.fa-check-double):hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
}

/* Assign - Cyan */
.btn-social .fa-user-gear,
.btn-social:has(.fa-user-gear) {
    color: #06b6d4;
}

.btn-social:has(.fa-user-gear):hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    color: #06b6d4;
}

/* Status - Amber */
.btn-social .fa-toggle-on,
.btn-social:has(.fa-toggle-on) {
    color: #f59e0b;
}

.btn-social:has(.fa-toggle-on):hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

/* Export/Download - Green */
.btn-social .fa-download,
.btn-social:has(.fa-download) {
    color: #10b981;
}

.btn-social:has(.fa-download):hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

/* Delete - Red */
.btn-social .fa-trash-can,
.btn-social .fa-trash,
.btn-social .fa-dumpster-fire,
.btn-social[style*="color:var(--danger)"],
.btn-social[style*="color: var(--danger)"] {
    color: #f43f5e !important;
}

.btn-social:has(.fa-trash-can):hover,
.btn-social:has(.fa-trash):hover,
.btn-social:has(.fa-dumpster-fire):hover,
.btn-social[style*="color:var(--danger)"]:hover,
.btn-social[style*="color: var(--danger)"]:hover {
    background: rgba(244, 63, 94, 0.1) !important;
    border-color: rgba(244, 63, 94, 0.3) !important;
    color: #f43f5e !important;
}

/* Clear Filters Button */
.btn-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-filters:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: rgba(244, 63, 94, 0.05);
}

/* Export & Import Buttons */
.btn-export,
.btn-import {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, sans-serif;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-export {
    color: #10b981;
}

.btn-export:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

.btn-import {
    color: #3b82f6;
}

.btn-import:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

/* Clients Toolbar */
.clients-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Light Theme Adjustments */
[data-theme="light"] .filter-bar {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .btn-social {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-social:hover {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .filter-dropdown {
    background: white !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   MODERN SEARCH BAR
   ============================================ */

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input,
.search-box .form-control {
    width: 220px;
    height: 40px;
    padding: 0 16px 0 42px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, sans-serif;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    transition: all 0.25s ease;
}

.search-box input::placeholder,
.search-box .form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-box input:hover,
.search-box .form-control:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-bright);
}

.search-box input:focus,
.search-box .form-control:focus {
    background: rgba(59, 130, 246, 0.05);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    outline: none;
}

.search-box .search-icon,
.search-box i.fa-magnifying-glass {
    position: absolute;
    left: 14px;
    font-size: 14px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s ease;
}

.search-box:focus-within .search-icon,
.search-box:focus-within i.fa-magnifying-glass {
    color: #3b82f6;
}

/* Light Theme */
[data-theme="light"] .search-box input,
[data-theme="light"] .search-box .form-control {
    background: white;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .search-box input:focus,
[data-theme="light"] .search-box .form-control:focus {
    background: white;
    border-color: #3b82f6;
}

/* ============================================
   CATALOGUE V2 MODULE
   ============================================ */

/* Page Layout */
.cat-page {
    padding: 0 5px;
}

.cat-page-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
}

.cat-page-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0 0;
}

/* --- KPI Bar --- */
.cat-kpi-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.cat-kpi-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.cat-kpi-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 22px;
}

.cat-kpi-info {
    display: flex;
    flex-direction: column;
}

.cat-kpi-value {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.cat-kpi-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .cat-kpi-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .cat-kpi-bar {
        grid-template-columns: 1fr;
    }
}

/* --- Filter Bar --- */
.cat-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 18px;
}

.cat-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.cat-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--text-muted);
    pointer-events: none;
}

.cat-search-wrap input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 40px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s;
}

.cat-search-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 158, 247, 0.12);
}

.cat-filter-group {
    display: flex;
    gap: 10px;
}

.cat-filter-group select {
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
}

.cat-filter-group select:focus {
    border-color: var(--primary);
}

.cat-view-toggles {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.cat-action-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 15px;
    transition: all 0.15s;
}

.cat-action-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.cat-action-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cat-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
    margin: 0 4px;
}

.cat-header-btn {
    height: 38px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 0 18px !important;
}

/* --- Bulk Bar --- */
.cat-bulk-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    background: rgba(0, 158, 247, 0.07);
    border: 1px solid rgba(0, 158, 247, 0.2);
    border-radius: 12px;
    margin-bottom: 18px;
    animation: fadeInDown 0.25s;
}

/* --- Grid View --- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
}

.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    border-color: var(--primary);
}

.cat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 0;
}

.cat-card-check input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.cat-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cat-card-body {
    padding: 18px 20px;
    cursor: pointer;
    flex: 1;
}

.cat-card-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 158, 247, 0.12), rgba(114, 57, 234, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 14px;
}

.cat-card-cover {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    background: rgba(0, 0, 0, 0.05);
}

.cat-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.cat-card:hover .cat-card-cover img {
    transform: scale(1.04);
}

.cat-card-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.3;
}

.cat-card-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.cat-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cat-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.cat-card-date {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.cat-card-actions {
    display: flex;
    border-top: 1px solid var(--border);
    padding: 0;
}

.cat-card-actions button {
    flex: 1;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.15s;
    border-right: 1px solid var(--border);
}

.cat-card-actions button:last-child {
    border-right: none;
}

.cat-card-actions button:hover {
    background: rgba(0, 158, 247, 0.06);
    color: var(--primary);
}

.cat-card-actions button.cat-action-danger:hover {
    background: rgba(244, 63, 94, 0.08);
    color: #f43f5e;
}

/* --- List View Table --- */
.cat-list-table {
    width: 100%;
    border-collapse: collapse;
}

.cat-list-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.cat-list-icon.import {
    background: rgba(114, 57, 234, 0.1);
    color: #7239EA;
}

.cat-list-icon.manual {
    background: rgba(0, 158, 247, 0.1);
    color: #009EF7;
}

.cat-list-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.cat-list-actions button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 13px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-list-actions button:hover {
    background: rgba(0, 158, 247, 0.06);
    color: var(--primary);
    border-color: var(--border);
}

.cat-list-actions button.cat-action-danger:hover {
    background: rgba(244, 63, 94, 0.08);
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.2);
}

/* --- Badges --- */
.cat-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

.cat-badge-published {
    background: rgba(80, 205, 137, 0.12);
    color: #50CD89;
}

.cat-badge-draft {
    background: rgba(255, 199, 0, 0.12);
    color: #FFC700;
}

.cat-badge-source-manual {
    background: rgba(0, 158, 247, 0.1);
    color: #009EF7;
}

.cat-badge-source-import_html {
    background: rgba(114, 57, 234, 0.1);
    color: #7239EA;
}

.cat-badge-lang {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.cat-tag {
    display: inline-flex;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
}

/* --- Empty State --- */
.cat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
}

.cat-empty-icon {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 158, 247, 0.1), rgba(114, 57, 234, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.cat-empty-state h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.cat-empty-state p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
    max-width: 400px;
}

.cat-empty-actions {
    display: flex;
    gap: 12px;
}

/* --- Import Page --- */
.cat-import-header {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

.cat-import-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
}

@media (max-width: 900px) {
    .cat-import-grid {
        grid-template-columns: 1fr;
    }
}

.cat-dropzone {
    border: 2px dashed rgba(0, 158, 247, 0.25);
    border-radius: 20px;
    padding: 60px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 158, 247, 0.02);
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-dropzone:hover {
    border-color: rgba(0, 158, 247, 0.5);
    background: rgba(0, 158, 247, 0.04);
}

.cat-dropzone-active {
    border-color: var(--primary) !important;
    background: rgba(0, 158, 247, 0.08) !important;
    transform: scale(1.01);
}

.cat-dropzone-icon {
    font-size: 52px;
    color: var(--primary);
    margin-bottom: 18px;
    opacity: 0.7;
}

.cat-dropzone-inner h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.cat-dropzone-inner p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.cat-dropzone-hint {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.6;
}

.cat-file-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin-top: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.cat-file-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(114, 57, 234, 0.1);
    color: #7239EA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.cat-file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.cat-file-details strong {
    font-size: 14px;
}

.cat-file-details span {
    font-size: 11px;
    color: var(--text-muted);
}

/* --- Form Card --- */
.cat-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 20px;
}

.cat-form-card h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.cat-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 158, 247, 0.1);
}

.cat-import-btn {
    width: 100%;
    height: 52px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

.cat-import-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* --- Builder Page --- */
.cat-builder-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.cat-builder-status-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.cat-status-btn {
    height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.cat-status-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cat-builder-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

@media (max-width: 1000px) {
    .cat-builder-grid {
        grid-template-columns: 1fr;
    }
}

.cat-builder-main {
    min-width: 0;
}

.cat-builder-sidebar {
    position: sticky;
    top: 20px;
}

/* Tags Input */
.cat-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-height: 44px;
    align-items: center;
}

.cat-tag-editable {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(0, 158, 247, 0.1);
    color: #009EF7;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.cat-tag-editable i {
    cursor: pointer;
    opacity: 0.6;
    font-size: 10px;
}

.cat-tag-editable i:hover {
    opacity: 1;
}

.cat-tag-input {
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    min-width: 120px;
    flex: 1;
}

/* HTML Editor */
.cat-html-editor {
    width: 100%;
    min-height: 350px;
    padding: 18px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #e0e0e0;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cat-html-editor:focus {
    border-color: var(--primary);
}

.cat-editor-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Detail Rows */
.cat-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.cat-detail-row:last-child {
    border-bottom: none;
}

.cat-detail-row span {
    color: var(--text-muted);
}

.cat-detail-row strong {
    font-size: 13px;
}

/* --- Preview Page --- */
.cat-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.cat-preview-header-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.cat-preview-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.cat-preview-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cat-warning-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    margin-bottom: 16px;
    background: rgba(255, 199, 0, 0.08);
    border: 1px solid rgba(255, 199, 0, 0.2);
    border-radius: 14px;
    font-size: 13px;
    color: #FFC700;
}

.cat-preview-frame {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.cat-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
    color: #999;
}

.cat-preview-empty i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.cat-preview-empty h3 {
    color: #666;
    margin-bottom: 8px;
}

.cat-preview-empty p {
    margin-bottom: 24px;
}

.cat-preview-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}

/* --- Stagger Animation --- */
.stagger-in {
    animation: fadeInUp 0.35s ease both;
}

.stagger-item {
    animation: fadeInUp 0.3s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Light Theme Overrides */
[data-theme="light"] .cat-kpi-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .cat-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .cat-input {
    background: white;
}

[data-theme="light"] .cat-search-wrap input {
    background: white;
}

[data-theme="light"] .cat-filter-group select {
    background: white;
}

[data-theme="light"] .cat-html-editor {
    background: #f8f9fa;
    color: #333;
}

[data-theme="light"] .cat-dropzone {
    background: rgba(0, 158, 247, 0.02);
}

[data-theme="light"] .cat-form-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .cat-tags-wrap {
    background: white;
}

/* --- Image Upload & Gallery --- */
.cat-img-dropzone {
    border: 2px dashed rgba(0, 158, 247, 0.2);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 158, 247, 0.02);
}

.cat-img-dropzone:hover {
    border-color: rgba(0, 158, 247, 0.4);
    background: rgba(0, 158, 247, 0.04);
}

.cat-img-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.cat-img-dropzone-inner i {
    font-size: 32px;
    color: var(--primary);
    opacity: 0.5;
}

.cat-img-dropzone-inner p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.cat-img-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.cat-img-thumbnail {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.05);
}

.cat-img-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cat-img-actions {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.2s;
}

.cat-img-thumbnail:hover .cat-img-actions {
    opacity: 1;
}

.cat-img-actions button {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    backdrop-filter: blur(2px);
}

.cat-img-actions button:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.cat-img-actions button:last-child:hover {
    background: #f43f5e;
}

[data-theme="light"] .cat-img-dropzone {
    background: rgba(0, 158, 247, 0.02);
}

[data-theme="light"] .cat-img-thumbnail {
    background: #f0f0f0;
}

/* ═══════════════════════════════════════════════════════════
   WHATSAPP CAMPAIGN MODULE STYLES
   ═══════════════════════════════════════════════════════════ */

.wa-module {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    overflow: hidden;
}

/* Tab Bar */
.wa-tab-bar {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.wa-tab-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wa-tab-btn:hover {
    background: rgba(37, 211, 102, 0.06);
    color: #25D366;
}

.wa-tab-btn.active {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.wa-tab-content {
    flex: 1;
    overflow-y: auto;
}

/* Icon Buttons */
.wa-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.wa-icon-btn:hover {
    background: rgba(37, 211, 102, 0.08);
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.2);
}

/* ── Chat Layout ── */
.wa-chat-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    height: 100%;
}

.wa-chat-sidebar {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
}

.wa-chat-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.wa-chat-list {
    overflow-y: auto;
    flex: 1;
}

.wa-chat-item {
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s;
}

.wa-chat-item:hover {
    background: rgba(37, 211, 102, 0.04);
}

.wa-chat-item.active {
    background: rgba(37, 211, 102, 0.08);
    border-left: 3px solid #25D366;
}

.wa-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.wa-chat-info {
    flex: 1;
    min-width: 0;
}

.wa-chat-info h4 {
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-chat-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 4px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-chat-time {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

.wa-chat-main {
    display: flex;
    flex-direction: column;
    background: #0b141a;
}

.wa-chat-header {
    padding: 12px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wa-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 10px;
    color: white;
}

.wa-bubble.out {
    align-self: flex-end;
    background: #005c4b;
}

.wa-bubble.in {
    align-self: flex-start;
    background: #202c33;
}

.wa-bubble p {
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

.wa-bubble-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    text-align: right;
    margin-top: 4px;
}

.wa-compose {
    padding: 12px 16px;
    background: var(--bg-card);
    display: flex;
    gap: 10px;
    align-items: center;
    border-top: 1px solid var(--border);
}

/* Empty State */
.wa-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.wa-empty-icon {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    background: rgba(37, 211, 102, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #25D366;
    margin-bottom: 20px;
    position: relative;
}

.wa-empty-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 26px;
    height: 26px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-card);
}

.wa-empty-badge i {
    color: white;
    font-size: 11px;
}

.wa-empty-state h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.wa-empty-state p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 420px;
    line-height: 1.6;
}

/* ── Campaigns ── */
.wa-campaigns-container {
    padding: 0 4px;
}

.wa-kpi-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.wa-kpi-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wa-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.wa-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.wa-kpi-value {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.wa-kpi-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.wa-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.wa-section-header h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 16px;
}

.wa-campaign-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wa-campaign-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.wa-campaign-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wa-campaign-actions {
    display: flex;
    gap: 4px;
}

.wa-status-badge {
    display: inline-flex;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 0.3px;
}

.wa-status-draft {
    background: rgba(255, 193, 7, 0.12);
    color: #FFC107;
}

.wa-status-active {
    background: rgba(37, 211, 102, 0.12);
    color: #25D366;
}

.wa-status-paused {
    background: rgba(255, 153, 0, 0.12);
    color: #FF9900;
}

.wa-status-completed {
    background: rgba(0, 158, 247, 0.12);
    color: #009EF7;
}

.wa-campaign-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
}

.wa-campaign-offer {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 14px;
    line-height: 1.5;
}

.wa-campaign-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.wa-campaign-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.wa-campaign-stats {
    display: flex;
    gap: 2px;
    margin-bottom: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.wa-stat {
    flex: 1;
    text-align: center;
}

.wa-stat-num {
    display: block;
    font-size: 16px;
    font-weight: 800;
}

.wa-stat-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Timeline */
.wa-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wa-timeline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.wa-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    transition: background 0.3s;
}

.wa-timeline-item.sent .wa-timeline-dot {
    background: #25D366;
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.4);
}

.wa-timeline-content strong {
    color: var(--text-primary);
    margin-right: 4px;
}

/* ── Templates ── */
.wa-templates-container {
    padding: 0 4px;
}

.wa-template-category {
    margin-bottom: 24px;
}

.wa-template-cat-title {
    font-size: 14px;
    font-weight: 700;
    color: #25D366;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.wa-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.wa-template-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.wa-template-card:hover {
    border-color: rgba(37, 211, 102, 0.3);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.08);
}

.wa-template-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wa-template-label {
    font-weight: 700;
    font-size: 13px;
}

.wa-copy-btn {
    opacity: 0.4;
    transition: opacity 0.2s;
}

.wa-template-card:hover .wa-copy-btn {
    opacity: 1;
}

.wa-template-body {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    line-height: 1.6;
    max-height: 120px;
    overflow-y: auto;
    background: transparent;
    font-family: inherit;
}

/* ── Quick Replies ── */
.wa-quickreplies-container {
    padding: 0 4px;
}

.wa-qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}

.wa-qr-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.wa-qr-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.wa-qr-shortcut {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.wa-qr-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.wa-qr-body {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    line-height: 1.5;
    background: transparent;
    font-family: inherit;
}

/* Quick Reply Picker */
.wa-qr-picker {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wa-qr-pick-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
}

.wa-qr-pick-item:hover {
    background: rgba(37, 211, 102, 0.06);
}

.wa-qr-pick-item code {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
}

.wa-qr-pick-item span {
    font-size: 13px;
}

/* ── Wizard ── */
.wa-wizard-body {
    min-height: 350px;
}

.wa-wizard-steps {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.wa-wizard-step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.25s;
}

.wa-wizard-step span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.wa-wizard-step.active {
    color: white;
    background: rgba(37, 211, 102, 0.12);
}

.wa-wizard-step.active span {
    background: #25D366;
    color: white;
}

.wa-wizard-step.done span {
    background: #128C7E;
    color: white;
}

.wa-wizard-panel {
    animation: fadeInUp 0.3s ease;
}

/* Audience List */
.wa-audience-list {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.wa-audience-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
}

.wa-audience-item:hover {
    background: rgba(37, 211, 102, 0.04);
}

.wa-audience-item input[type=checkbox] {
    accent-color: #25D366;
}

.wa-audience-name {
    flex: 1;
    font-weight: 600;
    font-size: 13px;
}

.wa-audience-phone {
    font-size: 12px;
    color: var(--text-muted);
}

/* Message Editor */
.wa-msg-editor {
    margin-bottom: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.wa-msg-editor-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(37, 211, 102, 0.04);
    border-bottom: 1px solid var(--border);
}

.wa-msg-day {
    background: #25D366;
    color: white;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.wa-msg-label {
    font-size: 13px;
    font-weight: 600;
    flex: 1;
}

.wa-msg-textarea {
    border: none;
    border-radius: 0;
    resize: none;
    font-size: 13px;
    padding: 12px 14px;
}

/* Review Grid */
.wa-review-grid {
    display: grid;
    gap: 10px;
}

.wa-review-item {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
}

.wa-review-item strong {
    margin-right: 8px;
    color: var(--text-primary);
}

/* ── Qualification ── */
.wa-qualify-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wa-qualify-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.wa-qualify-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
}

/* ── Checklist ── */
.wa-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wa-checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    font-size: 13px;
    transition: all 0.2s;
}

.wa-checklist-item.done {
    background: rgba(37, 211, 102, 0.04);
    border-color: rgba(37, 211, 102, 0.15);
}

/* Client List in New Chat Modal */
.wa-client-list {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.wa-client-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
}

.wa-client-item:hover {
    background: rgba(37, 211, 102, 0.04);
}

.wa-client-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 900px) {
    .wa-chat-layout {
        grid-template-columns: 1fr;
    }

    .wa-kpi-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .wa-campaign-grid {
        grid-template-columns: 1fr;
    }

    .wa-template-grid {
        grid-template-columns: 1fr;
    }

    .wa-qr-grid {
        grid-template-columns: 1fr;
    }
}

/* Light Theme Overrides */
[data-theme="light"] .wa-chat-main {
    background: #e5ddd5;
}

[data-theme="light"] .wa-bubble.out {
    background: #dcf8c6;
    color: #111;
}

[data-theme="light"] .wa-bubble.in {
    background: white;
    color: #111;
}

[data-theme="light"] .wa-bubble-time {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .wa-kpi-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .wa-campaign-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ═══════════════════════════════════════════════════════════
   AI LEAD SCRAPER STYLES
   ═══════════════════════════════════════════════════════════ */

.ls-module {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    overflow: hidden;
    gap: 16px;
}

/* Header & KPI */
.ls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.ls-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ls-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.ls-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px;
}

.ls-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.ls-kpi-row {
    display: flex;
    gap: 12px;
}

.ls-kpi {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.ls-kpi.ls-kpi-accent {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.05);
}

.ls-kpi-val {
    font-size: 18px;
    font-weight: 800;
}

.ls-kpi-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Tabs */
.ls-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
}

.ls-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 4px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    transition: all 0.2s;
}

.ls-tab:hover {
    color: var(--text-primary);
}

.ls-tab.active {
    border-bottom-color: #8B5CF6;
    color: #8B5CF6;
}

.ls-tab-hint {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.7;
}

/* Body */
.ls-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

/* Import Panel */
.ls-import-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

.ls-import-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ls-url-textarea {
    width: 100%;
    resize: none;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.2);
    border-color: var(--border);
}

.ls-upload-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px dashed var(--border);
}

.ls-file-name {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

.ls-import-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ls-import-config {
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.ls-import-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ls-btn-sm {
    font-size: 13px !important;
    padding: 8px 12px !important;
    height: 36px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Progress Bar */
.ls-progress-bar-wrap {
    margin-top: -8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
}

.ls-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #8B5CF6;
}

.ls-progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.ls-progress-fill {
    height: 100%;
    background: #8B5CF6;
    transition: width 0.3s ease;
}

/* Filters */
.ls-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    flex-wrap: wrap;
}

.ls-filter-search {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.ls-filter-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.ls-filter-search input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}

.ls-filter-search input:focus {
    border-color: #8B5CF6;
}

.ls-filter-select {
    height: 38px;
    padding: 0 30px 0 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    cursor: pointer;
}

.ls-filter-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

/* Actions Bar */
.ls-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 8px 16px;
}

.ls-select-all {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.ls-actions-right {
    display: flex;
    gap: 8px;
}

.ls-send-dropdown {
    position: relative;
}

.ls-send-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    z-index: 100;
    overflow: hidden;
    padding: 4px;
}

.ls-send-item {
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
}

.ls-send-item:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

/* Grid */
.ls-grid-wrap {
    flex: 1;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-card);
}

.ls-table {
    width: 100%;
    border-collapse: collapse;
}

.ls-table th {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    z-index: 10;
}

.ls-table td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13px;
    color: var(--text-secondary);
}

.ls-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.ls-row-selected {
    background: rgba(139, 92, 246, 0.05) !important;
}

.ls-cell-company {
    font-weight: 600;
    color: var(--text-primary);
}

.ls-link {
    color: #8B5CF6;
    text-decoration: none;
}

.ls-link:hover {
    text-decoration: underline;
}

.ls-type-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.ls-type-sales {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.ls-type-booking {
    background: rgba(0, 158, 247, 0.1);
    color: #009EF7;
}

.ls-type-info {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
}

.ls-type-partners {
    background: rgba(114, 57, 234, 0.1);
    color: #7239EA;
}

.ls-type-personal {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.ls-score {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
}

.ls-score-A {
    background: #25D366;
    color: white;
}

.ls-score-B {
    background: #FFC107;
    color: black;
}

.ls-score-C {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.ls-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 10px;
    margin-right: 4px;
    margin-bottom: 2px;
}

.ls-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
}

.ls-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.ls-empty {
    padding: 60px;
    text-align: center;
    color: var(--text-muted);
}

.ls-empty-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .ls-import-panel {
        grid-template-columns: 1fr;
    }

    .ls-import-actions {
        grid-template-columns: 1fr;
    }
}
/* ============= CLIENT SIDEBAR STYLES ============= */

.client-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 380px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-luxury);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
    backdrop-filter: blur(10px);
}

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

.client-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-luxury);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.client-sidebar-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-close-sidebar {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-close-sidebar:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.client-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.client-sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.client-sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.client-sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.client-sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.client-sidebar-section {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.client-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.client-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.section-title {
    margin: 0 0 16px 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.form-field {
    margin-bottom: 16px;
}

.form-field:last-child {
    margin-bottom: 0;
}

.form-field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: capitalize;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-luxury);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    background: rgba(0, 158, 247, 0.05);
}

.client-field-input,
.client-field-textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    padding: 0;
    outline: none;
    font-family: inherit;
}

.client-field-input::placeholder,
.client-field-textarea::placeholder {
    color: var(--text-muted);
}

.client-field-select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-luxury);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.client-field-select:hover,
.client-field-select:focus {
    border-color: var(--primary);
    background: rgba(0, 158, 247, 0.05);
    outline: none;
}

.client-field-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.client-field-textarea {
    padding: 10px 12px;
    border: 1px solid var(--border-luxury);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    resize: vertical;
    min-height: 100px;
}

.client-field-textarea:focus {
    border-color: var(--primary);
    background: rgba(0, 158, 247, 0.05);
}

.btn-copy-field {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy-field:hover {
    color: var(--text-secondary);
    background: var(--bg-hover);
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 158, 247, 0.15);
    border: 1px solid rgba(0, 158, 247, 0.3);
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.btn-remove-tag {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    line-height: 1;
}

.client-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .client-sidebar {
        width: 100%;
    }

    .client-sidebar-section {
        padding: 16px 20px;
    }

    .client-sidebar-header {
        padding: 16px 20px;
    }
}

/* ============= END CLIENT SIDEBAR STYLES ============= */

/* ============= COMMUNICATION CARD STYLES ============= */

.communication-card {
    background: linear-gradient(135deg, rgba(114, 57, 234, 0.08) 0%, rgba(0, 158, 247, 0.05) 100%);
    border: 1px solid rgba(114, 57, 234, 0.2);
    border-radius: 12px;
    margin: 16px 24px;
    padding: 16px;
}

.communication-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(114, 57, 234, 0.3);
}

.communication-header .section-title {
    color: #7239ea;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.communication-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.communication-content .form-field {
    margin-bottom: 0;
}

.response-status-select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(114, 57, 234, 0.08);
    border: 1px solid rgba(114, 57, 234, 0.25);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.response-status-select:hover,
.response-status-select:focus {
    border-color: #7239ea;
    background: rgba(114, 57, 234, 0.12);
    outline: none;
}

.response-status-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* ============= END COMMUNICATION CARD STYLES ============= */

/* ============= COMMUNICATION TRACKER SIDEBAR ============= */

.communication-tracker {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 340px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-luxury);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 999;
    animation: slideInLeft 0.3s ease-out;
    backdrop-filter: blur(10px);
}

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

.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-luxury);
    background: rgba(114, 57, 234, 0.08);
    flex-shrink: 0;
}

.tracker-header h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tracker-header i {
    color: #7239ea;
    font-size: 16px;
}

.btn-close-tracker {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-close-tracker:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.tracker-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.tracker-content::-webkit-scrollbar {
    width: 6px;
}

.tracker-content::-webkit-scrollbar-track {
    background: transparent;
}

.tracker-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.tracker-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tracker-section {
    margin-bottom: 16px;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(114, 57, 234, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
}

.tracker-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.contact-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.tracker-card {
    background: rgba(114, 57, 234, 0.08);
    border: 1px solid rgba(114, 57, 234, 0.2);
    border-radius: 10px;
    padding: 12px;
}

.tracker-section-title {
    margin: 0 0 12px 0;
    font-size: 12px;
    font-weight: 600;
    color: #7239ea;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tracker-section-title i {
    font-size: 13px;
}

.tracker-form-field {
    margin-bottom: 12px;
}

.tracker-form-field:last-child {
    margin-bottom: 0;
}

.tracker-form-field label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: capitalize;
}

.tracker-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-luxury);
    border-radius: 6px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}

.tracker-input-wrapper:focus-within {
    border-color: #7239ea;
    background: rgba(114, 57, 234, 0.08);
}

.tracker-input-wrapper i {
    color: var(--text-muted);
    font-size: 12px;
}

.tracker-field-input,
.tracker-field-textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    padding: 0;
    outline: none;
    font-family: inherit;
}

.tracker-field-input::placeholder,
.tracker-field-textarea::placeholder {
    color: var(--text-muted);
}

.tracker-field-select {
    width: 100%;
    padding: 8px 10px;
    background: rgba(114, 57, 234, 0.05);
    border: 1px solid rgba(114, 57, 234, 0.25);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tracker-field-select:hover,
.tracker-field-select:focus {
    border-color: #7239ea;
    background: rgba(114, 57, 234, 0.1);
    outline: none;
}

.tracker-field-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.tracker-field-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-luxury);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    resize: vertical;
    min-height: 80px;
    font-size: 13px;
}

.tracker-field-textarea:focus {
    border-color: #7239ea;
    background: rgba(114, 57, 234, 0.05);
}

.tracker-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    background: rgba(114, 57, 234, 0.08);
    border: 1px solid rgba(114, 57, 234, 0.2);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-value {
    font-size: 13px;
    font-weight: 700;
    color: #7239ea;
}

.tracker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    animation: fadeIn 0.3s ease-out;
}

@media (max-width: 768px) {
    .communication-tracker {
        width: 100%;
    }

    .tracker-stats {
        grid-template-columns: 1fr;
    }
}

/* ============= END COMMUNICATION TRACKER ============= */

/* ============= COMMUNICATION TRACKER MODAL ============= */

.comm-tracker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.comm-tracker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.comm-tracker-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--border-luxury);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header */
.comm-tracker-header {
    background: linear-gradient(135deg, rgba(0, 158, 247, 0.1) 0%, rgba(114, 57, 234, 0.08) 100%);
    border-bottom: 1px solid var(--border-luxury);
    padding: 24px;
}

.comm-header-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.comm-tracker-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.comm-header-info {
    flex: 1;
}

.comm-header-info h1 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.comm-email {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.comm-status-pill {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 158, 247, 0.15);
    color: #009EF7;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.comm-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.comm-close-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Body */
.comm-tracker-body {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.comm-tracker-body::-webkit-scrollbar {
    width: 6px;
}

.comm-tracker-body::-webkit-scrollbar-track {
    background: transparent;
}

.comm-tracker-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.comm-tracker-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Stats Grid */
.comm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.comm-stat-card {
    background: rgba(0, 158, 247, 0.05);
    border: 1px solid rgba(0, 158, 247, 0.15);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.comm-stat-card:hover {
    background: rgba(0, 158, 247, 0.08);
    border-color: rgba(0, 158, 247, 0.25);
}

.comm-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.comm-stat-text {
    flex: 1;
}

.comm-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.comm-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Grid */
.comm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.comm-form-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Form Sections */
.comm-form-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comm-form-section.comm-full-width {
    grid-column: 1 / -1;
}

.comm-form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comm-form-label i {
    font-size: 13px;
}

.comm-form-input,
.comm-form-select,
.comm-form-textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-luxury);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.comm-form-input::placeholder,
.comm-form-textarea::placeholder {
    color: var(--text-muted);
}

.comm-form-input:focus,
.comm-form-select:focus,
.comm-form-textarea:focus {
    outline: none;
    border-color: #009EF7;
    background: rgba(0, 158, 247, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 158, 247, 0.1);
}

.comm-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.comm-form-select {
    cursor: pointer;
}

.comm-form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Footer */
.comm-tracker-footer {
    border-top: 1px solid var(--border-luxury);
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.comm-btn-primary,
.comm-btn-secondary {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comm-btn-primary {
    background: linear-gradient(135deg, #009EF7 0%, #0072b1 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 158, 247, 0.3);
}

.comm-btn-primary:hover {
    background: linear-gradient(135deg, #00b8ff 0%, #0082c1 100%);
    box-shadow: 0 6px 16px rgba(0, 158, 247, 0.4);
    transform: translateY(-2px);
}

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

.comm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: var(--border-bright);
}

/* Responsive */
@media (max-width: 768px) {
    .comm-tracker-container {
        max-width: 95%;
        max-height: 95vh;
    }

    .comm-form-grid {
        grid-template-columns: 1fr;
    }

    .comm-header-top {
        flex-direction: column;
        text-align: center;
    }

    .comm-stats-grid {
        grid-template-columns: 1fr;
    }

    .comm-tracker-footer {
        flex-direction: column-reverse;
    }

    .comm-btn-primary,
    .comm-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ============= END COMMUNICATION TRACKER MODAL ============= */
