/* ============================================
   LinkedIn-Style CRM Platform
   Professional, minimal, information-dense design
   ============================================ */

:root {
    /* Premium Senna Color Palette - Forest Green Theme */
    --auth-cream: #FBF7F0;
    --auth-dark-cream: #F5EFE6;
    --auth-forest-green: #1A3028;
    --auth-dark-forest: #0F1F18;
    --auth-gold: #C9A961;
    --auth-dark-gold: #B8935A;
    --auth-light-gold: #E5D4A1;

    /* Primary Brand Colors */
    --senna-primary: #0D353E;
    --senna-accent: #63FBC9;
    --senna-accent-hover: #4fe8b8;
    --senna-accent-light: #e5fef7;

    /* Background Colors */
    --linkedin-bg: #FBF7F0;
    --linkedin-card: #ffffff;
    --linkedin-border: #E5DFD3;
    --linkedin-border-light: #F0EBE0;
    --linkedin-hover: #F5EFE6;

    /* Text Colors */
    --linkedin-text: #0F1F18;
    --linkedin-text-secondary: #1A3028;
    --linkedin-text-muted: #5a6d65;

    /* Brand Colors */
    --linkedin-brand: #0D353E;
    --linkedin-brand-hover: #0a2830;
    --linkedin-brand-light: #e5f3f5;
    --linkedin-success: #0D353E;

    /* Spacing - Compact like LinkedIn */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;

    /* Shadows - Minimal with warm tones */
    --shadow-card: 0 0 0 1px rgba(13, 53, 62, 0.08), 0 1px 2px rgba(13, 53, 62, 0.04);
    --shadow-card-hover: 0 0 0 1px rgba(13, 53, 62, 0.12), 0 2px 4px rgba(13, 53, 62, 0.08);

    /* Border Radius - Subtle */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50%;
}

/* ============================================
   Base Container
   ============================================ */
.sffc-crm-linkedin {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--linkedin-text);
    background: var(--linkedin-bg);
    padding: var(--spacing-xl);
    line-height: 1.4;
    font-size: 14px;
    min-height: 100vh;
}

/* ============================================
   Header - Fixed LinkedIn-Style
   ============================================ */
.sffc-crm-linkedin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--linkedin-card);
    border-bottom: 1px solid var(--linkedin-border-light);
    margin: calc(var(--spacing-xl) * -1) calc(var(--spacing-xl) * -1) var(--spacing-lg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Brand & Logo */
.sffc-crm-linkedin-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    flex: 1;
}

.sffc-crm-linkedin-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
    text-decoration: none;
    color: var(--linkedin-brand);
    font-size: 20px;
}

.sffc-crm-linkedin-logo img {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

/* Search Bar - LinkedIn Essential */
.sffc-crm-search {
    position: relative;
    width: 100%;
}

.sffc-crm-search-input {
    width: 100%;
    padding: 6px 12px 6px 36px;
    border: none;
    background: var(--linkedin-hover);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--linkedin-text);
}

.sffc-crm-search-input::placeholder {
    color: var(--linkedin-text-muted);
}

.sffc-crm-search-input:focus {
    outline: none;
    background: var(--linkedin-card);
    box-shadow: 0 0 0 2px rgba(10, 102, 194, 0.2);
}

.sffc-crm-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--linkedin-text-muted);
}

/* Tabs - LinkedIn Style */
.sffc-crm-tabs {
    display: flex;
    gap: var(--spacing-xs);
}

.sffc-crm-tab {
    border: none;
    background: transparent;
    color: var(--linkedin-text-muted);
    padding: var(--spacing-md) var(--spacing-sm);
    border-bottom: 2px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    position: relative;
}

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

.sffc-crm-tab.active {
    color: var(--linkedin-text);
    border-bottom-color: var(--linkedin-text);
}

.sffc-crm-tab-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Profile Section in Header */
.sffc-crm-linkedin-profile {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
    height: auto;
    min-height: 0;
}

.sffc-crm-linkedin-avatar,
.sffc-crm-linkedin-avatar img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.sffc-crm-linkedin-avatar {
    background: var(--linkedin-brand-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--linkedin-brand);
    font-size: 12px;
    flex-shrink: 0;
}

.sffc-crm-linkedin-avatar > span {
    display: block;
    line-height: 1;
}

.sffc-crm-linkedin-avatar-lg,
.sffc-crm-linkedin-avatar-lg img {
    width: 72px;
    height: 72px;
}

.sffc-crm-linkedin-avatar-lg {
    font-size: 28px;
}

.sffc-crm-linkedin-avatar-lg > span {
    display: block;
    line-height: 1;
}

.sffc-crm-linkedin-user-meta {
    display: none;
}

/* ============================================
   Main Layout Grid
   ============================================ */
.sffc-crm-linkedin-body {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 280px;
    gap: var(--spacing-xl);
    max-width: 1600px;
    margin: 0 auto;
}

/* Rails */
.sffc-crm-linkedin-rail-left,
.sffc-crm-linkedin-rail-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    width: 100%;
    max-width: 100%;
}

.sffc-crm-linkedin-rail-right > * {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ============================================
   Cards - LinkedIn Minimal Style
   ============================================ */
.sffc-crm-linkedin-card {
    background: var(--linkedin-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--linkedin-border-light);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.sffc-crm-linkedin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
}

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

.sffc-crm-card-subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--linkedin-text-muted);
}

.sffc-crm-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--linkedin-border-light);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--linkedin-text-muted);
}

/* ============================================
   Profile Card (Left Rail)
   ============================================ */
.sffc-crm-linkedin-profile-card {
    padding: 0;
}

.sffc-crm-linkedin-profile-card-hero {
    position: relative;
    padding-bottom: 36px;
}

.sffc-crm-linkedin-profile-card-banner {
    height: 54px;
    background: linear-gradient(135deg, var(--auth-forest-green), var(--senna-primary));
}

.sffc-crm-linkedin-profile-card-avatar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--linkedin-bg);
    border: 3px solid var(--linkedin-card);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.sffc-crm-linkedin-profile-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sffc-crm-avatar-initial {
    font-size: 24px;
    font-weight: 600;
    color: var(--senna-primary);
    text-transform: uppercase;
}

.sffc-crm-linkedin-avatar.is-uploading,
.sffc-crm-linkedin-profile-card-avatar.is-uploading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.sffc-crm-linkedin-avatar.is-uploading::after,
.sffc-crm-linkedin-profile-card-avatar.is-uploading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.sffc-crm-avatar-upload-trigger {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--senna-accent);
    border: 2px solid var(--linkedin-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sffc-crm-avatar-upload-trigger:hover {
    background: var(--senna-accent-hover);
    transform: scale(1.1);
}

.sffc-crm-avatar-upload-trigger svg {
    width: 12px;
    height: 12px;
    stroke: #000000;
}

.sffc-crm-profile-avatar {
    position: relative;
    border-radius: 50%;
}

.sffc-crm-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sffc-crm-profile-avatar-letter {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--linkedin-hover);
    color: var(--linkedin-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sffc-crm-profile-avatar:not(.sffc-crm-profile-avatar--placeholder) .sffc-crm-profile-avatar-letter {
    opacity: 0;
    transform: scale(0.85);
}

.sffc-crm-profile-avatar--placeholder img {
    opacity: 0;
}

.sffc-crm-profile-avatar--static {
    cursor: default;
    box-shadow: none;
}

.sffc-crm-avatar-helper {
    text-align: center;
    font-size: 11px;
    color: var(--linkedin-text-muted);
    margin-top: var(--spacing-sm);
}

.sffc-crm-avatar-input {
    display: none;
}

.sffc-crm-linkedin-profile-card-name {
    text-align: center;
    padding: 0 var(--spacing-md) var(--spacing-md);
}

.sffc-crm-linkedin-profile-card-name strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--linkedin-text);
    margin-bottom: 4px;
    margin-bottom: 2px;
}

.sffc-crm-linkedin-profile-card-name span {
    color: var(--linkedin-text-muted);
    font-size: 12px;
    display: block;
}

.sffc-crm-linkedin-profile-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--linkedin-border-light);
    max-height: 400px;
    overflow-y: auto;
}

.sffc-crm-linkedin-profile-stats li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.sffc-crm-linkedin-profile-stats li span {
    color: var(--linkedin-text-muted);
    font-size: 12px;
}

.sffc-crm-linkedin-profile-stats li strong {
    color: var(--linkedin-brand);
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   Live Feed Styling
   ============================================ */
.sffc-crm-live-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    position: relative;
    padding-top: 3px;
}

.sffc-crm-live-feed-stream {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sffc-crm-community-message {
    display: flex;
    padding: 12px;
    border-bottom: 1px solid var(--linkedin-border-light);
    background: var(--linkedin-card);
    transition: background 0.2s ease;
    animation: feedSlideIn 0.4s ease-out forwards;
    opacity: 0;
    transform: translateY(-10px);
}

.sffc-crm-community-message.is-new {
    animation: sffcLiveFeedPulse 0.5s ease;
    border-color: #0d353e;
    box-shadow: 0 12px 30px rgba(13, 53, 62, 0.12);
}

.sffc-crm-community-message:hover {
    background: rgba(0, 0, 0, 0.02);
}

.sffc-crm-community-message:last-child {
    border-bottom: none;
}

.sffc-crm-community-message-content {
    flex: 1;
    width: 100%;
    min-width: 0;
}

.sffc-crm-community-message-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.sffc-crm-community-message-header strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--linkedin-text);
    white-space: nowrap;
}

.sffc-crm-community-message-header span {
    font-size: 11px;
    color: var(--linkedin-text-muted);
    white-space: nowrap;
}

.sffc-crm-community-message p {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--linkedin-text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sffc-crm-community-question {
    font-weight: 600;
    color: #0d353e;
    margin-bottom: 6px;
}

.sffc-crm-community-answer-meta {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.sffc-crm-community-answer-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: rgba(13, 53, 62, 0.08);
    color: #0d353e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sffc-crm-community-answer-icon svg {
    width: 18px;
    height: 18px;
}

.sffc-crm-community-answer-text {
    flex: 1;
    font-size: 12px;
    color: var(--linkedin-text);
    line-height: 1.5;
}

.sffc-crm-community-answer-text strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #0d353e;
}

.sffc-crm-community-answer-preview {
    margin: 2px 0 0;
    color: var(--linkedin-text);
}

.sffc-crm-community-answer-lock {
    margin: 2px 0 0;
    color: var(--linkedin-text-muted);
}

.sffc-crm-community-answer-text.is-locked strong {
    color: var(--linkedin-text-muted);
}

.sffc-crm-live-feed-alert {
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    background: #0d353e;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 14px 26px rgba(13, 53, 62, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 10;
}

.sffc-crm-live-feed-alert svg {
    width: 14px;
    height: 14px;
}

.sffc-crm-live-feed-alert.is-visible {
    transform: translate(-50%, -4px);
}

@keyframes sffcLiveFeedPulse {
    0% {
        transform: scale(0.96);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.sffc-crm-community-upvote.is-upvoted {
    color: #0D353E;
}

.sffc-crm-community-upvote.is-upvoted svg {
    fill: #0D353E;
    stroke: #0D353E;
}

.sffc-crm-community-comment:hover {
    color: var(--linkedin-text);
}

@keyframes feedSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.sffc-crm-linkedin-profile-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: 0 var(--spacing-md) var(--spacing-md);
    border-top: 1px solid var(--linkedin-border-light);
    padding-top: var(--spacing-sm);
}

.sffc-crm-linkedin-link {
    font-weight: 600;
    color: var(--linkedin-brand);
    text-decoration: none;
    font-size: 12px;
    padding: var(--spacing-xs) 0;
}

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

/* ============================================
   Status Card
   ============================================ */
.sffc-crm-linkedin-status-card {
    padding: var(--spacing-md);
}

.sffc-crm-linkedin-status-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.sffc-crm-linkedin-status-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.sffc-crm-status-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.sffc-crm-status-label {
    flex: 1;
    color: var(--linkedin-text-secondary);
    font-size: 12px;
}

.sffc-crm-linkedin-status-list li strong {
    color: var(--linkedin-text);
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   Prep Materials Card (Notion Style)
   ============================================ */
.sffc-crm-prep-materials-card {
    padding: var(--spacing-md);
    overflow: hidden;
}

.sffc-crm-prep-folders {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.sffc-crm-prep-folder {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.sffc-crm-prep-folder:hover {
    background: rgba(0, 0, 0, 0.03);
}

.sffc-crm-prep-folder:active,
.sffc-crm-prep-folder-active {
    background: rgba(0, 0, 0, 0.06);
    transform: scale(0.98);
}

.sffc-crm-prep-folder-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sffc-crm-prep-folder-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sffc-crm-prep-folder-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sffc-crm-prep-folder-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--linkedin-text);
    line-height: 1.4;
}

.sffc-crm-prep-folder-desc {
    font-size: 12px;
    color: var(--linkedin-text-secondary);
    line-height: 1.4;
}

.sffc-crm-prep-folder-arrow {
    width: 14px;
    height: 14px;
    color: var(--linkedin-text-secondary);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.sffc-crm-prep-folder:hover .sffc-crm-prep-folder-arrow {
    opacity: 1;
}

.sffc-crm-welcome-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 18, 31, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.2s ease forwards;
}

.sffc-crm-welcome-overlay.is-dismissed {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.sffc-crm-welcome-modal {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px 24px;
    text-align: center;
    box-shadow: 0 25px 55px rgba(4, 33, 63, 0.35);
    max-width: 360px;
    width: calc(100% - 32px);
    position: relative;
}

.sffc-crm-welcome-modal h3 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    color: #0d353e;
}

.sffc-crm-welcome-modal p {
    margin: 0 0 18px;
    color: #4b5563;
}

.sffc-crm-welcome-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
}

.sffc-crm-prep-footer {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.sffc-crm-prep-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #0066cc;
    text-decoration: none;
    transition: gap 0.15s ease;
}

.sffc-crm-prep-view-all:hover {
    gap: 8px;
    text-decoration: none;
}

.sffc-crm-prep-view-all svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   Prep Dropdown (Dashboard List Items)
   ============================================ */
.sffc-crm-prep-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

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

.sffc-crm-prep-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.sffc-crm-prep-toggle[aria-expanded="true"] .sffc-crm-prep-chevron {
    transform: rotate(180deg);
}

.sffc-crm-prep-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 280px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.12);
    padding: 6px;
    z-index: 1000;
    animation: sffc-dropdown-fade-in 0.15s ease;
}

.sffc-crm-prep-dropdown[hidden] {
    display: none;
}

@keyframes sffc-dropdown-fade-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sffc-crm-prep-category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.12s ease;
    text-align: left;
    font-size: 14px;
    color: var(--linkedin-text);
}

.sffc-crm-prep-category-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.sffc-crm-prep-category-item:active {
    background: rgba(0, 0, 0, 0.08);
}

.sffc-crm-prep-category-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #666;
}

.sffc-crm-prep-category-item span {
    flex: 1;
    font-weight: 500;
}

/* ============================================
   Message Dropdown (Dashboard List Items)
   ============================================ */
.sffc-crm-message-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

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

.sffc-crm-message-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.sffc-crm-message-toggle[aria-expanded="true"] .sffc-crm-message-chevron {
    transform: rotate(180deg);
}

.sffc-crm-message-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.12);
    padding: 6px;
    z-index: 1000;
    animation: sffc-dropdown-fade-in 0.15s ease;
}

.sffc-crm-message-dropdown[hidden] {
    display: none;
}

.sffc-crm-message-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.12s ease;
    text-align: left;
    font-size: 14px;
    color: var(--linkedin-text);
}

.sffc-crm-message-option:hover {
    background: rgba(0, 0, 0, 0.04);
}

.sffc-crm-message-option:active {
    background: rgba(0, 0, 0, 0.08);
}

.sffc-crm-message-option svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #666;
}

.sffc-crm-message-option span {
    flex: 1;
    font-weight: 500;
}

.sffc-crm-message-option-featured {
    border: 1px solid #0d353e;
    background: #e6f2ef;
    font-weight: 600;
    color: #0d353e;
    box-shadow: 0 6px 18px rgba(13, 53, 62, 0.12);
}

.sffc-crm-message-option-featured:hover {
    background: #d9ebe6;
}

.sffc-crm-message-option-featured:active {
    background: #c6e1d9;
}

.sffc-crm-message-option.is-locked {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================
   HR Prep Dropdown (Previously Hired Tab)
   ============================================ */
.sffc-crm-hr-prep-dropdown-wrapper {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.sffc-crm-hr-prep-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.sffc-crm-hr-prep-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.sffc-crm-hr-prep-toggle[aria-expanded="true"] .sffc-crm-hr-prep-chevron {
    transform: rotate(180deg);
}

.sffc-crm-hr-prep-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 240px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.12);
    padding: 6px;
    z-index: 10000;
    animation: sffc-dropdown-fade-in 0.15s ease;
}

.sffc-crm-hr-prep-dropdown[hidden] {
    display: none;
}

.sffc-crm-hr-prep-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.12s ease;
    text-align: left;
    font-size: 14px;
    color: var(--linkedin-text);
    text-decoration: none;
}

.sffc-crm-hr-prep-option:hover {
    background: rgba(0, 0, 0, 0.04);
}

.sffc-crm-hr-prep-option:active {
    background: rgba(0, 0, 0, 0.08);
}

.sffc-crm-hr-prep-option svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #666;
}

.sffc-crm-hr-prep-option span {
    flex: 1;
    font-weight: 500;
}

.sffc-crm-hr-prep-option.sffc-crm-hr-prep-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.sffc-crm-hr-recent-hire {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--linkedin-text-muted);
}

.sffc-crm-hr-recent-hire-label {
    font-weight: 500;
}

.sffc-crm-hr-recent-hire strong {
    color: #059669;
    font-weight: 600;
}

/* ============================================
   Main Content Area
   ============================================ */
.sffc-crm-linkedin-main {
    background: transparent;
}

.sffc-crm-linkedin-panel {
    display: none;
}

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

.sffc-crm-linkedin-panel > h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--linkedin-text);
    margin: 0 0 var(--spacing-md);
}

.sffc-crm-feed-context {
    margin-bottom: 12px;
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sffc-crm-feed-context-label {
    font-weight: 600;
    color: #0d353e;
}

.sffc-crm-feed-filter {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.sffc-crm-feed-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px 16px;
}

.sffc-crm-feed-filter-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.sffc-crm-feed-filter-field input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #cbd5f5;
    border-radius: 6px;
    font-size: 13px;
    color: #0d353e;
    background: #fff;
}

.sffc-crm-feed-filter-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sffc-crm-group-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #475569;
}

.sffc-crm-group-filter label {
    font-weight: 600;
}

.sffc-crm-group-filter-select {
    min-width: 220px;
    padding: 6px 10px;
    border: 1px solid #cbd5f5;
    border-radius: 6px;
    font-size: 13px;
    color: #0d353e;
    background: #fff;
}

/* ============================================
   Feed Cards
   ============================================ */
.sffc-crm-linkedin-feed {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}


/* ============================================
   Buttons
   ============================================ */
.sffc-crm-btn {
    border: none;
    border-radius: 16px;
    padding: 6px 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.sffc-crm-btn-primary {
    background: var(--senna-accent);
    color: #000000;
}

.sffc-crm-btn-primary:hover {
    background: var(--senna-accent-hover);
    color: #000000;
}

.sffc-crm-btn-secondary {
    background: transparent;
    color: var(--linkedin-brand);
    border: 1px solid var(--linkedin-brand);
}

.sffc-crm-btn-secondary:hover {
    background: var(--linkedin-brand-light);
    border-color: var(--linkedin-brand-hover);
}

.sffc-crm-btn-ghost {
    background: transparent;
    border: 1px solid var(--linkedin-border);
    color: var(--linkedin-text);
}

.sffc-crm-btn-ghost:hover {
    border-color: var(--linkedin-brand);
    color: var(--linkedin-brand);
    background: var(--linkedin-hover);
}

.sffc-crm-btn-link {
    background: transparent;
    border: none;
    color: var(--linkedin-brand);
    padding: 0;
    font-weight: 600;
    gap: 4px;
}

.sffc-crm-btn-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.sffc-crm-btn-link:hover {
    color: var(--linkedin-brand-hover);
}

/* View Group Button - Prominent CTA */
.sffc-crm-view-group-btn {
    background: #0d353e;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s ease;
}

.sffc-crm-view-group-btn:hover {
    background: #1a4a56;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 53, 62, 0.3);
}

.sffc-crm-view-group-btn svg {
    stroke: currentColor;
}

/* ============================================
   Prep Section
   ============================================ */
.sffc-crm-linkedin-prep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-md);
}

.sffc-crm-linkedin-prep-card {
    background: var(--linkedin-card);
    border: 1px solid var(--linkedin-border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-card);
}

.sffc-crm-linkedin-prep-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--linkedin-text);
    margin: 0 0 var(--spacing-sm);
}

.sffc-crm-linkedin-prep-card p {
    color: var(--linkedin-text-secondary);
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 var(--spacing-lg);
}

/* ============================================
   Company Prep Library (Phase 2 redesign)
   ============================================ */
.sffc-company-prep-section {
    margin-top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.sffc-company-prep-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    background: var(--linkedin-card);
    border: 1px solid var(--linkedin-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    box-shadow: var(--shadow-card);
    flex-wrap: wrap;
}

.sffc-company-prep-hero-copy {
    flex: 1 1 260px;
}

.sffc-company-prep-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 var(--spacing-sm);
    color: var(--linkedin-text-muted);
}

.sffc-company-prep-hero-copy h2 {
    margin: 0 0 var(--spacing-sm);
    font-size: 28px;
    color: var(--linkedin-text);
}

.sffc-company-prep-hero-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.sffc-company-prep-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    align-items: center;
}

.sffc-company-prep-hero-meta div {
    min-width: 110px;
}

.sffc-company-prep-hero-meta small {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--linkedin-text-muted);
}

.sffc-company-prep-hero-meta strong {
    display: block;
    font-size: 22px;
    color: var(--linkedin-text);
}

.sffc-company-prep-notice {
    border: 1px dashed var(--linkedin-border);
    background: var(--linkedin-hover);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    font-size: 14px;
    color: var(--linkedin-text);
}

.sffc-company-prep-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-lg);
}

@media (max-width: 1024px) {
    .sffc-company-prep-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sffc-company-prep-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.sffc-company-prep-card {
    position: relative;
    background: var(--linkedin-card);
    border: 1px solid var(--linkedin-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    min-height: 100%;
    padding: 0;
}

.sffc-company-prep-banner {
    height: 130px;
    width: 100%;
    background: var(--linkedin-hover);
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.sffc-company-prep-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 53, 62, 0.7), rgba(13, 53, 62, 0.25));
    opacity: 0.55;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.sffc-company-prep-card.has-banner .sffc-company-prep-banner::after {
    opacity: 0.35;
}

.sffc-company-prep-logo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--linkedin-text);
    font-size: 28px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    position: absolute;
    bottom: -42px;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.sffc-company-prep-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sffc-company-prep-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: calc(var(--spacing-lg) * 1.25);
    margin-top: 30px;
}

.sffc-company-prep-card-header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: center;
    text-align: center;
}
.sffc-company-prep-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.sffc-company-prep-location {
    margin: 0;
    color: var(--linkedin-text-muted);
    font-size: 13px;
}

.sffc-company-prep-regions {
    margin: 0;
    font-size: 13px;
    color: var(--linkedin-text-muted);
}

.sffc-company-prep-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: baseline;
    font-size: 13px;
}

.sffc-company-prep-indicator {
    font-weight: 600;
    color: var(--linkedin-text);
}

.sffc-company-prep-meta a {
    font-size: 13px;
    color: var(--linkedin-brand);
    text-decoration: none;
}

.sffc-company-prep-meta a:hover {
    text-decoration: underline;
}

.sffc-company-prep-cta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.sffc-company-prep-request {
    width: 100%;
    justify-content: center;
}

.sffc-company-prep-request.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

.sffc-company-prep-status {
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    background: var(--linkedin-hover);
    border: 1px solid var(--linkedin-border);
}

.sffc-company-prep-badge {
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-xs);
}

.sffc-company-prep-status-text {
    margin: 0;
    font-size: 13px;
    color: var(--linkedin-text);
}

.sffc-company-prep-status.is-pending .sffc-company-prep-badge {
    background: #fef7ec;
    color: #b45309;
}

.sffc-company-prep-status.is-approved .sffc-company-prep-badge {
    background: #ecfdf5;
    color: #047857;
}

.sffc-company-prep-status.is-rejected .sffc-company-prep-badge {
    background: #fef2f2;
    color: #b91c1c;
}

.sffc-company-prep-feedback {
    margin: 0;
    font-size: 13px;
    color: var(--linkedin-text);
    display: none;
}

.sffc-company-prep-feedback.is-visible {
    display: block;
}

.sffc-company-prep-feedback.is-error {
    color: #b91c1c;
}

.sffc-company-prep-empty {
    border: 1px dashed var(--linkedin-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--linkedin-text-muted);
}

.sffc-company-prep-card[data-request-status=""] .sffc-company-prep-status {
    display: none;
}

.sffc-company-prep-card[data-request-status]:not([data-request-status=""]) .sffc-company-prep-request {
    display: none;
}

.sffc-company-prep-status[hidden],
.sffc-company-prep-request[hidden] {
    display: none !important;
}

.sffc-company-prep-grid .sffc-crm-btn {
    min-height: 42px;
}

@media (max-width: 768px) {
    .sffc-company-prep-hero {
        padding: var(--spacing-lg);
        flex-direction: column;
        align-items: flex-start;
    }

    .sffc-company-prep-hero-meta {
        width: 100%;
    }
}

.sffc-prep-signup-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.sffc-prep-signup-modal.is-open {
    display: flex;
}

.sffc-prep-signup-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 28, 35, 0.65);
}

.sffc-prep-signup-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: calc(var(--spacing-xl) * 1.2);
    max-width: 520px;
    width: calc(100% - 32px);
    box-shadow: 0 35px 80px rgba(9, 21, 26, 0.35);
    z-index: 1;
}

.sffc-prep-signup-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--linkedin-text-muted);
}

.sffc-prep-signup-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 600;
    color: var(--linkedin-text-muted);
    margin-bottom: var(--spacing-xs);
}

.sffc-prep-signup-modal__dialog h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    font-size: 26px;
}

.sffc-prep-signup-modal__dialog ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
    color: var(--linkedin-text);
}

.sffc-prep-signup-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

body.sffc-prep-modal-open {
    overflow: hidden;
}

/* ============================================
   Learning Section
   ============================================ */
.sffc-crm-linkedin-learning {
    text-align: center;
    padding: var(--spacing-xl);
    border: 2px dashed var(--linkedin-border);
    border-radius: var(--radius-md);
    background: var(--linkedin-card);
}

.sffc-crm-linkedin-learning h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--linkedin-text);
    margin: 0 0 var(--spacing-sm);
}

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

/* ============================================
   Following Section
   ============================================ */
.sffc-crm-linkedin-following-header {
    margin-bottom: var(--spacing-lg);
}

.sffc-crm-linkedin-following-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--linkedin-text);
    margin: 0 0 var(--spacing-xs);
}

.sffc-crm-linkedin-following-header p {
    color: var(--linkedin-text-muted);
    font-size: 14px;
    margin: 0;
}

.sffc-crm-linkedin-following-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.sffc-crm-following-card {
    background: var(--linkedin-card);
    border: 1px solid var(--linkedin-border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-card);
}

.sffc-crm-following-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.sffc-crm-following-card header strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--linkedin-text);
    display: block;
    margin-bottom: 2px;
}

.sffc-crm-following-card header span {
    font-size: 14px;
    color: var(--linkedin-text-muted);
    display: block;
}

.sffc-crm-following-stage {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.sffc-crm-following-stage label {
    font-size: 12px;
    color: var(--linkedin-text-muted);
    font-weight: 600;
}

.sffc-crm-following-stage-select {
    border: 1px solid var(--linkedin-border);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    background: var(--linkedin-card);
    font-size: 14px;
    color: var(--linkedin-text);
    cursor: pointer;
}

.sffc-crm-following-stage-select:focus {
    outline: none;
    border-color: var(--linkedin-brand);
}

.sffc-crm-following-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin: var(--spacing-sm) 0;
    color: var(--linkedin-text-muted);
    font-size: 12px;
}

.sffc-crm-following-notes {
    margin: 0 0 var(--spacing-md);
    color: var(--linkedin-text-secondary);
    font-size: 14px;
    line-height: 1.4;
}

.sffc-crm-following-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--linkedin-border-light);
    font-size: 12px;
}

.sffc-crm-following-card footer span {
    color: var(--linkedin-text-muted);
}

.sffc-crm-following-status-pill {
    padding: 4px 12px;
    border-radius: var(--radius-lg);
    color: var(--linkedin-card);
    font-weight: 600;
    font-size: 12px;
}

.sffc-crm-following-toast {
    display: inline-block;
    margin-left: var(--spacing-sm);
    font-size: 12px;
    color: var(--linkedin-success);
    font-weight: 600;
}

/* ============================================
   Profile View Section
   ============================================ */
.sffc-crm-linkedin-profile-view {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.sffc-crm-linkedin-profile-hero {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    background: var(--linkedin-card);
    border: 1px solid var(--linkedin-border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-card);
}

.sffc-crm-linkedin-profile-hero h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--linkedin-text);
    margin: 0 0 var(--spacing-xs);
}

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

.sffc-crm-linkedin-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.sffc-crm-linkedin-profile-grid article {
    background: var(--linkedin-card);
    border: 1px solid var(--linkedin-border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-card);
}

.sffc-crm-linkedin-profile-grid article h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--linkedin-text);
    margin: 0 0 var(--spacing-sm);
}

.sffc-crm-linkedin-profile-grid article p {
    color: var(--linkedin-text-secondary);
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* ============================================
   Right Rail Resources
   ============================================ */
.sffc-crm-linkedin-resource-list {
    list-style: none;
    margin: 0;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.sffc-crm-linkedin-resource-list li {
    padding: 0;
}

.sffc-crm-linkedin-resource-list a {
    color: var(--linkedin-text);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.sffc-crm-linkedin-resource-list a:hover {
    color: var(--linkedin-brand);
    text-decoration: underline;
}


.sffc-crm-company-chip-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-md) var(--spacing-md);
}

.sffc-crm-company-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.sffc-crm-company-chip {
    border: 1px solid var(--linkedin-border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--linkedin-hover);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.sffc-crm-company-chip-meta {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.sffc-crm-company-chip-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--linkedin-card);
    border: 1px solid var(--linkedin-border-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--linkedin-brand);
    overflow: hidden;
    flex-shrink: 0;
}

.sffc-crm-company-chip-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sffc-crm-company-chip-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--linkedin-text);
}

.sffc-crm-company-chip-meta span {
    display: block;
    font-size: 12px;
    color: var(--linkedin-text-muted);
}

.sffc-crm-company-chip-actions {
    display: flex;
    justify-content: flex-start;
}

.sffc-crm-company-chip-actions .sffc-crm-btn {
    min-width: 120px;
}

.sffc-crm-company-chip-footer {
    padding: 0 var(--spacing-md) var(--spacing-md);
    text-align: center;
}

.sffc-crm-company-chip-footer .sffc-crm-btn {
    width: 100%;
    justify-content: center;
}

.sffc-crm-company-spotlight-empty {
    padding: var(--spacing-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* ============================================
   Dashboard Grid (Segmented Leads)
   ============================================ */
.sffc-crm-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-sm);
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.sffc-crm-dashboard-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(247,249,250,0.95));
    border: 1px solid rgba(12, 52, 62, 0.08);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.sffc-crm-dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.sffc-crm-dashboard-eyebrow {
    margin: 0 0 2px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--linkedin-text-muted);
}

.sffc-crm-dashboard-card-header h3 {
    margin: 0;
    font-size: 15px;
}

.sffc-crm-dashboard-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.sffc-crm-dashboard-list li {
    border: 1px solid rgba(12, 52, 62, 0.08);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.sffc-crm-dashboard-list-main {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    flex: 1;
    flex-wrap: wrap;
}

.sffc-crm-dashboard-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(12, 52, 62, 0.08);
    background: #f8f9fa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.sffc-crm-dashboard-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sffc-crm-dashboard-logo-initial {
    font-weight: 600;
    font-size: 16px;
    color: var(--crm-accent, #0d353e);
}

.sffc-crm-dashboard-title strong {
    display: block;
    font-size: 15px;
    color: var(--linkedin-text-strong, #0f172a);
}

.sffc-crm-dashboard-title span {
    color: var(--linkedin-text-muted);
}

.sffc-crm-dashboard-contact {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin: var(--spacing-xs) 0 0;
    font-size: 13px;
    color: var(--linkedin-text-muted);
    width: 100%;
}

.sffc-crm-dashboard-contact-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(12, 52, 62, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex-shrink: 0;
}

.sffc-crm-dashboard-contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sffc-crm-dashboard-actions {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
    align-self: flex-start;
}

.sffc-crm-dashboard-actions .sffc-crm-btn {
    min-width: 120px;
    justify-content: center;
}

.sffc-crm-dashboard-list strong {
    display: block;
    font-size: 14px;
}

.sffc-crm-dashboard-list span {
    font-size: 12px;
    color: var(--linkedin-text-muted);
}

.sffc-crm-dashboard-list p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--linkedin-text-secondary);
}

/* ============================================
   HR Outreach Cards
   ============================================ */
/* ============================================
   HR Outreach Grid - 1x1 Layout
   ============================================ */
.sffc-crm-hr-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
}

.sffc-crm-hr-card {
    background: #fff;
    border: 1px solid rgba(13, 53, 62, 0.08);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(13, 53, 62, 0.06);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.sffc-crm-hr-load-more {
    margin-top: var(--spacing-md);
    text-align: center;
}

.sffc-crm-hr-load-more .sffc-crm-btn {
    min-width: 220px;
}

.sffc-crm-hr-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13, 53, 62, 0.12);
}

.sffc-crm-hr-card-header {
    display: contents;
}

/* Merged Section Layout - Compact Horizontal */
.sffc-crm-hr-merged-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 240px;
    position: relative;
}

.sffc-crm-hr-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
}

.sffc-crm-hr-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--linkedin-card);
    border: 2px solid var(--linkedin-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
    color: var(--linkedin-brand);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sffc-crm-hr-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Company Logo positioned on bottom right of avatar */
.sffc-crm-hr-logo {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: 2px solid var(--linkedin-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    background: rgba(13, 53, 62, 0.08);
    color: var(--linkedin-brand);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.sffc-crm-hr-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Section - Compact Single Line */
.sffc-crm-hr-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.sffc-crm-hr-info h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--linkedin-text);
    line-height: 1.3;
    padding-right: 200px;
}

.sffc-crm-hr-location {
    margin: 0;
    color: var(--linkedin-text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.sffc-crm-hr-contact-details {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0;
}

.sffc-crm-hr-contact-details strong {
    font-size: 13px;
    color: var(--linkedin-text-muted);
    font-weight: 500;
    margin: 0;
}

.sffc-crm-hr-contact-details span {
    font-size: 12px;
    color: var(--linkedin-text-muted);
}

.sffc-crm-hr-contact-details span::before {
    content: "•";
    margin-right: 6px;
    opacity: 0.5;
}

/* Hiring Badges - Ultra Compact Dots */
.sffc-crm-hr-hiring {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.sffc-crm-hr-hiring-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 500;
    color: #0369a1;
    background: rgba(2, 132, 199, 0.06);
    padding: 2px 6px;
    border-radius: 6px;
    line-height: 1.2;
}

.sffc-crm-hr-hiring-badge::before {
    content: "";
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.6;
}

/* Badges with Label - Compact Pills */
.sffc-crm-hr-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.sffc-crm-hr-badge-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--linkedin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.sffc-crm-hr-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 500;
    color: #047857;
    background: rgba(16, 185, 129, 0.06);
    padding: 2px 6px;
    border-radius: 6px;
    line-height: 1.2;
}

.sffc-crm-hr-badge::before {
    content: "";
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.6;
}

.sffc-crm-hr-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.sffc-crm-hr-actions .sffc-crm-btn {
    padding: 7px 12px;
    font-size: 12px;
    min-width: auto;
    white-space: nowrap;
}

.sffc-crm-hr-notes {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--linkedin-text-secondary);
}

.sffc-crm-hr-team h4 {
    margin: 0 0 var(--spacing-xs);
    font-size: 14px;
    color: var(--linkedin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sffc-crm-hr-team ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.sffc-crm-hr-team li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    border: 1px solid var(--linkedin-border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--linkedin-card);
}

.sffc-crm-hr-team li strong {
    display: block;
    font-size: 14px;
}

.sffc-crm-hr-team li span {
    font-size: 12px;
    color: var(--linkedin-text-muted);
}

.sffc-crm-hr-team-links {
    display: flex;
    gap: var(--spacing-sm);
}

.sffc-crm-hr-team-links a {
    font-size: 12px;
    color: var(--linkedin-brand);
    text-decoration: none;
}

.sffc-crm-hr-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    font-size: 12px;
    color: var(--linkedin-text-muted);
}

/* ============================================
   HR Process Modal - LinkedIn Style
   ============================================ */
.sffc-crm-hr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sffc-crm-hr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sffc-crm-hr-modal-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    background: var(--linkedin-card);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(0, 0, 0, 0.08);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sffc-crm-hr-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--linkedin-text-muted);
    transition: all 0.2s ease;
    z-index: 2;
}

.sffc-crm-hr-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--linkedin-text);
    transform: rotate(90deg);
}

.sffc-crm-hr-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--linkedin-border-light);
}

.sffc-crm-hr-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--linkedin-text);
}

.sffc-crm-hr-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.sffc-crm-hr-modal-section {
    margin-bottom: 32px;
}

.sffc-crm-hr-modal-section:last-child {
    margin-bottom: 0;
}

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

/* Skills List */
.sffc-crm-hr-skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.sffc-crm-hr-skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(2, 132, 199, 0.04);
    border: 1px solid rgba(2, 132, 199, 0.12);
    border-radius: 8px;
    font-size: 14px;
    color: var(--linkedin-text-secondary);
    transition: all 0.2s ease;
}

.sffc-crm-hr-skill-item:hover {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.2);
    transform: translateX(4px);
}

.sffc-crm-hr-skill-item svg {
    flex-shrink: 0;
}

/* Process List */
.sffc-crm-hr-process-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.sffc-crm-hr-process-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: 8px;
    font-size: 14px;
    color: var(--linkedin-text-secondary);
    transition: all 0.2s ease;
}

.sffc-crm-hr-process-item:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateX(4px);
}

.sffc-crm-hr-process-item svg {
    flex-shrink: 0;
}

/* Team List */
.sffc-crm-hr-modal-team {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sffc-crm-hr-modal-team-member {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: var(--linkedin-bg);
    border: 1px solid var(--linkedin-border-light);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sffc-crm-hr-modal-team-member:hover {
    border-color: var(--linkedin-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sffc-crm-hr-modal-team-info strong {
    display: block;
    font-size: 15px;
    color: var(--linkedin-text);
    margin-bottom: 4px;
}

.sffc-crm-hr-modal-team-info span {
    font-size: 13px;
    color: var(--linkedin-text-muted);
}

.sffc-crm-hr-modal-team-links {
    display: flex;
    gap: 12px;
}

.sffc-crm-hr-modal-team-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--linkedin-brand);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sffc-crm-hr-modal-team-links a:hover {
    color: var(--linkedin-brand-hover);
}

/* Footer Info */
.sffc-crm-hr-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sffc-crm-hr-modal-footer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--linkedin-bg);
    border: 1px solid var(--linkedin-border-light);
    border-radius: 8px;
    font-size: 14px;
    color: var(--linkedin-text-secondary);
}

.sffc-crm-hr-modal-footer-item svg {
    flex-shrink: 0;
    color: var(--linkedin-text-muted);
}

.sffc-crm-hr-modal-footer-item a {
    color: var(--linkedin-brand);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sffc-crm-hr-modal-footer-item a:hover {
    color: var(--linkedin-brand-hover);
    text-decoration: underline;
}

/* Scrollbar Styling for Modal */
.sffc-crm-hr-modal-body::-webkit-scrollbar {
    width: 8px;
}

.sffc-crm-hr-modal-body::-webkit-scrollbar-track {
    background: var(--linkedin-bg);
    border-radius: 4px;
}

.sffc-crm-hr-modal-body::-webkit-scrollbar-thumb {
    background: var(--linkedin-border);
    border-radius: 4px;
}

.sffc-crm-hr-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--linkedin-text-muted);
}

/* Responsive */
@media (max-width: 640px) {
    .sffc-crm-hr-modal-container {
        max-height: 95vh;
        border-radius: 12px;
    }

    .sffc-crm-hr-modal-header,
    .sffc-crm-hr-modal-body {
        padding: 20px 16px;
    }

    .sffc-crm-hr-process-list {
        grid-template-columns: 1fr;
    }

    .sffc-crm-hr-modal-team-member {
        flex-direction: column;
        align-items: flex-start;
    }

    /* HR Card Mobile Styles */
    .sffc-crm-hr-merged-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .sffc-crm-hr-avatar-wrapper {
        margin-bottom: 16px;
    }

    .sffc-crm-hr-info h3 {
        font-size: 16px;
    }

    .sffc-crm-hr-badges {
        justify-content: center;
    }

    .sffc-crm-hr-actions {
        flex-direction: column;
        width: 100%;
    }

    .sffc-crm-hr-actions .sffc-crm-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Feed Load More
   ============================================ */
.sffc-crm-feed-load-more {
    display: flex;
    justify-content: center;
    padding: var(--spacing-xl) 0;
}

.sffc-crm-load-more-btn {
    min-width: 200px;
}

/* ============================================
   Empty States
   ============================================ */
.sffc-crm-linkedin-empty {
    background: var(--linkedin-card);
    border: 2px dashed var(--linkedin-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    text-align: center;
}

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

/* ============================================
   Mobile Navigation - Bottom Tabs
   ============================================ */
.sffc-crm-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--linkedin-card);
    border-top: 1px solid var(--linkedin-border-light);
    padding: var(--spacing-xs) 0;
    z-index: 1000;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.08);
    pointer-events: auto;
}

.sffc-crm-mobile-nav-inner {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    max-width: 100%;
    gap: 0;
}

.sffc-crm-mobile-tab {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--spacing-xs);
    border: none;
    background: transparent;
    color: var(--linkedin-text-muted);
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    transition: color 0.2s ease;
    min-width: 0;
}

.sffc-crm-mobile-tab.active {
    color: var(--linkedin-text);
}

.sffc-crm-mobile-tab-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Mobile Me Tab with Avatar */
.sffc-crm-mobile-tab-me {
    flex: 1 1 0;
    position: relative;
    display: flex;
    min-width: 0;
}

.sffc-crm-mobile-tab-me .sffc-crm-mobile-tab {
    width: 100%;
}

.sffc-crm-mobile-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--linkedin-bg);
    border: 2px solid var(--linkedin-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sffc-crm-mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sffc-crm-mobile-avatar span {
    font-size: 10px;
    font-weight: 600;
    color: var(--senna-primary);
}

/* Mobile Me Dropdown Menu */
.sffc-crm-mobile-me-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: var(--linkedin-card);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    max-width: calc(100vw - 32px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1001;
    pointer-events: none;
}

.sffc-crm-mobile-me-menu.active,
.sffc-crm-mobile-tab-me:hover .sffc-crm-mobile-me-menu {
    pointer-events: auto;
}

.sffc-crm-mobile-tab-me .sffc-crm-mobile-tab.active + .sffc-crm-mobile-me-menu,
.sffc-crm-mobile-tab-me:hover .sffc-crm-mobile-me-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sffc-crm-mobile-me-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--linkedin-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--linkedin-border-light);
}

.sffc-crm-mobile-me-item:last-child {
    border-bottom: none;
}

.sffc-crm-mobile-me-item:hover {
    background: var(--linkedin-hover);
}

.sffc-crm-mobile-me-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    flex-shrink: 0;
}

.sffc-crm-mobile-me-item-logout {
    color: #dc2626;
}

.sffc-crm-mobile-me-guest {
    padding: 16px;
    text-align: center;
}

.sffc-crm-mobile-me-guest p {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: var(--linkedin-text-muted);
}

.sffc-crm-mobile-me-guest .sffc-crm-btn {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet - 1024px */
@media (max-width: 1024px) {
    .sffc-crm-linkedin-body {
        grid-template-columns: 200px minmax(0, 1fr) 240px;
        gap: var(--spacing-lg);
    }
}

/* Tablet Portrait - 900px */
@media (max-width: 900px) {
    .sffc-crm-linkedin-body {
        grid-template-columns: 1fr;
    }

    .sffc-crm-linkedin-rail-left,
    .sffc-crm-linkedin-rail-right {
        display: none;
    }

    .sffc-crm-linkedin-main {
        order: 1;
    }

    .sffc-crm-search {
        max-width: 200px;
    }
}

/* Mobile - 640px */
@media (max-width: 640px) {
    .sffc-crm-linkedin {
        padding: 0;
        padding-bottom: 60px;
        overflow-x: hidden;
        max-width: 100vw;
    }

    .sffc-crm-linkedin-header {
        margin: 0 0 var(--spacing-sm);
        padding: var(--spacing-sm);
        flex-wrap: wrap;
        gap: var(--spacing-sm);
        overflow: visible;
        position: relative;
        z-index: 10;
    }

    .sffc-crm-linkedin-brand {
        width: 100%;
        order: 1;
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    .sffc-crm-linkedin-logo {
        width: auto;
    }

    .sffc-crm-search {
        flex: 1;
        max-width: none;
        order: 2;
        min-width: 0;
    }

    .sffc-crm-search-wrapper {
        max-width: none;
    }

    .sffc-crm-header-right {
        order: 3;
        justify-content: flex-end;
        flex-shrink: 0;
        flex-wrap: nowrap;
        gap: var(--spacing-md);
    }

    .sffc-crm-tabs {
        display: none;
    }

    .sffc-crm-linkedin-profile {
        position: relative;
        flex-shrink: 0;
    }

    .sffc-crm-profile-toggle {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .sffc-user-menu {
        position: fixed;
        top: auto !important;
        right: 8px;
        left: auto;
        min-width: 280px;
        max-width: calc(100vw - 16px);
        z-index: 9999;
    }

    .sffc-crm-linkedin-body {
        padding: 0 var(--spacing-sm);
        overflow-x: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }

    .sffc-crm-linkedin-panel > h2 {
        font-size: 18px;
        padding: var(--spacing-sm) 0;
    }

    .sffc-crm-linkedin-panel {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* Show Mobile Navigation */
    .sffc-crm-mobile-nav {
        display: block;
    }

    /* Touch-friendly feed cards */
        flex-wrap: wrap;
    }

        flex-direction: column;
    }

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

    /* Feed actions horizontal scroll on mobile */
    .sffc-crm-feed-action-row {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sffc-crm-feed-action-row::-webkit-scrollbar {
        display: none;
    }

    .sffc-crm-feed-action {
        white-space: nowrap;
    }

    /* Profile View Mobile */
    .sffc-crm-profile-header-content {
        padding: 0 var(--spacing-md) var(--spacing-md);
    }

    .sffc-crm-profile-header-info {
        margin-left: 0;
        margin-top: var(--spacing-md);
        flex-direction: column;
        align-items: flex-start;
    }

    .sffc-crm-profile-header-info h2 {
        font-size: 24px;
    }

    .sffc-profile-edit-btn {
        width: 100%;
    }

    .sffc-crm-profile-section {
        padding: var(--spacing-lg);
    }

    /* Document cards single column on mobile */
    .sffc-crm-documents-grid {
        grid-template-columns: 1fr;
    }

    .sffc-crm-document-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .sffc-crm-document-actions {
        width: 100%;
        justify-content: flex-end;
    }

    /* Sticky disabled on mobile */
    .sffc-crm-linkedin-profile-card,
    .sffc-crm-sticky-card {
        position: relative;
        top: 0;
    }

    /* Profile banner smaller on mobile */
    .sffc-crm-profile-banner {
        height: 80px;
    }

    /* Tags wrap better on mobile */
    .sffc-crm-tags {
        gap: var(--spacing-xs);
    }

    .sffc-crm-tag {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* Extra Small Mobile - 480px */
@media (max-width: 480px) {
    .sffc-crm-linkedin-logo span {
        display: none;
    }

    .sffc-crm-tab-label {
        display: none;
    }

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

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

    /* User menu full width on very small screens */
    .sffc-user-menu {
        min-width: 260px;
        max-width: calc(100vw - 32px);
    }

    /* Profile sections tighter padding */
    .sffc-crm-profile-section {
        padding: var(--spacing-md);
    }

    .sffc-crm-profile-header-info h2 {
        font-size: 22px;
    }

    /* Document cards more compact */
    .sffc-crm-document-card {
        padding: var(--spacing-md);
    }

    .sffc-crm-document-icon {
        width: 40px;
        height: 40px;
    }

    .sffc-crm-document-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   Header Right Container
   ============================================ */
.sffc-crm-header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex-shrink: 0;
    flex-wrap: nowrap;
}

/* ============================================
   Profile Dropdown Menu
   ============================================ */
.sffc-crm-profile-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    border: none;
    background: transparent;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.sffc-crm-profile-toggle:hover {
    background: var(--linkedin-hover);
}

.sffc-crm-profile-chevron {
    width: 16px;
    height: 16px;
    stroke: var(--linkedin-text-muted);
    transition: transform 0.2s ease;
}

.sffc-crm-profile-toggle[aria-expanded="true"] .sffc-crm-profile-chevron {
    transform: rotate(180deg);
}

.sffc-user-menu {
    position: absolute !important;
    top: calc(100% + 8px);
    right: 0;
    min-width: 300px;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--linkedin-card);
    border: 1px solid var(--linkedin-border-light);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(13, 53, 62, 0.12);
    display: none;
    z-index: 1000;
    pointer-events: none;
}

.sffc-user-menu.active {
    display: block;
    pointer-events: auto;
}

.sffc-user-menu-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--linkedin-border-light);
}

.sffc-user-menu-info {
    flex: 1;
}

.sffc-user-menu-info strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--linkedin-text);
    margin-bottom: 2px;
}

.sffc-user-menu-info span {
    display: block;
    font-size: 13px;
    color: var(--linkedin-text-muted);
}

.sffc-user-menu-nav {
    padding: var(--spacing-sm) 0;
}

.sffc-user-menu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--linkedin-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.sffc-user-menu-item:hover {
    background: var(--linkedin-hover);
}

.sffc-user-menu-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--linkedin-text-muted);
    flex-shrink: 0;
}

.sffc-user-menu-item-logout {
    border-top: 1px solid var(--linkedin-border-light);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-md);
    color: #dc2626;
}

.sffc-user-menu-item-logout svg {
    stroke: #dc2626;
}

.sffc-user-menu-guest {
    padding: var(--spacing-lg);
    text-align: center;
}

.sffc-user-menu-guest p {
    margin: 0 0 var(--spacing-lg);
    color: var(--linkedin-text-secondary);
    font-size: 14px;
}

/* ============================================
   Sticky Profile Card
   ============================================ */
.sffc-crm-linkedin-profile-card {
    position: sticky;
    top: var(--spacing-lg);
}

/* ============================================
   Sticky Cards (Right Rail & Companies)
   ============================================ */
.sffc-crm-sticky-card {
    position: sticky;
    top: calc(var(--header-height, 64px) + var(--sticky-card-offset, 20px));
    align-self: flex-start;
    z-index: 1;
    padding-bottom: var(--spacing-lg);
}

/* ============================================
   View More Link
   ============================================ */
.sffc-crm-view-more-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--linkedin-brand);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-top: var(--spacing-sm);
    transition: color 0.2s ease;
}

.sffc-crm-view-more-link:hover {
    color: var(--senna-primary);
}

.sffc-crm-view-more-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* ============================================
   Comprehensive Profile View
   ============================================ */
.sffc-crm-profile-header {
    position: relative;
    background: var(--linkedin-card);
    border: 1px solid var(--linkedin-border-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.sffc-crm-profile-banner {
    height: 120px;
    background: linear-gradient(135deg, var(--auth-forest-green), var(--senna-primary));
}

.sffc-crm-profile-header-content {
    padding: 0 var(--spacing-xl) var(--spacing-xl);
    margin-top: -48px;
    position: relative;
}

.sffc-crm-profile-header-info {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-width: 100%;
}

.sffc-crm-profile-header-info h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--linkedin-text);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.sffc-crm-profile-headline {
    color: var(--linkedin-text-secondary);
    font-size: 18px;
    margin: 0 0 20px 0;
    line-height: 1.6;
    font-weight: 400;
    max-width: 100%;
    word-wrap: break-word;
}

.sffc-crm-profile-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}

.sffc-crm-profile-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.sffc-crm-profile-meta-icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
    flex-shrink: 0;
}

.sffc-crm-profile-meta-text {
    font-size: 16px;
    color: var(--linkedin-text);
    font-weight: 500;
    line-height: 1.4;
}

.sffc-crm-profile-meta-edit {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    margin-left: auto;
}

.sffc-crm-profile-meta-edit:hover {
    background: #f3f4f6;
    color: var(--linkedin-text);
}

.sffc-crm-profile-meta-edit svg {
    width: 16px;
    height: 16px;
}

.sffc-crm-profile-meta-add {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: none;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
    color: #6b7280;
    font-weight: 500;
    width: fit-content;
}

.sffc-crm-profile-meta-add:hover {
    background: #f9fafb;
    border-color: var(--linkedin-text);
    color: var(--linkedin-text);
}

.sffc-crm-profile-meta-add svg {
    width: 20px;
    height: 20px;
}

.sffc-profile-edit-btn {
    flex-shrink: 0;
}

.sffc-profile-edit-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* ============================================
   Profile Sections
   ============================================ */
.sffc-crm-profile-section {
    background: var(--linkedin-card);
    border: 1px solid var(--linkedin-border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-card);
}

.sffc-crm-profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

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

.sffc-crm-section-edit-btn {
    border: none;
    background: transparent;
    color: var(--linkedin-brand);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.sffc-crm-section-edit-btn:hover {
    background: var(--linkedin-hover);
}

.sffc-crm-section-edit-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    display: block;
}

.sffc-crm-profile-content {
    /* Content styling */
}

/* ============================================
   Profile Grid Layouts
   ============================================ */
.sffc-crm-profile-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

@media (max-width: 768px) {
    .sffc-crm-profile-grid-2col {
        grid-template-columns: 1fr;
    }

    .sffc-crm-company-chip-actions .sffc-crm-btn,
    .sffc-crm-company-chip-footer .sffc-crm-btn {
        width: 100%;
    }
}

/* ============================================
   Profile Fields
   ============================================ */
.sffc-crm-profile-field {
    margin-bottom: var(--spacing-lg);
}

.sffc-crm-profile-field:last-child {
    margin-bottom: 0;
}

.sffc-crm-profile-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--linkedin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
}

.sffc-crm-field-value {
    color: var(--linkedin-text);
    font-size: 15px;
    font-weight: 500;
}

.sffc-alerts-summary {
    background: var(--linkedin-card-alt);
    border: 1px solid var(--linkedin-border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.sffc-alerts-summary ul {
    margin: var(--spacing-md) 0 0;
    padding-left: 20px;
    color: var(--linkedin-text);
    font-size: 14px;
}

.sffc-alerts-status {
    margin: 0;
    font-size: 15px;
    color: var(--linkedin-text);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.sffc-alert-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: rgba(13, 53, 62, 0.08);
    color: #0d353e;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
}

.sffc-alert-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
}

.sffc-alert-pill--on {
    background: rgba(5, 118, 66, 0.15);
    color: #057642;
}

.sffc-alert-pill--on::before {
    background: #16a34a;
}

.sffc-alerts-form {
    border: 1px solid var(--linkedin-border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    background: var(--linkedin-card);
}

.sffc-alerts-field {
    margin-bottom: var(--spacing-lg);
}

.sffc-alerts-field:last-child {
    margin-bottom: 0;
}

.sffc-alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 20px;
    font-size: 14px;
    color: var(--linkedin-text);
}

.sffc-alerts-grid label {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    color: var(--linkedin-text);
}

.sffc-alerts-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--linkedin-text);
}

.sffc-alerts-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

@media (max-width: 640px) {
    .sffc-alerts-actions {
        flex-direction: column;
    }

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

.sffc-alerts-feedback {
    font-size: 13px;
    margin-top: var(--spacing-md);
    color: #0d4b3f;
}

.sffc-alerts-feedback.is-error {
    color: #dc2626;
}

/* ============================================
   Tags
   ============================================ */
.sffc-crm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.sffc-crm-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--linkedin-hover);
    border: 1px solid var(--linkedin-border);
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    color: var(--linkedin-text);
}

.sffc-crm-tag-add {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: transparent;
    border: 1px dashed var(--linkedin-border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--linkedin-brand);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sffc-crm-tag-add:hover {
    border-color: var(--linkedin-brand);
    background: var(--linkedin-brand-light);
}

.sffc-crm-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    border: none;
    background: transparent;
    color: var(--linkedin-text-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
    border-radius: var(--radius-full);
}

.sffc-crm-tag-remove:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

/* ============================================
   Document Cards
   ============================================ */
.sffc-crm-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.sffc-crm-document-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--linkedin-hover);
    border: 1px solid var(--linkedin-border-light);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.sffc-crm-document-card:hover {
    border-color: var(--linkedin-border);
    box-shadow: var(--shadow-card);
}

.sffc-crm-document-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--linkedin-card);
    border-radius: var(--radius-md);
}

.sffc-crm-document-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--linkedin-brand);
}

.sffc-crm-document-info {
    flex: 1;
}

.sffc-crm-document-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--linkedin-text);
    margin-bottom: 4px;
}

.sffc-crm-document-meta {
    display: block;
    font-size: 12px;
    color: var(--linkedin-text-muted);
}

.sffc-crm-document-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.sffc-crm-icon-btn {
    border: none;
    background: transparent;
    color: var(--linkedin-text-muted);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.sffc-crm-icon-btn:hover {
    background: var(--linkedin-card);
    color: var(--linkedin-brand);
}

.sffc-crm-icon-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    display: block;
}

/* ============================================
   Button Sizes
   ============================================ */
.sffc-crm-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.sffc-crm-btn-sm svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Edit Mode States
   ============================================ */
.sffc-editing {
    background: var(--linkedin-brand-light);
    border-color: var(--linkedin-brand);
}

.sffc-crm-field-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--linkedin-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--linkedin-text);
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.sffc-crm-field-input:focus {
    outline: none;
    border-color: var(--linkedin-brand);
    box-shadow: 0 0 0 2px var(--linkedin-brand-light);
}

.sffc-crm-edit-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--linkedin-border-light);
}

/* ============================================
   Toast Notifications
   ============================================ */
.sffc-crm-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--linkedin-brand);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(13, 53, 62, 0.3);
    z-index: 10000;
    font-size: 14px;
    font-weight: 600;
    animation: slideInRight 0.3s ease;
}

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

/* ============================================
   Feed Action Row Enhanced
   ============================================ */
.sffc-crm-feed-action-row .sffc-crm-btn-primary {
    background: var(--senna-accent);
    color: #000000;
    border: none;
}

.sffc-crm-feed-action-row .sffc-crm-btn-primary:hover {
    background: var(--senna-accent-hover);
}

/* ============================================
   Companies View
   ============================================ */
.sffc-crm-companies-header {
    margin-bottom: 24px;
}

.sffc-crm-companies-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--senna-primary);
    margin: 0 0 8px 0;
}

.sffc-crm-companies-header p {
    color: var(--linkedin-text-muted);
    margin: 0;
    font-size: 14px;
}

/* Add Company Form */
.sffc-crm-add-company {
    margin-bottom: 20px;
}

.sffc-crm-add-company-form {
    padding: 20px;
}

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

.sffc-crm-form-field {
    display: flex;
    flex-direction: column;
}

.sffc-crm-form-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--linkedin-text);
    margin-bottom: 8px;
}

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

.sffc-crm-input {
    padding: 10px 12px;
    border: 1px solid var(--linkedin-border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--linkedin-text);
    background: var(--linkedin-card);
    transition: all 0.2s ease;
}

.sffc-crm-input:focus {
    outline: none;
    border-color: var(--senna-primary);
    box-shadow: 0 0 0 3px rgba(13, 53, 62, 0.1);
}

.sffc-crm-file-upload {
    position: relative;
}

.sffc-crm-file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sffc-crm-file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--linkedin-bg);
    border: 1px dashed var(--linkedin-border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: var(--linkedin-text-muted);
}

.sffc-crm-file-label:hover {
    background: var(--auth-dark-cream);
    border-color: var(--senna-primary);
}

.sffc-crm-file-label svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.sffc-crm-file-name {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--linkedin-text-muted);
}

.sffc-crm-form-actions {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 20px;
}

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

.sffc-crm-form-actions .sffc-crm-btn svg {
    width: 18px;
    height: 18px;
}

/* Companies Grid */
.sffc-crm-companies-list {
    margin-bottom: 20px;
}

.sffc-crm-companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 20px;
}

.sffc-crm-company-card {
    position: relative;
    background: var(--linkedin-card);
    border: 1px solid var(--linkedin-border);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.sffc-crm-company-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.sffc-crm-company-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.sffc-crm-company-logo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--linkedin-bg);
    border: 1px solid var(--linkedin-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sffc-crm-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

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

.sffc-crm-company-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--linkedin-text);
}

.sffc-crm-company-industry {
    margin: 0 0 6px 0;
    font-size: 13px;
    color: var(--linkedin-text-muted);
}

.sffc-crm-company-openings {
    margin: 0;
    font-size: 13px;
    color: var(--linkedin-text-muted);
}

.sffc-crm-company-openings strong {
    color: var(--senna-primary);
    font-weight: 600;
}

.sffc-crm-company-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: var(--linkedin-text-muted);
    opacity: 0;
    transition: all 0.2s ease;
}

.sffc-crm-company-card:hover .sffc-crm-company-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.sffc-crm-company-delete {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--linkedin-text-muted);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0;
}

.sffc-crm-company-card:hover .sffc-crm-company-delete {
    opacity: 1;
}

.sffc-crm-company-delete:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.sffc-crm-company-delete svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.sffc-crm-linkedin-card-header .sffc-crm-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: var(--linkedin-bg);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--linkedin-text-muted);
}

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

    .sffc-crm-companies-grid {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .sffc-crm-company-logo {
        width: 56px;
        height: 56px;
    }

    .sffc-crm-company-delete {
        opacity: 1;
    }
}

/* ============================================
   Keyword Groups (styled like quick-facts)
   ============================================ */
.sffc-crm-feed-keywords {
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--linkedin-text);
}

.sffc-crm-keyword-group {
    display: inline;
    margin-right: 12px;
}

.sffc-crm-keyword-group:last-child {
    margin-right: 0;
}

.sffc-crm-keyword-group strong {
    font-weight: 600;
    color: var(--linkedin-text);
    margin-right: 4px;
}

.sffc-crm-keyword-group span {
    color: var(--linkedin-text-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sffc-crm-feed-keywords {
        font-size: 12px;
    }

    .sffc-crm-keyword-group {
        display: block;
        margin-bottom: 4px;
    }
}

/* ============================================
   Matches Tab & Job Preferences
   ============================================ */

/* Matches Header */
.sffc-crm-matches-header {
    background: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.sffc-crm-matches-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--linkedin-text);
}

.sffc-crm-matches-header p {
    margin: 0 0 1rem 0;
    color: var(--linkedin-text-secondary);
    font-size: 0.875rem;
}

/* Active Filters Display */
.sffc-crm-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.sffc-crm-filter-badge {
    background: #fff;
    border: 1px solid #d1d5db;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.813rem;
    color: var(--linkedin-text);
}

.sffc-crm-filter-badge strong {
    font-weight: 600;
    margin-right: 0.25rem;
    color: var(--linkedin-text);
}

.sffc-crm-edit-preferences-link {
    color: var(--linkedin-blue);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: auto;
}

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

/* Match Badges */
.sffc-crm-match-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f0fdf4;
    border-bottom: 1px solid #d1fae5;
}

.sffc-crm-match-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #10b981;
    color: #fff;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sffc-crm-match-badge svg {
    width: 12px;
    height: 12px;
}

/* Empty States */
.sffc-crm-matches-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.sffc-crm-matches-empty-state svg {
    color: var(--linkedin-text-secondary);
    margin-bottom: 1.5rem;
}

.sffc-crm-matches-empty-state h2 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--linkedin-text);
}

.sffc-crm-matches-empty-state p {
    margin: 0 0 1.5rem 0;
    color: var(--linkedin-text-secondary);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Matches Blurred Preview (Logged Out) */
.sffc-crm-matches-preview-blur {
    position: relative;
}

.sffc-crm-matches-login-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    pointer-events: none;
}

.sffc-crm-matches-login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 480px;
    pointer-events: auto;
}

.sffc-crm-matches-login-card svg {
    color: var(--linkedin-primary);
    margin-bottom: 1.5rem;
}

.sffc-crm-matches-login-card h2 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--linkedin-text);
}

.sffc-crm-matches-login-card p {
    margin: 0 0 2rem 0;
    color: var(--linkedin-text-secondary);
    line-height: 1.6;
}

.sffc-crm-matches-login-card .sffc-crm-btn {
    min-width: 200px;
}

/* Responsive Overlay */
@media (max-width: 768px) {
    .sffc-crm-matches-login-overlay {
        position: absolute;
        top: 20%;
        transform: translate(-50%, 0);
    }

    .sffc-crm-matches-login-card {
        padding: 2rem 1.5rem;
        max-width: 90vw;
    }

    .sffc-crm-matches-login-card h2 {
        font-size: 1.25rem;
    }
}

/* Editable Tags */
.sffc-crm-tags-editable {
    border: 1px dashed #d1d5db;
    padding: 0.5rem;
    border-radius: 6px;
    min-height: 42px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.sffc-crm-tags-editable .sffc-crm-tag {
    background: var(--linkedin-blue);
    color: #fff;
    padding: 0.375rem 0.75rem;
    border-radius: 16px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.sffc-crm-tag-remove {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: 0.125rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

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

.sffc-crm-tag-add {
    background: #fff;
    border: 1px dashed #9ca3af;
    color: #6b7280;
    padding: 0.375rem 0.75rem;
    border-radius: 16px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* Tag Input */
.sffc-crm-tag-input-wrapper {
    display: inline-block;
}

.sffc-crm-tag-input {
    border: 1px solid var(--linkedin-blue);
    padding: 0.375rem 0.75rem;
    border-radius: 16px;
    font-size: 0.875rem;
    outline: none;
    min-width: 150px;
}

.sffc-crm-tag-select {
    border: 1px solid var(--linkedin-blue);
    padding: 0.375rem 0.75rem;
    border-radius: 16px;
    font-size: 0.875rem;
    outline: none;
    background: #fff;
    cursor: pointer;
}

/* Editable Fields */
.sffc-crm-field-editable {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sffc-crm-field-edit-btn {
    background: none;
    border: none;
    color: var(--linkedin-blue);
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.sffc-crm-field-edit-btn:hover {
    opacity: 1;
}

.sffc-crm-field-edit-btn svg {
    width: 16px;
    height: 16px;
}

.sffc-crm-field-input {
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    width: 100%;
    max-width: 300px;
    outline: none;
}

.sffc-crm-field-input:focus {
    border-color: var(--linkedin-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.1);
}

/* Salary Editor */
.sffc-crm-salary-editor {
    margin-top: 0.75rem;
}

.sffc-crm-salary-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sffc-crm-salary-min,
.sffc-crm-salary-max {
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    width: 120px;
    outline: none;
}

.sffc-crm-salary-min:focus,
.sffc-crm-salary-max:focus {
    border-color: var(--linkedin-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.1);
}

.sffc-crm-salary-currency {
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    background: #fff;
    cursor: pointer;
    outline: none;
}

.sffc-crm-salary-currency:focus {
    border-color: var(--linkedin-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.1);
}

/* Save Button */
.sffc-crm-section-save-btn {
    background: var(--linkedin-blue);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.sffc-crm-section-save-btn:hover {
    background: #006db3;
}

.sffc-crm-section-save-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.sffc-crm-section-save-btn svg {
    width: 16px;
    height: 16px;
}

/* Go to Profile Button */
.sffc-crm-goto-profile {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--linkedin-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.sffc-crm-goto-profile:hover {
    background: #006db3;
    color: #fff;
}

/* Notification */
.sffc-crm-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    max-width: 300px;
}

.sffc-crm-notice-success {
    border-left: 4px solid #10b981;
}

.sffc-crm-notice-error {
    border-left: 4px solid #ef4444;
}

/* Matches Feed Specific */
.sffc-crm-matches-feed {
    /* Inherits from sffc-crm-linkedin-feed */
}

.sffc-crm-matches-load-more {
    text-align: center;
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .sffc-crm-matches-header {
        padding: 1rem;
    }

    .sffc-crm-active-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .sffc-crm-edit-preferences-link {
        margin-left: 0;
    }

    .sffc-crm-salary-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .sffc-crm-salary-min,
    .sffc-crm-salary-max {
        width: 100%;
    }

    .sffc-crm-matches-empty-state {
        padding: 2rem 1rem;
    }

    .sffc-crm-matches-empty-state svg {
        width: 60px;
        height: 60px;
    }

    .sffc-crm-match-badges {
        padding: 0.5rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .sffc-crm-linkedin-header,
    .sffc-crm-tabs,
    .sffc-crm-feed-action-row,
    .sffc-crm-mobile-nav,
    .sffc-user-menu,
    .sffc-profile-edit-btn,
    .sffc-crm-section-edit-btn {
        display: none;
    }

    .sffc-crm-linkedin {
        background: white;
    }
}

/* ============================================
   Dashboard Quick View Modal
   ============================================ */
body.sffc-crm-dashboard-modal-open {
    overflow: hidden;
}

.sffc-crm-dashboard-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.sffc-crm-dashboard-modal.is-open {
    display: flex;
}

.sffc-crm-dashboard-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 14, 23, 0.65);
}

.sffc-crm-dashboard-modal__dialog {
    position: relative;
    width: min(860px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 40px 120px rgba(5, 10, 20, 0.4);
}

.sffc-crm-dashboard-modal__close {
    position: absolute;
    top: 18px;
    right: 22px;
    border: none;
    background: rgba(13, 53, 62, 0.12);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

.sffc-crm-dashboard-modal__header {
    margin-bottom: 20px;
}

.sffc-crm-dashboard-modal__eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(6, 23, 34, 0.6);
}

.sffc-crm-dashboard-modal__company {
    margin: 6px 0 0;
    color: rgba(6, 23, 34, 0.75);
}

.sffc-crm-dashboard-modal__recruiter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.sffc-crm-dashboard-modal__avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    border: 1px solid rgba(13, 53, 62, 0.12);
    background: #f5f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 600;
    color: var(--crm-senna-primary);
}

.sffc-crm-dashboard-modal__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sffc-crm-dashboard-modal__recruiter-meta strong {
    display: block;
}

.sffc-crm-dashboard-modal__meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(6, 23, 34, 0.7);
}

.sffc-crm-dashboard-modal__meta span.is-hidden {
    display: none;
}

.sffc-crm-dashboard-modal__body {
    padding: 12px 0 20px;
    line-height: 1.6;
}

.sffc-crm-dashboard-modal__body p {
    margin-bottom: 12px;
}

.sffc-crm-dashboard-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

/* ============================================
   Dashboard Avatar Wrapper Styles
   ============================================ */
.sffc-crm-dashboard-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
}

.sffc-crm-dashboard-avatar-wrapper .sffc-crm-hr-avatar,
.sffc-crm-dashboard-avatar-wrapper .sffc-crm-dashboard-avatar {
    width: 56px;
    height: 56px;
    font-size: 20px;
    border-width: 1px;
}

.sffc-crm-dashboard-avatar-wrapper .sffc-crm-hr-logo {
    position: absolute;
    width: 28px;
    height: 28px;
    bottom: -2px;
    right: -2px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 600;
    font-size: 12px;
    color: var(--crm-senna-primary);
    box-shadow: 0 4px 12px rgba(6, 23, 34, 0.18);
}

.sffc-crm-dashboard-avatar-wrapper .sffc-crm-hr-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dashboard List Item Layout - Compact */
.sffc-crm-dashboard-list-item {
    display: flex;
    align-items: center;
    gap: 20px !important;
    flex-wrap: wrap;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.sffc-crm-dashboard-list-item:hover {
    background-color: #F8F9FA;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.sffc-crm-dashboard-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 240px;
}

.sffc-crm-dashboard-title {
    flex: 1;
}

.sffc-crm-dashboard-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}

.sffc-crm-dashboard-actions .sffc-crm-btn {
    padding: 8px 14px;
    font-size: 13px;
    min-width: auto;
    white-space: nowrap;
}

/* Recruiter Name and Role on Same Line */
.sffc-crm-dashboard-recruiter {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sffc-crm-dashboard-recruiter-name {
    color: var(--crm-text-muted);
    font-size: 13px;
}

.sffc-crm-dashboard-recruiter-role {
    color: var(--crm-text-muted);
    font-size: 12px;
}

.sffc-crm-dashboard-recruiter-role::before {
    content: "•";
    margin-right: 6px;
    color: var(--crm-text-muted);
    opacity: 0.5;
}

/* ===========================================
   Email Builder Modal Styles
   =========================================== */
.sffc-crm-email-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.sffc-crm-email-modal[aria-hidden="false"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sffc-crm-email-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 20, 24, 0.65);
    backdrop-filter: blur(4px);
}

.sffc-crm-email-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 94vw);
    max-height: 92vh;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 30px 100px rgba(6, 10, 20, 0.35);
    overflow: hidden;
    animation: sffc-modal-slide-up 0.3s ease;
}

@keyframes sffc-modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sffc-crm-email-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    font-size: 22px;
    color: #1b2b34;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 2;
}

.sffc-crm-email-modal__close:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #000;
}

.sffc-crm-email-modal__layout {
    display: flex;
    gap: 32px;
    padding: 36px;
    height: 100%;
}

.sffc-crm-email-modal__profile {
    width: 280px;
    flex-shrink: 0;
    background: #f4f8f7;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sffc-crm-email-profile-card {
    display: flex;
    gap: 14px;
    align-items: center;
}

.sffc-crm-email-profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #0d353e;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.sffc-crm-email-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sffc-crm-email-profile-meta strong {
    display: block;
    font-size: 16px;
    color: #0c2130;
}

.sffc-crm-email-profile-meta span {
    font-size: 13px;
    color: #4f6b7a;
}

.sffc-crm-email-profile-details {
    border-top: 1px solid rgba(12, 33, 48, 0.08);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sffc-crm-email-profile-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sffc-crm-email-profile-row span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7a8c93;
}

.sffc-crm-email-profile-row strong,
.sffc-crm-email-profile-row a {
    font-size: 14px;
    color: #0c2130;
    text-decoration: none;
    word-break: break-word;
}

.sffc-crm-email-profile-row a:hover {
    color: #0d353e;
}

.sffc-crm-email-profile-hint {
    font-size: 13px;
    color: #4f6b7a;
    margin: 0;
    background: rgba(13, 53, 62, 0.08);
    padding: 12px;
    border-radius: 12px;
}

.sffc-crm-email-modal__builder {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sffc-crm-email-modal__header {
    padding: 0;
    border: none;
    margin-bottom: 20px;
}

.sffc-crm-email-modal__eyebrow {
    margin: 0 0 6px;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7a8c93;
}

.sffc-crm-email-modal__header h3 {
    margin: 0;
    font-size: 26px;
    color: #0c2130;
}

.sffc-crm-email-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.sffc-crm-email-field span {
    font-size: 13px;
    font-weight: 600;
    color: #24404c;
}

.sffc-crm-email-field input,
.sffc-crm-email-field textarea {
    width: 100%;
    border: 1px solid rgba(11, 46, 54, 0.15);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #0c2130;
    background: #fefefe;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.sffc-crm-email-field textarea {
    min-height: 220px;
    resize: vertical;
    line-height: 1.6;
}

.sffc-crm-email-field input:focus,
.sffc-crm-email-field textarea:focus {
    outline: none;
    border-color: #0d353e;
    box-shadow: 0 0 0 3px rgba(13, 53, 62, 0.15);
    background: #fff;
}

.sffc-crm-email-modal__actions {
    margin-top: 8px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.sffc-crm-email-modal__actions .sffc-crm-btn {
    min-width: 150px;
}

.sffc-crm-email-modal__actions .sffc-crm-btn.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.sffc-crm-email-feedback {
    font-size: 13px;
    margin: 14px 0 0;
    color: #0d353e;
}

.sffc-crm-email-feedback.is-error {
    color: #b42318;
}

@media (max-width: 960px) {
    .sffc-crm-email-modal__layout {
        flex-direction: column;
        padding: 28px;
        overflow-y: auto;
    }

    .sffc-crm-email-modal__profile {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sffc-crm-email-profile-card {
        width: 100%;
    }

    .sffc-crm-email-profile-details {
        flex: 1;
        padding-top: 12px;
    }
}

@media (max-width: 640px) {
    .sffc-crm-email-modal__actions {
        flex-direction: column;
    }

    .sffc-crm-email-modal__actions .sffc-crm-btn {
        width: 100%;
    }
}
body.sffc-crm-email-modal-open {
    overflow: hidden;
}

.sffc-crm-email-profile-avatar.has-image span {
    display: none;
}

/* ============================================
   New Post Dropdown - Subtle Notification
   ============================================ */

.sffc-crm-new-post-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--linkedin-card);
    border: 1px solid var(--linkedin-border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--linkedin-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    animation: slideDown 0.3s ease;
}

.sffc-crm-new-post-dropdown:hover {
    background: var(--linkedin-hover);
    border-color: var(--senna-primary);
    color: var(--senna-primary);
}

.sffc-crm-new-post-dropdown svg:first-child {
    color: var(--senna-accent);
    animation: pulse 2s infinite;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.sffc-crm-new-post-dropdown[hidden] {
    display: none;
}

/* ==========================================================================
   QUESTION CHATBOX
   ========================================================================== */

.sffc-crm-question-chatbox {
    padding: 16px;
    background: var(--linkedin-card);
    border-top: 1px solid var(--linkedin-border);
}

.sffc-crm-question-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--linkedin-hover);
    border-radius: 24px;
    padding: 4px 4px 4px 16px;
    transition: background 0.2s ease;
}

.sffc-crm-question-input-wrapper:focus-within {
    background: var(--linkedin-card);
    box-shadow: 0 0 0 2px rgba(10, 102, 194, 0.2);
}

.sffc-crm-question-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 14px;
    color: var(--linkedin-text);
    outline: none;
}

.sffc-crm-question-input::placeholder {
    color: var(--linkedin-text-muted);
}

.sffc-crm-question-input[readonly] {
    cursor: pointer;
}

.sffc-crm-question-submit {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #0a66c2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sffc-crm-question-submit:hover:not(:disabled) {
    background: #004182;
    transform: scale(1.05);
}

.sffc-crm-question-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sffc-crm-question-submit svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   SEARCH INPUT - REDUCED WIDTH
   ========================================================================== */

.sffc-crm-search-wrapper {
    position: relative;
    max-width: 400px;
    width: 100%;
    flex-shrink: 0;
}

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

/* Search Results Dropdown */
.sffc-crm-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--linkedin-card);
    border: 1px solid var(--linkedin-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.sffc-crm-search-results.is-open {
    display: block;
}

.sffc-crm-search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--linkedin-border);
    transition: background 0.15s ease;
}

.sffc-crm-search-result-item:last-child {
    border-bottom: none;
}

.sffc-crm-search-result-item:hover {
    background: var(--linkedin-hover);
}

.sffc-crm-search-result-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--linkedin-text);
    margin: 0 0 4px 0;
}

.sffc-crm-search-result-meta {
    font-size: 12px;
    color: var(--linkedin-text-muted);
    margin: 0;
}

.sffc-crm-search-no-results {
    padding: 24px 16px;
    text-align: center;
    color: var(--linkedin-text-muted);
    font-size: 14px;
}

/* ==========================================================================
   DUPLICATE STYLES REMOVED - SEE LINE ~3617 FOR USER MENU STYLES
   ========================================================================== */

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
    .sffc-crm-search-wrapper {
        max-width: 200px;
    }

    .sffc-crm-question-chatbox {
        padding: 12px;
    }

    .sffc-crm-question-input {
        font-size: 13px;
    }

    .sffc-user-menu {
        right: -8px;
    }
}

/* ==========================================================================
   JOIN SENNA CONTAINER (LOGGED OUT PROFILE TAB)
   ========================================================================== */

.sffc-crm-join-senna-container {
    background: #f5f7fb!important;
    padding: var(--spacing-2xl)!important;
    border-radius: 18px!important;
    display: flex!important;
    justify-content: center!important;
}

.sffc-crm-join-card {
    width: 100%!important;
    max-width: 560px!important;
    background: #ffffff!important;
    border: 1px solid #e0e6f0!important;
    border-radius: 18px!important;
    padding: 20px!important;
    box-shadow: 0 14px 36px rgba(20, 48, 96, 0.08)!important;
}

.sffc-crm-join-card h1 {
    font-size: 30px!important;
    margin: var(--spacing-sm) 0 var(--spacing-md)!important;
    color: var(--linkedin-text)!important;
}

.sffc-crm-join-eyebrow {
    font-size: 13px!important;
    letter-spacing: 0.12em!important;
    text-transform: uppercase!important;
    font-weight: 600!important;
    color: var(--linkedin-blue)!important;
    margin: 0!important;
}

.sffc-crm-join-subhead {
    font-size: 16px!important;
    color: var(--linkedin-text-secondary)!important;
    margin: 0 0 var(--spacing-xl)!important;
    line-height: 1.5!important;
}

.sffc-crm-join-benefits {
    list-style: none!important;
    margin: 0 0 var(--spacing-xl)!important;
    padding: 0!important;
}

.sffc-crm-join-benefits li {
    padding: var(--spacing-md) 0!important;
    border-bottom: 1px solid #eef1f6!important;
}

.sffc-crm-join-benefits li strong {
    display: block!important;
    font-size: 15px!important;
    color: var(--linkedin-text)!important;
    margin-bottom: 4px!important;
}

.sffc-crm-join-benefits li span {
    font-size: 14px!important;
    color: var(--linkedin-text-secondary)!important;
}

.sffc-crm-join-cta {
    width: 100%!important;
    justify-content: center!important;
    border-radius: 10px!important;
    padding: 14px 24px!important;
    font-size: 16px!important;
    margin-bottom: var(--spacing-md)!important;
}

.sffc-crm-btn-xl {
    display: inline-flex!important;
    align-items: center!important;
    gap: var(--spacing-sm)!important;
    font-weight: 600!important;
}

.sffc-crm-join-signin {
    text-align: center!important;
    font-size: 14px!important;
    color: var(--linkedin-text-secondary)!important;
    margin: 0!important;
}

.sffc-crm-join-signin a {
    color: var(--linkedin-blue)!important;
    font-weight: 600!important;
}

@media (max-width: 640px) {
    .sffc-crm-join-card {
        padding: var(--spacing-xl)!important;
    }
}

/* Signup Form Styles */
.sffc-crm-signup-form {
    margin-bottom: var(--spacing-xl)!important;
}

.sffc-crm-form-row {
    display: grid!important;
    grid-template-columns: 1fr 1fr!important;
    gap: var(--spacing-md)!important;
    margin-bottom: var(--spacing-md)!important;
}

.sffc-crm-form-field {
    margin-bottom: var(--spacing-md)!important;
}

.sffc-crm-form-field label {
    display: block!important;
    font-size: 14px!important;
    font-weight: 600!important;
    color: var(--linkedin-text)!important;
    margin-bottom: 6px!important;
}

.sffc-crm-form-field input[type="text"],
.sffc-crm-form-field input[type="email"],
.sffc-crm-form-field input[type="password"] {
    width: 100%!important;
    padding: 12px 14px!important;
    border: 1px solid #d0d7e3!important;
    border-radius: 8px!important;
    font-size: 15px!important;
    color: var(--linkedin-text)!important;
    background: #ffffff!important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease!important;
}

.sffc-crm-form-field input[type="text"]:focus,
.sffc-crm-form-field input[type="email"]:focus,
.sffc-crm-form-field input[type="password"]:focus {
    outline: none!important;
    border-color: var(--linkedin-blue)!important;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1)!important;
}

.sffc-crm-field-hint {
    display: block!important;
    font-size: 13px!important;
    color: var(--linkedin-text-muted)!important;
    margin-top: 4px!important;
}

.sffc-crm-form-checkbox {
    margin-bottom: var(--spacing-lg)!important;
}

.sffc-crm-form-checkbox label {
    display: flex!important;
    align-items: flex-start!important;
    gap: 10px!important;
    cursor: pointer!important;
}

.sffc-crm-form-checkbox input[type="checkbox"] {
    margin-top: 2px!important;
    flex-shrink: 0!important;
    width: 18px!important;
    height: 18px!important;
    cursor: pointer!important;
}

.sffc-crm-form-checkbox span {
    font-size: 13px!important;
    color: var(--linkedin-text-secondary)!important;
    line-height: 1.5!important;
}

.sffc-crm-form-checkbox a {
    color: var(--linkedin-blue)!important;
    text-decoration: none!important;
}

.sffc-crm-form-checkbox a:hover {
    text-decoration: underline!important;
}

.sffc-crm-form-message {
    padding: 12px 16px!important;
    border-radius: 8px!important;
    font-size: 14px!important;
    margin-bottom: var(--spacing-md)!important;
    font-weight: 500!important;
}

.sffc-crm-form-message.success {
    background: #d4edda!important;
    color: #155724!important;
    border: 1px solid #c3e6cb!important;
}

.sffc-crm-form-message.error {
    background: #f8d7da!important;
    color: #721c24!important;
    border: 1px solid #f5c6cb!important;
}

.sffc-crm-btn-spinner {
    display: none!important;
    animation: spin 1s linear infinite!important;
}

.sffc-crm-btn-spinner svg {
    width: 20px!important;
    height: 20px!important;
}

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

button[type="submit"]:disabled {
    opacity: 0.7!important;
    cursor: not-allowed!important;
}

.sffc-crm-join-benefits li {
    display: flex!important;
    align-items: flex-start!important;
    gap: var(--spacing-md)!important;
    padding: var(--spacing-md) 0!important;
    border-bottom: 1px solid #eef1f6!important;
}

.sffc-crm-join-benefits li:last-child {
    border-bottom: none!important;
}

.sffc-crm-join-benefits li svg {
    flex-shrink: 0!important;
    color: #10b981!important;
    margin-top: 2px!important;
}

.sffc-crm-join-benefits li div {
    flex: 1!important;
}

.sffc-crm-join-benefits li strong {
    margin-bottom: 4px!important;
}

@media (max-width: 640px) {
    .sffc-crm-form-row {
        grid-template-columns: 1fr!important;
    }
}

/* ==========================================================================
   BLUR EFFECT FOR NON-MEMBERS
   ========================================================================== */

.sffc-crm-blurred {
    filter: blur(4px)!important;
    user-select: none;
    pointer-events: none;
    transition: filter 0.2s ease;
}

.sffc-crm-dashboard-list--teaser .sffc-crm-dashboard-list-item:nth-child(n+4) {
    filter: blur(4px)!important;
    pointer-events: none!important;
    user-select: none!important;
}

.sffc-crm-dashboard-list--teaser .sffc-crm-dashboard-list-item:nth-child(-n+3) .sffc-crm-blurred {
    filter: none!important;
    pointer-events: auto!important;
    user-select: text!important;
}

.sffc-crm-hr-grid--teaser .sffc-crm-hr-card:nth-child(n+4) {
    filter: blur(4px)!important;
    pointer-events: none!important;
    user-select: none!important;
}

/* ==========================================================================
   MEMBERSHIP BADGE & TOGGLE
   ========================================================================== */

.sffc-membership-badge-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.sffc-membership-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.sffc-membership-badge.is-active {
    background: #0d353e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(13, 53, 62, 0.2);
}

.sffc-membership-badge .sffc-membership-icon {
    width: 14px;
    height: 14px;
}

.sffc-membership-badge.is-active .sffc-membership-icon {
    fill: currentColor;
}

.sffc-membership-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.sffc-membership-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sffc-membership-toggle-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 24px;
    transition: background 0.3s ease;
}

.sffc-membership-toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.sffc-membership-toggle-input:checked + .sffc-membership-toggle-slider {
    background: var(--linkedin-blue);
}

.sffc-membership-toggle-input:checked + .sffc-membership-toggle-slider::after {
    transform: translateX(20px);
}

.sffc-membership-toggle-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--linkedin-text);
}

/* ==========================================================================
   MEMBERSHIP SECTION
   ========================================================================== */

.sffc-crm-membership-section {
    margin-top: 24px;
}

.sffc-membership-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #f3f4f6;
    color: #6b7280;
}

.sffc-membership-status-badge.is-active {
    background: #d1fae5;
    color: #065f46;
}

.sffc-membership-details {
    margin-top: 16px;
}

.sffc-membership-plan-info {
    background: var(--linkedin-bg);
    border: 1px solid var(--linkedin-border-light);
    border-radius: 12px;
    padding: 20px;
}

.sffc-membership-plan-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--linkedin-border-light);
}

.sffc-membership-plan-name strong {
    font-size: 18px;
    font-weight: 600;
    color: var(--linkedin-text);
}

.sffc-membership-plan-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--linkedin-blue);
}

.sffc-membership-benefits {
    margin-bottom: 16px;
}

.sffc-membership-benefits-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--linkedin-text);
    margin: 0 0 12px 0;
}

.sffc-membership-benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sffc-membership-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--linkedin-text-secondary);
}

.sffc-membership-benefits-list li svg {
    width: 18px;
    height: 18px;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 2px;
}

.sffc-membership-upgrade-btn {
    width: 100%;
    justify-content: center;
    gap: 8px;
}

.sffc-membership-upgrade-btn svg {
    width: 16px;
    height: 16px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .sffc-membership-badge-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .sffc-membership-plan-name {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ==========================================================================
   MATCHES MEMBERSHIP GATE
   ========================================================================== */

.sffc-crm-matches-membership-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: var(--spacing-2xl);
}

.sffc-crm-matches-join-card {
    max-width: 800px;
    width: 100%;
    background: white;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.sffc-matches-join-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    margin: 0 auto 24px;
}

.sffc-matches-join-icon svg {
    width: 40px;
    height: 40px;
    color: white;
    fill: currentColor;
}

.sffc-crm-matches-join-card h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--linkedin-text);
    margin: 0 0 12px 0;
}

.sffc-matches-join-subtitle {
    font-size: 18px;
    color: var(--linkedin-text-secondary);
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.sffc-matches-join-benefits {
    text-align: left;
    background: var(--linkedin-bg);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
}

.sffc-matches-join-benefits h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--linkedin-text);
    margin: 0 0 20px 0;
    text-align: center;
}

.sffc-matches-join-benefits ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
}

.sffc-matches-join-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--linkedin-text);
}

.sffc-matches-join-benefits li svg {
    width: 20px;
    height: 20px;
    color: var(--linkedin-success);
    flex-shrink: 0;
}

.sffc-matches-join-pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.sffc-matches-pricing-option {
    position: relative;
    background: white;
    border: 2px solid var(--linkedin-border-light);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.sffc-matches-pricing-option:hover {
    border-color: var(--linkedin-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.1);
}

.sffc-matches-pricing-option.is-featured {
    border-color: var(--linkedin-blue);
    background: linear-gradient(to bottom, rgba(10, 102, 194, 0.05), white);
}

.sffc-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--linkedin-blue);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    white-space: nowrap;
}

.sffc-pricing-header {
    margin-bottom: 20px;
}

.sffc-pricing-header h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--linkedin-text);
    margin: 0 0 8px 0;
}

.sffc-pricing-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--linkedin-text);
    margin: 0;
}

.sffc-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.sffc-pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--linkedin-text-secondary);
}

.sffc-pricing-features li svg {
    width: 16px;
    height: 16px;
    color: var(--linkedin-success);
    flex-shrink: 0;
}

.sffc-matches-join-btn {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: inline-flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
}

.sffc-matches-join-btn svg {
    width: 20px;
    height: 20px;
}

.sffc-matches-join-note {
    font-size: 14px;
    color: var(--linkedin-text-muted);
    margin: 16px 0 0 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sffc-crm-matches-join-card {
        padding: 32px 24px;
    }

    .sffc-crm-matches-join-card h2 {
        font-size: 24px;
    }

    .sffc-matches-join-subtitle {
        font-size: 16px;
    }

    .sffc-matches-join-benefits {
        padding: 24px;
    }

    .sffc-matches-join-pricing {
        grid-template-columns: 1fr;
    }

    .sffc-matches-join-benefits li {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sffc-matches-join-benefits li svg {
        margin: 0 auto;
    }

    .sffc-pricing-value {
        font-size: 36px;
    }
}

/* ============================================
   Join Senna Signup Overlay
   ============================================ */

/* Lock the entire page when signup is required */
body.sffc-signup-required {
    overflow: hidden;
}

body.sffc-signup-required * {
    pointer-events: none !important;
    user-select: none !important;
}

body.sffc-signup-required .sffc-join-overlay,
body.sffc-signup-required .sffc-join-overlay * {
    pointer-events: auto !important;
    user-select: auto !important;
}

/* Lock the main content when overlay is showing */
.sffc-crm-linkedin.is-locked {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.sffc-join-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sffc-join-overlay.is-visible {
    display: flex;
}

.sffc-join-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.sffc-join-card {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 48px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.sffc-join-header {
    text-align: center;
    margin-bottom: 32px;
}

.sffc-join-logo {
    height: 40px;
    width: auto;
    margin-bottom: 24px;
}

.sffc-join-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--linkedin-text);
    margin: 0 0 12px 0;
}

.sffc-join-benefits {
    font-size: 15px;
    line-height: 1.6;
    color: var(--linkedin-text-secondary);
    margin: 0;
}

.sffc-join-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sffc-join-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sffc-join-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--linkedin-text);
}

.sffc-join-field input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--linkedin-border);
    border-radius: 8px;
    background: white;
    color: var(--linkedin-text);
    transition: border-color 0.2s;
}

.sffc-join-field input:focus {
    outline: none;
    border-color: var(--linkedin-brand);
}

.sffc-join-field input::placeholder {
    color: var(--linkedin-text-muted);
}

.sffc-join-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
}

.sffc-join-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sffc-join-feedback {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    margin: 0;
}

.sffc-join-feedback.is-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.sffc-join-feedback.is-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.sffc-join-footer {
    text-align: center;
    font-size: 14px;
    color: var(--linkedin-text-secondary);
    margin: 8px 0 0 0;
}

.sffc-join-footer a {
    color: var(--linkedin-brand);
    text-decoration: none;
    font-weight: 600;
}

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

/* Mobile adjustments */
@media (max-width: 640px) {
    .sffc-join-card {
        padding: 32px 24px;
    }

    .sffc-join-header h2 {
        font-size: 24px;
    }

    .sffc-join-benefits {
        font-size: 14px;
    }
}
