        /* ============================================
           STAT CARDS - REDESIGNED
           ============================================ */
        .stats-row {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.25rem;
            margin-bottom: 1.75rem;
        }

        .stat-card {
            background: #fff;
            border-radius: 14px;
            padding: 1.5rem;
            box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            border: none;
        }

        .stat-card h3 {
            font-size: 0.8rem;
            color: #6b7280;
            font-weight: 600;
            text-transform: none;
            margin-bottom: 0.6rem;
            letter-spacing: 0;
        }

        .stat-card .number {
            font-size: 2.1rem;
            font-weight: 700;
            color: #111827;
            line-height: 1;
            margin-bottom: 0.4rem;
        }

        .stat-card .stat-sub {
            font-size: 0.78rem;
            color: #9ca3af;
        }

        .stat-card-icon {
            width: 46px;
            height: 46px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .stat-icon-orange { background: #fff3ed; }
        .stat-icon-teal   { background: #ecfdf5; }
        .stat-icon-blue   { background: #eff6ff; }
        .stat-icon-amber  { background: #fffbeb; }

        /* ============================================
           CHARTS SECTION
           ============================================ */
        .charts-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.25rem;
            margin-bottom: 1.75rem;
        }

        .chart-card {
            background: #fff;
            border-radius: 14px;
            padding: 1.5rem;
            box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
        }

        .chart-card h3 {
            font-size: 0.95rem;
            font-weight: 700;
            color: #111827;
            margin-bottom: 1.25rem;
        }

        .chart-container {
            position: relative;
            height: 200px;
        }

        /* ============================================
           LEADS SECTION - MODERN
           ============================================ */
        .leads-section {
            background: #fff;
            border-radius: 14px;
            padding: 1.75rem;
            box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
        }

        .leads-header {
            margin-bottom: 1.25rem;
        }

        .leads-header h2 {
            font-size: 1.15rem;
            font-weight: 700;
            color: #111827;
            margin-bottom: 0.2rem;
        }

        .leads-header-sub {
            font-size: 0.82rem;
            color: #9ca3af;
        }

        .leads-toolbar {
            display: flex;
            gap: 0.75rem;
            align-items: center;
            margin-bottom: 1.25rem;
            flex-wrap: wrap;
        }

        .leads-search-wrap {
            flex: 1;
            min-width: 200px;
            position: relative;
        }

        .leads-search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            pointer-events: none;
        }

        .leads-search-input {
            width: 100%;
            padding: 0.7rem 1rem 0.7rem 2.75rem;
            border: 1px solid #e5e7eb;
            border-radius: 50px;
            font-size: 0.88rem;
            font-family: 'Open Sans', sans-serif;
            color: #374151;
            background: #f9fafb;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .leads-search-input:focus {
            outline: none;
            border-color: #d1d5db;
            box-shadow: 0 0 0 3px rgba(216,67,21,0.08);
            background: #fff;
        }

        .leads-filter-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.7rem 1.1rem;
            border: 1px solid #e5e7eb;
            border-radius: 50px;
            background: #f9fafb;
            color: #374151;
            font-size: 0.88rem;
            font-family: 'Open Sans', sans-serif;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .leads-filter-btn:hover {
            border-color: #d1d5db;
            background: #fff;
        }

        .leads-filter-select {
            appearance: none;
            -webkit-appearance: none;
            padding: 0.7rem 2.5rem 0.7rem 1.1rem;
            border: 1px solid #e5e7eb;
            border-radius: 50px;
            background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 0.9rem center;
            color: #374151;
            font-size: 0.88rem;
            font-family: 'Open Sans', sans-serif;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .leads-filter-select:focus {
            outline: none;
            border-color: #d1d5db;
            box-shadow: 0 0 0 3px rgba(216,67,21,0.08);
            background-color: #fff;
        }

        /* Hidden old filters */
        .filters-section { display: none !important; }

        table {
            width: 100%;
            border-collapse: collapse;
            table-layout: fixed;
        }

        thead { background: transparent; }

        th {
            padding: 0.75rem 1rem;
            text-align: left;
            font-weight: 800;
            color: #374151;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border-bottom: 1px solid #f3f4f6;
            resize: horizontal;
            overflow: hidden;
            position: relative;
        }

        td {
            padding: 0.875rem 1rem;
            border-bottom: 1px solid #f9fafb;
            font-size: 0.88rem;
            color: #374151;
        }

        tbody tr {
            cursor: pointer;
            transition: background 0.15s;
        }

        tbody tr:hover { background: #fafafa; }
        tbody tr:last-child td { border-bottom: none; }

        .status-select {
            padding: 0.35rem 0.65rem;
            border: 1.5px solid #ddd;
            border-radius: 20px;
            font-size: 0.8rem;
            cursor: pointer;
            font-weight: 600;
            width: fit-content;
            font-family: 'Open Sans', sans-serif;
        }

        .status-select[value="Nouveau (à contacter)"],
        .status-select[value="Accusé réception"],
        .status-nouveau {
            color: #1d4ed8;
            background: #eff6ff;
            text-align: center;
        }

        .status-select[value="Contacté"],
        .status-select[value="Premier Contact téléphone"],
        .status-select[value="Premier Contact email"],
        .status-select[value="Deuxième Contact téléphone"],
        .status-select[value="Deuxième Contact email"],
        .status-contacte {
            border-color: #f59e0b;
            color: #92400e;
            background: #fffbeb;
            text-align: center;
        }

        .status-select[value="Converti"],
        .status-converti {
            border-color: #10b981;
            color: #065f46;
            background: #ecfdf5;
            
        }

        .loading {
            text-align: center;
            padding: 2rem;
        }

        .spinner {
            display: inline-block;
            width: 40px;
            height: 40px;
            border: 4px solid var(--gray-light);
            border-top-color: var(--primary-orange);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

