/**
 * Senna CRM - Main Styles
 * Design System: Clean, natural styling inspired by recruiter-post-article
 * Senna teal color scheme with subtle shadows
 */

/* ============================================
   CSS Variables - Natural Clean Design
   ============================================ */
:root {
    /* Background - Simple solid colors */
    --crm-bg: #f9fafb;
    --crm-bg-solid: #f9fafb;
    --crm-bg-subtle: #f3f4f6;

    /* Card Backgrounds - Solid, no glass effect */
    --crm-card-bg: #ffffff;
    --crm-card-bg-solid: #ffffff;
    --crm-card-bg-hover: #f9fafb;

    /* Senna Brand Palette - Primary */
    --crm-senna-primary: #0d353e;
    --crm-senna-secondary: #1a4a56;
    --crm-senna-accent: #2d6a7a;
    --crm-senna-light: #e8f4f8;
    --crm-senna-dark: #0a2a32;

    /* Gray Palette - Tailwind inspired */
    --crm-gray-900: #111827;
    --crm-gray-800: #1f2937;
    --crm-gray-700: #374151;
    --crm-gray-600: #4b5563;
    --crm-gray-500: #6b7280;
    --crm-gray-400: #9ca3af;
    --crm-gray-300: #d1d5db;
    --crm-gray-200: #e5e7eb;
    --crm-gray-100: #f3f4f6;
    --crm-gray-50: #f9fafb;
    --crm-white: #ffffff;

    /* Semantic Colors - Primary now uses Senna teal */
    --crm-primary: #0d353e;
    --crm-primary-hover: #0a2a32;
    --crm-primary-light: #e8f4f8;

    /* Text Colors */
    --crm-text: #111827;
    --crm-text-secondary: #4b5563;
    --crm-text-muted: #6b7280;

    /* Border Colors - Solid, not rgba */
    --crm-border: #e5e7eb;
    --crm-border-light: #f3f4f6;

    /* Status Colors */
    --crm-success: #059669;
    --crm-success-light: #ecfdf5;
    --crm-success-border: #a7f3d0;
    --crm-warning: #d97706;
    --crm-warning-light: #fffbeb;
    --crm-warning-border: #fde68a;
    --crm-error: #dc2626;
    --crm-error-light: #fef2f2;
    --crm-error-border: #fecaca;
    --crm-info: #0284c7;
    --crm-info-light: #f0f9ff;
    --crm-info-border: #bae6fd;

    /* Accent Colors */
    --crm-blue: #3b82f6;
    --crm-accent: #0d353e; /* Senna teal - replaced purple */
    --crm-accent-light: #e8f4f8; /* Senna teal light - replaced purple-light */

    /* Design Tokens - Reduced border radius */
    --crm-radius: 8px;
    --crm-radius-lg: 10px;
    --crm-radius-xl: 12px;

    /* Shadows - Subtle and natural */
    --crm-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --crm-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --crm-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --crm-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
    --crm-shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Typography */
    --crm-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Legacy variables for compatibility */
    --crm-navy-900: #111827;
    --crm-navy-800: #1f2937;
    --crm-navy-700: #374151;
    --crm-navy-600: #4b5563;
    --crm-blue-700: #1d4ed8;
    --crm-blue-600: #2563eb;
    --crm-blue-500: #3b82f6;
    --crm-blue-400: #60a5fa;
    --crm-blue-300: #93c5fd;
    --crm-blue-200: #bfdbfe;
    --crm-blue-100: #dbeafe;
    --crm-blue-50: #eff6ff;
    --crm-bg-light: #f9fafb;
    --crm-text-primary: #111827;
}

/* ============================================
   Base Container - Clean Solid Background
   ============================================ */
.sffc-crm-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 24px 32px;
    background: var(--crm-bg);
    font-family: var(--crm-font);
    color: var(--crm-text);
    min-height: 100vh;
    box-sizing: border-box;
}

/* Remove theme constraints */
.sffc-crm-container,
.sffc-crm-container * {
    box-sizing: border-box;
}

/* Override any theme wrapper constraints */
body.page-template-default .sffc-crm-container,
.entry-content .sffc-crm-container,
.site-content .sffc-crm-container,
article .sffc-crm-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
}

/* ============================================
   Header - Clean Natural Design
   ============================================ */
.sffc-crm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 24px 28px;
    background: #0d353e;
    border-radius: 20px;
    box-shadow: 0 32px 60px rgba(7, 30, 34, 0.35);
    position: relative;
    overflow: visible;
}

.sffc-crm-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent 55%);
    pointer-events: none;
}

.sffc-crm-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: 0.02em;
}

.sffc-crm-title span {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    letter-spacing: normal;
    margin-top: 4px;
}

.sffc-crm-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sffc-crm-connect-email {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sffc-crm-email-pill {
    display: none;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(13, 53, 62, 0.08);
    color: #0d353e;
    font-size: 13px;
    font-weight: 600;
}

.sffc-crm-email-pill.is-connected {
    display: inline-flex;
    background: #0d353e;
    color: #fff;
}

.sffc-crm-email-pill--manual {
    display: inline-flex;
    background: rgba(13, 53, 62, 0.08);
    color: #0d353e;
}

/* Header Layout - Left & Right */
.sffc-crm-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sffc-crm-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sffc-crm-user-dropdown {
    margin-left: auto;
}

/* Logo */
.sffc-crm-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sffc-crm-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* User Dropdown */
.sffc-crm-user-dropdown {
    position: relative;
}

.sffc-crm-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--crm-card-bg);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--crm-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--crm-text);
}

.sffc-crm-dropdown-toggle:hover {
    background: var(--crm-gray-50);
    border-color: var(--crm-gray-300);
}

.sffc-crm-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--crm-senna-light);
}

.sffc-crm-user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--crm-senna-light) 0%, var(--crm-senna-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crm-white);
    font-weight: 600;
    font-size: 14px;
}

.sffc-crm-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sffc-crm-dropdown-arrow {
    width: 16px;
    height: 16px;
    color: var(--crm-gray-500);
    transition: transform 0.2s ease;
}

.sffc-crm-user-dropdown.open .sffc-crm-dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.sffc-crm-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: var(--crm-white);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    box-shadow: var(--crm-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow: hidden;
}

/* Ensure dropdown parent has proper stacking context */
.sffc-crm-user-dropdown {
    position: relative;
    z-index: 100;
}

.sffc-crm-user-dropdown.open .sffc-crm-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sffc-crm-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--crm-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    font-family: var(--crm-font);
}

.sffc-crm-dropdown-item:hover {
    background: var(--crm-senna-light);
    color: var(--crm-senna-primary);
}

.sffc-crm-dropdown-item svg {
    width: 18px;
    height: 18px;
    color: var(--crm-gray-500);
    flex-shrink: 0;
}

.sffc-crm-dropdown-item:hover svg {
    color: var(--crm-senna-primary);
}

.sffc-crm-dropdown-divider {
    height: 1px;
    background: var(--crm-border);
    margin: 4px 0;
}

.sffc-crm-dropdown-item.sffc-crm-logout,
.sffc-crm-dropdown-item.sffc-crm-dropdown-logout {
    color: var(--crm-error);
}

.sffc-crm-dropdown-item.sffc-crm-logout:hover,
.sffc-crm-dropdown-item.sffc-crm-dropdown-logout:hover {
    background: var(--crm-error-light);
    color: var(--crm-error);
}

.sffc-crm-dropdown-item.sffc-crm-logout svg,
.sffc-crm-dropdown-item.sffc-crm-dropdown-logout svg {
    color: var(--crm-error);
}

/* Dropdown Header */
.sffc-crm-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid var(--crm-border-light);
}

.sffc-crm-dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--crm-senna-light);
}

.sffc-crm-dropdown-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sffc-crm-dropdown-user-name {
    font-weight: 600;
    color: var(--crm-navy-800);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sffc-crm-dropdown-user-email {
    font-size: 12px;
    color: var(--crm-gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Button Icon Variant - Header */
.sffc-crm-header .sffc-crm-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--crm-bg-subtle);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    cursor: pointer;
    transition: all 0.15s ease;
}

.sffc-crm-header .sffc-crm-btn-icon:hover {
    background: var(--crm-primary-light);
    border-color: var(--crm-primary);
}

.sffc-crm-header .sffc-crm-btn-icon svg {
    color: var(--crm-text);
}

/* Mobile Menu Toggle */
.sffc-crm-mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: var(--crm-bg-subtle);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    cursor: pointer;
    transition: all 0.15s ease;
}

.sffc-crm-mobile-menu-toggle:hover {
    background: var(--crm-primary-light);
}

.sffc-crm-mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--crm-text);
}

/* Filter Button in Header */
.sffc-crm-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--crm-bg-subtle);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--crm-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--crm-text);
}

.sffc-crm-filter-toggle:hover {
    background: var(--crm-primary-light);
    border-color: var(--crm-primary);
}

.sffc-crm-filter-toggle svg {
    width: 18px;
    height: 18px;
}

.sffc-crm-filter-toggle.active {
    background: var(--crm-primary-light);
    border-color: var(--crm-primary);
    color: var(--crm-primary);
}

/* ============================================
   Buttons - McKinsey Style
   ============================================ */
.sffc-crm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--crm-font);
    border-radius: var(--crm-radius);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.sffc-crm-btn-primary {
    background: var(--crm-primary);
    color: var(--crm-white);
    box-shadow: var(--crm-shadow);
}

.sffc-crm-btn-primary:hover {
    background: var(--crm-primary-hover);
    box-shadow: var(--crm-shadow-md);
}

.sffc-crm-reach-out-btn.is-locked {
    opacity: 0.85;
    box-shadow: none;
}

.sffc-crm-btn-secondary {
    background: var(--crm-white);
    color: var(--crm-text);
    border: 1px solid var(--crm-border);
}

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

.sffc-crm-btn-success {
    background: var(--crm-success);
    color: var(--crm-white);
}

.sffc-crm-btn-success:hover {
    background: #047857;
}

.sffc-crm-btn-outline {
    background: transparent;
    color: var(--crm-primary);
    border: 1px solid var(--crm-primary);
}

.sffc-crm-btn-outline:hover {
    background: var(--crm-primary-light);
}

.sffc-crm-btn-text {
    background: transparent;
    color: var(--crm-text-secondary);
    padding: 10px 12px;
}

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

/* Post title link styles */
.sffc-crm-post-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.sffc-crm-post-link:hover {
    color: var(--crm-primary);
}

.sffc-crm-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    background: var(--crm-white);
    color: var(--crm-text-secondary);
    border: 1px solid var(--crm-border);
}

.sffc-crm-btn-icon:hover {
    background: var(--crm-primary-light);
    border-color: var(--crm-primary);
    color: var(--crm-primary);
}

.sffc-crm-btn-icon.is-saved {
    color: var(--crm-primary);
    border-color: var(--crm-primary);
    background: var(--crm-primary-light);
}

.sffc-crm-btn-small {
    padding: 8px 14px;
    font-size: 13px;
}

.sffc-crm-btn-large {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
}

/* ============================================
   Section Header - Accent Bar Style
   ============================================ */
.sffc-crm-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.sffc-crm-section-header::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--crm-primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.sffc-crm-section-header h3,
.sffc-crm-section-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0;
}

/* ============================================
   Tabs - Clean Natural Style
   ============================================ */
.sffc-crm-tabs {
    display: flex;
    gap: 4px;
    background: var(--crm-bg-subtle);
    padding: 4px;
    border-radius: var(--crm-radius);
    border: 1px solid var(--crm-border);
    margin-bottom: 24px;
}

.sffc-crm-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--crm-text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--crm-radius);
    cursor: pointer;
    transition: all 0.15s ease;
}

.sffc-crm-tab:hover {
    color: var(--crm-text);
    background: var(--crm-white);
}

.sffc-crm-tab.active {
    color: var(--crm-primary);
    background: var(--crm-white);
    box-shadow: var(--crm-shadow);
}

.sffc-crm-tab svg {
    opacity: 0.6;
    width: 18px;
    height: 18px;
}

.sffc-crm-tab.active svg {
    opacity: 1;
}

/* ============================================
   Filter Panel - Clean Style
   ============================================ */
.sffc-crm-filters {
    background: var(--crm-card-bg);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--crm-shadow-xs);
}

.sffc-crm-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    align-items: end;
}

.sffc-crm-filter-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--crm-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.sffc-crm-select,
.sffc-crm-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: var(--crm-font);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    background: var(--crm-white);
    color: var(--crm-text);
    transition: border-color 0.15s ease;
}

.sffc-crm-select:focus,
.sffc-crm-input:focus {
    outline: none;
    border-color: var(--crm-primary);
    box-shadow: 0 0 0 2px var(--crm-primary-light);
    background: var(--crm-white);
}

.sffc-crm-filter-search {
    grid-column: span 2;
}

.sffc-crm-filter-actions {
    display: flex;
    gap: 10px;
}

/* ============================================
   Feed Grid (legacy card layout)
   ============================================ */
.sffc-crm-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

/* ============================================
   Feed List - Clean Style
   ============================================ */
.sffc-crm-feed-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--crm-card-bg);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    overflow: hidden;
    box-shadow: var(--crm-shadow);
}

/* Post Row */
.sffc-crm-post-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--crm-white);
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid var(--crm-border-light);
}

.sffc-crm-post-row:hover {
    background: var(--crm-bg-subtle);
}

.sffc-crm-post-row:first-child {
    border-radius: var(--crm-radius) var(--crm-radius) 0 0;
}

.sffc-crm-post-row:last-child {
    border-radius: 0 0 var(--crm-radius) var(--crm-radius);
    border-bottom: none;
}

.sffc-crm-post-row:only-child {
    border-radius: var(--crm-radius);
}

/* Row Avatar */
.sffc-crm-row-avatar {
    flex-shrink: 0;
}

.sffc-crm-row-avatar.is-blurred .sffc-crm-avatar,
.sffc-crm-row-avatar.is-blurred .sffc-crm-avatar-placeholder {
    filter: blur(6px);
    opacity: 0.6;
}

.sffc-crm-row-avatar .sffc-crm-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--crm-radius);
    box-shadow: var(--crm-shadow-xs);
}

.sffc-crm-row-avatar .sffc-crm-avatar-placeholder {
    width: 44px;
    height: 44px;
    font-size: 16px;
    background: var(--crm-primary);
    border-radius: var(--crm-radius);
}

/* Row Content */
.sffc-crm-row-content {
    flex: 1;
    min-width: 0;
}

.sffc-crm-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--crm-border-light);
}

.sffc-crm-row-title {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--crm-navy-900);
    letter-spacing: -0.01em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sffc-crm-row-time {
    font-size: 12px;
    color: var(--crm-gray-400);
    white-space: nowrap;
    flex-shrink: 0;
}

.sffc-crm-row-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--crm-gray-600);
    margin-bottom: 10px;
}

.sffc-crm-row-recruiter {
    font-weight: 500;
    color: var(--crm-navy-700);
}

.sffc-crm-row-firm {
    font-weight: 400;
    color: var(--crm-gray-500);
}

.sffc-crm-row-sep {
    color: var(--crm-gray-300);
}

.sffc-crm-row-company {
    color: var(--crm-gray-600);
}

/* Row Tags */
.sffc-crm-row-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Row Actions */
.sffc-crm-row-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sffc-crm-row-select {
    display: flex;
    align-items: center;
    padding-right: 12px;
}

.sffc-crm-row-select input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.sffc-crm-add-list-wrapper {
    position: relative;
}

.sffc-crm-add-list-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: var(--crm-white);
    border: 1px solid var(--crm-border);
    border-radius: 14px;
    box-shadow: 0 16px 32px rgba(13, 53, 62, 0.12);
    padding: 16px;
    display: none;
    z-index: 40;
}

.sffc-crm-add-list-dropdown.is-open {
    display: block;
}

.sffc-crm-inline-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.sffc-crm-inline-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--crm-gray-400);
}

.sffc-crm-add-list-dropdown .sffc-crm-inline-select,
.sffc-crm-add-list-dropdown .sffc-crm-inline-new-name {
    width: 100%;
    border: 1px solid var(--crm-border);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--crm-text);
}

.sffc-crm-inline-divider {
    text-align: center;
    margin: 4px 0 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--crm-gray-400);
}

.sffc-crm-inline-divider span {
    background: var(--crm-white);
    padding: 0 6px;
}

.sffc-crm-inline-status {
    font-size: 12px;
    min-height: 16px;
    color: var(--crm-gray-500);
}

.sffc-crm-inline-status.is-success {
    color: var(--crm-success);
}

.sffc-crm-inline-status.is-error {
    color: var(--crm-danger, #d14343);
}

.sffc-crm-inline-loading {
    font-size: 13px;
    color: var(--crm-gray-500);
}

/* Mobile responsive for list */
@media (max-width: 640px) {
    .sffc-crm-post-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sffc-crm-row-avatar {
        width: 100%;
        display: flex;
        margin-bottom: 4px;
    }

    .sffc-crm-row-avatar .sffc-crm-avatar,
    .sffc-crm-row-avatar .sffc-crm-avatar-placeholder {
        margin-right: 0;
    }

    .sffc-crm-row-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .sffc-crm-row-actions {
        width: 100%;
        justify-content: flex-end;
        padding-top: 8px;
        border-top: 1px solid var(--crm-border-light);
    }

    .sffc-crm-row-actions,
    .sffc-crm-row-tags {
        gap: 10px;
    }

    .sffc-crm-row-actions .sffc-crm-btn {
        width: 100%;
    }

    .sffc-crm-recruiter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }

    .sffc-crm-recruiter-avatar {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .sffc-crm-recruiter-status {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .sffc-crm-btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        font-size: 14px;
        padding: 12px 14px;
    }

    .sffc-crm-btn + .sffc-crm-btn {
        margin-left: 0;
    }

    .sffc-crm-btn-outline {
        border-width: 1.5px;
    }

    .sffc-crm-btn-small {
        padding: 10px 14px;
        font-size: 13px;
    }

    .sffc-crm-add-list-dropdown {
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
    }
}

/* ============================================
   Post Card - Clean Style
   ============================================ */
.sffc-crm-post-card {
    background: var(--crm-white);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    padding: 20px;
    transition: box-shadow 0.15s ease;
}

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

/* Recruiter Header */
.sffc-crm-post-recruiter {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.sffc-crm-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--crm-radius);
    object-fit: cover;
}

.sffc-crm-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: var(--crm-radius);
    background: var(--crm-primary);
    color: var(--crm-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
}

.sffc-crm-recruiter-info {
    flex: 1;
    min-width: 0;
}

.sffc-crm-recruiter-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--crm-navy-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sffc-crm-recruiter-firm {
    display: block;
    font-size: 13px;
    color: var(--crm-gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sffc-crm-post-time {
    font-size: 12px;
    color: var(--crm-gray-400);
    white-space: nowrap;
}

/* Role Info */
.sffc-crm-post-role {
    margin-bottom: 14px;
}

.sffc-crm-post-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--crm-navy-800);
    margin: 0 0 4px 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.sffc-crm-post-company {
    font-size: 14px;
    color: var(--crm-gray-600);
}

/* Meta Tags - McKinsey Style */
.sffc-crm-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.sffc-crm-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--crm-gray-600);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--crm-gray-200);
    border-radius: 20px;
}

.sffc-crm-tag svg {
    opacity: 0.6;
    width: 14px;
    height: 14px;
}

.sffc-crm-tag-seniority {
    background: var(--crm-primary);
    color: var(--crm-white);
    border-color: transparent;
}

.sffc-crm-tag-remote {
    background: var(--crm-success);
    color: var(--crm-white);
    border-color: transparent;
}

/* Snippet */
.sffc-crm-post-snippet {
    font-size: 14px;
    line-height: 1.6;
    color: var(--crm-gray-600);
    margin: 0 0 18px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Actions */
.sffc-crm-post-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 33, 55, 0.06);
}

.sffc-crm-save-btn {
    margin-left: auto;
}

/* ============================================
   Empty State - Clean Style
   ============================================ */
.sffc-crm-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    background: var(--crm-white);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
}

.sffc-crm-empty svg {
    color: var(--crm-text-secondary);
    margin-bottom: 16px;
    opacity: 0.6;
}

.sffc-crm-empty h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0 0 8px 0;
}

.sffc-crm-empty p {
    font-size: 14px;
    color: var(--crm-text-secondary);
    margin: 0;
}

/* ============================================
   Load More
   ============================================ */
.sffc-crm-load-more {
    text-align: center;
    margin-top: 24px;
}

/* ============================================
   Panel (tab content)
   ============================================ */
.sffc-crm-panel {
    display: none;
}

.sffc-crm-panel.active {
    display: block;
}

/* ============================================
   Loading
   ============================================ */
.sffc-crm-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--crm-text-secondary);
    font-size: 14px;
}

/* Loading Overlay */
.sffc-crm-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.sffc-crm-loading-overlay p {
    margin-top: 16px;
    color: var(--crm-text-secondary);
    font-size: 14px;
}

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

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

/* ============================================
   Recruiter List - Clean Style
   ============================================ */
.sffc-crm-recruiters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sffc-crm-recruiters-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0;
}

.sffc-crm-recruiters-header h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--crm-primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.sffc-crm-stats-inline {
    display: flex;
    gap: 20px;
}

.sffc-crm-stat {
    font-size: 14px;
    color: var(--crm-text-secondary);
}

.sffc-crm-stat strong {
    color: var(--crm-text);
}

.sffc-crm-stat-success strong {
    color: var(--crm-success);
}

.sffc-crm-recruiters-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sffc-crm-recruiter-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--crm-white);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    transition: background-color 0.15s ease;
}

.sffc-crm-recruiter-row:hover {
    background: var(--crm-bg-subtle);
}

.sffc-crm-recruiter-avatar {
    flex-shrink: 0;
}

.sffc-crm-recruiter-avatar img,
.sffc-crm-recruiter-avatar .sffc-crm-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: var(--crm-radius);
}

.sffc-crm-recruiter-details {
    flex: 1;
    min-width: 0;
}

.sffc-crm-recruiter-details .sffc-crm-recruiter-name {
    font-size: 15px;
    color: var(--crm-navy-800);
}

.sffc-crm-recruiter-status {
    flex-shrink: 0;
}

.sffc-crm-status-badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--crm-radius);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Status Badge Variants */
.sffc-crm-status-new,
.sffc-crm-status-badge.new {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.sffc-crm-status-contacted,
.sffc-crm-status-badge.contacted {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.sffc-crm-status-replied,
.sffc-crm-status-badge.replied {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.sffc-crm-status-interested,
.sffc-crm-status-badge.interested {
    background: #e8f4f8;
    color: var(--crm-primary);
    border: 1px solid var(--crm-senna-accent);
}

.sffc-crm-status-not-interested,
.sffc-crm-status-badge.not-interested {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.sffc-crm-status-saved,
.sffc-crm-status-badge.saved {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.sffc-crm-recruiter-last {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--crm-gray-500);
}

.sffc-crm-recruiter-actions {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
}

/* Recruiter/Contact Card - Grid Layout */
.sffc-crm-contact-card,
.sffc-crm-recruiter-card-base {
    background: var(--crm-white);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    padding: 16px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.sffc-crm-contact-card:hover,
.sffc-crm-recruiter-card-base:hover {
    box-shadow: var(--crm-shadow-md);
    border-color: var(--crm-gray-300);
}

.sffc-crm-contact-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sffc-crm-contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--crm-radius);
    background: var(--crm-primary);
    color: var(--crm-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.sffc-crm-contact-info {
    flex: 1;
    min-width: 0;
}

.sffc-crm-contact-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--crm-text);
    margin-bottom: 2px;
}

.sffc-crm-contact-title {
    font-size: 13px;
    color: var(--crm-text-secondary);
}

.sffc-crm-contact-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--crm-border-light);
}

/* ============================================
   Pipeline Kanban - Clean Style
   ============================================ */
.sffc-crm-pipeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.sffc-crm-pipeline-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0;
}

.sffc-crm-pipeline-header h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--crm-primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.sffc-crm-pipeline-kanban {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.sffc-crm-pipeline-column {
    flex: 0 0 280px;
    min-height: 400px;
    background: var(--crm-bg-subtle);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    display: flex;
    flex-direction: column;
}

.sffc-crm-pipeline-column.is-locked {
    opacity: 0.5;
}

.sffc-crm-pipeline-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 3px solid;
    background: var(--crm-white);
}

.sffc-crm-pipeline-stage-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--crm-text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sffc-crm-pipeline-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--crm-text-secondary);
    background: var(--crm-bg-subtle);
    padding: 4px 10px;
    border-radius: var(--crm-radius);
}

.sffc-crm-pipeline-items {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.sffc-crm-pipeline-card {
    background: var(--crm-white);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    padding: 12px;
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}

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

.sffc-crm-pipeline-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--crm-navy-800);
    margin-bottom: 6px;
}

.sffc-crm-pipeline-card-company {
    font-size: 13px;
    color: var(--crm-gray-600);
    margin-bottom: 4px;
}

.sffc-crm-pipeline-card-recruiter {
    font-size: 12px;
    color: var(--crm-gray-400);
}

.sffc-crm-pipeline-card-action {
    font-size: 11px;
    color: var(--crm-warning);
    margin-top: 10px;
    font-weight: 500;
}

.sffc-crm-pipeline-locked {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--crm-gray-400);
    font-size: 13px;
}

/* Pipeline Header Top Row */
.sffc-crm-pipeline-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sffc-crm-pipeline-help-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--crm-bg-subtle);
    border: 1px solid var(--crm-border);
    border-radius: 50%;
    color: var(--crm-text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.sffc-crm-pipeline-help-btn:hover {
    background: var(--crm-primary);
    border-color: var(--crm-primary);
    color: var(--crm-white);
}

/* Pipeline Help Panel */
.sffc-crm-pipeline-help {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: var(--crm-radius);
    margin-bottom: 20px;
    overflow: hidden;
}

.sffc-crm-pipeline-help-content {
    padding: 20px;
}

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

.sffc-crm-pipeline-help-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0c4a6e;
    margin: 0;
}

.sffc-crm-pipeline-help-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: #0369a1;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.sffc-crm-pipeline-help-close:hover {
    background: rgba(3, 105, 161, 0.1);
}

.sffc-crm-pipeline-help-intro {
    font-size: 14px;
    color: #0369a1;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.sffc-crm-pipeline-stages-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.sffc-crm-pipeline-stage-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1e3a5f;
}

.sffc-crm-stage-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sffc-crm-pipeline-stage-item strong {
    font-weight: 600;
    margin-right: 4px;
}

.sffc-crm-pipeline-stage-item span {
    color: #64748b;
}

.sffc-crm-pipeline-help-tips {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 14px 16px;
}

.sffc-crm-pipeline-help-tips h4 {
    font-size: 13px;
    font-weight: 600;
    color: #0c4a6e;
    margin: 0 0 10px 0;
}

.sffc-crm-pipeline-help-tips ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sffc-crm-pipeline-help-tips li {
    font-size: 13px;
    color: #334155;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.sffc-crm-pipeline-help-tips li::before {
    content: '•';
    position: absolute;
    left: 6px;
    color: var(--crm-primary);
    font-weight: bold;
}

.sffc-crm-pipeline-help-tips li strong {
    color: #0369a1;
}

/* Pipeline Empty State */
.sffc-crm-pipeline-empty {
    text-align: center;
    padding: 60px 40px;
    background: var(--crm-bg-subtle);
    border: 2px dashed var(--crm-border);
    border-radius: var(--crm-radius);
    max-width: 600px;
    margin: 0 auto;
}

.sffc-crm-pipeline-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sffc-crm-pipeline-empty-icon svg {
    color: var(--crm-primary);
}

.sffc-crm-pipeline-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0 0 10px 0;
}

.sffc-crm-pipeline-empty > p {
    font-size: 14px;
    color: var(--crm-text-secondary);
    line-height: 1.6;
    margin: 0 0 30px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.sffc-crm-pipeline-empty-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    max-width: 360px;
    margin: 0 auto 30px;
}

.sffc-crm-pipeline-empty-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.sffc-crm-pipeline-step-num {
    width: 28px;
    height: 28px;
    background: var(--crm-primary);
    color: var(--crm-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.sffc-crm-pipeline-empty-step div {
    flex: 1;
}

.sffc-crm-pipeline-empty-step strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--crm-text);
    margin-bottom: 2px;
}

.sffc-crm-pipeline-empty-step p {
    font-size: 13px;
    color: var(--crm-text-secondary);
    margin: 0;
    line-height: 1.4;
}

.sffc-crm-pipeline-empty .sffc-crm-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Add Lead Button in Pipeline Header */
.sffc-crm-add-lead-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 12px;
}

.sffc-crm-add-lead-btn svg {
    width: 14px;
    height: 14px;
}

/* Pipeline Card Source Badges */
.sffc-crm-pipeline-card-source {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.sffc-crm-pipeline-card-source--linkedin {
    background: #e8f4f8;
    color: #0077b5;
}

.sffc-crm-pipeline-card-source--indeed {
    background: #fff4e6;
    color: #2164f3;
}

.sffc-crm-pipeline-card-source--referral {
    background: #f0fdf4;
    color: #16a34a;
}

.sffc-crm-pipeline-card-source--company_website {
    background: #e8f4f8;
    color: var(--crm-senna-primary, #0d353e);
}

.sffc-crm-pipeline-card-source--other {
    background: #f3f4f6;
    color: #6b7280;
}

/* Manual Lead Card Styling */
.sffc-crm-pipeline-card--manual {
    border-left: 3px solid var(--crm-primary);
}

/* Add Lead Modal */
.sffc-crm-modal-content--add-lead {
    max-width: 600px;
    width: 100%;
}

.sffc-crm-add-lead-intro {
    font-size: 14px;
    color: var(--crm-text-secondary);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.sffc-crm-add-lead-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sffc-crm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sffc-crm-form-row--three {
    grid-template-columns: 1fr 1fr 1fr;
}

.sffc-crm-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sffc-crm-form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--crm-text);
}

.sffc-crm-form-group label .required {
    color: #dc2626;
}

.sffc-crm-form-group input,
.sffc-crm-form-group select,
.sffc-crm-form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    font-size: 14px;
    color: var(--crm-text);
    background: var(--crm-white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sffc-crm-form-group input:focus,
.sffc-crm-form-group select:focus,
.sffc-crm-form-group textarea:focus {
    outline: none;
    border-color: var(--crm-primary);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

.sffc-crm-form-group input::placeholder,
.sffc-crm-form-group textarea::placeholder {
    color: var(--crm-gray-400);
}

.sffc-crm-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.sffc-crm-form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.sffc-crm-form-section-header span {
    font-size: 12px;
    font-weight: 600;
    color: var(--crm-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sffc-crm-form-section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--crm-border);
}

/* Modal responsive */
@media (max-width: 640px) {
    .sffc-crm-form-row,
    .sffc-crm-form-row--three {
        grid-template-columns: 1fr;
    }

    .sffc-crm-modal-content--add-lead {
        max-width: 100%;
        margin: 10px;
    }
}

/* ============================================
   Login Prompt - Full Screen Design
   ============================================ */
.sffc-crm-login-prompt {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f4f8 50%, #f0fdf4 100%);
    padding: 20px;
    z-index: 1000;
}

/* Login Card */
.sffc-crm-login-card {
    background: var(--crm-white);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    max-width: 440px;
    width: 100%;
    overflow: hidden;
}

/* Login Header - Senna Teal */
.sffc-crm-login-header {
    background: linear-gradient(135deg, var(--crm-primary) 0%, var(--crm-senna-secondary) 100%);
    color: var(--crm-white);
    padding: 32px 24px;
    text-align: center;
}

.sffc-crm-login-header svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.sffc-crm-login-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--crm-white);
}

.sffc-crm-login-header p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

/* Login Body */
.sffc-crm-login-body {
    padding: 32px 24px;
}

/* Feature List */
.sffc-crm-login-features {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
}

.sffc-crm-login-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--crm-border-light);
    font-size: 14px;
    color: var(--crm-text);
}

.sffc-crm-login-features li:last-child {
    border-bottom: none;
}

.sffc-crm-login-features li svg {
    color: var(--crm-success);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Login Actions */
.sffc-crm-login-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sffc-crm-login-actions .sffc-crm-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
}

.sffc-crm-login-actions .sffc-crm-btn-primary {
    background: var(--crm-primary);
    color: var(--crm-white);
}

.sffc-crm-login-actions .sffc-crm-btn-primary:hover {
    background: var(--crm-primary-hover);
}

.sffc-crm-login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--crm-border-light);
}

.sffc-crm-login-footer p {
    font-size: 13px;
    color: var(--crm-text-secondary);
    margin: 0;
}

.sffc-crm-login-footer a {
    color: var(--crm-primary);
    text-decoration: none;
    font-weight: 500;
}

.sffc-crm-login-footer a:hover {
    text-decoration: underline;
}

/* Legacy support for old login-content class */
.sffc-crm-login-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
    background: var(--crm-white);
    border-radius: var(--crm-radius-lg);
    border: 1px solid var(--crm-border);
    box-shadow: var(--crm-shadow-md);
}

.sffc-crm-login-content svg {
    color: var(--crm-primary);
    margin-bottom: 20px;
}

.sffc-crm-login-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0 0 12px 0;
}

.sffc-crm-login-content p {
    font-size: 14px;
    color: var(--crm-text-secondary);
    margin: 0 0 24px 0;
    line-height: 1.6;
}

/* Mobile Login - Full Screen */
@media (max-width: 480px) {
    .sffc-crm-login-prompt {
        padding: 0;
        align-items: stretch;
    }

    .sffc-crm-login-card {
        border-radius: 0;
        max-width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
    }

    .sffc-crm-login-header {
        padding: 40px 24px;
    }

    .sffc-crm-login-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 24px;
    }

    .sffc-crm-login-features {
        margin-bottom: 32px;
    }

    .sffc-crm-login-actions .sffc-crm-btn {
        padding: 16px 20px;
    }
}

/* ============================================
   Modal - Clean Style
   ============================================ */
body.sffc-crm-modal-open {
    overflow: hidden;
}

.sffc-crm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sffc-crm-modal.is-visible {
    opacity: 1;
}

.sffc-crm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.sffc-crm-modal-content {
    position: relative;
    background: var(--crm-white);
    border-radius: var(--crm-radius-lg);
    border: 1px solid var(--crm-border);
    max-width: 860px;
    width: min(860px, 95vw);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--crm-shadow-xl);
    transform: translateY(20px);
    transition: transform 0.25s ease;
    padding: 32px 28px;
}

.sffc-crm-modal.is-visible .sffc-crm-modal-content {
    transform: translateY(0);
}

.sffc-crm-modal-loading {
    padding: 80px 40px;
    text-align: center;
    color: var(--crm-gray-500);
}

.sffc-crm-modal-header {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.sffc-crm-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--crm-white);
    border: 1px solid var(--crm-border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--crm-text-secondary);
    transition: all 0.15s ease;
}

.sffc-crm-modal-close:hover {
    background: var(--crm-bg-subtle);
    color: var(--crm-text);
}

/* Modal Body & Footer - Base Styles */
.sffc-crm-modal-body {
    padding: 24px;
}

.sffc-crm-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--crm-border);
    background: var(--crm-bg-subtle);
    border-radius: 0 0 var(--crm-radius-lg) var(--crm-radius-lg);
}

/* ============================================
   Post Detail (Modal Content)
   ============================================ */
.sffc-crm-post-detail {
    padding: 24px;
}

.sffc-crm-detail-recruiter {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.sffc-crm-detail-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.sffc-crm-detail-avatar.sffc-crm-avatar-placeholder {
    width: 52px;
    height: 52px;
    font-size: 20px;
}

.sffc-crm-detail-recruiter-info {
    flex: 1;
}

.sffc-crm-detail-recruiter-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0 0 2px 0;
}

.sffc-crm-detail-recruiter-firm {
    font-size: 14px;
    color: var(--crm-text-secondary);
}

.sffc-crm-detail-time {
    font-size: 12px;
    color: var(--crm-text-muted);
}

.sffc-crm-detail-role {
    margin-bottom: 16px;
}

.sffc-crm-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--crm-text);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.sffc-crm-detail-company {
    font-size: 16px;
    color: var(--crm-primary);
    font-weight: 500;
}

/* Meta Grid */
.sffc-crm-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--crm-border-light);
    border-bottom: 1px solid var(--crm-border-light);
    margin-bottom: 20px;
}

.sffc-crm-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--crm-text-secondary);
}

.sffc-crm-detail-meta-item svg {
    color: var(--crm-text-muted);
}

.sffc-crm-detail-remote span {
    color: var(--crm-success);
    font-weight: 500;
}

.sffc-crm-detail-remote svg {
    color: var(--crm-success);
}

/* Content */
.sffc-crm-detail-content {
    margin-bottom: 20px;
}

.sffc-crm-detail-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--crm-text);
    margin: 0;
    white-space: pre-wrap;
}

/* Skills */
.sffc-crm-detail-skills {
    margin-bottom: 24px;
}

.sffc-crm-detail-skills h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--crm-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 10px 0;
}

.sffc-crm-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sffc-crm-skill-tag {
    display: inline-block;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--crm-primary);
    background: rgba(13, 53, 62, 0.08);
    border-radius: 20px;
}

/* Detail Actions */
.sffc-crm-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--crm-border-light);
}

.sffc-crm-detail-actions .sffc-crm-save-btn {
    margin-right: auto;
}

.sffc-crm-detail-actions .sffc-crm-btn-secondary {
    flex: 1;
}

.sffc-crm-detail-actions .sffc-crm-btn-primary {
    flex: 1;
}

/* ============================================
   Post Card Clickable
   ============================================ */
.sffc-crm-post-card {
    cursor: pointer;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .sffc-crm-container {
        padding: 16px;
    }

    /* Mobile Header */
    .sffc-crm-header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        padding: 16px;
    }

    .sffc-crm-header-left {
        flex: 1;
        min-width: 0;
        flex-wrap: wrap;
    }

    .sffc-crm-header-right {
        gap: 8px;
        width: 100%;
        justify-content: flex-end;
    }

    .sffc-crm-logo img {
        height: 28px;
    }

    .sffc-crm-title {
        font-size: 18px;
    }

    /* Mobile Menu Toggle - Show on mobile */
    .sffc-crm-mobile-menu-toggle {
        display: flex;
    }

    /* User dropdown adjustments */
    .sffc-crm-user-name {
        display: none;
    }

    .sffc-crm-dropdown-toggle {
        padding: 6px 10px;
    }

    .sffc-crm-header-left .sffc-crm-mobile-menu-toggle {
        order: -1;
        margin-right: auto;
    }

    .sffc-crm-header-left .sffc-crm-title {
        flex-basis: 100%;
    }

    .sffc-crm-header-right .sffc-crm-user-dropdown {
        margin-left: auto;
    }

    .sffc-crm-dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        min-width: 100%;
        border-radius: var(--crm-radius-lg) var(--crm-radius-lg) 0 0;
        max-height: 70vh;
        overflow-y: auto;
    }

    .sffc-crm-dropdown-item {
        padding: 16px 20px;
        font-size: 16px;
    }

    .sffc-crm-dropdown-item svg {
        width: 22px;
        height: 22px;
    }

    /* Filter toggle on mobile */
    .sffc-crm-filter-toggle span {
        display: none;
    }

    .sffc-crm-filter-toggle {
        padding: 8px 10px;
    }

    /* Mobile nav overlay */
    .sffc-crm-mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
    }

    .sffc-crm-mobile-nav.open {
        opacity: 1;
        visibility: visible;
    }

    .sffc-crm-mobile-nav-content {
        position: absolute;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 85%;
        height: 100%;
        background: var(--crm-white);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
    }

    .sffc-crm-mobile-nav.open .sffc-crm-mobile-nav-content {
        transform: translateX(0);
    }

    .sffc-crm-mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid var(--crm-border);
    }

    .sffc-crm-mobile-nav-close {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--crm-navy-800);
        border-radius: var(--crm-radius);
        transition: background 0.2s ease;
    }

    .sffc-crm-mobile-nav-close:hover {
        background: var(--crm-gray-100);
    }

    .sffc-crm-mobile-nav-tabs {
        padding: 12px;
    }

    .sffc-crm-mobile-nav-tabs .sffc-crm-tab {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        padding: 14px 16px;
        margin-bottom: 4px;
        border-radius: var(--crm-radius);
    }

    .sffc-crm-mobile-nav-tabs .sffc-crm-tab span {
        display: inline;
    }

    .sffc-crm-tabs {
        flex-wrap: wrap;
    }

    .sffc-crm-tab {
        padding: 10px 16px;
    }

    .sffc-crm-tab span:not(.sffc-crm-tab svg) {
        display: none;
    }

    .sffc-crm-feed-grid {
        grid-template-columns: 1fr;
    }

    .sffc-crm-filter-search {
        grid-column: span 1;
    }

    .sffc-crm-recruiter-row {
        flex-wrap: wrap;
    }

    .sffc-crm-recruiter-last {
        width: 100%;
        order: 10;
        margin-top: 8px;
    }

    .sffc-crm-pipeline-kanban {
        flex-direction: column;
    }

    .sffc-crm-pipeline-column {
        flex: none;
        min-height: auto;
    }

    .sffc-crm-pipeline-items {
        max-height: 300px;
    }

    /* Modal Responsive */
    .sffc-crm-modal {
        padding: 10px;
    }

    .sffc-crm-modal-content {
        max-height: 95vh;
    }

    .sffc-crm-post-detail {
        padding: 20px 16px;
    }

    .sffc-crm-detail-title {
        font-size: 20px;
    }

    .sffc-crm-detail-meta {
        gap: 12px;
    }

    .sffc-crm-detail-actions {
        flex-wrap: wrap;
    }

    .sffc-crm-detail-actions .sffc-crm-save-btn {
        margin-right: 0;
    }

    .sffc-crm-detail-actions .sffc-crm-btn-secondary,
    .sffc-crm-detail-actions .sffc-crm-btn-primary {
        flex: 1 1 100%;
    }
}

/* Body scroll lock when mobile nav is open */
body.sffc-crm-mobile-nav-open {
    overflow: hidden;
}

/* ============================================
   Toast Notifications
   ============================================ */
.sffc-crm-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--crm-card-bg);
    border-radius: var(--crm-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 100000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.sffc-crm-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sffc-crm-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sffc-crm-toast-success .sffc-crm-toast-icon {
    color: var(--crm-success);
}

.sffc-crm-toast-error .sffc-crm-toast-icon {
    color: var(--crm-error);
}

.sffc-crm-toast-message {
    font-size: 14px;
    font-weight: 500;
    color: var(--crm-text);
}

/* ============================================
   Reach Out Modal
   ============================================ */
.sffc-crm-reach-out-modal {
    padding: 24px;
}

.sffc-crm-reach-out-modal .sffc-crm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.sffc-crm-reach-out-modal .sffc-crm-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0;
}

.sffc-crm-reach-out-recruiter {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--crm-bg);
    border-radius: var(--crm-radius);
    margin-bottom: 20px;
}

.sffc-crm-reach-out-recruiter span {
    color: var(--crm-text-secondary);
    font-size: 13px;
}

.sffc-crm-reach-out-channel,
.sffc-crm-reach-out-template,
.sffc-crm-reach-out-subject,
.sffc-crm-reach-out-message {
    margin-bottom: 16px;
}

.sffc-crm-reach-out-modal label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--crm-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.sffc-crm-channel-options {
    display: flex;
    gap: 8px;
}

.sffc-crm-channel-btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--crm-text-secondary);
    background: var(--crm-card-bg);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sffc-crm-channel-btn:hover {
    border-color: var(--crm-primary);
    color: var(--crm-primary);
}

.sffc-crm-channel-btn.active {
    background: var(--crm-primary);
    border-color: var(--crm-primary);
    color: #fff;
}

.sffc-crm-textarea {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-family: var(--crm-font);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    background: var(--crm-card-bg);
    color: var(--crm-text);
    resize: vertical;
    min-height: 120px;
}

.sffc-crm-textarea:focus {
    outline: none;
    border-color: var(--crm-primary);
}

.sffc-crm-reach-out-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.sffc-crm-reach-out-note {
    font-size: 12px;
    color: var(--crm-text-muted);
    text-align: center;
    margin-top: 12px;
    margin-bottom: 0;
}

/* ============================================
   Recruiter Detail Modal
   ============================================ */
.sffc-crm-recruiter-detail {
    padding: 24px;
}

.sffc-crm-detail-recruiter-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.sffc-crm-detail-avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.sffc-crm-detail-avatar-lg.sffc-crm-avatar-placeholder {
    width: 72px;
    height: 72px;
    font-size: 28px;
}

.sffc-crm-detail-recruiter-main h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--crm-text);
    margin: 0 0 4px 0;
}

.sffc-crm-detail-recruiter-main .sffc-crm-detail-title {
    font-size: 14px;
    color: var(--crm-text-secondary);
    margin: 0 0 2px 0;
}

.sffc-crm-detail-recruiter-main .sffc-crm-detail-firm {
    font-size: 14px;
    color: var(--crm-primary);
    font-weight: 500;
    margin: 0;
}

.sffc-crm-detail-status {
    margin-bottom: 16px;
}

.sffc-crm-detail-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--crm-border-light);
}

.sffc-crm-detail-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--crm-blue);
    text-decoration: none;
}

.sffc-crm-detail-link:hover {
    text-decoration: underline;
}

.sffc-crm-detail-section {
    margin-bottom: 20px;
}

.sffc-crm-detail-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--crm-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 10px 0;
}

.sffc-crm-detail-posts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sffc-crm-detail-post-item {
    padding: 12px;
    background: var(--crm-bg);
    border-radius: var(--crm-radius);
    font-size: 14px;
}

.sffc-crm-detail-post-item strong {
    color: var(--crm-text);
}

.sffc-crm-detail-post-item small {
    color: var(--crm-text-muted);
}

/* ============================================
   Pipeline Detail Modal
   ============================================ */
.sffc-crm-pipeline-detail {
    padding: 24px;
}

.sffc-crm-pipeline-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--crm-text);
    margin: 0 0 4px 0;
}

.sffc-crm-pipeline-detail-company {
    font-size: 16px;
    color: var(--crm-primary);
    font-weight: 500;
    margin: 0 0 12px 0;
}

.sffc-crm-pipeline-detail-stage {
    margin-bottom: 16px;
}

.sffc-crm-pipeline-detail-recruiter {
    font-size: 14px;
    color: var(--crm-text-secondary);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--crm-border-light);
}

.sffc-crm-pipeline-detail-section {
    margin-bottom: 20px;
}

.sffc-crm-pipeline-detail-section label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--crm-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.sffc-crm-stage-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sffc-crm-stage-btn {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    border: 2px solid;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sffc-crm-stage-btn:hover {
    opacity: 0.8;
}

.sffc-crm-stage-btn.loading {
    opacity: 0.5;
    pointer-events: none;
}

.sffc-crm-pipeline-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sffc-crm-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--crm-bg);
    border-radius: var(--crm-radius);
    font-size: 13px;
}

.sffc-crm-history-stage {
    color: var(--crm-text);
}

.sffc-crm-history-date {
    color: var(--crm-text-muted);
}

.sffc-crm-pipeline-detail-actions {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--crm-border-light);
}

/* ============================================
   Upgrade Modal
   ============================================ */
.sffc-crm-upgrade-modal {
    padding: 24px;
}

.sffc-crm-upgrade-content {
    text-align: center;
    padding: 20px;
}

.sffc-crm-upgrade-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--crm-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sffc-crm-upgrade-content svg {
    color: var(--crm-primary);
    margin-bottom: 16px;
}

.sffc-crm-upgrade-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--crm-text);
    margin: 0 0 12px 0;
}

.sffc-crm-upgrade-content p {
    font-size: 14px;
    color: var(--crm-text-secondary);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.sffc-crm-upgrade-content .sffc-crm-btn {
    min-width: 140px;
}

.sffc-crm-upgrade-compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 20px 0;
    text-align: left;
}

.sffc-crm-upgrade-card {
    background: var(--crm-bg-subtle);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    padding: 16px;
}

.sffc-crm-upgrade-card h4 {
    margin: 0 0 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--crm-text-muted);
}

.sffc-crm-upgrade-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--crm-text);
    font-size: 14px;
    line-height: 1.5;
}

.sffc-crm-upgrade-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

/* Contacts upgrade overlay - full width */
.sffc-crm-contacts-upgrade-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
    border-radius: 0 0 var(--crm-radius-lg) var(--crm-radius-lg);
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid var(--crm-border);
}

/* ============================================
   PHASE 2: Enhanced Recruiter Filters
   ============================================ */
.sffc-crm-recruiter-filters {
    background: var(--crm-card-bg);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    padding: 16px;
    margin-bottom: 20px;
}

.sffc-crm-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.sffc-crm-filter-search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.sffc-crm-filter-search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--crm-text-muted);
}

.sffc-crm-filter-search-box input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    font-size: 14px;
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    background: var(--crm-card-bg);
    color: var(--crm-text);
}

.sffc-crm-filter-search-box input:focus {
    outline: none;
    border-color: var(--crm-primary);
}

.sffc-crm-recruiter-filters .sffc-crm-select {
    min-width: 150px;
}

/* ============================================
   PHASE 2: User Tags
   ============================================ */
.sffc-crm-recruiter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    align-items: center;
}

.sffc-crm-user-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 12px;
    border: 1px solid;
}

.sffc-crm-user-tag .sffc-crm-tag-remove {
    background: none;
    border: none;
    padding: 0;
    margin-left: 2px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    opacity: 0.6;
    color: inherit;
}

.sffc-crm-user-tag .sffc-crm-tag-remove:hover {
    opacity: 1;
}

.sffc-crm-add-tag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
    color: var(--crm-text-secondary);
    background: transparent;
    border: 1px dashed var(--crm-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sffc-crm-add-tag-btn:hover {
    border-color: var(--crm-primary);
    color: var(--crm-primary);
}

/* Tag Manager Modal */
.sffc-crm-tag-manager-modal {
    padding: 24px;
}

.sffc-crm-tag-manager-modal .sffc-crm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.sffc-crm-tag-manager-modal h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0;
}

.sffc-crm-create-tag {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.sffc-crm-create-tag .sffc-crm-input {
    flex: 1;
}

.sffc-crm-color-input {
    width: 44px;
    height: 44px;
    padding: 4px;
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    cursor: pointer;
}

.sffc-crm-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sffc-crm-no-tags,
.sffc-crm-tag-instruction {
    font-size: 13px;
    color: var(--crm-text-secondary);
    margin: 0 0 12px 0;
}

.sffc-crm-tag-option {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.sffc-crm-tag-option:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

/* ============================================
   PHASE 2: Priority Indicator
   ============================================ */
.sffc-crm-recruiter-priority {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sffc-crm-priority-high {
    color: #f59e0b;
}

/* ============================================
   PHASE 2: Notes System
   ============================================ */
.sffc-crm-notes-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--crm-border-light);
}

.sffc-crm-notes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sffc-crm-notes-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0;
}

.sffc-crm-notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sffc-crm-note-item {
    padding: 12px;
    background: var(--crm-bg);
    border: 1px solid var(--crm-border-light);
    border-radius: var(--crm-radius);
    transition: all 0.2s ease;
}

.sffc-crm-note-item.is-pinned {
    border-color: var(--crm-warning);
    background: #fffbeb;
}

.sffc-crm-note-content {
    font-size: 14px;
    line-height: 1.5;
    color: var(--crm-text);
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.sffc-crm-note-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sffc-crm-note-date {
    font-size: 12px;
    color: var(--crm-text-muted);
}

.sffc-crm-note-actions-inline {
    display: flex;
    gap: 8px;
}

.sffc-crm-note-actions-inline button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--crm-text-muted);
    transition: color 0.2s ease;
}

.sffc-crm-note-actions-inline button:hover {
    color: var(--crm-text);
}

.sffc-crm-note-item.is-pinned .sffc-crm-note-pin {
    color: var(--crm-warning);
}

.sffc-crm-no-notes {
    font-size: 13px;
    color: var(--crm-text-muted);
    text-align: center;
    padding: 20px;
    margin: 0;
}

/* Note Editor */
.sffc-crm-note-editor {
    margin-top: 8px;
}

.sffc-crm-note-editor-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    font-family: var(--crm-font);
    font-size: 13px;
    color: var(--crm-text);
    background: var(--crm-card-bg);
    resize: vertical;
}

.sffc-crm-note-editor-textarea:focus {
    outline: none;
    border-color: var(--crm-primary);
}

.sffc-crm-note-editor-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.sffc-crm-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Note Modal */
.sffc-crm-note-modal {
    padding: 24px;
}

.sffc-crm-note-modal .sffc-crm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    position: relative;
}

.sffc-crm-note-modal h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0;
}

.sffc-crm-note-form .sffc-crm-textarea {
    margin-bottom: 16px;
}

.sffc-crm-note-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ============================================
   PHASE 2: Intelligence Section
   ============================================ */
.sffc-crm-intelligence-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--crm-border-light);
}

.sffc-crm-intelligence-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0 0 12px 0;
}

.sffc-crm-intelligence-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.sffc-crm-intel-card {
    padding: 16px;
    background: var(--crm-bg);
    border-radius: var(--crm-radius);
    text-align: center;
}

.sffc-crm-intel-card.sffc-crm-intel-wide {
    grid-column: span 2;
    text-align: left;
}

.sffc-crm-intel-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--crm-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.sffc-crm-intel-label {
    font-size: 12px;
    color: var(--crm-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sffc-crm-intel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* ============================================
   PHASE 2: Activity Timeline
   ============================================ */
.sffc-crm-activity-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--crm-border-light);
}

.sffc-crm-activity-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0 0 12px 0;
}

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

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

.sffc-crm-timeline-item {
    position: relative;
    padding-bottom: 16px;
}

.sffc-crm-timeline-item:last-child {
    padding-bottom: 0;
}

.sffc-crm-timeline-dot {
    position: absolute;
    left: -20px;
    top: 4px;
    width: 10px;
    height: 10px;
    background: var(--crm-primary);
    border-radius: 50%;
    border: 2px solid var(--crm-card-bg);
}

.sffc-crm-timeline-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

.sffc-crm-timeline-action {
    font-size: 14px;
    font-weight: 500;
    color: var(--crm-text);
}

.sffc-crm-timeline-details {
    font-size: 13px;
    color: var(--crm-text-secondary);
}

.sffc-crm-timeline-date {
    font-size: 12px;
    color: var(--crm-text-muted);
    margin-left: auto;
}

/* ============================================
   PHASE 2: Follow-up Section
   ============================================ */
.sffc-crm-detail-status-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sffc-crm-followup-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sffc-crm-followup-section label {
    font-size: 13px;
    color: var(--crm-text-secondary);
}

.sffc-crm-followup-date {
    padding: 6px 10px;
    font-size: 13px;
    min-width: 140px;
}

/* ============================================
   PHASE 2: Detail Tags
   ============================================ */
.sffc-crm-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

/* ============================================
   PHASE 2: Dashboard
   ============================================ */
.sffc-crm-dashboard-header {
    margin-bottom: 24px;
}

.sffc-crm-dashboard-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0;
}

.sffc-crm-dashboard-header h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--crm-primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.sffc-crm-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.sffc-crm-stat-card {
    background: var(--crm-card-bg);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.sffc-crm-stat-card:hover {
    box-shadow: var(--crm-shadow-md);
    border-color: var(--crm-gray-300);
}

.sffc-crm-stat-card.sffc-crm-stat-success {
    border-left: 3px solid var(--crm-success);
    background: #f0fdf4;
}

.sffc-crm-stat-card.sffc-crm-stat-warning {
    border-left: 3px solid var(--crm-warning);
    background: #fffbeb;
}

.sffc-crm-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--crm-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.sffc-crm-stat-card.sffc-crm-stat-success .sffc-crm-stat-value {
    color: var(--crm-success);
}

.sffc-crm-stat-card.sffc-crm-stat-warning .sffc-crm-stat-value {
    color: var(--crm-warning);
}

.sffc-crm-stat-label {
    font-size: 13px;
    color: var(--crm-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Dashboard Sections */
.sffc-crm-dashboard-section {
    background: var(--crm-card-bg);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.sffc-crm-dashboard-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0 0 16px 0;
}

.sffc-crm-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Pipeline Funnel */
.sffc-crm-funnel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sffc-crm-funnel-stage {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sffc-crm-funnel-label {
    width: 120px;
    font-size: 13px;
    color: var(--crm-text-secondary);
    text-transform: capitalize;
    flex-shrink: 0;
}

.sffc-crm-funnel-bar {
    background: var(--crm-primary);
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    min-width: 40px;
    transition: width 0.3s ease;
}

.sffc-crm-funnel-count {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

/* Upcoming Lists */
.sffc-crm-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sffc-crm-upcoming-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--crm-bg);
    border-radius: var(--crm-radius);
}

.sffc-crm-upcoming-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--crm-text);
}

.sffc-crm-upcoming-date,
.sffc-crm-upcoming-action {
    font-size: 12px;
    color: var(--crm-text-secondary);
}

.sffc-crm-no-upcoming {
    font-size: 13px;
    color: var(--crm-text-muted);
    text-align: center;
    padding: 20px;
    margin: 0;
}

/* Activity List */
.sffc-crm-activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sffc-crm-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--crm-bg);
    border-radius: var(--crm-radius);
}

.sffc-crm-activity-type {
    font-size: 13px;
    font-weight: 500;
    color: var(--crm-text);
}

.sffc-crm-activity-details {
    font-size: 13px;
    color: var(--crm-text-secondary);
    flex: 1;
}

.sffc-crm-activity-date {
    font-size: 12px;
    color: var(--crm-text-muted);
    white-space: nowrap;
}

/* ============================================
   PHASE 2: Pagination
   ============================================ */
.sffc-crm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--crm-border-light);
}

.sffc-crm-page-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--crm-primary);
    background: var(--crm-card-bg);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sffc-crm-page-btn:hover {
    background: var(--crm-bg);
    border-color: var(--crm-primary);
}

.sffc-crm-page-info {
    font-size: 14px;
    color: var(--crm-text-secondary);
}

/* ============================================
   PHASE 2: Pipeline Controls & View Toggle
   ============================================ */
.sffc-crm-pipeline-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sffc-crm-view-toggle {
    display: flex;
    background: var(--crm-card-bg);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    overflow: hidden;
}

.sffc-crm-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--crm-text-secondary);
    transition: all 0.2s ease;
}

.sffc-crm-view-btn:hover {
    color: var(--crm-text);
    background: var(--crm-border-light);
}

.sffc-crm-view-btn.active {
    color: var(--crm-primary);
    background: var(--crm-bg);
}

/* ============================================
   PHASE 2: Pipeline List View
   ============================================ */
.sffc-crm-pipeline-list {
    background: var(--crm-card-bg);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    overflow: hidden;
}

.sffc-crm-pipeline-table {
    width: 100%;
    border-collapse: collapse;
}

.sffc-crm-pipeline-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--crm-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--crm-bg);
    border-bottom: 1px solid var(--crm-border);
}

.sffc-crm-pipeline-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--crm-text);
    border-bottom: 1px solid var(--crm-border-light);
}

.sffc-crm-pipeline-list-row {
    cursor: pointer;
    transition: background 0.2s ease;
}

.sffc-crm-pipeline-list-row:hover {
    background: var(--crm-bg);
}

.sffc-crm-pipeline-list-row:last-child td {
    border-bottom: none;
}

.sffc-crm-pl-role {
    font-weight: 600;
    color: var(--crm-text);
}

.sffc-crm-pl-company {
    color: var(--crm-primary);
}

.sffc-crm-pl-recruiter {
    color: var(--crm-text-secondary);
}

.sffc-crm-pl-action {
    color: var(--crm-text-secondary);
}

.sffc-crm-pl-date {
    color: var(--crm-text-muted);
    font-size: 13px;
}

/* ============================================
   PHASE 2: Pipeline Drag & Drop
   ============================================ */
.sffc-crm-pipeline-card {
    cursor: grab;
}

.sffc-crm-pipeline-card:active {
    cursor: grabbing;
}

.sffc-crm-drag-placeholder {
    background: var(--crm-primary);
    opacity: 0.15;
    border: 2px dashed var(--crm-primary);
    border-radius: var(--crm-radius);
    margin-bottom: 8px;
}

.sffc-crm-pipeline-card.sffc-crm-dragging {
    opacity: 0.9;
    transform: rotate(2deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sffc-crm-pipeline-card.sffc-crm-drag-origin {
    opacity: 0.4;
}

.sffc-crm-pipeline-column.drag-hover {
    background: rgba(13, 53, 62, 0.03);
}

.ui-sortable-helper {
    z-index: 10000;
}

/* ============================================
   PHASE 3: Enhanced Message Composer
   ============================================ */
.sffc-crm-compose-modal {
    padding: 24px;
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
}

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

.sffc-crm-compose-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0;
}

.sffc-crm-compose-recipient {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--crm-bg);
    border-radius: var(--crm-radius);
    margin-bottom: 20px;
}

.sffc-crm-compose-recipient-info {
    flex: 1;
}

.sffc-crm-compose-recipient-info strong {
    display: block;
    font-size: 14px;
    color: var(--crm-text);
}

.sffc-crm-compose-recipient-info span {
    font-size: 13px;
    color: var(--crm-text-secondary);
}

.sffc-crm-compose-context {
    margin-left: auto;
}

.sffc-crm-compose-role {
    font-size: 12px;
    padding: 4px 10px;
    background: var(--crm-primary);
    color: #fff;
    border-radius: 12px;
}

.sffc-crm-compose-section {
    margin-bottom: 16px;
}

.sffc-crm-compose-section label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--crm-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.sffc-crm-channel-toggle {
    display: flex;
    gap: 8px;
}

.sffc-crm-channel-toggle .sffc-crm-channel-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--crm-text-secondary);
    background: var(--crm-card-bg);
    border: 2px solid var(--crm-border);
    border-radius: var(--crm-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sffc-crm-channel-toggle .sffc-crm-channel-btn:hover {
    border-color: var(--crm-primary);
    color: var(--crm-primary);
}

.sffc-crm-channel-toggle .sffc-crm-channel-btn.active {
    background: var(--crm-primary);
    border-color: var(--crm-primary);
    color: #fff;
}

.sffc-crm-channel-toggle .sffc-crm-channel-btn svg {
    width: 18px;
    height: 18px;
}

.sffc-crm-compose-template-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.sffc-crm-compose-template-row label {
    margin-bottom: 0;
}

.sffc-crm-compose-message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.sffc-crm-compose-message-header label {
    margin-bottom: 0;
}

.sffc-crm-compose-ai-actions {
    display: flex;
    gap: 4px;
}

.sffc-crm-compose-ai-actions .sffc-crm-btn {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sffc-crm-compose-char-count {
    text-align: right;
    font-size: 12px;
    color: var(--crm-text-muted);
    margin-top: 4px;
}

.sffc-crm-compose-variables-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sffc-crm-compose-variables-header label {
    margin-bottom: 0;
    cursor: pointer;
}

#toggle-variables-btn svg {
    transition: transform 0.2s ease;
}

#toggle-variables-btn svg.rotated {
    transform: rotate(180deg);
}

.sffc-crm-variables-list {
    margin-top: 12px;
    padding: 16px;
    background: var(--crm-bg);
    border-radius: var(--crm-radius);
}

.sffc-crm-variable-category {
    margin-bottom: 16px;
}

.sffc-crm-variable-category:last-child {
    margin-bottom: 0;
}

.sffc-crm-variable-category h5 {
    font-size: 11px;
    font-weight: 600;
    color: var(--crm-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px 0;
}

.sffc-crm-variable-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: var(--crm-card-bg);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sffc-crm-variable-item:last-child {
    margin-bottom: 0;
}

.sffc-crm-variable-item:hover {
    border-color: var(--crm-primary);
    background: rgba(13, 53, 62, 0.03);
}

.sffc-crm-variable-item code {
    font-size: 12px;
    font-family: 'Monaco', 'Consolas', monospace;
    color: var(--crm-primary);
    background: rgba(13, 53, 62, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.sffc-crm-variable-item span {
    font-size: 13px;
    color: var(--crm-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sffc-crm-no-variables {
    font-size: 13px;
    color: var(--crm-text-muted);
    margin: 0;
    text-align: center;
}

.sffc-crm-compose-usage {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--crm-bg);
    border-radius: var(--crm-radius);
    margin-bottom: 16px;
}

.sffc-crm-usage-count {
    font-size: 13px;
    color: var(--crm-text-secondary);
}

.sffc-crm-usage-warning {
    font-size: 12px;
    font-weight: 600;
    color: var(--crm-warning);
    padding: 2px 8px;
    background: rgba(217, 119, 6, 0.1);
    border-radius: 10px;
}

.sffc-crm-compose-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--crm-border-light);
}

.sffc-crm-compose-send-group {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.sffc-crm-compose-send-group .sffc-crm-btn-primary {
    min-width: 160px;
}

/* Spinner animation */
.sffc-crm-spinner {
    animation: spin 1s linear infinite;
}

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

/* ============================================
   PHASE 3: Preview Modal
   ============================================ */
.sffc-crm-preview-modal {
    padding: 24px;
}

.sffc-crm-preview-subject {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--crm-border-light);
}

.sffc-crm-preview-subject label,
.sffc-crm-preview-content label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--crm-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.sffc-crm-preview-subject p {
    font-size: 15px;
    font-weight: 500;
    color: var(--crm-text);
    margin: 0;
}

.sffc-crm-preview-body {
    font-size: 14px;
    line-height: 1.7;
    color: var(--crm-text);
    padding: 16px;
    background: var(--crm-bg);
    border-radius: var(--crm-radius);
    white-space: pre-wrap;
}

.sffc-crm-preview-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ============================================
   PHASE 3: Template Manager
   ============================================ */
.sffc-crm-template-manager,
.sffc-crm-template-editor {
    padding: 24px;
}

.sffc-crm-template-create {
    margin-bottom: 20px;
}

.sffc-crm-template-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.sffc-crm-template-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--crm-bg);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    transition: all 0.2s ease;
}

.sffc-crm-template-item:hover {
    border-color: var(--crm-primary);
}

.sffc-crm-template-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sffc-crm-template-info strong {
    font-size: 14px;
    color: var(--crm-text);
}

.sffc-crm-template-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    background: var(--crm-primary);
    color: #fff;
    border-radius: 4px;
}

.sffc-crm-template-channel,
.sffc-crm-template-type {
    font-size: 12px;
    color: var(--crm-text-muted);
    text-transform: capitalize;
}

.sffc-crm-template-actions {
    display: flex;
    gap: 4px;
}

.sffc-crm-no-templates {
    font-size: 14px;
    color: var(--crm-text-secondary);
    text-align: center;
    padding: 40px 20px;
    margin: 0;
}

.sffc-crm-template-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--crm-border-light);
}

.sffc-crm-help-text {
    font-size: 12px;
    color: var(--crm-text-muted);
    margin: 6px 0 0;
}

/* ============================================
   PHASE 3: Bulk Selection
   ============================================ */
.sffc-crm-recruiters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.sffc-crm-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#toggle-bulk-select {
    display: flex;
    align-items: center;
    gap: 6px;
}

#toggle-bulk-select.active {
    background: var(--crm-primary);
    color: #fff;
    border-color: var(--crm-primary);
}

.sffc-crm-bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--crm-primary);
    border-radius: var(--crm-radius);
    margin-bottom: 16px;
}

.sffc-crm-bulk-count {
    color: #fff;
    font-weight: 600;
}

.sffc-crm-bulk-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sffc-crm-bulk-actions .sffc-crm-btn-text {
    color: rgba(255, 255, 255, 0.9);
}

.sffc-crm-bulk-actions .sffc-crm-btn-text:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sffc-crm-bulk-actions .sffc-crm-btn-primary {
    background: #fff;
    color: var(--crm-primary);
    border-color: #fff;
}

.sffc-crm-bulk-actions .sffc-crm-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.sffc-crm-bulk-checkbox {
    padding-right: 12px;
}

.sffc-crm-checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.sffc-crm-checkbox-wrapper input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.sffc-crm-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--crm-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sffc-crm-checkbox-wrapper input[type="checkbox"]:checked + .sffc-crm-checkmark {
    background: var(--crm-primary);
    border-color: var(--crm-primary);
}

.sffc-crm-checkbox-wrapper input[type="checkbox"]:checked + .sffc-crm-checkmark::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sffc-crm-checkbox-wrapper:hover .sffc-crm-checkmark {
    border-color: var(--crm-primary);
}

/* ============================================
   PHASE 3: Bulk Compose Modal
   ============================================ */
.sffc-crm-bulk-compose-modal {
    padding: 24px;
    max-width: 600px;
}

.sffc-crm-bulk-recipients {
    padding: 16px;
    background: var(--crm-bg);
    border-radius: var(--crm-radius);
    margin-bottom: 20px;
}

.sffc-crm-bulk-recipients-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--crm-text);
    margin-bottom: 12px;
}

.sffc-crm-bulk-recipients-header svg {
    color: var(--crm-primary);
}

.sffc-crm-bulk-recipients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sffc-crm-bulk-recipient-chip {
    font-size: 12px;
    padding: 4px 10px;
    background: var(--crm-card-bg);
    border: 1px solid var(--crm-border);
    border-radius: 12px;
    color: var(--crm-text-secondary);
}

.sffc-crm-bulk-recipient-more {
    font-size: 12px;
    padding: 4px 10px;
    color: var(--crm-text-muted);
    font-style: italic;
}

.sffc-crm-bulk-preview {
    padding: 16px;
    background: var(--crm-bg);
    border-radius: var(--crm-radius);
    min-height: 120px;
}

.sffc-crm-bulk-preview-content {
    font-size: 14px;
    line-height: 1.6;
}

.sffc-crm-bulk-preview-note {
    font-size: 12px;
    color: var(--crm-text-muted);
    margin: 0 0 12px 0;
}

.sffc-crm-bulk-preview-subject {
    font-size: 13px;
    color: var(--crm-text-secondary);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--crm-border-light);
}

.sffc-crm-bulk-preview-body {
    font-size: 13px;
    color: var(--crm-text);
}

/* ============================================
   PHASE 3: Bulk Results Modal
   ============================================ */
.sffc-crm-bulk-results-modal {
    padding: 24px;
    max-width: 600px;
}

.sffc-crm-bulk-results-intro {
    font-size: 14px;
    color: var(--crm-text-secondary);
    margin-bottom: 20px;
}

.sffc-crm-bulk-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.sffc-crm-bulk-result-item {
    padding: 14px 16px;
    background: var(--crm-bg);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
}

.sffc-crm-bulk-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sffc-crm-bulk-result-header strong {
    font-size: 14px;
    color: var(--crm-text);
}

.sffc-crm-bulk-result-preview {
    font-size: 12px;
    color: var(--crm-text-muted);
    line-height: 1.5;
}

.sffc-crm-copy-message.copied {
    background: var(--crm-success);
    border-color: var(--crm-success);
    color: #fff;
}

/* ============================================
   PHASE 2: Responsive Updates
   ============================================ */
@media (max-width: 768px) {
    .sffc-crm-filter-row {
        flex-direction: column;
    }

    .sffc-crm-filter-search-box {
        width: 100%;
    }

    .sffc-crm-recruiter-filters .sffc-crm-select {
        width: 100%;
    }

    .sffc-crm-intelligence-grid {
        grid-template-columns: 1fr;
    }

    .sffc-crm-intel-card.sffc-crm-intel-wide {
        grid-column: span 1;
    }

    .sffc-crm-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .sffc-crm-detail-status-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   PHASE 3: Contact Indicators & Mailto UI
   ============================================ */

/* Contact indicators in compose modal */
.sffc-crm-contact-indicators {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.sffc-crm-contact-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 10px;
}

.sffc-crm-contact-indicator.sffc-crm-has-email {
    background: rgba(5, 150, 105, 0.1);
    color: var(--crm-success);
}

.sffc-crm-contact-indicator.sffc-crm-has-linkedin {
    background: rgba(59, 130, 246, 0.1);
    color: var(--crm-blue);
}

.sffc-crm-contact-indicator.sffc-crm-no-contact {
    background: rgba(107, 114, 128, 0.1);
    color: var(--crm-text-muted);
}

/* Send method info text */
.sffc-crm-compose-send-info {
    font-size: 12px;
    color: var(--crm-text-secondary);
    margin-bottom: 12px;
    padding: 8px 12px;
    background: var(--crm-border-light);
    border-radius: var(--crm-radius);
}

/* Email badge in bulk results */
.sffc-crm-email-badge {
    display: inline-block;
    font-size: 11px;
    color: var(--crm-text-secondary);
    background: var(--crm-border-light);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.sffc-crm-no-email-badge {
    display: inline-block;
    font-size: 11px;
    color: var(--crm-warning);
    background: rgba(217, 119, 6, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

/* Bulk result info layout */
.sffc-crm-bulk-result-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

/* Open email button states */
.sffc-crm-open-email.opened {
    background: var(--crm-success);
    border-color: var(--crm-success);
    color: #fff;
}

/* Legacy reach-out modal button labels */
.sffc-crm-reach-out-actions .btn-label-email,
.sffc-crm-reach-out-actions .btn-label-linkedin {
    display: inline;
}

/* Note text for different channels */
.sffc-crm-reach-out-note {
    font-size: 12px;
    color: var(--crm-text-muted);
    text-align: center;
    margin-top: 16px;
    margin-bottom: 0;
}

/* Copy all button */
.sffc-crm-copy-all-emails {
    margin-right: auto;
}

/* ============================================
   PHASE 4: SEQUENCES & TASKS
   ============================================ */

/* Sequences Container */
.sffc-crm-sequences-container {
    padding: 24px;
}

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

.sffc-crm-sequences-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.sffc-crm-sequences-usage {
    font-size: 13px;
    color: var(--crm-text-secondary);
    margin-bottom: 20px;
}

/* Sequence Cards */
.sffc-crm-sequences-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.sffc-crm-sequence-card {
    background: var(--crm-white);
    border: 1px solid var(--crm-border);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sffc-crm-sequence-card:hover {
    border-color: var(--crm-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sffc-crm-sequence-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.sffc-crm-sequence-card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.sffc-crm-sequence-status {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.sffc-crm-sequence-status-active {
    background: rgba(5, 150, 105, 0.1);
    color: var(--crm-success);
}

.sffc-crm-sequence-status-paused {
    background: rgba(217, 119, 6, 0.1);
    color: var(--crm-warning);
}

.sffc-crm-sequence-description {
    font-size: 13px;
    color: var(--crm-text-secondary);
    margin: 0 0 16px;
    line-height: 1.5;
}

.sffc-crm-sequence-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--crm-border-light);
    border-bottom: 1px solid var(--crm-border-light);
}

.sffc-crm-sequence-stat {
    text-align: center;
}

.sffc-crm-sequence-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--crm-text-primary);
}

.sffc-crm-sequence-stat-label {
    display: block;
    font-size: 11px;
    color: var(--crm-text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.sffc-crm-sequence-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Sequence Builder Modal */
.sffc-crm-sequence-builder {
    max-width: 600px;
    width: 100%;
}

.sffc-crm-sequence-info {
    padding: 24px 24px 0 24px;
}

.sffc-crm-sequence-steps {
    padding: 20px 24px;
    background: var(--crm-bg-light);
    margin: 20px 0;
}

.sffc-crm-sequence-steps h4 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
}

.sffc-crm-steps-list {
    margin-bottom: 16px;
}

.sffc-crm-steps-empty {
    text-align: center;
    padding: 24px;
    color: var(--crm-text-muted);
    font-size: 14px;
}

/* Step Items */
.sffc-crm-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--crm-white);
    border: 1px solid var(--crm-border);
    border-radius: 8px;
    margin-bottom: 8px;
}

.sffc-crm-step-drag-handle {
    cursor: grab;
    color: var(--crm-text-muted);
    font-size: 16px;
}

.sffc-crm-step-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--crm-primary);
    color: var(--crm-white);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.sffc-crm-step-content {
    flex: 1;
    min-width: 0;
}

.sffc-crm-step-type {
    font-weight: 500;
    font-size: 14px;
}

.sffc-crm-step-delay {
    font-size: 12px;
    color: var(--crm-text-secondary);
}

.sffc-crm-step-subject {
    font-size: 12px;
    color: var(--crm-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sffc-crm-step-actions {
    display: flex;
    gap: 4px;
}

/* Step Editor Overlay */
.sffc-crm-step-editor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.sffc-crm-step-editor {
    background: var(--crm-white);
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.sffc-crm-step-editor h4 {
    margin: 0 0 20px;
    font-size: 18px;
}

.sffc-crm-step-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--crm-border);
}

.sffc-crm-form-row {
    display: flex;
    gap: 12px;
}

.sffc-crm-form-row .sffc-crm-form-group {
    flex: 1;
}

.sffc-crm-form-help {
    color: var(--crm-text-muted);
    font-size: 11px;
    margin-top: 4px;
    display: block;
}

/* Enrollments Modal */
.sffc-crm-enrollments-modal {
    max-width: 500px;
    width: 100%;
}

.sffc-crm-enrollments-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0 24px 24px;
}

.sffc-crm-enrollment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--crm-border);
    border-radius: 8px;
    margin-bottom: 8px;
}

.sffc-crm-enrollment-item.status-active {
    border-left: 3px solid var(--crm-success);
}

.sffc-crm-enrollment-item.status-paused {
    border-left: 3px solid var(--crm-warning);
}

.sffc-crm-enrollment-item.status-completed {
    border-left: 3px solid var(--crm-blue);
    opacity: 0.7;
}

.sffc-crm-enrollment-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sffc-crm-enrollment-info strong {
    font-size: 14px;
}

.sffc-crm-enrollment-step {
    font-size: 12px;
    color: var(--crm-text-secondary);
    background: var(--crm-bg-light);
    padding: 2px 8px;
    border-radius: 10px;
}

.sffc-crm-enrollment-status {
    font-size: 11px;
    color: var(--crm-text-muted);
    text-transform: capitalize;
}

.sffc-crm-enrollment-actions {
    display: flex;
    gap: 8px;
}

/* ============================================
   TASKS
   ============================================ */

.sffc-crm-tasks-container {
    padding: 24px;
}

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

.sffc-crm-tasks-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.sffc-crm-tasks-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.sffc-crm-task-filter {
    padding: 6px 14px;
    border: 1px solid var(--crm-border);
    border-radius: 20px;
    background: var(--crm-white);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sffc-crm-task-filter:hover {
    border-color: var(--crm-primary);
}

.sffc-crm-task-filter.active {
    background: var(--crm-primary);
    border-color: var(--crm-primary);
    color: var(--crm-white);
}

/* Task Items */
.sffc-crm-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sffc-crm-task-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--crm-white);
    border: 1px solid var(--crm-border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sffc-crm-task-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sffc-crm-task-item.sffc-crm-task-completed,
.sffc-crm-task-item.sffc-crm-task-skipped {
    opacity: 0.6;
}

.sffc-crm-task-item.sffc-crm-task-completed .sffc-crm-task-title {
    text-decoration: line-through;
}

.sffc-crm-task-item.overdue {
    border-left: 3px solid var(--crm-error);
}

.sffc-crm-task-checkbox {
    flex-shrink: 0;
}

.sffc-crm-complete-task-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--crm-text-muted);
    transition: all 0.2s ease;
}

.sffc-crm-complete-task-btn:hover {
    color: var(--crm-success);
}

.sffc-crm-complete-task-btn:hover svg circle {
    stroke: var(--crm-success);
    fill: rgba(5, 150, 105, 0.1);
}

.sffc-crm-task-done {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--crm-success);
    color: var(--crm-white);
    border-radius: 50%;
    font-size: 12px;
}

.sffc-crm-task-main {
    flex: 1;
    min-width: 0;
}

.sffc-crm-task-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.sffc-crm-task-type-icon {
    font-size: 14px;
}

.sffc-crm-task-title {
    font-weight: 500;
    font-size: 14px;
}

.sffc-crm-task-priority {
    font-size: 10px;
    font-weight: 500;
    color: var(--crm-white);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.sffc-crm-task-recruiter {
    font-size: 13px;
    color: var(--crm-text-secondary);
    margin-bottom: 4px;
}

.sffc-crm-task-due {
    font-size: 12px;
    color: var(--crm-text-muted);
}

.sffc-crm-task-overdue-label {
    color: var(--crm-error);
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
}

.sffc-crm-task-actions {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    flex-shrink: 0;
}

/* Snooze Menu */
.sffc-crm-snooze-menu {
    position: absolute;
    background: var(--crm-white);
    border: 1px solid var(--crm-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 4px;
    z-index: 1000;
}

.sffc-crm-snooze-menu button {
    display: block;
    width: 100%;
    padding: 8px 16px;
    text-align: left;
    border: none;
    background: none;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
}

.sffc-crm-snooze-menu button:hover {
    background: var(--crm-bg-light);
}

/* Task Content Modal */
.sffc-crm-task-content-modal {
    max-width: 500px;
    width: 100%;
}

.sffc-crm-task-prefilled {
    background: var(--crm-bg-light);
    padding: 16px;
    border-radius: 8px;
    margin: 16px 24px;
}

.sffc-crm-task-subject {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--crm-border);
}

.sffc-crm-task-body {
    white-space: pre-wrap;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Create Task Modal */
.sffc-crm-create-task-modal {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
}

.sffc-crm-create-task-modal .sffc-crm-form-group {
    padding: 0 24px;
    margin-bottom: 16px;
}

/* ============================================
   PHASE 4: Enrollment Modal (From Recruiter Cards)
   ============================================ */
.sffc-crm-enroll-modal {
    max-width: 480px;
    width: 100%;
}

.sffc-crm-enroll-intro {
    color: var(--crm-text-secondary);
    font-size: 14px;
    margin: 0 0 16px 0;
}

.sffc-crm-sequence-select-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.sffc-crm-sequence-select-item {
    padding: 14px 16px;
    background: var(--crm-bg);
    border: 2px solid transparent;
    border-radius: var(--crm-radius);
    cursor: pointer;
    transition: all 0.15s ease;
}

.sffc-crm-sequence-select-item:hover {
    background: var(--crm-card-bg);
    border-color: var(--crm-primary);
}

.sffc-crm-sequence-select-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.sffc-crm-sequence-select-name {
    font-weight: 600;
    color: var(--crm-text);
}

.sffc-crm-sequence-select-steps {
    font-size: 12px;
    color: var(--crm-text-muted);
    background: var(--crm-border-light);
    padding: 2px 8px;
    border-radius: 10px;
}

.sffc-crm-sequence-select-desc {
    font-size: 13px;
    color: var(--crm-text-secondary);
    margin: 4px 0 0 0;
    line-height: 1.4;
}

/* Sequence Enrollment Section in Recruiter Detail */
.sffc-crm-sequence-enrollment-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--crm-border-light);
}

.sffc-crm-sequence-enrollment-section .sffc-crm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sffc-crm-sequence-enrollment-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0;
}

.sffc-crm-active-enrollments {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sffc-crm-enrollment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--crm-bg);
    border-radius: var(--crm-radius);
}

.sffc-crm-enrollment-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sffc-crm-enrollment-sequence {
    font-weight: 500;
    color: var(--crm-text);
    font-size: 14px;
}

.sffc-crm-enrollment-progress {
    font-size: 12px;
    color: var(--crm-text-muted);
}

.sffc-crm-enrollment-actions {
    display: flex;
    gap: 8px;
}

.sffc-crm-no-enrollments {
    color: var(--crm-text-muted);
    font-size: 13px;
    font-style: italic;
    margin: 0;
}

/* Enroll button on recruiter row */
.sffc-crm-enroll-btn svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   PHASE 5: Inbox / Conversations
   ============================================ */

.sffc-crm-inbox-container {
    padding: 20px;
}

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

.sffc-crm-inbox-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--crm-text);
}

.sffc-crm-inbox-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sffc-crm-inbox-filter {
    padding: 8px 16px;
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    background: var(--crm-card-bg);
    color: var(--crm-text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sffc-crm-inbox-filter:hover {
    border-color: var(--crm-primary);
    color: var(--crm-primary);
}

.sffc-crm-inbox-filter.active {
    background: var(--crm-primary);
    border-color: var(--crm-primary);
    color: #fff;
}

.sffc-crm-inbox-search {
    margin-bottom: 20px;
}

.sffc-crm-inbox-search input {
    width: 100%;
    max-width: 400px;
}

/* Conversation List */
.sffc-crm-conversation-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--crm-border);
    border-radius: var(--crm-radius);
    overflow: hidden;
}

.sffc-crm-conversation-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--crm-card-bg);
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.sffc-crm-conversation-item:hover {
    background: var(--crm-bg);
}

.sffc-crm-conversation-item.unread {
    background: rgba(13, 53, 62, 0.03);
}

.sffc-crm-conversation-item.unread .sffc-crm-conversation-name {
    font-weight: 600;
}

.sffc-crm-star-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--crm-text-muted);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.sffc-crm-star-btn:hover,
.sffc-crm-star-btn.starred {
    color: #f59e0b;
}

.sffc-crm-conversation-content {
    flex: 1;
    min-width: 0;
}

.sffc-crm-conversation-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.sffc-crm-conversation-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--crm-text);
}

.sffc-crm-conversation-firm {
    font-size: 13px;
    color: var(--crm-text-muted);
}

.sffc-crm-conversation-time {
    font-size: 12px;
    color: var(--crm-text-muted);
    margin-left: auto;
    flex-shrink: 0;
}

.sffc-crm-conversation-subject {
    font-size: 13px;
    font-weight: 500;
    color: var(--crm-text-secondary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sffc-crm-conversation-snippet {
    font-size: 13px;
    color: var(--crm-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sffc-crm-direction-indicator {
    color: var(--crm-text-secondary);
    font-weight: 500;
}

.sffc-crm-conversation-channel {
    flex-shrink: 0;
    color: var(--crm-text-muted);
    display: flex;
    align-items: center;
}

.sffc-crm-unread-dot {
    width: 10px;
    height: 10px;
    background: var(--crm-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Thread View */
.sffc-crm-thread-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
}

.sffc-crm-thread-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--crm-border);
    background: var(--crm-card-bg);
}

.sffc-crm-back-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--crm-text-secondary);
    border-radius: var(--crm-radius);
    transition: all 0.2s ease;
}

.sffc-crm-back-btn:hover {
    background: var(--crm-bg);
    color: var(--crm-primary);
}

.sffc-crm-thread-title {
    flex: 1;
}

.sffc-crm-thread-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--crm-text);
}

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

.sffc-crm-thread-actions {
    display: flex;
    gap: 8px;
}

.sffc-crm-thread-action {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--crm-text-muted);
    border-radius: var(--crm-radius);
    transition: all 0.2s ease;
}

.sffc-crm-thread-action:hover {
    background: var(--crm-bg);
    color: var(--crm-text-secondary);
}

.sffc-crm-thread-action.starred {
    color: #f59e0b;
}

/* Messages Container */
.sffc-crm-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--crm-bg);
}

.sffc-crm-empty-messages {
    text-align: center;
    padding: 40px;
    color: var(--crm-text-muted);
}

/* Message Bubbles */
.sffc-crm-message {
    display: flex;
    max-width: 70%;
}

.sffc-crm-message.outbound {
    margin-left: auto;
}

.sffc-crm-message.inbound {
    margin-right: auto;
}

.sffc-crm-message-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--crm-card-bg);
    border: 1px solid var(--crm-border);
}

.sffc-crm-message.outbound .sffc-crm-message-bubble {
    background: var(--crm-primary);
    border-color: var(--crm-primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.sffc-crm-message.inbound .sffc-crm-message-bubble {
    border-bottom-left-radius: 4px;
}

.sffc-crm-message-subject {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
}

.sffc-crm-message-body {
    font-size: 14px;
    line-height: 1.5;
}

.sffc-crm-message-body p {
    margin: 0 0 8px 0;
}

.sffc-crm-message-body p:last-child {
    margin-bottom: 0;
}

.sffc-crm-message-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 11px;
    opacity: 0.7;
}

.sffc-crm-message.outbound .sffc-crm-message-meta {
    justify-content: flex-end;
}

.sffc-crm-message-status svg {
    width: 14px;
    height: 14px;
}

/* Reply Form */
.sffc-crm-reply-form {
    padding: 16px 20px;
    border-top: 1px solid var(--crm-border);
    background: var(--crm-card-bg);
}

.sffc-crm-reply-form textarea {
    width: 100%;
    margin-bottom: 12px;
    resize: vertical;
    min-height: 80px;
}

.sffc-crm-reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.sffc-crm-send-reply-btn svg {
    margin-right: 6px;
}

/* Compose Modal */
.sffc-crm-compose-modal {
    max-width: 500px;
}

/* Responsive */
@media (max-width: 768px) {
    .sffc-crm-inbox-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .sffc-crm-inbox-filter {
        flex-shrink: 0;
    }

    .sffc-crm-message {
        max-width: 85%;
    }

    .sffc-crm-thread-container {
        min-height: 400px;
    }
}

/* ============================================
   Phase 6: Analytics Dashboard
   ============================================ */

/* Analytics Container */
.sffc-crm-analytics-container {
    padding: 24px;
}

.sffc-crm-analytics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sffc-crm-analytics-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--crm-primary);
    margin: 0;
}

.sffc-crm-analytics-actions {
    display: flex;
    gap: 12px;
}

.sffc-crm-period-select {
    padding: 8px 12px;
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    font-size: 14px;
    background: var(--crm-card-bg);
    color: var(--crm-text);
}

/* Metrics Grid */
.sffc-crm-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.sffc-crm-metric-card {
    background: var(--crm-card-bg);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sffc-crm-metric-label {
    font-size: 13px;
    color: var(--crm-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sffc-crm-metric-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--crm-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.sffc-crm-metric-trend {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sffc-crm-metric-trend.positive {
    color: var(--crm-success);
}

.sffc-crm-metric-trend.negative {
    color: var(--crm-error);
}

.sffc-crm-metric-trend.neutral {
    color: var(--crm-text-muted);
}

/* Analytics Tabs */
.sffc-crm-analytics-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--crm-border);
    padding-bottom: 0;
}

.sffc-crm-analytics-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--crm-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s ease;
}

.sffc-crm-analytics-tab:hover {
    color: var(--crm-text);
}

.sffc-crm-analytics-tab.active {
    color: var(--crm-primary);
    border-bottom-color: var(--crm-primary);
}

/* Analytics Section */
.sffc-crm-analytics-section {
    background: var(--crm-card-bg);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sffc-crm-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0 0 20px 0;
}

/* Outreach Chart */
.sffc-crm-outreach-chart {
    height: 250px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 20px 0;
}

.sffc-crm-chart-bar {
    flex: 1;
    background: var(--crm-primary);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.sffc-crm-chart-bar:hover {
    background: var(--crm-primary-hover);
}

.sffc-crm-chart-bar-label {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--crm-text-muted);
    white-space: nowrap;
}

.sffc-crm-chart-bar-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--crm-text);
}

/* Channel Stats */
.sffc-crm-channel-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.sffc-crm-channel-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--crm-bg);
    border-radius: var(--crm-radius);
}

.sffc-crm-channel-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--crm-primary);
    color: white;
}

.sffc-crm-channel-info {
    flex: 1;
}

.sffc-crm-channel-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--crm-text);
    margin-bottom: 2px;
}

.sffc-crm-channel-value {
    font-size: 12px;
    color: var(--crm-text-secondary);
}

/* Pipeline Funnel */
.sffc-crm-funnel-container {
    padding: 20px 0;
}

.sffc-crm-funnel {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 600px;
    margin: 0 auto;
}

.sffc-crm-funnel-stage {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sffc-crm-funnel-bar {
    height: 48px;
    background: var(--crm-primary);
    border-radius: var(--crm-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.sffc-crm-funnel-bar:hover {
    transform: translateX(4px);
}

.sffc-crm-funnel-info {
    min-width: 140px;
}

.sffc-crm-funnel-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--crm-text);
}

.sffc-crm-funnel-rate {
    font-size: 12px;
    color: var(--crm-text-secondary);
}

/* Sequence Performance */
.sffc-crm-sequence-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sffc-crm-sequence-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--crm-bg);
    border-radius: var(--crm-radius);
}

.sffc-crm-sequence-name {
    flex: 1;
    font-weight: 500;
    color: var(--crm-text);
}

.sffc-crm-sequence-stats {
    display: flex;
    gap: 24px;
}

.sffc-crm-sequence-stat {
    text-align: center;
}

.sffc-crm-sequence-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--crm-primary);
}

.sffc-crm-sequence-stat-label {
    font-size: 11px;
    color: var(--crm-text-muted);
    text-transform: uppercase;
}

/* Timing Heatmap */
.sffc-crm-timing-container {
    overflow-x: auto;
}

.sffc-crm-timing-grid {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 2px;
    min-width: 600px;
}

.sffc-crm-timing-header {
    font-size: 12px;
    font-weight: 500;
    color: var(--crm-text-secondary);
    text-align: center;
    padding: 8px 4px;
}

.sffc-crm-timing-row-label {
    font-size: 12px;
    color: var(--crm-text-secondary);
    padding: 8px 4px;
    display: flex;
    align-items: center;
}

.sffc-crm-timing-cell {
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.sffc-crm-timing-cell:hover {
    transform: scale(1.05);
}

.sffc-crm-timing-cell.low {
    background: #e5f3ef;
    color: var(--crm-text-secondary);
}

.sffc-crm-timing-cell.medium {
    background: #7dd3c0;
    color: white;
}

.sffc-crm-timing-cell.high {
    background: var(--crm-success);
    color: white;
}

.sffc-crm-timing-cell.very-high {
    background: #047857;
    color: white;
}

/* Recruiter Rankings */
.sffc-crm-recruiter-rankings {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sffc-crm-ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--crm-bg);
    border-radius: var(--crm-radius);
}

.sffc-crm-ranking-position {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--crm-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.sffc-crm-ranking-position.gold {
    background: #fbbf24;
}

.sffc-crm-ranking-position.silver {
    background: #9ca3af;
}

.sffc-crm-ranking-position.bronze {
    background: #d97706;
}

.sffc-crm-ranking-info {
    flex: 1;
}

.sffc-crm-ranking-name {
    font-weight: 500;
    color: var(--crm-text);
}

.sffc-crm-ranking-firm {
    font-size: 12px;
    color: var(--crm-text-secondary);
}

.sffc-crm-ranking-rate {
    font-size: 18px;
    font-weight: 600;
    color: var(--crm-success);
}

/* Alerts Section */
.sffc-crm-alerts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sffc-crm-alerts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sffc-crm-alert-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--crm-bg);
    border-radius: var(--crm-radius);
    border: 1px solid var(--crm-border);
}

.sffc-crm-alert-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--crm-radius);
    background: var(--crm-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sffc-crm-alert-icon.keyword {
    background: var(--crm-blue);
}

.sffc-crm-alert-icon.recruiter {
    background: var(--crm-senna-primary, #0d353e);
}

.sffc-crm-alert-icon.follow-up {
    background: var(--crm-warning);
}

.sffc-crm-alert-content {
    flex: 1;
}

.sffc-crm-alert-name {
    font-weight: 500;
    color: var(--crm-text);
    margin-bottom: 4px;
}

.sffc-crm-alert-description {
    font-size: 13px;
    color: var(--crm-text-secondary);
}

.sffc-crm-alert-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sffc-crm-alert-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--crm-border);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sffc-crm-alert-toggle.active {
    background: var(--crm-success);
}

.sffc-crm-alert-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.sffc-crm-alert-toggle.active::after {
    transform: translateX(20px);
}

.sffc-crm-alert-delete {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crm-text-muted);
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--crm-radius);
    transition: all 0.2s ease;
}

.sffc-crm-alert-delete:hover {
    background: #fee2e2;
    color: var(--crm-error);
}

/* Export Modal */
.sffc-crm-export-modal .sffc-crm-modal-body {
    padding: 24px;
}

.sffc-crm-export-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.sffc-crm-export-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--crm-bg);
    border: 2px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sffc-crm-export-option:hover {
    border-color: var(--crm-primary);
}

.sffc-crm-export-option.selected {
    border-color: var(--crm-primary);
    background: rgba(13, 53, 62, 0.05);
}

.sffc-crm-export-option input {
    display: none;
}

.sffc-crm-export-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--crm-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.sffc-crm-export-icon.csv {
    background: #dcfce7;
    color: var(--crm-success);
}

.sffc-crm-export-icon.json {
    background: #dbeafe;
    color: var(--crm-blue);
}

.sffc-crm-export-icon.pdf {
    background: #fee2e2;
    color: var(--crm-error);
}

.sffc-crm-export-label {
    font-weight: 500;
    color: var(--crm-text);
}

.sffc-crm-export-desc {
    font-size: 12px;
    color: var(--crm-text-secondary);
}

.sffc-crm-export-sections {
    margin-bottom: 24px;
}

.sffc-crm-export-sections h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--crm-text);
    margin-bottom: 12px;
}

.sffc-crm-export-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sffc-crm-export-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--crm-text-secondary);
    cursor: pointer;
}

.sffc-crm-export-checkbox input {
    width: 16px;
    height: 16px;
}

/* Notifications Bell */
.sffc-crm-notifications-bell {
    position: relative;
}

.sffc-crm-notifications-count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--crm-error);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Analytics Loading State */
.sffc-crm-analytics-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.sffc-crm-analytics-loading .sffc-crm-loading {
    margin-bottom: 16px;
}

/* Empty States */
.sffc-crm-analytics-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--crm-text-secondary);
}

.sffc-crm-analytics-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--crm-text-muted);
}

.sffc-crm-analytics-empty p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Analytics */
@media (max-width: 768px) {
    .sffc-crm-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sffc-crm-analytics-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0;
    }

    .sffc-crm-analytics-tab {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .sffc-crm-funnel {
        max-width: 100%;
    }

    .sffc-crm-funnel-info {
        min-width: 100px;
    }

    .sffc-crm-sequence-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .sffc-crm-sequence-stats {
        width: 100%;
        justify-content: space-between;
    }

    .sffc-crm-alert-item {
        flex-wrap: wrap;
    }

    .sffc-crm-alert-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .sffc-crm-metrics-grid {
        grid-template-columns: 1fr;
    }

    .sffc-crm-analytics-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sffc-crm-metric-value {
        font-size: 28px;
    }
}

/* ============================================
   Email Digest Section
   ============================================ */

.sffc-crm-digest-section {
    margin-top: 24px;
}

.sffc-crm-digest-description {
    color: var(--crm-text-secondary);
    font-size: 14px;
    margin: 0 0 20px 0;
}

.sffc-crm-digest-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.sffc-crm-digest-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--crm-bg);
    border-radius: var(--crm-radius);
}

.sffc-crm-digest-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--crm-text);
    cursor: pointer;
    flex: 1;
}

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

.sffc-crm-digest-hint {
    font-size: 13px;
    color: var(--crm-text-muted);
}

.sffc-crm-digest-actions {
    display: flex;
    gap: 12px;
}

.sffc-crm-digest-actions .sffc-crm-btn {
    min-width: 100px;
}

/* ============================================
   Phase 7: Polish & Scale
   ============================================ */

/* Skeleton Loading States */
.sffc-crm-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: sffc-skeleton-loading 1.5s infinite;
    border-radius: var(--crm-radius);
}

@keyframes sffc-skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.sffc-crm-skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.sffc-crm-skeleton-text.short {
    width: 60%;
}

.sffc-crm-skeleton-text.medium {
    width: 80%;
}

.sffc-crm-skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.sffc-crm-skeleton-card {
    padding: 20px;
    background: var(--crm-card-bg);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
}

/* Empty States */
.sffc-crm-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.sffc-crm-empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    color: var(--crm-text-muted);
    opacity: 0.5;
}

.sffc-crm-empty-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0 0 8px 0;
}

.sffc-crm-empty-description {
    font-size: 14px;
    color: var(--crm-text-secondary);
    margin: 0 0 24px 0;
    max-width: 400px;
}

.sffc-crm-empty-action {
    margin-top: 8px;
}

/* Error States */
.sffc-crm-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--crm-radius-lg);
}

.sffc-crm-error-icon {
    width: 48px;
    height: 48px;
    color: var(--crm-error);
    margin-bottom: 16px;
}

.sffc-crm-error-message {
    font-size: 14px;
    color: var(--crm-error);
    margin: 0 0 16px 0;
}

.sffc-crm-retry-btn {
    background: var(--crm-error);
    color: white;
}

/* Toast Notifications */
.sffc-crm-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sffc-crm-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--crm-primary);
    color: white;
    border-radius: var(--crm-radius);
    box-shadow: var(--crm-shadow-lg);
    animation: sffc-toast-in 0.3s ease;
    max-width: 400px;
}

.sffc-crm-toast.success {
    background: var(--crm-success);
}

.sffc-crm-toast.error {
    background: var(--crm-error);
}

.sffc-crm-toast.warning {
    background: var(--crm-warning);
}

.sffc-crm-toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    padding: 4px;
}

.sffc-crm-toast-close:hover {
    opacity: 1;
}

@keyframes sffc-toast-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Keyboard Shortcut Hints */
.sffc-crm-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    font-size: 11px;
    font-family: monospace;
    font-weight: 500;
    color: var(--crm-text-secondary);
    background: var(--crm-bg);
    border: 1px solid var(--crm-border);
    border-radius: 4px;
    box-shadow: 0 1px 0 var(--crm-border);
}

.sffc-crm-shortcut-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    opacity: 0.7;
}

/* Keyboard Shortcuts Modal */
.sffc-crm-shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sffc-crm-shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--crm-bg);
    border-radius: var(--crm-radius);
}

.sffc-crm-shortcut-label {
    font-size: 14px;
    color: var(--crm-text);
}

.sffc-crm-shortcut-keys {
    display: flex;
    gap: 4px;
}

/* Onboarding Tour */
.sffc-crm-tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.sffc-crm-tour-highlight {
    position: relative;
    z-index: 9999;
    box-shadow: 0 0 0 4px var(--crm-primary), 0 0 0 9999px rgba(0, 0, 0, 0.5);
    border-radius: var(--crm-radius);
}

.sffc-crm-tour-tooltip {
    position: absolute;
    z-index: 10000;
    width: 320px;
    padding: 20px;
    background: white;
    border-radius: var(--crm-radius-lg);
    box-shadow: var(--crm-shadow-lg);
}

.sffc-crm-tour-tooltip::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
}

.sffc-crm-tour-tooltip.top::before {
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
}

.sffc-crm-tour-tooltip.bottom::before {
    top: -6px;
    left: 50%;
    margin-left: -6px;
}

.sffc-crm-tour-step {
    font-size: 12px;
    color: var(--crm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sffc-crm-tour-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0 0 8px 0;
}

.sffc-crm-tour-content {
    font-size: 14px;
    color: var(--crm-text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.sffc-crm-tour-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sffc-crm-tour-progress {
    display: flex;
    gap: 6px;
}

.sffc-crm-tour-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--crm-border);
}

.sffc-crm-tour-dot.active {
    background: var(--crm-primary);
}

.sffc-crm-tour-dot.completed {
    background: var(--crm-success);
}

/* Bulk Action Bar */
.sffc-crm-bulk-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: var(--crm-primary);
    color: white;
    border-radius: 50px;
    box-shadow: var(--crm-shadow-lg);
    z-index: 1000;
    animation: sffc-slide-up 0.3s ease;
}

@keyframes sffc-slide-up {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.sffc-crm-bulk-count {
    font-weight: 600;
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.sffc-crm-bulk-actions {
    display: flex;
    gap: 8px;
}

.sffc-crm-bulk-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sffc-crm-bulk-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sffc-crm-bulk-btn.danger {
    background: rgba(220, 38, 38, 0.8);
}

.sffc-crm-bulk-btn.danger:hover {
    background: rgba(220, 38, 38, 1);
}

.sffc-crm-bulk-close {
    padding: 8px;
    background: none;
    border: none;
    color: white;
    opacity: 0.7;
    cursor: pointer;
    margin-left: 8px;
}

.sffc-crm-bulk-close:hover {
    opacity: 1;
}

/* Loading Spinner */
.sffc-crm-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--crm-border);
    border-top-color: var(--crm-primary);
    border-radius: 50%;
    animation: sffc-spin 0.8s linear infinite;
}

.sffc-crm-spinner.white {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: white;
}

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

/* Focus States for Accessibility */
.sffc-crm-btn:focus-visible,
.sffc-crm-tab:focus-visible,
.sffc-crm-input:focus-visible,
.sffc-crm-select:focus-visible {
    outline: 2px solid var(--crm-primary);
    outline-offset: 2px;
}

/* Skip Link for Accessibility */
.sffc-crm-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--crm-primary);
    color: white;
    padding: 8px 16px;
    z-index: 10001;
    transition: top 0.2s;
}

.sffc-crm-skip-link:focus {
    top: 0;
}

/* Print Styles */
@media print {
    .sffc-crm-header-actions,
    .sffc-crm-tabs,
    .sffc-crm-bulk-bar,
    .sffc-crm-toast-container,
    .sffc-crm-modal {
        display: none !important;
    }

    .sffc-crm-container {
        max-width: 100%;
        padding: 0;
    }

    .sffc-crm-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Comprehensive Mobile Responsive */
@media (max-width: 1024px) {
    .sffc-crm-container {
        padding: 20px;
    }

    .sffc-crm-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .sffc-crm-sidebar.open {
        left: 0;
    }
}

@media (max-width: 640px) {
    .sffc-crm-container {
        padding: 12px;
    }

    .sffc-crm-title {
        font-size: 22px;
    }

    .sffc-crm-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 0;
        margin: 0 -12px;
        padding: 0 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .sffc-crm-tabs::-webkit-scrollbar {
        display: none;
    }

    .sffc-crm-tab {
        flex-shrink: 0;
        padding: 12px 16px;
        white-space: nowrap;
    }

    .sffc-crm-filters {
        flex-direction: column;
    }

    .sffc-crm-filter-group {
        width: 100%;
    }

    .sffc-crm-btn {
        width: 100%;
        justify-content: center;
    }

    .sffc-crm-btn-group {
        flex-direction: column;
        width: 100%;
    }

    .sffc-crm-modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
        border-radius: var(--crm-radius);
    }

    .sffc-crm-modal-footer {
        flex-direction: column;
    }

    .sffc-crm-modal-footer .sffc-crm-btn {
        width: 100%;
    }

    .sffc-crm-bulk-bar {
        left: 12px;
        right: 12px;
        transform: none;
        border-radius: var(--crm-radius-lg);
        flex-wrap: wrap;
    }

    .sffc-crm-bulk-count {
        width: 100%;
        text-align: center;
        padding-right: 0;
        padding-bottom: 12px;
        margin-bottom: 12px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    .sffc-crm-bulk-actions {
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }

    .sffc-crm-toast-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .sffc-crm-toast {
        max-width: 100%;
    }

    .sffc-crm-tour-tooltip {
        width: calc(100vw - 24px);
        left: 12px !important;
        right: 12px !important;
    }

    /* Feed card mobile */
    .sffc-crm-post-card {
        padding: 16px;
    }

    .sffc-crm-post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sffc-crm-post-actions {
        width: 100%;
        justify-content: space-between;
    }

    /* Pipeline mobile */
    .sffc-crm-pipeline-kanban {
        flex-direction: column;
        gap: 16px;
    }

    .sffc-crm-pipeline-column {
        min-width: 100%;
    }

    /* Inbox mobile */
    .sffc-crm-inbox-layout {
        flex-direction: column;
    }

    .sffc-crm-inbox-sidebar {
        width: 100%;
        max-height: 300px;
    }

    .sffc-crm-inbox-main {
        width: 100%;
    }

    /* Sequence builder mobile */
    .sffc-crm-sequence-timeline {
        flex-direction: column;
    }

    .sffc-crm-sequence-step {
        width: 100%;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .sffc-crm-btn {
        min-height: 44px;
    }

    .sffc-crm-tab {
        min-height: 44px;
    }

    .sffc-crm-input,
    .sffc-crm-select,
    .sffc-crm-textarea {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .sffc-crm-checkbox-label,
    .sffc-crm-radio-label {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .sffc-crm-card:active {
        transform: scale(0.98);
    }
}

/* ============================================
   CONTACTS TAB
   ============================================ */

.sffc-crm-contacts-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: var(--crm-card-bg);
    border-bottom: 1px solid var(--crm-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sffc-crm-contacts-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--crm-bg);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    padding: 0 16px;
}

.sffc-crm-contacts-search svg {
    color: var(--crm-text-muted);
    flex-shrink: 0;
}

.sffc-crm-contacts-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 14px;
    color: var(--crm-text);
}

.sffc-crm-contacts-search input:focus {
    outline: none;
}

.sffc-crm-contacts-search input::placeholder {
    color: var(--crm-text-muted);
}

.sffc-crm-contacts-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sffc-crm-contacts-filters .sffc-crm-select {
    min-width: 150px;
    flex: 1;
    max-width: 200px;
}

.sffc-crm-contacts-list {
    display: flex;
    flex-direction: column;
}

.sffc-crm-contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--crm-card-bg);
    border-bottom: 1px solid var(--crm-border);
    cursor: pointer;
    transition: background 0.15s ease;
}

.sffc-crm-contact-row:hover {
    background: var(--crm-border-light);
}

/* Blurred Contact Row - Non-premium users */
.sffc-crm-contact-row--blurred {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
    position: relative;
    opacity: 0.7;
}

.sffc-crm-contact-row--blurred::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.sffc-crm-contact-row--blurred:hover {
    background: var(--crm-card-bg); /* Disable hover effect for blurred rows */
}

.sffc-crm-contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--crm-primary), var(--crm-primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sffc-crm-contact-initial {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
}

.sffc-crm-contact-info {
    flex: 1;
    min-width: 0;
}

.sffc-crm-contact-name {
    font-weight: 600;
    color: var(--crm-text);
    font-size: 15px;
    margin-bottom: 2px;
}

.sffc-crm-contact-title {
    font-size: 13px;
    color: var(--crm-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sffc-crm-contact-company {
    font-size: 13px;
    color: var(--crm-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sffc-crm-contact-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.sffc-crm-contact-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.sffc-crm-contact-save-btn.is-saved {
    color: var(--crm-primary);
}

.sffc-crm-contacts-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    background: var(--crm-card-bg);
    border-top: 1px solid var(--crm-border);
}

.sffc-crm-contacts-page-info {
    font-size: 14px;
    color: var(--crm-text-secondary);
}

/* Contact Detail Modal */
.sffc-crm-contact-detail {
    padding: 24px;
}

.sffc-crm-detail-company-info {
    background: var(--crm-bg);
    border-radius: var(--crm-radius);
    padding: 16px;
}

.sffc-crm-detail-company-name {
    font-weight: 600;
    color: var(--crm-text);
    margin: 0 0 8px 0;
}

.sffc-crm-detail-company-meta {
    font-size: 13px;
    color: var(--crm-text-secondary);
    margin: 0 0 4px 0;
}

.sffc-crm-detail-company-desc {
    font-size: 13px;
    color: var(--crm-text-muted);
    margin: 8px 0 0 0;
    line-height: 1.5;
}

/* Responsive contacts */
@media (max-width: 768px) {
    .sffc-crm-contacts-header {
        padding: 16px;
    }

    .sffc-crm-contacts-filters {
        flex-direction: column;
    }

    .sffc-crm-contacts-filters .sffc-crm-select {
        max-width: 100%;
    }

    .sffc-crm-contact-row {
        flex-wrap: wrap;
        padding: 16px;
    }

    .sffc-crm-contact-meta {
        width: 100%;
        margin-top: 8px;
        order: 3;
    }

    .sffc-crm-contact-actions {
        order: 2;
    }
}

/* Dark mode support (future) */
@media (prefers-color-scheme: dark) {
    :root {
        /* Uncomment when implementing dark mode
        --crm-bg: #1a1a1a;
        --crm-card-bg: #2d2d2d;
        --crm-text: #ffffff;
        --crm-text-secondary: #a0a0a0;
        --crm-border: #404040;
        */
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .sffc-crm-skeleton {
        animation: none;
        background: #e0e0e0;
    }
}

/* ============================================
   LINKEDIN-STYLE MOBILE EXPERIENCE
   ============================================ */

/* Mobile Bottom Navigation Bar */
.sffc-crm-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--crm-white);
    border-top: 1px solid var(--crm-border);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.sffc-crm-bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.sffc-crm-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--crm-gray-500);
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    font-family: inherit;
    transition: color 0.2s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.sffc-crm-bottom-nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.sffc-crm-bottom-nav-item.active {
    color: var(--crm-primary);
}

.sffc-crm-bottom-nav-item.active svg {
    stroke-width: 2;
}

.sffc-crm-bottom-nav-item:hover {
    color: var(--crm-primary);
}

.sffc-crm-bottom-nav-item:active {
    transform: scale(0.95);
}

.sffc-crm-bottom-nav-item span {
    line-height: 1;
}

/* Notification badge on nav items */
.sffc-crm-bottom-nav-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* ============================================
   CONSOLIDATED DASHBOARD STYLES
   ============================================ */

/* Dashboard Header */
.sffc-crm-dashboard-header {
    margin-bottom: 24px;
}

.sffc-crm-dashboard-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0;
}

/* Dashboard Section */
.sffc-crm-dashboard-section {
    background: #fff;
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.sffc-crm-dashboard-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--crm-text);
    margin: 0 0 16px 0;
}

/* Dashboard Grid (two columns for upcoming items) */
.sffc-crm-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

/* Outreach Summary Section */
.sffc-crm-outreach-summary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #bae6fd;
}

.sffc-crm-outreach-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.sffc-crm-outreach-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px;
    background: #fff;
    border-radius: var(--crm-radius);
    border: 1px solid var(--crm-border);
    min-width: 120px;
    flex: 1;
}

.sffc-crm-outreach-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--crm-primary);
}

.sffc-crm-outreach-label {
    font-size: 13px;
    color: var(--crm-text-secondary);
    margin-top: 4px;
}

.sffc-crm-outreach-pending .sffc-crm-outreach-value {
    color: #d97706;
}

.sffc-crm-outreach-success .sffc-crm-outreach-value {
    color: #059669;
}

/* Funnel Bar Wrapper */
.sffc-crm-funnel-bar-wrap {
    flex: 1;
    background: var(--crm-gray-100);
    border-radius: var(--crm-radius);
    overflow: hidden;
    height: 28px;
}

/* Upcoming Items List */
.sffc-crm-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sffc-crm-upcoming-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--crm-gray-50);
    border-radius: var(--crm-radius);
    border: 1px solid var(--crm-border-light);
}

.sffc-crm-upcoming-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--crm-text);
}

.sffc-crm-upcoming-date {
    font-size: 12px;
    color: var(--crm-text-secondary);
    white-space: nowrap;
}

/* Activity Icon in Dashboard */
.sffc-crm-activity-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--crm-gray-100);
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--crm-text-secondary);
}

.sffc-crm-activity-icon svg {
    width: 16px;
    height: 16px;
}

/* Activity Content in Dashboard */
.sffc-crm-activity-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.sffc-crm-activity-text {
    font-size: 14px;
    color: var(--crm-text);
}

.sffc-crm-activity-time {
    font-size: 12px;
    color: var(--crm-text-muted);
    margin-top: 2px;
}

/* Empty text style */
.sffc-crm-empty-text {
    font-size: 14px;
    color: var(--crm-text-secondary);
    text-align: center;
    padding: 20px;
    margin: 0;
}

/* Stat card success variant */
.sffc-crm-stat-card.sffc-crm-stat-success .sffc-crm-stat-value {
    color: #059669;
}

/* Mobile Header - LinkedIn Style */
@media (max-width: 768px) {
    /* Adjust container for bottom nav */
    .sffc-crm-container {
        padding-bottom: 80px;
    }

    /* Show bottom nav on mobile */
    .sffc-crm-bottom-nav {
        display: block;
    }

    /* Compact sticky header */
    .sffc-crm-header {
        position: sticky;
        top: 0;
        z-index: 100;
        margin: -12px -12px 16px -12px;
        padding: 12px 16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
    }

    .sffc-crm-title {
        font-size: 18px;
    }

    /* Show mobile menu toggle */
    .sffc-crm-mobile-menu-toggle {
        display: flex;
    }

    /* Hide desktop nav items on mobile */
    .sffc-crm-header-actions .sffc-crm-btn:not(.sffc-crm-btn-icon):not(.sffc-crm-mobile-menu-toggle) {
        display: none;
    }

    /* Mobile Search Bar - LinkedIn style */
    .sffc-crm-mobile-search {
        display: flex;
        align-items: center;
        gap: 12px;
        background: var(--crm-gray-100);
        border-radius: 8px;
        padding: 10px 14px;
        margin-bottom: 16px;
    }

    .sffc-crm-mobile-search svg {
        width: 20px;
        height: 20px;
        color: var(--crm-gray-500);
        flex-shrink: 0;
    }

    .sffc-crm-mobile-search input {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 15px;
        color: var(--crm-text);
        padding: 0;
    }

    .sffc-crm-mobile-search input::placeholder {
        color: var(--crm-gray-400);
    }

    .sffc-crm-mobile-search input:focus {
        outline: none;
    }

    /* Tabs - Scrollable pill style */
    .sffc-crm-tabs {
        display: flex;
        gap: 8px;
        padding: 0 4px 16px;
        margin: 0 -12px;
        padding-left: 12px;
        padding-right: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sffc-crm-tabs::-webkit-scrollbar {
        display: none;
    }

    .sffc-crm-tab {
        flex-shrink: 0;
        padding: 10px 18px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        background: var(--crm-gray-100);
        color: var(--crm-gray-600);
        border: none;
        transition: all 0.2s ease;
    }

    .sffc-crm-tab.active {
        background: var(--crm-primary);
        color: #fff;
    }

    .sffc-crm-tab:active {
        transform: scale(0.96);
    }

    /* Cards - Mobile optimized feed style */
    .sffc-crm-card {
        margin: 0 -12px 12px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
        border-bottom: 8px solid var(--crm-gray-100);
    }

    .sffc-crm-card-header {
        padding: 16px;
    }

    .sffc-crm-card-body {
        padding: 0 16px 16px;
    }

    /* Post Card - LinkedIn feed style */
    .sffc-crm-post-card {
        margin: 0 -12px 8px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        background: #fff;
        border-bottom: 8px solid var(--crm-gray-100);
    }

    .sffc-crm-post-recruiter {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
    }

    .sffc-crm-post-recruiter-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--crm-primary), var(--crm-primary-hover));
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 18px;
        font-weight: 600;
        color: #fff;
    }

    .sffc-crm-post-recruiter-info {
        flex: 1;
        min-width: 0;
    }

    .sffc-crm-post-recruiter-name {
        font-weight: 600;
        font-size: 15px;
        color: var(--crm-text);
        margin-bottom: 2px;
    }

    .sffc-crm-post-recruiter-meta {
        font-size: 13px;
        color: var(--crm-text-secondary);
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .sffc-crm-post-recruiter-meta span {
        display: flex;
        align-items: center;
    }

    .sffc-crm-post-content {
        padding: 0 16px 14px;
    }

    .sffc-crm-post-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--crm-text);
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .sffc-crm-post-company {
        font-size: 14px;
        color: var(--crm-text-secondary);
        margin-bottom: 4px;
    }

    .sffc-crm-post-location {
        font-size: 13px;
        color: var(--crm-text-muted);
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .sffc-crm-post-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 16px 14px;
    }

    .sffc-crm-post-tag {
        padding: 6px 12px;
        background: var(--crm-gray-100);
        color: var(--crm-gray-600);
        border-radius: 16px;
        font-size: 12px;
        font-weight: 500;
    }

    /* Post Actions - LinkedIn style engagement bar */
    .sffc-crm-post-actions {
        display: flex;
        border-top: 1px solid var(--crm-border);
        padding: 4px 8px;
    }

    .sffc-crm-post-action {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 12px 8px;
        background: none;
        border: none;
        color: var(--crm-gray-600);
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        border-radius: 8px;
        transition: all 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .sffc-crm-post-action svg {
        width: 20px;
        height: 20px;
    }

    .sffc-crm-post-action:active {
        background: var(--crm-gray-100);
        transform: scale(0.95);
    }

    .sffc-crm-post-action.saved {
        color: var(--crm-primary);
    }

    /* Recruiter Card - Mobile */
    .sffc-crm-recruiter-card {
        margin: 0 -12px 8px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 16px;
        background: #fff;
        border-bottom: 1px solid var(--crm-border);
    }

    .sffc-crm-recruiter-card-header {
        display: flex;
        align-items: flex-start;
        gap: 14px;
    }

    .sffc-crm-recruiter-avatar-lg {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--crm-primary), var(--crm-primary-hover));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        font-weight: 600;
        color: #fff;
        flex-shrink: 0;
    }

    .sffc-crm-recruiter-details {
        flex: 1;
        min-width: 0;
    }

    .sffc-crm-recruiter-name-lg {
        font-size: 17px;
        font-weight: 600;
        color: var(--crm-text);
        margin-bottom: 4px;
    }

    .sffc-crm-recruiter-title-lg {
        font-size: 14px;
        color: var(--crm-text-secondary);
        margin-bottom: 2px;
    }

    .sffc-crm-recruiter-company-lg {
        font-size: 13px;
        color: var(--crm-text-muted);
    }

    /* Action Buttons - Full width on mobile */
    .sffc-crm-recruiter-actions {
        display: flex;
        gap: 10px;
        margin-top: 14px;
    }

    .sffc-crm-recruiter-action-btn {
        flex: 1;
        padding: 12px 16px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.2s ease;
        cursor: pointer;
        border: none;
    }

    .sffc-crm-recruiter-action-btn svg {
        width: 18px;
        height: 18px;
    }

    .sffc-crm-recruiter-action-btn.primary {
        background: var(--crm-primary);
        color: #fff;
    }

    .sffc-crm-recruiter-action-btn.primary:active {
        background: var(--crm-primary-hover);
        transform: scale(0.98);
    }

    .sffc-crm-recruiter-action-btn.secondary {
        background: #fff;
        color: var(--crm-primary);
        border: 2px solid var(--crm-primary);
    }

    .sffc-crm-recruiter-action-btn.secondary:active {
        background: var(--crm-primary-light);
        transform: scale(0.98);
    }

    /* Floating Action Button */
    .sffc-crm-fab {
        position: fixed;
        bottom: 80px;
        right: 16px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--crm-primary);
        color: var(--crm-white);
        border: none;
        box-shadow: var(--crm-shadow-lg);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 99;
        transition: all 0.2s ease;
    }

    .sffc-crm-fab svg {
        width: 24px;
        height: 24px;
    }

    .sffc-crm-fab:active {
        transform: scale(0.95);
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    }

    /* Pull to refresh indicator */
    .sffc-crm-pull-indicator {
        display: none;
        align-items: center;
        justify-content: center;
        padding: 16px;
        color: var(--crm-gray-500);
    }

    .sffc-crm-pull-indicator.active {
        display: flex;
    }

    .sffc-crm-pull-indicator svg {
        width: 24px;
        height: 24px;
        animation: spin 1s linear infinite;
    }

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

    /* Empty state mobile */
    .sffc-crm-empty-state {
        padding: 40px 20px;
        text-align: center;
    }

    .sffc-crm-empty-icon {
        width: 64px;
        height: 64px;
        margin: 0 auto 16px;
        color: var(--crm-gray-300);
    }

    .sffc-crm-empty-title {
        font-size: 18px;
        font-weight: 600;
        color: var(--crm-text);
        margin-bottom: 8px;
    }

    .sffc-crm-empty-text {
        font-size: 14px;
        color: var(--crm-text-secondary);
        margin-bottom: 20px;
    }

    /* Mobile slide-out panel */
    .sffc-crm-mobile-panel {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100%;
        background: #fff;
        z-index: 1001;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sffc-crm-mobile-panel.open {
        right: 0;
    }

    .sffc-crm-mobile-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
        border-bottom: 1px solid var(--crm-border);
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 10;
    }

    .sffc-crm-mobile-panel-title {
        font-size: 18px;
        font-weight: 600;
        color: var(--crm-text);
    }

    .sffc-crm-mobile-panel-close {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--crm-gray-100);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .sffc-crm-mobile-panel-close svg {
        width: 20px;
        height: 20px;
        color: var(--crm-gray-600);
    }

    .sffc-crm-mobile-panel-body {
        padding: 16px;
    }

    /* Mobile overlay */
    .sffc-crm-mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .sffc-crm-mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Swipe hint animation */
    .sffc-crm-swipe-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px;
        color: var(--crm-gray-400);
        font-size: 13px;
    }

    .sffc-crm-swipe-hint svg {
        width: 16px;
        height: 16px;
        animation: swipeHint 2s ease-in-out infinite;
    }

    @keyframes swipeHint {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(-10px); }
    }

    /* Quick action sheet */
    .sffc-crm-action-sheet {
        position: fixed;
        bottom: -100%;
        left: 0;
        right: 0;
        background: #fff;
        border-radius: 20px 20px 0 0;
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
        z-index: 1002;
        transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sffc-crm-action-sheet.open {
        bottom: 0;
    }

    .sffc-crm-action-sheet-handle {
        width: 36px;
        height: 4px;
        background: var(--crm-gray-300);
        border-radius: 2px;
        margin: 8px auto 16px;
    }

    .sffc-crm-action-sheet-item {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px 20px;
        color: var(--crm-text);
        font-size: 16px;
        font-weight: 500;
        background: none;
        border: none;
        width: 100%;
        text-align: left;
        cursor: pointer;
        transition: background 0.15s ease;
    }

    .sffc-crm-action-sheet-item:active {
        background: var(--crm-gray-100);
    }

    .sffc-crm-action-sheet-item svg {
        width: 24px;
        height: 24px;
        color: var(--crm-gray-500);
    }

    .sffc-crm-action-sheet-item.destructive {
        color: #dc2626;
    }

    .sffc-crm-action-sheet-item.destructive svg {
        color: #dc2626;
    }

    .sffc-crm-action-sheet-cancel {
        margin-top: 8px;
        padding-top: 16px;
        border-top: 8px solid var(--crm-gray-100);
    }

    /* Stats cards - horizontal scroll on mobile */
    .sffc-crm-stats-row {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 12px 16px;
        margin: 0 -12px;
    }

    .sffc-crm-stats-row::-webkit-scrollbar {
        display: none;
    }

    .sffc-crm-stat-card {
        flex: 0 0 140px;
        padding: 16px;
        background: #fff;
        border-radius: 12px;
        border: 1px solid var(--crm-border);
    }

    .sffc-crm-stat-value {
        font-size: 24px;
        font-weight: 700;
        color: var(--crm-primary);
        margin-bottom: 4px;
    }

    .sffc-crm-stat-label {
        font-size: 12px;
        color: var(--crm-text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .sffc-crm-bottom-nav-item {
        padding: 8px 10px;
        font-size: 9px;
    }

    .sffc-crm-bottom-nav-item svg {
        width: 22px;
        height: 22px;
    }

    .sffc-crm-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .sffc-crm-post-action span {
        display: none;
    }

    .sffc-crm-recruiter-action-btn span {
        display: none;
    }

    .sffc-crm-fab {
        width: 50px;
        height: 50px;
        bottom: 74px;
    }
}

/* Pull to refresh indicator */
.sffc-crm-pulling::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border: 2px solid var(--crm-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: sffc-crm-spin 0.8s linear infinite;
}

@keyframes sffc-crm-spin {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

/* Body lock when panel/overlay is open */
body.sffc-crm-panel-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* =========================================================================
   EXPERT REACH OUT STYLES
   ========================================================================= */

/* Expert Reach Out Button */
.sffc-crm-expert-reach-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #0d353e 0%, #1a5c6b 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sffc-crm-expert-reach-btn:hover {
    background: linear-gradient(135deg, #1a5c6b 0%, #247a8b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 53, 62, 0.25);
}

.sffc-crm-expert-reach-btn:active {
    transform: translateY(0);
}

.sffc-crm-expert-reach-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.sffc-crm-expert-reach-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Expert Reach Out Button - Pending state */
.sffc-crm-expert-reach-btn.is-pending {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.sffc-crm-expert-reach-btn.is-pending:hover {
    background: #f1f5f9;
    transform: none;
    box-shadow: none;
}

/* Expert Reach Out Button - Compact variant */
.sffc-crm-expert-reach-btn.compact {
    padding: 6px 10px;
    font-size: 12px;
}

.sffc-crm-expert-reach-btn.compact svg {
    width: 14px;
    height: 14px;
}

/* Expert Reach Out Modal */
.sffc-crm-expert-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sffc-crm-expert-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.sffc-crm-expert-modal {
    background: #ffffff;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.2s ease;
}

.sffc-crm-expert-modal-overlay.is-active .sffc-crm-expert-modal {
    transform: translateY(0) scale(1);
}

.sffc-crm-expert-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sffc-crm-expert-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.sffc-crm-expert-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.sffc-crm-expert-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.sffc-crm-expert-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.sffc-crm-expert-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Expert Modal Form Elements */
.sffc-crm-expert-field {
    margin-bottom: 20px;
}

.sffc-crm-expert-field:last-child {
    margin-bottom: 0;
}

.sffc-crm-expert-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.sffc-crm-expert-field select,
.sffc-crm-expert-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sffc-crm-expert-field select:focus,
.sffc-crm-expert-field textarea:focus {
    outline: none;
    border-color: var(--crm-primary);
    box-shadow: 0 0 0 3px rgba(13, 53, 62, 0.1);
}

.sffc-crm-expert-field textarea {
    min-height: 100px;
    resize: vertical;
}

.sffc-crm-expert-field-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* Expert Modal Checkbox */
.sffc-crm-expert-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.sffc-crm-expert-checkbox input {
    margin: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--crm-primary);
}

.sffc-crm-expert-checkbox-label {
    font-size: 14px;
    color: #374151;
}

.sffc-crm-expert-checkbox-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

/* Expert Modal Recruiter Preview */
.sffc-crm-expert-recruiter-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sffc-crm-expert-recruiter-preview img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.sffc-crm-expert-recruiter-info h4 {
    margin: 0 0 2px 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.sffc-crm-expert-recruiter-info p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* Expert Modal Actions */
.sffc-crm-expert-modal-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sffc-crm-expert-modal-btn.primary {
    background: linear-gradient(135deg, #0d353e 0%, #1a5c6b 100%);
    color: #ffffff;
    border: none;
}

.sffc-crm-expert-modal-btn.primary:hover {
    background: linear-gradient(135deg, #1a5c6b 0%, #247a8b 100%);
}

.sffc-crm-expert-modal-btn.secondary {
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.sffc-crm-expert-modal-btn.secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.sffc-crm-expert-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Expert Outreach Tab Panel */
.sffc-crm-expert-outreach-panel {
    padding: 20px;
}

.sffc-crm-expert-outreach-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sffc-crm-expert-outreach-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

/* Expert Outreach Stats */
.sffc-crm-expert-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.sffc-crm-expert-stat {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.sffc-crm-expert-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--crm-primary);
    margin-bottom: 4px;
}

.sffc-crm-expert-stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Expert Outreach Request List */
.sffc-crm-expert-requests {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sffc-crm-expert-request {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.2s ease;
}

.sffc-crm-expert-request:hover {
    border-color: #d1d5db;
}

.sffc-crm-expert-request-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sffc-crm-expert-request-info {
    flex: 1;
    min-width: 0;
}

.sffc-crm-expert-request-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sffc-crm-expert-request-meta {
    font-size: 12px;
    color: #6b7280;
}

/* Expert Request Status Badge */
.sffc-crm-expert-request-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.sffc-crm-expert-request-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.sffc-crm-expert-request-status.in_progress {
    background: #dbeafe;
    color: #1e40af;
}

.sffc-crm-expert-request-status.sent {
    background: #d1fae5;
    color: #065f46;
}

.sffc-crm-expert-request-status.replied {
    background: #e0e7ff;
    color: #3730a3;
}

.sffc-crm-expert-request-status.failed {
    background: #fee2e2;
    color: #991b1b;
}

.sffc-crm-expert-request-status.cancelled {
    background: #f3f4f6;
    color: #6b7280;
}

/* Expert Request Cancel Button */
.sffc-crm-expert-request-cancel {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sffc-crm-expert-request-cancel:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Expert Outreach Empty State */
.sffc-crm-expert-empty {
    text-align: center;
    padding: 40px 20px;
}

.sffc-crm-expert-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #d1d5db;
}

.sffc-crm-expert-empty h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.sffc-crm-expert-empty p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* Auto Outreach Settings Card */
.sffc-crm-auto-outreach-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.sffc-crm-auto-outreach-card.is-disabled {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.sffc-crm-auto-outreach-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sffc-crm-auto-outreach-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sffc-crm-auto-outreach-card.is-disabled .sffc-crm-auto-outreach-header h4 {
    color: #374151;
}

.sffc-crm-auto-outreach-description {
    font-size: 13px;
    color: #047857;
    margin-bottom: 16px;
}

.sffc-crm-auto-outreach-card.is-disabled .sffc-crm-auto-outreach-description {
    color: #6b7280;
}

/* Auto Outreach Toggle */
.sffc-crm-auto-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sffc-crm-auto-toggle.is-active {
    background: #10b981;
}

.sffc-crm-auto-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sffc-crm-auto-toggle.is-active::after {
    transform: translateX(20px);
}

/* Auto Outreach Configure Button */
.sffc-crm-auto-configure-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sffc-crm-auto-configure-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Custom Expert Request Card */
.sffc-crm-custom-request-card {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 1px solid #5eead4;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.sffc-crm-custom-request-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.sffc-crm-custom-request-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--crm-primary, #008080) 0%, #0d9488 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.sffc-crm-custom-request-header h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #0f766e;
}

.sffc-crm-custom-request-header p {
    margin: 0;
    font-size: 13px;
    color: #0d9488;
    line-height: 1.4;
}

.sffc-crm-custom-request-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--crm-primary, #008080) 0%, #0d9488 100%);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.sffc-crm-custom-request-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

.sffc-crm-custom-request-btn:active {
    transform: translateY(0);
}

/* Custom Request Modal Enhancements */
.sffc-crm-custom-request-modal {
    max-width: 580px;
    max-height: 90vh;
}

.sffc-crm-custom-request-modal .sffc-crm-expert-modal-body {
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

.sffc-crm-custom-request-intro {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.sffc-crm-custom-request-intro p {
    margin: 0;
    font-size: 13px;
    color: #0d9488;
    line-height: 1.5;
}

/* Checkbox Group for Multi-Select */
.sffc-crm-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sffc-crm-checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #374151;
}

.sffc-crm-checkbox-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.sffc-crm-checkbox-item input {
    display: none;
}

.sffc-crm-checkbox-item:has(input:checked) {
    background: #f0fdfa;
    border-color: var(--crm-primary, #008080);
    color: #0f766e;
}

.sffc-crm-checkbox-item:has(input:checked)::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

/* Text Input in Expert Modal */
.sffc-crm-expert-field input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.sffc-crm-expert-field input[type="text"]:focus {
    outline: none;
    border-color: var(--crm-primary, #008080);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

/* CV Upload Component */
.sffc-crm-cv-upload-wrapper {
    margin-top: 8px;
}

.sffc-crm-cv-upload-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
}

.sffc-crm-cv-upload-dropzone:hover {
    border-color: var(--crm-primary, #008080);
    background: #f0fdfa;
}

.sffc-crm-cv-upload-dropzone.is-dragover {
    border-color: var(--crm-primary, #008080);
    background: #ccfbf1;
    border-style: solid;
}

.sffc-crm-cv-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sffc-crm-cv-upload-content svg {
    color: #9ca3af;
}

.sffc-crm-cv-upload-dropzone:hover .sffc-crm-cv-upload-content svg {
    color: var(--crm-primary, #008080);
}

.sffc-crm-cv-upload-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sffc-crm-cv-upload-primary {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.sffc-crm-cv-upload-secondary {
    font-size: 12px;
    color: #9ca3af;
}

.sffc-crm-cv-upload-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f0fdfa;
    border: 1px solid #5eead4;
    border-radius: 8px;
    margin-top: 8px;
}

.sffc-crm-cv-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sffc-crm-cv-file-info svg {
    color: var(--crm-primary, #008080);
}

.sffc-crm-cv-filename {
    font-size: 14px;
    font-weight: 500;
    color: #0f766e;
}

.sffc-crm-cv-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sffc-crm-cv-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

.sffc-crm-expert-field input[type="text"]::placeholder {
    color: #9ca3af;
}

/* Required field indicator */
.sffc-crm-expert-field .required {
    color: #dc2626;
    font-weight: 600;
}

/* Expert Outreach Mobile Optimization */
@media (max-width: 640px) {
    .sffc-crm-expert-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .sffc-crm-expert-modal-overlay {
        padding: 0;
    }

    .sffc-crm-expert-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .sffc-crm-expert-outreach-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sffc-crm-expert-request {
        flex-wrap: wrap;
    }

    .sffc-crm-expert-request-info {
        flex: 1 1 calc(100% - 56px);
    }

    .sffc-crm-expert-request-status {
        order: 3;
        margin-left: 56px;
    }
}

@media (max-width: 480px) {
    .sffc-crm-expert-modal-header {
        padding: 16px 20px;
    }

    .sffc-crm-expert-modal-body {
        padding: 20px;
    }

    .sffc-crm-expert-modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }

    .sffc-crm-expert-modal-btn {
        width: 100%;
        justify-content: center;
    }

    .sffc-crm-expert-reach-btn span {
        display: none;
    }

    .sffc-crm-expert-reach-btn {
        padding: 8px 10px;
    }
}

/* =========================================================================
   PHASE 5: MODAL & DETAIL VIEW REFINEMENTS
   ========================================================================= */

/* Enhanced Modal Container */
.sffc-crm-modal-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    border: none;
}

/* Modal Header with Title */
.sffc-crm-modal-header-full {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
    border-radius: 12px 12px 0 0;
}

.sffc-crm-modal-header-full h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

/* Key Info Card - Pastel Green Gradient */
.sffc-crm-detail-key-info {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.sffc-crm-detail-key-info h4 {
    font-size: 12px;
    font-weight: 600;
    color: #065f46;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.sffc-crm-detail-key-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.sffc-crm-detail-key-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sffc-crm-detail-key-label {
    font-size: 11px;
    color: #047857;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sffc-crm-detail-key-value {
    font-size: 14px;
    font-weight: 600;
    color: #065f46;
}

/* About Section - Pastel Blue Gradient */
.sffc-crm-detail-about {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.sffc-crm-detail-about h4 {
    font-size: 12px;
    font-weight: 600;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
}

.sffc-crm-detail-about p {
    font-size: 14px;
    line-height: 1.6;
    color: #1e3a8a;
    margin: 0;
}

/* Skills Section - Pastel Teal Gradient */
.sffc-crm-detail-skills-enhanced {
    background: linear-gradient(135deg, #e8f4f8 0%, #d0ebf1 100%);
    border: 1px solid #7ec8d4;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.sffc-crm-detail-skills-enhanced h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--crm-senna-primary, #0d353e);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.sffc-crm-detail-skills-enhanced .sffc-crm-skill-tag {
    background: rgba(13, 53, 62, 0.1);
    color: var(--crm-senna-primary, #0d353e);
    border: 1px solid rgba(13, 53, 62, 0.2);
}

/* Activity Section - Pastel Amber Gradient */
.sffc-crm-detail-activity-enhanced {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.sffc-crm-detail-activity-enhanced h4 {
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

/* Contact Info Card - Pastel Teal */
.sffc-crm-detail-contact-card {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 1px solid #5eead4;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.sffc-crm-detail-contact-card h4 {
    font-size: 12px;
    font-weight: 600;
    color: #0f766e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.sffc-crm-detail-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(94, 234, 212, 0.3);
}

.sffc-crm-detail-contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sffc-crm-detail-contact-item svg {
    color: #0d9488;
    flex-shrink: 0;
}

.sffc-crm-detail-contact-item span {
    font-size: 14px;
    color: #134e4a;
}

.sffc-crm-detail-contact-item a {
    font-size: 14px;
    color: #0d9488;
    text-decoration: none;
}

.sffc-crm-detail-contact-item a:hover {
    text-decoration: underline;
}

/* Sticky Action Bar at Bottom of Modal */
.sffc-crm-detail-actions-sticky {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
    margin: 0 -24px -24px -24px;
    display: flex;
    gap: 12px;
    z-index: 10;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.sffc-crm-detail-actions-sticky .sffc-crm-btn {
    flex: 1;
}

.sffc-crm-detail-actions-sticky .sffc-crm-btn-icon {
    flex: 0 0 auto;
}

/* Section Headers with Accent Bar */
.sffc-crm-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.sffc-crm-section-header::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--crm-primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.sffc-crm-section-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

/* Enhanced Post Detail Sections */
.sffc-crm-post-detail-enhanced .sffc-crm-detail-role {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.sffc-crm-post-detail-enhanced .sffc-crm-detail-meta {
    background: #fafafa;
    border-radius: 8px;
    padding: 12px 16px;
    border: none;
    margin-bottom: 20px;
}

.sffc-crm-post-detail-enhanced .sffc-crm-detail-meta-item {
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* Enhanced Recruiter Detail */
.sffc-crm-recruiter-detail-enhanced .sffc-crm-detail-recruiter-header {
    background: linear-gradient(135deg, #0d353e 0%, #1a5c6b 100%);
    color: #ffffff;
    margin: -24px -24px 24px -24px;
    padding: 32px 24px;
    border-radius: 12px 12px 0 0;
}

.sffc-crm-recruiter-detail-enhanced .sffc-crm-detail-recruiter-header h2 {
    color: #ffffff;
}

.sffc-crm-recruiter-detail-enhanced .sffc-crm-detail-recruiter-header .sffc-crm-detail-title {
    color: rgba(255, 255, 255, 0.9);
}

.sffc-crm-recruiter-detail-enhanced .sffc-crm-detail-recruiter-header .sffc-crm-detail-firm {
    color: #a7f3d0;
}

/* Intelligence Section Card */
.sffc-crm-intelligence-section {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border: 1px solid #d8b4fe;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.sffc-crm-intelligence-section h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--crm-senna-primary, #0d353e);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
}

.sffc-crm-intelligence-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.sffc-crm-intel-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.sffc-crm-intel-card.sffc-crm-intel-wide {
    grid-column: span 2;
    text-align: left;
}

.sffc-crm-intel-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--crm-senna-primary, #0d353e);
    margin-bottom: 4px;
}

.sffc-crm-intel-label {
    display: block;
    font-size: 11px;
    color: #6b21a8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sffc-crm-intel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.sffc-crm-intel-tags .sffc-crm-tag {
    background: rgba(13, 53, 62, 0.1);
    color: var(--crm-senna-primary, #0d353e);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
}

/* Notes Section Enhancement */
.sffc-crm-notes-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.sffc-crm-notes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sffc-crm-notes-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.sffc-crm-notes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sffc-crm-note-item {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid #e5e7eb;
}

.sffc-crm-note-item.is-pinned {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.sffc-crm-note-content {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    margin-bottom: 8px;
}

.sffc-crm-note-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sffc-crm-note-date {
    font-size: 12px;
    color: #9ca3af;
}

.sffc-crm-note-actions-inline {
    display: flex;
    gap: 8px;
}

.sffc-crm-note-actions-inline button {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #9ca3af;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.sffc-crm-note-actions-inline button:hover {
    background: #f3f4f6;
    color: #374151;
}

.sffc-crm-note-actions-inline .sffc-crm-note-pin.is-pinned {
    color: #f59e0b;
}

.sffc-crm-no-notes {
    font-size: 14px;
    color: #9ca3af;
    text-align: center;
    padding: 20px;
    margin: 0;
}

/* Activity Timeline Enhancement */
.sffc-crm-activity-section {
    margin-bottom: 16px;
}

.sffc-crm-timeline {
    position: relative;
    padding-left: 24px;
}

.sffc-crm-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.sffc-crm-timeline-item {
    position: relative;
    padding-bottom: 16px;
}

.sffc-crm-timeline-item:last-child {
    padding-bottom: 0;
}

.sffc-crm-timeline-dot {
    position: absolute;
    left: -20px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 2px solid var(--crm-primary);
    border-radius: 50%;
}

.sffc-crm-timeline-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sffc-crm-timeline-action {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
}

.sffc-crm-timeline-details {
    font-size: 13px;
    color: #6b7280;
}

.sffc-crm-timeline-date {
    font-size: 12px;
    color: #9ca3af;
}

/* Mobile Detail View Optimizations */
@media (max-width: 640px) {
    .sffc-crm-detail-key-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sffc-crm-intelligence-grid {
        grid-template-columns: 1fr;
    }

    .sffc-crm-intel-card.sffc-crm-intel-wide {
        grid-column: span 1;
    }

    .sffc-crm-detail-actions-sticky {
        flex-wrap: wrap;
        padding: 12px 16px;
        margin: 0 -24px -24px -24px;
    }

    .sffc-crm-detail-actions-sticky .sffc-crm-btn {
        flex: 1 1 calc(50% - 6px);
    }

    .sffc-crm-recruiter-detail-enhanced .sffc-crm-detail-recruiter-header {
        margin: -24px -24px 20px -24px;
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .sffc-crm-detail-key-info-grid {
        grid-template-columns: 1fr;
    }

    .sffc-crm-note-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .sffc-crm-section-header h4 {
        font-size: 13px;
    }
}

/* ==========================================================================
   PHASE 6: MOBILE OPTIMIZATION
   Comprehensive mobile-first refinements for touch devices
   ========================================================================== */

/* --------------------------------------------------------------------------
   6.1 Touch-Friendly Sizing
   Minimum 44x44px tap targets, adequate padding and spacing
   -------------------------------------------------------------------------- */

/* Base touch target sizing */
@media (max-width: 768px) {
    /* Ensure all buttons meet minimum touch target size */
    .sffc-crm-btn,
    .sffc-crm-tab,
    .sffc-crm-filter-btn,
    .sffc-crm-action-btn,
    .sffc-crm-modal-close,
    .sffc-crm-dropdown-trigger,
    .sffc-crm-icon-btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Button padding for comfortable touch */
    .sffc-crm-btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .sffc-crm-btn-sm {
        padding: 10px 16px;
        min-height: 40px;
        font-size: 14px;
    }

    .sffc-crm-btn-lg {
        padding: 14px 24px;
        min-height: 48px;
        font-size: 16px;
    }

    /* Icon-only buttons */
    .sffc-crm-icon-btn,
    .sffc-crm-action-icon {
        width: 44px;
        height: 44px;
        padding: 10px;
    }

    /* Form inputs */
    .sffc-crm-input,
    .sffc-crm-select,
    .sffc-crm-textarea,
    .sffc-crm-form-control {
        min-height: 44px;
        padding: 12px 14px;
        font-size: 16px; /* Prevents iOS zoom */
    }

    /* Checkboxes and radio buttons */
    .sffc-crm-checkbox,
    .sffc-crm-radio {
        width: 22px;
        height: 22px;
    }

    .sffc-crm-checkbox-label,
    .sffc-crm-radio-label {
        padding: 12px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* Toggle switches */
    .sffc-crm-toggle {
        width: 52px;
        height: 28px;
    }

    .sffc-crm-toggle-slider::before {
        width: 22px;
        height: 22px;
    }

    /* Spacing between interactive elements */
    .sffc-crm-btn + .sffc-crm-btn,
    .sffc-crm-action-btn + .sffc-crm-action-btn {
        margin-left: 8px;
    }

    /* List items as touch targets */
    .sffc-crm-post-row,
    .sffc-crm-recruiter-row,
    .sffc-crm-outreach-item,
    .sffc-crm-pipeline-card {
        padding: 14px;
        min-height: 60px;
    }

    /* Dropdown items */
    .sffc-crm-dropdown-item {
        padding: 14px 16px;
        min-height: 44px;
    }
}

/* --------------------------------------------------------------------------
   6.2 Mobile Bottom Tab Navigation
   Fixed bottom navigation for primary tabs on mobile
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    /* Main container adjustment for bottom nav */
    .sffc-crm-container {
        padding-bottom: 70px; /* Space for fixed bottom nav */
    }

    /* Fixed bottom tab navigation */
    .sffc-crm-tabs {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid var(--crm-border);
        display: flex;
        justify-content: space-around;
        align-items: stretch;
        padding: 0;
        margin: 0;
        z-index: 1000;
        gap: 0;
        border-radius: 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        overflow-x: visible;
        flex-wrap: nowrap;
    }

    /* Tab items in bottom nav */
    .sffc-crm-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 4px 10px;
        min-height: 56px;
        border-radius: 0;
        background: transparent;
        border: none;
        gap: 4px;
        font-size: 10px;
        font-weight: 500;
        color: var(--crm-gray-500);
        text-align: center;
        white-space: nowrap;
    }

    .sffc-crm-tab svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    /* Active tab styling */
    .sffc-crm-tab.is-active {
        color: var(--crm-primary);
        background: transparent;
    }

    .sffc-crm-tab.is-active svg {
        color: var(--crm-primary);
    }

    /* Tab badges */
    .sffc-crm-tab-badge {
        position: absolute;
        top: 4px;
        right: 50%;
        transform: translateX(14px);
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        font-size: 10px;
        line-height: 18px;
        border-radius: 9px;
        background: var(--crm-error);
        color: #fff;
    }

    /* Show text labels in bottom nav */
.sffc-crm-tab span:not(.sffc-crm-tab-badge) {
        display: block;
    }

    /* Tab text truncation for long labels */
    .sffc-crm-tab-label {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* --------------------------------------------------------------------------
   7. Membership Plan Modal (shared with newsroom)
   -------------------------------------------------------------------------- */

.sffc-plan-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 53, 62, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1200;
}

.sffc-plan-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.sffc-plan-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.sffc-plan-modal__dialog {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    width: min(960px, 92vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 35px 120px rgba(13, 53, 62, 0.35);
    overflow: hidden;
    z-index: 1;
}

.sffc-plan-modal__header {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(13, 53, 62, 0.08);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.sffc-plan-modal__header h3 {
    margin: 0;
    font-size: 22px;
    color: var(--crm-dark, #0D353E);
}

.sffc-plan-modal__header p {
    margin: 6px 0 0;
    color: rgba(13, 53, 62, 0.75);
    font-size: 15px;
}

.sffc-plan-close {
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: rgba(13, 53, 62, 0.45);
    cursor: pointer;
}

.sffc-plan-modal__body {
    padding: 32px;
    overflow-y: auto;
}

.sffc-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.sffc-plan-card {
    border: 1px solid rgba(13, 53, 62, 0.12);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sffc-plan-card__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sffc-plan-card.is-active,
.sffc-plan-card:hover {
    border-color: var(--crm-primary, #0D353E);
    box-shadow: 0 18px 50px rgba(13, 53, 62, 0.18);
}

.sffc-plan-card__price {
    font-size: 24px;
    font-weight: 700;
    color: var(--crm-dark, #0D353E);
}

.sffc-plan-card__tagline {
    margin: 0;
    font-size: 14px;
    color: rgba(13, 53, 62, 0.75);
}

.sffc-plan-card__audience {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(13, 53, 62, 0.55);
}

.sffc-plan-card__cycle {
    font-size: 13px;
    color: rgba(13, 53, 62, 0.65);
    margin-left: 6px;
}

.sffc-plan-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: rgba(13, 53, 62, 0.8);
    font-size: 14px;
}

.sffc-plan-select {
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    background: var(--crm-primary, #0D353E);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sffc-plan-select:hover {
    background: #124d59;
    transform: translateY(-1px);
}

.sffc-plan-checkout {
    margin-top: 32px;
    padding: 24px;
    border: 1px dashed rgba(13, 53, 62, 0.2);
    border-radius: 16px;
    background: rgba(13, 53, 62, 0.03);
}

.sffc-plan-form {
    margin-top: 20px;
}

.sffc-plan-external {
    margin-top: 20px;
}

.sffc-plan-external a {
    color: var(--crm-primary, #0D353E);
    font-weight: 600;
    text-decoration: none;
}

body.sffc-plan-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .sffc-plan-modal__dialog {
        width: 95vw;
        max-height: 95vh;
        border-radius: 14px;
    }

    .sffc-plan-modal__body {
        padding: 20px;
    }

    .sffc-plan-grid {
        grid-template-columns: 1fr;
    }
}

/* Smaller mobile - even more compact */
@media (max-width: 480px) {
    .sffc-crm-tabs {
        padding: 0;
    }

    .sffc-crm-tab {
        padding: 6px 2px 8px;
        min-height: 52px;
        font-size: 9px;
    }

    .sffc-crm-tab svg {
        width: 20px;
        height: 20px;
    }
}

/* --------------------------------------------------------------------------
   6.3 Full-Screen Mobile Modals
   Modals take up entire screen on mobile devices
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
    /* Full-screen modal on mobile */
    .sffc-crm-modal {
        padding: 0;
        align-items: stretch;
    }

    .sffc-crm-modal-overlay {
        background: rgba(0, 0, 0, 0.3);
    }

    .sffc-crm-modal-content {
        position: fixed;
        inset: 0;
        border-radius: 0;
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        margin: 0;
        display: flex;
        flex-direction: column;
        transform: translateY(100%);
    }

    .sffc-crm-modal.is-visible .sffc-crm-modal-content {
        transform: translateY(0);
    }

    /* Modal header - sticky top */
    .sffc-crm-modal-header {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 16px;
        border-bottom: 1px solid var(--crm-border);
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .sffc-crm-modal-close {
        position: relative;
        top: auto;
        right: auto;
        width: 40px;
        height: 40px;
    }

    /* Modal body - scrollable */
    .sffc-crm-modal-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px;
        padding-bottom: 80px; /* Space for sticky footer */
    }

    /* Modal footer - sticky bottom */
    .sffc-crm-modal-footer {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 16px;
        border-top: 1px solid var(--crm-border);
        border-radius: 0;
        z-index: 20;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    }

    /* Full-width buttons in modal footer */
    .sffc-crm-modal-footer .sffc-crm-btn {
        flex: 1;
    }

    /* Detail modals */
    .sffc-crm-post-detail,
    .sffc-crm-recruiter-detail,
    .sffc-crm-contact-detail {
        padding: 16px;
        padding-bottom: 100px;
    }

    /* Post detail header */
    .sffc-crm-detail-header {
        margin: -16px -16px 16px -16px;
        padding: 16px;
    }

    /* Recruiter detail enhanced header */
    .sffc-crm-recruiter-detail-enhanced .sffc-crm-detail-recruiter-header {
        margin: -16px -16px 16px -16px;
        padding: 20px 16px;
    }
}

/* --------------------------------------------------------------------------
   6.4 Mobile Component Refinements
   Specific adjustments for all CRM components
   -------------------------------------------------------------------------- */

/* --- Header & Search --- */
@media (max-width: 768px) {
    .sffc-crm-header {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .sffc-crm-search-wrapper {
        width: 100%;
    }

    .sffc-crm-search-input {
        width: 100%;
    }

    .sffc-crm-header-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .sffc-crm-header-actions .sffc-crm-btn {
        flex: 1;
    }
}

/* --- Filters --- */
@media (max-width: 768px) {
    .sffc-crm-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
        margin-bottom: 16px;
    }

    .sffc-crm-filter-group {
        flex: 1 1 calc(50% - 4px);
        min-width: 140px;
    }

    .sffc-crm-filter-select {
        width: 100%;
        min-height: 44px;
    }

    /* Collapsible filters on mobile */
    .sffc-crm-filters-toggle {
        display: flex;
        width: 100%;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: var(--crm-bg-subtle);
        border: 1px solid var(--crm-border);
        border-radius: 8px;
        padding: 10px 16px;
        font-size: 14px;
        font-weight: 500;
        color: var(--crm-gray-600);
    }

    .sffc-crm-filters-collapsible {
        display: none;
    }

    .sffc-crm-filters-collapsible.is-open {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
    }
}

/* --- Feed List --- */
@media (max-width: 768px) {
    .sffc-crm-feed-list {
        margin: 0 -12px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .sffc-crm-post-row {
        padding: 14px 12px;
        gap: 12px;
    }

    .sffc-crm-post-info {
        gap: 6px;
    }

    .sffc-crm-post-title {
        font-size: 14px;
        line-height: 1.4;
    }

    .sffc-crm-post-meta {
        font-size: 12px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .sffc-crm-post-tags {
        display: none;
    }

    .sffc-crm-post-actions {
        flex-direction: column;
        gap: 8px;
    }

    .sffc-crm-post-actions .sffc-crm-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    /* Swipe hint indicator */
    .sffc-crm-post-row::after {
        content: '';
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        border-right: 2px solid var(--crm-gray-300);
        border-bottom: 2px solid var(--crm-gray-300);
        transform: translateY(-50%) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .sffc-crm-post-row {
        padding: 12px;
    }

    .sffc-crm-post-title {
        font-size: 13px;
    }

    .sffc-crm-post-meta span {
        display: none;
    }

    .sffc-crm-post-meta span:first-child,
    .sffc-crm-post-meta span:nth-child(2) {
        display: inline;
    }
}

/* --- Pipeline --- */
@media (max-width: 768px) {
    .sffc-crm-pipeline {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .sffc-crm-pipeline-columns {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding: 0 12px 16px;
        margin: 0 -12px;
    }

    .sffc-crm-pipeline-column {
        flex: 0 0 280px;
        scroll-snap-align: start;
        max-height: none;
    }

    .sffc-crm-pipeline-column-header {
        padding: 12px;
    }

    .sffc-crm-pipeline-cards {
        padding: 12px;
        max-height: 400px;
        overflow-y: auto;
    }

    .sffc-crm-pipeline-card {
        padding: 12px;
    }

    /* Pipeline column indicator dots */
    .sffc-crm-pipeline-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        padding: 8px 0;
    }

    .sffc-crm-pipeline-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--crm-gray-300);
    }

    .sffc-crm-pipeline-dot.is-active {
        background: var(--crm-primary);
    }
}

/* --- Recruiters Grid --- */
@media (max-width: 768px) {
    .sffc-crm-recruiters-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sffc-crm-recruiter-card {
        padding: 14px;
    }

    .sffc-crm-recruiter-avatar {
        width: 48px;
        height: 48px;
    }

    .sffc-crm-recruiter-info h3 {
        font-size: 15px;
    }

    .sffc-crm-recruiter-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .sffc-crm-recruiter-actions .sffc-crm-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }
}

/* --- Expert Outreach Panel --- */
@media (max-width: 768px) {
    .sffc-crm-expert-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .sffc-crm-expert-stat-card {
        padding: 14px;
    }

    .sffc-crm-expert-stat-card .value {
        font-size: 22px;
    }

    .sffc-crm-expert-stat-card .label {
        font-size: 11px;
    }

    .sffc-crm-auto-outreach-section {
        padding: 16px;
    }

    .sffc-crm-auto-filters {
        gap: 14px;
    }

    .sffc-crm-outreach-history {
        margin-top: 20px;
    }

    .sffc-crm-outreach-item {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .sffc-crm-expert-stats {
        grid-template-columns: 1fr 1fr;
    }

    .sffc-crm-expert-stat-card:nth-child(3),
    .sffc-crm-expert-stat-card:nth-child(4) {
        grid-column: span 1;
    }
}

/* --- Inbox/Conversations --- */
@media (max-width: 768px) {
    .sffc-crm-inbox {
        flex-direction: column;
    }

    .sffc-crm-inbox-sidebar {
        width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--crm-border);
    }

    .sffc-crm-conversation-list {
        display: flex;
        overflow-x: auto;
        padding: 12px;
        gap: 8px;
    }

    .sffc-crm-conversation-item {
        flex: 0 0 auto;
        min-width: 200px;
        padding: 10px 14px;
        border-radius: 8px;
    }

    .sffc-crm-inbox-main {
        flex: 1;
        min-height: 400px;
    }

    .sffc-crm-message-input {
        padding: 12px;
    }

    .sffc-crm-message-input textarea {
        min-height: 44px;
    }
}

/* --- Login Prompt Mobile Enhancement --- */
@media (max-width: 480px) {
    .sffc-crm-login-prompt {
        padding: 0;
        align-items: stretch;
    }

    .sffc-crm-login-card {
        border-radius: 0;
        max-width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .sffc-crm-login-header {
        padding: 28px 20px;
    }

    .sffc-crm-login-header h2 {
        font-size: 22px;
    }

    .sffc-crm-login-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 24px 20px;
    }

    .sffc-crm-login-features li {
        padding: 14px 0;
        font-size: 14px;
    }

    .sffc-crm-login-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .sffc-crm-login-buttons .sffc-crm-btn {
        width: 100%;
        min-height: 48px;
    }
}

/* --- Empty States --- */
@media (max-width: 768px) {
    .sffc-crm-empty-state {
        padding: 40px 20px;
    }

    .sffc-crm-empty-state svg {
        width: 64px;
        height: 64px;
    }

    .sffc-crm-empty-state h3 {
        font-size: 16px;
    }

    .sffc-crm-empty-state p {
        font-size: 13px;
    }
}

/* --- Toasts --- */
@media (max-width: 768px) {
    .sffc-crm-toast-container {
        left: 12px;
        right: 12px;
        bottom: 70px; /* Above bottom nav */
        max-width: none;
    }

    .sffc-crm-toast {
        padding: 14px 16px;
        font-size: 14px;
    }
}

/* --- Pagination --- */
@media (max-width: 768px) {
    .sffc-crm-pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 16px 12px;
        margin-bottom: 70px; /* Space for bottom nav */
    }

    .sffc-crm-pagination-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }

    .sffc-crm-pagination-info {
        width: 100%;
        text-align: center;
        order: -1;
        margin-bottom: 8px;
    }
}

/* --- Loading States --- */
@media (max-width: 768px) {
    .sffc-crm-loading {
        padding: 40px 20px;
    }

    .sffc-crm-skeleton-row {
        padding: 14px 12px;
    }
}

/* --- Safe Area Insets for iOS --- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 768px) {
        .sffc-crm-tabs {
            padding-bottom: calc(8px + env(safe-area-inset-bottom));
        }

        .sffc-crm-container {
            padding-bottom: calc(70px + env(safe-area-inset-bottom));
        }

        .sffc-crm-modal-footer {
            padding-bottom: calc(12px + env(safe-area-inset-bottom));
        }

        .sffc-crm-toast-container {
            bottom: calc(70px + env(safe-area-inset-bottom));
        }

        .sffc-crm-pagination {
            margin-bottom: calc(70px + env(safe-area-inset-bottom));
        }
    }
}

/* --- Landscape Mobile Adjustments --- */
@media (max-width: 768px) and (orientation: landscape) {
    .sffc-crm-tabs {
        padding: 0 env(safe-area-inset-left, 0) 0 env(safe-area-inset-right, 0);
    }

    .sffc-crm-tab {
        min-height: 48px;
        padding: 6px 4px;
    }

    .sffc-crm-tab svg {
        width: 18px;
        height: 18px;
    }

    .sffc-crm-modal-content {
        height: 100vh;
    }

    .sffc-crm-modal-body {
        padding-bottom: 60px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .sffc-crm-modal-content,
    .sffc-crm-btn,
    .sffc-crm-post-row,
    .sffc-crm-recruiter-card,
    .sffc-crm-pipeline-card {
        transition: none;
    }

    .sffc-crm-modal.is-visible .sffc-crm-modal-content {
        transform: none;
    }
}

/* --- High Contrast Mode Support --- */
@media (prefers-contrast: high) {
    .sffc-crm-tabs {
        border-width: 2px;
    }

    .sffc-crm-tab.is-active {
        outline: 2px solid currentColor;
        outline-offset: -2px;
    }

    .sffc-crm-btn {
        border-width: 2px;
    }
}

/* ============================================
   BULK SELECTION & OUTREACH FEATURES
   ============================================ */

/* Contact checkbox */
.sffc-crm-contact-checkbox {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.sffc-crm-bulk-select-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--crm-primary, #0D353E);
}

/* Contact outreach button */
.sffc-crm-contact-outreach-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.sffc-crm-contact-outreach-btn svg {
    flex-shrink: 0;
}

/* Add to list button */
.sffc-crm-add-to-list-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.sffc-crm-add-to-list-btn.is-added {
    background: var(--crm-primary, #0D353E);
    border-color: var(--crm-primary, #0D353E);
    color: #ffffff;
}

.sffc-crm-add-to-list-btn.is-added svg {
    transform: rotate(45deg);
}

/* Bulk actions bar */
.sffc-crm-bulk-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(13, 53, 62, 0.08) 0%, rgba(13, 53, 62, 0.04) 100%);
    border: 1px solid rgba(13, 53, 62, 0.15);
    border-radius: 10px;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.sffc-crm-bulk-actions-bar.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sffc-crm-bulk-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--crm-text, #333);
}

.sffc-crm-bulk-info strong {
    color: var(--crm-primary, #0D353E);
    font-weight: 600;
}

.sffc-crm-bulk-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Bulk outreach modal */
.sffc-crm-bulk-outreach-modal {
    padding: 24px;
}

.sffc-crm-bulk-outreach-info {
    background: rgba(13, 53, 62, 0.04);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.sffc-crm-bulk-outreach-count {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--crm-primary, #0D353E);
    font-size: 15px;
}

.sffc-crm-bulk-outreach-count svg {
    opacity: 0.8;
}

.sffc-crm-bulk-outreach-recipients {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sffc-crm-bulk-recipient {
    display: inline-block;
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid rgba(13, 53, 62, 0.15);
    border-radius: 20px;
    font-size: 12px;
    color: var(--crm-text-secondary, #666);
}

.sffc-crm-bulk-recipient-more {
    display: inline-block;
    padding: 4px 10px;
    background: var(--crm-primary, #0D353E);
    color: #ffffff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.sffc-crm-bulk-outreach-options {
    margin: 16px 0;
}

.sffc-crm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--crm-text, #333);
}

.sffc-crm-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--crm-primary, #0D353E);
}

.sffc-crm-help-text {
    font-size: 12px;
    color: var(--crm-text-secondary, #666);
    margin-top: 8px;
}

/* Select all header */
.sffc-crm-select-all-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--crm-bg-alt, #f8f9fa);
    border-bottom: 1px solid var(--crm-border, #e0e0e0);
    font-size: 13px;
    color: var(--crm-text-secondary, #666);
}

.sffc-crm-select-all-header label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Responsive adjustments for bulk selection */
@media (max-width: 768px) {
    .sffc-crm-bulk-actions-bar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .sffc-crm-bulk-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .sffc-crm-contact-outreach-btn span {
        display: none;
    }

    .sffc-crm-contact-outreach-btn {
        width: 32px;
        height: 32px;
        padding: 0;
        justify-content: center;
    }

    .sffc-crm-bulk-outreach-modal {
        padding: 16px;
    }
}

/* Spinner animation for buttons */
.sffc-crm-spinner {
    animation: sffc-spin 1s linear infinite;
}

@keyframes sffc-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   CONTACT COMPOSE MODAL
   ============================================ */

.sffc-crm-contact-compose-modal {
    padding: 24px;
}

.sffc-crm-contact-compose-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(13, 53, 62, 0.04);
    border-radius: 10px;
    margin-bottom: 20px;
}

.sffc-crm-contact-compose-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--crm-primary, #0D353E);
    color: #ffffff;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.sffc-crm-contact-compose-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sffc-crm-contact-compose-details strong {
    font-size: 15px;
    color: var(--crm-text, #333);
}

.sffc-crm-contact-compose-details span {
    font-size: 13px;
    color: var(--crm-text-secondary, #666);
}

.sffc-crm-list-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid rgba(13, 53, 62, 0.15);
    border-radius: 20px;
    font-size: 13px;
    color: var(--crm-primary, #0D353E);
    flex-shrink: 0;
}

.sffc-crm-list-badge svg {
    opacity: 0.7;
}

/* CV Prompt Section */
.sffc-crm-cv-prompt {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.04) 0%, rgba(79, 70, 229, 0.08) 100%);
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 10px;
    margin-bottom: 20px;
}

.sffc-crm-cv-prompt-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 53, 62, 0.1);
    border-radius: 10px;
    color: var(--crm-senna-primary, #0d353e);
    flex-shrink: 0;
}

.sffc-crm-cv-prompt-content {
    flex: 1;
}

.sffc-crm-cv-prompt-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--crm-text, #333);
}

.sffc-crm-cv-prompt-content p {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: var(--crm-text-secondary, #666);
}

.sffc-crm-cv-prompt-content textarea {
    margin-bottom: 10px;
}

.sffc-crm-cv-saved {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    margin-bottom: 20px;
    color: #059669;
    font-size: 13px;
}

/* Compose Actions Inline */
.sffc-crm-compose-actions-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sffc-crm-select-small {
    padding: 6px 10px;
    font-size: 12px;
    min-width: auto;
}

.sffc-crm-compose-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sffc-crm-char-count {
    text-align: right;
    font-size: 12px;
    color: var(--crm-text-secondary, #666);
    margin-top: 6px;
}

/* Small spinner */
.sffc-crm-spinner-small {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: sffc-spin 0.8s linear infinite;
}

/* Modal loading state */
.sffc-crm-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.sffc-crm-modal-loading .sffc-crm-spinner {
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
}

.sffc-crm-modal-loading p {
    margin: 0;
    color: var(--crm-text-secondary, #666);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .sffc-crm-contact-compose-modal {
        padding: 16px;
    }

    .sffc-crm-contact-compose-info {
        flex-wrap: wrap;
    }

    .sffc-crm-list-badge {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }

    .sffc-crm-cv-prompt {
        flex-direction: column;
    }

    .sffc-crm-compose-actions-inline {
        flex-wrap: wrap;
        gap: 6px;
    }

    .sffc-crm-compose-actions-right {
        flex-direction: column;
        width: 100%;
    }

    .sffc-crm-compose-actions-right button {
        width: 100%;
    }
}

/* ==========================================================================
   OUTREACH LISTS
   ========================================================================== */

.sffc-crm-outreach-lists-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.sffc-crm-outreach-lists-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.sffc-crm-outreach-lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.sffc-crm-outreach-list-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.sffc-crm-outreach-list-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.sffc-crm-list-card-header {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.sffc-crm-list-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sffc-crm-list-icon svg {
    stroke: #fff;
}

.sffc-crm-list-info {
    flex: 1;
    min-width: 0;
}

.sffc-crm-list-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sffc-crm-list-info p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sffc-crm-list-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.sffc-crm-list-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sffc-crm-stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.sffc-crm-stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sffc-crm-list-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sffc-crm-list-actions .sffc-crm-btn {
    flex: 1;
}

.sffc-crm-list-actions .delete-list-btn {
    flex: 0 0 auto;
    width: 36px;
    padding: 0;
    justify-content: center;
}

/* List Detail View */
.sffc-crm-list-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.sffc-crm-list-detail-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    flex: 1;
}

.sffc-crm-list-detail-description {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.sffc-crm-list-detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.sffc-crm-list-recruiters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.sffc-crm-list-recruiter-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 12px;
    transition: all 0.2s ease;
}

.sffc-crm-list-recruiter-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.sffc-crm-list-recruiter-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.sffc-crm-list-recruiter-info {
    flex: 1;
    min-width: 0;
}

.sffc-crm-list-recruiter-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sffc-crm-list-recruiter-info p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sffc-crm-list-recruiter-remove {
    align-self: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sffc-crm-list-recruiter-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ==========================================================================
   OUTREACH CAROUSEL
   ========================================================================== */

.sffc-crm-outreach-carousel {
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    overflow: hidden;
}

.sffc-crm-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.sffc-crm-carousel-title h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.sffc-crm-carousel-title p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Progress */
.sffc-crm-carousel-progress {
    padding: 20px 24px;
}

.sffc-crm-progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.sffc-crm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.sffc-crm-progress-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.sffc-crm-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: all 0.3s ease;
}

.sffc-crm-progress-dot.completed {
    background: #10b981;
}

.sffc-crm-progress-dot.active {
    background: #3b82f6;
    transform: scale(1.5);
}

/* Recruiter Info */
.sffc-crm-carousel-recruiter {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.sffc-crm-recruiter-avatar-large {
    margin: 0 auto 16px;
}

.sffc-crm-avatar-placeholder-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: 600;
    margin: 0 auto;
}

.sffc-crm-recruiter-info-large h4 {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.sffc-crm-recruiter-info-large p {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 8px 0;
}

.sffc-crm-recruiter-email {
    display: inline-block;
    font-size: 14px;
    color: #3b82f6;
    background: #eff6ff;
    padding: 4px 12px;
    border-radius: 12px;
}

/* Message Preview */
.sffc-crm-carousel-message {
    padding: 24px;
    background: #f9fafb;
}

.sffc-crm-message-subject {
    margin-bottom: 16px;
}

.sffc-crm-message-subject label,
.sffc-crm-message-body label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sffc-crm-subject-text {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.sffc-crm-message-body {
    margin-bottom: 0;
}

.sffc-crm-message-preview {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    padding: 16px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    max-height: 200px;
    overflow-y: auto;
}

/* Actions */
.sffc-crm-carousel-actions {
    padding: 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.sffc-crm-carousel-actions .sffc-crm-btn-large {
    flex: 1;
    max-width: 300px;
}

/* Footer Stats */
.sffc-crm-carousel-footer {
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 16px;
    justify-content: center;
}

.sffc-crm-carousel-stat {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* Send Confirmation Dialog */
.sffc-crm-send-confirmation {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.sffc-crm-confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sffc-crm-confirmation-icon svg {
    stroke: #fff;
}

.sffc-crm-send-confirmation h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.sffc-crm-send-confirmation p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.sffc-crm-confirmation-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Carousel Completion Screen */
.sffc-crm-carousel-completion {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.sffc-crm-completion-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sffc-crm-completion-icon svg {
    stroke: #fff;
}

.sffc-crm-carousel-completion h3 {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.sffc-crm-carousel-completion p {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.sffc-crm-completion-stats {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.sffc-crm-completion-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.sffc-crm-completion-stat:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.sffc-crm-completion-stat label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.sffc-crm-completion-stat span {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.sffc-crm-completion-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .sffc-crm-outreach-carousel,
    .sffc-crm-send-confirmation,
    .sffc-crm-carousel-completion {
        max-width: 100%;
        border-radius: 0;
    }

    .sffc-crm-carousel-actions {
        flex-direction: column;
    }

    .sffc-crm-carousel-actions .sffc-crm-btn-large {
        max-width: 100%;
    }

    .sffc-crm-confirmation-actions,
    .sffc-crm-completion-actions {
        flex-direction: column;
    }

    .sffc-crm-confirmation-actions button,
    .sffc-crm-completion-actions button {
        width: 100%;
    }
}

/* CV / Resume Manager */
.sffc-crm-cv-layout {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: flex-start;
}

.sffc-crm-cv-form-card,
.sffc-crm-cv-list-wrapper {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 53, 62, 0.08);
}

.sffc-crm-cv-form-card h2,
.sffc-crm-cv-list-header h2 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #0d353e;
}

.sffc-crm-cv-form-card p,
.sffc-crm-cv-list-header p {
    margin: 0;
    color: #5b7c85;
    font-size: 14px;
}

.sffc-crm-cv-form-card p {
    margin-bottom: 18px;
}

.sffc-crm-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.sffc-crm-textarea {
    min-height: 180px;
}

.sffc-crm-cv-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.sffc-crm-cv-list {
    display: grid;
    gap: 16px;
}

.sffc-crm-cv-card {
    border: 1px solid #dbe5e8;
    border-radius: 10px;
    background: #f9fbfc;
    padding: 16px;
}

.sffc-crm-cv-card-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.sffc-crm-cv-card h3 {
    margin: 0;
    font-size: 16px;
    color: #0d353e;
}

.sffc-crm-cv-card-meta {
    font-size: 13px;
    color: #5b7c85;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sffc-crm-cv-card-preview {
    font-size: 14px;
    color: #334b53;
    margin: 10px 0;
    max-height: 90px;
    overflow: hidden;
}

.sffc-crm-cv-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sffc-crm-cv-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(13, 53, 62, 0.1);
    color: #0d353e;
    font-size: 12px;
    font-weight: 600;
}

.sffc-crm-cv-empty {
    padding: 32px;
    text-align: center;
    border: 2px dashed #dbe5e8;
    border-radius: 12px;
    color: #5b7c85;
}

@media (max-width: 1024px) {
    .sffc-crm-cv-layout {
        grid-template-columns: 1fr;
    }

    .sffc-crm-cv-list-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Email connection modal */
.sffc-crm-email-modal {
    max-width: 720px;
    padding: 12px 10px 26px;
}

.sffc-crm-email-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.sffc-crm-email-card {
    padding: 16px 18px;
    border: 1px solid rgba(13, 53, 62, 0.1);
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.sffc-crm-email-card strong {
    display: block;
    font-size: 15px;
    color: #0d353e;
}

.sffc-crm-email-card span {
    font-size: 13px;
    color: #5e7a82;
}

.sffc-crm-email-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sffc-crm-email-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(13, 53, 62, 0.1);
    color: #0d353e;
    font-size: 12px;
    font-weight: 600;
}

.sffc-crm-email-connect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.sffc-crm-email-provider {
    border: 1px solid rgba(13, 53, 62, 0.15);
    border-radius: 14px;
    padding: 14px 16px;
    background: #fff;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.sffc-crm-email-provider.is-busy {
    opacity: 0.6;
    pointer-events: none;
}

.sffc-crm-email-divider {
    text-align: center;
    margin: 18px 0;
    position: relative;
}

.sffc-crm-email-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(13, 53, 62, 0.1);
}

.sffc-crm-email-divider span {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 0 10px;
    font-size: 12px;
    color: #5e7a82;
}

.sffc-crm-email-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.sffc-crm-email-form button {
    align-self: flex-start;
}

.sffc-crm-email-empty {
    padding: 16px;
    border-radius: 12px;
    background: rgba(13, 53, 62, 0.05);
    margin-bottom: 18px;
    font-size: 14px;
    color: #0d353e;
}

.sffc-crm-email-upsell {
    text-align: center;
    padding: 8px 0 4px;
}

.sffc-crm-email-upsell h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #0d353e;
}

.sffc-crm-email-upsell p {
    margin: 0 0 18px;
    color: #5e7a82;
}

.sffc-crm-email-upsell-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
