        :root {
            /* TIS Brand Colors - Navy & Gold */
            --primary: #1B3A6D;
            --primary-light: #264A85;
            --primary-dark: #122647;
            --accent: #C9A227;
            --accent-hover: #B8931F;
            --accent-glow: rgba(201, 162, 39, 0.25);
            --sidebar-width: 260px;
            --sidebar-collapsed: 70px;
            --header-height: 64px;
            --bg-light: #F8FAFC;
            --bg-card: #FFFFFF;
            --text-primary: #1E293B;
            --text-secondary: #475569;
            --text-muted: #64748B;
            --border: #E2E8F0;
            --border-light: #F1F5F9;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
            --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
            --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
            --shadow-card-hover: 0 10px 40px -10px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
            --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
            --gradient-primary: linear-gradient(135deg, #1B3A6D 0%, #264A85 100%);
            --gradient-accent: linear-gradient(135deg, #C9A227 0%, #E0B82E 100%);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg-light);
            color: var(--text-primary);
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Login Screen */
        .login-screen {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            padding: 20px;
        }

        .login-card {
            background: white;
            border-radius: 16px;
            padding: 48px;
            width: 100%;
            max-width: 420px;
            box-shadow: var(--shadow-lg);
        }

        .login-logo {
            text-align: center;
            margin-bottom: 32px;
        }

        .login-logo img {
            height: 64px;
            margin-bottom: 8px;
        }

        .login-logo h1 {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--primary);
        }

        .login-logo p {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-top: 6px;
            letter-spacing: 0.02em;
            font-weight: 500;
        }
        
        .login-card {
            border-top: 4px solid var(--accent);
        }

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

        .form-group label {
            display: block;
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 6px;
        }

        .form-group input {
            width: 100%;
            padding: 12px 16px;
            border: 1.5px solid var(--border);
            border-radius: 10px;
            font-size: 0.95rem;
            font-family: inherit;
            transition: var(--transition);
        }

        .form-group input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-glow);
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 11px 22px;
            border-radius: 10px;
            font-size: 0.9rem;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            transition: all var(--transition-base);
            border: none;
            position: relative;
            overflow: hidden;
        }
        
        .btn::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
            opacity: 0;
            transition: opacity var(--transition-fast);
        }
        
        .btn:hover::after {
            opacity: 1;
        }

        .btn-primary {
            background: var(--gradient-accent);
            color: white;
            width: 100%;
            box-shadow: 0 2px 8px rgba(201, 162, 39, 0.25);
        }

        .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(201, 162, 39, 0.35);
        }
        
        .btn-primary:active {
            transform: translateY(0);
        }

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

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

        .login-error {
            background: #FEF2F2;
            color: #DC2626;
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 0.875rem;
            margin-bottom: 20px;
            display: none;
        }

        /* App Shell */
        .app-shell {
            display: none;
            min-height: 100vh;
        }

        .app-shell.active {
            display: flex;
        }

        /* Sidebar - Enhanced */
        .sidebar {
            position: fixed;
            left: 0;
            top: 0;
            bottom: 0;
            width: var(--sidebar-width);
            background: var(--gradient-primary);
            color: white;
            z-index: 100;
            display: flex;
            flex-direction: column;
            transition: var(--transition);
            box-shadow: 4px 0 24px rgba(27, 58, 109, 0.15);
        }
        
        .sidebar::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            pointer-events: none;
        }

        .sidebar-header {
            padding: 20px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .sidebar-logo {
            height: 36px;
            width: auto;
        }

        .sidebar-brand {
            font-size: 1.25rem;
            font-weight: 700;
            letter-spacing: -0.02em;
        }

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

        .nav-section {
            margin-bottom: 24px;
        }

        .nav-section-title {
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: rgba(255,255,255,0.6);
            padding: 0 12px;
            margin-bottom: 8px;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 11px 16px;
            border-radius: 10px;
            color: rgba(255,255,255,0.7);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            margin-bottom: 2px;
            position: relative;
            overflow: hidden;
        }

        .nav-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--accent);
            border-radius: 0 3px 3px 0;
            transform: scaleY(0);
            transition: transform var(--transition-base);
        }

        .nav-item:hover {
            background: rgba(255,255,255,0.08);
            color: white;
        }

        .nav-item.active {
            background: linear-gradient(90deg, rgba(201, 162, 39, 0.2) 0%, rgba(201, 162, 39, 0.05) 100%);
            color: white;
        }
        
        .nav-item.active::before {
            transform: scaleY(1);
        }

        .nav-item svg {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }

        .nav-item .badge {
            margin-left: auto;
            background: rgba(255,255,255,0.2);
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .nav-item.active .badge {
            background: rgba(255,255,255,0.3);
        }

        .sidebar-footer {
            padding: 16px;
            border-top: 1px solid rgba(255,255,255,0.1);
        }

        .user-menu {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            border-radius: 10px;
            cursor: pointer;
            transition: var(--transition);
        }

        .user-menu:hover {
            background: rgba(255,255,255,0.1);
        }

        .user-avatar {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: var(--gradient-accent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 0.95rem;
            box-shadow: 0 2px 8px rgba(201, 162, 39, 0.25);
        }

        .user-info {
            flex: 1;
            min-width: 0;
        }

        .user-name {
            font-size: 0.9rem;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .user-role {
            font-size: 0.75rem;
            color: rgba(255,255,255,0.6);
        }

        /* Main Content */
        .main-wrapper {
            flex: 1;
            margin-left: var(--sidebar-width);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            transition: var(--transition);
        }

        .main-header {
            height: var(--header-height);
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 28px;
            position: sticky;
            top: 0;
            z-index: 50;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .mobile-menu-btn {
            display: none;
            padding: 8px;
            border: none;
            background: none;
            cursor: pointer;
            border-radius: 8px;
        }

        .mobile-menu-btn:hover {
            background: var(--bg-light);
        }

        .mobile-menu-btn svg {
            width: 24px;
            height: 24px;
            color: var(--text-primary);
        }

        .page-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .header-btn {
            padding: 8px 12px;
            border: none;
            background: none;
            cursor: pointer;
            border-radius: 8px;
            color: var(--text-secondary);
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.875rem;
        }

        .header-btn:hover {
            background: var(--bg-light);
            color: var(--text-primary);
        }

        .header-btn svg {
            width: 20px;
            height: 20px;
        }

        /* Main Content Area */
        .main-content {
            flex: 1;
            padding: 24px;
            overflow-y: auto;
        }

        /* Section Content */
        .section-content {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .section-content.active {
            display: block;
        }

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

        /* Staggered card entrance animation */
        @keyframes cardEntrance {
            from { 
                opacity: 0; 
                transform: translateY(16px); 
            }
            to { 
                opacity: 1; 
                transform: translateY(0); 
            }
        }
        
        .stat-card, .home-stat-card {
            animation: cardEntrance 0.4s ease-out backwards;
        }
        
        .stat-card:nth-child(1), .home-stat-card:nth-child(1) { animation-delay: 0.05s; }
        .stat-card:nth-child(2), .home-stat-card:nth-child(2) { animation-delay: 0.1s; }
        .stat-card:nth-child(3), .home-stat-card:nth-child(3) { animation-delay: 0.15s; }
        .stat-card:nth-child(4), .home-stat-card:nth-child(4) { animation-delay: 0.2s; }
        .stat-card:nth-child(5), .home-stat-card:nth-child(5) { animation-delay: 0.25s; }
        .stat-card:nth-child(6), .home-stat-card:nth-child(6) { animation-delay: 0.3s; }

        /* Cards - Enhanced */
        .card {
            background: white;
            border-radius: 16px;
            box-shadow: var(--shadow-card);
            border: 1px solid var(--border);
            overflow: hidden;
            transition: all var(--transition-base);
        }
        
        .card:hover {
            box-shadow: var(--shadow-card-hover);
        }

        .card-header {
            padding: 18px 24px;
            border-bottom: 1px solid var(--border-light);
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
        }

        .card-title {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .card-body {
            padding: 24px;
        }

        /* Stats Navigation */
        .stats-nav-tab {
            padding: 12px 28px;
            background: transparent;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--text-secondary);
            transition: all 0.2s;
        }
        .stats-nav-tab:hover { background: rgba(0,191,166,0.08); }
        .stats-nav-tab.active {
            background: rgba(0,191,166,0.15);
            color: var(--accent);
        }
        .stats-tab-content { display: none; }
        .stats-tab-content.active { display: block; }
        
        .resolution-tab {
            padding: 8px 16px;
            background: var(--bg);
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.8rem;
            color: var(--text-secondary);
            transition: all 0.2s;
        }
        .resolution-tab:hover { background: var(--border); }
        .resolution-tab.active {
            background: rgba(0,191,166,0.15);
            color: var(--accent);
        }
        
        /* Stats Grid - Enhanced */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
            margin-bottom: 28px;
        }

        .stat-card {
            background: white;
            border-radius: 16px;
            padding: 22px 24px;
            box-shadow: var(--shadow-card);
            border: 1px solid var(--border);
            position: relative;
            overflow: hidden;
            transition: all var(--transition-base);
        }
        
        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-accent);
            opacity: 0;
            transition: opacity var(--transition-base);
        }
        
        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-card-hover);
        }
        
        .stat-card:hover::before {
            opacity: 1;
        }

        .stat-label {
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 10px;
        }

        .stat-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.2;
            letter-spacing: -0.02em;
        }

        .stat-change {
            font-size: 0.85rem;
            font-weight: 500;
            margin-top: 8px;
            display: flex;
            align-items: center;
            gap: 4px;
            color: var(--text-muted);
        }

        .stat-change.positive {
            color: #059669;
        }

        .stat-change.negative {
            color: #DC2626;
        }

        /* Mobile Overlay */
        .sidebar-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 99;
        }

        /* Mobile Responsive */
        @media (max-width: 1024px) {
            .sidebar {
                transform: translateX(-100%);
            }

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

            .sidebar-overlay.open {
                display: block;
            }

            .main-wrapper {
                margin-left: 0;
            }

            .mobile-menu-btn {
                display: block;
            }
        }

        @media (max-width: 900px) {
            #section-stats .card-body > div[style*="grid-template-columns: 1fr 1fr"] {
                grid-template-columns: 1fr !important;
            }
        }

        @media (max-width: 640px) {
            .main-content {
                padding: 16px;
            }

            .main-header {
                padding: 0 16px;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .login-card {
                padding: 32px 24px;
            }
            
            .card-header {
                flex-direction: column;
                gap: 12px;
                align-items: flex-start;
            }
            
            .card-header .btn {
                width: 100%;
            }
        }

        /* User Admin Modal */
        .modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 200;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal-overlay.open {
            display: flex;
        }

        .modal {
            background: white;
            border-radius: 16px;
            width: 100%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: var(--shadow-lg);
        }

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

        .modal-title {
            font-size: 1.125rem;
            font-weight: 600;
        }

        .modal-close {
            padding: 8px;
            border: none;
            background: none;
            cursor: pointer;
            border-radius: 8px;
            color: var(--text-secondary);
        }

        .modal-close:hover {
            background: var(--bg-light);
        }

        .modal-body {
            padding: 24px;
        }

        .modal-footer {
            padding: 16px 24px;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: flex-end;
            gap: 12px;
        }

        /* Checkbox Styling */
        .checkbox-group {
            margin-bottom: 16px;
        }

        .checkbox-label {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: var(--transition);
        }

        .checkbox-label:hover {
            background: var(--bg-light);
        }

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

        .checkbox-text {
            font-size: 0.9rem;
            color: var(--text-primary);
        }

        /* Unsaved Warning */
        .unsaved-warning {
            display: none;
            position: fixed;
            bottom: 24px;
            right: 24px;
            background: #FEF3C7;
            border: 1px solid #F59E0B;
            padding: 16px 20px;
            border-radius: 12px;
            box-shadow: var(--shadow-lg);
            z-index: 150;
            max-width: 320px;
        }

        .unsaved-warning.show {
            display: block;
            animation: slideUp 0.3s ease;
        }

        @keyframes slideUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .unsaved-warning h4 {
            color: #92400E;
            font-size: 0.9rem;
            margin-bottom: 8px;
        }

        .unsaved-warning p {
            color: #A16207;
            font-size: 0.85rem;
            margin-bottom: 12px;
        }

        .unsaved-warning-actions {
            display: flex;
            gap: 8px;
        }

        .unsaved-warning .btn {
            padding: 8px 16px;
            font-size: 0.85rem;
        }

        /* Loading Spinner */
        .loading-spinner {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 3px solid var(--border);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Toast Notifications */
        .toast-container {
            position: fixed;
            top: 24px;
            right: 24px;
            z-index: 300;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .toast {
            background: white;
            padding: 16px 20px;
            border-radius: 10px;
            box-shadow: var(--shadow-lg);
            display: flex;
            align-items: center;
            gap: 12px;
            animation: slideIn 0.3s ease;
            max-width: 360px;
        }

        @keyframes slideIn {
            from { opacity: 0; transform: translateX(20px); }
            to { opacity: 1; transform: translateX(0); }
        }

        .toast.success { border-left: 4px solid #10B981; }
        .toast.error { border-left: 4px solid #EF4444; }
        .toast.warning { border-left: 4px solid #F59E0B; }

        .toast-message {
            flex: 1;
            font-size: 0.9rem;
        }

        /* ===== PREVIEW MODE STYLES ===== */
        .preview-banner {
            background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
            color: #92400E;
            padding: 12px 20px;
            border-radius: 10px;
            font-size: 0.85rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
            border: 1px solid #F59E0B33;
        }
        .preview-icon { font-size: 1rem; }

        /* Stats Grid Enhancements */
        .stat-change {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-top: 4px;
        }
        .stat-change.positive { color: #10B981; }
        .stat-change.negative { color: #EF4444; }

        /* Data Tables */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.925rem;
        }
        .data-table th {
            text-align: left;
            padding: 14px 16px;
            background: var(--bg-light);
            color: var(--text-secondary);
            font-weight: 700;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid var(--border);
        }
        .data-table td {
            padding: 16px;
            border-bottom: 1px solid var(--border);
            vertical-align: middle;
        }
        .data-table tbody tr:hover {
            background: var(--bg-light);
        }

        /* Stage/Status Badges */
        .stage-badge {
            display: inline-block;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        .stage-badge.discovery { background: #E0E7FF; color: #3730A3; }
        .stage-badge.quoting { background: #FEF3C7; color: #92400E; }
        .stage-badge.proposal { background: #DBEAFE; color: #1E40AF; }
        .stage-badge.negotiating { background: #FCE7F3; color: #9D174D; }
        .stage-badge.verbal { background: #D1FAE5; color: #065F46; }

        /* Product Badges */
        .product-badge {
            display: inline-block;
            padding: 5px 12px;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        .product-badge.spectrum { background: #DBEAFE; color: #1E40AF; }
        .product-badge.voluntary { background: #F3E8FF; color: #6D28D9; }

        .btn-icon {
            background: none;
            border: none;
            padding: 8px;
            cursor: pointer;
            border-radius: 6px;
            color: var(--text-secondary);
            transition: var(--transition);
        }
        .btn-icon:hover { background: var(--bg-light); }

        /* Revenue Section Styles */
        .revenue-bar-chart { display: flex; flex-direction: column; gap: 16px; }
        .revenue-row { display: flex; align-items: center; gap: 16px; }
        .revenue-label { width: 140px; font-size: 0.85rem; color: var(--text-secondary); }
        .revenue-bar-container { flex: 1; height: 24px; background: var(--bg-light); border-radius: 12px; overflow: hidden; }
        .revenue-bar { height: 100%; border-radius: 12px; transition: width 0.5s ease; }
        .revenue-bar.spectrum { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
        .revenue-bar.voluntary { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }
        .revenue-bar.ga { background: linear-gradient(90deg, #10B981, #34D399); }
        .revenue-bar.fees { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
        .revenue-amount { width: 100px; text-align: right; font-weight: 600; font-size: 0.9rem; }

        /* Top Accounts List */
        .top-accounts-list { display: flex; flex-direction: column; }
        .top-account-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            border-bottom: 1px solid var(--border);
        }
        .top-account-item:last-child { border-bottom: none; }
        .top-account-item .rank {
            width: 24px;
            height: 24px;
            background: var(--accent);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: 700;
        }
        .top-account-item .account-info { flex: 1; }
        .top-account-item .account-name { font-weight: 600; font-size: 0.9rem; }
        .top-account-item .account-product { font-size: 0.85rem; color: var(--text-secondary); }
        .top-account-item .account-revenue { font-weight: 700; color: #059669; }

        /* Agent List Styles */
        .agent-list { display: flex; flex-direction: column; }
        .agent-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 16px;
            border-bottom: 1px solid var(--border);
        }
        .agent-item:last-child { border-bottom: none; }
        .agent-avatar {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 0.9rem;
        }
        .agent-info { flex: 1; }
        .agent-name { font-weight: 600; font-size: 0.95rem; }
        .agent-meta { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }
        .agent-stats { text-align: right; }
        .agent-production { font-weight: 700; color: #059669; font-size: 0.95rem; }
        .agent-status { font-size: 0.8rem; margin-top: 4px; font-weight: 500; }
        .agent-status.active { color: #059669; }
        .agent-status.pending { color: #B45309; }

        /* Appointment List */
        .appointment-list { display: flex; flex-direction: column; }
        .appointment-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            border-bottom: 1px solid var(--border);
        }
        .appointment-item:last-child { border-bottom: none; }
        .appointment-info { flex: 1; }
        .appointment-name { font-weight: 600; font-size: 0.9rem; }
        .appointment-meta { font-size: 0.8rem; color: var(--text-secondary); }
        .appointment-carrier { font-size: 0.85rem; color: var(--text-secondary); width: 80px; }
        .days-badge {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            background: #DBEAFE;
            color: #1D4ED8;
        }
        .days-badge.warning { background: #FEF3C7; color: #D97706; }
        .days-badge.danger { background: #FEE2E2; color: #DC2626; }

        /* Campaign List Styles */
        .campaign-list { display: flex; flex-direction: column; }
        .campaign-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 16px;
            border-bottom: 1px solid var(--border);
        }
        .campaign-item:last-child { border-bottom: none; }
        .campaign-icon {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
        }
        .campaign-icon.email { background: #DBEAFE; }
        .campaign-icon.direct { background: #FEF3C7; }
        .campaign-icon.event { background: #FCE7F3; }
        .campaign-info { flex: 1; }
        .campaign-name { font-weight: 600; font-size: 0.95rem; }
        .campaign-meta { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }
        .campaign-stats { display: flex; gap: 20px; }
        .campaign-metric { text-align: center; }
        .campaign-metric .metric-value { display: block; font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
        .campaign-metric .metric-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; font-weight: 600; }

        /* Materials List */
        .materials-list { display: flex; flex-direction: column; }
        .material-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            border-bottom: 1px solid var(--border);
        }
        .material-item:last-child { border-bottom: none; }
        .material-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            background: var(--bg-light);
        }
        .material-info { flex: 1; }
        .material-name { font-weight: 600; font-size: 0.925rem; }
        .material-meta { font-size: 0.85rem; color: var(--text-secondary); }

        /* ===== HOME DASHBOARD STYLES ===== */
        .home-welcome {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 28px;
            padding: 24px 28px;
            background: var(--gradient-primary);
            border-radius: 16px;
            color: white;
            position: relative;
            overflow: hidden;
        }
        .home-welcome::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            pointer-events: none;
        }
        .welcome-text h1 {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 4px;
            letter-spacing: -0.02em;
            color: white !important;
            text-shadow: 0 1px 2px rgba(0,0,0,0.2);
        }
        .welcome-text p {
            opacity: 1;
            font-size: 1rem;
            font-weight: 500;
            color: rgba(255,255,255,0.95);
        }
        .welcome-actions .btn {
            background: rgba(255,255,255,0.15);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.2);
            color: white;
        }
        .welcome-actions .btn:hover {
            background: rgba(255,255,255,0.25);
        }

        .home-stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 28px;
        }
        @media (max-width: 1200px) {
            .home-stats-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 640px) {
            .home-stats-grid { grid-template-columns: 1fr; }
        }

        .home-stat-card {
            background: white;
            border-radius: 16px;
            padding: 20px 24px;
            box-shadow: var(--shadow-card);
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 16px;
            cursor: pointer;
            transition: all var(--transition-base);
        }
        .home-stat-card:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: var(--shadow-card-hover);
            border-color: var(--accent);
        }
        .home-stat-icon {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            flex-shrink: 0;
        }
        .home-stat-content {
            flex: 1;
            min-width: 0;
        }
        .home-stat-value {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.2;
            letter-spacing: -0.02em;
        }
        .home-stat-label {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-top: 4px;
        }

        .home-two-col {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
        }
        @media (max-width: 1024px) {
            .home-two-col { grid-template-columns: 1fr; }
        }

        .home-activity-card {
            height: fit-content;
        }
        .home-activity-list {
            max-height: 420px;
            overflow-y: auto;
        }
        .home-activity-item {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            padding: 16px 20px;
            border-bottom: 1px solid var(--border-light);
            transition: background var(--transition-fast);
        }
        .home-activity-item:hover {
            background: var(--bg-light);
        }
        .home-activity-item:last-child {
            border-bottom: none;
        }
        .home-activity-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            flex-shrink: 0;
        }
        .home-activity-icon.case { background: #DBEAFE; }
        .home-activity-icon.deal { background: #D1FAE5; }
        .home-activity-icon.ticket { background: #FEF3C7; }
        .home-activity-icon.renewal { background: #FCE7F3; }
        .home-activity-content {
            flex: 1;
            min-width: 0;
        }
        .home-activity-title {
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 2px;
        }
        .home-activity-meta {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }
        .home-activity-time {
            font-size: 0.8rem;
            color: var(--text-muted);
            white-space: nowrap;
        }

        .home-sections-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }
        @media (max-width: 640px) {
            .home-sections-grid { grid-template-columns: 1fr; }
        }

        .home-section-card {
            background: white;
            border-radius: 14px;
            padding: 18px 20px;
            box-shadow: var(--shadow-card);
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 14px;
            cursor: pointer;
            transition: all var(--transition-base);
        }
        .home-section-card:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: var(--shadow-card-hover);
            border-color: var(--accent);
        }
        .home-section-card.disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
        .home-section-card.disabled:hover {
            transform: none;
            box-shadow: var(--shadow-card);
            border-color: var(--border);
        }
        .home-section-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            flex-shrink: 0;
        }
        .home-section-info {
            flex: 1;
            min-width: 0;
        }
        .home-section-title {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-primary);
        }
        .home-section-desc {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-top: 4px;
        }

        .home-empty-state {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-secondary);
        }
        .home-empty-state svg {
            width: 48px;
            height: 48px;
            opacity: 0.4;
            margin-bottom: 12px;
        }

        .task-filter-btn {
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            border: 1.5px solid var(--border);
            background: white;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all var(--transition-fast);
        }
        .task-filter-btn:hover {
            border-color: var(--accent);
            color: var(--accent);
        }
        .task-filter-btn.active {
            background: var(--accent);
            border-color: var(--accent);
            color: white;
        }
        .task-project-group {
            margin-bottom: 20px;
        }
        .task-project-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 16px;
            background: var(--bg-light);
            border-radius: 10px 10px 0 0;
            border: 1px solid var(--border);
            border-bottom: none;
            cursor: pointer;
        }
        .task-project-header:hover {
            background: var(--border-light);
        }
        .task-project-icon {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
        }
        .task-project-name {
            font-weight: 600;
            font-size: 0.9rem;
            flex: 1;
        }
        .task-project-count {
            font-size: 0.75rem;
            color: var(--text-muted);
            background: var(--border);
            padding: 2px 8px;
            border-radius: 10px;
        }
        .task-project-chevron {
            width: 18px;
            height: 18px;
            color: var(--text-muted);
            transition: transform var(--transition-fast);
        }
        .task-project-header.collapsed .task-project-chevron {
            transform: rotate(-90deg);
        }
        .task-list {
            border: 1px solid var(--border);
            border-radius: 0 0 10px 10px;
            overflow: hidden;
        }
        .task-project-header.collapsed + .task-list {
            display: none;
        }
        .task-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 14px 16px;
            border-bottom: 1px solid var(--border-light);
            background: white;
            transition: all var(--transition-fast);
        }
        .task-item:last-child {
            border-bottom: none;
        }
        .task-item:hover {
            background: var(--bg-light);
        }
        .task-item.completed {
            opacity: 0.5;
        }
        .task-item.completed .task-text {
            text-decoration: line-through;
            color: var(--text-muted);
        }
        .task-item.hidden {
            display: none;
        }
        .task-checkbox {
            width: 20px;
            height: 20px;
            border-radius: 6px;
            border: 2px solid var(--border);
            cursor: pointer;
            flex-shrink: 0;
            margin-top: 2px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-fast);
        }
        .task-checkbox:hover {
            border-color: var(--accent);
        }
        .task-checkbox.checked {
            background: var(--accent);
            border-color: var(--accent);
        }
        .task-checkbox.checked svg {
            display: block;
        }
        .task-checkbox svg {
            display: none;
            width: 12px;
            height: 12px;
            color: white;
        }
        .task-content {
            flex: 1;
            min-width: 0;
        }
        .task-text {
            font-size: 0.9rem;
            color: var(--text-primary);
            line-height: 1.4;
        }
        .task-meta {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-top: 6px;
            display: flex;
            gap: 12px;
        }
        .task-phase {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
        }
        .task-phase.phase-1 { background: #DBEAFE; color: #1D4ED8; }
        .task-phase.phase-2 { background: #FEF3C7; color: #D97706; }
        .task-phase.phase-3 { background: #FCE7F3; color: #BE185D; }
        .task-phase.phase-4 { background: #D1FAE5; color: #059669; }
        .task-phase.quick-win { background: #E0E7FF; color: #4338CA; }

        /* Email Tasks Styles */
        .email-task-item {
            transition: background var(--transition-fast);
        }
        .email-task-item:hover {
            background: var(--bg-light);
        }
        .email-task-item:last-child {
            border-bottom: none !important;
        }
