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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f0e8 0%, #e8dfd3 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

header {
    margin-bottom: 40px;
}

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

.header-left {
    text-align: left;
}

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

.user-email {
    color: #718096;
    font-size: 0.9rem;
}

header h1 {
    color: #2d3748;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #718096;
    font-size: 1.1rem;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 42px;
    width: auto;
}

.controls {
    margin-bottom: 30px;
}

.upload-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #0066cc;
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: #48bb78;
    color: white;
}

.btn-secondary:hover {
    background: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.btn-danger {
    background: #f56565;
    color: white;
}

.btn-danger:hover {
    background: #e53e3e;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.manual-add-form {
    margin-top: 10px;
    padding: 15px 20px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
}

.form-group input {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #E86C4F;
}

.form-group input::placeholder {
    color: #a0aec0;
}

.form-actions {
    display: flex;
    gap: 10px;
}

/* Required/Optional badges */
.required-badge {
    background: #fed7d7;
    color: #c53030;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 5px;
}

.optional-badge {
    background: #e2e8f0;
    color: #718096;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 5px;
}

.form-group-required label {
    font-weight: 700;
}

.form-group-optional label {
    color: #718096;
}

.form-group-optional input {
    border-color: #e2e8f0;
}

/* Column Mapping Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal {
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 25px 30px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    color: #2d3748;
    margin: 0 0 5px 0;
    font-size: 1.5rem;
}

.modal-subtitle {
    color: #718096;
    margin: 0;
    font-size: 0.95rem;
}

.modal-body {
    padding: 25px 30px;
}

.mapping-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.mapping-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.mapping-row label {
    font-weight: 600;
    color: #4a5568;
    min-width: 180px;
}

.mapping-row.required label {
    font-weight: 700;
    color: #2d3748;
}

.mapping-row select {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    background: white;
}

.mapping-row.required select {
    border-color: #E86C4F;
}

.mapping-row select:focus {
    outline: none;
    border-color: #E86C4F;
}

.preview-section {
    background: #f7fafc;
    border-radius: 8px;
    padding: 15px;
}

.preview-section h3 {
    color: #4a5568;
    font-size: 0.9rem;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-table-container {
    overflow-x: auto;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.preview-table th {
    background: #e2e8f0;
    color: #4a5568;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
}

.preview-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.preview-empty {
    color: #a0aec0;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.filters {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: #4a5568;
}

.filter-group select {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    background: white;
}

.filter-group select:focus {
    outline: none;
    border-color: #E86C4F;
}

.stats {
    margin-left: auto;
    font-weight: 600;
    color: #E86C4F;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Virtual Scroll Container */
.virtual-scroll-wrapper {
    height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 20px;
    padding-right: 10px;
    scroll-behavior: smooth;
}

.virtual-scroll-content {
    position: relative;
    width: 100%;
}

.virtual-scroll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.virtual-scroll-wrapper .contact-card {
    margin: 0;
}

/* Scroll position indicator - floating badge */
.scroll-position-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(45, 55, 72, 0.9);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.scroll-position-indicator:hover {
    background: rgba(45, 55, 72, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.scroll-position-indicator .scroll-info {
    display: flex;
    align-items: center;
}

.scroll-to-top-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
}

.empty-state p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.hint {
    font-size: 0.95rem !important;
    color: #cbd5e0 !important;
}

.contact-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #E86C4F;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
}

.profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.initials-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E86C4F 0%, #D45A3B 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 3px solid #e2e8f0;
}

.contact-info h3 {
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-info .job-info {
    color: #718096;
    font-size: 0.85rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.contact-info a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.85rem;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-group select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
    font-weight: 600;
}

.field-group select:focus {
    outline: none;
    border-color: #E86C4F;
}

.field-group select option {
    padding: 8px;
}

/* Base styling for comfort level dropdowns */
.comfort-select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comfort-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 108, 79, 0.15);
}

/* Color coding for comfort level dropdowns */
.comfort-select.color-most-comfortable {
    background-color: #14532d;
    color: white;
    border-color: #14532d;
}

.comfort-select.color-comfortable {
    background-color: #38a169;
    color: white;
    border-color: #38a169;
}

.comfort-select.color-maybe {
    background-color: #fef08a;
    color: #713f12;
    border-color: #713f12;
}

.comfort-select.color-skip {
    background-color: #718096;
    color: white;
    border-color: #718096;
}

/* Color coding for comfort value display */
.comfort-value.color-most-comfortable {
    background-color: #14532d;
    color: white;
}

.comfort-value.color-comfortable {
    background-color: #38a169;
    color: white;
}

.comfort-value.color-maybe {
    background-color: #fef08a;
    color: #713f12;
}

/* Color coding for dropdown options */
.comfort-select option[value="most-comfortable"] {
    background-color: #14532d;
    color: white;
}

.comfort-select option[value="comfortable"] {
    background-color: #38a169;
    color: white;
}

.comfort-select option[value="maybe"] {
    background-color: #fef08a;
    color: #713f12;
}

.comfort-select option[value="skip"] {
    background-color: #718096;
    color: white;
}

/* Color coding for reach/prospect connections dropdowns */
.reach-select.color-high {
    background-color: #22543d;
    color: white;
    border-color: #22543d;
}

.reach-select.color-middle {
    background-color: #fef08a;
    color: #713f12;
    border-color: #713f12;
}

.reach-select.color-low {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Color coding for reach dropdown options */
.reach-select option[value="high"] {
    background-color: #22543d;
    color: white;
}

.reach-select option[value="middle"] {
    background-color: #fef08a;
    color: #713f12;
}

.reach-select option[value="low"] {
    background-color: #3b82f6;
    color: white;
}

/* Color coding for access (est. connections) dropdowns on cards */
.access-select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
}

.access-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 108, 79, 0.15);
}

.access-select.color-high {
    background-color: #22543d;
    color: white;
    border-color: #22543d;
}

.access-select.color-middle {
    background-color: #fef08a;
    color: #713f12;
    border-color: #713f12;
}

.access-select.color-low {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.access-select option[value="high"] {
    background-color: #22543d;
    color: white;
}

.access-select option[value="middle"] {
    background-color: #fef08a;
    color: #713f12;
}

.access-select option[value="low"] {
    background-color: #3b82f6;
    color: white;
}

/* Tab Navigation */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: #E86C4F;
}

.tab-button.active {
    color: #E86C4F;
    border-bottom-color: #E86C4F;
}

.tab-content {
    display: none;
}

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

/* Search Bar */
.search-bar {
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #E86C4F;
}

.browse-controls {
    margin-bottom: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pageInfo {
    font-weight: 600;
    color: #4a5568;
}


/* Compact URL field */
.search-url-field-compact {
    grid-column: 2 / 3;
    max-width: 280px;
}

.search-url-field-compact .search-url-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #718096;
}

.profile-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.connections-link {
    color: #48bb78 !important;
    font-weight: 600;
}

.search-url-field {
    margin-top: 8px;
}

.search-url-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #4a5568;
    transition: border-color 0.2s ease;
}

.search-url-input:focus {
    outline: none;
    border-color: #E86C4F;
}

.search-url-input::placeholder {
    color: #a0aec0;
    font-size: 0.75rem;
}

.referral-comfort, .referral-reach {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.referral-comfort label, .referral-reach label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comfort-badge, .reach-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.comfort-most-comfortable,
.comfort-most {
    background: #22543d;
    color: white;
}

.comfort-comfortable {
    background: #c6f6d5;
    color: #22543d;
}

.comfort-maybe {
    background: #fef08a;
    color: #713f12;
}

.comfort-skip {
    background: #dc2626;
    color: white;
}

.reach-high {
    background: #c6f6d5;
    color: #22543d;
}

.reach-middle {
    background: #feebc8;
    color: #7c2d12;
}

.reach-low {
    background: #fed7d7;
    color: #742a2a;
}

.reach-unset {
    background: #e2e8f0;
    color: #4a5568;
}

/* Pipeline Tab - Pipeline Board Styles */
.convert-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f7fafc;
    border-radius: 8px;
}

.pipeline-stats {
    font-weight: 600;
    color: #2d3748;
}

.pipeline-legend,
.legend-item {
    color: #718096;
    font-size: 0.9rem;
}

.pipeline-board {
    display: flex;
    gap: 15px;
    min-height: 500px;
}

.pipeline-column {
    background: #f7fafc;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
    transition: flex 0.3s ease, min-width 0.3s ease, width 0.3s ease, padding 0.3s ease;
}

.pipeline-column[data-stage="ready"] {
    border-top: 3px solid #E86C4F;
}

.pipeline-column[data-stage="outreach-sent"] {
    border-top: 3px solid #ed8936;
}

.pipeline-column[data-stage="responded"] {
    border-top: 3px solid #48bb78;
}

.pipeline-column[data-stage="intro-made"] {
    border-top: 3px solid #9f7aea;
}

.pipeline-column[data-stage="completed"] {
    border-top: 3px solid #38a169;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.column-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.column-count {
    background: #e2e8f0;
    color: #4a5568;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.column-header {
    cursor: pointer;
    user-select: none;
}

.column-header:hover {
    background: #f7fafc;
    margin: -5px -5px 10px -5px;
    padding: 5px 5px 15px 5px;
    border-radius: 6px;
}

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

.collapse-icon {
    font-size: 0.7rem;
    color: #718096;
    transition: transform 0.2s ease;
}

.pipeline-column.collapsed {
    flex: 0 0 40px;
    min-width: 40px;
    width: 40px;
    padding: 10px 5px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pipeline-column.collapsed:hover {
    background: #e2e8f0;
}

.pipeline-column.collapsed .column-header {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
}

.pipeline-column.collapsed .column-header:hover {
    margin: 0;
    padding: 0;
    background: transparent;
}

.pipeline-column.collapsed .column-header-left {
    flex-direction: column;
    gap: 10px;
}

.pipeline-column.collapsed .column-header h3 {
    font-size: 0.75rem;
    white-space: nowrap;
}

.pipeline-column.collapsed .collapse-icon {
    transform: rotate(90deg);
}

.pipeline-column.collapsed .column-count {
    padding: 4px 6px;
    font-size: 0.7rem;
}

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

.column-cards.drag-over {
    background: #e2e8f0;
    border-radius: 8px;
}

/* Pipeline Card Styles */
.pipeline-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    cursor: grab;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pipeline-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.pipeline-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.pipeline-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.pipeline-card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.pipeline-card-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.2;
}

.pipeline-card-company {
    font-size: 0.75rem;
    color: #718096;
    margin: 0;
}

.pipeline-card-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.badge-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-label {
    font-size: 0.6rem;
    color: #718096;
    font-weight: 500;
    white-space: nowrap;
}

.pipeline-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.pipeline-badge.comfort-most-comfortable {
    background: #22543d;
    color: white;
}

.pipeline-badge.comfort-comfortable {
    background: #c6f6d5;
    color: #22543d;
}

.pipeline-badge.comfort-maybe {
    background: #fef08a;
    color: #713f12;
}

.pipeline-badge.reach-high {
    background: #22543d;
    color: white;
}

.pipeline-badge.reach-middle {
    background: #fef08a;
    color: #713f12;
}

.pipeline-badge.reach-low {
    background: #3b82f6;
    color: white;
}

.pipeline-card-actions {
    display: flex;
    gap: 5px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.pipeline-card-actions .btn {
    flex: 1;
    padding: 6px 8px;
    font-size: 0.7rem;
}

.pipeline-card-link {
    color: #0066cc;
    font-size: 0.75rem;
    text-decoration: none;
}

.pipeline-card-link:hover {
    text-decoration: underline;
}

.modal-text-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #4a5568;
    background: #f7fafc;
    transition: border-color 0.2s, background 0.2s;
}

.modal-text-input:focus {
    outline: none;
    border-color: #E86C4F;
    background: white;
}

.modal-text-input::placeholder {
    color: #a0aec0;
}

.pipeline-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.pipeline-empty-state p {
    margin: 0 0 10px 0;
}

.pipeline-empty-state .hint {
    font-size: 0.9rem;
    color: #a0aec0;
}

/* Card Detail Modal */
.card-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.card-detail-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.card-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.card-detail-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.card-detail-info h2 {
    margin: 0 0 5px 0;
    color: #2d3748;
}

.card-detail-info p {
    margin: 0;
    color: #718096;
}

.detail-linkedin-link {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.detail-linkedin-link:hover {
    opacity: 1;
}

.card-detail-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

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

.card-detail-section h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #718096;
    margin: 0 0 10px 0;
}


.modal-dropdowns-row {
    display: flex;
    gap: 20px;
}

.modal-dropdown-group {
    flex: 1;
}

.modal-dropdown-group h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #718096;
    margin: 0 0 10px 0;
}

.card-detail-footer {
    padding: 20px 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Email widget styles for card detail */
.email-widget {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.email-widget label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
}

.email-template {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s ease;
}

.email-template:focus {
    outline: none;
    border-color: #E86C4F;
}

.email-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-gmail {
    background: #ea4335;
    color: white;
}

.btn-gmail:hover {
    background: #d33426;
}

.btn-outlook {
    background: #0078d4;
    color: white;
}

.btn-outlook:hover {
    background: #006cbe;
}

/* Email Icon Buttons */
.email-actions-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.email-icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.email-icon-btn.gmail {
    background: #ea4335;
    color: white;
}

.email-icon-btn.gmail:hover {
    background: #d33426;
    transform: scale(1.05);
}

.email-icon-btn.outlook {
    background: #0078d4;
    color: white;
}

.email-icon-btn.outlook:hover {
    background: #006cbe;
    transform: scale(1.05);
}

.email-icon-btn.copy {
    background: #e2e8f0;
    color: #4a5568;
}

.email-icon-btn.copy:hover {
    background: #cbd5e0;
    transform: scale(1.05);
}

.email-icon-btn.copy.copied {
    background: #48bb78;
    color: white;
}

/* Email Header */
.email-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.email-header label {
    margin: 0;
}

/* Template Selector */
.template-selector {
    margin-top: 15px;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
}

.template-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.template-tab {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.2s ease;
}

.template-tab:hover {
    border-color: #E86C4F;
    color: #E86C4F;
}

.template-tab.active {
    background: #E86C4F;
    border-color: #E86C4F;
    color: white;
}

.template-cards-container {
    overflow-x: auto;
    margin: 0 -5px;
    padding: 5px;
}

.template-cards {
    display: flex;
    gap: 10px;
    padding-bottom: 5px;
}

.template-card {
    flex-shrink: 0;
    padding: 10px 16px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.template-card:hover {
    border-color: #E86C4F;
    background: #eef2ff;
}

.template-card.selected {
    border-color: #E86C4F;
    background: #E86C4F;
    color: white;
}

.template-card-name {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Auto-generated intro template card - green styling */
.template-card-auto {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    border-color: #48bb78;
    display: flex;
    align-items: center;
}

.template-card-auto:hover {
    background: linear-gradient(135deg, #9ae6b4 0%, #68d391 100%);
    border-color: #38a169;
}

.template-card-auto svg {
    color: #276749;
}

.template-card-auto .template-card-name {
    color: #276749;
}

.edit-templates-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #E86C4F;
    text-decoration: none;
    cursor: pointer;
}

.edit-templates-link:hover {
    text-decoration: underline;
    color: #5a67d8;
}

/* Prospect Wishlist Styles */
.prospect-wishlist {
    background: #f7fafc;
    border-radius: 8px;
    padding: 15px;
}

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

.wishlist-header h4 {
    margin: 0;
}

.wishlist-hint {
    font-size: 0.8rem;
    color: #718096;
    margin: 0 0 15px 0;
}

.add-prospect-form {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
}

.add-prospect-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.prospect-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.prospect-input:focus {
    outline: none;
    border-color: #E86C4F;
}

.add-prospect-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.wishlist-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wishlist-empty {
    color: #a0aec0;
    font-size: 0.85rem;
    text-align: center;
    padding: 20px;
    margin: 0;
}

.wishlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

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

.prospect-name {
    font-weight: 600;
    color: #2d3748;
    display: block;
}

.prospect-linkedin {
    font-size: 0.75rem;
    color: #E86C4F;
    text-decoration: none;
}

.prospect-linkedin:hover {
    text-decoration: underline;
}

.wishlist-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.wishlist-avatar-container {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.wishlist-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.wishlist-avatar-fallback {
    position: absolute;
    top: 0;
    left: 0;
}

.prospect-company {
    display: block;
    font-size: 0.75rem;
    color: #718096;
    margin-top: 2px;
}

.wishlist-item-checkboxes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #4a5568;
    cursor: pointer;
    white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.wishlist-remove-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: #fed7d7;
    color: #c53030;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wishlist-remove-btn:hover {
    background: #feb2b2;
}

/* Stage Management Modal */
.stage-modal {
    max-width: 500px;
}

.stages-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    max-height: 350px;
    overflow-y: auto;
}

.stage-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.stage-item-drag {
    color: #a0aec0;
    cursor: grab;
    font-size: 0.9rem;
    user-select: none;
}

.stage-name-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.stage-name-input:focus {
    outline: none;
    border-color: #E86C4F;
}

.stage-item-actions {
    display: flex;
    gap: 4px;
}

.stage-move-btn,
.stage-delete-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-move-btn {
    background: #e2e8f0;
    color: #4a5568;
}

.stage-move-btn:hover {
    background: #cbd5e0;
}

.stage-delete-btn {
    background: #fed7d7;
    color: #c53030;
}

.stage-delete-btn:hover {
    background: #feb2b2;
}

.stage-move-placeholder,
.stage-delete-placeholder {
    width: 28px;
    height: 28px;
    display: inline-block;
}

.add-stage-section {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.add-stage-section input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.add-stage-section input:focus {
    outline: none;
    border-color: #E86C4F;
}

.pipeline-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-left {
        text-align: center;
    }

    header h1 {
        font-size: 1.8rem;
    }

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

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .stats {
        margin-left: 0;
    }

    .referral-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .referral-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .tabs {
        flex-direction: column;
        gap: 0;
    }

    .tab-button {
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
    }

    .tab-button.active {
        border-bottom-color: transparent;
        border-left-color: #E86C4F;
    }

    .pipeline-board {
        flex-direction: column;
        gap: 20px;
    }

    .pipeline-column {
        min-height: auto;
    }

    .column-cards {
        min-height: 50px;
        max-height: 300px;
    }

    .convert-header-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .pipeline-legend {
        display: none;
    }

    .card-detail-content {
        max-height: 95vh;
    }

    .detail-tabs {
        overflow-x: auto;
        padding: 0 15px;
    }

    .detail-tab {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .reminder-dropdown {
        width: calc(100vw - 32px);
        right: -16px;
    }

    .email-actions {
        flex-direction: column;
    }

    .email-actions .btn {
        width: 100%;
    }

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


    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* Drag to Remove Zone */
.pipeline-remove-zone {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    z-index: 9999;
    transition: all 0.2s ease;
    pointer-events: none;
}

.pipeline-remove-zone.visible {
    display: flex;
    pointer-events: auto;
}

.pipeline-remove-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 3px dashed #718096;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #4a5568;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.25s ease;
}

.pipeline-remove-zone.visible .pipeline-remove-zone-content {
    opacity: 1;
    transform: translateY(0);
}

.pipeline-remove-zone.drag-over .pipeline-remove-zone-content {
    background: rgba(113, 128, 150, 0.1);
    border-style: solid;
    border-color: #718096;
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.pipeline-remove-zone-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #718096;
}

.pipeline-remove-zone-warning {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #718096;
}

.pipeline-remove-zone.drag-over .pipeline-remove-zone-warning {
    display: flex;
}

.pipeline-remove-zone-warning-icon {
    font-size: 0.9rem;
}

/* Settings Button */
.btn-icon {
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: #f7fafc;
    color: #E86C4F;
}

/* Settings Modal */
.settings-modal {
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.settings-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #718096;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #2d3748;
}

.settings-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 25px;
}

.settings-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -1px;
}

.settings-tab:hover {
    color: #E86C4F;
}

.settings-tab.active {
    color: #E86C4F;
    border-bottom-color: #E86C4F;
}

.settings-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

.settings-section {
    margin-bottom: 30px;
}

.settings-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.settings-hint {
    font-size: 0.85rem;
    color: #718096;
    margin: 0 0 15px 0;
}

.settings-field {
    margin-bottom: 15px;
}

.settings-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.settings-value {
    font-size: 0.95rem;
    color: #2d3748;
}

.settings-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.settings-input:focus {
    outline: none;
    border-color: #E86C4F;
}

.settings-message {
    font-size: 0.85rem;
    margin-top: 10px;
}

.settings-message.success {
    color: #38a169;
}

.settings-message.error {
    color: #e53e3e;
}

/* Template List */
.template-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.template-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-item:hover {
    background: #edf2f7;
    border-color: #E86C4F;
}

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

.template-item-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.template-item-preview {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.template-item-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 10px;
}

.template-item-badge.auto {
    background: #fff5f2;
    color: #E86C4F;
}

.template-item-badge.custom {
    background: #fef3c7;
    color: #92400e;
}

.template-edit-icon {
    color: #a0aec0;
    font-size: 1rem;
}

.template-item-readonly {
    cursor: default;
    opacity: 0.85;
}

.template-item-readonly:hover {
    background: #f7fafc;
    border-color: #e2e8f0;
}

/* Template Edit Modal */
.template-edit-modal {
    max-width: 600px;
}

.template-textarea {
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    min-height: 200px;
}

/* Intro Builder Modal */
#introBuilderModal {
    z-index: 1100;
}

.intro-builder-modal {
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.intro-builder-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
}

.intro-builder-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
}

.intro-builder-section {
    margin-bottom: 25px;
}

.intro-builder-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.intro-builder-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 25px;
    border-top: 1px solid #e2e8f0;
}

/* Prospect Selection List */
.prospect-select-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 5px 0;
}

.prospect-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prospect-select-item:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.prospect-select-item.selected {
    background: #fff5f2;
    border-color: #E86C4F;
}

.prospect-select-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.prospect-select-info {
    flex: 1;
}

.prospect-select-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.prospect-select-details {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 2px;
}

/* Prospect Bios List */
.prospect-bios-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prospect-bios-list .empty-hint {
    color: #a0aec0;
    font-size: 0.9rem;
    font-style: italic;
}

.prospect-bio-item {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
}

.prospect-bio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.prospect-bio-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.prospect-bio-linkedin {
    font-size: 0.75rem;
    color: #E86C4F;
    text-decoration: none;
}

.prospect-bio-linkedin:hover {
    text-decoration: underline;
}

.prospect-bio-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    min-height: 60px;
}

.prospect-bio-textarea:focus {
    outline: none;
    border-color: #E86C4F;
}

/* Generated Email Textarea */
.intro-email-textarea {
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    min-height: 400px;
}

/* Profile Prompt */
.intro-builder-profile-prompt {
    padding: 20px;
}

.profile-prompt-content {
    background: #fff5f2;
    border: 1px solid #E86C4F;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.profile-prompt-content h3 {
    color: #4c51bf;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.profile-prompt-content p {
    color: #5a67d8;
    margin: 0 0 15px 0;
    font-size: 0.9rem;
}

.profile-missing-list {
    text-align: left;
    margin: 0 auto 20px;
    max-width: 250px;
    color: #5a67d8;
    font-size: 0.9rem;
}

.profile-missing-list li {
    margin-bottom: 5px;
}

.profile-prompt-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Intro Email Actions */
.intro-email-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.intro-email-actions .btn {
    display: inline-flex;
    align-items: center;
}

.btn-success {
    background: #38a169 !important;
    border-color: #38a169 !important;
    color: white !important;
}

/* ============================================
   FILTERS PANEL STYLES
   ============================================ */

.search-bar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-bar input {
    flex: 1;
}

.filters-toggle-btn {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.filters-toggle-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.filters-toggle-btn.active {
    background: #E86C4F;
    color: white;
    border-color: #E86C4F;
}

.filters-toggle-icon {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.filters-toggle-btn.active .filters-toggle-icon {
    transform: rotate(180deg);
}

/* View Toggle (Card/Table) */
.view-toggle {
    display: flex;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.view-toggle-btn {
    background: #f7fafc;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.view-toggle-btn:first-child {
    border-right: 1px solid #e2e8f0;
}

.view-toggle-btn:hover {
    background: #edf2f7;
    color: #4a5568;
}

.view-toggle-btn.active {
    background: #E86C4F;
    color: white;
}

/* Table View Styles */
.table-view-container {
    overflow-x: auto;
}

.connector-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.connector-table th {
    text-align: left;
    padding: 12px 10px;
    background: #f7fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}

.connector-table th:first-child {
    width: 40px;
    text-align: center;
}

.connector-table td {
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.connector-table tr:hover {
    background: #f7fafc;
}

.connector-table tr.selected {
    background: #fff5f2;
}

.table-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.table-contact-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.table-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.table-avatar-initials {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: white;
    flex-shrink: 0;
}

.table-linkedin-btn {
    background: #0077b5;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
}

.table-linkedin-btn:hover {
    background: #005c8f;
}

.table-contact-name {
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
}

.table-contact-name:hover {
    color: #E86C4F;
}

.table-position {
    color: #718096;
    font-size: 0.85rem;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-comfort-select {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
    cursor: pointer;
    min-width: 140px;
}

.table-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 200px;
}

.table-tags .tag {
    font-size: 0.7rem;
    padding: 2px 8px;
}

/* Bulk Action Bar */
.bulk-action-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #E86C4F 0%, #D45A3B 100%);
    border-radius: 8px;
    margin-bottom: 16px;
    color: white;
}

.bulk-action-bar.hidden {
    display: none !important;
}

.bulk-selected-count {
    font-weight: 600;
    white-space: nowrap;
}

.bulk-action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.bulk-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.bulk-action-dropdown {
    position: relative;
}

.bulk-action-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 100;
    overflow: hidden;
}

.bulk-action-menu.hidden {
    display: none !important;
}

.bulk-action-menu-item {
    padding: 10px 14px;
    cursor: pointer;
    color: #2d3748;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.bulk-action-menu-item:hover {
    background: #f7fafc;
}

.bulk-clear-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: auto;
}

.bulk-clear-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.filters-panel {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.filters-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.filters-row:last-child {
    margin-bottom: 0;
}

.filters-panel .filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filters-panel .filter-group label {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
    min-width: 130px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #E86C4F;
    box-shadow: 0 0 0 3px rgba(232, 108, 79, 0.1);
}

.filter-group-tags {
    flex: 1;
    min-width: 200px;
}

.filter-group-checkbox {
    display: flex;
    align-items: center;
}

.filter-group-checkbox label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #4a5568;
    cursor: pointer;
    white-space: nowrap;
}

.stats-bar {
    padding: 8px 0;
    color: #718096;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#clearFiltersBtn {
    margin-left: auto;
}

/* ============================================
   TAG FILTER STYLES
   ============================================ */

.tag-filter-container {
    position: relative;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-height: 38px;
    cursor: text;
}

.tag-filter-container:focus-within {
    border-color: #E86C4F;
    box-shadow: 0 0 0 3px rgba(232, 108, 79, 0.1);
}

.tag-filter-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag-filter-input {
    border: none;
    outline: none;
    font-size: 0.85rem;
    flex: 1;
    min-width: 100px;
    padding: 2px 0;
}

.tag-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.tag-filter-dropdown.show {
    display: block;
}

.tag-filter-option {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-filter-option:hover {
    background: #f7fafc;
}

.tag-filter-option.selected {
    background: #fff5f2;
}

/* ============================================
   TAG STYLES (SHARED)
   ============================================ */

.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    gap: 4px;
    white-space: nowrap;
}

.tag-removable {
    cursor: pointer;
}

.tag-remove {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    font-size: 10px;
    cursor: pointer;
    margin-left: 2px;
}

.tag-remove:hover {
    background: rgba(255,255,255,0.5);
}

.tag-preview {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================
   MODAL TAGS
   ============================================ */

.modal-tags-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-tags-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 32px;
    align-items: center;
}

.modal-tags-add {
    display: flex;
    gap: 8px;
}

/* ============================================
   TAGS IN SETTINGS
   ============================================ */

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.tag-item .tag {
    margin: 0;
}

.tag-item .tag-delete-btn {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 2px;
    font-size: 1.1rem;
    line-height: 1;
}

.tag-item .tag-delete-btn:hover {
    color: #e53e3e;
}

.add-tag-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.add-tag-form input {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.tag-color-select {
    width: 100px;
}

/* Color swatch picker */
.color-swatch-picker {
    display: flex;
    gap: 6px;
    align-items: center;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s, border-color 0.15s;
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.selected {
    border-color: #2d3748;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #2d3748;
}

/* ============================================
   TAGS ON CONTACT CARDS
   ============================================ */

.card-tags-section {
    margin-top: 12px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 0;
}

.card-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 14px 0;
}

.card-tags .tag {
    font-size: 0.7rem;
    padding: 2px 8px;
}

.card-tag-add {
    background: #f7fafc;
    border: 1px dashed #cbd5e0;
    color: #a0aec0;
    cursor: pointer;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
}

.card-tag-add:hover {
    background: #edf2f7;
    border-color: #a0aec0;
    color: #718096;
}

/* Tag selector dropdown on cards */
.tag-selector {
    position: absolute;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 200;
    min-width: 180px;
    max-height: 250px;
    overflow-y: auto;
}

.tag-selector-header {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
}

.tag-selector-option {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.tag-selector-option:hover {
    background: #f7fafc;
}

.tag-selector-option.selected {
    background: #fff5f2;
}

.tag-selector-option .tag-check {
    width: 16px;
    color: #E86C4F;
}

/* ============================================
   SEARCH FILTERS
   ============================================ */

.search-filters-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.search-filter-item:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.search-filter-item.default {
    border-color: #E86C4F;
    background: #fff5f2;
}

.search-filter-info {
    flex: 1;
}

.search-filter-name {
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-filter-name .default-badge {
    font-size: 0.7rem;
    background: #E86C4F;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.search-filter-preview {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 4px;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.search-filter-actions {
    display: flex;
    gap: 8px;
}

.search-filter-actions button {
    padding: 4px 10px;
    font-size: 0.75rem;
}

.filter-boolean-output {
    font-family: monospace;
    font-size: 0.9rem;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s, background 0.2s;
}

.filter-boolean-output:focus {
    border-color: #E86C4F;
    outline: none;
}

.filter-boolean-output.over-limit {
    border-color: #e53e3e;
    background: #fff5f5;
}

.filter-char-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-char-count {
    font-size: 0.8rem;
    color: #718096;
}

.filter-char-count.warning {
    color: #ed8936;
    font-weight: 600;
}

.filter-char-count.over-limit {
    color: #e53e3e;
    font-weight: 600;
}

.filter-char-warning {
    font-size: 0.75rem;
    color: #e53e3e;
    font-style: italic;
}

.filter-editor-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.filter-editor-actions .btn-danger {
    margin-left: auto;
}

.search-filters-empty {
    text-align: center;
    padding: 30px;
    color: #a0aec0;
    font-style: italic;
}

/* Filter selector in card detail modal */
.filter-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.filter-selector-wrapper select {
    flex: 1;
}

.filter-selector-wrapper .btn {
    white-space: nowrap;
}

/* ============================================
   STEP 2 REDESIGN - Setup Checklist & Workflow
   ============================================ */

/* Dragging state for cards */
.contact-card.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.contact-card[draggable="true"] {
    cursor: grab;
}

.contact-card[draggable="true"]:active {
    cursor: grabbing;
}

/* Find Connectors Drag-and-Drop Styles */
.identify-drop-zones {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    pointer-events: none;
}

.identify-drop-zone {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px dashed #cbd5e0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    pointer-events: all;
    transition: all 0.2s ease;
}

.identify-drop-zone.drop-zone-left {
    left: 20px;
    border-color: #718096;
}

.identify-drop-zone.drop-zone-right {
    right: 20px;
    border-color: #E86C4F;
}

.identify-drop-zone .drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 20px;
}

.identify-drop-zone .drop-zone-icon {
    font-size: 2rem;
    font-weight: bold;
    color: #a0aec0;
}

.identify-drop-zone .drop-zone-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
}

.identify-drop-zone.drop-zone-left .drop-zone-icon {
    color: #718096;
}

.identify-drop-zone.drop-zone-right .drop-zone-icon {
    color: #E86C4F;
}

/* Hover states when dragging over */
.identify-drop-zone.drop-zone-hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.identify-drop-zone.drop-zone-left.drop-zone-hover {
    background: rgba(113, 128, 150, 0.1);
    border-color: #718096;
    border-style: solid;
}

.identify-drop-zone.drop-zone-right.drop-zone-hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #E86C4F;
    border-style: solid;
}

/* Spin animation for loading indicators */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Spinning animation for refresh icon */
.spinning {
    animation: spin 1s linear infinite;
}

/* Wishlist refresh button */
#refreshWishlistBtn:hover {
    color: #4a5568;
}

#refreshWishlistBtn:active {
    color: #2d3748;
}

/* ============================================
   ACADEMY MODAL STYLES
   ============================================ */

/* Academy - Skool-style two-column layout */
.academy-modal-new {
    background: white;
    border-radius: 12px;
    width: 92vw;
    max-width: 1200px;
    height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.academy-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.academy-header-bar h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
}

.academy-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Left Sidebar */
.academy-sidebar {
    width: 280px;
    flex-shrink: 0;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    background: #f7fafc;
}

.academy-sidebar-loading {
    padding: 20px;
    color: #718096;
    font-size: 14px;
}

.academy-sidebar-category {
    border-bottom: 1px solid #e2e8f0;
}

.academy-sidebar-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    user-select: none;
    background: #edf2f7;
}

.academy-sidebar-category-header:hover {
    background: #e2e8f0;
}

.academy-sidebar-toggle {
    font-size: 10px;
    color: #a0aec0;
    transition: transform 0.2s;
    display: inline-block;
}

.academy-sidebar-toggle.open {
    transform: rotate(90deg);
}

.academy-sidebar-video-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.15s;
}

.academy-sidebar-video-item:hover {
    background: #edf2f7;
}

.academy-sidebar-video-item.active {
    background: #fff5f2;
    border-left-color: #E86C4F;
}

.academy-sidebar-video-item.active .academy-sidebar-video-title {
    color: #E86C4F;
}

.academy-sidebar-play-icon {
    font-size: 9px;
    color: #a0aec0;
    margin-top: 4px;
    flex-shrink: 0;
}

.academy-sidebar-video-item.active .academy-sidebar-play-icon {
    color: #E86C4F;
}

.academy-sidebar-video-info {
    flex: 1;
    min-width: 0;
}

.academy-sidebar-video-title {
    font-size: 13px;
    font-weight: 500;
    color: #2d3748;
    line-height: 1.4;
    margin-bottom: 2px;
}

.academy-sidebar-video-duration {
    font-size: 11px;
    color: #a0aec0;
}

/* Right Main Panel */
.academy-main {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.academy-main-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #a0aec0;
    text-align: center;
}

.academy-video-container {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.academy-video-details h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 12px 0;
}

.academy-video-details p {
    font-size: 15px;
    color: #718096;
    line-height: 1.6;
    margin: 0;
}

/* Contextual help buttons */
.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #edf2f7;
    color: #718096;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 6px;
    transition: all 0.2s;
    border: none;
    padding: 0;
}

.help-icon:hover {
    background: #E86C4F;
    color: white;
    transform: scale(1.1);
}

/* Contextual Help Section */
.contextual-help-section {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.contextual-help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #edf2f7;
    cursor: pointer;
    user-select: none;
}

.contextual-help-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
}

.contextual-help-toggle {
    background: transparent;
    border: none;
    font-size: 12px;
    color: #718096;
    cursor: pointer;
    padding: 4px 8px;
    transition: transform 0.2s;
}

.contextual-help-toggle.collapsed {
    transform: rotate(-90deg);
}

.contextual-help-content {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.contextual-help-content.collapsed {
    display: none;
}

.contextual-help-video-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.contextual-help-video-card:hover {
    border-color: #E86C4F;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contextual-help-video-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
}

.contextual-help-video-duration {
    font-size: 12px;
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.contextual-help-video-duration::before {
    content: '▶';
    font-size: 9px;
}

.contextual-help-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contextual-help-thumb-placeholder {
    color: #a0aec0;
    font-size: 18px;
}

.contextual-help-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contextual-help-more {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 4px 0 0 0;
    grid-column: 1 / -1;
}

.contextual-help-more-link {
    font-size: 12px;
    color: #718096;
    text-decoration: underline;
    cursor: pointer;
}

.contextual-help-more-link:hover {
    color: #E86C4F;
}

/* ===== Global Search Spotlight ===== */
.global-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

.global-search-box {
    background: #fff;
    border-radius: 12px;
    width: 620px;
    max-width: 90vw;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.global-search-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.global-search-top input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    color: #2d3748;
    background: transparent;
}

.global-search-top input::placeholder {
    color: #a0aec0;
}

.global-search-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #a0aec0;
    cursor: pointer;
    padding: 0 4px;
    flex-shrink: 0;
}

.global-search-close-btn:hover {
    color: #718096;
}

.global-search-results {
    max-height: 420px;
    overflow-y: auto;
}

.global-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f7fafc;
    transition: background 0.1s;
}

.global-search-result:last-child {
    border-bottom: none;
}

.global-search-result:hover {
    background: #f7fafc;
}

.global-search-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-search-avatar-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #4a5568;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-search-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.global-search-result-info {
    flex: 1;
    min-width: 0;
}

.global-search-result-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-search-result-meta {
    font-size: 0.8rem;
    color: #718096;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.global-search-step-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 9999px;
    flex-shrink: 0;
    white-space: nowrap;
}

.step-badge-1 {
    background: #EBF4FF;
    color: #3182CE;
}

.step-badge-2 {
    background: #F0FFF4;
    color: #276749;
}

.global-search-empty {
    padding: 40px 20px;
    text-align: center;
    color: #a0aec0;
    font-size: 0.95rem;
}

.global-search-footer {
    padding: 10px 20px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 0.75rem;
    color: #a0aec0;
    text-align: center;
}

.global-search-footer kbd {
    background: #e2e8f0;
    color: #4a5568;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.72rem;
}

/* Academy refresh button in modal header */
.academy-header-bar .btn-icon {
    color: #718096;
    padding: 6px;
}

/* ===== Detail Modal Tabs ===== */
.detail-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 25px;
    background: #fafafa;
    flex-shrink: 0;
}

.detail-tab {
    padding: 10px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -1px;
    white-space: nowrap;
}

.detail-tab:hover {
    color: #E86C4F;
}

.detail-tab.active {
    color: #E86C4F;
    border-bottom-color: #E86C4F;
}

.detail-panel {
    display: none;
}

.detail-panel.active {
    display: block;
    padding: 25px;
}

/* ===== Email Input in Details Tab ===== */
.modal-email-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2d3748;
    transition: border-color 0.2s;
    font-family: inherit;
}

.modal-email-input:focus {
    outline: none;
    border-color: #E86C4F;
    box-shadow: 0 0 0 3px rgba(232, 108, 79, 0.1);
}

/* ===== Interaction Form ===== */
.interaction-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.interaction-type-selector {
    display: flex;
    gap: 6px;
}

.interaction-type-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f7fafc;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    color: #718096;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
}

.interaction-type-btn:hover {
    border-color: #E86C4F;
    color: #E86C4F;
}

.interaction-type-btn.active {
    border-color: #E86C4F;
    background: #fff5f0;
    color: #E86C4F;
}

.interaction-type-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.interaction-date-input {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #2d3748;
    font-family: inherit;
}

.interaction-date-input:focus {
    outline: none;
    border-color: #E86C4F;
}

.interaction-notes-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #2d3748;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

.interaction-notes-input:focus {
    outline: none;
    border-color: #E86C4F;
}

/* ===== Activity Timeline ===== */
.activity-timeline {
    margin-top: 8px;
}

.timeline-entry {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.timeline-entry:last-child {
    border-bottom: none;
}

.timeline-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-icon-call { background: #ebf8ff; color: #3182ce; }
.timeline-icon-email { background: #fefcbf; color: #d69e2e; }
.timeline-icon-meeting { background: #f0fff4; color: #38a169; }
.timeline-icon-note { background: #faf5ff; color: #805ad5; }

.timeline-icon svg {
    width: 16px;
    height: 16px;
}

.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.timeline-type {
    font-weight: 600;
    font-size: 0.85rem;
    color: #2d3748;
}

.timeline-date {
    font-size: 0.8rem;
    color: #a0aec0;
}

.timeline-edit-btn {
    background: none;
    border: none;
    color: #cbd5e0;
    cursor: pointer;
    padding: 2px 6px;
    margin-left: auto;
    transition: color 0.2s;
}

.timeline-edit-btn:hover {
    color: #E86C4F;
}

.timeline-delete-btn {
    background: none;
    border: none;
    color: #cbd5e0;
    cursor: pointer;
    font-size: 1rem;
    padding: 2px 6px;
    transition: color 0.2s;
}

.timeline-delete-btn:hover {
    color: #e53e3e;
}

.timeline-edit-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 8px 0;
}

.timeline-edit-row {
    display: flex;
    gap: 8px;
}

.timeline-edit-type,
.timeline-edit-date {
    padding: 6px 8px;
    border: 1px solid #4a5568;
    border-radius: 6px;
    background: #2d3748;
    color: #e2e8f0;
    font-size: 0.85rem;
}

.timeline-edit-type {
    flex: 1;
}

.timeline-edit-date {
    flex: 1;
}

.timeline-edit-notes {
    padding: 6px 8px;
    border: 1px solid #4a5568;
    border-radius: 6px;
    background: #2d3748;
    color: #e2e8f0;
    font-size: 0.85rem;
    resize: vertical;
}

.timeline-edit-actions {
    display: flex;
    gap: 8px;
}

.timeline-cancel-btn {
    background: #4a5568 !important;
    color: #e2e8f0 !important;
}

.timeline-notes {
    margin: 0;
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.4;
    white-space: pre-wrap;
}

.timeline-empty {
    color: #a0aec0;
    font-size: 0.85rem;
    text-align: center;
    padding: 20px 0;
}

/* ===== Reminders ===== */
.reminder-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
}

.reminder-form input[type="date"],
.reminder-form input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #2d3748;
    font-family: inherit;
}

.reminder-form input:focus {
    outline: none;
    border-color: #E86C4F;
}

.reminder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-top: 8px;
    background: #f7fafc;
    border-radius: 6px;
    border-left: 3px solid #e2e8f0;
}

.reminder-item.reminder-overdue {
    border-left-color: #e53e3e;
    background: #fff5f5;
}

.reminder-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reminder-note {
    font-size: 0.85rem;
    color: #2d3748;
}

.reminder-due {
    font-size: 0.75rem;
    color: #718096;
}

.reminder-complete-btn {
    background: none;
    border: 1px solid #cbd5e0;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    color: #a0aec0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.reminder-complete-btn:hover {
    color: #48bb78;
    border-color: #48bb78;
    background: #f0fff4;
}

/* ===== Bell Icon Badge ===== */
.reminder-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e53e3e;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ===== Reminder Dropdown ===== */
.reminder-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 420px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1200;
    overflow: hidden;
}

.reminder-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reminder-dropdown-header h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #2d3748;
}

.reminder-dismiss-btn {
    background: #E86C4F;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.reminder-dismiss-btn:hover {
    background: #D45A3B;
}

.reminder-dropdown-list {
    max-height: 360px;
    overflow-y: auto;
}

.reminder-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s, opacity 0.3s;
    border-bottom: 1px solid #f7fafc;
}

.reminder-dropdown-item:hover {
    background: #f7fafc;
}

.reminder-dropdown-item.reminder-overdue {
    border-left: 3px solid #e53e3e;
}

.reminder-dropdown-item.reminder-dismissed {
    opacity: 0.4;
    pointer-events: none;
    text-decoration: line-through;
}

.reminder-dropdown-item.reminder-dismissed .reminder-dropdown-name,
.reminder-dropdown-item.reminder-dismissed .reminder-dropdown-note,
.reminder-dropdown-item.reminder-dismissed .reminder-dropdown-due {
    color: #cbd5e0;
}

.reminder-checkbox-label {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.reminder-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #E86C4F;
}

.reminder-dropdown-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.reminder-dropdown-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d3748;
}

.reminder-dropdown-note {
    font-size: 0.8rem;
    color: #4a5568;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reminder-dropdown-due {
    font-size: 0.75rem;
    color: #718096;
}

.reminder-dropdown-empty {
    text-align: center;
    color: #a0aec0;
    padding: 30px 16px;
    font-size: 0.85rem;
    margin: 0;
}
